Update the changelog
[opencv] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.54 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 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 more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 exec 7<&0 </dev/null 6>&1
710
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716 #
717 # Initializations.
718 #
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
728
729 # Identity of this package.
730 PACKAGE_NAME='opencv'
731 PACKAGE_TARNAME='opencv'
732 PACKAGE_VERSION='1.1.0'
733 PACKAGE_STRING='opencv 1.1.0'
734 PACKAGE_BUGREPORT='opencvlibrary-devel@lists.sourceforge.net'
735
736 ac_unique_file="opencv.pc.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 am__isrc
826 CYGPATH_W
827 PACKAGE
828 VERSION
829 ACLOCAL
830 AUTOCONF
831 AUTOMAKE
832 AUTOHEADER
833 MAKEINFO
834 install_sh
835 STRIP
836 INSTALL_STRIP_PROGRAM
837 mkdir_p
838 AWK
839 SET_MAKE
840 am__leading_dot
841 AMTAR
842 am__tar
843 am__untar
844 MMAJOR
845 MMINOR
846 MSUBMINOR
847 LT_VERSION
848 CXX
849 CXXFLAGS
850 LDFLAGS
851 CPPFLAGS
852 ac_ct_CXX
853 EXEEXT
854 OBJEXT
855 DEPDIR
856 am__include
857 am__quote
858 AMDEP_TRUE
859 AMDEP_FALSE
860 AMDEPBACKSLASH
861 CXXDEPMODE
862 am__fastdepCXX_TRUE
863 am__fastdepCXX_FALSE
864 CC
865 CFLAGS
866 ac_ct_CC
867 CCDEPMODE
868 am__fastdepCC_TRUE
869 am__fastdepCC_FALSE
870 CPP
871 SED
872 GREP
873 EGREP
874 LN_S
875 ECHO
876 AR
877 RANLIB
878 DLLTOOL
879 AS
880 OBJDUMP
881 CXXCPP
882 F77
883 FFLAGS
884 ac_ct_F77
885 LIBTOOL
886 BUILD_APPS_TRUE
887 BUILD_APPS_FALSE
888 PY_CXXFLAGS
889 OCT_CXXFLAGS
890 DEF_CXXFLAGS
891 ALLOCA
892 CARBON_CFLAGS
893 CARBON_LIBS
894 BUILD_CARBON_TRUE
895 BUILD_CARBON_FALSE
896 PKG_CONFIG
897 GTK_CFLAGS
898 GTK_LIBS
899 GTHREAD_CFLAGS
900 GTHREAD_LIBS
901 BUILD_GTK_TRUE
902 BUILD_GTK_FALSE
903 QUICKTIME_CFLAGS
904 QUICKTIME_LIBS
905 BUILD_QUICKTIME_TRUE
906 BUILD_QUICKTIME_FALSE
907 GSTREAMER_CFLAGS
908 GSTREAMER_LIBS
909 BUILD_GSTREAMER_TRUE
910 BUILD_GSTREAMER_FALSE
911 XINE_LIBS
912 BUILD_XINE_TRUE
913 BUILD_XINE_FALSE
914 FFMPEGLIBS
915 BUILD_FFMPEG_TRUE
916 BUILD_FFMPEG_FALSE
917 IEEE1394LIBS
918 BUILD_DC1394_TRUE
919 BUILD_DC1394_FALSE
920 BUILD_V4L_TRUE
921 BUILD_V4L_FALSE
922 IMAGELIBS
923 BUILD_IMAGEIO_TRUE
924 BUILD_IMAGEIO_FALSE
925 PYTHON
926 PYTHON_VERSION
927 PYTHON_PREFIX
928 PYTHON_EXEC_PREFIX
929 PYTHON_PLATFORM
930 pythondir
931 pkgpythondir
932 pyexecdir
933 pkgpyexecdir
934 PYTHON_CSPEC
935 PYTHON_LSPEC
936 BUILD_PYTHON_WRAPPERS_TRUE
937 BUILD_PYTHON_WRAPPERS_FALSE
938 OCTAVE
939 MKOCTFILE
940 OCTAVE_ARCH
941 BUILD_OCTAVE_WRAPPERS_TRUE
942 BUILD_OCTAVE_WRAPPERS_FALSE
943 SWIG
944 SWIG_VERSION
945 SWIG_RUNTIME_LIBS_DIR
946 SWIG_OCTAVE_OPT
947 SWIG_PYTHON_OPT
948 SWIG_PYTHON_LIBS
949 UPDATE_SWIG_WRAPPERS_TRUE
950 UPDATE_SWIG_WRAPPERS_FALSE
951 DEBUG
952 LIBOBJS
953 LTLIBOBJS'
954 ac_subst_files=''
955       ac_precious_vars='build_alias
956 host_alias
957 target_alias
958 CXX
959 CXXFLAGS
960 LDFLAGS
961 LIBS
962 CPPFLAGS
963 CCC
964 CC
965 CFLAGS
966 CPP
967 CXXCPP
968 F77
969 FFLAGS
970 PYTHON
971 SWIG'
972
973
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
979 cache_file=/dev/null
980 exec_prefix=NONE
981 no_create=
982 no_recursion=
983 prefix=NONE
984 program_prefix=NONE
985 program_suffix=NONE
986 program_transform_name=s,x,x,
987 silent=
988 site=
989 srcdir=
990 verbose=
991 x_includes=NONE
992 x_libraries=NONE
993
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1011 infodir='${datarootdir}/info'
1012 htmldir='${docdir}'
1013 dvidir='${docdir}'
1014 pdfdir='${docdir}'
1015 psdir='${docdir}'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1019
1020 ac_prev=
1021 ac_dashdash=
1022 for ac_option
1023 do
1024   # If the previous option needs an argument, assign it.
1025   if test -n "$ac_prev"; then
1026     eval $ac_prev=\$ac_option
1027     ac_prev=
1028     continue
1029   fi
1030
1031   case $ac_option in
1032   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033   *)    ac_optarg=yes ;;
1034   esac
1035
1036   # Accept the important Cygnus configure options, so we can diagnose typos.
1037
1038   case $ac_dashdash$ac_option in
1039   --)
1040     ac_dashdash=yes ;;
1041
1042   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043     ac_prev=bindir ;;
1044   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1045     bindir=$ac_optarg ;;
1046
1047   -build | --build | --buil | --bui | --bu)
1048     ac_prev=build_alias ;;
1049   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1050     build_alias=$ac_optarg ;;
1051
1052   -cache-file | --cache-file | --cache-fil | --cache-fi \
1053   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1054     ac_prev=cache_file ;;
1055   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1056   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1057     cache_file=$ac_optarg ;;
1058
1059   --config-cache | -C)
1060     cache_file=config.cache ;;
1061
1062   -datadir | --datadir | --datadi | --datad)
1063     ac_prev=datadir ;;
1064   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1065     datadir=$ac_optarg ;;
1066
1067   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1068   | --dataroo | --dataro | --datar)
1069     ac_prev=datarootdir ;;
1070   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1071   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1072     datarootdir=$ac_optarg ;;
1073
1074   -disable-* | --disable-*)
1075     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079    { (exit 1); exit 1; }; }
1080     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1081     eval enable_$ac_feature=no ;;
1082
1083   -docdir | --docdir | --docdi | --doc | --do)
1084     ac_prev=docdir ;;
1085   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086     docdir=$ac_optarg ;;
1087
1088   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089     ac_prev=dvidir ;;
1090   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091     dvidir=$ac_optarg ;;
1092
1093   -enable-* | --enable-*)
1094     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095     # Reject names that are not valid shell variable names.
1096     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1098    { (exit 1); exit 1; }; }
1099     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1100     eval enable_$ac_feature=\$ac_optarg ;;
1101
1102   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104   | --exec | --exe | --ex)
1105     ac_prev=exec_prefix ;;
1106   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108   | --exec=* | --exe=* | --ex=*)
1109     exec_prefix=$ac_optarg ;;
1110
1111   -gas | --gas | --ga | --g)
1112     # Obsolete; use --with-gas.
1113     with_gas=yes ;;
1114
1115   -help | --help | --hel | --he | -h)
1116     ac_init_help=long ;;
1117   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118     ac_init_help=recursive ;;
1119   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120     ac_init_help=short ;;
1121
1122   -host | --host | --hos | --ho)
1123     ac_prev=host_alias ;;
1124   -host=* | --host=* | --hos=* | --ho=*)
1125     host_alias=$ac_optarg ;;
1126
1127   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128     ac_prev=htmldir ;;
1129   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130   | --ht=*)
1131     htmldir=$ac_optarg ;;
1132
1133   -includedir | --includedir | --includedi | --included | --include \
1134   | --includ | --inclu | --incl | --inc)
1135     ac_prev=includedir ;;
1136   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137   | --includ=* | --inclu=* | --incl=* | --inc=*)
1138     includedir=$ac_optarg ;;
1139
1140   -infodir | --infodir | --infodi | --infod | --info | --inf)
1141     ac_prev=infodir ;;
1142   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143     infodir=$ac_optarg ;;
1144
1145   -libdir | --libdir | --libdi | --libd)
1146     ac_prev=libdir ;;
1147   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148     libdir=$ac_optarg ;;
1149
1150   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151   | --libexe | --libex | --libe)
1152     ac_prev=libexecdir ;;
1153   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154   | --libexe=* | --libex=* | --libe=*)
1155     libexecdir=$ac_optarg ;;
1156
1157   -localedir | --localedir | --localedi | --localed | --locale)
1158     ac_prev=localedir ;;
1159   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160     localedir=$ac_optarg ;;
1161
1162   -localstatedir | --localstatedir | --localstatedi | --localstated \
1163   | --localstate | --localstat | --localsta | --localst | --locals)
1164     ac_prev=localstatedir ;;
1165   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167     localstatedir=$ac_optarg ;;
1168
1169   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170     ac_prev=mandir ;;
1171   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172     mandir=$ac_optarg ;;
1173
1174   -nfp | --nfp | --nf)
1175     # Obsolete; use --without-fp.
1176     with_fp=no ;;
1177
1178   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179   | --no-cr | --no-c | -n)
1180     no_create=yes ;;
1181
1182   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184     no_recursion=yes ;;
1185
1186   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188   | --oldin | --oldi | --old | --ol | --o)
1189     ac_prev=oldincludedir ;;
1190   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193     oldincludedir=$ac_optarg ;;
1194
1195   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196     ac_prev=prefix ;;
1197   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198     prefix=$ac_optarg ;;
1199
1200   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201   | --program-pre | --program-pr | --program-p)
1202     ac_prev=program_prefix ;;
1203   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205     program_prefix=$ac_optarg ;;
1206
1207   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208   | --program-suf | --program-su | --program-s)
1209     ac_prev=program_suffix ;;
1210   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212     program_suffix=$ac_optarg ;;
1213
1214   -program-transform-name | --program-transform-name \
1215   | --program-transform-nam | --program-transform-na \
1216   | --program-transform-n | --program-transform- \
1217   | --program-transform | --program-transfor \
1218   | --program-transfo | --program-transf \
1219   | --program-trans | --program-tran \
1220   | --progr-tra | --program-tr | --program-t)
1221     ac_prev=program_transform_name ;;
1222   -program-transform-name=* | --program-transform-name=* \
1223   | --program-transform-nam=* | --program-transform-na=* \
1224   | --program-transform-n=* | --program-transform-=* \
1225   | --program-transform=* | --program-transfor=* \
1226   | --program-transfo=* | --program-transf=* \
1227   | --program-trans=* | --program-tran=* \
1228   | --progr-tra=* | --program-tr=* | --program-t=*)
1229     program_transform_name=$ac_optarg ;;
1230
1231   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232     ac_prev=pdfdir ;;
1233   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234     pdfdir=$ac_optarg ;;
1235
1236   -psdir | --psdir | --psdi | --psd | --ps)
1237     ac_prev=psdir ;;
1238   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239     psdir=$ac_optarg ;;
1240
1241   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242   | -silent | --silent | --silen | --sile | --sil)
1243     silent=yes ;;
1244
1245   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246     ac_prev=sbindir ;;
1247   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248   | --sbi=* | --sb=*)
1249     sbindir=$ac_optarg ;;
1250
1251   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253   | --sharedst | --shareds | --shared | --share | --shar \
1254   | --sha | --sh)
1255     ac_prev=sharedstatedir ;;
1256   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259   | --sha=* | --sh=*)
1260     sharedstatedir=$ac_optarg ;;
1261
1262   -site | --site | --sit)
1263     ac_prev=site ;;
1264   -site=* | --site=* | --sit=*)
1265     site=$ac_optarg ;;
1266
1267   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268     ac_prev=srcdir ;;
1269   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270     srcdir=$ac_optarg ;;
1271
1272   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273   | --syscon | --sysco | --sysc | --sys | --sy)
1274     ac_prev=sysconfdir ;;
1275   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277     sysconfdir=$ac_optarg ;;
1278
1279   -target | --target | --targe | --targ | --tar | --ta | --t)
1280     ac_prev=target_alias ;;
1281   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282     target_alias=$ac_optarg ;;
1283
1284   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285     verbose=yes ;;
1286
1287   -version | --version | --versio | --versi | --vers | -V)
1288     ac_init_version=: ;;
1289
1290   -with-* | --with-*)
1291     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294       { echo "$as_me: error: invalid package name: $ac_package" >&2
1295    { (exit 1); exit 1; }; }
1296     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1297     eval with_$ac_package=\$ac_optarg ;;
1298
1299   -without-* | --without-*)
1300     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301     # Reject names that are not valid shell variable names.
1302     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303       { echo "$as_me: error: invalid package name: $ac_package" >&2
1304    { (exit 1); exit 1; }; }
1305     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1306     eval with_$ac_package=no ;;
1307
1308   --x)
1309     # Obsolete; use --with-x.
1310     with_x=yes ;;
1311
1312   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313   | --x-incl | --x-inc | --x-in | --x-i)
1314     ac_prev=x_includes ;;
1315   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317     x_includes=$ac_optarg ;;
1318
1319   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321     ac_prev=x_libraries ;;
1322   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324     x_libraries=$ac_optarg ;;
1325
1326   -*) { echo "$as_me: error: unrecognized option: $ac_option
1327 Try \`$0 --help' for more information." >&2
1328    { (exit 1); exit 1; }; }
1329     ;;
1330
1331   *=*)
1332     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333     # Reject names that are not valid shell variable names.
1334     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1335       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1336    { (exit 1); exit 1; }; }
1337     eval $ac_envvar=\$ac_optarg
1338     export $ac_envvar ;;
1339
1340   *)
1341     # FIXME: should be removed in autoconf 3.0.
1342     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346     ;;
1347
1348   esac
1349 done
1350
1351 if test -n "$ac_prev"; then
1352   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353   { echo "$as_me: error: missing argument to $ac_option" >&2
1354    { (exit 1); exit 1; }; }
1355 fi
1356
1357 # Be sure to have absolute directory names.
1358 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                 datadir sysconfdir sharedstatedir localstatedir includedir \
1360                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                 libdir localedir mandir
1362 do
1363   eval ac_val=\$$ac_var
1364   case $ac_val in
1365     [\\/$]* | ?:[\\/]* )  continue;;
1366     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367   esac
1368   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1369    { (exit 1); exit 1; }; }
1370 done
1371
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1378
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381   if test "x$build_alias" = x; then
1382     cross_compiling=maybe
1383     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384     If a cross compiler is detected then cross compile mode will be used." >&2
1385   elif test "x$build_alias" != "x$host_alias"; then
1386     cross_compiling=yes
1387   fi
1388 fi
1389
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393 test "$silent" = yes && exec 6>/dev/null
1394
1395
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399   { echo "$as_me: error: Working directory cannot be determined" >&2
1400    { (exit 1); exit 1; }; }
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402   { echo "$as_me: error: pwd does not report name of working directory" >&2
1403    { (exit 1); exit 1; }; }
1404
1405
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408   ac_srcdir_defaulted=yes
1409   # Try the directory containing this script, then the parent directory.
1410   ac_confdir=`$as_dirname -- "$0" ||
1411 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412          X"$0" : 'X\(//\)[^/]' \| \
1413          X"$0" : 'X\(//\)$' \| \
1414          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1415 echo X"$0" |
1416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417             s//\1/
1418             q
1419           }
1420           /^X\(\/\/\)[^/].*/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\/\)$/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\).*/{
1429             s//\1/
1430             q
1431           }
1432           s/.*/./; q'`
1433   srcdir=$ac_confdir
1434   if test ! -r "$srcdir/$ac_unique_file"; then
1435     srcdir=..
1436   fi
1437 else
1438   ac_srcdir_defaulted=no
1439 fi
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1443    { (exit 1); exit 1; }; }
1444 fi
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 ac_abs_confdir=`(
1447         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1448    { (exit 1); exit 1; }; }
1449         pwd)`
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452   srcdir=.
1453 fi
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1457 case $srcdir in
1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 esac
1460 for ac_var in $ac_precious_vars; do
1461   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_env_${ac_var}_value=\$${ac_var}
1463   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 done
1466
1467 #
1468 # Report the --help message.
1469 #
1470 if test "$ac_init_help" = "long"; then
1471   # Omit some internal or obsolete options to make the list less imposing.
1472   # This message is too long to be a string in the A/UX 3.1 sh.
1473   cat <<_ACEOF
1474 \`configure' configures opencv 1.1.0 to adapt to many kinds of systems.
1475
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1477
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE.  See below for descriptions of some of the useful variables.
1480
1481 Defaults for the options are specified in brackets.
1482
1483 Configuration:
1484   -h, --help              display this help and exit
1485       --help=short        display options specific to this package
1486       --help=recursive    display the short help of all the included packages
1487   -V, --version           display version information and exit
1488   -q, --quiet, --silent   do not print \`checking...' messages
1489       --cache-file=FILE   cache test results in FILE [disabled]
1490   -C, --config-cache      alias for \`--cache-file=config.cache'
1491   -n, --no-create         do not create output files
1492       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1493
1494 Installation directories:
1495   --prefix=PREFIX         install architecture-independent files in PREFIX
1496                           [$ac_default_prefix]
1497   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1498                           [PREFIX]
1499
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1504
1505 For better control, use the options below.
1506
1507 Fine tuning of the installation directories:
1508   --bindir=DIR           user executables [EPREFIX/bin]
1509   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1510   --libexecdir=DIR       program executables [EPREFIX/libexec]
1511   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1512   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1513   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1514   --libdir=DIR           object code libraries [EPREFIX/lib]
1515   --includedir=DIR       C header files [PREFIX/include]
1516   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1517   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1518   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1519   --infodir=DIR          info documentation [DATAROOTDIR/info]
1520   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1521   --mandir=DIR           man documentation [DATAROOTDIR/man]
1522   --docdir=DIR           documentation root [DATAROOTDIR/doc/opencv]
1523   --htmldir=DIR          html documentation [DOCDIR]
1524   --dvidir=DIR           dvi documentation [DOCDIR]
1525   --pdfdir=DIR           pdf documentation [DOCDIR]
1526   --psdir=DIR            ps documentation [DOCDIR]
1527 _ACEOF
1528
1529   cat <<\_ACEOF
1530
1531 Program names:
1532   --program-prefix=PREFIX            prepend PREFIX to installed program names
1533   --program-suffix=SUFFIX            append SUFFIX to installed program names
1534   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1535
1536 System types:
1537   --build=BUILD     configure for building on BUILD [guessed]
1538   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1539   --target=TARGET   configure for building compilers for TARGET [HOST]
1540 _ACEOF
1541 fi
1542
1543 if test -n "$ac_init_help"; then
1544   case $ac_init_help in
1545      short | recursive ) echo "Configuration of opencv 1.1.0:";;
1546    esac
1547   cat <<\_ACEOF
1548
1549 Optional Features:
1550   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1551   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1552   --enable-static[=PKGS]  build static libraries [default=no]
1553   --disable-dependency-tracking  speeds up one-time build
1554   --enable-dependency-tracking   do not reject slow dependency extractors
1555   --enable-shared[=PKGS]  build shared libraries [default=yes]
1556   --enable-fast-install[=PKGS]
1557                           optimize for fast installation [default=yes]
1558   --disable-libtool-lock  avoid locking (might break parallel builds)
1559   --enable-debug          build debug version without optimization [no]
1560   --enable-apps           build demo applications [yes]
1561
1562 Optional Packages:
1563   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1564   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1565   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1566   --with-pic              try to use only PIC/non-PIC objects [default=use
1567                           both]
1568   --with-tags[=TAGS]      include additional configurations [automatic]
1569   --with-swig             use swig wrapper generator [no]
1570   --with-python           use python for wrapping [yes]
1571   --with-octave           use octave for wrapping [no]
1572   --with-xine             use xine libraries (see LICENSE) [no]
1573   --with-gstreamer        use gstreamer multimedia framework (see LICENSE)
1574                           [no]
1575   --with-ffmpeg           use ffmpeg libraries (see LICENSE) [automatic]
1576   --with-1394libs         use libraw1394/libdc1394 [automatic]
1577   --with-v4l              use video4linux [automatic]
1578   --with-imageio          use ImageIO libraries [automatic]
1579   --with-quicktime        use QuickTime libraries [automatic]
1580   --with-carbon           use Carbon windows [automatic]
1581   --with-gtk              use gtk+ 2.0 windows [automatic]
1582   --with-gthread          use gthread in addition to gtk+ [automatic]
1583
1584 Some influential environment variables:
1585   CXX         C++ compiler command
1586   CXXFLAGS    C++ compiler flags
1587   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1588               nonstandard directory <lib dir>
1589   LIBS        libraries to pass to the linker, e.g. -l<library>
1590   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1591               you have headers in a nonstandard directory <include dir>
1592   CC          C compiler command
1593   CFLAGS      C compiler flags
1594   CPP         C preprocessor
1595   CXXCPP      C++ preprocessor
1596   F77         Fortran 77 compiler command
1597   FFLAGS      Fortran 77 compiler flags
1598   PYTHON      Python Executable Path
1599   SWIG        Simplified Wrapper and Interface Generator, used for Python
1600               bindings
1601
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1604
1605 Report bugs to <opencvlibrary-devel@lists.sourceforge.net>.
1606 _ACEOF
1607 ac_status=$?
1608 fi
1609
1610 if test "$ac_init_help" = "recursive"; then
1611   # If there are subdirs, report their specific --help.
1612   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613     test -d "$ac_dir" || continue
1614     ac_builddir=.
1615
1616 case "$ac_dir" in
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *)
1619   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1620   # A ".." for each directory in $ac_dir_suffix.
1621   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1622   case $ac_top_builddir_sub in
1623   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625   esac ;;
1626 esac
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1631
1632 case $srcdir in
1633   .)  # We are building in place.
1634     ac_srcdir=.
1635     ac_top_srcdir=$ac_top_builddir_sub
1636     ac_abs_top_srcdir=$ac_pwd ;;
1637   [\\/]* | ?:[\\/]* )  # Absolute name.
1638     ac_srcdir=$srcdir$ac_dir_suffix;
1639     ac_top_srcdir=$srcdir
1640     ac_abs_top_srcdir=$srcdir ;;
1641   *) # Relative name.
1642     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643     ac_top_srcdir=$ac_top_build_prefix$srcdir
1644     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 esac
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647
1648     cd "$ac_dir" || { ac_status=$?; continue; }
1649     # Check for guested configure.
1650     if test -f "$ac_srcdir/configure.gnu"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653     elif test -f "$ac_srcdir/configure"; then
1654       echo &&
1655       $SHELL "$ac_srcdir/configure" --help=recursive
1656     else
1657       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658     fi || ac_status=$?
1659     cd "$ac_pwd" || { ac_status=$?; break; }
1660   done
1661 fi
1662
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1665   cat <<\_ACEOF
1666 opencv configure 1.1.0
1667 generated by GNU Autoconf 2.61
1668
1669 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1670 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1671 This configure script is free software; the Free Software Foundation
1672 gives unlimited permission to copy, distribute and modify it.
1673 _ACEOF
1674   exit
1675 fi
1676 cat >config.log <<_ACEOF
1677 This file contains any messages produced by compilers while
1678 running configure, to aid debugging if configure makes a mistake.
1679
1680 It was created by opencv $as_me 1.1.0, which was
1681 generated by GNU Autoconf 2.61.  Invocation command line was
1682
1683   $ $0 $@
1684
1685 _ACEOF
1686 exec 5>>config.log
1687 {
1688 cat <<_ASUNAME
1689 ## --------- ##
1690 ## Platform. ##
1691 ## --------- ##
1692
1693 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1694 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1695 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1696 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1697 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1698
1699 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1700 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1701
1702 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1703 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1704 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1705 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1706 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1707 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1708 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1709
1710 _ASUNAME
1711
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   echo "PATH: $as_dir"
1718 done
1719 IFS=$as_save_IFS
1720
1721 } >&5
1722
1723 cat >&5 <<_ACEOF
1724
1725
1726 ## ----------- ##
1727 ## Core tests. ##
1728 ## ----------- ##
1729
1730 _ACEOF
1731
1732
1733 # Keep a trace of the command line.
1734 # Strip out --no-create and --no-recursion so they do not pile up.
1735 # Strip out --silent because we don't want to record it for future runs.
1736 # Also quote any args containing shell meta-characters.
1737 # Make two passes to allow for proper duplicate-argument suppression.
1738 ac_configure_args=
1739 ac_configure_args0=
1740 ac_configure_args1=
1741 ac_must_keep_next=false
1742 for ac_pass in 1 2
1743 do
1744   for ac_arg
1745   do
1746     case $ac_arg in
1747     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1748     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749     | -silent | --silent | --silen | --sile | --sil)
1750       continue ;;
1751     *\'*)
1752       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753     esac
1754     case $ac_pass in
1755     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1756     2)
1757       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1758       if test $ac_must_keep_next = true; then
1759         ac_must_keep_next=false # Got value, back to normal.
1760       else
1761         case $ac_arg in
1762           *=* | --config-cache | -C | -disable-* | --disable-* \
1763           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1764           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1765           | -with-* | --with-* | -without-* | --without-* | --x)
1766             case "$ac_configure_args0 " in
1767               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768             esac
1769             ;;
1770           -* ) ac_must_keep_next=true ;;
1771         esac
1772       fi
1773       ac_configure_args="$ac_configure_args '$ac_arg'"
1774       ;;
1775     esac
1776   done
1777 done
1778 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1779 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1780
1781 # When interrupted or exit'd, cleanup temporary files, and complete
1782 # config.log.  We remove comments because anyway the quotes in there
1783 # would cause problems or look ugly.
1784 # WARNING: Use '\'' to represent an apostrophe within the trap.
1785 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1786 trap 'exit_status=$?
1787   # Save into config.log some information that might help in debugging.
1788   {
1789     echo
1790
1791     cat <<\_ASBOX
1792 ## ---------------- ##
1793 ## Cache variables. ##
1794 ## ---------------- ##
1795 _ASBOX
1796     echo
1797     # The following way of writing the cache mishandles newlines in values,
1798 (
1799   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1800     eval ac_val=\$$ac_var
1801     case $ac_val in #(
1802     *${as_nl}*)
1803       case $ac_var in #(
1804       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1805 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806       esac
1807       case $ac_var in #(
1808       _ | IFS | as_nl) ;; #(
1809       *) $as_unset $ac_var ;;
1810       esac ;;
1811     esac
1812   done
1813   (set) 2>&1 |
1814     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815     *${as_nl}ac_space=\ *)
1816       sed -n \
1817         "s/'\''/'\''\\\\'\'''\''/g;
1818           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819       ;; #(
1820     *)
1821       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1822       ;;
1823     esac |
1824     sort
1825 )
1826     echo
1827
1828     cat <<\_ASBOX
1829 ## ----------------- ##
1830 ## Output variables. ##
1831 ## ----------------- ##
1832 _ASBOX
1833     echo
1834     for ac_var in $ac_subst_vars
1835     do
1836       eval ac_val=\$$ac_var
1837       case $ac_val in
1838       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839       esac
1840       echo "$ac_var='\''$ac_val'\''"
1841     done | sort
1842     echo
1843
1844     if test -n "$ac_subst_files"; then
1845       cat <<\_ASBOX
1846 ## ------------------- ##
1847 ## File substitutions. ##
1848 ## ------------------- ##
1849 _ASBOX
1850       echo
1851       for ac_var in $ac_subst_files
1852       do
1853         eval ac_val=\$$ac_var
1854         case $ac_val in
1855         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856         esac
1857         echo "$ac_var='\''$ac_val'\''"
1858       done | sort
1859       echo
1860     fi
1861
1862     if test -s confdefs.h; then
1863       cat <<\_ASBOX
1864 ## ----------- ##
1865 ## confdefs.h. ##
1866 ## ----------- ##
1867 _ASBOX
1868       echo
1869       cat confdefs.h
1870       echo
1871     fi
1872     test "$ac_signal" != 0 &&
1873       echo "$as_me: caught signal $ac_signal"
1874     echo "$as_me: exit $exit_status"
1875   } >&5
1876   rm -f core *.core core.conftest.* &&
1877     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878     exit $exit_status
1879 ' 0
1880 for ac_signal in 1 2 13 15; do
1881   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882 done
1883 ac_signal=0
1884
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1887
1888 # Predefined preprocessor variables.
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_NAME "$PACKAGE_NAME"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_STRING "$PACKAGE_STRING"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912 _ACEOF
1913
1914
1915 # Let the site file select an alternate cache file if it wants to.
1916 # Prefer explicitly selected file to automatically selected ones.
1917 if test -n "$CONFIG_SITE"; then
1918   set x "$CONFIG_SITE"
1919 elif test "x$prefix" != xNONE; then
1920   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1921 else
1922   set x "$ac_default_prefix/share/config.site" \
1923         "$ac_default_prefix/etc/config.site"
1924 fi
1925 shift
1926 for ac_site_file
1927 do
1928   if test -r "$ac_site_file"; then
1929     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1930 echo "$as_me: loading site script $ac_site_file" >&6;}
1931     sed 's/^/| /' "$ac_site_file" >&5
1932     . "$ac_site_file"
1933   fi
1934 done
1935
1936 if test -r "$cache_file"; then
1937   # Some versions of bash will fail to source /dev/null (special
1938   # files actually), so we avoid doing that.
1939   if test -f "$cache_file"; then
1940     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1941 echo "$as_me: loading cache $cache_file" >&6;}
1942     case $cache_file in
1943       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944       *)                      . "./$cache_file";;
1945     esac
1946   fi
1947 else
1948   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1949 echo "$as_me: creating cache $cache_file" >&6;}
1950   >$cache_file
1951 fi
1952
1953 # Check that the precious variables saved in the cache have kept the same
1954 # value.
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958   eval ac_new_set=\$ac_env_${ac_var}_set
1959   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960   eval ac_new_val=\$ac_env_${ac_var}_value
1961   case $ac_old_set,$ac_new_set in
1962     set,)
1963       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965       ac_cache_corrupted=: ;;
1966     ,set)
1967       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969       ac_cache_corrupted=: ;;
1970     ,);;
1971     *)
1972       if test "x$ac_old_val" != "x$ac_new_val"; then
1973         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1976 echo "$as_me:   former value:  $ac_old_val" >&2;}
1977         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1978 echo "$as_me:   current value: $ac_new_val" >&2;}
1979         ac_cache_corrupted=:
1980       fi;;
1981   esac
1982   # Pass precious variables to config.status.
1983   if test "$ac_new_set" = set; then
1984     case $ac_new_val in
1985     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1986     *) ac_arg=$ac_var=$ac_new_val ;;
1987     esac
1988     case " $ac_configure_args " in
1989       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1990       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1991     esac
1992   fi
1993 done
1994 if $ac_cache_corrupted; then
1995   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026 ac_ext=c
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031
2032
2033
2034 ac_aux_dir=
2035 for ac_dir in autotools "$srcdir"/autotools; do
2036   if test -f "$ac_dir/install-sh"; then
2037     ac_aux_dir=$ac_dir
2038     ac_install_sh="$ac_aux_dir/install-sh -c"
2039     break
2040   elif test -f "$ac_dir/install.sh"; then
2041     ac_aux_dir=$ac_dir
2042     ac_install_sh="$ac_aux_dir/install.sh -c"
2043     break
2044   elif test -f "$ac_dir/shtool"; then
2045     ac_aux_dir=$ac_dir
2046     ac_install_sh="$ac_aux_dir/shtool install -c"
2047     break
2048   fi
2049 done
2050 if test -z "$ac_aux_dir"; then
2051   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5
2052 echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;}
2053    { (exit 1); exit 1; }; }
2054 fi
2055
2056 # These three variables are undocumented and unsupported,
2057 # and are intended to be withdrawn in a future Autoconf release.
2058 # They can cause serious problems if a builder's source tree is in a directory
2059 # whose full name contains unusual characters.
2060 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2061 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2062 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2063
2064
2065
2066
2067 # put CVS revision of this configure.in into the resulting configure script
2068
2069
2070 # Detect the canonical host and target build environment
2071 # Make sure we can run config.sub.
2072 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2073   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2074 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2075    { (exit 1); exit 1; }; }
2076
2077 { echo "$as_me:$LINENO: checking build system type" >&5
2078 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2079 if test "${ac_cv_build+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   ac_build_alias=$build_alias
2083 test "x$ac_build_alias" = x &&
2084   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2085 test "x$ac_build_alias" = x &&
2086   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2087 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2088    { (exit 1); exit 1; }; }
2089 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2090   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2092    { (exit 1); exit 1; }; }
2093
2094 fi
2095 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2096 echo "${ECHO_T}$ac_cv_build" >&6; }
2097 case $ac_cv_build in
2098 *-*-*) ;;
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2100 echo "$as_me: error: invalid value of canonical build" >&2;}
2101    { (exit 1); exit 1; }; };;
2102 esac
2103 build=$ac_cv_build
2104 ac_save_IFS=$IFS; IFS='-'
2105 set x $ac_cv_build
2106 shift
2107 build_cpu=$1
2108 build_vendor=$2
2109 shift; shift
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2112 build_os=$*
2113 IFS=$ac_save_IFS
2114 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2115
2116
2117 { echo "$as_me:$LINENO: checking host system type" >&5
2118 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2119 if test "${ac_cv_host+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   if test "x$host_alias" = x; then
2123   ac_cv_host=$ac_cv_build
2124 else
2125   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2126     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2128    { (exit 1); exit 1; }; }
2129 fi
2130
2131 fi
2132 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2133 echo "${ECHO_T}$ac_cv_host" >&6; }
2134 case $ac_cv_host in
2135 *-*-*) ;;
2136 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2137 echo "$as_me: error: invalid value of canonical host" >&2;}
2138    { (exit 1); exit 1; }; };;
2139 esac
2140 host=$ac_cv_host
2141 ac_save_IFS=$IFS; IFS='-'
2142 set x $ac_cv_host
2143 shift
2144 host_cpu=$1
2145 host_vendor=$2
2146 shift; shift
2147 # Remember, the first character of IFS is used to create $*,
2148 # except with old shells:
2149 host_os=$*
2150 IFS=$ac_save_IFS
2151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2152
2153
2154 { echo "$as_me:$LINENO: checking target system type" >&5
2155 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2156 if test "${ac_cv_target+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   if test "x$target_alias" = x; then
2160   ac_cv_target=$ac_cv_host
2161 else
2162   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2163     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2165    { (exit 1); exit 1; }; }
2166 fi
2167
2168 fi
2169 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2170 echo "${ECHO_T}$ac_cv_target" >&6; }
2171 case $ac_cv_target in
2172 *-*-*) ;;
2173 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2174 echo "$as_me: error: invalid value of canonical target" >&2;}
2175    { (exit 1); exit 1; }; };;
2176 esac
2177 target=$ac_cv_target
2178 ac_save_IFS=$IFS; IFS='-'
2179 set x $ac_cv_target
2180 shift
2181 target_cpu=$1
2182 target_vendor=$2
2183 shift; shift
2184 # Remember, the first character of IFS is used to create $*,
2185 # except with old shells:
2186 target_os=$*
2187 IFS=$ac_save_IFS
2188 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2189
2190
2191 # The aliases save the names the user supplied, while $host etc.
2192 # will get canonicalized.
2193 test -n "$target_alias" &&
2194   test "$program_prefix$program_suffix$program_transform_name" = \
2195     NONENONEs,x,x, &&
2196   program_prefix=${target_alias}-
2197
2198 # setup automake - we need >= 1.6 because of python and aclocal support
2199 #                  we updated to 1.9 because of cross-platform issues
2200 ac_config_headers="$ac_config_headers cvconfig.h"
2201
2202 am__api_version='1.10'
2203
2204 # Find a good install program.  We prefer a C program (faster),
2205 # so one script is as good as another.  But avoid the broken or
2206 # incompatible versions:
2207 # SysV /etc/install, /usr/sbin/install
2208 # SunOS /usr/etc/install
2209 # IRIX /sbin/install
2210 # AIX /bin/install
2211 # AmigaOS /C/install, which installs bootblocks on floppy discs
2212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2215 # OS/2's system install, which has a completely different semantic
2216 # ./install, which can be erroneously created by make from ./install.sh.
2217 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2218 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2219 if test -z "$INSTALL"; then
2220 if test "${ac_cv_path_install+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226   IFS=$as_save_IFS
2227   test -z "$as_dir" && as_dir=.
2228   # Account for people who put trailing slashes in PATH elements.
2229 case $as_dir/ in
2230   ./ | .// | /cC/* | \
2231   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2232   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2233   /usr/ucb/* ) ;;
2234   *)
2235     # OSF1 and SCO ODT 3.0 have their own names for install.
2236     # Don't use installbsd from OSF since it installs stuff as root
2237     # by default.
2238     for ac_prog in ginstall scoinst install; do
2239       for ac_exec_ext in '' $ac_executable_extensions; do
2240         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2241           if test $ac_prog = install &&
2242             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2243             # AIX install.  It has an incompatible calling convention.
2244             :
2245           elif test $ac_prog = install &&
2246             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2247             # program-specific install script used by HP pwplus--don't use.
2248             :
2249           else
2250             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2251             break 3
2252           fi
2253         fi
2254       done
2255     done
2256     ;;
2257 esac
2258 done
2259 IFS=$as_save_IFS
2260
2261
2262 fi
2263   if test "${ac_cv_path_install+set}" = set; then
2264     INSTALL=$ac_cv_path_install
2265   else
2266     # As a last resort, use the slow shell script.  Don't cache a
2267     # value for INSTALL within a source directory, because that will
2268     # break other packages using the cache if that directory is
2269     # removed, or if the value is a relative name.
2270     INSTALL=$ac_install_sh
2271   fi
2272 fi
2273 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2274 echo "${ECHO_T}$INSTALL" >&6; }
2275
2276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2277 # It thinks the first close brace ends the variable substitution.
2278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2279
2280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2281
2282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2283
2284 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2285 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2286 # Just in case
2287 sleep 1
2288 echo timestamp > conftest.file
2289 # Do `set' in a subshell so we don't clobber the current shell's
2290 # arguments.  Must try -L first in case configure is actually a
2291 # symlink; some systems play weird games with the mod time of symlinks
2292 # (eg FreeBSD returns the mod time of the symlink's containing
2293 # directory).
2294 if (
2295    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2296    if test "$*" = "X"; then
2297       # -L didn't work.
2298       set X `ls -t $srcdir/configure conftest.file`
2299    fi
2300    rm -f conftest.file
2301    if test "$*" != "X $srcdir/configure conftest.file" \
2302       && test "$*" != "X conftest.file $srcdir/configure"; then
2303
2304       # If neither matched, then we have a broken ls.  This can happen
2305       # if, for instance, CONFIG_SHELL is bash and it inherits a
2306       # broken ls alias from the environment.  This has actually
2307       # happened.  Such a system could not be considered "sane".
2308       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2309 alias in your environment" >&5
2310 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2311 alias in your environment" >&2;}
2312    { (exit 1); exit 1; }; }
2313    fi
2314
2315    test "$2" = conftest.file
2316    )
2317 then
2318    # Ok.
2319    :
2320 else
2321    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2322 Check your system clock" >&5
2323 echo "$as_me: error: newly created file is older than distributed files!
2324 Check your system clock" >&2;}
2325    { (exit 1); exit 1; }; }
2326 fi
2327 { echo "$as_me:$LINENO: result: yes" >&5
2328 echo "${ECHO_T}yes" >&6; }
2329 test "$program_prefix" != NONE &&
2330   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2331 # Use a double $ so make ignores it.
2332 test "$program_suffix" != NONE &&
2333   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2334 # Double any \ or $.  echo might interpret backslashes.
2335 # By default was `s,x,x', remove it if useless.
2336 cat <<\_ACEOF >conftest.sed
2337 s/[\\$]/&&/g;s/;s,x,x,$//
2338 _ACEOF
2339 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2340 rm -f conftest.sed
2341
2342 # expand $ac_aux_dir to an absolute path
2343 am_aux_dir=`cd $ac_aux_dir && pwd`
2344
2345 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2346 # Use eval to expand $SHELL
2347 if eval "$MISSING --run true"; then
2348   am_missing_run="$MISSING --run "
2349 else
2350   am_missing_run=
2351   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2352 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2353 fi
2354
2355 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2356 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2357 if test -z "$MKDIR_P"; then
2358   if test "${ac_cv_path_mkdir+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2363 do
2364   IFS=$as_save_IFS
2365   test -z "$as_dir" && as_dir=.
2366   for ac_prog in mkdir gmkdir; do
2367          for ac_exec_ext in '' $ac_executable_extensions; do
2368            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2369            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2370              'mkdir (GNU coreutils) '* | \
2371              'mkdir (coreutils) '* | \
2372              'mkdir (fileutils) '4.1*)
2373                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2374                break 3;;
2375            esac
2376          done
2377        done
2378 done
2379 IFS=$as_save_IFS
2380
2381 fi
2382
2383   if test "${ac_cv_path_mkdir+set}" = set; then
2384     MKDIR_P="$ac_cv_path_mkdir -p"
2385   else
2386     # As a last resort, use the slow shell script.  Don't cache a
2387     # value for MKDIR_P within a source directory, because that will
2388     # break other packages using the cache if that directory is
2389     # removed, or if the value is a relative name.
2390     test -d ./--version && rmdir ./--version
2391     MKDIR_P="$ac_install_sh -d"
2392   fi
2393 fi
2394 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2395 echo "${ECHO_T}$MKDIR_P" >&6; }
2396
2397 mkdir_p="$MKDIR_P"
2398 case $mkdir_p in
2399   [\\/$]* | ?:[\\/]*) ;;
2400   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2401 esac
2402
2403 for ac_prog in gawk mawk nawk awk
2404 do
2405   # Extract the first word of "$ac_prog", so it can be a program name with args.
2406 set dummy $ac_prog; ac_word=$2
2407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2409 if test "${ac_cv_prog_AWK+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   if test -n "$AWK"; then
2413   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420   for ac_exec_ext in '' $ac_executable_extensions; do
2421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422     ac_cv_prog_AWK="$ac_prog"
2423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424     break 2
2425   fi
2426 done
2427 done
2428 IFS=$as_save_IFS
2429
2430 fi
2431 fi
2432 AWK=$ac_cv_prog_AWK
2433 if test -n "$AWK"; then
2434   { echo "$as_me:$LINENO: result: $AWK" >&5
2435 echo "${ECHO_T}$AWK" >&6; }
2436 else
2437   { echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6; }
2439 fi
2440
2441
2442   test -n "$AWK" && break
2443 done
2444
2445 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2446 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2447 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2448 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   cat >conftest.make <<\_ACEOF
2452 SHELL = /bin/sh
2453 all:
2454         @echo '@@@%%%=$(MAKE)=@@@%%%'
2455 _ACEOF
2456 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2457 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2458   *@@@%%%=?*=@@@%%%*)
2459     eval ac_cv_prog_make_${ac_make}_set=yes;;
2460   *)
2461     eval ac_cv_prog_make_${ac_make}_set=no;;
2462 esac
2463 rm -f conftest.make
2464 fi
2465 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2466   { echo "$as_me:$LINENO: result: yes" >&5
2467 echo "${ECHO_T}yes" >&6; }
2468   SET_MAKE=
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472   SET_MAKE="MAKE=${MAKE-make}"
2473 fi
2474
2475 rm -rf .tst 2>/dev/null
2476 mkdir .tst 2>/dev/null
2477 if test -d .tst; then
2478   am__leading_dot=.
2479 else
2480   am__leading_dot=_
2481 fi
2482 rmdir .tst 2>/dev/null
2483
2484 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2485   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2486   # is not polluted with repeated "-I."
2487   am__isrc=' -I$(srcdir)'
2488   # test to see if srcdir already configured
2489   if test -f $srcdir/config.status; then
2490     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2491 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2492    { (exit 1); exit 1; }; }
2493   fi
2494 fi
2495
2496 # test whether we have cygpath
2497 if test -z "$CYGPATH_W"; then
2498   if (cygpath --version) >/dev/null 2>/dev/null; then
2499     CYGPATH_W='cygpath -w'
2500   else
2501     CYGPATH_W=echo
2502   fi
2503 fi
2504
2505
2506 # Define the identity of the package.
2507  PACKAGE='opencv'
2508  VERSION='1.1.0'
2509
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE "$PACKAGE"
2513 _ACEOF
2514
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define VERSION "$VERSION"
2518 _ACEOF
2519
2520 # Some tools Automake needs.
2521
2522 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2523
2524
2525 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2526
2527
2528 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2529
2530
2531 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2532
2533
2534 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2535
2536 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2537
2538 # Installed binaries are usually stripped using `strip' when the user
2539 # run `make install-strip'.  However `strip' might not be the right
2540 # tool to use in cross-compilation environments, therefore Automake
2541 # will honor the `STRIP' environment variable to overrule this program.
2542 if test "$cross_compiling" != no; then
2543   if test -n "$ac_tool_prefix"; then
2544   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}strip; ac_word=$2
2546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2548 if test "${ac_cv_prog_STRIP+set}" = set; then
2549   echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551   if test -n "$STRIP"; then
2552   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557   IFS=$as_save_IFS
2558   test -z "$as_dir" && as_dir=.
2559   for ac_exec_ext in '' $ac_executable_extensions; do
2560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563     break 2
2564   fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2568
2569 fi
2570 fi
2571 STRIP=$ac_cv_prog_STRIP
2572 if test -n "$STRIP"; then
2573   { echo "$as_me:$LINENO: result: $STRIP" >&5
2574 echo "${ECHO_T}$STRIP" >&6; }
2575 else
2576   { echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6; }
2578 fi
2579
2580
2581 fi
2582 if test -z "$ac_cv_prog_STRIP"; then
2583   ac_ct_STRIP=$STRIP
2584   # Extract the first word of "strip", so it can be a program name with args.
2585 set dummy strip; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   if test -n "$ac_ct_STRIP"; then
2592   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599   for ac_exec_ext in '' $ac_executable_extensions; do
2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601     ac_cv_prog_ac_ct_STRIP="strip"
2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612 if test -n "$ac_ct_STRIP"; then
2613   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2614 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2615 else
2616   { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2618 fi
2619
2620   if test "x$ac_ct_STRIP" = x; then
2621     STRIP=":"
2622   else
2623     case $cross_compiling:$ac_tool_warned in
2624 yes:)
2625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet.  If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&5
2628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2629 whose name does not start with the host triplet.  If you think this
2630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2631 ac_tool_warned=yes ;;
2632 esac
2633     STRIP=$ac_ct_STRIP
2634   fi
2635 else
2636   STRIP="$ac_cv_prog_STRIP"
2637 fi
2638
2639 fi
2640 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2641
2642 # We need awk for the "check" target.  The system "awk" is bad on
2643 # some platforms.
2644 # Always define AMTAR for backward compatibility.
2645
2646 AMTAR=${AMTAR-"${am_missing_run}tar"}
2647
2648 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2649
2650
2651
2652
2653
2654 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2655 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2656 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2657 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2658   echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660   cat >conftest.make <<\_ACEOF
2661 SHELL = /bin/sh
2662 all:
2663         @echo '@@@%%%=$(MAKE)=@@@%%%'
2664 _ACEOF
2665 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2666 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2667   *@@@%%%=?*=@@@%%%*)
2668     eval ac_cv_prog_make_${ac_make}_set=yes;;
2669   *)
2670     eval ac_cv_prog_make_${ac_make}_set=no;;
2671 esac
2672 rm -f conftest.make
2673 fi
2674 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2675   { echo "$as_me:$LINENO: result: yes" >&5
2676 echo "${ECHO_T}yes" >&6; }
2677   SET_MAKE=
2678 else
2679   { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2681   SET_MAKE="MAKE=${MAKE-make}"
2682 fi
2683
2684
2685 # use 'gly maintainer-mode flag to help CVS users that do not want to
2686 # help developing OpenCV but just need to compile the latest version
2687 # AM_MAINTAINER_MODE
2688
2689 # substitute versionnumbers
2690 MMAJOR=1
2691
2692 MMINOR=1
2693
2694 MSUBMINOR=0
2695
2696 VERSION=1.1.0
2697
2698 LT_VERSION=2:0:0
2699
2700
2701 # disable building static libraries,
2702 # allow Cygwin to build DLLs
2703 # Check whether --enable-static was given.
2704 if test "${enable_static+set}" = set; then
2705   enableval=$enable_static; p=${PACKAGE-default}
2706     case $enableval in
2707     yes) enable_static=yes ;;
2708     no) enable_static=no ;;
2709     *)
2710      enable_static=no
2711       # Look at the argument we got.  We use all the common list separators.
2712       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2713       for pkg in $enableval; do
2714         IFS="$lt_save_ifs"
2715         if test "X$pkg" = "X$p"; then
2716           enable_static=yes
2717         fi
2718       done
2719       IFS="$lt_save_ifs"
2720       ;;
2721     esac
2722 else
2723   enable_static=no
2724 fi
2725
2726
2727
2728
2729
2730
2731 # checks for programs.
2732 ac_ext=cpp
2733 ac_cpp='$CXXCPP $CPPFLAGS'
2734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2737 if test -z "$CXX"; then
2738   if test -n "$CCC"; then
2739     CXX=$CCC
2740   else
2741     if test -n "$ac_tool_prefix"; then
2742   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2743   do
2744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_CXX+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   if test -n "$CXX"; then
2752   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757   IFS=$as_save_IFS
2758   test -z "$as_dir" && as_dir=.
2759   for ac_exec_ext in '' $ac_executable_extensions; do
2760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763     break 2
2764   fi
2765 done
2766 done
2767 IFS=$as_save_IFS
2768
2769 fi
2770 fi
2771 CXX=$ac_cv_prog_CXX
2772 if test -n "$CXX"; then
2773   { echo "$as_me:$LINENO: result: $CXX" >&5
2774 echo "${ECHO_T}$CXX" >&6; }
2775 else
2776   { echo "$as_me:$LINENO: result: no" >&5
2777 echo "${ECHO_T}no" >&6; }
2778 fi
2779
2780
2781     test -n "$CXX" && break
2782   done
2783 fi
2784 if test -z "$CXX"; then
2785   ac_ct_CXX=$CXX
2786   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2787 do
2788   # Extract the first word of "$ac_prog", so it can be a program name with args.
2789 set dummy $ac_prog; ac_word=$2
2790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   if test -n "$ac_ct_CXX"; then
2796   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803   for ac_exec_ext in '' $ac_executable_extensions; do
2804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805     ac_cv_prog_ac_ct_CXX="$ac_prog"
2806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807     break 2
2808   fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2816 if test -n "$ac_ct_CXX"; then
2817   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2818 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2819 else
2820   { echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6; }
2822 fi
2823
2824
2825   test -n "$ac_ct_CXX" && break
2826 done
2827
2828   if test "x$ac_ct_CXX" = x; then
2829     CXX="g++"
2830   else
2831     case $cross_compiling:$ac_tool_warned in
2832 yes:)
2833 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2834 whose name does not start with the host triplet.  If you think this
2835 configuration is useful to you, please write to autoconf@gnu.org." >&5
2836 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2837 whose name does not start with the host triplet.  If you think this
2838 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2839 ac_tool_warned=yes ;;
2840 esac
2841     CXX=$ac_ct_CXX
2842   fi
2843 fi
2844
2845   fi
2846 fi
2847 # Provide some information about the compiler.
2848 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2849 ac_compiler=`set X $ac_compile; echo $2`
2850 { (ac_try="$ac_compiler --version >&5"
2851 case "(($ac_try" in
2852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853   *) ac_try_echo=$ac_try;;
2854 esac
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856   (eval "$ac_compiler --version >&5") 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }
2860 { (ac_try="$ac_compiler -v >&5"
2861 case "(($ac_try" in
2862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863   *) ac_try_echo=$ac_try;;
2864 esac
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866   (eval "$ac_compiler -v >&5") 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }
2870 { (ac_try="$ac_compiler -V >&5"
2871 case "(($ac_try" in
2872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873   *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876   (eval "$ac_compiler -V >&5") 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }
2880
2881 cat >conftest.$ac_ext <<_ACEOF
2882 /* confdefs.h.  */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h.  */
2887
2888 int
2889 main ()
2890 {
2891
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 ac_clean_files_save=$ac_clean_files
2897 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2898 # Try to create an executable without -o first, disregard a.out.
2899 # It will help us diagnose broken compilers, and finding out an intuition
2900 # of exeext.
2901 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2902 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2903 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2904 #
2905 # List of possible output files, starting from the most likely.
2906 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2907 # only as a last resort.  b.out is created by i960 compilers.
2908 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2909 #
2910 # The IRIX 6 linker writes into existing files which may not be
2911 # executable, retaining their permissions.  Remove them first so a
2912 # subsequent execution test works.
2913 ac_rmfiles=
2914 for ac_file in $ac_files
2915 do
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2918     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2919   esac
2920 done
2921 rm -f $ac_rmfiles
2922
2923 if { (ac_try="$ac_link_default"
2924 case "(($ac_try" in
2925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926   *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929   (eval "$ac_link_default") 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }; then
2933   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2936 # so that the user can short-circuit this test for compilers unknown to
2937 # Autoconf.
2938 for ac_file in $ac_files ''
2939 do
2940   test -f "$ac_file" || continue
2941   case $ac_file in
2942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2943         ;;
2944     [ab].out )
2945         # We found the default executable, but exeext='' is most
2946         # certainly right.
2947         break;;
2948     *.* )
2949         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2950         then :; else
2951            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952         fi
2953         # We set ac_cv_exeext here because the later test for it is not
2954         # safe: cross compilers may not add the suffix if given an `-o'
2955         # argument, so we may need to know it at that point already.
2956         # Even if this section looks crufty: it has the advantage of
2957         # actually working.
2958         break;;
2959     * )
2960         break;;
2961   esac
2962 done
2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
2964
2965 else
2966   ac_file=''
2967 fi
2968
2969 { echo "$as_me:$LINENO: result: $ac_file" >&5
2970 echo "${ECHO_T}$ac_file" >&6; }
2971 if test -z "$ac_file"; then
2972   echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2976 See \`config.log' for more details." >&5
2977 echo "$as_me: error: C++ compiler cannot create executables
2978 See \`config.log' for more details." >&2;}
2979    { (exit 77); exit 77; }; }
2980 fi
2981
2982 ac_exeext=$ac_cv_exeext
2983
2984 # Check that the compiler produces executables we can run.  If not, either
2985 # the compiler is broken, or we cross compile.
2986 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2987 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2988 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2989 # If not cross compiling, check that we can run a simple program.
2990 if test "$cross_compiling" != yes; then
2991   if { ac_try='./$ac_file'
2992   { (case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_try") 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }; }; then
3001     cross_compiling=no
3002   else
3003     if test "$cross_compiling" = maybe; then
3004         cross_compiling=yes
3005     else
3006         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
3007 If you meant to cross compile, use \`--host'.
3008 See \`config.log' for more details." >&5
3009 echo "$as_me: error: cannot run C++ compiled programs.
3010 If you meant to cross compile, use \`--host'.
3011 See \`config.log' for more details." >&2;}
3012    { (exit 1); exit 1; }; }
3013     fi
3014   fi
3015 fi
3016 { echo "$as_me:$LINENO: result: yes" >&5
3017 echo "${ECHO_T}yes" >&6; }
3018
3019 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3020 ac_clean_files=$ac_clean_files_save
3021 # Check that the compiler produces executables we can run.  If not, either
3022 # the compiler is broken, or we cross compile.
3023 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3024 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3025 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3026 echo "${ECHO_T}$cross_compiling" >&6; }
3027
3028 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3029 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3030 if { (ac_try="$ac_link"
3031 case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_link") 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; then
3040   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3041 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3042 # work properly (i.e., refer to `conftest.exe'), while it won't with
3043 # `rm'.
3044 for ac_file in conftest.exe conftest conftest.*; do
3045   test -f "$ac_file" || continue
3046   case $ac_file in
3047     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3048     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049           break;;
3050     * ) break;;
3051   esac
3052 done
3053 else
3054   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3055 See \`config.log' for more details." >&5
3056 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3057 See \`config.log' for more details." >&2;}
3058    { (exit 1); exit 1; }; }
3059 fi
3060
3061 rm -f conftest$ac_cv_exeext
3062 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3063 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3064
3065 rm -f conftest.$ac_ext
3066 EXEEXT=$ac_cv_exeext
3067 ac_exeext=$EXEEXT
3068 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3069 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3070 if test "${ac_cv_objext+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079
3080 int
3081 main ()
3082 {
3083
3084   ;
3085   return 0;
3086 }
3087 _ACEOF
3088 rm -f conftest.o conftest.obj
3089 if { (ac_try="$ac_compile"
3090 case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_compile") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; then
3099   for ac_file in conftest.o conftest.obj conftest.*; do
3100   test -f "$ac_file" || continue;
3101   case $ac_file in
3102     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3103     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3104        break;;
3105   esac
3106 done
3107 else
3108   echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3112 See \`config.log' for more details." >&5
3113 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3114 See \`config.log' for more details." >&2;}
3115    { (exit 1); exit 1; }; }
3116 fi
3117
3118 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3119 fi
3120 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3121 echo "${ECHO_T}$ac_cv_objext" >&6; }
3122 OBJEXT=$ac_cv_objext
3123 ac_objext=$OBJEXT
3124 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3125 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3126 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3127   echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129   cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135
3136 int
3137 main ()
3138 {
3139 #ifndef __GNUC__
3140        choke me
3141 #endif
3142
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3149 case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_compile") 2>conftest.er1
3155   ac_status=$?
3156   grep -v '^ *+' conftest.er1 >conftest.err
3157   rm -f conftest.er1
3158   cat conftest.err >&5
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); } && {
3161          test -z "$ac_cxx_werror_flag" ||
3162          test ! -s conftest.err
3163        } && test -s conftest.$ac_objext; then
3164   ac_compiler_gnu=yes
3165 else
3166   echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169         ac_compiler_gnu=no
3170 fi
3171
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3174
3175 fi
3176 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3177 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3178 GXX=`test $ac_compiler_gnu = yes && echo yes`
3179 ac_test_CXXFLAGS=${CXXFLAGS+set}
3180 ac_save_CXXFLAGS=$CXXFLAGS
3181 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3182 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3183 if test "${ac_cv_prog_cxx_g+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3187    ac_cxx_werror_flag=yes
3188    ac_cv_prog_cxx_g=no
3189    CXXFLAGS="-g"
3190    cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h.  */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h.  */
3196
3197 int
3198 main ()
3199 {
3200
3201   ;
3202   return 0;
3203 }
3204 _ACEOF
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3207 case "(($ac_try" in
3208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209   *) ac_try_echo=$ac_try;;
3210 esac
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212   (eval "$ac_compile") 2>conftest.er1
3213   ac_status=$?
3214   grep -v '^ *+' conftest.er1 >conftest.err
3215   rm -f conftest.er1
3216   cat conftest.err >&5
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); } && {
3219          test -z "$ac_cxx_werror_flag" ||
3220          test ! -s conftest.err
3221        } && test -s conftest.$ac_objext; then
3222   ac_cv_prog_cxx_g=yes
3223 else
3224   echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227         CXXFLAGS=""
3228       cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h.  */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h.  */
3234
3235 int
3236 main ()
3237 {
3238
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (ac_try="$ac_compile"
3245 case "(($ac_try" in
3246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247   *) ac_try_echo=$ac_try;;
3248 esac
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250   (eval "$ac_compile") 2>conftest.er1
3251   ac_status=$?
3252   grep -v '^ *+' conftest.er1 >conftest.err
3253   rm -f conftest.er1
3254   cat conftest.err >&5
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); } && {
3257          test -z "$ac_cxx_werror_flag" ||
3258          test ! -s conftest.err
3259        } && test -s conftest.$ac_objext; then
3260   :
3261 else
3262   echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3266          CXXFLAGS="-g"
3267          cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273
3274 int
3275 main ()
3276 {
3277
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289   (eval "$ac_compile") 2>conftest.er1
3290   ac_status=$?
3291   grep -v '^ *+' conftest.er1 >conftest.err
3292   rm -f conftest.er1
3293   cat conftest.err >&5
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); } && {
3296          test -z "$ac_cxx_werror_flag" ||
3297          test ! -s conftest.err
3298        } && test -s conftest.$ac_objext; then
3299   ac_cv_prog_cxx_g=yes
3300 else
3301   echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304
3305 fi
3306
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 fi
3309
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 fi
3312
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3315 fi
3316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3317 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3318 if test "$ac_test_CXXFLAGS" = set; then
3319   CXXFLAGS=$ac_save_CXXFLAGS
3320 elif test $ac_cv_prog_cxx_g = yes; then
3321   if test "$GXX" = yes; then
3322     CXXFLAGS="-g -O2"
3323   else
3324     CXXFLAGS="-g"
3325   fi
3326 else
3327   if test "$GXX" = yes; then
3328     CXXFLAGS="-O2"
3329   else
3330     CXXFLAGS=
3331   fi
3332 fi
3333 ac_ext=c
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 DEPDIR="${am__leading_dot}deps"
3339
3340 ac_config_commands="$ac_config_commands depfiles"
3341
3342
3343 am_make=${MAKE-make}
3344 cat > confinc << 'END'
3345 am__doit:
3346         @echo done
3347 .PHONY: am__doit
3348 END
3349 # If we don't find an include directive, just comment out the code.
3350 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3351 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3352 am__include="#"
3353 am__quote=
3354 _am_result=none
3355 # First try GNU make style include.
3356 echo "include confinc" > confmf
3357 # We grep out `Entering directory' and `Leaving directory'
3358 # messages which can occur if `w' ends up in MAKEFLAGS.
3359 # In particular we don't look at `^make:' because GNU make might
3360 # be invoked under some other name (usually "gmake"), in which
3361 # case it prints its new name instead of `make'.
3362 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3363    am__include=include
3364    am__quote=
3365    _am_result=GNU
3366 fi
3367 # Now try BSD make style include.
3368 if test "$am__include" = "#"; then
3369    echo '.include "confinc"' > confmf
3370    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3371       am__include=.include
3372       am__quote="\""
3373       _am_result=BSD
3374    fi
3375 fi
3376
3377
3378 { echo "$as_me:$LINENO: result: $_am_result" >&5
3379 echo "${ECHO_T}$_am_result" >&6; }
3380 rm -f confinc confmf
3381
3382 # Check whether --enable-dependency-tracking was given.
3383 if test "${enable_dependency_tracking+set}" = set; then
3384   enableval=$enable_dependency_tracking;
3385 fi
3386
3387 if test "x$enable_dependency_tracking" != xno; then
3388   am_depcomp="$ac_aux_dir/depcomp"
3389   AMDEPBACKSLASH='\'
3390 fi
3391  if test "x$enable_dependency_tracking" != xno; then
3392   AMDEP_TRUE=
3393   AMDEP_FALSE='#'
3394 else
3395   AMDEP_TRUE='#'
3396   AMDEP_FALSE=
3397 fi
3398
3399
3400
3401 depcc="$CXX"  am_compiler_list=
3402
3403 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3404 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3405 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3409   # We make a subdir and do the tests there.  Otherwise we can end up
3410   # making bogus files that we don't know about and never remove.  For
3411   # instance it was reported that on HP-UX the gcc test will end up
3412   # making a dummy file named `D' -- because `-MD' means `put the output
3413   # in D'.
3414   mkdir conftest.dir
3415   # Copy depcomp to subdir because otherwise we won't find it if we're
3416   # using a relative directory.
3417   cp "$am_depcomp" conftest.dir
3418   cd conftest.dir
3419   # We will build objects and dependencies in a subdirectory because
3420   # it helps to detect inapplicable dependency modes.  For instance
3421   # both Tru64's cc and ICC support -MD to output dependencies as a
3422   # side effect of compilation, but ICC will put the dependencies in
3423   # the current directory while Tru64 will put them in the object
3424   # directory.
3425   mkdir sub
3426
3427   am_cv_CXX_dependencies_compiler_type=none
3428   if test "$am_compiler_list" = ""; then
3429      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3430   fi
3431   for depmode in $am_compiler_list; do
3432     # Setup a source with many dependencies, because some compilers
3433     # like to wrap large dependency lists on column 80 (with \), and
3434     # we should not choose a depcomp mode which is confused by this.
3435     #
3436     # We need to recreate these files for each test, as the compiler may
3437     # overwrite some of them when testing with obscure command lines.
3438     # This happens at least with the AIX C compiler.
3439     : > sub/conftest.c
3440     for i in 1 2 3 4 5 6; do
3441       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3442       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3443       # Solaris 8's {/usr,}/bin/sh.
3444       touch sub/conftst$i.h
3445     done
3446     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3447
3448     case $depmode in
3449     nosideeffect)
3450       # after this tag, mechanisms are not by side-effect, so they'll
3451       # only be used when explicitly requested
3452       if test "x$enable_dependency_tracking" = xyes; then
3453         continue
3454       else
3455         break
3456       fi
3457       ;;
3458     none) break ;;
3459     esac
3460     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3461     # mode.  It turns out that the SunPro C++ compiler does not properly
3462     # handle `-M -o', and we need to detect this.
3463     if depmode=$depmode \
3464        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3465        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3466        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3467          >/dev/null 2>conftest.err &&
3468        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3469        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472       # icc doesn't choke on unknown options, it will just issue warnings
3473       # or remarks (even with -Werror).  So we grep stderr for any message
3474       # that says an option was ignored or not supported.
3475       # When given -MP, icc 7.0 and 7.1 complain thusly:
3476       #   icc: Command line warning: ignoring option '-M'; no argument required
3477       # The diagnosis changed in icc 8.0:
3478       #   icc: Command line remark: option '-MP' not supported
3479       if (grep 'ignoring option' conftest.err ||
3480           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481         am_cv_CXX_dependencies_compiler_type=$depmode
3482         break
3483       fi
3484     fi
3485   done
3486
3487   cd ..
3488   rm -rf conftest.dir
3489 else
3490   am_cv_CXX_dependencies_compiler_type=none
3491 fi
3492
3493 fi
3494 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3495 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3496 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3497
3498  if
3499   test "x$enable_dependency_tracking" != xno \
3500   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3501   am__fastdepCXX_TRUE=
3502   am__fastdepCXX_FALSE='#'
3503 else
3504   am__fastdepCXX_TRUE='#'
3505   am__fastdepCXX_FALSE=
3506 fi
3507
3508
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3519 if test "${ac_cv_prog_CC+set}" = set; then
3520   echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522   if test -n "$CC"; then
3523   ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528   IFS=$as_save_IFS
3529   test -z "$as_dir" && as_dir=.
3530   for ac_exec_ext in '' $ac_executable_extensions; do
3531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534     break 2
3535   fi
3536 done
3537 done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544   { echo "$as_me:$LINENO: result: $CC" >&5
3545 echo "${ECHO_T}$CC" >&6; }
3546 else
3547   { echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6; }
3549 fi
3550
3551
3552 fi
3553 if test -z "$ac_cv_prog_CC"; then
3554   ac_ct_CC=$CC
3555   # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc; ac_word=$2
3557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   if test -n "$ac_ct_CC"; then
3563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568   IFS=$as_save_IFS
3569   test -z "$as_dir" && as_dir=.
3570   for ac_exec_ext in '' $ac_executable_extensions; do
3571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572     ac_cv_prog_ac_ct_CC="gcc"
3573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574     break 2
3575   fi
3576 done
3577 done
3578 IFS=$as_save_IFS
3579
3580 fi
3581 fi
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3585 echo "${ECHO_T}$ac_ct_CC" >&6; }
3586 else
3587   { echo "$as_me:$LINENO: result: no" >&5
3588 echo "${ECHO_T}no" >&6; }
3589 fi
3590
3591   if test "x$ac_ct_CC" = x; then
3592     CC=""
3593   else
3594     case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3597 whose name does not start with the host triplet.  If you think this
3598 configuration is useful to you, please write to autoconf@gnu.org." >&5
3599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3600 whose name does not start with the host triplet.  If you think this
3601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3602 ac_tool_warned=yes ;;
3603 esac
3604     CC=$ac_ct_CC
3605   fi
3606 else
3607   CC="$ac_cv_prog_CC"
3608 fi
3609
3610 if test -z "$CC"; then
3611           if test -n "$ac_tool_prefix"; then
3612     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3613 set dummy ${ac_tool_prefix}cc; ac_word=$2
3614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_CC+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   if test -n "$CC"; then
3620   ac_cv_prog_CC="$CC" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625   IFS=$as_save_IFS
3626   test -z "$as_dir" && as_dir=.
3627   for ac_exec_ext in '' $ac_executable_extensions; do
3628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629     ac_cv_prog_CC="${ac_tool_prefix}cc"
3630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631     break 2
3632   fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
3639 CC=$ac_cv_prog_CC
3640 if test -n "$CC"; then
3641   { echo "$as_me:$LINENO: result: $CC" >&5
3642 echo "${ECHO_T}$CC" >&6; }
3643 else
3644   { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; }
3646 fi
3647
3648
3649   fi
3650 fi
3651 if test -z "$CC"; then
3652   # Extract the first word of "cc", so it can be a program name with args.
3653 set dummy cc; ac_word=$2
3654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3656 if test "${ac_cv_prog_CC+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   if test -n "$CC"; then
3660   ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662   ac_prog_rejected=no
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   for ac_exec_ext in '' $ac_executable_extensions; do
3669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3671        ac_prog_rejected=yes
3672        continue
3673      fi
3674     ac_cv_prog_CC="cc"
3675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676     break 2
3677   fi
3678 done
3679 done
3680 IFS=$as_save_IFS
3681
3682 if test $ac_prog_rejected = yes; then
3683   # We found a bogon in the path, so make sure we never use it.
3684   set dummy $ac_cv_prog_CC
3685   shift
3686   if test $# != 0; then
3687     # We chose a different compiler from the bogus one.
3688     # However, it has the same basename, so the bogon will be chosen
3689     # first if we set CC to just the basename; use the full file name.
3690     shift
3691     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3692   fi
3693 fi
3694 fi
3695 fi
3696 CC=$ac_cv_prog_CC
3697 if test -n "$CC"; then
3698   { echo "$as_me:$LINENO: result: $CC" >&5
3699 echo "${ECHO_T}$CC" >&6; }
3700 else
3701   { echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6; }
3703 fi
3704
3705
3706 fi
3707 if test -z "$CC"; then
3708   if test -n "$ac_tool_prefix"; then
3709   for ac_prog in cl.exe
3710   do
3711     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3715 if test "${ac_cv_prog_CC+set}" = set; then
3716   echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718   if test -n "$CC"; then
3719   ac_cv_prog_CC="$CC" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726   for ac_exec_ext in '' $ac_executable_extensions; do
3727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730     break 2
3731   fi
3732 done
3733 done
3734 IFS=$as_save_IFS
3735
3736 fi
3737 fi
3738 CC=$ac_cv_prog_CC
3739 if test -n "$CC"; then
3740   { echo "$as_me:$LINENO: result: $CC" >&5
3741 echo "${ECHO_T}$CC" >&6; }
3742 else
3743   { echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6; }
3745 fi
3746
3747
3748     test -n "$CC" && break
3749   done
3750 fi
3751 if test -z "$CC"; then
3752   ac_ct_CC=$CC
3753   for ac_prog in cl.exe
3754 do
3755   # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   if test -n "$ac_ct_CC"; then
3763   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770   for ac_exec_ext in '' $ac_executable_extensions; do
3771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772     ac_cv_prog_ac_ct_CC="$ac_prog"
3773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774     break 2
3775   fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 fi
3781 fi
3782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3783 if test -n "$ac_ct_CC"; then
3784   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3785 echo "${ECHO_T}$ac_ct_CC" >&6; }
3786 else
3787   { echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6; }
3789 fi
3790
3791
3792   test -n "$ac_ct_CC" && break
3793 done
3794
3795   if test "x$ac_ct_CC" = x; then
3796     CC=""
3797   else
3798     case $cross_compiling:$ac_tool_warned in
3799 yes:)
3800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3801 whose name does not start with the host triplet.  If you think this
3802 configuration is useful to you, please write to autoconf@gnu.org." >&5
3803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3804 whose name does not start with the host triplet.  If you think this
3805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3806 ac_tool_warned=yes ;;
3807 esac
3808     CC=$ac_ct_CC
3809   fi
3810 fi
3811
3812 fi
3813
3814
3815 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3816 See \`config.log' for more details." >&5
3817 echo "$as_me: error: no acceptable C compiler found in \$PATH
3818 See \`config.log' for more details." >&2;}
3819    { (exit 1); exit 1; }; }
3820
3821 # Provide some information about the compiler.
3822 echo "$as_me:$LINENO: checking for C compiler version" >&5
3823 ac_compiler=`set X $ac_compile; echo $2`
3824 { (ac_try="$ac_compiler --version >&5"
3825 case "(($ac_try" in
3826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827   *) ac_try_echo=$ac_try;;
3828 esac
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830   (eval "$ac_compiler --version >&5") 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); }
3834 { (ac_try="$ac_compiler -v >&5"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840   (eval "$ac_compiler -v >&5") 2>&5
3841   ac_status=$?
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); }
3844 { (ac_try="$ac_compiler -V >&5"
3845 case "(($ac_try" in
3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847   *) ac_try_echo=$ac_try;;
3848 esac
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850   (eval "$ac_compiler -V >&5") 2>&5
3851   ac_status=$?
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); }
3854
3855 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3856 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3857 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h.  */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h.  */
3866
3867 int
3868 main ()
3869 {
3870 #ifndef __GNUC__
3871        choke me
3872 #endif
3873
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (ac_try="$ac_compile"
3880 case "(($ac_try" in
3881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882   *) ac_try_echo=$ac_try;;
3883 esac
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885   (eval "$ac_compile") 2>conftest.er1
3886   ac_status=$?
3887   grep -v '^ *+' conftest.er1 >conftest.err
3888   rm -f conftest.er1
3889   cat conftest.err >&5
3890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891   (exit $ac_status); } && {
3892          test -z "$ac_c_werror_flag" ||
3893          test ! -s conftest.err
3894        } && test -s conftest.$ac_objext; then
3895   ac_compiler_gnu=yes
3896 else
3897   echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3899
3900         ac_compiler_gnu=no
3901 fi
3902
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3905
3906 fi
3907 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3908 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3909 GCC=`test $ac_compiler_gnu = yes && echo yes`
3910 ac_test_CFLAGS=${CFLAGS+set}
3911 ac_save_CFLAGS=$CFLAGS
3912 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3914 if test "${ac_cv_prog_cc_g+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   ac_save_c_werror_flag=$ac_c_werror_flag
3918    ac_c_werror_flag=yes
3919    ac_cv_prog_cc_g=no
3920    CFLAGS="-g"
3921    cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h.  */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h.  */
3927
3928 int
3929 main ()
3930 {
3931
3932   ;
3933   return 0;
3934 }
3935 _ACEOF
3936 rm -f conftest.$ac_objext
3937 if { (ac_try="$ac_compile"
3938 case "(($ac_try" in
3939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940   *) ac_try_echo=$ac_try;;
3941 esac
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943   (eval "$ac_compile") 2>conftest.er1
3944   ac_status=$?
3945   grep -v '^ *+' conftest.er1 >conftest.err
3946   rm -f conftest.er1
3947   cat conftest.err >&5
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } && {
3950          test -z "$ac_c_werror_flag" ||
3951          test ! -s conftest.err
3952        } && test -s conftest.$ac_objext; then
3953   ac_cv_prog_cc_g=yes
3954 else
3955   echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958         CFLAGS=""
3959       cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h.  */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h.  */
3965
3966 int
3967 main ()
3968 {
3969
3970   ;
3971   return 0;
3972 }
3973 _ACEOF
3974 rm -f conftest.$ac_objext
3975 if { (ac_try="$ac_compile"
3976 case "(($ac_try" in
3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978   *) ac_try_echo=$ac_try;;
3979 esac
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981   (eval "$ac_compile") 2>conftest.er1
3982   ac_status=$?
3983   grep -v '^ *+' conftest.er1 >conftest.err
3984   rm -f conftest.er1
3985   cat conftest.err >&5
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); } && {
3988          test -z "$ac_c_werror_flag" ||
3989          test ! -s conftest.err
3990        } && test -s conftest.$ac_objext; then
3991   :
3992 else
3993   echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3995
3996         ac_c_werror_flag=$ac_save_c_werror_flag
3997          CFLAGS="-g"
3998          cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h.  */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h.  */
4004
4005 int
4006 main ()
4007 {
4008
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 rm -f conftest.$ac_objext
4014 if { (ac_try="$ac_compile"
4015 case "(($ac_try" in
4016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017   *) ac_try_echo=$ac_try;;
4018 esac
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020   (eval "$ac_compile") 2>conftest.er1
4021   ac_status=$?
4022   grep -v '^ *+' conftest.er1 >conftest.err
4023   rm -f conftest.er1
4024   cat conftest.err >&5
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } && {
4027          test -z "$ac_c_werror_flag" ||
4028          test ! -s conftest.err
4029        } && test -s conftest.$ac_objext; then
4030   ac_cv_prog_cc_g=yes
4031 else
4032   echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035
4036 fi
4037
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 fi
4040
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 fi
4043
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045    ac_c_werror_flag=$ac_save_c_werror_flag
4046 fi
4047 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4048 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4049 if test "$ac_test_CFLAGS" = set; then
4050   CFLAGS=$ac_save_CFLAGS
4051 elif test $ac_cv_prog_cc_g = yes; then
4052   if test "$GCC" = yes; then
4053     CFLAGS="-g -O2"
4054   else
4055     CFLAGS="-g"
4056   fi
4057 else
4058   if test "$GCC" = yes; then
4059     CFLAGS="-O2"
4060   else
4061     CFLAGS=
4062   fi
4063 fi
4064 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4065 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4066 if test "${ac_cv_prog_cc_c89+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   ac_cv_prog_cc_c89=no
4070 ac_save_CC=$CC
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 #include <stdarg.h>
4078 #include <stdio.h>
4079 #include <sys/types.h>
4080 #include <sys/stat.h>
4081 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4082 struct buf { int x; };
4083 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4084 static char *e (p, i)
4085      char **p;
4086      int i;
4087 {
4088   return p[i];
4089 }
4090 static char *f (char * (*g) (char **, int), char **p, ...)
4091 {
4092   char *s;
4093   va_list v;
4094   va_start (v,p);
4095   s = g (p, va_arg (v,int));
4096   va_end (v);
4097   return s;
4098 }
4099
4100 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4101    function prototypes and stuff, but not '\xHH' hex character constants.
4102    These don't provoke an error unfortunately, instead are silently treated
4103    as 'x'.  The following induces an error, until -std is added to get
4104    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4105    array size at least.  It's necessary to write '\x00'==0 to get something
4106    that's true only with -std.  */
4107 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4108
4109 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4110    inside strings and character constants.  */
4111 #define FOO(x) 'x'
4112 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4113
4114 int test (int i, double x);
4115 struct s1 {int (*f) (int a);};
4116 struct s2 {int (*f) (double a);};
4117 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4118 int argc;
4119 char **argv;
4120 int
4121 main ()
4122 {
4123 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4124   ;
4125   return 0;
4126 }
4127 _ACEOF
4128 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4129         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4130 do
4131   CC="$ac_save_CC $ac_arg"
4132   rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_compile") 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } && {
4146          test -z "$ac_c_werror_flag" ||
4147          test ! -s conftest.err
4148        } && test -s conftest.$ac_objext; then
4149   ac_cv_prog_cc_c89=$ac_arg
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154
4155 fi
4156
4157 rm -f core conftest.err conftest.$ac_objext
4158   test "x$ac_cv_prog_cc_c89" != "xno" && break
4159 done
4160 rm -f conftest.$ac_ext
4161 CC=$ac_save_CC
4162
4163 fi
4164 # AC_CACHE_VAL
4165 case "x$ac_cv_prog_cc_c89" in
4166   x)
4167     { echo "$as_me:$LINENO: result: none needed" >&5
4168 echo "${ECHO_T}none needed" >&6; } ;;
4169   xno)
4170     { echo "$as_me:$LINENO: result: unsupported" >&5
4171 echo "${ECHO_T}unsupported" >&6; } ;;
4172   *)
4173     CC="$CC $ac_cv_prog_cc_c89"
4174     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4175 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4176 esac
4177
4178
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184
4185 depcc="$CC"   am_compiler_list=
4186
4187 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4188 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4189 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4193   # We make a subdir and do the tests there.  Otherwise we can end up
4194   # making bogus files that we don't know about and never remove.  For
4195   # instance it was reported that on HP-UX the gcc test will end up
4196   # making a dummy file named `D' -- because `-MD' means `put the output
4197   # in D'.
4198   mkdir conftest.dir
4199   # Copy depcomp to subdir because otherwise we won't find it if we're
4200   # using a relative directory.
4201   cp "$am_depcomp" conftest.dir
4202   cd conftest.dir
4203   # We will build objects and dependencies in a subdirectory because
4204   # it helps to detect inapplicable dependency modes.  For instance
4205   # both Tru64's cc and ICC support -MD to output dependencies as a
4206   # side effect of compilation, but ICC will put the dependencies in
4207   # the current directory while Tru64 will put them in the object
4208   # directory.
4209   mkdir sub
4210
4211   am_cv_CC_dependencies_compiler_type=none
4212   if test "$am_compiler_list" = ""; then
4213      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4214   fi
4215   for depmode in $am_compiler_list; do
4216     # Setup a source with many dependencies, because some compilers
4217     # like to wrap large dependency lists on column 80 (with \), and
4218     # we should not choose a depcomp mode which is confused by this.
4219     #
4220     # We need to recreate these files for each test, as the compiler may
4221     # overwrite some of them when testing with obscure command lines.
4222     # This happens at least with the AIX C compiler.
4223     : > sub/conftest.c
4224     for i in 1 2 3 4 5 6; do
4225       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4226       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4227       # Solaris 8's {/usr,}/bin/sh.
4228       touch sub/conftst$i.h
4229     done
4230     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4231
4232     case $depmode in
4233     nosideeffect)
4234       # after this tag, mechanisms are not by side-effect, so they'll
4235       # only be used when explicitly requested
4236       if test "x$enable_dependency_tracking" = xyes; then
4237         continue
4238       else
4239         break
4240       fi
4241       ;;
4242     none) break ;;
4243     esac
4244     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4245     # mode.  It turns out that the SunPro C++ compiler does not properly
4246     # handle `-M -o', and we need to detect this.
4247     if depmode=$depmode \
4248        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4249        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4250        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4251          >/dev/null 2>conftest.err &&
4252        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4253        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4254        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4255        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4256       # icc doesn't choke on unknown options, it will just issue warnings
4257       # or remarks (even with -Werror).  So we grep stderr for any message
4258       # that says an option was ignored or not supported.
4259       # When given -MP, icc 7.0 and 7.1 complain thusly:
4260       #   icc: Command line warning: ignoring option '-M'; no argument required
4261       # The diagnosis changed in icc 8.0:
4262       #   icc: Command line remark: option '-MP' not supported
4263       if (grep 'ignoring option' conftest.err ||
4264           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4265         am_cv_CC_dependencies_compiler_type=$depmode
4266         break
4267       fi
4268     fi
4269   done
4270
4271   cd ..
4272   rm -rf conftest.dir
4273 else
4274   am_cv_CC_dependencies_compiler_type=none
4275 fi
4276
4277 fi
4278 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4279 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4280 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4281
4282  if
4283   test "x$enable_dependency_tracking" != xno \
4284   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4285   am__fastdepCC_TRUE=
4286   am__fastdepCC_FALSE='#'
4287 else
4288   am__fastdepCC_TRUE='#'
4289   am__fastdepCC_FALSE=
4290 fi
4291
4292
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4299 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4300 # On Suns, sometimes $CPP names a directory.
4301 if test -n "$CPP" && test -d "$CPP"; then
4302   CPP=
4303 fi
4304 if test -z "$CPP"; then
4305   if test "${ac_cv_prog_CPP+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308       # Double quotes because CPP needs to be expanded
4309     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4310     do
4311       ac_preproc_ok=false
4312 for ac_c_preproc_warn_flag in '' yes
4313 do
4314   # Use a header file that comes with gcc, so configuring glibc
4315   # with a fresh cross-compiler works.
4316   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317   # <limits.h> exists even on freestanding compilers.
4318   # On the NeXT, cc -E runs the code through the compiler's parser,
4319   # not just through cpp. "Syntax error" is here to catch this case.
4320   cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h.  */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h.  */
4326 #ifdef __STDC__
4327 # include <limits.h>
4328 #else
4329 # include <assert.h>
4330 #endif
4331                      Syntax error
4332 _ACEOF
4333 if { (ac_try="$ac_cpp conftest.$ac_ext"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4340   ac_status=$?
4341   grep -v '^ *+' conftest.er1 >conftest.err
4342   rm -f conftest.er1
4343   cat conftest.err >&5
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } >/dev/null && {
4346          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347          test ! -s conftest.err
4348        }; then
4349   :
4350 else
4351   echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4353
4354   # Broken: fails on valid input.
4355 continue
4356 fi
4357
4358 rm -f conftest.err conftest.$ac_ext
4359
4360   # OK, works on sane cases.  Now check whether nonexistent headers
4361   # can be detected and how.
4362   cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 #include <ac_nonexistent.h>
4369 _ACEOF
4370 if { (ac_try="$ac_cpp conftest.$ac_ext"
4371 case "(($ac_try" in
4372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373   *) ac_try_echo=$ac_try;;
4374 esac
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4377   ac_status=$?
4378   grep -v '^ *+' conftest.er1 >conftest.err
4379   rm -f conftest.er1
4380   cat conftest.err >&5
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); } >/dev/null && {
4383          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4384          test ! -s conftest.err
4385        }; then
4386   # Broken: success on invalid input.
4387 continue
4388 else
4389   echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392   # Passes both tests.
4393 ac_preproc_ok=:
4394 break
4395 fi
4396
4397 rm -f conftest.err conftest.$ac_ext
4398
4399 done
4400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401 rm -f conftest.err conftest.$ac_ext
4402 if $ac_preproc_ok; then
4403   break
4404 fi
4405
4406     done
4407     ac_cv_prog_CPP=$CPP
4408
4409 fi
4410   CPP=$ac_cv_prog_CPP
4411 else
4412   ac_cv_prog_CPP=$CPP
4413 fi
4414 { echo "$as_me:$LINENO: result: $CPP" >&5
4415 echo "${ECHO_T}$CPP" >&6; }
4416 ac_preproc_ok=false
4417 for ac_c_preproc_warn_flag in '' yes
4418 do
4419   # Use a header file that comes with gcc, so configuring glibc
4420   # with a fresh cross-compiler works.
4421   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422   # <limits.h> exists even on freestanding compilers.
4423   # On the NeXT, cc -E runs the code through the compiler's parser,
4424   # not just through cpp. "Syntax error" is here to catch this case.
4425   cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h.  */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h.  */
4431 #ifdef __STDC__
4432 # include <limits.h>
4433 #else
4434 # include <assert.h>
4435 #endif
4436                      Syntax error
4437 _ACEOF
4438 if { (ac_try="$ac_cpp conftest.$ac_ext"
4439 case "(($ac_try" in
4440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441   *) ac_try_echo=$ac_try;;
4442 esac
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4445   ac_status=$?
4446   grep -v '^ *+' conftest.er1 >conftest.err
4447   rm -f conftest.er1
4448   cat conftest.err >&5
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); } >/dev/null && {
4451          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4452          test ! -s conftest.err
4453        }; then
4454   :
4455 else
4456   echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459   # Broken: fails on valid input.
4460 continue
4461 fi
4462
4463 rm -f conftest.err conftest.$ac_ext
4464
4465   # OK, works on sane cases.  Now check whether nonexistent headers
4466   # can be detected and how.
4467   cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h.  */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h.  */
4473 #include <ac_nonexistent.h>
4474 _ACEOF
4475 if { (ac_try="$ac_cpp conftest.$ac_ext"
4476 case "(($ac_try" in
4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478   *) ac_try_echo=$ac_try;;
4479 esac
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4482   ac_status=$?
4483   grep -v '^ *+' conftest.er1 >conftest.err
4484   rm -f conftest.er1
4485   cat conftest.err >&5
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } >/dev/null && {
4488          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4489          test ! -s conftest.err
4490        }; then
4491   # Broken: success on invalid input.
4492 continue
4493 else
4494   echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4496
4497   # Passes both tests.
4498 ac_preproc_ok=:
4499 break
4500 fi
4501
4502 rm -f conftest.err conftest.$ac_ext
4503
4504 done
4505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4506 rm -f conftest.err conftest.$ac_ext
4507 if $ac_preproc_ok; then
4508   :
4509 else
4510   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4511 See \`config.log' for more details." >&5
4512 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4513 See \`config.log' for more details." >&2;}
4514    { (exit 1); exit 1; }; }
4515 fi
4516
4517 ac_ext=c
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523 # Check whether --enable-shared was given.
4524 if test "${enable_shared+set}" = set; then
4525   enableval=$enable_shared; p=${PACKAGE-default}
4526     case $enableval in
4527     yes) enable_shared=yes ;;
4528     no) enable_shared=no ;;
4529     *)
4530       enable_shared=no
4531       # Look at the argument we got.  We use all the common list separators.
4532       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4533       for pkg in $enableval; do
4534         IFS="$lt_save_ifs"
4535         if test "X$pkg" = "X$p"; then
4536           enable_shared=yes
4537         fi
4538       done
4539       IFS="$lt_save_ifs"
4540       ;;
4541     esac
4542 else
4543   enable_shared=yes
4544 fi
4545
4546
4547 # Check whether --enable-fast-install was given.
4548 if test "${enable_fast_install+set}" = set; then
4549   enableval=$enable_fast_install; p=${PACKAGE-default}
4550     case $enableval in
4551     yes) enable_fast_install=yes ;;
4552     no) enable_fast_install=no ;;
4553     *)
4554       enable_fast_install=no
4555       # Look at the argument we got.  We use all the common list separators.
4556       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4557       for pkg in $enableval; do
4558         IFS="$lt_save_ifs"
4559         if test "X$pkg" = "X$p"; then
4560           enable_fast_install=yes
4561         fi
4562       done
4563       IFS="$lt_save_ifs"
4564       ;;
4565     esac
4566 else
4567   enable_fast_install=yes
4568 fi
4569
4570
4571 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4572 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4573 if test "${lt_cv_path_SED+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   # Loop through the user's path and test for sed and gsed.
4577 # Then use that list of sed's as ones to test for truncation.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583   for lt_ac_prog in sed gsed; do
4584     for ac_exec_ext in '' $ac_executable_extensions; do
4585       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4586         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4587       fi
4588     done
4589   done
4590 done
4591 IFS=$as_save_IFS
4592 lt_ac_max=0
4593 lt_ac_count=0
4594 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4595 # along with /bin/sed that truncates output.
4596 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4597   test ! -f $lt_ac_sed && continue
4598   cat /dev/null > conftest.in
4599   lt_ac_count=0
4600   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4601   # Check for GNU sed and select it if it is found.
4602   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4603     lt_cv_path_SED=$lt_ac_sed
4604     break
4605   fi
4606   while true; do
4607     cat conftest.in conftest.in >conftest.tmp
4608     mv conftest.tmp conftest.in
4609     cp conftest.in conftest.nl
4610     echo >>conftest.nl
4611     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4612     cmp -s conftest.out conftest.nl || break
4613     # 10000 chars as input seems more than enough
4614     test $lt_ac_count -gt 10 && break
4615     lt_ac_count=`expr $lt_ac_count + 1`
4616     if test $lt_ac_count -gt $lt_ac_max; then
4617       lt_ac_max=$lt_ac_count
4618       lt_cv_path_SED=$lt_ac_sed
4619     fi
4620   done
4621 done
4622
4623 fi
4624
4625 SED=$lt_cv_path_SED
4626
4627 { echo "$as_me:$LINENO: result: $SED" >&5
4628 echo "${ECHO_T}$SED" >&6; }
4629
4630 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4631 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4632 if test "${ac_cv_path_GREP+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   # Extract the first word of "grep ggrep" to use in msg output
4636 if test -z "$GREP"; then
4637 set dummy grep ggrep; ac_prog_name=$2
4638 if test "${ac_cv_path_GREP+set}" = set; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   ac_path_GREP_found=false
4642 # Loop through the user's path and test for each of PROGNAME-LIST
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648   for ac_prog in grep ggrep; do
4649   for ac_exec_ext in '' $ac_executable_extensions; do
4650     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4651     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4652     # Check for GNU ac_path_GREP and select it if it is found.
4653   # Check for GNU $ac_path_GREP
4654 case `"$ac_path_GREP" --version 2>&1` in
4655 *GNU*)
4656   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4657 *)
4658   ac_count=0
4659   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4660   while :
4661   do
4662     cat "conftest.in" "conftest.in" >"conftest.tmp"
4663     mv "conftest.tmp" "conftest.in"
4664     cp "conftest.in" "conftest.nl"
4665     echo 'GREP' >> "conftest.nl"
4666     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4667     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4668     ac_count=`expr $ac_count + 1`
4669     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4670       # Best one so far, save it but keep looking for a better one
4671       ac_cv_path_GREP="$ac_path_GREP"
4672       ac_path_GREP_max=$ac_count
4673     fi
4674     # 10*(2^10) chars as input seems more than enough
4675     test $ac_count -gt 10 && break
4676   done
4677   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678 esac
4679
4680
4681     $ac_path_GREP_found && break 3
4682   done
4683 done
4684
4685 done
4686 IFS=$as_save_IFS
4687
4688
4689 fi
4690
4691 GREP="$ac_cv_path_GREP"
4692 if test -z "$GREP"; then
4693   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4694 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4695    { (exit 1); exit 1; }; }
4696 fi
4697
4698 else
4699   ac_cv_path_GREP=$GREP
4700 fi
4701
4702
4703 fi
4704 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4705 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4706  GREP="$ac_cv_path_GREP"
4707
4708
4709 { echo "$as_me:$LINENO: checking for egrep" >&5
4710 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4711 if test "${ac_cv_path_EGREP+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4715    then ac_cv_path_EGREP="$GREP -E"
4716    else
4717      # Extract the first word of "egrep" to use in msg output
4718 if test -z "$EGREP"; then
4719 set dummy egrep; ac_prog_name=$2
4720 if test "${ac_cv_path_EGREP+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   ac_path_EGREP_found=false
4724 # Loop through the user's path and test for each of PROGNAME-LIST
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4727 do
4728   IFS=$as_save_IFS
4729   test -z "$as_dir" && as_dir=.
4730   for ac_prog in egrep; do
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4733     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4734     # Check for GNU ac_path_EGREP and select it if it is found.
4735   # Check for GNU $ac_path_EGREP
4736 case `"$ac_path_EGREP" --version 2>&1` in
4737 *GNU*)
4738   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4739 *)
4740   ac_count=0
4741   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4742   while :
4743   do
4744     cat "conftest.in" "conftest.in" >"conftest.tmp"
4745     mv "conftest.tmp" "conftest.in"
4746     cp "conftest.in" "conftest.nl"
4747     echo 'EGREP' >> "conftest.nl"
4748     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4750     ac_count=`expr $ac_count + 1`
4751     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4752       # Best one so far, save it but keep looking for a better one
4753       ac_cv_path_EGREP="$ac_path_EGREP"
4754       ac_path_EGREP_max=$ac_count
4755     fi
4756     # 10*(2^10) chars as input seems more than enough
4757     test $ac_count -gt 10 && break
4758   done
4759   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760 esac
4761
4762
4763     $ac_path_EGREP_found && break 3
4764   done
4765 done
4766
4767 done
4768 IFS=$as_save_IFS
4769
4770
4771 fi
4772
4773 EGREP="$ac_cv_path_EGREP"
4774 if test -z "$EGREP"; then
4775   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4776 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4777    { (exit 1); exit 1; }; }
4778 fi
4779
4780 else
4781   ac_cv_path_EGREP=$EGREP
4782 fi
4783
4784
4785    fi
4786 fi
4787 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4788 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4789  EGREP="$ac_cv_path_EGREP"
4790
4791
4792
4793 # Check whether --with-gnu-ld was given.
4794 if test "${with_gnu_ld+set}" = set; then
4795   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4796 else
4797   with_gnu_ld=no
4798 fi
4799
4800 ac_prog=ld
4801 if test "$GCC" = yes; then
4802   # Check if gcc -print-prog-name=ld gives a path.
4803   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4804 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4805   case $host in
4806   *-*-mingw*)
4807     # gcc leaves a trailing carriage return which upsets mingw
4808     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4809   *)
4810     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4811   esac
4812   case $ac_prog in
4813     # Accept absolute paths.
4814     [\\/]* | ?:[\\/]*)
4815       re_direlt='/[^/][^/]*/\.\./'
4816       # Canonicalize the pathname of ld
4817       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4818       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4819         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4820       done
4821       test -z "$LD" && LD="$ac_prog"
4822       ;;
4823   "")
4824     # If it fails, then pretend we aren't using GCC.
4825     ac_prog=ld
4826     ;;
4827   *)
4828     # If it is relative, then search for the first ld in PATH.
4829     with_gnu_ld=unknown
4830     ;;
4831   esac
4832 elif test "$with_gnu_ld" = yes; then
4833   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4834 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4835 else
4836   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4837 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4838 fi
4839 if test "${lt_cv_path_LD+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   if test -z "$LD"; then
4843   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4844   for ac_dir in $PATH; do
4845     IFS="$lt_save_ifs"
4846     test -z "$ac_dir" && ac_dir=.
4847     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4848       lt_cv_path_LD="$ac_dir/$ac_prog"
4849       # Check to see if the program is GNU ld.  I'd rather use --version,
4850       # but apparently some variants of GNU ld only accept -v.
4851       # Break only if it was the GNU/non-GNU ld that we prefer.
4852       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4853       *GNU* | *'with BFD'*)
4854         test "$with_gnu_ld" != no && break
4855         ;;
4856       *)
4857         test "$with_gnu_ld" != yes && break
4858         ;;
4859       esac
4860     fi
4861   done
4862   IFS="$lt_save_ifs"
4863 else
4864   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4865 fi
4866 fi
4867
4868 LD="$lt_cv_path_LD"
4869 if test -n "$LD"; then
4870   { echo "$as_me:$LINENO: result: $LD" >&5
4871 echo "${ECHO_T}$LD" >&6; }
4872 else
4873   { echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6; }
4875 fi
4876 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4877 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4878    { (exit 1); exit 1; }; }
4879 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4880 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4881 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4882   echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4885 case `$LD -v 2>&1 </dev/null` in
4886 *GNU* | *'with BFD'*)
4887   lt_cv_prog_gnu_ld=yes
4888   ;;
4889 *)
4890   lt_cv_prog_gnu_ld=no
4891   ;;
4892 esac
4893 fi
4894 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4895 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4896 with_gnu_ld=$lt_cv_prog_gnu_ld
4897
4898
4899 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4900 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4901 if test "${lt_cv_ld_reload_flag+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   lt_cv_ld_reload_flag='-r'
4905 fi
4906 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4907 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4908 reload_flag=$lt_cv_ld_reload_flag
4909 case $reload_flag in
4910 "" | " "*) ;;
4911 *) reload_flag=" $reload_flag" ;;
4912 esac
4913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4914 case $host_os in
4915   darwin*)
4916     if test "$GCC" = yes; then
4917       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4918     else
4919       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4920     fi
4921     ;;
4922 esac
4923
4924 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4925 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4926 if test "${lt_cv_path_NM+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   if test -n "$NM"; then
4930   # Let the user override the test.
4931   lt_cv_path_NM="$NM"
4932 else
4933   lt_nm_to_check="${ac_tool_prefix}nm"
4934   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4935     lt_nm_to_check="$lt_nm_to_check nm"
4936   fi
4937   for lt_tmp_nm in $lt_nm_to_check; do
4938     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4939     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4940       IFS="$lt_save_ifs"
4941       test -z "$ac_dir" && ac_dir=.
4942       tmp_nm="$ac_dir/$lt_tmp_nm"
4943       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4944         # Check to see if the nm accepts a BSD-compat flag.
4945         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4946         #   nm: unknown option "B" ignored
4947         # Tru64's nm complains that /dev/null is an invalid object file
4948         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4949         */dev/null* | *'Invalid file or object type'*)
4950           lt_cv_path_NM="$tmp_nm -B"
4951           break
4952           ;;
4953         *)
4954           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4955           */dev/null*)
4956             lt_cv_path_NM="$tmp_nm -p"
4957             break
4958             ;;
4959           *)
4960             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4961             continue # so that we can try to find one that supports BSD flags
4962             ;;
4963           esac
4964           ;;
4965         esac
4966       fi
4967     done
4968     IFS="$lt_save_ifs"
4969   done
4970   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4971 fi
4972 fi
4973 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4974 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4975 NM="$lt_cv_path_NM"
4976
4977 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4978 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4979 LN_S=$as_ln_s
4980 if test "$LN_S" = "ln -s"; then
4981   { echo "$as_me:$LINENO: result: yes" >&5
4982 echo "${ECHO_T}yes" >&6; }
4983 else
4984   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4985 echo "${ECHO_T}no, using $LN_S" >&6; }
4986 fi
4987
4988 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4989 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4990 if test "${lt_cv_deplibs_check_method+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   lt_cv_file_magic_cmd='$MAGIC_CMD'
4994 lt_cv_file_magic_test_file=
4995 lt_cv_deplibs_check_method='unknown'
4996 # Need to set the preceding variable on all platforms that support
4997 # interlibrary dependencies.
4998 # 'none' -- dependencies not supported.
4999 # `unknown' -- same as none, but documents that we really don't know.
5000 # 'pass_all' -- all dependencies passed with no checks.
5001 # 'test_compile' -- check by making test program.
5002 # 'file_magic [[regex]]' -- check by looking for files in library path
5003 # which responds to the $file_magic_cmd with a given extended regex.
5004 # If you have `file' or equivalent on your system and you're not sure
5005 # whether `pass_all' will *always* work, you probably want this one.
5006
5007 case $host_os in
5008 aix4* | aix5*)
5009   lt_cv_deplibs_check_method=pass_all
5010   ;;
5011
5012 beos*)
5013   lt_cv_deplibs_check_method=pass_all
5014   ;;
5015
5016 bsdi[45]*)
5017   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5018   lt_cv_file_magic_cmd='/usr/bin/file -L'
5019   lt_cv_file_magic_test_file=/shlib/libc.so
5020   ;;
5021
5022 cygwin*)
5023   # func_win32_libid is a shell function defined in ltmain.sh
5024   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5025   lt_cv_file_magic_cmd='func_win32_libid'
5026   ;;
5027
5028 mingw* | pw32*)
5029   # Base MSYS/MinGW do not provide the 'file' command needed by
5030   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5031   # unless we find 'file', for example because we are cross-compiling.
5032   if ( file / ) >/dev/null 2>&1; then
5033     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5034     lt_cv_file_magic_cmd='func_win32_libid'
5035   else
5036     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5037     lt_cv_file_magic_cmd='$OBJDUMP -f'
5038   fi
5039   ;;
5040
5041 darwin* | rhapsody*)
5042   lt_cv_deplibs_check_method=pass_all
5043   ;;
5044
5045 freebsd* | dragonfly*)
5046   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5047     case $host_cpu in
5048     i*86 )
5049       # Not sure whether the presence of OpenBSD here was a mistake.
5050       # Let's accept both of them until this is cleared up.
5051       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5052       lt_cv_file_magic_cmd=/usr/bin/file
5053       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5054       ;;
5055     esac
5056   else
5057     lt_cv_deplibs_check_method=pass_all
5058   fi
5059   ;;
5060
5061 gnu*)
5062   lt_cv_deplibs_check_method=pass_all
5063   ;;
5064
5065 hpux10.20* | hpux11*)
5066   lt_cv_file_magic_cmd=/usr/bin/file
5067   case $host_cpu in
5068   ia64*)
5069     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5070     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5071     ;;
5072   hppa*64*)
5073     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]'
5074     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5075     ;;
5076   *)
5077     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5078     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5079     ;;
5080   esac
5081   ;;
5082
5083 interix[3-9]*)
5084   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5085   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5086   ;;
5087
5088 irix5* | irix6* | nonstopux*)
5089   case $LD in
5090   *-32|*"-32 ") libmagic=32-bit;;
5091   *-n32|*"-n32 ") libmagic=N32;;
5092   *-64|*"-64 ") libmagic=64-bit;;
5093   *) libmagic=never-match;;
5094   esac
5095   lt_cv_deplibs_check_method=pass_all
5096   ;;
5097
5098 # This must be Linux ELF.
5099 linux* | k*bsd*-gnu)
5100   lt_cv_deplibs_check_method=pass_all
5101   ;;
5102
5103 netbsd* | netbsdelf*-gnu)
5104   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5105     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5106   else
5107     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5108   fi
5109   ;;
5110
5111 newos6*)
5112   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5113   lt_cv_file_magic_cmd=/usr/bin/file
5114   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5115   ;;
5116
5117 nto-qnx*)
5118   lt_cv_deplibs_check_method=unknown
5119   ;;
5120
5121 openbsd*)
5122   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5123     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5124   else
5125     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5126   fi
5127   ;;
5128
5129 osf3* | osf4* | osf5*)
5130   lt_cv_deplibs_check_method=pass_all
5131   ;;
5132
5133 rdos*)
5134   lt_cv_deplibs_check_method=pass_all
5135   ;;
5136
5137 solaris*)
5138   lt_cv_deplibs_check_method=pass_all
5139   ;;
5140
5141 sysv4 | sysv4.3*)
5142   case $host_vendor in
5143   motorola)
5144     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]'
5145     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5146     ;;
5147   ncr)
5148     lt_cv_deplibs_check_method=pass_all
5149     ;;
5150   sequent)
5151     lt_cv_file_magic_cmd='/bin/file'
5152     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5153     ;;
5154   sni)
5155     lt_cv_file_magic_cmd='/bin/file'
5156     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5157     lt_cv_file_magic_test_file=/lib/libc.so
5158     ;;
5159   siemens)
5160     lt_cv_deplibs_check_method=pass_all
5161     ;;
5162   pc)
5163     lt_cv_deplibs_check_method=pass_all
5164     ;;
5165   esac
5166   ;;
5167
5168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171 esac
5172
5173 fi
5174 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5175 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5176 file_magic_cmd=$lt_cv_file_magic_cmd
5177 deplibs_check_method=$lt_cv_deplibs_check_method
5178 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5179
5180
5181
5182
5183 # If no C compiler was specified, use CC.
5184 LTCC=${LTCC-"$CC"}
5185
5186 # If no C compiler flags were specified, use CFLAGS.
5187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5188
5189 # Allow CC to be a program name with arguments.
5190 compiler=$CC
5191
5192
5193 # Check whether --enable-libtool-lock was given.
5194 if test "${enable_libtool_lock+set}" = set; then
5195   enableval=$enable_libtool_lock;
5196 fi
5197
5198 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5199
5200 # Some flags need to be propagated to the compiler or linker for good
5201 # libtool support.
5202 case $host in
5203 ia64-*-hpux*)
5204   # Find out which ABI we are using.
5205   echo 'int i;' > conftest.$ac_ext
5206   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5207   (eval $ac_compile) 2>&5
5208   ac_status=$?
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); }; then
5211     case `/usr/bin/file conftest.$ac_objext` in
5212     *ELF-32*)
5213       HPUX_IA64_MODE="32"
5214       ;;
5215     *ELF-64*)
5216       HPUX_IA64_MODE="64"
5217       ;;
5218     esac
5219   fi
5220   rm -rf conftest*
5221   ;;
5222 *-*-irix6*)
5223   # Find out which ABI we are using.
5224   echo '#line 5224 "configure"' > conftest.$ac_ext
5225   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226   (eval $ac_compile) 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); }; then
5230    if test "$lt_cv_prog_gnu_ld" = yes; then
5231     case `/usr/bin/file conftest.$ac_objext` in
5232     *32-bit*)
5233       LD="${LD-ld} -melf32bsmip"
5234       ;;
5235     *N32*)
5236       LD="${LD-ld} -melf32bmipn32"
5237       ;;
5238     *64-bit*)
5239       LD="${LD-ld} -melf64bmip"
5240       ;;
5241     esac
5242    else
5243     case `/usr/bin/file conftest.$ac_objext` in
5244     *32-bit*)
5245       LD="${LD-ld} -32"
5246       ;;
5247     *N32*)
5248       LD="${LD-ld} -n32"
5249       ;;
5250     *64-bit*)
5251       LD="${LD-ld} -64"
5252       ;;
5253     esac
5254    fi
5255   fi
5256   rm -rf conftest*
5257   ;;
5258
5259 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5260 s390*-*linux*|sparc*-*linux*)
5261   # Find out which ABI we are using.
5262   echo 'int i;' > conftest.$ac_ext
5263   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264   (eval $ac_compile) 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); }; then
5268     case `/usr/bin/file conftest.o` in
5269     *32-bit*)
5270       case $host in
5271         x86_64-*kfreebsd*-gnu)
5272           LD="${LD-ld} -m elf_i386_fbsd"
5273           ;;
5274         x86_64-*linux*)
5275           LD="${LD-ld} -m elf_i386"
5276           ;;
5277         ppc64-*linux*|powerpc64-*linux*)
5278           LD="${LD-ld} -m elf32ppclinux"
5279           ;;
5280         s390x-*linux*)
5281           LD="${LD-ld} -m elf_s390"
5282           ;;
5283         sparc64-*linux*)
5284           LD="${LD-ld} -m elf32_sparc"
5285           ;;
5286       esac
5287       ;;
5288     *64-bit*)
5289       case $host in
5290         x86_64-*kfreebsd*-gnu)
5291           LD="${LD-ld} -m elf_x86_64_fbsd"
5292           ;;
5293         x86_64-*linux*)
5294           LD="${LD-ld} -m elf_x86_64"
5295           ;;
5296         ppc*-*linux*|powerpc*-*linux*)
5297           LD="${LD-ld} -m elf64ppc"
5298           ;;
5299         s390*-*linux*)
5300           LD="${LD-ld} -m elf64_s390"
5301           ;;
5302         sparc*-*linux*)
5303           LD="${LD-ld} -m elf64_sparc"
5304           ;;
5305       esac
5306       ;;
5307     esac
5308   fi
5309   rm -rf conftest*
5310   ;;
5311
5312 *-*-sco3.2v5*)
5313   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5314   SAVE_CFLAGS="$CFLAGS"
5315   CFLAGS="$CFLAGS -belf"
5316   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5317 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5318 if test "${lt_cv_cc_needs_belf+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   ac_ext=c
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326
5327      cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333
5334 int
5335 main ()
5336 {
5337
5338   ;
5339   return 0;
5340 }
5341 _ACEOF
5342 rm -f conftest.$ac_objext conftest$ac_exeext
5343 if { (ac_try="$ac_link"
5344 case "(($ac_try" in
5345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346   *) ac_try_echo=$ac_try;;
5347 esac
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349   (eval "$ac_link") 2>conftest.er1
5350   ac_status=$?
5351   grep -v '^ *+' conftest.er1 >conftest.err
5352   rm -f conftest.er1
5353   cat conftest.err >&5
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); } && {
5356          test -z "$ac_c_werror_flag" ||
5357          test ! -s conftest.err
5358        } && test -s conftest$ac_exeext &&
5359        $as_test_x conftest$ac_exeext; then
5360   lt_cv_cc_needs_belf=yes
5361 else
5362   echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365         lt_cv_cc_needs_belf=no
5366 fi
5367
5368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5369       conftest$ac_exeext conftest.$ac_ext
5370      ac_ext=c
5371 ac_cpp='$CPP $CPPFLAGS'
5372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375
5376 fi
5377 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5378 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5379   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5380     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5381     CFLAGS="$SAVE_CFLAGS"
5382   fi
5383   ;;
5384 sparc*-*solaris*)
5385   # Find out which ABI we are using.
5386   echo 'int i;' > conftest.$ac_ext
5387   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388   (eval $ac_compile) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }; then
5392     case `/usr/bin/file conftest.o` in
5393     *64-bit*)
5394       case $lt_cv_prog_gnu_ld in
5395       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5396       *)    LD="${LD-ld} -64" ;;
5397       esac
5398       ;;
5399     esac
5400   fi
5401   rm -rf conftest*
5402   ;;
5403
5404 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5405   if test -n "$ac_tool_prefix"; then
5406   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5407 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5410 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   if test -n "$DLLTOOL"; then
5414   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421   for ac_exec_ext in '' $ac_executable_extensions; do
5422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428 done
5429 IFS=$as_save_IFS
5430
5431 fi
5432 fi
5433 DLLTOOL=$ac_cv_prog_DLLTOOL
5434 if test -n "$DLLTOOL"; then
5435   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5436 echo "${ECHO_T}$DLLTOOL" >&6; }
5437 else
5438   { echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6; }
5440 fi
5441
5442
5443 fi
5444 if test -z "$ac_cv_prog_DLLTOOL"; then
5445   ac_ct_DLLTOOL=$DLLTOOL
5446   # Extract the first word of "dlltool", so it can be a program name with args.
5447 set dummy dlltool; ac_word=$2
5448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5450 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   if test -n "$ac_ct_DLLTOOL"; then
5454   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461   for ac_exec_ext in '' $ac_executable_extensions; do
5462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468 done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5474 if test -n "$ac_ct_DLLTOOL"; then
5475   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5476 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5477 else
5478   { echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6; }
5480 fi
5481
5482   if test "x$ac_ct_DLLTOOL" = x; then
5483     DLLTOOL="false"
5484   else
5485     case $cross_compiling:$ac_tool_warned in
5486 yes:)
5487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5488 whose name does not start with the host triplet.  If you think this
5489 configuration is useful to you, please write to autoconf@gnu.org." >&5
5490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5491 whose name does not start with the host triplet.  If you think this
5492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5493 ac_tool_warned=yes ;;
5494 esac
5495     DLLTOOL=$ac_ct_DLLTOOL
5496   fi
5497 else
5498   DLLTOOL="$ac_cv_prog_DLLTOOL"
5499 fi
5500
5501   if test -n "$ac_tool_prefix"; then
5502   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}as; ac_word=$2
5504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5506 if test "${ac_cv_prog_AS+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509   if test -n "$AS"; then
5510   ac_cv_prog_AS="$AS" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515   IFS=$as_save_IFS
5516   test -z "$as_dir" && as_dir=.
5517   for ac_exec_ext in '' $ac_executable_extensions; do
5518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519     ac_cv_prog_AS="${ac_tool_prefix}as"
5520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521     break 2
5522   fi
5523 done
5524 done
5525 IFS=$as_save_IFS
5526
5527 fi
5528 fi
5529 AS=$ac_cv_prog_AS
5530 if test -n "$AS"; then
5531   { echo "$as_me:$LINENO: result: $AS" >&5
5532 echo "${ECHO_T}$AS" >&6; }
5533 else
5534   { echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6; }
5536 fi
5537
5538
5539 fi
5540 if test -z "$ac_cv_prog_AS"; then
5541   ac_ct_AS=$AS
5542   # Extract the first word of "as", so it can be a program name with args.
5543 set dummy as; ac_word=$2
5544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5546 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   if test -n "$ac_ct_AS"; then
5550   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555   IFS=$as_save_IFS
5556   test -z "$as_dir" && as_dir=.
5557   for ac_exec_ext in '' $ac_executable_extensions; do
5558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559     ac_cv_prog_ac_ct_AS="as"
5560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561     break 2
5562   fi
5563 done
5564 done
5565 IFS=$as_save_IFS
5566
5567 fi
5568 fi
5569 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5570 if test -n "$ac_ct_AS"; then
5571   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5572 echo "${ECHO_T}$ac_ct_AS" >&6; }
5573 else
5574   { echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6; }
5576 fi
5577
5578   if test "x$ac_ct_AS" = x; then
5579     AS="false"
5580   else
5581     case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5584 whose name does not start with the host triplet.  If you think this
5585 configuration is useful to you, please write to autoconf@gnu.org." >&5
5586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5587 whose name does not start with the host triplet.  If you think this
5588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5589 ac_tool_warned=yes ;;
5590 esac
5591     AS=$ac_ct_AS
5592   fi
5593 else
5594   AS="$ac_cv_prog_AS"
5595 fi
5596
5597   if test -n "$ac_tool_prefix"; then
5598   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5602 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5603   echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605   if test -n "$OBJDUMP"; then
5606   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613   for ac_exec_ext in '' $ac_executable_extensions; do
5614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 OBJDUMP=$ac_cv_prog_OBJDUMP
5626 if test -n "$OBJDUMP"; then
5627   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5628 echo "${ECHO_T}$OBJDUMP" >&6; }
5629 else
5630   { echo "$as_me:$LINENO: result: no" >&5
5631 echo "${ECHO_T}no" >&6; }
5632 fi
5633
5634
5635 fi
5636 if test -z "$ac_cv_prog_OBJDUMP"; then
5637   ac_ct_OBJDUMP=$OBJDUMP
5638   # Extract the first word of "objdump", so it can be a program name with args.
5639 set dummy objdump; ac_word=$2
5640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5642 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645   if test -n "$ac_ct_OBJDUMP"; then
5646   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653   for ac_exec_ext in '' $ac_executable_extensions; do
5654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660 done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5666 if test -n "$ac_ct_OBJDUMP"; then
5667   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5668 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5669 else
5670   { echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6; }
5672 fi
5673
5674   if test "x$ac_ct_OBJDUMP" = x; then
5675     OBJDUMP="false"
5676   else
5677     case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5680 whose name does not start with the host triplet.  If you think this
5681 configuration is useful to you, please write to autoconf@gnu.org." >&5
5682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5683 whose name does not start with the host triplet.  If you think this
5684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5685 ac_tool_warned=yes ;;
5686 esac
5687     OBJDUMP=$ac_ct_OBJDUMP
5688   fi
5689 else
5690   OBJDUMP="$ac_cv_prog_OBJDUMP"
5691 fi
5692
5693   ;;
5694
5695 esac
5696
5697 need_locks="$enable_libtool_lock"
5698
5699
5700
5701 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5702 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5703 if test "${ac_cv_header_stdc+set}" = set; then
5704   echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706   cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h.  */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h.  */
5712 #include <stdlib.h>
5713 #include <stdarg.h>
5714 #include <string.h>
5715 #include <float.h>
5716
5717 int
5718 main ()
5719 {
5720
5721   ;
5722   return 0;
5723 }
5724 _ACEOF
5725 rm -f conftest.$ac_objext
5726 if { (ac_try="$ac_compile"
5727 case "(($ac_try" in
5728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729   *) ac_try_echo=$ac_try;;
5730 esac
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732   (eval "$ac_compile") 2>conftest.er1
5733   ac_status=$?
5734   grep -v '^ *+' conftest.er1 >conftest.err
5735   rm -f conftest.er1
5736   cat conftest.err >&5
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } && {
5739          test -z "$ac_c_werror_flag" ||
5740          test ! -s conftest.err
5741        } && test -s conftest.$ac_objext; then
5742   ac_cv_header_stdc=yes
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747         ac_cv_header_stdc=no
5748 fi
5749
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751
5752 if test $ac_cv_header_stdc = yes; then
5753   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5754   cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h.  */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h.  */
5760 #include <string.h>
5761
5762 _ACEOF
5763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5764   $EGREP "memchr" >/dev/null 2>&1; then
5765   :
5766 else
5767   ac_cv_header_stdc=no
5768 fi
5769 rm -f conftest*
5770
5771 fi
5772
5773 if test $ac_cv_header_stdc = yes; then
5774   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5775   cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781 #include <stdlib.h>
5782
5783 _ACEOF
5784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5785   $EGREP "free" >/dev/null 2>&1; then
5786   :
5787 else
5788   ac_cv_header_stdc=no
5789 fi
5790 rm -f conftest*
5791
5792 fi
5793
5794 if test $ac_cv_header_stdc = yes; then
5795   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5796   if test "$cross_compiling" = yes; then
5797   :
5798 else
5799   cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805 #include <ctype.h>
5806 #include <stdlib.h>
5807 #if ((' ' & 0x0FF) == 0x020)
5808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5810 #else
5811 # define ISLOWER(c) \
5812                    (('a' <= (c) && (c) <= 'i') \
5813                      || ('j' <= (c) && (c) <= 'r') \
5814                      || ('s' <= (c) && (c) <= 'z'))
5815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5816 #endif
5817
5818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5819 int
5820 main ()
5821 {
5822   int i;
5823   for (i = 0; i < 256; i++)
5824     if (XOR (islower (i), ISLOWER (i))
5825         || toupper (i) != TOUPPER (i))
5826       return 2;
5827   return 0;
5828 }
5829 _ACEOF
5830 rm -f conftest$ac_exeext
5831 if { (ac_try="$ac_link"
5832 case "(($ac_try" in
5833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834   *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837   (eval "$ac_link") 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5841   { (case "(($ac_try" in
5842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843   *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846   (eval "$ac_try") 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   :
5851 else
5852   echo "$as_me: program exited with status $ac_status" >&5
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 ( exit $ac_status )
5857 ac_cv_header_stdc=no
5858 fi
5859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5860 fi
5861
5862
5863 fi
5864 fi
5865 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5866 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5867 if test $ac_cv_header_stdc = yes; then
5868
5869 cat >>confdefs.h <<\_ACEOF
5870 #define STDC_HEADERS 1
5871 _ACEOF
5872
5873 fi
5874
5875 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5886                   inttypes.h stdint.h unistd.h
5887 do
5888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h.  */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h.  */
5900 $ac_includes_default
5901
5902 #include <$ac_header>
5903 _ACEOF
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5906 case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911   (eval "$ac_compile") 2>conftest.er1
5912   ac_status=$?
5913   grep -v '^ *+' conftest.er1 >conftest.err
5914   rm -f conftest.er1
5915   cat conftest.err >&5
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); } && {
5918          test -z "$ac_c_werror_flag" ||
5919          test ! -s conftest.err
5920        } && test -s conftest.$ac_objext; then
5921   eval "$as_ac_Header=yes"
5922 else
5923   echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5925
5926         eval "$as_ac_Header=no"
5927 fi
5928
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 fi
5931 ac_res=`eval echo '${'$as_ac_Header'}'`
5932                { echo "$as_me:$LINENO: result: $ac_res" >&5
5933 echo "${ECHO_T}$ac_res" >&6; }
5934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5935   cat >>confdefs.h <<_ACEOF
5936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5937 _ACEOF
5938
5939 fi
5940
5941 done
5942
5943
5944
5945 for ac_header in dlfcn.h
5946 do
5947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5949   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 fi
5954 ac_res=`eval echo '${'$as_ac_Header'}'`
5955                { echo "$as_me:$LINENO: result: $ac_res" >&5
5956 echo "${ECHO_T}$ac_res" >&6; }
5957 else
5958   # Is the header compilable?
5959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h.  */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h.  */
5967 $ac_includes_default
5968 #include <$ac_header>
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5972 case "(($ac_try" in
5973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974   *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977   (eval "$ac_compile") 2>conftest.er1
5978   ac_status=$?
5979   grep -v '^ *+' conftest.er1 >conftest.err
5980   rm -f conftest.er1
5981   cat conftest.err >&5
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } && {
5984          test -z "$ac_c_werror_flag" ||
5985          test ! -s conftest.err
5986        } && test -s conftest.$ac_objext; then
5987   ac_header_compiler=yes
5988 else
5989   echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5991
5992         ac_header_compiler=no
5993 fi
5994
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5997 echo "${ECHO_T}$ac_header_compiler" >&6; }
5998
5999 # Is the header present?
6000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h.  */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h.  */
6008 #include <$ac_header>
6009 _ACEOF
6010 if { (ac_try="$ac_cpp conftest.$ac_ext"
6011 case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6017   ac_status=$?
6018   grep -v '^ *+' conftest.er1 >conftest.err
6019   rm -f conftest.er1
6020   cat conftest.err >&5
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } >/dev/null && {
6023          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6024          test ! -s conftest.err
6025        }; then
6026   ac_header_preproc=yes
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031   ac_header_preproc=no
6032 fi
6033
6034 rm -f conftest.err conftest.$ac_ext
6035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6036 echo "${ECHO_T}$ac_header_preproc" >&6; }
6037
6038 # So?  What about this header?
6039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6040   yes:no: )
6041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6045     ac_header_preproc=yes
6046     ;;
6047   no:yes:* )
6048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6050     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6051 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6052     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6054     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6055 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6058     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6060     ( cat <<\_ASBOX
6061 ## -------------------------------------------------------- ##
6062 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
6063 ## -------------------------------------------------------- ##
6064 _ASBOX
6065      ) | sed "s/^/$as_me: WARNING:     /" >&2
6066     ;;
6067 esac
6068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   eval "$as_ac_Header=\$ac_header_preproc"
6074 fi
6075 ac_res=`eval echo '${'$as_ac_Header'}'`
6076                { echo "$as_me:$LINENO: result: $ac_res" >&5
6077 echo "${ECHO_T}$ac_res" >&6; }
6078
6079 fi
6080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6081   cat >>confdefs.h <<_ACEOF
6082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6083 _ACEOF
6084
6085 fi
6086
6087 done
6088
6089
6090
6091 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6092     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6093     (test "X$CXX" != "Xg++"))) ; then
6094   ac_ext=cpp
6095 ac_cpp='$CXXCPP $CPPFLAGS'
6096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6099 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6100 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6101 if test -z "$CXXCPP"; then
6102   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105       # Double quotes because CXXCPP needs to be expanded
6106     for CXXCPP in "$CXX -E" "/lib/cpp"
6107     do
6108       ac_preproc_ok=false
6109 for ac_cxx_preproc_warn_flag in '' yes
6110 do
6111   # Use a header file that comes with gcc, so configuring glibc
6112   # with a fresh cross-compiler works.
6113   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6114   # <limits.h> exists even on freestanding compilers.
6115   # On the NeXT, cc -E runs the code through the compiler's parser,
6116   # not just through cpp. "Syntax error" is here to catch this case.
6117   cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h.  */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h.  */
6123 #ifdef __STDC__
6124 # include <limits.h>
6125 #else
6126 # include <assert.h>
6127 #endif
6128                      Syntax error
6129 _ACEOF
6130 if { (ac_try="$ac_cpp conftest.$ac_ext"
6131 case "(($ac_try" in
6132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133   *) ac_try_echo=$ac_try;;
6134 esac
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6137   ac_status=$?
6138   grep -v '^ *+' conftest.er1 >conftest.err
6139   rm -f conftest.er1
6140   cat conftest.err >&5
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); } >/dev/null && {
6143          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6144          test ! -s conftest.err
6145        }; then
6146   :
6147 else
6148   echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6150
6151   # Broken: fails on valid input.
6152 continue
6153 fi
6154
6155 rm -f conftest.err conftest.$ac_ext
6156
6157   # OK, works on sane cases.  Now check whether nonexistent headers
6158   # can be detected and how.
6159   cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h.  */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h.  */
6165 #include <ac_nonexistent.h>
6166 _ACEOF
6167 if { (ac_try="$ac_cpp conftest.$ac_ext"
6168 case "(($ac_try" in
6169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170   *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6174   ac_status=$?
6175   grep -v '^ *+' conftest.er1 >conftest.err
6176   rm -f conftest.er1
6177   cat conftest.err >&5
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); } >/dev/null && {
6180          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6181          test ! -s conftest.err
6182        }; then
6183   # Broken: success on invalid input.
6184 continue
6185 else
6186   echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189   # Passes both tests.
6190 ac_preproc_ok=:
6191 break
6192 fi
6193
6194 rm -f conftest.err conftest.$ac_ext
6195
6196 done
6197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6198 rm -f conftest.err conftest.$ac_ext
6199 if $ac_preproc_ok; then
6200   break
6201 fi
6202
6203     done
6204     ac_cv_prog_CXXCPP=$CXXCPP
6205
6206 fi
6207   CXXCPP=$ac_cv_prog_CXXCPP
6208 else
6209   ac_cv_prog_CXXCPP=$CXXCPP
6210 fi
6211 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6212 echo "${ECHO_T}$CXXCPP" >&6; }
6213 ac_preproc_ok=false
6214 for ac_cxx_preproc_warn_flag in '' yes
6215 do
6216   # Use a header file that comes with gcc, so configuring glibc
6217   # with a fresh cross-compiler works.
6218   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219   # <limits.h> exists even on freestanding compilers.
6220   # On the NeXT, cc -E runs the code through the compiler's parser,
6221   # not just through cpp. "Syntax error" is here to catch this case.
6222   cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h.  */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h.  */
6228 #ifdef __STDC__
6229 # include <limits.h>
6230 #else
6231 # include <assert.h>
6232 #endif
6233                      Syntax error
6234 _ACEOF
6235 if { (ac_try="$ac_cpp conftest.$ac_ext"
6236 case "(($ac_try" in
6237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238   *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } >/dev/null && {
6248          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6249          test ! -s conftest.err
6250        }; then
6251   :
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256   # Broken: fails on valid input.
6257 continue
6258 fi
6259
6260 rm -f conftest.err conftest.$ac_ext
6261
6262   # OK, works on sane cases.  Now check whether nonexistent headers
6263   # can be detected and how.
6264   cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270 #include <ac_nonexistent.h>
6271 _ACEOF
6272 if { (ac_try="$ac_cpp conftest.$ac_ext"
6273 case "(($ac_try" in
6274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275   *) ac_try_echo=$ac_try;;
6276 esac
6277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6279   ac_status=$?
6280   grep -v '^ *+' conftest.er1 >conftest.err
6281   rm -f conftest.er1
6282   cat conftest.err >&5
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); } >/dev/null && {
6285          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6286          test ! -s conftest.err
6287        }; then
6288   # Broken: success on invalid input.
6289 continue
6290 else
6291   echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294   # Passes both tests.
6295 ac_preproc_ok=:
6296 break
6297 fi
6298
6299 rm -f conftest.err conftest.$ac_ext
6300
6301 done
6302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6303 rm -f conftest.err conftest.$ac_ext
6304 if $ac_preproc_ok; then
6305   :
6306 else
6307   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6308 See \`config.log' for more details." >&5
6309 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6310 See \`config.log' for more details." >&2;}
6311    { (exit 1); exit 1; }; }
6312 fi
6313
6314 ac_ext=cpp
6315 ac_cpp='$CXXCPP $CPPFLAGS'
6316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6319
6320 fi
6321
6322
6323 ac_ext=f
6324 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6325 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6327 if test -n "$ac_tool_prefix"; then
6328   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6329   do
6330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_prog_F77+set}" = set; then
6335   echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337   if test -n "$F77"; then
6338   ac_cv_prog_F77="$F77" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343   IFS=$as_save_IFS
6344   test -z "$as_dir" && as_dir=.
6345   for ac_exec_ext in '' $ac_executable_extensions; do
6346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349     break 2
6350   fi
6351 done
6352 done
6353 IFS=$as_save_IFS
6354
6355 fi
6356 fi
6357 F77=$ac_cv_prog_F77
6358 if test -n "$F77"; then
6359   { echo "$as_me:$LINENO: result: $F77" >&5
6360 echo "${ECHO_T}$F77" >&6; }
6361 else
6362   { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6364 fi
6365
6366
6367     test -n "$F77" && break
6368   done
6369 fi
6370 if test -z "$F77"; then
6371   ac_ct_F77=$F77
6372   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6373 do
6374   # Extract the first word of "$ac_prog", so it can be a program name with args.
6375 set dummy $ac_prog; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   if test -n "$ac_ct_F77"; then
6382   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6386 do
6387   IFS=$as_save_IFS
6388   test -z "$as_dir" && as_dir=.
6389   for ac_exec_ext in '' $ac_executable_extensions; do
6390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391     ac_cv_prog_ac_ct_F77="$ac_prog"
6392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393     break 2
6394   fi
6395 done
6396 done
6397 IFS=$as_save_IFS
6398
6399 fi
6400 fi
6401 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6402 if test -n "$ac_ct_F77"; then
6403   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6404 echo "${ECHO_T}$ac_ct_F77" >&6; }
6405 else
6406   { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6408 fi
6409
6410
6411   test -n "$ac_ct_F77" && break
6412 done
6413
6414   if test "x$ac_ct_F77" = x; then
6415     F77=""
6416   else
6417     case $cross_compiling:$ac_tool_warned in
6418 yes:)
6419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6420 whose name does not start with the host triplet.  If you think this
6421 configuration is useful to you, please write to autoconf@gnu.org." >&5
6422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6423 whose name does not start with the host triplet.  If you think this
6424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6425 ac_tool_warned=yes ;;
6426 esac
6427     F77=$ac_ct_F77
6428   fi
6429 fi
6430
6431
6432 # Provide some information about the compiler.
6433 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6434 ac_compiler=`set X $ac_compile; echo $2`
6435 { (ac_try="$ac_compiler --version >&5"
6436 case "(($ac_try" in
6437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6438   *) ac_try_echo=$ac_try;;
6439 esac
6440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6441   (eval "$ac_compiler --version >&5") 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }
6445 { (ac_try="$ac_compiler -v >&5"
6446 case "(($ac_try" in
6447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448   *) ac_try_echo=$ac_try;;
6449 esac
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451   (eval "$ac_compiler -v >&5") 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }
6455 { (ac_try="$ac_compiler -V >&5"
6456 case "(($ac_try" in
6457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458   *) ac_try_echo=$ac_try;;
6459 esac
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461   (eval "$ac_compiler -V >&5") 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); }
6465 rm -f a.out
6466
6467 # If we don't use `.F' as extension, the preprocessor is not run on the
6468 # input file.  (Note that this only needs to work for GNU compilers.)
6469 ac_save_ext=$ac_ext
6470 ac_ext=F
6471 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6472 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6473 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6474   echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476   cat >conftest.$ac_ext <<_ACEOF
6477       program main
6478 #ifndef __GNUC__
6479        choke me
6480 #endif
6481
6482       end
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6486 case "(($ac_try" in
6487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488   *) ac_try_echo=$ac_try;;
6489 esac
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491   (eval "$ac_compile") 2>conftest.er1
6492   ac_status=$?
6493   grep -v '^ *+' conftest.er1 >conftest.err
6494   rm -f conftest.er1
6495   cat conftest.err >&5
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } && {
6498          test -z "$ac_f77_werror_flag" ||
6499          test ! -s conftest.err
6500        } && test -s conftest.$ac_objext; then
6501   ac_compiler_gnu=yes
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506         ac_compiler_gnu=no
6507 fi
6508
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6511
6512 fi
6513 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6514 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6515 ac_ext=$ac_save_ext
6516 ac_test_FFLAGS=${FFLAGS+set}
6517 ac_save_FFLAGS=$FFLAGS
6518 FFLAGS=
6519 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6520 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_f77_g+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   FFLAGS=-g
6525 cat >conftest.$ac_ext <<_ACEOF
6526       program main
6527
6528       end
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (ac_try="$ac_compile"
6532 case "(($ac_try" in
6533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534   *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537   (eval "$ac_compile") 2>conftest.er1
6538   ac_status=$?
6539   grep -v '^ *+' conftest.er1 >conftest.err
6540   rm -f conftest.er1
6541   cat conftest.err >&5
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); } && {
6544          test -z "$ac_f77_werror_flag" ||
6545          test ! -s conftest.err
6546        } && test -s conftest.$ac_objext; then
6547   ac_cv_prog_f77_g=yes
6548 else
6549   echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552         ac_cv_prog_f77_g=no
6553 fi
6554
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556
6557 fi
6558 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6559 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6560 if test "$ac_test_FFLAGS" = set; then
6561   FFLAGS=$ac_save_FFLAGS
6562 elif test $ac_cv_prog_f77_g = yes; then
6563   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6564     FFLAGS="-g -O2"
6565   else
6566     FFLAGS="-g"
6567   fi
6568 else
6569   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6570     FFLAGS="-O2"
6571   else
6572     FFLAGS=
6573   fi
6574 fi
6575
6576 G77=`test $ac_compiler_gnu = yes && echo yes`
6577 ac_ext=c
6578 ac_cpp='$CPP $CPPFLAGS'
6579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6582
6583
6584
6585 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6586
6587 # find the maximum length of command line arguments
6588 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6589 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6590 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593     i=0
6594   teststring="ABCD"
6595
6596   case $build_os in
6597   msdosdjgpp*)
6598     # On DJGPP, this test can blow up pretty badly due to problems in libc
6599     # (any single argument exceeding 2000 bytes causes a buffer overrun
6600     # during glob expansion).  Even if it were fixed, the result of this
6601     # check would be larger than it should be.
6602     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6603     ;;
6604
6605   gnu*)
6606     # Under GNU Hurd, this test is not required because there is
6607     # no limit to the length of command line arguments.
6608     # Libtool will interpret -1 as no limit whatsoever
6609     lt_cv_sys_max_cmd_len=-1;
6610     ;;
6611
6612   cygwin* | mingw*)
6613     # On Win9x/ME, this test blows up -- it succeeds, but takes
6614     # about 5 minutes as the teststring grows exponentially.
6615     # Worse, since 9x/ME are not pre-emptively multitasking,
6616     # you end up with a "frozen" computer, even though with patience
6617     # the test eventually succeeds (with a max line length of 256k).
6618     # Instead, let's just punt: use the minimum linelength reported by
6619     # all of the supported platforms: 8192 (on NT/2K/XP).
6620     lt_cv_sys_max_cmd_len=8192;
6621     ;;
6622
6623   amigaos*)
6624     # On AmigaOS with pdksh, this test takes hours, literally.
6625     # So we just punt and use a minimum line length of 8192.
6626     lt_cv_sys_max_cmd_len=8192;
6627     ;;
6628
6629   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6630     # This has been around since 386BSD, at least.  Likely further.
6631     if test -x /sbin/sysctl; then
6632       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6633     elif test -x /usr/sbin/sysctl; then
6634       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6635     else
6636       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6637     fi
6638     # And add a safety zone
6639     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6640     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6641     ;;
6642
6643   interix*)
6644     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6645     lt_cv_sys_max_cmd_len=196608
6646     ;;
6647
6648   osf*)
6649     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6650     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6651     # nice to cause kernel panics so lets avoid the loop below.
6652     # First set a reasonable default.
6653     lt_cv_sys_max_cmd_len=16384
6654     #
6655     if test -x /sbin/sysconfig; then
6656       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6657         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6658       esac
6659     fi
6660     ;;
6661   sco3.2v5*)
6662     lt_cv_sys_max_cmd_len=102400
6663     ;;
6664   sysv5* | sco5v6* | sysv4.2uw2*)
6665     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6666     if test -n "$kargmax"; then
6667       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6668     else
6669       lt_cv_sys_max_cmd_len=32768
6670     fi
6671     ;;
6672   *)
6673     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6674     if test -n "$lt_cv_sys_max_cmd_len"; then
6675       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6676       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6677     else
6678       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6679       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6680                = "XX$teststring") >/dev/null 2>&1 &&
6681               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6682               lt_cv_sys_max_cmd_len=$new_result &&
6683               test $i != 17 # 1/2 MB should be enough
6684       do
6685         i=`expr $i + 1`
6686         teststring=$teststring$teststring
6687       done
6688       teststring=
6689       # Add a significant safety factor because C++ compilers can tack on massive
6690       # amounts of additional arguments before passing them to the linker.
6691       # It appears as though 1/2 is a usable value.
6692       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6693     fi
6694     ;;
6695   esac
6696
6697 fi
6698
6699 if test -n $lt_cv_sys_max_cmd_len ; then
6700   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6701 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6702 else
6703   { echo "$as_me:$LINENO: result: none" >&5
6704 echo "${ECHO_T}none" >&6; }
6705 fi
6706
6707
6708
6709
6710
6711 # Check for command to grab the raw symbol name followed by C symbol from nm.
6712 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6713 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6714 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717
6718 # These are sane defaults that work on at least a few old systems.
6719 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6720
6721 # Character class describing NM global symbol codes.
6722 symcode='[BCDEGRST]'
6723
6724 # Regexp to match symbols that can be accessed directly from C.
6725 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6726
6727 # Transform an extracted symbol line into a proper C declaration
6728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6729
6730 # Transform an extracted symbol line into symbol name and symbol address
6731 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'"
6732
6733 # Define system-specific variables.
6734 case $host_os in
6735 aix*)
6736   symcode='[BCDT]'
6737   ;;
6738 cygwin* | mingw* | pw32*)
6739   symcode='[ABCDGISTW]'
6740   ;;
6741 hpux*) # Its linker distinguishes data from code symbols
6742   if test "$host_cpu" = ia64; then
6743     symcode='[ABCDEGRST]'
6744   fi
6745   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6746   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'"
6747   ;;
6748 linux* | k*bsd*-gnu)
6749   if test "$host_cpu" = ia64; then
6750     symcode='[ABCDGIRSTW]'
6751     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6752     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'"
6753   fi
6754   ;;
6755 irix* | nonstopux*)
6756   symcode='[BCDEGRST]'
6757   ;;
6758 osf*)
6759   symcode='[BCDEGQRST]'
6760   ;;
6761 solaris*)
6762   symcode='[BDRT]'
6763   ;;
6764 sco3.2v5*)
6765   symcode='[DT]'
6766   ;;
6767 sysv4.2uw2*)
6768   symcode='[DT]'
6769   ;;
6770 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6771   symcode='[ABDT]'
6772   ;;
6773 sysv4)
6774   symcode='[DFNSTU]'
6775   ;;
6776 esac
6777
6778 # Handle CRLF in mingw tool chain
6779 opt_cr=
6780 case $build_os in
6781 mingw*)
6782   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6783   ;;
6784 esac
6785
6786 # If we're using GNU nm, then use its standard symbol codes.
6787 case `$NM -V 2>&1` in
6788 *GNU* | *'with BFD'*)
6789   symcode='[ABCDGIRSTW]' ;;
6790 esac
6791
6792 # Try without a prefix undercore, then with it.
6793 for ac_symprfx in "" "_"; do
6794
6795   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6796   symxfrm="\\1 $ac_symprfx\\2 \\2"
6797
6798   # Write the raw and C identifiers.
6799   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6800
6801   # Check to see that the pipe works correctly.
6802   pipe_works=no
6803
6804   rm -f conftest*
6805   cat > conftest.$ac_ext <<EOF
6806 #ifdef __cplusplus
6807 extern "C" {
6808 #endif
6809 char nm_test_var;
6810 void nm_test_func(){}
6811 #ifdef __cplusplus
6812 }
6813 #endif
6814 int main(){nm_test_var='a';nm_test_func();return(0);}
6815 EOF
6816
6817   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818   (eval $ac_compile) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }; then
6822     # Now try to grab the symbols.
6823     nlist=conftest.nm
6824     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6825   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6826   ac_status=$?
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); } && test -s "$nlist"; then
6829       # Try sorting and uniquifying the output.
6830       if sort "$nlist" | uniq > "$nlist"T; then
6831         mv -f "$nlist"T "$nlist"
6832       else
6833         rm -f "$nlist"T
6834       fi
6835
6836       # Make sure that we snagged all the symbols we need.
6837       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6838         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6839           cat <<EOF > conftest.$ac_ext
6840 #ifdef __cplusplus
6841 extern "C" {
6842 #endif
6843
6844 EOF
6845           # Now generate the symbol file.
6846           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6847
6848           cat <<EOF >> conftest.$ac_ext
6849 #if defined (__STDC__) && __STDC__
6850 # define lt_ptr_t void *
6851 #else
6852 # define lt_ptr_t char *
6853 # define const
6854 #endif
6855
6856 /* The mapping between symbol names and symbols. */
6857 const struct {
6858   const char *name;
6859   lt_ptr_t address;
6860 }
6861 lt_preloaded_symbols[] =
6862 {
6863 EOF
6864           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6865           cat <<\EOF >> conftest.$ac_ext
6866   {0, (lt_ptr_t) 0}
6867 };
6868
6869 #ifdef __cplusplus
6870 }
6871 #endif
6872 EOF
6873           # Now try linking the two files.
6874           mv conftest.$ac_objext conftstm.$ac_objext
6875           lt_save_LIBS="$LIBS"
6876           lt_save_CFLAGS="$CFLAGS"
6877           LIBS="conftstm.$ac_objext"
6878           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6879           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880   (eval $ac_link) 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6884             pipe_works=yes
6885           fi
6886           LIBS="$lt_save_LIBS"
6887           CFLAGS="$lt_save_CFLAGS"
6888         else
6889           echo "cannot find nm_test_func in $nlist" >&5
6890         fi
6891       else
6892         echo "cannot find nm_test_var in $nlist" >&5
6893       fi
6894     else
6895       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6896     fi
6897   else
6898     echo "$progname: failed program was:" >&5
6899     cat conftest.$ac_ext >&5
6900   fi
6901   rm -f conftest* conftst*
6902
6903   # Do not use the global_symbol_pipe unless it works.
6904   if test "$pipe_works" = yes; then
6905     break
6906   else
6907     lt_cv_sys_global_symbol_pipe=
6908   fi
6909 done
6910
6911 fi
6912
6913 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6914   lt_cv_sys_global_symbol_to_cdecl=
6915 fi
6916 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6917   { echo "$as_me:$LINENO: result: failed" >&5
6918 echo "${ECHO_T}failed" >&6; }
6919 else
6920   { echo "$as_me:$LINENO: result: ok" >&5
6921 echo "${ECHO_T}ok" >&6; }
6922 fi
6923
6924 { echo "$as_me:$LINENO: checking for objdir" >&5
6925 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6926 if test "${lt_cv_objdir+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   rm -f .libs 2>/dev/null
6930 mkdir .libs 2>/dev/null
6931 if test -d .libs; then
6932   lt_cv_objdir=.libs
6933 else
6934   # MS-DOS does not allow filenames that begin with a dot.
6935   lt_cv_objdir=_libs
6936 fi
6937 rmdir .libs 2>/dev/null
6938 fi
6939 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6940 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6941 objdir=$lt_cv_objdir
6942
6943
6944
6945
6946
6947 case $host_os in
6948 aix3*)
6949   # AIX sometimes has problems with the GCC collect2 program.  For some
6950   # reason, if we set the COLLECT_NAMES environment variable, the problems
6951   # vanish in a puff of smoke.
6952   if test "X${COLLECT_NAMES+set}" != Xset; then
6953     COLLECT_NAMES=
6954     export COLLECT_NAMES
6955   fi
6956   ;;
6957 esac
6958
6959 # Sed substitution that helps us do robust quoting.  It backslashifies
6960 # metacharacters that are still active within double-quoted strings.
6961 Xsed='sed -e 1s/^X//'
6962 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6963
6964 # Same as above, but do not quote variable references.
6965 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6966
6967 # Sed substitution to delay expansion of an escaped shell variable in a
6968 # double_quote_subst'ed string.
6969 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6970
6971 # Sed substitution to avoid accidental globbing in evaled expressions
6972 no_glob_subst='s/\*/\\\*/g'
6973
6974 # Constants:
6975 rm="rm -f"
6976
6977 # Global variables:
6978 default_ofile=libtool
6979 can_build_shared=yes
6980
6981 # All known linkers require a `.a' archive for static linking (except MSVC,
6982 # which needs '.lib').
6983 libext=a
6984 ltmain="$ac_aux_dir/ltmain.sh"
6985 ofile="$default_ofile"
6986 with_gnu_ld="$lt_cv_prog_gnu_ld"
6987
6988 if test -n "$ac_tool_prefix"; then
6989   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6990 set dummy ${ac_tool_prefix}ar; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_AR+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   if test -n "$AR"; then
6997   ac_cv_prog_AR="$AR" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004   for ac_exec_ext in '' $ac_executable_extensions; do
7005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006     ac_cv_prog_AR="${ac_tool_prefix}ar"
7007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 AR=$ac_cv_prog_AR
7017 if test -n "$AR"; then
7018   { echo "$as_me:$LINENO: result: $AR" >&5
7019 echo "${ECHO_T}$AR" >&6; }
7020 else
7021   { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7023 fi
7024
7025
7026 fi
7027 if test -z "$ac_cv_prog_AR"; then
7028   ac_ct_AR=$AR
7029   # Extract the first word of "ar", so it can be a program name with args.
7030 set dummy ar; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   if test -n "$ac_ct_AR"; then
7037   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044   for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_prog_ac_ct_AR="ar"
7047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7057 if test -n "$ac_ct_AR"; then
7058   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7059 echo "${ECHO_T}$ac_ct_AR" >&6; }
7060 else
7061   { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7063 fi
7064
7065   if test "x$ac_ct_AR" = x; then
7066     AR="false"
7067   else
7068     case $cross_compiling:$ac_tool_warned in
7069 yes:)
7070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7071 whose name does not start with the host triplet.  If you think this
7072 configuration is useful to you, please write to autoconf@gnu.org." >&5
7073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7074 whose name does not start with the host triplet.  If you think this
7075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078     AR=$ac_ct_AR
7079   fi
7080 else
7081   AR="$ac_cv_prog_AR"
7082 fi
7083
7084 if test -n "$ac_tool_prefix"; then
7085   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_RANLIB+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   if test -n "$RANLIB"; then
7093   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100   for ac_exec_ext in '' $ac_executable_extensions; do
7101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 RANLIB=$ac_cv_prog_RANLIB
7113 if test -n "$RANLIB"; then
7114   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7115 echo "${ECHO_T}$RANLIB" >&6; }
7116 else
7117   { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7119 fi
7120
7121
7122 fi
7123 if test -z "$ac_cv_prog_RANLIB"; then
7124   ac_ct_RANLIB=$RANLIB
7125   # Extract the first word of "ranlib", so it can be a program name with args.
7126 set dummy ranlib; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   if test -n "$ac_ct_RANLIB"; then
7133   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_prog_ac_ct_RANLIB="ranlib"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7153 if test -n "$ac_ct_RANLIB"; then
7154   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7155 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161   if test "x$ac_ct_RANLIB" = x; then
7162     RANLIB=":"
7163   else
7164     case $cross_compiling:$ac_tool_warned in
7165 yes:)
7166 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7167 whose name does not start with the host triplet.  If you think this
7168 configuration is useful to you, please write to autoconf@gnu.org." >&5
7169 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7170 whose name does not start with the host triplet.  If you think this
7171 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7172 ac_tool_warned=yes ;;
7173 esac
7174     RANLIB=$ac_ct_RANLIB
7175   fi
7176 else
7177   RANLIB="$ac_cv_prog_RANLIB"
7178 fi
7179
7180 if test -n "$ac_tool_prefix"; then
7181   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7182 set dummy ${ac_tool_prefix}strip; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_prog_STRIP+set}" = set; then
7186   echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188   if test -n "$STRIP"; then
7189   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196   for ac_exec_ext in '' $ac_executable_extensions; do
7197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 STRIP=$ac_cv_prog_STRIP
7209 if test -n "$STRIP"; then
7210   { echo "$as_me:$LINENO: result: $STRIP" >&5
7211 echo "${ECHO_T}$STRIP" >&6; }
7212 else
7213   { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7215 fi
7216
7217
7218 fi
7219 if test -z "$ac_cv_prog_STRIP"; then
7220   ac_ct_STRIP=$STRIP
7221   # Extract the first word of "strip", so it can be a program name with args.
7222 set dummy strip; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   if test -n "$ac_ct_STRIP"; then
7229   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236   for ac_exec_ext in '' $ac_executable_extensions; do
7237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238     ac_cv_prog_ac_ct_STRIP="strip"
7239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7245
7246 fi
7247 fi
7248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7249 if test -n "$ac_ct_STRIP"; then
7250   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7251 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7252 else
7253   { echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6; }
7255 fi
7256
7257   if test "x$ac_ct_STRIP" = x; then
7258     STRIP=":"
7259   else
7260     case $cross_compiling:$ac_tool_warned in
7261 yes:)
7262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7263 whose name does not start with the host triplet.  If you think this
7264 configuration is useful to you, please write to autoconf@gnu.org." >&5
7265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7266 whose name does not start with the host triplet.  If you think this
7267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7268 ac_tool_warned=yes ;;
7269 esac
7270     STRIP=$ac_ct_STRIP
7271   fi
7272 else
7273   STRIP="$ac_cv_prog_STRIP"
7274 fi
7275
7276
7277 old_CC="$CC"
7278 old_CFLAGS="$CFLAGS"
7279
7280 # Set sane defaults for various variables
7281 test -z "$AR" && AR=ar
7282 test -z "$AR_FLAGS" && AR_FLAGS=cru
7283 test -z "$AS" && AS=as
7284 test -z "$CC" && CC=cc
7285 test -z "$LTCC" && LTCC=$CC
7286 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7287 test -z "$DLLTOOL" && DLLTOOL=dlltool
7288 test -z "$LD" && LD=ld
7289 test -z "$LN_S" && LN_S="ln -s"
7290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7291 test -z "$NM" && NM=nm
7292 test -z "$SED" && SED=sed
7293 test -z "$OBJDUMP" && OBJDUMP=objdump
7294 test -z "$RANLIB" && RANLIB=:
7295 test -z "$STRIP" && STRIP=:
7296 test -z "$ac_objext" && ac_objext=o
7297
7298 # Determine commands to create old-style static archives.
7299 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7300 old_postinstall_cmds='chmod 644 $oldlib'
7301 old_postuninstall_cmds=
7302
7303 if test -n "$RANLIB"; then
7304   case $host_os in
7305   openbsd*)
7306     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7307     ;;
7308   *)
7309     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7310     ;;
7311   esac
7312   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7313 fi
7314
7315 for cc_temp in $compiler""; do
7316   case $cc_temp in
7317     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7318     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7319     \-*) ;;
7320     *) break;;
7321   esac
7322 done
7323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7324
7325
7326 # Only perform the check for file, if the check method requires it
7327 case $deplibs_check_method in
7328 file_magic*)
7329   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7330     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7331 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7332 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335   case $MAGIC_CMD in
7336 [\\/*] |  ?:[\\/]*)
7337   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7338   ;;
7339 *)
7340   lt_save_MAGIC_CMD="$MAGIC_CMD"
7341   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7342   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7343   for ac_dir in $ac_dummy; do
7344     IFS="$lt_save_ifs"
7345     test -z "$ac_dir" && ac_dir=.
7346     if test -f $ac_dir/${ac_tool_prefix}file; then
7347       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7348       if test -n "$file_magic_test_file"; then
7349         case $deplibs_check_method in
7350         "file_magic "*)
7351           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7352           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7353           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7354             $EGREP "$file_magic_regex" > /dev/null; then
7355             :
7356           else
7357             cat <<EOF 1>&2
7358
7359 *** Warning: the command libtool uses to detect shared libraries,
7360 *** $file_magic_cmd, produces output that libtool cannot recognize.
7361 *** The result is that libtool may fail to recognize shared libraries
7362 *** as such.  This will affect the creation of libtool libraries that
7363 *** depend on shared libraries, but programs linked with such libtool
7364 *** libraries will work regardless of this problem.  Nevertheless, you
7365 *** may want to report the problem to your system manager and/or to
7366 *** bug-libtool@gnu.org
7367
7368 EOF
7369           fi ;;
7370         esac
7371       fi
7372       break
7373     fi
7374   done
7375   IFS="$lt_save_ifs"
7376   MAGIC_CMD="$lt_save_MAGIC_CMD"
7377   ;;
7378 esac
7379 fi
7380
7381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7382 if test -n "$MAGIC_CMD"; then
7383   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7384 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7385 else
7386   { echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6; }
7388 fi
7389
7390 if test -z "$lt_cv_path_MAGIC_CMD"; then
7391   if test -n "$ac_tool_prefix"; then
7392     { echo "$as_me:$LINENO: checking for file" >&5
7393 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397   case $MAGIC_CMD in
7398 [\\/*] |  ?:[\\/]*)
7399   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7400   ;;
7401 *)
7402   lt_save_MAGIC_CMD="$MAGIC_CMD"
7403   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7404   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7405   for ac_dir in $ac_dummy; do
7406     IFS="$lt_save_ifs"
7407     test -z "$ac_dir" && ac_dir=.
7408     if test -f $ac_dir/file; then
7409       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7410       if test -n "$file_magic_test_file"; then
7411         case $deplibs_check_method in
7412         "file_magic "*)
7413           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7414           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7415           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7416             $EGREP "$file_magic_regex" > /dev/null; then
7417             :
7418           else
7419             cat <<EOF 1>&2
7420
7421 *** Warning: the command libtool uses to detect shared libraries,
7422 *** $file_magic_cmd, produces output that libtool cannot recognize.
7423 *** The result is that libtool may fail to recognize shared libraries
7424 *** as such.  This will affect the creation of libtool libraries that
7425 *** depend on shared libraries, but programs linked with such libtool
7426 *** libraries will work regardless of this problem.  Nevertheless, you
7427 *** may want to report the problem to your system manager and/or to
7428 *** bug-libtool@gnu.org
7429
7430 EOF
7431           fi ;;
7432         esac
7433       fi
7434       break
7435     fi
7436   done
7437   IFS="$lt_save_ifs"
7438   MAGIC_CMD="$lt_save_MAGIC_CMD"
7439   ;;
7440 esac
7441 fi
7442
7443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444 if test -n "$MAGIC_CMD"; then
7445   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7446 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7447 else
7448   { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7450 fi
7451
7452   else
7453     MAGIC_CMD=:
7454   fi
7455 fi
7456
7457   fi
7458   ;;
7459 esac
7460
7461 enable_dlopen=no
7462 enable_win32_dll=yes
7463
7464 # Check whether --enable-libtool-lock was given.
7465 if test "${enable_libtool_lock+set}" = set; then
7466   enableval=$enable_libtool_lock;
7467 fi
7468
7469 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7470
7471
7472 # Check whether --with-pic was given.
7473 if test "${with_pic+set}" = set; then
7474   withval=$with_pic; pic_mode="$withval"
7475 else
7476   pic_mode=default
7477 fi
7478
7479 test -z "$pic_mode" && pic_mode=default
7480
7481 # Use C for the default configuration in the libtool script
7482 tagname=
7483 lt_save_CC="$CC"
7484 ac_ext=c
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489
7490
7491 # Source file extension for C test sources.
7492 ac_ext=c
7493
7494 # Object file extension for compiled C test sources.
7495 objext=o
7496 objext=$objext
7497
7498 # Code to be used in simple compile tests
7499 lt_simple_compile_test_code="int some_variable = 0;"
7500
7501 # Code to be used in simple link tests
7502 lt_simple_link_test_code='int main(){return(0);}'
7503
7504
7505 # If no C compiler was specified, use CC.
7506 LTCC=${LTCC-"$CC"}
7507
7508 # If no C compiler flags were specified, use CFLAGS.
7509 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7510
7511 # Allow CC to be a program name with arguments.
7512 compiler=$CC
7513
7514
7515 # save warnings/boilerplate of simple test code
7516 ac_outfile=conftest.$ac_objext
7517 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7519 _lt_compiler_boilerplate=`cat conftest.err`
7520 $rm conftest*
7521
7522 ac_outfile=conftest.$ac_objext
7523 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7525 _lt_linker_boilerplate=`cat conftest.err`
7526 $rm conftest*
7527
7528
7529
7530 lt_prog_compiler_no_builtin_flag=
7531
7532 if test "$GCC" = yes; then
7533   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7534
7535
7536 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7537 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7538 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   lt_cv_prog_compiler_rtti_exceptions=no
7542   ac_outfile=conftest.$ac_objext
7543    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7544    lt_compiler_flag="-fno-rtti -fno-exceptions"
7545    # Insert the option either (1) after the last *FLAGS variable, or
7546    # (2) before a word containing "conftest.", or (3) at the end.
7547    # Note that $ac_compile itself does not contain backslashes and begins
7548    # with a dollar sign (not a hyphen), so the echo should work correctly.
7549    # The option is referenced via a variable to avoid confusing sed.
7550    lt_compile=`echo "$ac_compile" | $SED \
7551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7553    -e 's:$: $lt_compiler_flag:'`
7554    (eval echo "\"\$as_me:7554: $lt_compile\"" >&5)
7555    (eval "$lt_compile" 2>conftest.err)
7556    ac_status=$?
7557    cat conftest.err >&5
7558    echo "$as_me:7558: \$? = $ac_status" >&5
7559    if (exit $ac_status) && test -s "$ac_outfile"; then
7560      # The compiler can only warn and ignore the option if not recognized
7561      # So say no if there are warnings other than the usual output.
7562      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7563      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7564      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7565        lt_cv_prog_compiler_rtti_exceptions=yes
7566      fi
7567    fi
7568    $rm conftest*
7569
7570 fi
7571 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7572 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7573
7574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7575     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7576 else
7577     :
7578 fi
7579
7580 fi
7581
7582 lt_prog_compiler_wl=
7583 lt_prog_compiler_pic=
7584 lt_prog_compiler_static=
7585
7586 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7587 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7588
7589   if test "$GCC" = yes; then
7590     lt_prog_compiler_wl='-Wl,'
7591     lt_prog_compiler_static='-static'
7592
7593     case $host_os in
7594       aix*)
7595       # All AIX code is PIC.
7596       if test "$host_cpu" = ia64; then
7597         # AIX 5 now supports IA64 processor
7598         lt_prog_compiler_static='-Bstatic'
7599       fi
7600       ;;
7601
7602     amigaos*)
7603       # FIXME: we need at least 68020 code to build shared libraries, but
7604       # adding the `-m68020' flag to GCC prevents building anything better,
7605       # like `-m68040'.
7606       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7607       ;;
7608
7609     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7610       # PIC is the default for these OSes.
7611       ;;
7612
7613     mingw* | cygwin* | pw32* | os2*)
7614       # This hack is so that the source file can tell whether it is being
7615       # built for inclusion in a dll (and should export symbols for example).
7616       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7617       # (--disable-auto-import) libraries
7618       lt_prog_compiler_pic='-DDLL_EXPORT'
7619       ;;
7620
7621     darwin* | rhapsody*)
7622       # PIC is the default on this platform
7623       # Common symbols not allowed in MH_DYLIB files
7624       lt_prog_compiler_pic='-fno-common'
7625       ;;
7626
7627     interix[3-9]*)
7628       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7629       # Instead, we relocate shared libraries at runtime.
7630       ;;
7631
7632     msdosdjgpp*)
7633       # Just because we use GCC doesn't mean we suddenly get shared libraries
7634       # on systems that don't support them.
7635       lt_prog_compiler_can_build_shared=no
7636       enable_shared=no
7637       ;;
7638
7639     sysv4*MP*)
7640       if test -d /usr/nec; then
7641         lt_prog_compiler_pic=-Kconform_pic
7642       fi
7643       ;;
7644
7645     hpux*)
7646       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7647       # not for PA HP-UX.
7648       case $host_cpu in
7649       hppa*64*|ia64*)
7650         # +Z the default
7651         ;;
7652       *)
7653         lt_prog_compiler_pic='-fPIC'
7654         ;;
7655       esac
7656       ;;
7657
7658     *)
7659       lt_prog_compiler_pic='-fPIC'
7660       ;;
7661     esac
7662   else
7663     # PORTME Check for flag to pass linker flags through the system compiler.
7664     case $host_os in
7665     aix*)
7666       lt_prog_compiler_wl='-Wl,'
7667       if test "$host_cpu" = ia64; then
7668         # AIX 5 now supports IA64 processor
7669         lt_prog_compiler_static='-Bstatic'
7670       else
7671         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7672       fi
7673       ;;
7674       darwin*)
7675         # PIC is the default on this platform
7676         # Common symbols not allowed in MH_DYLIB files
7677        case $cc_basename in
7678          xlc*)
7679          lt_prog_compiler_pic='-qnocommon'
7680          lt_prog_compiler_wl='-Wl,'
7681          ;;
7682        esac
7683        ;;
7684
7685     mingw* | cygwin* | pw32* | os2*)
7686       # This hack is so that the source file can tell whether it is being
7687       # built for inclusion in a dll (and should export symbols for example).
7688       lt_prog_compiler_pic='-DDLL_EXPORT'
7689       ;;
7690
7691     hpux9* | hpux10* | hpux11*)
7692       lt_prog_compiler_wl='-Wl,'
7693       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7694       # not for PA HP-UX.
7695       case $host_cpu in
7696       hppa*64*|ia64*)
7697         # +Z the default
7698         ;;
7699       *)
7700         lt_prog_compiler_pic='+Z'
7701         ;;
7702       esac
7703       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7704       lt_prog_compiler_static='${wl}-a ${wl}archive'
7705       ;;
7706
7707     irix5* | irix6* | nonstopux*)
7708       lt_prog_compiler_wl='-Wl,'
7709       # PIC (with -KPIC) is the default.
7710       lt_prog_compiler_static='-non_shared'
7711       ;;
7712
7713     newsos6)
7714       lt_prog_compiler_pic='-KPIC'
7715       lt_prog_compiler_static='-Bstatic'
7716       ;;
7717
7718     linux* | k*bsd*-gnu)
7719       case $cc_basename in
7720       icc* | ecc*)
7721         lt_prog_compiler_wl='-Wl,'
7722         lt_prog_compiler_pic='-KPIC'
7723         lt_prog_compiler_static='-static'
7724         ;;
7725       pgcc* | pgf77* | pgf90* | pgf95*)
7726         # Portland Group compilers (*not* the Pentium gcc compiler,
7727         # which looks to be a dead project)
7728         lt_prog_compiler_wl='-Wl,'
7729         lt_prog_compiler_pic='-fpic'
7730         lt_prog_compiler_static='-Bstatic'
7731         ;;
7732       ccc*)
7733         lt_prog_compiler_wl='-Wl,'
7734         # All Alpha code is PIC.
7735         lt_prog_compiler_static='-non_shared'
7736         ;;
7737       *)
7738         case `$CC -V 2>&1 | sed 5q` in
7739         *Sun\ C*)
7740           # Sun C 5.9
7741           lt_prog_compiler_pic='-KPIC'
7742           lt_prog_compiler_static='-Bstatic'
7743           lt_prog_compiler_wl='-Wl,'
7744           ;;
7745         *Sun\ F*)
7746           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7747           lt_prog_compiler_pic='-KPIC'
7748           lt_prog_compiler_static='-Bstatic'
7749           lt_prog_compiler_wl=''
7750           ;;
7751         esac
7752         ;;
7753       esac
7754       ;;
7755
7756     osf3* | osf4* | osf5*)
7757       lt_prog_compiler_wl='-Wl,'
7758       # All OSF/1 code is PIC.
7759       lt_prog_compiler_static='-non_shared'
7760       ;;
7761
7762     rdos*)
7763       lt_prog_compiler_static='-non_shared'
7764       ;;
7765
7766     solaris*)
7767       lt_prog_compiler_pic='-KPIC'
7768       lt_prog_compiler_static='-Bstatic'
7769       case $cc_basename in
7770       f77* | f90* | f95*)
7771         lt_prog_compiler_wl='-Qoption ld ';;
7772       *)
7773         lt_prog_compiler_wl='-Wl,';;
7774       esac
7775       ;;
7776
7777     sunos4*)
7778       lt_prog_compiler_wl='-Qoption ld '
7779       lt_prog_compiler_pic='-PIC'
7780       lt_prog_compiler_static='-Bstatic'
7781       ;;
7782
7783     sysv4 | sysv4.2uw2* | sysv4.3*)
7784       lt_prog_compiler_wl='-Wl,'
7785       lt_prog_compiler_pic='-KPIC'
7786       lt_prog_compiler_static='-Bstatic'
7787       ;;
7788
7789     sysv4*MP*)
7790       if test -d /usr/nec ;then
7791         lt_prog_compiler_pic='-Kconform_pic'
7792         lt_prog_compiler_static='-Bstatic'
7793       fi
7794       ;;
7795
7796     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7797       lt_prog_compiler_wl='-Wl,'
7798       lt_prog_compiler_pic='-KPIC'
7799       lt_prog_compiler_static='-Bstatic'
7800       ;;
7801
7802     unicos*)
7803       lt_prog_compiler_wl='-Wl,'
7804       lt_prog_compiler_can_build_shared=no
7805       ;;
7806
7807     uts4*)
7808       lt_prog_compiler_pic='-pic'
7809       lt_prog_compiler_static='-Bstatic'
7810       ;;
7811
7812     *)
7813       lt_prog_compiler_can_build_shared=no
7814       ;;
7815     esac
7816   fi
7817
7818 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7819 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7820
7821 #
7822 # Check to make sure the PIC flag actually works.
7823 #
7824 if test -n "$lt_prog_compiler_pic"; then
7825
7826 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7827 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7828 if test "${lt_prog_compiler_pic_works+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831   lt_prog_compiler_pic_works=no
7832   ac_outfile=conftest.$ac_objext
7833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7834    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7835    # Insert the option either (1) after the last *FLAGS variable, or
7836    # (2) before a word containing "conftest.", or (3) at the end.
7837    # Note that $ac_compile itself does not contain backslashes and begins
7838    # with a dollar sign (not a hyphen), so the echo should work correctly.
7839    # The option is referenced via a variable to avoid confusing sed.
7840    lt_compile=`echo "$ac_compile" | $SED \
7841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7843    -e 's:$: $lt_compiler_flag:'`
7844    (eval echo "\"\$as_me:7844: $lt_compile\"" >&5)
7845    (eval "$lt_compile" 2>conftest.err)
7846    ac_status=$?
7847    cat conftest.err >&5
7848    echo "$as_me:7848: \$? = $ac_status" >&5
7849    if (exit $ac_status) && test -s "$ac_outfile"; then
7850      # The compiler can only warn and ignore the option if not recognized
7851      # So say no if there are warnings other than the usual output.
7852      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7853      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7854      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7855        lt_prog_compiler_pic_works=yes
7856      fi
7857    fi
7858    $rm conftest*
7859
7860 fi
7861 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7862 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7863
7864 if test x"$lt_prog_compiler_pic_works" = xyes; then
7865     case $lt_prog_compiler_pic in
7866      "" | " "*) ;;
7867      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7868      esac
7869 else
7870     lt_prog_compiler_pic=
7871      lt_prog_compiler_can_build_shared=no
7872 fi
7873
7874 fi
7875 case $host_os in
7876   # For platforms which do not support PIC, -DPIC is meaningless:
7877   *djgpp*)
7878     lt_prog_compiler_pic=
7879     ;;
7880   *)
7881     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7882     ;;
7883 esac
7884
7885 #
7886 # Check to make sure the static flag actually works.
7887 #
7888 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7889 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7890 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7891 if test "${lt_prog_compiler_static_works+set}" = set; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894   lt_prog_compiler_static_works=no
7895    save_LDFLAGS="$LDFLAGS"
7896    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7897    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7898    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7899      # The linker can only warn and ignore the option if not recognized
7900      # So say no if there are warnings
7901      if test -s conftest.err; then
7902        # Append any errors to the config.log.
7903        cat conftest.err 1>&5
7904        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7905        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7906        if diff conftest.exp conftest.er2 >/dev/null; then
7907          lt_prog_compiler_static_works=yes
7908        fi
7909      else
7910        lt_prog_compiler_static_works=yes
7911      fi
7912    fi
7913    $rm conftest*
7914    LDFLAGS="$save_LDFLAGS"
7915
7916 fi
7917 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7918 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7919
7920 if test x"$lt_prog_compiler_static_works" = xyes; then
7921     :
7922 else
7923     lt_prog_compiler_static=
7924 fi
7925
7926
7927 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7928 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932   lt_cv_prog_compiler_c_o=no
7933    $rm -r conftest 2>/dev/null
7934    mkdir conftest
7935    cd conftest
7936    mkdir out
7937    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7938
7939    lt_compiler_flag="-o out/conftest2.$ac_objext"
7940    # Insert the option either (1) after the last *FLAGS variable, or
7941    # (2) before a word containing "conftest.", or (3) at the end.
7942    # Note that $ac_compile itself does not contain backslashes and begins
7943    # with a dollar sign (not a hyphen), so the echo should work correctly.
7944    lt_compile=`echo "$ac_compile" | $SED \
7945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7947    -e 's:$: $lt_compiler_flag:'`
7948    (eval echo "\"\$as_me:7948: $lt_compile\"" >&5)
7949    (eval "$lt_compile" 2>out/conftest.err)
7950    ac_status=$?
7951    cat out/conftest.err >&5
7952    echo "$as_me:7952: \$? = $ac_status" >&5
7953    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7954    then
7955      # The compiler can only warn and ignore the option if not recognized
7956      # So say no if there are warnings
7957      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7958      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7959      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7960        lt_cv_prog_compiler_c_o=yes
7961      fi
7962    fi
7963    chmod u+w . 2>&5
7964    $rm conftest*
7965    # SGI C++ compiler will create directory out/ii_files/ for
7966    # template instantiation
7967    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7968    $rm out/* && rmdir out
7969    cd ..
7970    rmdir conftest
7971    $rm conftest*
7972
7973 fi
7974 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7975 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7976
7977
7978 hard_links="nottested"
7979 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7980   # do not overwrite the value of need_locks provided by the user
7981   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7982 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7983   hard_links=yes
7984   $rm conftest*
7985   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7986   touch conftest.a
7987   ln conftest.a conftest.b 2>&5 || hard_links=no
7988   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7989   { echo "$as_me:$LINENO: result: $hard_links" >&5
7990 echo "${ECHO_T}$hard_links" >&6; }
7991   if test "$hard_links" = no; then
7992     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7993 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7994     need_locks=warn
7995   fi
7996 else
7997   need_locks=no
7998 fi
7999
8000 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8001 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8002
8003   runpath_var=
8004   allow_undefined_flag=
8005   enable_shared_with_static_runtimes=no
8006   archive_cmds=
8007   archive_expsym_cmds=
8008   old_archive_From_new_cmds=
8009   old_archive_from_expsyms_cmds=
8010   export_dynamic_flag_spec=
8011   whole_archive_flag_spec=
8012   thread_safe_flag_spec=
8013   hardcode_libdir_flag_spec=
8014   hardcode_libdir_flag_spec_ld=
8015   hardcode_libdir_separator=
8016   hardcode_direct=no
8017   hardcode_minus_L=no
8018   hardcode_shlibpath_var=unsupported
8019   link_all_deplibs=unknown
8020   hardcode_automatic=no
8021   module_cmds=
8022   module_expsym_cmds=
8023   always_export_symbols=no
8024   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8025   # include_expsyms should be a list of space-separated symbols to be *always*
8026   # included in the symbol list
8027   include_expsyms=
8028   # exclude_expsyms can be an extended regexp of symbols to exclude
8029   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8030   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8031   # as well as any symbol that contains `d'.
8032   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8033   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8034   # platforms (ab)use it in PIC code, but their linkers get confused if
8035   # the symbol is explicitly referenced.  Since portable code cannot
8036   # rely on this symbol name, it's probably fine to never include it in
8037   # preloaded symbol tables.
8038   extract_expsyms_cmds=
8039   # Just being paranoid about ensuring that cc_basename is set.
8040   for cc_temp in $compiler""; do
8041   case $cc_temp in
8042     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8043     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8044     \-*) ;;
8045     *) break;;
8046   esac
8047 done
8048 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8049
8050   case $host_os in
8051   cygwin* | mingw* | pw32*)
8052     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8053     # When not using gcc, we currently assume that we are using
8054     # Microsoft Visual C++.
8055     if test "$GCC" != yes; then
8056       with_gnu_ld=no
8057     fi
8058     ;;
8059   interix*)
8060     # we just hope/assume this is gcc and not c89 (= MSVC++)
8061     with_gnu_ld=yes
8062     ;;
8063   openbsd*)
8064     with_gnu_ld=no
8065     ;;
8066   esac
8067
8068   ld_shlibs=yes
8069   if test "$with_gnu_ld" = yes; then
8070     # If archive_cmds runs LD, not CC, wlarc should be empty
8071     wlarc='${wl}'
8072
8073     # Set some defaults for GNU ld with shared library support. These
8074     # are reset later if shared libraries are not supported. Putting them
8075     # here allows them to be overridden if necessary.
8076     runpath_var=LD_RUN_PATH
8077     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8078     export_dynamic_flag_spec='${wl}--export-dynamic'
8079     # ancient GNU ld didn't support --whole-archive et. al.
8080     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8081         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8082       else
8083         whole_archive_flag_spec=
8084     fi
8085     supports_anon_versioning=no
8086     case `$LD -v 2>/dev/null` in
8087       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8088       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8089       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8090       *\ 2.11.*) ;; # other 2.11 versions
8091       *) supports_anon_versioning=yes ;;
8092     esac
8093
8094     # See if GNU ld supports shared libraries.
8095     case $host_os in
8096     aix3* | aix4* | aix5*)
8097       # On AIX/PPC, the GNU linker is very broken
8098       if test "$host_cpu" != ia64; then
8099         ld_shlibs=no
8100         cat <<EOF 1>&2
8101
8102 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8103 *** to be unable to reliably create shared libraries on AIX.
8104 *** Therefore, libtool is disabling shared libraries support.  If you
8105 *** really care for shared libraries, you may want to modify your PATH
8106 *** so that a non-GNU linker is found, and then restart.
8107
8108 EOF
8109       fi
8110       ;;
8111
8112     amigaos*)
8113       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)'
8114       hardcode_libdir_flag_spec='-L$libdir'
8115       hardcode_minus_L=yes
8116
8117       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8118       # that the semantics of dynamic libraries on AmigaOS, at least up
8119       # to version 4, is to share data among multiple programs linked
8120       # with the same dynamic library.  Since this doesn't match the
8121       # behavior of shared libraries on other platforms, we can't use
8122       # them.
8123       ld_shlibs=no
8124       ;;
8125
8126     beos*)
8127       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8128         allow_undefined_flag=unsupported
8129         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8130         # support --undefined.  This deserves some investigation.  FIXME
8131         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8132       else
8133         ld_shlibs=no
8134       fi
8135       ;;
8136
8137     cygwin* | mingw* | pw32*)
8138       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8139       # as there is no search path for DLLs.
8140       hardcode_libdir_flag_spec='-L$libdir'
8141       allow_undefined_flag=unsupported
8142       always_export_symbols=no
8143       enable_shared_with_static_runtimes=yes
8144       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8145
8146       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8147         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8148         # If the export-symbols file already is a .def file (1st line
8149         # is EXPORTS), use it as is; otherwise, prepend...
8150         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8151           cp $export_symbols $output_objdir/$soname.def;
8152         else
8153           echo EXPORTS > $output_objdir/$soname.def;
8154           cat $export_symbols >> $output_objdir/$soname.def;
8155         fi~
8156         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8157       else
8158         ld_shlibs=no
8159       fi
8160       ;;
8161
8162     interix[3-9]*)
8163       hardcode_direct=no
8164       hardcode_shlibpath_var=no
8165       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8166       export_dynamic_flag_spec='${wl}-E'
8167       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8168       # Instead, shared libraries are loaded at an image base (0x10000000 by
8169       # default) and relocated if they conflict, which is a slow very memory
8170       # consuming and fragmenting process.  To avoid this, we pick a random,
8171       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8172       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8173       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8174       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'
8175       ;;
8176
8177     gnu* | linux* | k*bsd*-gnu)
8178       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8179         tmp_addflag=
8180         case $cc_basename,$host_cpu in
8181         pgcc*)                          # Portland Group C compiler
8182           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'
8183           tmp_addflag=' $pic_flag'
8184           ;;
8185         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8186           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'
8187           tmp_addflag=' $pic_flag -Mnomain' ;;
8188         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8189           tmp_addflag=' -i_dynamic' ;;
8190         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8191           tmp_addflag=' -i_dynamic -nofor_main' ;;
8192         ifc* | ifort*)                  # Intel Fortran compiler
8193           tmp_addflag=' -nofor_main' ;;
8194         esac
8195         case `$CC -V 2>&1 | sed 5q` in
8196         *Sun\ C*)                       # Sun C 5.9
8197           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8198           tmp_sharedflag='-G' ;;
8199         *Sun\ F*)                       # Sun Fortran 8.3
8200           tmp_sharedflag='-G' ;;
8201         *)
8202           tmp_sharedflag='-shared' ;;
8203         esac
8204         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205
8206         if test $supports_anon_versioning = yes; then
8207           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8208   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8209   $echo "local: *; };" >> $output_objdir/$libname.ver~
8210           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8211         fi
8212         link_all_deplibs=no
8213       else
8214         ld_shlibs=no
8215       fi
8216       ;;
8217
8218     netbsd* | netbsdelf*-gnu)
8219       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8220         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8221         wlarc=
8222       else
8223         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8225       fi
8226       ;;
8227
8228     solaris*)
8229       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8230         ld_shlibs=no
8231         cat <<EOF 1>&2
8232
8233 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8234 *** create shared libraries on Solaris systems.  Therefore, libtool
8235 *** is disabling shared libraries support.  We urge you to upgrade GNU
8236 *** binutils to release 2.9.1 or newer.  Another option is to modify
8237 *** your PATH or compiler configuration so that the native linker is
8238 *** used, and then restart.
8239
8240 EOF
8241       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8242         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8243         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8244       else
8245         ld_shlibs=no
8246       fi
8247       ;;
8248
8249     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8250       case `$LD -v 2>&1` in
8251         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8252         ld_shlibs=no
8253         cat <<_LT_EOF 1>&2
8254
8255 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8256 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8257 *** is disabling shared libraries support.  We urge you to upgrade GNU
8258 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8259 *** your PATH or compiler configuration so that the native linker is
8260 *** used, and then restart.
8261
8262 _LT_EOF
8263         ;;
8264         *)
8265           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8266             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8267             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8268             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8269           else
8270             ld_shlibs=no
8271           fi
8272         ;;
8273       esac
8274       ;;
8275
8276     sunos4*)
8277       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8278       wlarc=
8279       hardcode_direct=yes
8280       hardcode_shlibpath_var=no
8281       ;;
8282
8283     *)
8284       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287       else
8288         ld_shlibs=no
8289       fi
8290       ;;
8291     esac
8292
8293     if test "$ld_shlibs" = no; then
8294       runpath_var=
8295       hardcode_libdir_flag_spec=
8296       export_dynamic_flag_spec=
8297       whole_archive_flag_spec=
8298     fi
8299   else
8300     # PORTME fill in a description of your system's linker (not GNU ld)
8301     case $host_os in
8302     aix3*)
8303       allow_undefined_flag=unsupported
8304       always_export_symbols=yes
8305       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'
8306       # Note: this linker hardcodes the directories in LIBPATH if there
8307       # are no directories specified by -L.
8308       hardcode_minus_L=yes
8309       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8310         # Neither direct hardcoding nor static linking is supported with a
8311         # broken collect2.
8312         hardcode_direct=unsupported
8313       fi
8314       ;;
8315
8316     aix4* | aix5*)
8317       if test "$host_cpu" = ia64; then
8318         # On IA64, the linker does run time linking by default, so we don't
8319         # have to do anything special.
8320         aix_use_runtimelinking=no
8321         exp_sym_flag='-Bexport'
8322         no_entry_flag=""
8323       else
8324         # If we're using GNU nm, then we don't want the "-C" option.
8325         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8326         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8327           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'
8328         else
8329           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'
8330         fi
8331         aix_use_runtimelinking=no
8332
8333         # Test if we are trying to use run time linking or normal
8334         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8335         # need to do runtime linking.
8336         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8337           for ld_flag in $LDFLAGS; do
8338           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8339             aix_use_runtimelinking=yes
8340             break
8341           fi
8342           done
8343           ;;
8344         esac
8345
8346         exp_sym_flag='-bexport'
8347         no_entry_flag='-bnoentry'
8348       fi
8349
8350       # When large executables or shared objects are built, AIX ld can
8351       # have problems creating the table of contents.  If linking a library
8352       # or program results in "error TOC overflow" add -mminimal-toc to
8353       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8354       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8355
8356       archive_cmds=''
8357       hardcode_direct=yes
8358       hardcode_libdir_separator=':'
8359       link_all_deplibs=yes
8360
8361       if test "$GCC" = yes; then
8362         case $host_os in aix4.[012]|aix4.[012].*)
8363         # We only want to do this on AIX 4.2 and lower, the check
8364         # below for broken collect2 doesn't work under 4.3+
8365           collect2name=`${CC} -print-prog-name=collect2`
8366           if test -f "$collect2name" && \
8367            strings "$collect2name" | grep resolve_lib_name >/dev/null
8368           then
8369           # We have reworked collect2
8370           :
8371           else
8372           # We have old collect2
8373           hardcode_direct=unsupported
8374           # It fails to find uninstalled libraries when the uninstalled
8375           # path is not listed in the libpath.  Setting hardcode_minus_L
8376           # to unsupported forces relinking
8377           hardcode_minus_L=yes
8378           hardcode_libdir_flag_spec='-L$libdir'
8379           hardcode_libdir_separator=
8380           fi
8381           ;;
8382         esac
8383         shared_flag='-shared'
8384         if test "$aix_use_runtimelinking" = yes; then
8385           shared_flag="$shared_flag "'${wl}-G'
8386         fi
8387       else
8388         # not using gcc
8389         if test "$host_cpu" = ia64; then
8390         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8391         # chokes on -Wl,-G. The following line is correct:
8392           shared_flag='-G'
8393         else
8394           if test "$aix_use_runtimelinking" = yes; then
8395             shared_flag='${wl}-G'
8396           else
8397             shared_flag='${wl}-bM:SRE'
8398           fi
8399         fi
8400       fi
8401
8402       # It seems that -bexpall does not export symbols beginning with
8403       # underscore (_), so it is better to generate a list of symbols to export.
8404       always_export_symbols=yes
8405       if test "$aix_use_runtimelinking" = yes; then
8406         # Warning - without using the other runtime loading flags (-brtl),
8407         # -berok will link without error, but may produce a broken library.
8408         allow_undefined_flag='-berok'
8409        # Determine the default libpath from the value encoded in an empty executable.
8410        cat >conftest.$ac_ext <<_ACEOF
8411 /* confdefs.h.  */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h.  */
8416
8417 int
8418 main ()
8419 {
8420
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (ac_try="$ac_link"
8427 case "(($ac_try" in
8428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429   *) ac_try_echo=$ac_try;;
8430 esac
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432   (eval "$ac_link") 2>conftest.er1
8433   ac_status=$?
8434   grep -v '^ *+' conftest.er1 >conftest.err
8435   rm -f conftest.er1
8436   cat conftest.err >&5
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); } && {
8439          test -z "$ac_c_werror_flag" ||
8440          test ! -s conftest.err
8441        } && test -s conftest$ac_exeext &&
8442        $as_test_x conftest$ac_exeext; then
8443
8444 lt_aix_libpath_sed='
8445     /Import File Strings/,/^$/ {
8446         /^0/ {
8447             s/^0  *\(.*\)$/\1/
8448             p
8449         }
8450     }'
8451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8452 # Check for a 64-bit object if we didn't find anything.
8453 if test -z "$aix_libpath"; then
8454   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8455 fi
8456 else
8457   echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8459
8460
8461 fi
8462
8463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8464       conftest$ac_exeext conftest.$ac_ext
8465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8466
8467        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8468         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"
8469        else
8470         if test "$host_cpu" = ia64; then
8471           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8472           allow_undefined_flag="-z nodefs"
8473           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"
8474         else
8475          # Determine the default libpath from the value encoded in an empty executable.
8476          cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h.  */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h.  */
8482
8483 int
8484 main ()
8485 {
8486
8487   ;
8488   return 0;
8489 }
8490 _ACEOF
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (ac_try="$ac_link"
8493 case "(($ac_try" in
8494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495   *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498   (eval "$ac_link") 2>conftest.er1
8499   ac_status=$?
8500   grep -v '^ *+' conftest.er1 >conftest.err
8501   rm -f conftest.er1
8502   cat conftest.err >&5
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); } && {
8505          test -z "$ac_c_werror_flag" ||
8506          test ! -s conftest.err
8507        } && test -s conftest$ac_exeext &&
8508        $as_test_x conftest$ac_exeext; then
8509
8510 lt_aix_libpath_sed='
8511     /Import File Strings/,/^$/ {
8512         /^0/ {
8513             s/^0  *\(.*\)$/\1/
8514             p
8515         }
8516     }'
8517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8518 # Check for a 64-bit object if we didn't find anything.
8519 if test -z "$aix_libpath"; then
8520   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8521 fi
8522 else
8523   echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526
8527 fi
8528
8529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8530       conftest$ac_exeext conftest.$ac_ext
8531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8532
8533          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8534           # Warning - without using the other run time loading flags,
8535           # -berok will link without error, but may produce a broken library.
8536           no_undefined_flag=' ${wl}-bernotok'
8537           allow_undefined_flag=' ${wl}-berok'
8538           # Exported symbols can be pulled into shared objects from archives
8539           whole_archive_flag_spec='$convenience'
8540           archive_cmds_need_lc=yes
8541           # This is similar to how AIX traditionally builds its shared libraries.
8542           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'
8543         fi
8544       fi
8545       ;;
8546
8547     amigaos*)
8548       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)'
8549       hardcode_libdir_flag_spec='-L$libdir'
8550       hardcode_minus_L=yes
8551       # see comment about different semantics on the GNU ld section
8552       ld_shlibs=no
8553       ;;
8554
8555     bsdi[45]*)
8556       export_dynamic_flag_spec=-rdynamic
8557       ;;
8558
8559     cygwin* | mingw* | pw32*)
8560       # When not using gcc, we currently assume that we are using
8561       # Microsoft Visual C++.
8562       # hardcode_libdir_flag_spec is actually meaningless, as there is
8563       # no search path for DLLs.
8564       hardcode_libdir_flag_spec=' '
8565       allow_undefined_flag=unsupported
8566       # Tell ltmain to make .lib files, not .a files.
8567       libext=lib
8568       # Tell ltmain to make .dll files, not .so files.
8569       shrext_cmds=".dll"
8570       # FIXME: Setting linknames here is a bad hack.
8571       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8572       # The linker will automatically build a .lib file if we build a DLL.
8573       old_archive_From_new_cmds='true'
8574       # FIXME: Should let the user specify the lib program.
8575       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8576       fix_srcfile_path='`cygpath -w "$srcfile"`'
8577       enable_shared_with_static_runtimes=yes
8578       ;;
8579
8580     darwin* | rhapsody*)
8581       case $host_os in
8582         rhapsody* | darwin1.[012])
8583          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8584          ;;
8585        *) # Darwin 1.3 on
8586          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8587            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8588          else
8589            case ${MACOSX_DEPLOYMENT_TARGET} in
8590              10.[012])
8591                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8592                ;;
8593              10.*)
8594                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8595                ;;
8596            esac
8597          fi
8598          ;;
8599       esac
8600       archive_cmds_need_lc=no
8601       hardcode_direct=no
8602       hardcode_automatic=yes
8603       hardcode_shlibpath_var=unsupported
8604       whole_archive_flag_spec=''
8605       link_all_deplibs=yes
8606     if test "$GCC" = yes ; then
8607         output_verbose_link_cmd='echo'
8608         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8609       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8610       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8611       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}'
8612       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}'
8613     else
8614       case $cc_basename in
8615         xlc*)
8616          output_verbose_link_cmd='echo'
8617          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8618          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8619           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8620          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8621           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}'
8622           ;;
8623        *)
8624          ld_shlibs=no
8625           ;;
8626       esac
8627     fi
8628       ;;
8629
8630     dgux*)
8631       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8632       hardcode_libdir_flag_spec='-L$libdir'
8633       hardcode_shlibpath_var=no
8634       ;;
8635
8636     freebsd1*)
8637       ld_shlibs=no
8638       ;;
8639
8640     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8641     # support.  Future versions do this automatically, but an explicit c++rt0.o
8642     # does not break anything, and helps significantly (at the cost of a little
8643     # extra space).
8644     freebsd2.2*)
8645       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8646       hardcode_libdir_flag_spec='-R$libdir'
8647       hardcode_direct=yes
8648       hardcode_shlibpath_var=no
8649       ;;
8650
8651     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8652     freebsd2*)
8653       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8654       hardcode_direct=yes
8655       hardcode_minus_L=yes
8656       hardcode_shlibpath_var=no
8657       ;;
8658
8659     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8660     freebsd* | dragonfly*)
8661       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8662       hardcode_libdir_flag_spec='-R$libdir'
8663       hardcode_direct=yes
8664       hardcode_shlibpath_var=no
8665       ;;
8666
8667     hpux9*)
8668       if test "$GCC" = yes; then
8669         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'
8670       else
8671         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'
8672       fi
8673       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8674       hardcode_libdir_separator=:
8675       hardcode_direct=yes
8676
8677       # hardcode_minus_L: Not really in the search PATH,
8678       # but as the default location of the library.
8679       hardcode_minus_L=yes
8680       export_dynamic_flag_spec='${wl}-E'
8681       ;;
8682
8683     hpux10*)
8684       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8685         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8686       else
8687         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8688       fi
8689       if test "$with_gnu_ld" = no; then
8690         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8691         hardcode_libdir_separator=:
8692
8693         hardcode_direct=yes
8694         export_dynamic_flag_spec='${wl}-E'
8695
8696         # hardcode_minus_L: Not really in the search PATH,
8697         # but as the default location of the library.
8698         hardcode_minus_L=yes
8699       fi
8700       ;;
8701
8702     hpux11*)
8703       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8704         case $host_cpu in
8705         hppa*64*)
8706           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8707           ;;
8708         ia64*)
8709           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8710           ;;
8711         *)
8712           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8713           ;;
8714         esac
8715       else
8716         case $host_cpu in
8717         hppa*64*)
8718           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719           ;;
8720         ia64*)
8721           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8722           ;;
8723         *)
8724           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8725           ;;
8726         esac
8727       fi
8728       if test "$with_gnu_ld" = no; then
8729         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730         hardcode_libdir_separator=:
8731
8732         case $host_cpu in
8733         hppa*64*|ia64*)
8734           hardcode_libdir_flag_spec_ld='+b $libdir'
8735           hardcode_direct=no
8736           hardcode_shlibpath_var=no
8737           ;;
8738         *)
8739           hardcode_direct=yes
8740           export_dynamic_flag_spec='${wl}-E'
8741
8742           # hardcode_minus_L: Not really in the search PATH,
8743           # but as the default location of the library.
8744           hardcode_minus_L=yes
8745           ;;
8746         esac
8747       fi
8748       ;;
8749
8750     irix5* | irix6* | nonstopux*)
8751       if test "$GCC" = yes; then
8752         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'
8753       else
8754         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'
8755         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8756       fi
8757       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8758       hardcode_libdir_separator=:
8759       link_all_deplibs=yes
8760       ;;
8761
8762     netbsd* | netbsdelf*-gnu)
8763       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8764         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8765       else
8766         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8767       fi
8768       hardcode_libdir_flag_spec='-R$libdir'
8769       hardcode_direct=yes
8770       hardcode_shlibpath_var=no
8771       ;;
8772
8773     newsos6)
8774       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775       hardcode_direct=yes
8776       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777       hardcode_libdir_separator=:
8778       hardcode_shlibpath_var=no
8779       ;;
8780
8781     openbsd*)
8782       if test -f /usr/libexec/ld.so; then
8783         hardcode_direct=yes
8784         hardcode_shlibpath_var=no
8785         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8786           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8787           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8788           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8789           export_dynamic_flag_spec='${wl}-E'
8790         else
8791           case $host_os in
8792            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8793              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8794              hardcode_libdir_flag_spec='-R$libdir'
8795              ;;
8796            *)
8797              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8798              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8799              ;;
8800           esac
8801         fi
8802       else
8803         ld_shlibs=no
8804       fi
8805       ;;
8806
8807     os2*)
8808       hardcode_libdir_flag_spec='-L$libdir'
8809       hardcode_minus_L=yes
8810       allow_undefined_flag=unsupported
8811       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'
8812       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8813       ;;
8814
8815     osf3*)
8816       if test "$GCC" = yes; then
8817         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8818         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'
8819       else
8820         allow_undefined_flag=' -expect_unresolved \*'
8821         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'
8822       fi
8823       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8824       hardcode_libdir_separator=:
8825       ;;
8826
8827     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8828       if test "$GCC" = yes; then
8829         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8830         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'
8831         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832       else
8833         allow_undefined_flag=' -expect_unresolved \*'
8834         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'
8835         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8836         $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'
8837
8838         # Both c and cxx compiler support -rpath directly
8839         hardcode_libdir_flag_spec='-rpath $libdir'
8840       fi
8841       hardcode_libdir_separator=:
8842       ;;
8843
8844     solaris*)
8845       no_undefined_flag=' -z text'
8846       if test "$GCC" = yes; then
8847         wlarc='${wl}'
8848         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8850           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8851       else
8852         wlarc=''
8853         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8854         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8855         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8856       fi
8857       hardcode_libdir_flag_spec='-R$libdir'
8858       hardcode_shlibpath_var=no
8859       case $host_os in
8860       solaris2.[0-5] | solaris2.[0-5].*) ;;
8861       *)
8862         # The compiler driver will combine and reorder linker options,
8863         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8864         # but is careful enough not to reorder.
8865         # Supported since Solaris 2.6 (maybe 2.5.1?)
8866         if test "$GCC" = yes; then
8867           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8868         else
8869           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8870         fi
8871         ;;
8872       esac
8873       link_all_deplibs=yes
8874       ;;
8875
8876     sunos4*)
8877       if test "x$host_vendor" = xsequent; then
8878         # Use $CC to link under sequent, because it throws in some extra .o
8879         # files that make .init and .fini sections work.
8880         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8881       else
8882         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8883       fi
8884       hardcode_libdir_flag_spec='-L$libdir'
8885       hardcode_direct=yes
8886       hardcode_minus_L=yes
8887       hardcode_shlibpath_var=no
8888       ;;
8889
8890     sysv4)
8891       case $host_vendor in
8892         sni)
8893           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8894           hardcode_direct=yes # is this really true???
8895         ;;
8896         siemens)
8897           ## LD is ld it makes a PLAMLIB
8898           ## CC just makes a GrossModule.
8899           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8900           reload_cmds='$CC -r -o $output$reload_objs'
8901           hardcode_direct=no
8902         ;;
8903         motorola)
8904           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8906         ;;
8907       esac
8908       runpath_var='LD_RUN_PATH'
8909       hardcode_shlibpath_var=no
8910       ;;
8911
8912     sysv4.3*)
8913       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914       hardcode_shlibpath_var=no
8915       export_dynamic_flag_spec='-Bexport'
8916       ;;
8917
8918     sysv4*MP*)
8919       if test -d /usr/nec; then
8920         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921         hardcode_shlibpath_var=no
8922         runpath_var=LD_RUN_PATH
8923         hardcode_runpath_var=yes
8924         ld_shlibs=yes
8925       fi
8926       ;;
8927
8928     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8929       no_undefined_flag='${wl}-z,text'
8930       archive_cmds_need_lc=no
8931       hardcode_shlibpath_var=no
8932       runpath_var='LD_RUN_PATH'
8933
8934       if test "$GCC" = yes; then
8935         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8936         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8937       else
8938         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8939         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8940       fi
8941       ;;
8942
8943     sysv5* | sco3.2v5* | sco5v6*)
8944       # Note: We can NOT use -z defs as we might desire, because we do not
8945       # link with -lc, and that would cause any symbols used from libc to
8946       # always be unresolved, which means just about no library would
8947       # ever link correctly.  If we're not using GNU ld we use -z text
8948       # though, which does catch some bad symbols but isn't as heavy-handed
8949       # as -z defs.
8950       no_undefined_flag='${wl}-z,text'
8951       allow_undefined_flag='${wl}-z,nodefs'
8952       archive_cmds_need_lc=no
8953       hardcode_shlibpath_var=no
8954       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8955       hardcode_libdir_separator=':'
8956       link_all_deplibs=yes
8957       export_dynamic_flag_spec='${wl}-Bexport'
8958       runpath_var='LD_RUN_PATH'
8959
8960       if test "$GCC" = yes; then
8961         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8962         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963       else
8964         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8965         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966       fi
8967       ;;
8968
8969     uts4*)
8970       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971       hardcode_libdir_flag_spec='-L$libdir'
8972       hardcode_shlibpath_var=no
8973       ;;
8974
8975     *)
8976       ld_shlibs=no
8977       ;;
8978     esac
8979   fi
8980
8981 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8982 echo "${ECHO_T}$ld_shlibs" >&6; }
8983 test "$ld_shlibs" = no && can_build_shared=no
8984
8985 #
8986 # Do we need to explicitly link libc?
8987 #
8988 case "x$archive_cmds_need_lc" in
8989 x|xyes)
8990   # Assume -lc should be added
8991   archive_cmds_need_lc=yes
8992
8993   if test "$enable_shared" = yes && test "$GCC" = yes; then
8994     case $archive_cmds in
8995     *'~'*)
8996       # FIXME: we may have to deal with multi-command sequences.
8997       ;;
8998     '$CC '*)
8999       # Test whether the compiler implicitly links with -lc since on some
9000       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9001       # to ld, don't add -lc before -lgcc.
9002       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9003 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9004       $rm conftest*
9005       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9006
9007       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9008   (eval $ac_compile) 2>&5
9009   ac_status=$?
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } 2>conftest.err; then
9012         soname=conftest
9013         lib=conftest
9014         libobjs=conftest.$ac_objext
9015         deplibs=
9016         wl=$lt_prog_compiler_wl
9017         pic_flag=$lt_prog_compiler_pic
9018         compiler_flags=-v
9019         linker_flags=-v
9020         verstring=
9021         output_objdir=.
9022         libname=conftest
9023         lt_save_allow_undefined_flag=$allow_undefined_flag
9024         allow_undefined_flag=
9025         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9026   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); }
9030         then
9031           archive_cmds_need_lc=no
9032         else
9033           archive_cmds_need_lc=yes
9034         fi
9035         allow_undefined_flag=$lt_save_allow_undefined_flag
9036       else
9037         cat conftest.err 1>&5
9038       fi
9039       $rm conftest*
9040       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9041 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9042       ;;
9043     esac
9044   fi
9045   ;;
9046 esac
9047
9048 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9049 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9050 library_names_spec=
9051 libname_spec='lib$name'
9052 soname_spec=
9053 shrext_cmds=".so"
9054 postinstall_cmds=
9055 postuninstall_cmds=
9056 finish_cmds=
9057 finish_eval=
9058 shlibpath_var=
9059 shlibpath_overrides_runpath=unknown
9060 version_type=none
9061 dynamic_linker="$host_os ld.so"
9062 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9063
9064 if test "$GCC" = yes; then
9065   case $host_os in
9066     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9067     *) lt_awk_arg="/^libraries:/" ;;
9068   esac
9069   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9070   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9071     # if the path contains ";" then we assume it to be the separator
9072     # otherwise default to the standard path separator (i.e. ":") - it is
9073     # assumed that no part of a normal pathname contains ";" but that should
9074     # okay in the real world where ";" in dirpaths is itself problematic.
9075     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9076   else
9077     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9078   fi
9079   # Ok, now we have the path, separated by spaces, we can step through it
9080   # and add multilib dir if necessary.
9081   lt_tmp_lt_search_path_spec=
9082   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9083   for lt_sys_path in $lt_search_path_spec; do
9084     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9085       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9086     else
9087       test -d "$lt_sys_path" && \
9088         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9089     fi
9090   done
9091   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9092 BEGIN {RS=" "; FS="/|\n";} {
9093   lt_foo="";
9094   lt_count=0;
9095   for (lt_i = NF; lt_i > 0; lt_i--) {
9096     if ($lt_i != "" && $lt_i != ".") {
9097       if ($lt_i == "..") {
9098         lt_count++;
9099       } else {
9100         if (lt_count == 0) {
9101           lt_foo="/" $lt_i lt_foo;
9102         } else {
9103           lt_count--;
9104         }
9105       }
9106     }
9107   }
9108   if (lt_foo != "") { lt_freq[lt_foo]++; }
9109   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9110 }'`
9111   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9112 else
9113   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9114 fi
9115 need_lib_prefix=unknown
9116 hardcode_into_libs=no
9117
9118 # when you set need_version to no, make sure it does not cause -set_version
9119 # flags to be left without arguments
9120 need_version=unknown
9121
9122 case $host_os in
9123 aix3*)
9124   version_type=linux
9125   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9126   shlibpath_var=LIBPATH
9127
9128   # AIX 3 has no versioning support, so we append a major version to the name.
9129   soname_spec='${libname}${release}${shared_ext}$major'
9130   ;;
9131
9132 aix4* | aix5*)
9133   version_type=linux
9134   need_lib_prefix=no
9135   need_version=no
9136   hardcode_into_libs=yes
9137   if test "$host_cpu" = ia64; then
9138     # AIX 5 supports IA64
9139     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9140     shlibpath_var=LD_LIBRARY_PATH
9141   else
9142     # With GCC up to 2.95.x, collect2 would create an import file
9143     # for dependence libraries.  The import file would start with
9144     # the line `#! .'.  This would cause the generated library to
9145     # depend on `.', always an invalid library.  This was fixed in
9146     # development snapshots of GCC prior to 3.0.
9147     case $host_os in
9148       aix4 | aix4.[01] | aix4.[01].*)
9149       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9150            echo ' yes '
9151            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9152         :
9153       else
9154         can_build_shared=no
9155       fi
9156       ;;
9157     esac
9158     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9159     # soname into executable. Probably we can add versioning support to
9160     # collect2, so additional links can be useful in future.
9161     if test "$aix_use_runtimelinking" = yes; then
9162       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9163       # instead of lib<name>.a to let people know that these are not
9164       # typical AIX shared libraries.
9165       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166     else
9167       # We preserve .a as extension for shared libraries through AIX4.2
9168       # and later when we are not doing run time linking.
9169       library_names_spec='${libname}${release}.a $libname.a'
9170       soname_spec='${libname}${release}${shared_ext}$major'
9171     fi
9172     shlibpath_var=LIBPATH
9173   fi
9174   ;;
9175
9176 amigaos*)
9177   library_names_spec='$libname.ixlibrary $libname.a'
9178   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9179   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'
9180   ;;
9181
9182 beos*)
9183   library_names_spec='${libname}${shared_ext}'
9184   dynamic_linker="$host_os ld.so"
9185   shlibpath_var=LIBRARY_PATH
9186   ;;
9187
9188 bsdi[45]*)
9189   version_type=linux
9190   need_version=no
9191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192   soname_spec='${libname}${release}${shared_ext}$major'
9193   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9194   shlibpath_var=LD_LIBRARY_PATH
9195   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9196   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9197   # the default ld.so.conf also contains /usr/contrib/lib and
9198   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9199   # libtool to hard-code these into programs
9200   ;;
9201
9202 cygwin* | mingw* | pw32*)
9203   version_type=windows
9204   shrext_cmds=".dll"
9205   need_version=no
9206   need_lib_prefix=no
9207
9208   case $GCC,$host_os in
9209   yes,cygwin* | yes,mingw* | yes,pw32*)
9210     library_names_spec='$libname.dll.a'
9211     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9212     postinstall_cmds='base_file=`basename \${file}`~
9213       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9214       dldir=$destdir/`dirname \$dlpath`~
9215       test -d \$dldir || mkdir -p \$dldir~
9216       $install_prog $dir/$dlname \$dldir/$dlname~
9217       chmod a+x \$dldir/$dlname'
9218     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9219       dlpath=$dir/\$dldll~
9220        $rm \$dlpath'
9221     shlibpath_overrides_runpath=yes
9222
9223     case $host_os in
9224     cygwin*)
9225       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9226       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9227       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9228       ;;
9229     mingw*)
9230       # MinGW DLLs use traditional 'lib' prefix
9231       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9232       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9233       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9234         # It is most probably a Windows format PATH printed by
9235         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9236         # path with ; separators, and with drive letters. We can handle the
9237         # drive letters (cygwin fileutils understands them), so leave them,
9238         # especially as we might pass files found there to a mingw objdump,
9239         # which wouldn't understand a cygwinified path. Ahh.
9240         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9241       else
9242         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9243       fi
9244       ;;
9245     pw32*)
9246       # pw32 DLLs use 'pw' prefix rather than 'lib'
9247       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9248       ;;
9249     esac
9250     ;;
9251
9252   *)
9253     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9254     ;;
9255   esac
9256   dynamic_linker='Win32 ld.exe'
9257   # FIXME: first we should search . and the directory the executable is in
9258   shlibpath_var=PATH
9259   ;;
9260
9261 darwin* | rhapsody*)
9262   dynamic_linker="$host_os dyld"
9263   version_type=darwin
9264   need_lib_prefix=no
9265   need_version=no
9266   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9267   soname_spec='${libname}${release}${major}$shared_ext'
9268   shlibpath_overrides_runpath=yes
9269   shlibpath_var=DYLD_LIBRARY_PATH
9270   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9271
9272   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9273   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9274   ;;
9275
9276 dgux*)
9277   version_type=linux
9278   need_lib_prefix=no
9279   need_version=no
9280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9281   soname_spec='${libname}${release}${shared_ext}$major'
9282   shlibpath_var=LD_LIBRARY_PATH
9283   ;;
9284
9285 freebsd1*)
9286   dynamic_linker=no
9287   ;;
9288
9289 freebsd* | dragonfly*)
9290   # DragonFly does not have aout.  When/if they implement a new
9291   # versioning mechanism, adjust this.
9292   if test -x /usr/bin/objformat; then
9293     objformat=`/usr/bin/objformat`
9294   else
9295     case $host_os in
9296     freebsd[123]*) objformat=aout ;;
9297     *) objformat=elf ;;
9298     esac
9299   fi
9300   version_type=freebsd-$objformat
9301   case $version_type in
9302     freebsd-elf*)
9303       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304       need_version=no
9305       need_lib_prefix=no
9306       ;;
9307     freebsd-*)
9308       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9309       need_version=yes
9310       ;;
9311   esac
9312   shlibpath_var=LD_LIBRARY_PATH
9313   case $host_os in
9314   freebsd2*)
9315     shlibpath_overrides_runpath=yes
9316     ;;
9317   freebsd3.[01]* | freebsdelf3.[01]*)
9318     shlibpath_overrides_runpath=yes
9319     hardcode_into_libs=yes
9320     ;;
9321   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9322   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9323     shlibpath_overrides_runpath=no
9324     hardcode_into_libs=yes
9325     ;;
9326   *) # from 4.6 on, and DragonFly
9327     shlibpath_overrides_runpath=yes
9328     hardcode_into_libs=yes
9329     ;;
9330   esac
9331   ;;
9332
9333 gnu*)
9334   version_type=linux
9335   need_lib_prefix=no
9336   need_version=no
9337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9338   soname_spec='${libname}${release}${shared_ext}$major'
9339   shlibpath_var=LD_LIBRARY_PATH
9340   hardcode_into_libs=yes
9341   ;;
9342
9343 hpux9* | hpux10* | hpux11*)
9344   # Give a soname corresponding to the major version so that dld.sl refuses to
9345   # link against other versions.
9346   version_type=sunos
9347   need_lib_prefix=no
9348   need_version=no
9349   case $host_cpu in
9350   ia64*)
9351     shrext_cmds='.so'
9352     hardcode_into_libs=yes
9353     dynamic_linker="$host_os dld.so"
9354     shlibpath_var=LD_LIBRARY_PATH
9355     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357     soname_spec='${libname}${release}${shared_ext}$major'
9358     if test "X$HPUX_IA64_MODE" = X32; then
9359       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9360     else
9361       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9362     fi
9363     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9364     ;;
9365    hppa*64*)
9366      shrext_cmds='.sl'
9367      hardcode_into_libs=yes
9368      dynamic_linker="$host_os dld.sl"
9369      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9370      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9371      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372      soname_spec='${libname}${release}${shared_ext}$major'
9373      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9374      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9375      ;;
9376    *)
9377     shrext_cmds='.sl'
9378     dynamic_linker="$host_os dld.sl"
9379     shlibpath_var=SHLIB_PATH
9380     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382     soname_spec='${libname}${release}${shared_ext}$major'
9383     ;;
9384   esac
9385   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9386   postinstall_cmds='chmod 555 $lib'
9387   ;;
9388
9389 interix[3-9]*)
9390   version_type=linux
9391   need_lib_prefix=no
9392   need_version=no
9393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9394   soname_spec='${libname}${release}${shared_ext}$major'
9395   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9396   shlibpath_var=LD_LIBRARY_PATH
9397   shlibpath_overrides_runpath=no
9398   hardcode_into_libs=yes
9399   ;;
9400
9401 irix5* | irix6* | nonstopux*)
9402   case $host_os in
9403     nonstopux*) version_type=nonstopux ;;
9404     *)
9405         if test "$lt_cv_prog_gnu_ld" = yes; then
9406                 version_type=linux
9407         else
9408                 version_type=irix
9409         fi ;;
9410   esac
9411   need_lib_prefix=no
9412   need_version=no
9413   soname_spec='${libname}${release}${shared_ext}$major'
9414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9415   case $host_os in
9416   irix5* | nonstopux*)
9417     libsuff= shlibsuff=
9418     ;;
9419   *)
9420     case $LD in # libtool.m4 will add one of these switches to LD
9421     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9422       libsuff= shlibsuff= libmagic=32-bit;;
9423     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9424       libsuff=32 shlibsuff=N32 libmagic=N32;;
9425     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9426       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9427     *) libsuff= shlibsuff= libmagic=never-match;;
9428     esac
9429     ;;
9430   esac
9431   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9432   shlibpath_overrides_runpath=no
9433   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9434   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9435   hardcode_into_libs=yes
9436   ;;
9437
9438 # No shared lib support for Linux oldld, aout, or coff.
9439 linux*oldld* | linux*aout* | linux*coff*)
9440   dynamic_linker=no
9441   ;;
9442
9443 # This must be Linux ELF.
9444 linux* | k*bsd*-gnu)
9445   version_type=linux
9446   need_lib_prefix=no
9447   need_version=no
9448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449   soname_spec='${libname}${release}${shared_ext}$major'
9450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9451   shlibpath_var=LD_LIBRARY_PATH
9452   shlibpath_overrides_runpath=no
9453   # This implies no fast_install, which is unacceptable.
9454   # Some rework will be needed to allow for fast_install
9455   # before this can be enabled.
9456   hardcode_into_libs=yes
9457
9458   # Append ld.so.conf contents to the search path
9459   if test -f /etc/ld.so.conf; then
9460     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9461     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9462   fi
9463
9464   # We used to test for /lib/ld.so.1 and disable shared libraries on
9465   # powerpc, because MkLinux only supported shared libraries with the
9466   # GNU dynamic linker.  Since this was broken with cross compilers,
9467   # most powerpc-linux boxes support dynamic linking these days and
9468   # people can always --disable-shared, the test was removed, and we
9469   # assume the GNU/Linux dynamic linker is in use.
9470   dynamic_linker='GNU/Linux ld.so'
9471   ;;
9472
9473 netbsdelf*-gnu)
9474   version_type=linux
9475   need_lib_prefix=no
9476   need_version=no
9477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9478   soname_spec='${libname}${release}${shared_ext}$major'
9479   shlibpath_var=LD_LIBRARY_PATH
9480   shlibpath_overrides_runpath=no
9481   hardcode_into_libs=yes
9482   dynamic_linker='NetBSD ld.elf_so'
9483   ;;
9484
9485 netbsd*)
9486   version_type=sunos
9487   need_lib_prefix=no
9488   need_version=no
9489   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9491     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9492     dynamic_linker='NetBSD (a.out) ld.so'
9493   else
9494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9495     soname_spec='${libname}${release}${shared_ext}$major'
9496     dynamic_linker='NetBSD ld.elf_so'
9497   fi
9498   shlibpath_var=LD_LIBRARY_PATH
9499   shlibpath_overrides_runpath=yes
9500   hardcode_into_libs=yes
9501   ;;
9502
9503 newsos6)
9504   version_type=linux
9505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506   shlibpath_var=LD_LIBRARY_PATH
9507   shlibpath_overrides_runpath=yes
9508   ;;
9509
9510 nto-qnx*)
9511   version_type=linux
9512   need_lib_prefix=no
9513   need_version=no
9514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515   soname_spec='${libname}${release}${shared_ext}$major'
9516   shlibpath_var=LD_LIBRARY_PATH
9517   shlibpath_overrides_runpath=yes
9518   ;;
9519
9520 openbsd*)
9521   version_type=sunos
9522   sys_lib_dlsearch_path_spec="/usr/lib"
9523   need_lib_prefix=no
9524   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9525   case $host_os in
9526     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9527     *)                         need_version=no  ;;
9528   esac
9529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9530   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9531   shlibpath_var=LD_LIBRARY_PATH
9532   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9533     case $host_os in
9534       openbsd2.[89] | openbsd2.[89].*)
9535         shlibpath_overrides_runpath=no
9536         ;;
9537       *)
9538         shlibpath_overrides_runpath=yes
9539         ;;
9540       esac
9541   else
9542     shlibpath_overrides_runpath=yes
9543   fi
9544   ;;
9545
9546 os2*)
9547   libname_spec='$name'
9548   shrext_cmds=".dll"
9549   need_lib_prefix=no
9550   library_names_spec='$libname${shared_ext} $libname.a'
9551   dynamic_linker='OS/2 ld.exe'
9552   shlibpath_var=LIBPATH
9553   ;;
9554
9555 osf3* | osf4* | osf5*)
9556   version_type=osf
9557   need_lib_prefix=no
9558   need_version=no
9559   soname_spec='${libname}${release}${shared_ext}$major'
9560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561   shlibpath_var=LD_LIBRARY_PATH
9562   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9563   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9564   ;;
9565
9566 rdos*)
9567   dynamic_linker=no
9568   ;;
9569
9570 solaris*)
9571   version_type=linux
9572   need_lib_prefix=no
9573   need_version=no
9574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575   soname_spec='${libname}${release}${shared_ext}$major'
9576   shlibpath_var=LD_LIBRARY_PATH
9577   shlibpath_overrides_runpath=yes
9578   hardcode_into_libs=yes
9579   # ldd complains unless libraries are executable
9580   postinstall_cmds='chmod +x $lib'
9581   ;;
9582
9583 sunos4*)
9584   version_type=sunos
9585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9586   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9587   shlibpath_var=LD_LIBRARY_PATH
9588   shlibpath_overrides_runpath=yes
9589   if test "$with_gnu_ld" = yes; then
9590     need_lib_prefix=no
9591   fi
9592   need_version=yes
9593   ;;
9594
9595 sysv4 | sysv4.3*)
9596   version_type=linux
9597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598   soname_spec='${libname}${release}${shared_ext}$major'
9599   shlibpath_var=LD_LIBRARY_PATH
9600   case $host_vendor in
9601     sni)
9602       shlibpath_overrides_runpath=no
9603       need_lib_prefix=no
9604       export_dynamic_flag_spec='${wl}-Blargedynsym'
9605       runpath_var=LD_RUN_PATH
9606       ;;
9607     siemens)
9608       need_lib_prefix=no
9609       ;;
9610     motorola)
9611       need_lib_prefix=no
9612       need_version=no
9613       shlibpath_overrides_runpath=no
9614       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9615       ;;
9616   esac
9617   ;;
9618
9619 sysv4*MP*)
9620   if test -d /usr/nec ;then
9621     version_type=linux
9622     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9623     soname_spec='$libname${shared_ext}.$major'
9624     shlibpath_var=LD_LIBRARY_PATH
9625   fi
9626   ;;
9627
9628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9629   version_type=freebsd-elf
9630   need_lib_prefix=no
9631   need_version=no
9632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9633   soname_spec='${libname}${release}${shared_ext}$major'
9634   shlibpath_var=LD_LIBRARY_PATH
9635   hardcode_into_libs=yes
9636   if test "$with_gnu_ld" = yes; then
9637     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9638     shlibpath_overrides_runpath=no
9639   else
9640     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9641     shlibpath_overrides_runpath=yes
9642     case $host_os in
9643       sco3.2v5*)
9644         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9645         ;;
9646     esac
9647   fi
9648   sys_lib_dlsearch_path_spec='/usr/lib'
9649   ;;
9650
9651 uts4*)
9652   version_type=linux
9653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654   soname_spec='${libname}${release}${shared_ext}$major'
9655   shlibpath_var=LD_LIBRARY_PATH
9656   ;;
9657
9658 *)
9659   dynamic_linker=no
9660   ;;
9661 esac
9662 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9663 echo "${ECHO_T}$dynamic_linker" >&6; }
9664 test "$dynamic_linker" = no && can_build_shared=no
9665
9666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9667 if test "$GCC" = yes; then
9668   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9669 fi
9670
9671 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9673 hardcode_action=
9674 if test -n "$hardcode_libdir_flag_spec" || \
9675    test -n "$runpath_var" || \
9676    test "X$hardcode_automatic" = "Xyes" ; then
9677
9678   # We can hardcode non-existant directories.
9679   if test "$hardcode_direct" != no &&
9680      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9681      # have to relink, otherwise we might link with an installed library
9682      # when we should be linking with a yet-to-be-installed one
9683      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9684      test "$hardcode_minus_L" != no; then
9685     # Linking always hardcodes the temporary library directory.
9686     hardcode_action=relink
9687   else
9688     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9689     hardcode_action=immediate
9690   fi
9691 else
9692   # We cannot hardcode anything, or else we can only hardcode existing
9693   # directories.
9694   hardcode_action=unsupported
9695 fi
9696 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9697 echo "${ECHO_T}$hardcode_action" >&6; }
9698
9699 if test "$hardcode_action" = relink; then
9700   # Fast installation is not supported
9701   enable_fast_install=no
9702 elif test "$shlibpath_overrides_runpath" = yes ||
9703      test "$enable_shared" = no; then
9704   # Fast installation is not necessary
9705   enable_fast_install=needless
9706 fi
9707
9708 striplib=
9709 old_striplib=
9710 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9713   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9714   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9715   { echo "$as_me:$LINENO: result: yes" >&5
9716 echo "${ECHO_T}yes" >&6; }
9717 else
9718 # FIXME - insert some real tests, host_os isn't really good enough
9719   case $host_os in
9720    darwin*)
9721        if test -n "$STRIP" ; then
9722          striplib="$STRIP -x"
9723          old_striplib="$STRIP -S"
9724          { echo "$as_me:$LINENO: result: yes" >&5
9725 echo "${ECHO_T}yes" >&6; }
9726        else
9727   { echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6; }
9729 fi
9730        ;;
9731    *)
9732   { echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6; }
9734     ;;
9735   esac
9736 fi
9737
9738 if test "x$enable_dlopen" != xyes; then
9739   enable_dlopen=unknown
9740   enable_dlopen_self=unknown
9741   enable_dlopen_self_static=unknown
9742 else
9743   lt_cv_dlopen=no
9744   lt_cv_dlopen_libs=
9745
9746   case $host_os in
9747   beos*)
9748     lt_cv_dlopen="load_add_on"
9749     lt_cv_dlopen_libs=
9750     lt_cv_dlopen_self=yes
9751     ;;
9752
9753   mingw* | pw32*)
9754     lt_cv_dlopen="LoadLibrary"
9755     lt_cv_dlopen_libs=
9756    ;;
9757
9758   cygwin*)
9759     lt_cv_dlopen="dlopen"
9760     lt_cv_dlopen_libs=
9761    ;;
9762
9763   darwin*)
9764   # if libdl is installed we need to link against it
9765     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9768   echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770   ac_check_lib_save_LIBS=$LIBS
9771 LIBS="-ldl  $LIBS"
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778
9779 /* Override any GCC internal prototype to avoid an error.
9780    Use char because int might match the return type of a GCC
9781    builtin and then its argument prototype would still apply.  */
9782 #ifdef __cplusplus
9783 extern "C"
9784 #endif
9785 char dlopen ();
9786 int
9787 main ()
9788 {
9789 return dlopen ();
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9796 case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_link") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } && {
9808          test -z "$ac_c_werror_flag" ||
9809          test ! -s conftest.err
9810        } && test -s conftest$ac_exeext &&
9811        $as_test_x conftest$ac_exeext; then
9812   ac_cv_lib_dl_dlopen=yes
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817         ac_cv_lib_dl_dlopen=no
9818 fi
9819
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821       conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9823 fi
9824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9826 if test $ac_cv_lib_dl_dlopen = yes; then
9827   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9828 else
9829
9830     lt_cv_dlopen="dyld"
9831     lt_cv_dlopen_libs=
9832     lt_cv_dlopen_self=yes
9833
9834 fi
9835
9836    ;;
9837
9838   *)
9839     { echo "$as_me:$LINENO: checking for shl_load" >&5
9840 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9841 if test "${ac_cv_func_shl_load+set}" = set; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9852 #define shl_load innocuous_shl_load
9853
9854 /* System header to define __stub macros and hopefully few prototypes,
9855     which can conflict with char shl_load (); below.
9856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857     <limits.h> exists even on freestanding compilers.  */
9858
9859 #ifdef __STDC__
9860 # include <limits.h>
9861 #else
9862 # include <assert.h>
9863 #endif
9864
9865 #undef shl_load
9866
9867 /* Override any GCC internal prototype to avoid an error.
9868    Use char because int might match the return type of a GCC
9869    builtin and then its argument prototype would still apply.  */
9870 #ifdef __cplusplus
9871 extern "C"
9872 #endif
9873 char shl_load ();
9874 /* The GNU C library defines this for functions which it implements
9875     to always fail with ENOSYS.  Some functions are actually named
9876     something starting with __ and the normal name is an alias.  */
9877 #if defined __stub_shl_load || defined __stub___shl_load
9878 choke me
9879 #endif
9880
9881 int
9882 main ()
9883 {
9884 return shl_load ();
9885   ;
9886   return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9891 case "(($ac_try" in
9892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893   *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896   (eval "$ac_link") 2>conftest.er1
9897   ac_status=$?
9898   grep -v '^ *+' conftest.er1 >conftest.err
9899   rm -f conftest.er1
9900   cat conftest.err >&5
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); } && {
9903          test -z "$ac_c_werror_flag" ||
9904          test ! -s conftest.err
9905        } && test -s conftest$ac_exeext &&
9906        $as_test_x conftest$ac_exeext; then
9907   ac_cv_func_shl_load=yes
9908 else
9909   echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912         ac_cv_func_shl_load=no
9913 fi
9914
9915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9916       conftest$ac_exeext conftest.$ac_ext
9917 fi
9918 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9919 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9920 if test $ac_cv_func_shl_load = yes; then
9921   lt_cv_dlopen="shl_load"
9922 else
9923   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9924 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9925 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9926   echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928   ac_check_lib_save_LIBS=$LIBS
9929 LIBS="-ldld  $LIBS"
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h.  */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h.  */
9936
9937 /* Override any GCC internal prototype to avoid an error.
9938    Use char because int might match the return type of a GCC
9939    builtin and then its argument prototype would still apply.  */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 char shl_load ();
9944 int
9945 main ()
9946 {
9947 return shl_load ();
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9954 case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_link") 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } && {
9966          test -z "$ac_c_werror_flag" ||
9967          test ! -s conftest.err
9968        } && test -s conftest$ac_exeext &&
9969        $as_test_x conftest$ac_exeext; then
9970   ac_cv_lib_dld_shl_load=yes
9971 else
9972   echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975         ac_cv_lib_dld_shl_load=no
9976 fi
9977
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979       conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9981 fi
9982 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9983 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9984 if test $ac_cv_lib_dld_shl_load = yes; then
9985   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9986 else
9987   { echo "$as_me:$LINENO: checking for dlopen" >&5
9988 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9989 if test "${ac_cv_func_dlopen+set}" = set; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10000 #define dlopen innocuous_dlopen
10001
10002 /* System header to define __stub macros and hopefully few prototypes,
10003     which can conflict with char dlopen (); below.
10004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005     <limits.h> exists even on freestanding compilers.  */
10006
10007 #ifdef __STDC__
10008 # include <limits.h>
10009 #else
10010 # include <assert.h>
10011 #endif
10012
10013 #undef dlopen
10014
10015 /* Override any GCC internal prototype to avoid an error.
10016    Use char because int might match the return type of a GCC
10017    builtin and then its argument prototype would still apply.  */
10018 #ifdef __cplusplus
10019 extern "C"
10020 #endif
10021 char dlopen ();
10022 /* The GNU C library defines this for functions which it implements
10023     to always fail with ENOSYS.  Some functions are actually named
10024     something starting with __ and the normal name is an alias.  */
10025 #if defined __stub_dlopen || defined __stub___dlopen
10026 choke me
10027 #endif
10028
10029 int
10030 main ()
10031 {
10032 return dlopen ();
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041   *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044   (eval "$ac_link") 2>conftest.er1
10045   ac_status=$?
10046   grep -v '^ *+' conftest.er1 >conftest.err
10047   rm -f conftest.er1
10048   cat conftest.err >&5
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } && {
10051          test -z "$ac_c_werror_flag" ||
10052          test ! -s conftest.err
10053        } && test -s conftest$ac_exeext &&
10054        $as_test_x conftest$ac_exeext; then
10055   ac_cv_func_dlopen=yes
10056 else
10057   echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060         ac_cv_func_dlopen=no
10061 fi
10062
10063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10064       conftest$ac_exeext conftest.$ac_ext
10065 fi
10066 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10067 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10068 if test $ac_cv_func_dlopen = yes; then
10069   lt_cv_dlopen="dlopen"
10070 else
10071   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10072 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10074   echo $ECHO_N "(cached) $ECHO_C" >&6
10075 else
10076   ac_check_lib_save_LIBS=$LIBS
10077 LIBS="-ldl  $LIBS"
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10084
10085 /* Override any GCC internal prototype to avoid an error.
10086    Use char because int might match the return type of a GCC
10087    builtin and then its argument prototype would still apply.  */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 char dlopen ();
10092 int
10093 main ()
10094 {
10095 return dlopen ();
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (ac_try="$ac_link"
10102 case "(($ac_try" in
10103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104   *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107   (eval "$ac_link") 2>conftest.er1
10108   ac_status=$?
10109   grep -v '^ *+' conftest.er1 >conftest.err
10110   rm -f conftest.er1
10111   cat conftest.err >&5
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); } && {
10114          test -z "$ac_c_werror_flag" ||
10115          test ! -s conftest.err
10116        } && test -s conftest$ac_exeext &&
10117        $as_test_x conftest$ac_exeext; then
10118   ac_cv_lib_dl_dlopen=yes
10119 else
10120   echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123         ac_cv_lib_dl_dlopen=no
10124 fi
10125
10126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10127       conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10129 fi
10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10131 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10132 if test $ac_cv_lib_dl_dlopen = yes; then
10133   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10134 else
10135   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10136 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10137 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10138   echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140   ac_check_lib_save_LIBS=$LIBS
10141 LIBS="-lsvld  $LIBS"
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h.  */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h.  */
10148
10149 /* Override any GCC internal prototype to avoid an error.
10150    Use char because int might match the return type of a GCC
10151    builtin and then its argument prototype would still apply.  */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 char dlopen ();
10156 int
10157 main ()
10158 {
10159 return dlopen ();
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168   *) ac_try_echo=$ac_try;;
10169 esac
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171   (eval "$ac_link") 2>conftest.er1
10172   ac_status=$?
10173   grep -v '^ *+' conftest.er1 >conftest.err
10174   rm -f conftest.er1
10175   cat conftest.err >&5
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } && {
10178          test -z "$ac_c_werror_flag" ||
10179          test ! -s conftest.err
10180        } && test -s conftest$ac_exeext &&
10181        $as_test_x conftest$ac_exeext; then
10182   ac_cv_lib_svld_dlopen=yes
10183 else
10184   echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187         ac_cv_lib_svld_dlopen=no
10188 fi
10189
10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191       conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10193 fi
10194 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10195 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10196 if test $ac_cv_lib_svld_dlopen = yes; then
10197   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10198 else
10199   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10200 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10202   echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204   ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-ldld  $LIBS"
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h.  */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h.  */
10212
10213 /* Override any GCC internal prototype to avoid an error.
10214    Use char because int might match the return type of a GCC
10215    builtin and then its argument prototype would still apply.  */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 char dld_link ();
10220 int
10221 main ()
10222 {
10223 return dld_link ();
10224   ;
10225   return 0;
10226 }
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232   *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235   (eval "$ac_link") 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } && {
10242          test -z "$ac_c_werror_flag" ||
10243          test ! -s conftest.err
10244        } && test -s conftest$ac_exeext &&
10245        $as_test_x conftest$ac_exeext; then
10246   ac_cv_lib_dld_dld_link=yes
10247 else
10248   echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251         ac_cv_lib_dld_dld_link=no
10252 fi
10253
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255       conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10257 fi
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10259 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10260 if test $ac_cv_lib_dld_dld_link = yes; then
10261   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10262 fi
10263
10264
10265 fi
10266
10267
10268 fi
10269
10270
10271 fi
10272
10273
10274 fi
10275
10276
10277 fi
10278
10279     ;;
10280   esac
10281
10282   if test "x$lt_cv_dlopen" != xno; then
10283     enable_dlopen=yes
10284   else
10285     enable_dlopen=no
10286   fi
10287
10288   case $lt_cv_dlopen in
10289   dlopen)
10290     save_CPPFLAGS="$CPPFLAGS"
10291     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10292
10293     save_LDFLAGS="$LDFLAGS"
10294     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10295
10296     save_LIBS="$LIBS"
10297     LIBS="$lt_cv_dlopen_libs $LIBS"
10298
10299     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10300 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10301 if test "${lt_cv_dlopen_self+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304           if test "$cross_compiling" = yes; then :
10305   lt_cv_dlopen_self=cross
10306 else
10307   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10308   lt_status=$lt_dlunknown
10309   cat > conftest.$ac_ext <<EOF
10310 #line 10310 "configure"
10311 #include "confdefs.h"
10312
10313 #if HAVE_DLFCN_H
10314 #include <dlfcn.h>
10315 #endif
10316
10317 #include <stdio.h>
10318
10319 #ifdef RTLD_GLOBAL
10320 #  define LT_DLGLOBAL           RTLD_GLOBAL
10321 #else
10322 #  ifdef DL_GLOBAL
10323 #    define LT_DLGLOBAL         DL_GLOBAL
10324 #  else
10325 #    define LT_DLGLOBAL         0
10326 #  endif
10327 #endif
10328
10329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10330    find out it does not work in some platform. */
10331 #ifndef LT_DLLAZY_OR_NOW
10332 #  ifdef RTLD_LAZY
10333 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10334 #  else
10335 #    ifdef DL_LAZY
10336 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10337 #    else
10338 #      ifdef RTLD_NOW
10339 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10340 #      else
10341 #        ifdef DL_NOW
10342 #          define LT_DLLAZY_OR_NOW      DL_NOW
10343 #        else
10344 #          define LT_DLLAZY_OR_NOW      0
10345 #        endif
10346 #      endif
10347 #    endif
10348 #  endif
10349 #endif
10350
10351 #ifdef __cplusplus
10352 extern "C" void exit (int);
10353 #endif
10354
10355 void fnord() { int i=42;}
10356 int main ()
10357 {
10358   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10359   int status = $lt_dlunknown;
10360
10361   if (self)
10362     {
10363       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10364       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10365       /* dlclose (self); */
10366     }
10367   else
10368     puts (dlerror ());
10369
10370     exit (status);
10371 }
10372 EOF
10373   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374   (eval $ac_link) 2>&5
10375   ac_status=$?
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10378     (./conftest; exit; ) >&5 2>/dev/null
10379     lt_status=$?
10380     case x$lt_status in
10381       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10382       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10383       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10384     esac
10385   else :
10386     # compilation failed
10387     lt_cv_dlopen_self=no
10388   fi
10389 fi
10390 rm -fr conftest*
10391
10392
10393 fi
10394 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10395 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10396
10397     if test "x$lt_cv_dlopen_self" = xyes; then
10398       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10399       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10400 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10401 if test "${lt_cv_dlopen_self_static+set}" = set; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404           if test "$cross_compiling" = yes; then :
10405   lt_cv_dlopen_self_static=cross
10406 else
10407   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10408   lt_status=$lt_dlunknown
10409   cat > conftest.$ac_ext <<EOF
10410 #line 10410 "configure"
10411 #include "confdefs.h"
10412
10413 #if HAVE_DLFCN_H
10414 #include <dlfcn.h>
10415 #endif
10416
10417 #include <stdio.h>
10418
10419 #ifdef RTLD_GLOBAL
10420 #  define LT_DLGLOBAL           RTLD_GLOBAL
10421 #else
10422 #  ifdef DL_GLOBAL
10423 #    define LT_DLGLOBAL         DL_GLOBAL
10424 #  else
10425 #    define LT_DLGLOBAL         0
10426 #  endif
10427 #endif
10428
10429 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10430    find out it does not work in some platform. */
10431 #ifndef LT_DLLAZY_OR_NOW
10432 #  ifdef RTLD_LAZY
10433 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10434 #  else
10435 #    ifdef DL_LAZY
10436 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10437 #    else
10438 #      ifdef RTLD_NOW
10439 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10440 #      else
10441 #        ifdef DL_NOW
10442 #          define LT_DLLAZY_OR_NOW      DL_NOW
10443 #        else
10444 #          define LT_DLLAZY_OR_NOW      0
10445 #        endif
10446 #      endif
10447 #    endif
10448 #  endif
10449 #endif
10450
10451 #ifdef __cplusplus
10452 extern "C" void exit (int);
10453 #endif
10454
10455 void fnord() { int i=42;}
10456 int main ()
10457 {
10458   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10459   int status = $lt_dlunknown;
10460
10461   if (self)
10462     {
10463       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10464       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10465       /* dlclose (self); */
10466     }
10467   else
10468     puts (dlerror ());
10469
10470     exit (status);
10471 }
10472 EOF
10473   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474   (eval $ac_link) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10478     (./conftest; exit; ) >&5 2>/dev/null
10479     lt_status=$?
10480     case x$lt_status in
10481       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10482       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10483       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10484     esac
10485   else :
10486     # compilation failed
10487     lt_cv_dlopen_self_static=no
10488   fi
10489 fi
10490 rm -fr conftest*
10491
10492
10493 fi
10494 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10495 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10496     fi
10497
10498     CPPFLAGS="$save_CPPFLAGS"
10499     LDFLAGS="$save_LDFLAGS"
10500     LIBS="$save_LIBS"
10501     ;;
10502   esac
10503
10504   case $lt_cv_dlopen_self in
10505   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10506   *) enable_dlopen_self=unknown ;;
10507   esac
10508
10509   case $lt_cv_dlopen_self_static in
10510   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10511   *) enable_dlopen_self_static=unknown ;;
10512   esac
10513 fi
10514
10515
10516 # Report which library types will actually be built
10517 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10518 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10519 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10520 echo "${ECHO_T}$can_build_shared" >&6; }
10521
10522 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10523 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10524 test "$can_build_shared" = "no" && enable_shared=no
10525
10526 # On AIX, shared libraries and static libraries use the same namespace, and
10527 # are all built from PIC.
10528 case $host_os in
10529 aix3*)
10530   test "$enable_shared" = yes && enable_static=no
10531   if test -n "$RANLIB"; then
10532     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10533     postinstall_cmds='$RANLIB $lib'
10534   fi
10535   ;;
10536
10537 aix4* | aix5*)
10538   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10539     test "$enable_shared" = yes && enable_static=no
10540   fi
10541     ;;
10542 esac
10543 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10544 echo "${ECHO_T}$enable_shared" >&6; }
10545
10546 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10547 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10548 # Make sure either enable_shared or enable_static is yes.
10549 test "$enable_shared" = yes || enable_static=yes
10550 { echo "$as_me:$LINENO: result: $enable_static" >&5
10551 echo "${ECHO_T}$enable_static" >&6; }
10552
10553 # The else clause should only fire when bootstrapping the
10554 # libtool distribution, otherwise you forgot to ship ltmain.sh
10555 # with your package, and you will get complaints that there are
10556 # no rules to generate ltmain.sh.
10557 if test -f "$ltmain"; then
10558   # See if we are running on zsh, and set the options which allow our commands through
10559   # without removal of \ escapes.
10560   if test -n "${ZSH_VERSION+set}" ; then
10561     setopt NO_GLOB_SUBST
10562   fi
10563   # Now quote all the things that may contain metacharacters while being
10564   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10565   # variables and quote the copies for generation of the libtool script.
10566   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10567     SED SHELL STRIP \
10568     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10569     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10570     deplibs_check_method reload_flag reload_cmds need_locks \
10571     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10572     lt_cv_sys_global_symbol_to_c_name_address \
10573     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10574     old_postinstall_cmds old_postuninstall_cmds \
10575     compiler \
10576     CC \
10577     LD \
10578     lt_prog_compiler_wl \
10579     lt_prog_compiler_pic \
10580     lt_prog_compiler_static \
10581     lt_prog_compiler_no_builtin_flag \
10582     export_dynamic_flag_spec \
10583     thread_safe_flag_spec \
10584     whole_archive_flag_spec \
10585     enable_shared_with_static_runtimes \
10586     old_archive_cmds \
10587     old_archive_from_new_cmds \
10588     predep_objects \
10589     postdep_objects \
10590     predeps \
10591     postdeps \
10592     compiler_lib_search_path \
10593     archive_cmds \
10594     archive_expsym_cmds \
10595     postinstall_cmds \
10596     postuninstall_cmds \
10597     old_archive_from_expsyms_cmds \
10598     allow_undefined_flag \
10599     no_undefined_flag \
10600     export_symbols_cmds \
10601     hardcode_libdir_flag_spec \
10602     hardcode_libdir_flag_spec_ld \
10603     hardcode_libdir_separator \
10604     hardcode_automatic \
10605     module_cmds \
10606     module_expsym_cmds \
10607     lt_cv_prog_compiler_c_o \
10608     fix_srcfile_path \
10609     exclude_expsyms \
10610     include_expsyms; do
10611
10612     case $var in
10613     old_archive_cmds | \
10614     old_archive_from_new_cmds | \
10615     archive_cmds | \
10616     archive_expsym_cmds | \
10617     module_cmds | \
10618     module_expsym_cmds | \
10619     old_archive_from_expsyms_cmds | \
10620     export_symbols_cmds | \
10621     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10622     postinstall_cmds | postuninstall_cmds | \
10623     old_postinstall_cmds | old_postuninstall_cmds | \
10624     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10625       # Double-quote double-evaled strings.
10626       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10627       ;;
10628     *)
10629       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10630       ;;
10631     esac
10632   done
10633
10634   case $lt_echo in
10635   *'\$0 --fallback-echo"')
10636     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10637     ;;
10638   esac
10639
10640 cfgfile="${ofile}T"
10641   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10642   $rm -f "$cfgfile"
10643   { echo "$as_me:$LINENO: creating $ofile" >&5
10644 echo "$as_me: creating $ofile" >&6;}
10645
10646   cat <<__EOF__ >> "$cfgfile"
10647 #! $SHELL
10648
10649 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10650 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10651 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10652 #
10653 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10654 # Free Software Foundation, Inc.
10655 #
10656 # This file is part of GNU Libtool:
10657 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10658 #
10659 # This program is free software; you can redistribute it and/or modify
10660 # it under the terms of the GNU General Public License as published by
10661 # the Free Software Foundation; either version 2 of the License, or
10662 # (at your option) any later version.
10663 #
10664 # This program is distributed in the hope that it will be useful, but
10665 # WITHOUT ANY WARRANTY; without even the implied warranty of
10666 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10667 # General Public License for more details.
10668 #
10669 # You should have received a copy of the GNU General Public License
10670 # along with this program; if not, write to the Free Software
10671 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10672 #
10673 # As a special exception to the GNU General Public License, if you
10674 # distribute this file as part of a program that contains a
10675 # configuration script generated by Autoconf, you may include it under
10676 # the same distribution terms that you use for the rest of that program.
10677
10678 # A sed program that does not truncate output.
10679 SED=$lt_SED
10680
10681 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10682 Xsed="$SED -e 1s/^X//"
10683
10684 # The HP-UX ksh and POSIX shell print the target directory to stdout
10685 # if CDPATH is set.
10686 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10687
10688 # The names of the tagged configurations supported by this script.
10689 available_tags=
10690
10691 # ### BEGIN LIBTOOL CONFIG
10692
10693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10694
10695 # Shell to use when invoking shell scripts.
10696 SHELL=$lt_SHELL
10697
10698 # Whether or not to build shared libraries.
10699 build_libtool_libs=$enable_shared
10700
10701 # Whether or not to build static libraries.
10702 build_old_libs=$enable_static
10703
10704 # Whether or not to add -lc for building shared libraries.
10705 build_libtool_need_lc=$archive_cmds_need_lc
10706
10707 # Whether or not to disallow shared libs when runtime libs are static
10708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10709
10710 # Whether or not to optimize for fast installation.
10711 fast_install=$enable_fast_install
10712
10713 # The host system.
10714 host_alias=$host_alias
10715 host=$host
10716 host_os=$host_os
10717
10718 # The build system.
10719 build_alias=$build_alias
10720 build=$build
10721 build_os=$build_os
10722
10723 # An echo program that does not interpret backslashes.
10724 echo=$lt_echo
10725
10726 # The archiver.
10727 AR=$lt_AR
10728 AR_FLAGS=$lt_AR_FLAGS
10729
10730 # A C compiler.
10731 LTCC=$lt_LTCC
10732
10733 # LTCC compiler flags.
10734 LTCFLAGS=$lt_LTCFLAGS
10735
10736 # A language-specific compiler.
10737 CC=$lt_compiler
10738
10739 # Is the compiler the GNU C compiler?
10740 with_gcc=$GCC
10741
10742 # An ERE matcher.
10743 EGREP=$lt_EGREP
10744
10745 # The linker used to build libraries.
10746 LD=$lt_LD
10747
10748 # Whether we need hard or soft links.
10749 LN_S=$lt_LN_S
10750
10751 # A BSD-compatible nm program.
10752 NM=$lt_NM
10753
10754 # A symbol stripping program
10755 STRIP=$lt_STRIP
10756
10757 # Used to examine libraries when file_magic_cmd begins "file"
10758 MAGIC_CMD=$MAGIC_CMD
10759
10760 # Used on cygwin: DLL creation program.
10761 DLLTOOL="$DLLTOOL"
10762
10763 # Used on cygwin: object dumper.
10764 OBJDUMP="$OBJDUMP"
10765
10766 # Used on cygwin: assembler.
10767 AS="$AS"
10768
10769 # The name of the directory that contains temporary libtool files.
10770 objdir=$objdir
10771
10772 # How to create reloadable object files.
10773 reload_flag=$lt_reload_flag
10774 reload_cmds=$lt_reload_cmds
10775
10776 # How to pass a linker flag through the compiler.
10777 wl=$lt_lt_prog_compiler_wl
10778
10779 # Object file suffix (normally "o").
10780 objext="$ac_objext"
10781
10782 # Old archive suffix (normally "a").
10783 libext="$libext"
10784
10785 # Shared library suffix (normally ".so").
10786 shrext_cmds='$shrext_cmds'
10787
10788 # Executable file suffix (normally "").
10789 exeext="$exeext"
10790
10791 # Additional compiler flags for building library objects.
10792 pic_flag=$lt_lt_prog_compiler_pic
10793 pic_mode=$pic_mode
10794
10795 # What is the maximum length of a command?
10796 max_cmd_len=$lt_cv_sys_max_cmd_len
10797
10798 # Does compiler simultaneously support -c and -o options?
10799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10800
10801 # Must we lock files when doing compilation?
10802 need_locks=$lt_need_locks
10803
10804 # Do we need the lib prefix for modules?
10805 need_lib_prefix=$need_lib_prefix
10806
10807 # Do we need a version for libraries?
10808 need_version=$need_version
10809
10810 # Whether dlopen is supported.
10811 dlopen_support=$enable_dlopen
10812
10813 # Whether dlopen of programs is supported.
10814 dlopen_self=$enable_dlopen_self
10815
10816 # Whether dlopen of statically linked programs is supported.
10817 dlopen_self_static=$enable_dlopen_self_static
10818
10819 # Compiler flag to prevent dynamic linking.
10820 link_static_flag=$lt_lt_prog_compiler_static
10821
10822 # Compiler flag to turn off builtin functions.
10823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10824
10825 # Compiler flag to allow reflexive dlopens.
10826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10827
10828 # Compiler flag to generate shared objects directly from archives.
10829 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10830
10831 # Compiler flag to generate thread-safe objects.
10832 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10833
10834 # Library versioning type.
10835 version_type=$version_type
10836
10837 # Format of library name prefix.
10838 libname_spec=$lt_libname_spec
10839
10840 # List of archive names.  First name is the real one, the rest are links.
10841 # The last name is the one that the linker finds with -lNAME.
10842 library_names_spec=$lt_library_names_spec
10843
10844 # The coded name of the library, if different from the real name.
10845 soname_spec=$lt_soname_spec
10846
10847 # Commands used to build and install an old-style archive.
10848 RANLIB=$lt_RANLIB
10849 old_archive_cmds=$lt_old_archive_cmds
10850 old_postinstall_cmds=$lt_old_postinstall_cmds
10851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10852
10853 # Create an old-style archive from a shared archive.
10854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10855
10856 # Create a temporary old-style archive to link instead of a shared archive.
10857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10858
10859 # Commands used to build and install a shared archive.
10860 archive_cmds=$lt_archive_cmds
10861 archive_expsym_cmds=$lt_archive_expsym_cmds
10862 postinstall_cmds=$lt_postinstall_cmds
10863 postuninstall_cmds=$lt_postuninstall_cmds
10864
10865 # Commands used to build a loadable module (assumed same as above if empty)
10866 module_cmds=$lt_module_cmds
10867 module_expsym_cmds=$lt_module_expsym_cmds
10868
10869 # Commands to strip libraries.
10870 old_striplib=$lt_old_striplib
10871 striplib=$lt_striplib
10872
10873 # Dependencies to place before the objects being linked to create a
10874 # shared library.
10875 predep_objects=$lt_predep_objects
10876
10877 # Dependencies to place after the objects being linked to create a
10878 # shared library.
10879 postdep_objects=$lt_postdep_objects
10880
10881 # Dependencies to place before the objects being linked to create a
10882 # shared library.
10883 predeps=$lt_predeps
10884
10885 # Dependencies to place after the objects being linked to create a
10886 # shared library.
10887 postdeps=$lt_postdeps
10888
10889 # The library search path used internally by the compiler when linking
10890 # a shared library.
10891 compiler_lib_search_path=$lt_compiler_lib_search_path
10892
10893 # Method to check whether dependent libraries are shared objects.
10894 deplibs_check_method=$lt_deplibs_check_method
10895
10896 # Command to use when deplibs_check_method == file_magic.
10897 file_magic_cmd=$lt_file_magic_cmd
10898
10899 # Flag that allows shared libraries with undefined symbols to be built.
10900 allow_undefined_flag=$lt_allow_undefined_flag
10901
10902 # Flag that forces no undefined symbols.
10903 no_undefined_flag=$lt_no_undefined_flag
10904
10905 # Commands used to finish a libtool library installation in a directory.
10906 finish_cmds=$lt_finish_cmds
10907
10908 # Same as above, but a single script fragment to be evaled but not shown.
10909 finish_eval=$lt_finish_eval
10910
10911 # Take the output of nm and produce a listing of raw symbols and C names.
10912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10913
10914 # Transform the output of nm in a proper C declaration
10915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10916
10917 # Transform the output of nm in a C name address pair
10918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10919
10920 # This is the shared library runtime path variable.
10921 runpath_var=$runpath_var
10922
10923 # This is the shared library path variable.
10924 shlibpath_var=$shlibpath_var
10925
10926 # Is shlibpath searched before the hard-coded library search path?
10927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10928
10929 # How to hardcode a shared library path into an executable.
10930 hardcode_action=$hardcode_action
10931
10932 # Whether we should hardcode library paths into libraries.
10933 hardcode_into_libs=$hardcode_into_libs
10934
10935 # Flag to hardcode \$libdir into a binary during linking.
10936 # This must work even if \$libdir does not exist.
10937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10938
10939 # If ld is used when linking, flag to hardcode \$libdir into
10940 # a binary during linking. This must work even if \$libdir does
10941 # not exist.
10942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10943
10944 # Whether we need a single -rpath flag with a separated argument.
10945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10946
10947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10948 # resulting binary.
10949 hardcode_direct=$hardcode_direct
10950
10951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10952 # resulting binary.
10953 hardcode_minus_L=$hardcode_minus_L
10954
10955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10956 # the resulting binary.
10957 hardcode_shlibpath_var=$hardcode_shlibpath_var
10958
10959 # Set to yes if building a shared library automatically hardcodes DIR into the library
10960 # and all subsequent libraries and executables linked against it.
10961 hardcode_automatic=$hardcode_automatic
10962
10963 # Variables whose values should be saved in libtool wrapper scripts and
10964 # restored at relink time.
10965 variables_saved_for_relink="$variables_saved_for_relink"
10966
10967 # Whether libtool must link a program against all its dependency libraries.
10968 link_all_deplibs=$link_all_deplibs
10969
10970 # Compile-time system search path for libraries
10971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10972
10973 # Run-time system search path for libraries
10974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10975
10976 # Fix the shell variable \$srcfile for the compiler.
10977 fix_srcfile_path=$lt_fix_srcfile_path
10978
10979 # Set to yes if exported symbols are required.
10980 always_export_symbols=$always_export_symbols
10981
10982 # The commands to list exported symbols.
10983 export_symbols_cmds=$lt_export_symbols_cmds
10984
10985 # The commands to extract the exported symbol list from a shared archive.
10986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10987
10988 # Symbols that should not be listed in the preloaded symbols.
10989 exclude_expsyms=$lt_exclude_expsyms
10990
10991 # Symbols that must always be exported.
10992 include_expsyms=$lt_include_expsyms
10993
10994 # ### END LIBTOOL CONFIG
10995
10996 __EOF__
10997
10998
10999   case $host_os in
11000   aix3*)
11001     cat <<\EOF >> "$cfgfile"
11002
11003 # AIX sometimes has problems with the GCC collect2 program.  For some
11004 # reason, if we set the COLLECT_NAMES environment variable, the problems
11005 # vanish in a puff of smoke.
11006 if test "X${COLLECT_NAMES+set}" != Xset; then
11007   COLLECT_NAMES=
11008   export COLLECT_NAMES
11009 fi
11010 EOF
11011     ;;
11012   esac
11013
11014   # We use sed instead of cat because bash on DJGPP gets confused if
11015   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11016   # text mode, it properly converts lines to CR/LF.  This bash problem
11017   # is reportedly fixed, but why not run on old versions too?
11018   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11019
11020   mv -f "$cfgfile" "$ofile" || \
11021     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11022   chmod +x "$ofile"
11023
11024 else
11025   # If there is no Makefile yet, we rely on a make rule to execute
11026   # `config.status --recheck' to rerun these tests and create the
11027   # libtool script then.
11028   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11029   if test -f "$ltmain_in"; then
11030     test -f Makefile && make "$ltmain"
11031   fi
11032 fi
11033
11034
11035 ac_ext=c
11036 ac_cpp='$CPP $CPPFLAGS'
11037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11040
11041 CC="$lt_save_CC"
11042
11043
11044 # Check whether --with-tags was given.
11045 if test "${with_tags+set}" = set; then
11046   withval=$with_tags; tagnames="$withval"
11047 fi
11048
11049
11050 if test -f "$ltmain" && test -n "$tagnames"; then
11051   if test ! -f "${ofile}"; then
11052     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11053 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11054   fi
11055
11056   if test -z "$LTCC"; then
11057     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11058     if test -z "$LTCC"; then
11059       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11060 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11061     else
11062       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11063 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11064     fi
11065   fi
11066   if test -z "$LTCFLAGS"; then
11067     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11068   fi
11069
11070   # Extract list of available tagged configurations in $ofile.
11071   # Note that this assumes the entire list is on one line.
11072   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11073
11074   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11075   for tagname in $tagnames; do
11076     IFS="$lt_save_ifs"
11077     # Check whether tagname contains only valid characters
11078     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11079     "") ;;
11080     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11081 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11082    { (exit 1); exit 1; }; }
11083         ;;
11084     esac
11085
11086     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11087     then
11088       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11089 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11090    { (exit 1); exit 1; }; }
11091     fi
11092
11093     # Update the list of available tags.
11094     if test -n "$tagname"; then
11095       echo appending configuration tag \"$tagname\" to $ofile
11096
11097       case $tagname in
11098       CXX)
11099         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11100             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11101             (test "X$CXX" != "Xg++"))) ; then
11102           ac_ext=cpp
11103 ac_cpp='$CXXCPP $CPPFLAGS'
11104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11107
11108
11109
11110
11111 archive_cmds_need_lc_CXX=no
11112 allow_undefined_flag_CXX=
11113 always_export_symbols_CXX=no
11114 archive_expsym_cmds_CXX=
11115 export_dynamic_flag_spec_CXX=
11116 hardcode_direct_CXX=no
11117 hardcode_libdir_flag_spec_CXX=
11118 hardcode_libdir_flag_spec_ld_CXX=
11119 hardcode_libdir_separator_CXX=
11120 hardcode_minus_L_CXX=no
11121 hardcode_shlibpath_var_CXX=unsupported
11122 hardcode_automatic_CXX=no
11123 module_cmds_CXX=
11124 module_expsym_cmds_CXX=
11125 link_all_deplibs_CXX=unknown
11126 old_archive_cmds_CXX=$old_archive_cmds
11127 no_undefined_flag_CXX=
11128 whole_archive_flag_spec_CXX=
11129 enable_shared_with_static_runtimes_CXX=no
11130
11131 # Dependencies to place before and after the object being linked:
11132 predep_objects_CXX=
11133 postdep_objects_CXX=
11134 predeps_CXX=
11135 postdeps_CXX=
11136 compiler_lib_search_path_CXX=
11137
11138 # Source file extension for C++ test sources.
11139 ac_ext=cpp
11140
11141 # Object file extension for compiled C++ test sources.
11142 objext=o
11143 objext_CXX=$objext
11144
11145 # Code to be used in simple compile tests
11146 lt_simple_compile_test_code="int some_variable = 0;"
11147
11148 # Code to be used in simple link tests
11149 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11150
11151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11152
11153 # If no C compiler was specified, use CC.
11154 LTCC=${LTCC-"$CC"}
11155
11156 # If no C compiler flags were specified, use CFLAGS.
11157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11158
11159 # Allow CC to be a program name with arguments.
11160 compiler=$CC
11161
11162
11163 # save warnings/boilerplate of simple test code
11164 ac_outfile=conftest.$ac_objext
11165 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11167 _lt_compiler_boilerplate=`cat conftest.err`
11168 $rm conftest*
11169
11170 ac_outfile=conftest.$ac_objext
11171 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11173 _lt_linker_boilerplate=`cat conftest.err`
11174 $rm conftest*
11175
11176
11177 # Allow CC to be a program name with arguments.
11178 lt_save_CC=$CC
11179 lt_save_LD=$LD
11180 lt_save_GCC=$GCC
11181 GCC=$GXX
11182 lt_save_with_gnu_ld=$with_gnu_ld
11183 lt_save_path_LD=$lt_cv_path_LD
11184 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11185   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11186 else
11187   $as_unset lt_cv_prog_gnu_ld
11188 fi
11189 if test -n "${lt_cv_path_LDCXX+set}"; then
11190   lt_cv_path_LD=$lt_cv_path_LDCXX
11191 else
11192   $as_unset lt_cv_path_LD
11193 fi
11194 test -z "${LDCXX+set}" || LD=$LDCXX
11195 CC=${CXX-"c++"}
11196 compiler=$CC
11197 compiler_CXX=$CC
11198 for cc_temp in $compiler""; do
11199   case $cc_temp in
11200     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11201     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11202     \-*) ;;
11203     *) break;;
11204   esac
11205 done
11206 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11207
11208
11209 # We don't want -fno-exception wen compiling C++ code, so set the
11210 # no_builtin_flag separately
11211 if test "$GXX" = yes; then
11212   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11213 else
11214   lt_prog_compiler_no_builtin_flag_CXX=
11215 fi
11216
11217 if test "$GXX" = yes; then
11218   # Set up default GNU C++ configuration
11219
11220
11221 # Check whether --with-gnu-ld was given.
11222 if test "${with_gnu_ld+set}" = set; then
11223   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11224 else
11225   with_gnu_ld=no
11226 fi
11227
11228 ac_prog=ld
11229 if test "$GCC" = yes; then
11230   # Check if gcc -print-prog-name=ld gives a path.
11231   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11233   case $host in
11234   *-*-mingw*)
11235     # gcc leaves a trailing carriage return which upsets mingw
11236     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11237   *)
11238     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11239   esac
11240   case $ac_prog in
11241     # Accept absolute paths.
11242     [\\/]* | ?:[\\/]*)
11243       re_direlt='/[^/][^/]*/\.\./'
11244       # Canonicalize the pathname of ld
11245       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11246       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11247         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11248       done
11249       test -z "$LD" && LD="$ac_prog"
11250       ;;
11251   "")
11252     # If it fails, then pretend we aren't using GCC.
11253     ac_prog=ld
11254     ;;
11255   *)
11256     # If it is relative, then search for the first ld in PATH.
11257     with_gnu_ld=unknown
11258     ;;
11259   esac
11260 elif test "$with_gnu_ld" = yes; then
11261   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11263 else
11264   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11266 fi
11267 if test "${lt_cv_path_LD+set}" = set; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   if test -z "$LD"; then
11271   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11272   for ac_dir in $PATH; do
11273     IFS="$lt_save_ifs"
11274     test -z "$ac_dir" && ac_dir=.
11275     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11276       lt_cv_path_LD="$ac_dir/$ac_prog"
11277       # Check to see if the program is GNU ld.  I'd rather use --version,
11278       # but apparently some variants of GNU ld only accept -v.
11279       # Break only if it was the GNU/non-GNU ld that we prefer.
11280       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11281       *GNU* | *'with BFD'*)
11282         test "$with_gnu_ld" != no && break
11283         ;;
11284       *)
11285         test "$with_gnu_ld" != yes && break
11286         ;;
11287       esac
11288     fi
11289   done
11290   IFS="$lt_save_ifs"
11291 else
11292   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11293 fi
11294 fi
11295
11296 LD="$lt_cv_path_LD"
11297 if test -n "$LD"; then
11298   { echo "$as_me:$LINENO: result: $LD" >&5
11299 echo "${ECHO_T}$LD" >&6; }
11300 else
11301   { echo "$as_me:$LINENO: result: no" >&5
11302 echo "${ECHO_T}no" >&6; }
11303 fi
11304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11306    { (exit 1); exit 1; }; }
11307 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11313 case `$LD -v 2>&1 </dev/null` in
11314 *GNU* | *'with BFD'*)
11315   lt_cv_prog_gnu_ld=yes
11316   ;;
11317 *)
11318   lt_cv_prog_gnu_ld=no
11319   ;;
11320 esac
11321 fi
11322 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11324 with_gnu_ld=$lt_cv_prog_gnu_ld
11325
11326
11327
11328   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11329   # archiving commands below assume that GNU ld is being used.
11330   if test "$with_gnu_ld" = yes; then
11331     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332     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'
11333
11334     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11335     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11336
11337     # If archive_cmds runs LD, not CC, wlarc should be empty
11338     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11339     #     investigate it a little bit more. (MM)
11340     wlarc='${wl}'
11341
11342     # ancient GNU ld didn't support --whole-archive et. al.
11343     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11344         grep 'no-whole-archive' > /dev/null; then
11345       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11346     else
11347       whole_archive_flag_spec_CXX=
11348     fi
11349   else
11350     with_gnu_ld=no
11351     wlarc=
11352
11353     # A generic and very simple default shared library creation
11354     # command for GNU C++ for the case where it uses the native
11355     # linker, instead of GNU ld.  If possible, this setting should
11356     # overridden to take advantage of the native linker features on
11357     # the platform it is being used on.
11358     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11359   fi
11360
11361   # Commands to make compiler produce verbose output that lists
11362   # what "hidden" libraries, object files and flags are used when
11363   # linking a shared library.
11364   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11365
11366 else
11367   GXX=no
11368   with_gnu_ld=no
11369   wlarc=
11370 fi
11371
11372 # PORTME: fill in a description of your system's C++ link characteristics
11373 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11374 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11375 ld_shlibs_CXX=yes
11376 case $host_os in
11377   aix3*)
11378     # FIXME: insert proper C++ library support
11379     ld_shlibs_CXX=no
11380     ;;
11381   aix4* | aix5*)
11382     if test "$host_cpu" = ia64; then
11383       # On IA64, the linker does run time linking by default, so we don't
11384       # have to do anything special.
11385       aix_use_runtimelinking=no
11386       exp_sym_flag='-Bexport'
11387       no_entry_flag=""
11388     else
11389       aix_use_runtimelinking=no
11390
11391       # Test if we are trying to use run time linking or normal
11392       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11393       # need to do runtime linking.
11394       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11395         for ld_flag in $LDFLAGS; do
11396           case $ld_flag in
11397           *-brtl*)
11398             aix_use_runtimelinking=yes
11399             break
11400             ;;
11401           esac
11402         done
11403         ;;
11404       esac
11405
11406       exp_sym_flag='-bexport'
11407       no_entry_flag='-bnoentry'
11408     fi
11409
11410     # When large executables or shared objects are built, AIX ld can
11411     # have problems creating the table of contents.  If linking a library
11412     # or program results in "error TOC overflow" add -mminimal-toc to
11413     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11414     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11415
11416     archive_cmds_CXX=''
11417     hardcode_direct_CXX=yes
11418     hardcode_libdir_separator_CXX=':'
11419     link_all_deplibs_CXX=yes
11420
11421     if test "$GXX" = yes; then
11422       case $host_os in aix4.[012]|aix4.[012].*)
11423       # We only want to do this on AIX 4.2 and lower, the check
11424       # below for broken collect2 doesn't work under 4.3+
11425         collect2name=`${CC} -print-prog-name=collect2`
11426         if test -f "$collect2name" && \
11427            strings "$collect2name" | grep resolve_lib_name >/dev/null
11428         then
11429           # We have reworked collect2
11430           :
11431         else
11432           # We have old collect2
11433           hardcode_direct_CXX=unsupported
11434           # It fails to find uninstalled libraries when the uninstalled
11435           # path is not listed in the libpath.  Setting hardcode_minus_L
11436           # to unsupported forces relinking
11437           hardcode_minus_L_CXX=yes
11438           hardcode_libdir_flag_spec_CXX='-L$libdir'
11439           hardcode_libdir_separator_CXX=
11440         fi
11441         ;;
11442       esac
11443       shared_flag='-shared'
11444       if test "$aix_use_runtimelinking" = yes; then
11445         shared_flag="$shared_flag "'${wl}-G'
11446       fi
11447     else
11448       # not using gcc
11449       if test "$host_cpu" = ia64; then
11450         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11451         # chokes on -Wl,-G. The following line is correct:
11452         shared_flag='-G'
11453       else
11454         if test "$aix_use_runtimelinking" = yes; then
11455           shared_flag='${wl}-G'
11456         else
11457           shared_flag='${wl}-bM:SRE'
11458         fi
11459       fi
11460     fi
11461
11462     # It seems that -bexpall does not export symbols beginning with
11463     # underscore (_), so it is better to generate a list of symbols to export.
11464     always_export_symbols_CXX=yes
11465     if test "$aix_use_runtimelinking" = yes; then
11466       # Warning - without using the other runtime loading flags (-brtl),
11467       # -berok will link without error, but may produce a broken library.
11468       allow_undefined_flag_CXX='-berok'
11469       # Determine the default libpath from the value encoded in an empty executable.
11470       cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h.  */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h.  */
11476
11477 int
11478 main ()
11479 {
11480
11481   ;
11482   return 0;
11483 }
11484 _ACEOF
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489   *) ac_try_echo=$ac_try;;
11490 esac
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492   (eval "$ac_link") 2>conftest.er1
11493   ac_status=$?
11494   grep -v '^ *+' conftest.er1 >conftest.err
11495   rm -f conftest.er1
11496   cat conftest.err >&5
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); } && {
11499          test -z "$ac_cxx_werror_flag" ||
11500          test ! -s conftest.err
11501        } && test -s conftest$ac_exeext &&
11502        $as_test_x conftest$ac_exeext; then
11503
11504 lt_aix_libpath_sed='
11505     /Import File Strings/,/^$/ {
11506         /^0/ {
11507             s/^0  *\(.*\)$/\1/
11508             p
11509         }
11510     }'
11511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11512 # Check for a 64-bit object if we didn't find anything.
11513 if test -z "$aix_libpath"; then
11514   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11515 fi
11516 else
11517   echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11519
11520
11521 fi
11522
11523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11524       conftest$ac_exeext conftest.$ac_ext
11525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11526
11527       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11528
11529       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"
11530      else
11531       if test "$host_cpu" = ia64; then
11532         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11533         allow_undefined_flag_CXX="-z nodefs"
11534         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"
11535       else
11536         # Determine the default libpath from the value encoded in an empty executable.
11537         cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543
11544 int
11545 main ()
11546 {
11547
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (ac_try="$ac_link"
11554 case "(($ac_try" in
11555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556   *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559   (eval "$ac_link") 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } && {
11566          test -z "$ac_cxx_werror_flag" ||
11567          test ! -s conftest.err
11568        } && test -s conftest$ac_exeext &&
11569        $as_test_x conftest$ac_exeext; then
11570
11571 lt_aix_libpath_sed='
11572     /Import File Strings/,/^$/ {
11573         /^0/ {
11574             s/^0  *\(.*\)$/\1/
11575             p
11576         }
11577     }'
11578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11579 # Check for a 64-bit object if we didn't find anything.
11580 if test -z "$aix_libpath"; then
11581   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11582 fi
11583 else
11584   echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11586
11587
11588 fi
11589
11590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591       conftest$ac_exeext conftest.$ac_ext
11592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11593
11594         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11595         # Warning - without using the other run time loading flags,
11596         # -berok will link without error, but may produce a broken library.
11597         no_undefined_flag_CXX=' ${wl}-bernotok'
11598         allow_undefined_flag_CXX=' ${wl}-berok'
11599         # Exported symbols can be pulled into shared objects from archives
11600         whole_archive_flag_spec_CXX='$convenience'
11601         archive_cmds_need_lc_CXX=yes
11602         # This is similar to how AIX traditionally builds its shared libraries.
11603         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'
11604       fi
11605     fi
11606     ;;
11607
11608   beos*)
11609     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11610       allow_undefined_flag_CXX=unsupported
11611       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11612       # support --undefined.  This deserves some investigation.  FIXME
11613       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11614     else
11615       ld_shlibs_CXX=no
11616     fi
11617     ;;
11618
11619   chorus*)
11620     case $cc_basename in
11621       *)
11622         # FIXME: insert proper C++ library support
11623         ld_shlibs_CXX=no
11624         ;;
11625     esac
11626     ;;
11627
11628   cygwin* | mingw* | pw32*)
11629     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11630     # as there is no search path for DLLs.
11631     hardcode_libdir_flag_spec_CXX='-L$libdir'
11632     allow_undefined_flag_CXX=unsupported
11633     always_export_symbols_CXX=no
11634     enable_shared_with_static_runtimes_CXX=yes
11635
11636     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11637       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'
11638       # If the export-symbols file already is a .def file (1st line
11639       # is EXPORTS), use it as is; otherwise, prepend...
11640       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11641         cp $export_symbols $output_objdir/$soname.def;
11642       else
11643         echo EXPORTS > $output_objdir/$soname.def;
11644         cat $export_symbols >> $output_objdir/$soname.def;
11645       fi~
11646       $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'
11647     else
11648       ld_shlibs_CXX=no
11649     fi
11650   ;;
11651       darwin* | rhapsody*)
11652         case $host_os in
11653         rhapsody* | darwin1.[012])
11654          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11655          ;;
11656        *) # Darwin 1.3 on
11657          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11658            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11659          else
11660            case ${MACOSX_DEPLOYMENT_TARGET} in
11661              10.[012])
11662                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11663                ;;
11664              10.*)
11665                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11666                ;;
11667            esac
11668          fi
11669          ;;
11670         esac
11671       archive_cmds_need_lc_CXX=no
11672       hardcode_direct_CXX=no
11673       hardcode_automatic_CXX=yes
11674       hardcode_shlibpath_var_CXX=unsupported
11675       whole_archive_flag_spec_CXX=''
11676       link_all_deplibs_CXX=yes
11677
11678     if test "$GXX" = yes ; then
11679       lt_int_apple_cc_single_mod=no
11680       output_verbose_link_cmd='echo'
11681       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11682        lt_int_apple_cc_single_mod=yes
11683       fi
11684       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11685        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11686       else
11687           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'
11688         fi
11689         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11690         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11691           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11692             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}'
11693           else
11694             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}'
11695           fi
11696             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}'
11697       else
11698       case $cc_basename in
11699         xlc*)
11700          output_verbose_link_cmd='echo'
11701           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11702           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11703           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11704           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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11705           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}'
11706           ;;
11707        *)
11708          ld_shlibs_CXX=no
11709           ;;
11710       esac
11711       fi
11712         ;;
11713
11714   dgux*)
11715     case $cc_basename in
11716       ec++*)
11717         # FIXME: insert proper C++ library support
11718         ld_shlibs_CXX=no
11719         ;;
11720       ghcx*)
11721         # Green Hills C++ Compiler
11722         # FIXME: insert proper C++ library support
11723         ld_shlibs_CXX=no
11724         ;;
11725       *)
11726         # FIXME: insert proper C++ library support
11727         ld_shlibs_CXX=no
11728         ;;
11729     esac
11730     ;;
11731   freebsd[12]*)
11732     # C++ shared libraries reported to be fairly broken before switch to ELF
11733     ld_shlibs_CXX=no
11734     ;;
11735   freebsd-elf*)
11736     archive_cmds_need_lc_CXX=no
11737     ;;
11738   freebsd* | dragonfly*)
11739     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11740     # conventions
11741     ld_shlibs_CXX=yes
11742     ;;
11743   gnu*)
11744     ;;
11745   hpux9*)
11746     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11747     hardcode_libdir_separator_CXX=:
11748     export_dynamic_flag_spec_CXX='${wl}-E'
11749     hardcode_direct_CXX=yes
11750     hardcode_minus_L_CXX=yes # Not in the search PATH,
11751                                 # but as the default
11752                                 # location of the library.
11753
11754     case $cc_basename in
11755     CC*)
11756       # FIXME: insert proper C++ library support
11757       ld_shlibs_CXX=no
11758       ;;
11759     aCC*)
11760       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'
11761       # Commands to make compiler produce verbose output that lists
11762       # what "hidden" libraries, object files and flags are used when
11763       # linking a shared library.
11764       #
11765       # There doesn't appear to be a way to prevent this compiler from
11766       # explicitly linking system object files so we need to strip them
11767       # from the output so that they don't get included in the library
11768       # dependencies.
11769       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'
11770       ;;
11771     *)
11772       if test "$GXX" = yes; then
11773         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'
11774       else
11775         # FIXME: insert proper C++ library support
11776         ld_shlibs_CXX=no
11777       fi
11778       ;;
11779     esac
11780     ;;
11781   hpux10*|hpux11*)
11782     if test $with_gnu_ld = no; then
11783       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11784       hardcode_libdir_separator_CXX=:
11785
11786       case $host_cpu in
11787       hppa*64*|ia64*) ;;
11788       *)
11789         export_dynamic_flag_spec_CXX='${wl}-E'
11790         ;;
11791       esac
11792     fi
11793     case $host_cpu in
11794     hppa*64*|ia64*)
11795       hardcode_direct_CXX=no
11796       hardcode_shlibpath_var_CXX=no
11797       ;;
11798     *)
11799       hardcode_direct_CXX=yes
11800       hardcode_minus_L_CXX=yes # Not in the search PATH,
11801                                               # but as the default
11802                                               # location of the library.
11803       ;;
11804     esac
11805
11806     case $cc_basename in
11807       CC*)
11808         # FIXME: insert proper C++ library support
11809         ld_shlibs_CXX=no
11810         ;;
11811       aCC*)
11812         case $host_cpu in
11813         hppa*64*)
11814           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11815           ;;
11816         ia64*)
11817           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11818           ;;
11819         *)
11820           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11821           ;;
11822         esac
11823         # Commands to make compiler produce verbose output that lists
11824         # what "hidden" libraries, object files and flags are used when
11825         # linking a shared library.
11826         #
11827         # There doesn't appear to be a way to prevent this compiler from
11828         # explicitly linking system object files so we need to strip them
11829         # from the output so that they don't get included in the library
11830         # dependencies.
11831         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'
11832         ;;
11833       *)
11834         if test "$GXX" = yes; then
11835           if test $with_gnu_ld = no; then
11836             case $host_cpu in
11837             hppa*64*)
11838               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11839               ;;
11840             ia64*)
11841               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11842               ;;
11843             *)
11844               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'
11845               ;;
11846             esac
11847           fi
11848         else
11849           # FIXME: insert proper C++ library support
11850           ld_shlibs_CXX=no
11851         fi
11852         ;;
11853     esac
11854     ;;
11855   interix[3-9]*)
11856     hardcode_direct_CXX=no
11857     hardcode_shlibpath_var_CXX=no
11858     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11859     export_dynamic_flag_spec_CXX='${wl}-E'
11860     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11861     # Instead, shared libraries are loaded at an image base (0x10000000 by
11862     # default) and relocated if they conflict, which is a slow very memory
11863     # consuming and fragmenting process.  To avoid this, we pick a random,
11864     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11865     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11866     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'
11867     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'
11868     ;;
11869   irix5* | irix6*)
11870     case $cc_basename in
11871       CC*)
11872         # SGI C++
11873         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'
11874
11875         # Archives containing C++ object files must be created using
11876         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11877         # necessary to make sure instantiated templates are included
11878         # in the archive.
11879         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11880         ;;
11881       *)
11882         if test "$GXX" = yes; then
11883           if test "$with_gnu_ld" = no; then
11884             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'
11885           else
11886             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'
11887           fi
11888         fi
11889         link_all_deplibs_CXX=yes
11890         ;;
11891     esac
11892     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11893     hardcode_libdir_separator_CXX=:
11894     ;;
11895   linux* | k*bsd*-gnu)
11896     case $cc_basename in
11897       KCC*)
11898         # Kuck and Associates, Inc. (KAI) C++ Compiler
11899
11900         # KCC will only create a shared library if the output file
11901         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11902         # to its proper name (with version) after linking.
11903         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'
11904         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'
11905         # Commands to make compiler produce verbose output that lists
11906         # what "hidden" libraries, object files and flags are used when
11907         # linking a shared library.
11908         #
11909         # There doesn't appear to be a way to prevent this compiler from
11910         # explicitly linking system object files so we need to strip them
11911         # from the output so that they don't get included in the library
11912         # dependencies.
11913         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'
11914
11915         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11916         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11917
11918         # Archives containing C++ object files must be created using
11919         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11920         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11921         ;;
11922       icpc*)
11923         # Intel C++
11924         with_gnu_ld=yes
11925         # version 8.0 and above of icpc choke on multiply defined symbols
11926         # if we add $predep_objects and $postdep_objects, however 7.1 and
11927         # earlier do not add the objects themselves.
11928         case `$CC -V 2>&1` in
11929         *"Version 7."*)
11930           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11931           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'
11932           ;;
11933         *)  # Version 8.0 or newer
11934           tmp_idyn=
11935           case $host_cpu in
11936             ia64*) tmp_idyn=' -i_dynamic';;
11937           esac
11938           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11939           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'
11940           ;;
11941         esac
11942         archive_cmds_need_lc_CXX=no
11943         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11944         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11945         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11946         ;;
11947       pgCC*)
11948         # Portland Group C++ compiler
11949         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11950         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'
11951
11952         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11953         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11954         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'
11955         ;;
11956       cxx*)
11957         # Compaq C++
11958         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11959         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'
11960
11961         runpath_var=LD_RUN_PATH
11962         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11963         hardcode_libdir_separator_CXX=:
11964
11965         # Commands to make compiler produce verbose output that lists
11966         # what "hidden" libraries, object files and flags are used when
11967         # linking a shared library.
11968         #
11969         # There doesn't appear to be a way to prevent this compiler from
11970         # explicitly linking system object files so we need to strip them
11971         # from the output so that they don't get included in the library
11972         # dependencies.
11973         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'
11974         ;;
11975       *)
11976         case `$CC -V 2>&1 | sed 5q` in
11977         *Sun\ C*)
11978           # Sun C++ 5.9
11979           no_undefined_flag_CXX=' -zdefs'
11980           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11981           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11982           hardcode_libdir_flag_spec_CXX='-R$libdir'
11983           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11984
11985           # Not sure whether something based on
11986           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11987           # would be better.
11988           output_verbose_link_cmd='echo'
11989
11990           # Archives containing C++ object files must be created using
11991           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11992           # necessary to make sure instantiated templates are included
11993           # in the archive.
11994           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11995           ;;
11996         esac
11997         ;;
11998     esac
11999     ;;
12000   lynxos*)
12001     # FIXME: insert proper C++ library support
12002     ld_shlibs_CXX=no
12003     ;;
12004   m88k*)
12005     # FIXME: insert proper C++ library support
12006     ld_shlibs_CXX=no
12007     ;;
12008   mvs*)
12009     case $cc_basename in
12010       cxx*)
12011         # FIXME: insert proper C++ library support
12012         ld_shlibs_CXX=no
12013         ;;
12014       *)
12015         # FIXME: insert proper C++ library support
12016         ld_shlibs_CXX=no
12017         ;;
12018     esac
12019     ;;
12020   netbsd* | netbsdelf*-gnu)
12021     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12022       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12023       wlarc=
12024       hardcode_libdir_flag_spec_CXX='-R$libdir'
12025       hardcode_direct_CXX=yes
12026       hardcode_shlibpath_var_CXX=no
12027     fi
12028     # Workaround some broken pre-1.5 toolchains
12029     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12030     ;;
12031   openbsd2*)
12032     # C++ shared libraries are fairly broken
12033     ld_shlibs_CXX=no
12034     ;;
12035   openbsd*)
12036     if test -f /usr/libexec/ld.so; then
12037       hardcode_direct_CXX=yes
12038       hardcode_shlibpath_var_CXX=no
12039       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12040       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12041       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12042         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12043         export_dynamic_flag_spec_CXX='${wl}-E'
12044         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12045       fi
12046       output_verbose_link_cmd='echo'
12047     else
12048       ld_shlibs_CXX=no
12049     fi
12050     ;;
12051   osf3*)
12052     case $cc_basename in
12053       KCC*)
12054         # Kuck and Associates, Inc. (KAI) C++ Compiler
12055
12056         # KCC will only create a shared library if the output file
12057         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12058         # to its proper name (with version) after linking.
12059         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'
12060
12061         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12062         hardcode_libdir_separator_CXX=:
12063
12064         # Archives containing C++ object files must be created using
12065         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12066         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12067
12068         ;;
12069       RCC*)
12070         # Rational C++ 2.4.1
12071         # FIXME: insert proper C++ library support
12072         ld_shlibs_CXX=no
12073         ;;
12074       cxx*)
12075         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12076         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'
12077
12078         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12079         hardcode_libdir_separator_CXX=:
12080
12081         # Commands to make compiler produce verbose output that lists
12082         # what "hidden" libraries, object files and flags are used when
12083         # linking a shared library.
12084         #
12085         # There doesn't appear to be a way to prevent this compiler from
12086         # explicitly linking system object files so we need to strip them
12087         # from the output so that they don't get included in the library
12088         # dependencies.
12089         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'
12090         ;;
12091       *)
12092         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12093           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12094           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'
12095
12096           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12097           hardcode_libdir_separator_CXX=:
12098
12099           # Commands to make compiler produce verbose output that lists
12100           # what "hidden" libraries, object files and flags are used when
12101           # linking a shared library.
12102           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12103
12104         else
12105           # FIXME: insert proper C++ library support
12106           ld_shlibs_CXX=no
12107         fi
12108         ;;
12109     esac
12110     ;;
12111   osf4* | osf5*)
12112     case $cc_basename in
12113       KCC*)
12114         # Kuck and Associates, Inc. (KAI) C++ Compiler
12115
12116         # KCC will only create a shared library if the output file
12117         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12118         # to its proper name (with version) after linking.
12119         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'
12120
12121         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12122         hardcode_libdir_separator_CXX=:
12123
12124         # Archives containing C++ object files must be created using
12125         # the KAI C++ compiler.
12126         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12127         ;;
12128       RCC*)
12129         # Rational C++ 2.4.1
12130         # FIXME: insert proper C++ library support
12131         ld_shlibs_CXX=no
12132         ;;
12133       cxx*)
12134         allow_undefined_flag_CXX=' -expect_unresolved \*'
12135         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'
12136         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12137           echo "-hidden">> $lib.exp~
12138           $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~
12139           $rm $lib.exp'
12140
12141         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12142         hardcode_libdir_separator_CXX=:
12143
12144         # Commands to make compiler produce verbose output that lists
12145         # what "hidden" libraries, object files and flags are used when
12146         # linking a shared library.
12147         #
12148         # There doesn't appear to be a way to prevent this compiler from
12149         # explicitly linking system object files so we need to strip them
12150         # from the output so that they don't get included in the library
12151         # dependencies.
12152         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'
12153         ;;
12154       *)
12155         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12156           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12157          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'
12158
12159           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12160           hardcode_libdir_separator_CXX=:
12161
12162           # Commands to make compiler produce verbose output that lists
12163           # what "hidden" libraries, object files and flags are used when
12164           # linking a shared library.
12165           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12166
12167         else
12168           # FIXME: insert proper C++ library support
12169           ld_shlibs_CXX=no
12170         fi
12171         ;;
12172     esac
12173     ;;
12174   psos*)
12175     # FIXME: insert proper C++ library support
12176     ld_shlibs_CXX=no
12177     ;;
12178   sunos4*)
12179     case $cc_basename in
12180       CC*)
12181         # Sun C++ 4.x
12182         # FIXME: insert proper C++ library support
12183         ld_shlibs_CXX=no
12184         ;;
12185       lcc*)
12186         # Lucid
12187         # FIXME: insert proper C++ library support
12188         ld_shlibs_CXX=no
12189         ;;
12190       *)
12191         # FIXME: insert proper C++ library support
12192         ld_shlibs_CXX=no
12193         ;;
12194     esac
12195     ;;
12196   solaris*)
12197     case $cc_basename in
12198       CC*)
12199         # Sun C++ 4.2, 5.x and Centerline C++
12200         archive_cmds_need_lc_CXX=yes
12201         no_undefined_flag_CXX=' -zdefs'
12202         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12203         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12204         $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'
12205
12206         hardcode_libdir_flag_spec_CXX='-R$libdir'
12207         hardcode_shlibpath_var_CXX=no
12208         case $host_os in
12209           solaris2.[0-5] | solaris2.[0-5].*) ;;
12210           *)
12211             # The compiler driver will combine and reorder linker options,
12212             # but understands `-z linker_flag'.
12213             # Supported since Solaris 2.6 (maybe 2.5.1?)
12214             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12215             ;;
12216         esac
12217         link_all_deplibs_CXX=yes
12218
12219         output_verbose_link_cmd='echo'
12220
12221         # Archives containing C++ object files must be created using
12222         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12223         # necessary to make sure instantiated templates are included
12224         # in the archive.
12225         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12226         ;;
12227       gcx*)
12228         # Green Hills C++ Compiler
12229         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12230
12231         # The C++ compiler must be used to create the archive.
12232         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12233         ;;
12234       *)
12235         # GNU C++ compiler with Solaris linker
12236         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12237           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12238           if $CC --version | grep -v '^2\.7' > /dev/null; then
12239             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12240             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12241                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12242
12243             # Commands to make compiler produce verbose output that lists
12244             # what "hidden" libraries, object files and flags are used when
12245             # linking a shared library.
12246             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12247           else
12248             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12249             # platform.
12250             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12251             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12252                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12253
12254             # Commands to make compiler produce verbose output that lists
12255             # what "hidden" libraries, object files and flags are used when
12256             # linking a shared library.
12257             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12258           fi
12259
12260           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12261           case $host_os in
12262           solaris2.[0-5] | solaris2.[0-5].*) ;;
12263           *)
12264             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12265             ;;
12266           esac
12267         fi
12268         ;;
12269     esac
12270     ;;
12271   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12272     no_undefined_flag_CXX='${wl}-z,text'
12273     archive_cmds_need_lc_CXX=no
12274     hardcode_shlibpath_var_CXX=no
12275     runpath_var='LD_RUN_PATH'
12276
12277     case $cc_basename in
12278       CC*)
12279         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12280         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12281         ;;
12282       *)
12283         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12285         ;;
12286     esac
12287     ;;
12288   sysv5* | sco3.2v5* | sco5v6*)
12289     # Note: We can NOT use -z defs as we might desire, because we do not
12290     # link with -lc, and that would cause any symbols used from libc to
12291     # always be unresolved, which means just about no library would
12292     # ever link correctly.  If we're not using GNU ld we use -z text
12293     # though, which does catch some bad symbols but isn't as heavy-handed
12294     # as -z defs.
12295     # For security reasons, it is highly recommended that you always
12296     # use absolute paths for naming shared libraries, and exclude the
12297     # DT_RUNPATH tag from executables and libraries.  But doing so
12298     # requires that you compile everything twice, which is a pain.
12299     # So that behaviour is only enabled if SCOABSPATH is set to a
12300     # non-empty value in the environment.  Most likely only useful for
12301     # creating official distributions of packages.
12302     # This is a hack until libtool officially supports absolute path
12303     # names for shared libraries.
12304     no_undefined_flag_CXX='${wl}-z,text'
12305     allow_undefined_flag_CXX='${wl}-z,nodefs'
12306     archive_cmds_need_lc_CXX=no
12307     hardcode_shlibpath_var_CXX=no
12308     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12309     hardcode_libdir_separator_CXX=':'
12310     link_all_deplibs_CXX=yes
12311     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12312     runpath_var='LD_RUN_PATH'
12313
12314     case $cc_basename in
12315       CC*)
12316         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12317         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12318         ;;
12319       *)
12320         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12321         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12322         ;;
12323     esac
12324     ;;
12325   tandem*)
12326     case $cc_basename in
12327       NCC*)
12328         # NonStop-UX NCC 3.20
12329         # FIXME: insert proper C++ library support
12330         ld_shlibs_CXX=no
12331         ;;
12332       *)
12333         # FIXME: insert proper C++ library support
12334         ld_shlibs_CXX=no
12335         ;;
12336     esac
12337     ;;
12338   vxworks*)
12339     # FIXME: insert proper C++ library support
12340     ld_shlibs_CXX=no
12341     ;;
12342   *)
12343     # FIXME: insert proper C++ library support
12344     ld_shlibs_CXX=no
12345     ;;
12346 esac
12347 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12348 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12349 test "$ld_shlibs_CXX" = no && can_build_shared=no
12350
12351 GCC_CXX="$GXX"
12352 LD_CXX="$LD"
12353
12354
12355 cat > conftest.$ac_ext <<EOF
12356 class Foo
12357 {
12358 public:
12359   Foo (void) { a = 0; }
12360 private:
12361   int a;
12362 };
12363 EOF
12364
12365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12366   (eval $ac_compile) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; then
12370   # Parse the compiler output and extract the necessary
12371   # objects, libraries and library flags.
12372
12373   # Sentinel used to keep track of whether or not we are before
12374   # the conftest object file.
12375   pre_test_object_deps_done=no
12376
12377   # The `*' in the case matches for architectures that use `case' in
12378   # $output_verbose_cmd can trigger glob expansion during the loop
12379   # eval without this substitution.
12380   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12381
12382   for p in `eval $output_verbose_link_cmd`; do
12383     case $p in
12384
12385     -L* | -R* | -l*)
12386        # Some compilers place space between "-{L,R}" and the path.
12387        # Remove the space.
12388        if test $p = "-L" \
12389           || test $p = "-R"; then
12390          prev=$p
12391          continue
12392        else
12393          prev=
12394        fi
12395
12396        if test "$pre_test_object_deps_done" = no; then
12397          case $p in
12398          -L* | -R*)
12399            # Internal compiler library paths should come after those
12400            # provided the user.  The postdeps already come after the
12401            # user supplied libs so there is no need to process them.
12402            if test -z "$compiler_lib_search_path_CXX"; then
12403              compiler_lib_search_path_CXX="${prev}${p}"
12404            else
12405              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12406            fi
12407            ;;
12408          # The "-l" case would never come before the object being
12409          # linked, so don't bother handling this case.
12410          esac
12411        else
12412          if test -z "$postdeps_CXX"; then
12413            postdeps_CXX="${prev}${p}"
12414          else
12415            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12416          fi
12417        fi
12418        ;;
12419
12420     *.$objext)
12421        # This assumes that the test object file only shows up
12422        # once in the compiler output.
12423        if test "$p" = "conftest.$objext"; then
12424          pre_test_object_deps_done=yes
12425          continue
12426        fi
12427
12428        if test "$pre_test_object_deps_done" = no; then
12429          if test -z "$predep_objects_CXX"; then
12430            predep_objects_CXX="$p"
12431          else
12432            predep_objects_CXX="$predep_objects_CXX $p"
12433          fi
12434        else
12435          if test -z "$postdep_objects_CXX"; then
12436            postdep_objects_CXX="$p"
12437          else
12438            postdep_objects_CXX="$postdep_objects_CXX $p"
12439          fi
12440        fi
12441        ;;
12442
12443     *) ;; # Ignore the rest.
12444
12445     esac
12446   done
12447
12448   # Clean up.
12449   rm -f a.out a.exe
12450 else
12451   echo "libtool.m4: error: problem compiling CXX test program"
12452 fi
12453
12454 $rm -f confest.$objext
12455
12456 # PORTME: override above test on systems where it is broken
12457 case $host_os in
12458 interix[3-9]*)
12459   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12460   # hack all around it, let's just trust "g++" to DTRT.
12461   predep_objects_CXX=
12462   postdep_objects_CXX=
12463   postdeps_CXX=
12464   ;;
12465
12466 linux*)
12467   case `$CC -V 2>&1 | sed 5q` in
12468   *Sun\ C*)
12469     # Sun C++ 5.9
12470     #
12471     # The more standards-conforming stlport4 library is
12472     # incompatible with the Cstd library. Avoid specifying
12473     # it if it's in CXXFLAGS. Ignore libCrun as
12474     # -library=stlport4 depends on it.
12475     case " $CXX $CXXFLAGS " in
12476     *" -library=stlport4 "*)
12477       solaris_use_stlport4=yes
12478       ;;
12479     esac
12480     if test "$solaris_use_stlport4" != yes; then
12481       postdeps_CXX='-library=Cstd -library=Crun'
12482     fi
12483     ;;
12484   esac
12485   ;;
12486
12487 solaris*)
12488   case $cc_basename in
12489   CC*)
12490     # The more standards-conforming stlport4 library is
12491     # incompatible with the Cstd library. Avoid specifying
12492     # it if it's in CXXFLAGS. Ignore libCrun as
12493     # -library=stlport4 depends on it.
12494     case " $CXX $CXXFLAGS " in
12495     *" -library=stlport4 "*)
12496       solaris_use_stlport4=yes
12497       ;;
12498     esac
12499
12500     # Adding this requires a known-good setup of shared libraries for
12501     # Sun compiler versions before 5.6, else PIC objects from an old
12502     # archive will be linked into the output, leading to subtle bugs.
12503     if test "$solaris_use_stlport4" != yes; then
12504       postdeps_CXX='-library=Cstd -library=Crun'
12505     fi
12506     ;;
12507   esac
12508   ;;
12509 esac
12510
12511
12512 case " $postdeps_CXX " in
12513 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12514 esac
12515
12516 lt_prog_compiler_wl_CXX=
12517 lt_prog_compiler_pic_CXX=
12518 lt_prog_compiler_static_CXX=
12519
12520 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12521 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12522
12523   # C++ specific cases for pic, static, wl, etc.
12524   if test "$GXX" = yes; then
12525     lt_prog_compiler_wl_CXX='-Wl,'
12526     lt_prog_compiler_static_CXX='-static'
12527
12528     case $host_os in
12529     aix*)
12530       # All AIX code is PIC.
12531       if test "$host_cpu" = ia64; then
12532         # AIX 5 now supports IA64 processor
12533         lt_prog_compiler_static_CXX='-Bstatic'
12534       fi
12535       ;;
12536     amigaos*)
12537       # FIXME: we need at least 68020 code to build shared libraries, but
12538       # adding the `-m68020' flag to GCC prevents building anything better,
12539       # like `-m68040'.
12540       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12541       ;;
12542     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12543       # PIC is the default for these OSes.
12544       ;;
12545     mingw* | cygwin* | os2* | pw32*)
12546       # This hack is so that the source file can tell whether it is being
12547       # built for inclusion in a dll (and should export symbols for example).
12548       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12549       # (--disable-auto-import) libraries
12550       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12551       ;;
12552     darwin* | rhapsody*)
12553       # PIC is the default on this platform
12554       # Common symbols not allowed in MH_DYLIB files
12555       lt_prog_compiler_pic_CXX='-fno-common'
12556       ;;
12557     *djgpp*)
12558       # DJGPP does not support shared libraries at all
12559       lt_prog_compiler_pic_CXX=
12560       ;;
12561     interix[3-9]*)
12562       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12563       # Instead, we relocate shared libraries at runtime.
12564       ;;
12565     sysv4*MP*)
12566       if test -d /usr/nec; then
12567         lt_prog_compiler_pic_CXX=-Kconform_pic
12568       fi
12569       ;;
12570     hpux*)
12571       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12572       # not for PA HP-UX.
12573       case $host_cpu in
12574       hppa*64*|ia64*)
12575         ;;
12576       *)
12577         lt_prog_compiler_pic_CXX='-fPIC'
12578         ;;
12579       esac
12580       ;;
12581     *)
12582       lt_prog_compiler_pic_CXX='-fPIC'
12583       ;;
12584     esac
12585   else
12586     case $host_os in
12587       aix4* | aix5*)
12588         # All AIX code is PIC.
12589         if test "$host_cpu" = ia64; then
12590           # AIX 5 now supports IA64 processor
12591           lt_prog_compiler_static_CXX='-Bstatic'
12592         else
12593           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12594         fi
12595         ;;
12596       chorus*)
12597         case $cc_basename in
12598         cxch68*)
12599           # Green Hills C++ Compiler
12600           # _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"
12601           ;;
12602         esac
12603         ;;
12604        darwin*)
12605          # PIC is the default on this platform
12606          # Common symbols not allowed in MH_DYLIB files
12607          case $cc_basename in
12608            xlc*)
12609            lt_prog_compiler_pic_CXX='-qnocommon'
12610            lt_prog_compiler_wl_CXX='-Wl,'
12611            ;;
12612          esac
12613        ;;
12614       dgux*)
12615         case $cc_basename in
12616           ec++*)
12617             lt_prog_compiler_pic_CXX='-KPIC'
12618             ;;
12619           ghcx*)
12620             # Green Hills C++ Compiler
12621             lt_prog_compiler_pic_CXX='-pic'
12622             ;;
12623           *)
12624             ;;
12625         esac
12626         ;;
12627       freebsd* | dragonfly*)
12628         # FreeBSD uses GNU C++
12629         ;;
12630       hpux9* | hpux10* | hpux11*)
12631         case $cc_basename in
12632           CC*)
12633             lt_prog_compiler_wl_CXX='-Wl,'
12634             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12635             if test "$host_cpu" != ia64; then
12636               lt_prog_compiler_pic_CXX='+Z'
12637             fi
12638             ;;
12639           aCC*)
12640             lt_prog_compiler_wl_CXX='-Wl,'
12641             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12642             case $host_cpu in
12643             hppa*64*|ia64*)
12644               # +Z the default
12645               ;;
12646             *)
12647               lt_prog_compiler_pic_CXX='+Z'
12648               ;;
12649             esac
12650             ;;
12651           *)
12652             ;;
12653         esac
12654         ;;
12655       interix*)
12656         # This is c89, which is MS Visual C++ (no shared libs)
12657         # Anyone wants to do a port?
12658         ;;
12659       irix5* | irix6* | nonstopux*)
12660         case $cc_basename in
12661           CC*)
12662             lt_prog_compiler_wl_CXX='-Wl,'
12663             lt_prog_compiler_static_CXX='-non_shared'
12664             # CC pic flag -KPIC is the default.
12665             ;;
12666           *)
12667             ;;
12668         esac
12669         ;;
12670       linux* | k*bsd*-gnu)
12671         case $cc_basename in
12672           KCC*)
12673             # KAI C++ Compiler
12674             lt_prog_compiler_wl_CXX='--backend -Wl,'
12675             lt_prog_compiler_pic_CXX='-fPIC'
12676             ;;
12677           icpc* | ecpc*)
12678             # Intel C++
12679             lt_prog_compiler_wl_CXX='-Wl,'
12680             lt_prog_compiler_pic_CXX='-KPIC'
12681             lt_prog_compiler_static_CXX='-static'
12682             ;;
12683           pgCC*)
12684             # Portland Group C++ compiler.
12685             lt_prog_compiler_wl_CXX='-Wl,'
12686             lt_prog_compiler_pic_CXX='-fpic'
12687             lt_prog_compiler_static_CXX='-Bstatic'
12688             ;;
12689           cxx*)
12690             # Compaq C++
12691             # Make sure the PIC flag is empty.  It appears that all Alpha
12692             # Linux and Compaq Tru64 Unix objects are PIC.
12693             lt_prog_compiler_pic_CXX=
12694             lt_prog_compiler_static_CXX='-non_shared'
12695             ;;
12696           *)
12697             case `$CC -V 2>&1 | sed 5q` in
12698             *Sun\ C*)
12699               # Sun C++ 5.9
12700               lt_prog_compiler_pic_CXX='-KPIC'
12701               lt_prog_compiler_static_CXX='-Bstatic'
12702               lt_prog_compiler_wl_CXX='-Qoption ld '
12703               ;;
12704             esac
12705             ;;
12706         esac
12707         ;;
12708       lynxos*)
12709         ;;
12710       m88k*)
12711         ;;
12712       mvs*)
12713         case $cc_basename in
12714           cxx*)
12715             lt_prog_compiler_pic_CXX='-W c,exportall'
12716             ;;
12717           *)
12718             ;;
12719         esac
12720         ;;
12721       netbsd* | netbsdelf*-gnu)
12722         ;;
12723       osf3* | osf4* | osf5*)
12724         case $cc_basename in
12725           KCC*)
12726             lt_prog_compiler_wl_CXX='--backend -Wl,'
12727             ;;
12728           RCC*)
12729             # Rational C++ 2.4.1
12730             lt_prog_compiler_pic_CXX='-pic'
12731             ;;
12732           cxx*)
12733             # Digital/Compaq C++
12734             lt_prog_compiler_wl_CXX='-Wl,'
12735             # Make sure the PIC flag is empty.  It appears that all Alpha
12736             # Linux and Compaq Tru64 Unix objects are PIC.
12737             lt_prog_compiler_pic_CXX=
12738             lt_prog_compiler_static_CXX='-non_shared'
12739             ;;
12740           *)
12741             ;;
12742         esac
12743         ;;
12744       psos*)
12745         ;;
12746       solaris*)
12747         case $cc_basename in
12748           CC*)
12749             # Sun C++ 4.2, 5.x and Centerline C++
12750             lt_prog_compiler_pic_CXX='-KPIC'
12751             lt_prog_compiler_static_CXX='-Bstatic'
12752             lt_prog_compiler_wl_CXX='-Qoption ld '
12753             ;;
12754           gcx*)
12755             # Green Hills C++ Compiler
12756             lt_prog_compiler_pic_CXX='-PIC'
12757             ;;
12758           *)
12759             ;;
12760         esac
12761         ;;
12762       sunos4*)
12763         case $cc_basename in
12764           CC*)
12765             # Sun C++ 4.x
12766             lt_prog_compiler_pic_CXX='-pic'
12767             lt_prog_compiler_static_CXX='-Bstatic'
12768             ;;
12769           lcc*)
12770             # Lucid
12771             lt_prog_compiler_pic_CXX='-pic'
12772             ;;
12773           *)
12774             ;;
12775         esac
12776         ;;
12777       tandem*)
12778         case $cc_basename in
12779           NCC*)
12780             # NonStop-UX NCC 3.20
12781             lt_prog_compiler_pic_CXX='-KPIC'
12782             ;;
12783           *)
12784             ;;
12785         esac
12786         ;;
12787       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12788         case $cc_basename in
12789           CC*)
12790             lt_prog_compiler_wl_CXX='-Wl,'
12791             lt_prog_compiler_pic_CXX='-KPIC'
12792             lt_prog_compiler_static_CXX='-Bstatic'
12793             ;;
12794         esac
12795         ;;
12796       vxworks*)
12797         ;;
12798       *)
12799         lt_prog_compiler_can_build_shared_CXX=no
12800         ;;
12801     esac
12802   fi
12803
12804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12805 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12806
12807 #
12808 # Check to make sure the PIC flag actually works.
12809 #
12810 if test -n "$lt_prog_compiler_pic_CXX"; then
12811
12812 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12813 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12814 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12815   echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817   lt_prog_compiler_pic_works_CXX=no
12818   ac_outfile=conftest.$ac_objext
12819    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12820    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12821    # Insert the option either (1) after the last *FLAGS variable, or
12822    # (2) before a word containing "conftest.", or (3) at the end.
12823    # Note that $ac_compile itself does not contain backslashes and begins
12824    # with a dollar sign (not a hyphen), so the echo should work correctly.
12825    # The option is referenced via a variable to avoid confusing sed.
12826    lt_compile=`echo "$ac_compile" | $SED \
12827    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12829    -e 's:$: $lt_compiler_flag:'`
12830    (eval echo "\"\$as_me:12830: $lt_compile\"" >&5)
12831    (eval "$lt_compile" 2>conftest.err)
12832    ac_status=$?
12833    cat conftest.err >&5
12834    echo "$as_me:12834: \$? = $ac_status" >&5
12835    if (exit $ac_status) && test -s "$ac_outfile"; then
12836      # The compiler can only warn and ignore the option if not recognized
12837      # So say no if there are warnings other than the usual output.
12838      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12839      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12840      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12841        lt_prog_compiler_pic_works_CXX=yes
12842      fi
12843    fi
12844    $rm conftest*
12845
12846 fi
12847 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12848 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12849
12850 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12851     case $lt_prog_compiler_pic_CXX in
12852      "" | " "*) ;;
12853      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12854      esac
12855 else
12856     lt_prog_compiler_pic_CXX=
12857      lt_prog_compiler_can_build_shared_CXX=no
12858 fi
12859
12860 fi
12861 case $host_os in
12862   # For platforms which do not support PIC, -DPIC is meaningless:
12863   *djgpp*)
12864     lt_prog_compiler_pic_CXX=
12865     ;;
12866   *)
12867     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12868     ;;
12869 esac
12870
12871 #
12872 # Check to make sure the static flag actually works.
12873 #
12874 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12875 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12876 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12877 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12878   echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880   lt_prog_compiler_static_works_CXX=no
12881    save_LDFLAGS="$LDFLAGS"
12882    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12883    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12884    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12885      # The linker can only warn and ignore the option if not recognized
12886      # So say no if there are warnings
12887      if test -s conftest.err; then
12888        # Append any errors to the config.log.
12889        cat conftest.err 1>&5
12890        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12891        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12892        if diff conftest.exp conftest.er2 >/dev/null; then
12893          lt_prog_compiler_static_works_CXX=yes
12894        fi
12895      else
12896        lt_prog_compiler_static_works_CXX=yes
12897      fi
12898    fi
12899    $rm conftest*
12900    LDFLAGS="$save_LDFLAGS"
12901
12902 fi
12903 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12904 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12905
12906 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12907     :
12908 else
12909     lt_prog_compiler_static_CXX=
12910 fi
12911
12912
12913 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12914 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12915 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12916   echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918   lt_cv_prog_compiler_c_o_CXX=no
12919    $rm -r conftest 2>/dev/null
12920    mkdir conftest
12921    cd conftest
12922    mkdir out
12923    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12924
12925    lt_compiler_flag="-o out/conftest2.$ac_objext"
12926    # Insert the option either (1) after the last *FLAGS variable, or
12927    # (2) before a word containing "conftest.", or (3) at the end.
12928    # Note that $ac_compile itself does not contain backslashes and begins
12929    # with a dollar sign (not a hyphen), so the echo should work correctly.
12930    lt_compile=`echo "$ac_compile" | $SED \
12931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12933    -e 's:$: $lt_compiler_flag:'`
12934    (eval echo "\"\$as_me:12934: $lt_compile\"" >&5)
12935    (eval "$lt_compile" 2>out/conftest.err)
12936    ac_status=$?
12937    cat out/conftest.err >&5
12938    echo "$as_me:12938: \$? = $ac_status" >&5
12939    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12940    then
12941      # The compiler can only warn and ignore the option if not recognized
12942      # So say no if there are warnings
12943      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12944      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12945      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12946        lt_cv_prog_compiler_c_o_CXX=yes
12947      fi
12948    fi
12949    chmod u+w . 2>&5
12950    $rm conftest*
12951    # SGI C++ compiler will create directory out/ii_files/ for
12952    # template instantiation
12953    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12954    $rm out/* && rmdir out
12955    cd ..
12956    rmdir conftest
12957    $rm conftest*
12958
12959 fi
12960 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12961 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12962
12963
12964 hard_links="nottested"
12965 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12966   # do not overwrite the value of need_locks provided by the user
12967   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12969   hard_links=yes
12970   $rm conftest*
12971   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12972   touch conftest.a
12973   ln conftest.a conftest.b 2>&5 || hard_links=no
12974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12975   { echo "$as_me:$LINENO: result: $hard_links" >&5
12976 echo "${ECHO_T}$hard_links" >&6; }
12977   if test "$hard_links" = no; then
12978     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12980     need_locks=warn
12981   fi
12982 else
12983   need_locks=no
12984 fi
12985
12986 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12988
12989   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12990   case $host_os in
12991   aix4* | aix5*)
12992     # If we're using GNU nm, then we don't want the "-C" option.
12993     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12994     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12995       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'
12996     else
12997       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'
12998     fi
12999     ;;
13000   pw32*)
13001     export_symbols_cmds_CXX="$ltdll_cmds"
13002   ;;
13003   cygwin* | mingw*)
13004     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'
13005   ;;
13006   linux* | k*bsd*-gnu)
13007     link_all_deplibs_CXX=no
13008   ;;
13009   *)
13010     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13011   ;;
13012   esac
13013
13014 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13015 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13016 test "$ld_shlibs_CXX" = no && can_build_shared=no
13017
13018 #
13019 # Do we need to explicitly link libc?
13020 #
13021 case "x$archive_cmds_need_lc_CXX" in
13022 x|xyes)
13023   # Assume -lc should be added
13024   archive_cmds_need_lc_CXX=yes
13025
13026   if test "$enable_shared" = yes && test "$GCC" = yes; then
13027     case $archive_cmds_CXX in
13028     *'~'*)
13029       # FIXME: we may have to deal with multi-command sequences.
13030       ;;
13031     '$CC '*)
13032       # Test whether the compiler implicitly links with -lc since on some
13033       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13034       # to ld, don't add -lc before -lgcc.
13035       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13036 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13037       $rm conftest*
13038       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13039
13040       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041   (eval $ac_compile) 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); } 2>conftest.err; then
13045         soname=conftest
13046         lib=conftest
13047         libobjs=conftest.$ac_objext
13048         deplibs=
13049         wl=$lt_prog_compiler_wl_CXX
13050         pic_flag=$lt_prog_compiler_pic_CXX
13051         compiler_flags=-v
13052         linker_flags=-v
13053         verstring=
13054         output_objdir=.
13055         libname=conftest
13056         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13057         allow_undefined_flag_CXX=
13058         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13059   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }
13063         then
13064           archive_cmds_need_lc_CXX=no
13065         else
13066           archive_cmds_need_lc_CXX=yes
13067         fi
13068         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13069       else
13070         cat conftest.err 1>&5
13071       fi
13072       $rm conftest*
13073       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13074 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13075       ;;
13076     esac
13077   fi
13078   ;;
13079 esac
13080
13081 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13082 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13083 library_names_spec=
13084 libname_spec='lib$name'
13085 soname_spec=
13086 shrext_cmds=".so"
13087 postinstall_cmds=
13088 postuninstall_cmds=
13089 finish_cmds=
13090 finish_eval=
13091 shlibpath_var=
13092 shlibpath_overrides_runpath=unknown
13093 version_type=none
13094 dynamic_linker="$host_os ld.so"
13095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13096
13097 need_lib_prefix=unknown
13098 hardcode_into_libs=no
13099
13100 # when you set need_version to no, make sure it does not cause -set_version
13101 # flags to be left without arguments
13102 need_version=unknown
13103
13104 case $host_os in
13105 aix3*)
13106   version_type=linux
13107   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13108   shlibpath_var=LIBPATH
13109
13110   # AIX 3 has no versioning support, so we append a major version to the name.
13111   soname_spec='${libname}${release}${shared_ext}$major'
13112   ;;
13113
13114 aix4* | aix5*)
13115   version_type=linux
13116   need_lib_prefix=no
13117   need_version=no
13118   hardcode_into_libs=yes
13119   if test "$host_cpu" = ia64; then
13120     # AIX 5 supports IA64
13121     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13122     shlibpath_var=LD_LIBRARY_PATH
13123   else
13124     # With GCC up to 2.95.x, collect2 would create an import file
13125     # for dependence libraries.  The import file would start with
13126     # the line `#! .'.  This would cause the generated library to
13127     # depend on `.', always an invalid library.  This was fixed in
13128     # development snapshots of GCC prior to 3.0.
13129     case $host_os in
13130       aix4 | aix4.[01] | aix4.[01].*)
13131       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13132            echo ' yes '
13133            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13134         :
13135       else
13136         can_build_shared=no
13137       fi
13138       ;;
13139     esac
13140     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13141     # soname into executable. Probably we can add versioning support to
13142     # collect2, so additional links can be useful in future.
13143     if test "$aix_use_runtimelinking" = yes; then
13144       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13145       # instead of lib<name>.a to let people know that these are not
13146       # typical AIX shared libraries.
13147       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148     else
13149       # We preserve .a as extension for shared libraries through AIX4.2
13150       # and later when we are not doing run time linking.
13151       library_names_spec='${libname}${release}.a $libname.a'
13152       soname_spec='${libname}${release}${shared_ext}$major'
13153     fi
13154     shlibpath_var=LIBPATH
13155   fi
13156   ;;
13157
13158 amigaos*)
13159   library_names_spec='$libname.ixlibrary $libname.a'
13160   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13161   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'
13162   ;;
13163
13164 beos*)
13165   library_names_spec='${libname}${shared_ext}'
13166   dynamic_linker="$host_os ld.so"
13167   shlibpath_var=LIBRARY_PATH
13168   ;;
13169
13170 bsdi[45]*)
13171   version_type=linux
13172   need_version=no
13173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13174   soname_spec='${libname}${release}${shared_ext}$major'
13175   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13176   shlibpath_var=LD_LIBRARY_PATH
13177   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13178   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13179   # the default ld.so.conf also contains /usr/contrib/lib and
13180   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13181   # libtool to hard-code these into programs
13182   ;;
13183
13184 cygwin* | mingw* | pw32*)
13185   version_type=windows
13186   shrext_cmds=".dll"
13187   need_version=no
13188   need_lib_prefix=no
13189
13190   case $GCC,$host_os in
13191   yes,cygwin* | yes,mingw* | yes,pw32*)
13192     library_names_spec='$libname.dll.a'
13193     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13194     postinstall_cmds='base_file=`basename \${file}`~
13195       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13196       dldir=$destdir/`dirname \$dlpath`~
13197       test -d \$dldir || mkdir -p \$dldir~
13198       $install_prog $dir/$dlname \$dldir/$dlname~
13199       chmod a+x \$dldir/$dlname'
13200     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13201       dlpath=$dir/\$dldll~
13202        $rm \$dlpath'
13203     shlibpath_overrides_runpath=yes
13204
13205     case $host_os in
13206     cygwin*)
13207       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13208       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13209       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13210       ;;
13211     mingw*)
13212       # MinGW DLLs use traditional 'lib' prefix
13213       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13214       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13215       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13216         # It is most probably a Windows format PATH printed by
13217         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13218         # path with ; separators, and with drive letters. We can handle the
13219         # drive letters (cygwin fileutils understands them), so leave them,
13220         # especially as we might pass files found there to a mingw objdump,
13221         # which wouldn't understand a cygwinified path. Ahh.
13222         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13223       else
13224         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13225       fi
13226       ;;
13227     pw32*)
13228       # pw32 DLLs use 'pw' prefix rather than 'lib'
13229       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13230       ;;
13231     esac
13232     ;;
13233
13234   *)
13235     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13236     ;;
13237   esac
13238   dynamic_linker='Win32 ld.exe'
13239   # FIXME: first we should search . and the directory the executable is in
13240   shlibpath_var=PATH
13241   ;;
13242
13243 darwin* | rhapsody*)
13244   dynamic_linker="$host_os dyld"
13245   version_type=darwin
13246   need_lib_prefix=no
13247   need_version=no
13248   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13249   soname_spec='${libname}${release}${major}$shared_ext'
13250   shlibpath_overrides_runpath=yes
13251   shlibpath_var=DYLD_LIBRARY_PATH
13252   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13253
13254   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13255   ;;
13256
13257 dgux*)
13258   version_type=linux
13259   need_lib_prefix=no
13260   need_version=no
13261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13262   soname_spec='${libname}${release}${shared_ext}$major'
13263   shlibpath_var=LD_LIBRARY_PATH
13264   ;;
13265
13266 freebsd1*)
13267   dynamic_linker=no
13268   ;;
13269
13270 freebsd* | dragonfly*)
13271   # DragonFly does not have aout.  When/if they implement a new
13272   # versioning mechanism, adjust this.
13273   if test -x /usr/bin/objformat; then
13274     objformat=`/usr/bin/objformat`
13275   else
13276     case $host_os in
13277     freebsd[123]*) objformat=aout ;;
13278     *) objformat=elf ;;
13279     esac
13280   fi
13281   version_type=freebsd-$objformat
13282   case $version_type in
13283     freebsd-elf*)
13284       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13285       need_version=no
13286       need_lib_prefix=no
13287       ;;
13288     freebsd-*)
13289       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13290       need_version=yes
13291       ;;
13292   esac
13293   shlibpath_var=LD_LIBRARY_PATH
13294   case $host_os in
13295   freebsd2*)
13296     shlibpath_overrides_runpath=yes
13297     ;;
13298   freebsd3.[01]* | freebsdelf3.[01]*)
13299     shlibpath_overrides_runpath=yes
13300     hardcode_into_libs=yes
13301     ;;
13302   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13303   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13304     shlibpath_overrides_runpath=no
13305     hardcode_into_libs=yes
13306     ;;
13307   *) # from 4.6 on, and DragonFly
13308     shlibpath_overrides_runpath=yes
13309     hardcode_into_libs=yes
13310     ;;
13311   esac
13312   ;;
13313
13314 gnu*)
13315   version_type=linux
13316   need_lib_prefix=no
13317   need_version=no
13318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13319   soname_spec='${libname}${release}${shared_ext}$major'
13320   shlibpath_var=LD_LIBRARY_PATH
13321   hardcode_into_libs=yes
13322   ;;
13323
13324 hpux9* | hpux10* | hpux11*)
13325   # Give a soname corresponding to the major version so that dld.sl refuses to
13326   # link against other versions.
13327   version_type=sunos
13328   need_lib_prefix=no
13329   need_version=no
13330   case $host_cpu in
13331   ia64*)
13332     shrext_cmds='.so'
13333     hardcode_into_libs=yes
13334     dynamic_linker="$host_os dld.so"
13335     shlibpath_var=LD_LIBRARY_PATH
13336     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338     soname_spec='${libname}${release}${shared_ext}$major'
13339     if test "X$HPUX_IA64_MODE" = X32; then
13340       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13341     else
13342       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13343     fi
13344     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13345     ;;
13346    hppa*64*)
13347      shrext_cmds='.sl'
13348      hardcode_into_libs=yes
13349      dynamic_linker="$host_os dld.sl"
13350      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13351      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13352      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13353      soname_spec='${libname}${release}${shared_ext}$major'
13354      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13355      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13356      ;;
13357    *)
13358     shrext_cmds='.sl'
13359     dynamic_linker="$host_os dld.sl"
13360     shlibpath_var=SHLIB_PATH
13361     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13363     soname_spec='${libname}${release}${shared_ext}$major'
13364     ;;
13365   esac
13366   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13367   postinstall_cmds='chmod 555 $lib'
13368   ;;
13369
13370 interix[3-9]*)
13371   version_type=linux
13372   need_lib_prefix=no
13373   need_version=no
13374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13375   soname_spec='${libname}${release}${shared_ext}$major'
13376   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13377   shlibpath_var=LD_LIBRARY_PATH
13378   shlibpath_overrides_runpath=no
13379   hardcode_into_libs=yes
13380   ;;
13381
13382 irix5* | irix6* | nonstopux*)
13383   case $host_os in
13384     nonstopux*) version_type=nonstopux ;;
13385     *)
13386         if test "$lt_cv_prog_gnu_ld" = yes; then
13387                 version_type=linux
13388         else
13389                 version_type=irix
13390         fi ;;
13391   esac
13392   need_lib_prefix=no
13393   need_version=no
13394   soname_spec='${libname}${release}${shared_ext}$major'
13395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13396   case $host_os in
13397   irix5* | nonstopux*)
13398     libsuff= shlibsuff=
13399     ;;
13400   *)
13401     case $LD in # libtool.m4 will add one of these switches to LD
13402     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13403       libsuff= shlibsuff= libmagic=32-bit;;
13404     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13405       libsuff=32 shlibsuff=N32 libmagic=N32;;
13406     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13407       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13408     *) libsuff= shlibsuff= libmagic=never-match;;
13409     esac
13410     ;;
13411   esac
13412   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13413   shlibpath_overrides_runpath=no
13414   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13415   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13416   hardcode_into_libs=yes
13417   ;;
13418
13419 # No shared lib support for Linux oldld, aout, or coff.
13420 linux*oldld* | linux*aout* | linux*coff*)
13421   dynamic_linker=no
13422   ;;
13423
13424 # This must be Linux ELF.
13425 linux* | k*bsd*-gnu)
13426   version_type=linux
13427   need_lib_prefix=no
13428   need_version=no
13429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13430   soname_spec='${libname}${release}${shared_ext}$major'
13431   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13432   shlibpath_var=LD_LIBRARY_PATH
13433   shlibpath_overrides_runpath=no
13434   # This implies no fast_install, which is unacceptable.
13435   # Some rework will be needed to allow for fast_install
13436   # before this can be enabled.
13437   hardcode_into_libs=yes
13438
13439   # Append ld.so.conf contents to the search path
13440   if test -f /etc/ld.so.conf; then
13441     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13442     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13443   fi
13444
13445   # We used to test for /lib/ld.so.1 and disable shared libraries on
13446   # powerpc, because MkLinux only supported shared libraries with the
13447   # GNU dynamic linker.  Since this was broken with cross compilers,
13448   # most powerpc-linux boxes support dynamic linking these days and
13449   # people can always --disable-shared, the test was removed, and we
13450   # assume the GNU/Linux dynamic linker is in use.
13451   dynamic_linker='GNU/Linux ld.so'
13452   ;;
13453
13454 netbsdelf*-gnu)
13455   version_type=linux
13456   need_lib_prefix=no
13457   need_version=no
13458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13459   soname_spec='${libname}${release}${shared_ext}$major'
13460   shlibpath_var=LD_LIBRARY_PATH
13461   shlibpath_overrides_runpath=no
13462   hardcode_into_libs=yes
13463   dynamic_linker='NetBSD ld.elf_so'
13464   ;;
13465
13466 netbsd*)
13467   version_type=sunos
13468   need_lib_prefix=no
13469   need_version=no
13470   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13471     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13472     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13473     dynamic_linker='NetBSD (a.out) ld.so'
13474   else
13475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13476     soname_spec='${libname}${release}${shared_ext}$major'
13477     dynamic_linker='NetBSD ld.elf_so'
13478   fi
13479   shlibpath_var=LD_LIBRARY_PATH
13480   shlibpath_overrides_runpath=yes
13481   hardcode_into_libs=yes
13482   ;;
13483
13484 newsos6)
13485   version_type=linux
13486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487   shlibpath_var=LD_LIBRARY_PATH
13488   shlibpath_overrides_runpath=yes
13489   ;;
13490
13491 nto-qnx*)
13492   version_type=linux
13493   need_lib_prefix=no
13494   need_version=no
13495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13496   soname_spec='${libname}${release}${shared_ext}$major'
13497   shlibpath_var=LD_LIBRARY_PATH
13498   shlibpath_overrides_runpath=yes
13499   ;;
13500
13501 openbsd*)
13502   version_type=sunos
13503   sys_lib_dlsearch_path_spec="/usr/lib"
13504   need_lib_prefix=no
13505   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13506   case $host_os in
13507     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13508     *)                         need_version=no  ;;
13509   esac
13510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13512   shlibpath_var=LD_LIBRARY_PATH
13513   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13514     case $host_os in
13515       openbsd2.[89] | openbsd2.[89].*)
13516         shlibpath_overrides_runpath=no
13517         ;;
13518       *)
13519         shlibpath_overrides_runpath=yes
13520         ;;
13521       esac
13522   else
13523     shlibpath_overrides_runpath=yes
13524   fi
13525   ;;
13526
13527 os2*)
13528   libname_spec='$name'
13529   shrext_cmds=".dll"
13530   need_lib_prefix=no
13531   library_names_spec='$libname${shared_ext} $libname.a'
13532   dynamic_linker='OS/2 ld.exe'
13533   shlibpath_var=LIBPATH
13534   ;;
13535
13536 osf3* | osf4* | osf5*)
13537   version_type=osf
13538   need_lib_prefix=no
13539   need_version=no
13540   soname_spec='${libname}${release}${shared_ext}$major'
13541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542   shlibpath_var=LD_LIBRARY_PATH
13543   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13544   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13545   ;;
13546
13547 rdos*)
13548   dynamic_linker=no
13549   ;;
13550
13551 solaris*)
13552   version_type=linux
13553   need_lib_prefix=no
13554   need_version=no
13555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556   soname_spec='${libname}${release}${shared_ext}$major'
13557   shlibpath_var=LD_LIBRARY_PATH
13558   shlibpath_overrides_runpath=yes
13559   hardcode_into_libs=yes
13560   # ldd complains unless libraries are executable
13561   postinstall_cmds='chmod +x $lib'
13562   ;;
13563
13564 sunos4*)
13565   version_type=sunos
13566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13567   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13568   shlibpath_var=LD_LIBRARY_PATH
13569   shlibpath_overrides_runpath=yes
13570   if test "$with_gnu_ld" = yes; then
13571     need_lib_prefix=no
13572   fi
13573   need_version=yes
13574   ;;
13575
13576 sysv4 | sysv4.3*)
13577   version_type=linux
13578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13579   soname_spec='${libname}${release}${shared_ext}$major'
13580   shlibpath_var=LD_LIBRARY_PATH
13581   case $host_vendor in
13582     sni)
13583       shlibpath_overrides_runpath=no
13584       need_lib_prefix=no
13585       export_dynamic_flag_spec='${wl}-Blargedynsym'
13586       runpath_var=LD_RUN_PATH
13587       ;;
13588     siemens)
13589       need_lib_prefix=no
13590       ;;
13591     motorola)
13592       need_lib_prefix=no
13593       need_version=no
13594       shlibpath_overrides_runpath=no
13595       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13596       ;;
13597   esac
13598   ;;
13599
13600 sysv4*MP*)
13601   if test -d /usr/nec ;then
13602     version_type=linux
13603     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13604     soname_spec='$libname${shared_ext}.$major'
13605     shlibpath_var=LD_LIBRARY_PATH
13606   fi
13607   ;;
13608
13609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13610   version_type=freebsd-elf
13611   need_lib_prefix=no
13612   need_version=no
13613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13614   soname_spec='${libname}${release}${shared_ext}$major'
13615   shlibpath_var=LD_LIBRARY_PATH
13616   hardcode_into_libs=yes
13617   if test "$with_gnu_ld" = yes; then
13618     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13619     shlibpath_overrides_runpath=no
13620   else
13621     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13622     shlibpath_overrides_runpath=yes
13623     case $host_os in
13624       sco3.2v5*)
13625         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13626         ;;
13627     esac
13628   fi
13629   sys_lib_dlsearch_path_spec='/usr/lib'
13630   ;;
13631
13632 uts4*)
13633   version_type=linux
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   shlibpath_var=LD_LIBRARY_PATH
13637   ;;
13638
13639 *)
13640   dynamic_linker=no
13641   ;;
13642 esac
13643 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13644 echo "${ECHO_T}$dynamic_linker" >&6; }
13645 test "$dynamic_linker" = no && can_build_shared=no
13646
13647 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13648 if test "$GCC" = yes; then
13649   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13650 fi
13651
13652 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13653 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13654 hardcode_action_CXX=
13655 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13656    test -n "$runpath_var_CXX" || \
13657    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13658
13659   # We can hardcode non-existant directories.
13660   if test "$hardcode_direct_CXX" != no &&
13661      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13662      # have to relink, otherwise we might link with an installed library
13663      # when we should be linking with a yet-to-be-installed one
13664      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13665      test "$hardcode_minus_L_CXX" != no; then
13666     # Linking always hardcodes the temporary library directory.
13667     hardcode_action_CXX=relink
13668   else
13669     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13670     hardcode_action_CXX=immediate
13671   fi
13672 else
13673   # We cannot hardcode anything, or else we can only hardcode existing
13674   # directories.
13675   hardcode_action_CXX=unsupported
13676 fi
13677 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13678 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13679
13680 if test "$hardcode_action_CXX" = relink; then
13681   # Fast installation is not supported
13682   enable_fast_install=no
13683 elif test "$shlibpath_overrides_runpath" = yes ||
13684      test "$enable_shared" = no; then
13685   # Fast installation is not necessary
13686   enable_fast_install=needless
13687 fi
13688
13689
13690 # The else clause should only fire when bootstrapping the
13691 # libtool distribution, otherwise you forgot to ship ltmain.sh
13692 # with your package, and you will get complaints that there are
13693 # no rules to generate ltmain.sh.
13694 if test -f "$ltmain"; then
13695   # See if we are running on zsh, and set the options which allow our commands through
13696   # without removal of \ escapes.
13697   if test -n "${ZSH_VERSION+set}" ; then
13698     setopt NO_GLOB_SUBST
13699   fi
13700   # Now quote all the things that may contain metacharacters while being
13701   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13702   # variables and quote the copies for generation of the libtool script.
13703   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13704     SED SHELL STRIP \
13705     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13706     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13707     deplibs_check_method reload_flag reload_cmds need_locks \
13708     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13709     lt_cv_sys_global_symbol_to_c_name_address \
13710     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13711     old_postinstall_cmds old_postuninstall_cmds \
13712     compiler_CXX \
13713     CC_CXX \
13714     LD_CXX \
13715     lt_prog_compiler_wl_CXX \
13716     lt_prog_compiler_pic_CXX \
13717     lt_prog_compiler_static_CXX \
13718     lt_prog_compiler_no_builtin_flag_CXX \
13719     export_dynamic_flag_spec_CXX \
13720     thread_safe_flag_spec_CXX \
13721     whole_archive_flag_spec_CXX \
13722     enable_shared_with_static_runtimes_CXX \
13723     old_archive_cmds_CXX \
13724     old_archive_from_new_cmds_CXX \
13725     predep_objects_CXX \
13726     postdep_objects_CXX \
13727     predeps_CXX \
13728     postdeps_CXX \
13729     compiler_lib_search_path_CXX \
13730     archive_cmds_CXX \
13731     archive_expsym_cmds_CXX \
13732     postinstall_cmds_CXX \
13733     postuninstall_cmds_CXX \
13734     old_archive_from_expsyms_cmds_CXX \
13735     allow_undefined_flag_CXX \
13736     no_undefined_flag_CXX \
13737     export_symbols_cmds_CXX \
13738     hardcode_libdir_flag_spec_CXX \
13739     hardcode_libdir_flag_spec_ld_CXX \
13740     hardcode_libdir_separator_CXX \
13741     hardcode_automatic_CXX \
13742     module_cmds_CXX \
13743     module_expsym_cmds_CXX \
13744     lt_cv_prog_compiler_c_o_CXX \
13745     fix_srcfile_path_CXX \
13746     exclude_expsyms_CXX \
13747     include_expsyms_CXX; do
13748
13749     case $var in
13750     old_archive_cmds_CXX | \
13751     old_archive_from_new_cmds_CXX | \
13752     archive_cmds_CXX | \
13753     archive_expsym_cmds_CXX | \
13754     module_cmds_CXX | \
13755     module_expsym_cmds_CXX | \
13756     old_archive_from_expsyms_cmds_CXX | \
13757     export_symbols_cmds_CXX | \
13758     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13759     postinstall_cmds | postuninstall_cmds | \
13760     old_postinstall_cmds | old_postuninstall_cmds | \
13761     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13762       # Double-quote double-evaled strings.
13763       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13764       ;;
13765     *)
13766       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13767       ;;
13768     esac
13769   done
13770
13771   case $lt_echo in
13772   *'\$0 --fallback-echo"')
13773     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13774     ;;
13775   esac
13776
13777 cfgfile="$ofile"
13778
13779   cat <<__EOF__ >> "$cfgfile"
13780 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13781
13782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13783
13784 # Shell to use when invoking shell scripts.
13785 SHELL=$lt_SHELL
13786
13787 # Whether or not to build shared libraries.
13788 build_libtool_libs=$enable_shared
13789
13790 # Whether or not to build static libraries.
13791 build_old_libs=$enable_static
13792
13793 # Whether or not to add -lc for building shared libraries.
13794 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13795
13796 # Whether or not to disallow shared libs when runtime libs are static
13797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13798
13799 # Whether or not to optimize for fast installation.
13800 fast_install=$enable_fast_install
13801
13802 # The host system.
13803 host_alias=$host_alias
13804 host=$host
13805 host_os=$host_os
13806
13807 # The build system.
13808 build_alias=$build_alias
13809 build=$build
13810 build_os=$build_os
13811
13812 # An echo program that does not interpret backslashes.
13813 echo=$lt_echo
13814
13815 # The archiver.
13816 AR=$lt_AR
13817 AR_FLAGS=$lt_AR_FLAGS
13818
13819 # A C compiler.
13820 LTCC=$lt_LTCC
13821
13822 # LTCC compiler flags.
13823 LTCFLAGS=$lt_LTCFLAGS
13824
13825 # A language-specific compiler.
13826 CC=$lt_compiler_CXX
13827
13828 # Is the compiler the GNU C compiler?
13829 with_gcc=$GCC_CXX
13830
13831 # An ERE matcher.
13832 EGREP=$lt_EGREP
13833
13834 # The linker used to build libraries.
13835 LD=$lt_LD_CXX
13836
13837 # Whether we need hard or soft links.
13838 LN_S=$lt_LN_S
13839
13840 # A BSD-compatible nm program.
13841 NM=$lt_NM
13842
13843 # A symbol stripping program
13844 STRIP=$lt_STRIP
13845
13846 # Used to examine libraries when file_magic_cmd begins "file"
13847 MAGIC_CMD=$MAGIC_CMD
13848
13849 # Used on cygwin: DLL creation program.
13850 DLLTOOL="$DLLTOOL"
13851
13852 # Used on cygwin: object dumper.
13853 OBJDUMP="$OBJDUMP"
13854
13855 # Used on cygwin: assembler.
13856 AS="$AS"
13857
13858 # The name of the directory that contains temporary libtool files.
13859 objdir=$objdir
13860
13861 # How to create reloadable object files.
13862 reload_flag=$lt_reload_flag
13863 reload_cmds=$lt_reload_cmds
13864
13865 # How to pass a linker flag through the compiler.
13866 wl=$lt_lt_prog_compiler_wl_CXX
13867
13868 # Object file suffix (normally "o").
13869 objext="$ac_objext"
13870
13871 # Old archive suffix (normally "a").
13872 libext="$libext"
13873
13874 # Shared library suffix (normally ".so").
13875 shrext_cmds='$shrext_cmds'
13876
13877 # Executable file suffix (normally "").
13878 exeext="$exeext"
13879
13880 # Additional compiler flags for building library objects.
13881 pic_flag=$lt_lt_prog_compiler_pic_CXX
13882 pic_mode=$pic_mode
13883
13884 # What is the maximum length of a command?
13885 max_cmd_len=$lt_cv_sys_max_cmd_len
13886
13887 # Does compiler simultaneously support -c and -o options?
13888 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13889
13890 # Must we lock files when doing compilation?
13891 need_locks=$lt_need_locks
13892
13893 # Do we need the lib prefix for modules?
13894 need_lib_prefix=$need_lib_prefix
13895
13896 # Do we need a version for libraries?
13897 need_version=$need_version
13898
13899 # Whether dlopen is supported.
13900 dlopen_support=$enable_dlopen
13901
13902 # Whether dlopen of programs is supported.
13903 dlopen_self=$enable_dlopen_self
13904
13905 # Whether dlopen of statically linked programs is supported.
13906 dlopen_self_static=$enable_dlopen_self_static
13907
13908 # Compiler flag to prevent dynamic linking.
13909 link_static_flag=$lt_lt_prog_compiler_static_CXX
13910
13911 # Compiler flag to turn off builtin functions.
13912 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13913
13914 # Compiler flag to allow reflexive dlopens.
13915 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13916
13917 # Compiler flag to generate shared objects directly from archives.
13918 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13919
13920 # Compiler flag to generate thread-safe objects.
13921 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13922
13923 # Library versioning type.
13924 version_type=$version_type
13925
13926 # Format of library name prefix.
13927 libname_spec=$lt_libname_spec
13928
13929 # List of archive names.  First name is the real one, the rest are links.
13930 # The last name is the one that the linker finds with -lNAME.
13931 library_names_spec=$lt_library_names_spec
13932
13933 # The coded name of the library, if different from the real name.
13934 soname_spec=$lt_soname_spec
13935
13936 # Commands used to build and install an old-style archive.
13937 RANLIB=$lt_RANLIB
13938 old_archive_cmds=$lt_old_archive_cmds_CXX
13939 old_postinstall_cmds=$lt_old_postinstall_cmds
13940 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13941
13942 # Create an old-style archive from a shared archive.
13943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13944
13945 # Create a temporary old-style archive to link instead of a shared archive.
13946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13947
13948 # Commands used to build and install a shared archive.
13949 archive_cmds=$lt_archive_cmds_CXX
13950 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13951 postinstall_cmds=$lt_postinstall_cmds
13952 postuninstall_cmds=$lt_postuninstall_cmds
13953
13954 # Commands used to build a loadable module (assumed same as above if empty)
13955 module_cmds=$lt_module_cmds_CXX
13956 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13957
13958 # Commands to strip libraries.
13959 old_striplib=$lt_old_striplib
13960 striplib=$lt_striplib
13961
13962 # Dependencies to place before the objects being linked to create a
13963 # shared library.
13964 predep_objects=$lt_predep_objects_CXX
13965
13966 # Dependencies to place after the objects being linked to create a
13967 # shared library.
13968 postdep_objects=$lt_postdep_objects_CXX
13969
13970 # Dependencies to place before the objects being linked to create a
13971 # shared library.
13972 predeps=$lt_predeps_CXX
13973
13974 # Dependencies to place after the objects being linked to create a
13975 # shared library.
13976 postdeps=$lt_postdeps_CXX
13977
13978 # The library search path used internally by the compiler when linking
13979 # a shared library.
13980 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13981
13982 # Method to check whether dependent libraries are shared objects.
13983 deplibs_check_method=$lt_deplibs_check_method
13984
13985 # Command to use when deplibs_check_method == file_magic.
13986 file_magic_cmd=$lt_file_magic_cmd
13987
13988 # Flag that allows shared libraries with undefined symbols to be built.
13989 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13990
13991 # Flag that forces no undefined symbols.
13992 no_undefined_flag=$lt_no_undefined_flag_CXX
13993
13994 # Commands used to finish a libtool library installation in a directory.
13995 finish_cmds=$lt_finish_cmds
13996
13997 # Same as above, but a single script fragment to be evaled but not shown.
13998 finish_eval=$lt_finish_eval
13999
14000 # Take the output of nm and produce a listing of raw symbols and C names.
14001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14002
14003 # Transform the output of nm in a proper C declaration
14004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14005
14006 # Transform the output of nm in a C name address pair
14007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14008
14009 # This is the shared library runtime path variable.
14010 runpath_var=$runpath_var
14011
14012 # This is the shared library path variable.
14013 shlibpath_var=$shlibpath_var
14014
14015 # Is shlibpath searched before the hard-coded library search path?
14016 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14017
14018 # How to hardcode a shared library path into an executable.
14019 hardcode_action=$hardcode_action_CXX
14020
14021 # Whether we should hardcode library paths into libraries.
14022 hardcode_into_libs=$hardcode_into_libs
14023
14024 # Flag to hardcode \$libdir into a binary during linking.
14025 # This must work even if \$libdir does not exist.
14026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14027
14028 # If ld is used when linking, flag to hardcode \$libdir into
14029 # a binary during linking. This must work even if \$libdir does
14030 # not exist.
14031 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14032
14033 # Whether we need a single -rpath flag with a separated argument.
14034 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14035
14036 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14037 # resulting binary.
14038 hardcode_direct=$hardcode_direct_CXX
14039
14040 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14041 # resulting binary.
14042 hardcode_minus_L=$hardcode_minus_L_CXX
14043
14044 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14045 # the resulting binary.
14046 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14047
14048 # Set to yes if building a shared library automatically hardcodes DIR into the library
14049 # and all subsequent libraries and executables linked against it.
14050 hardcode_automatic=$hardcode_automatic_CXX
14051
14052 # Variables whose values should be saved in libtool wrapper scripts and
14053 # restored at relink time.
14054 variables_saved_for_relink="$variables_saved_for_relink"
14055
14056 # Whether libtool must link a program against all its dependency libraries.
14057 link_all_deplibs=$link_all_deplibs_CXX
14058
14059 # Compile-time system search path for libraries
14060 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14061
14062 # Run-time system search path for libraries
14063 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14064
14065 # Fix the shell variable \$srcfile for the compiler.
14066 fix_srcfile_path=$lt_fix_srcfile_path
14067
14068 # Set to yes if exported symbols are required.
14069 always_export_symbols=$always_export_symbols_CXX
14070
14071 # The commands to list exported symbols.
14072 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14073
14074 # The commands to extract the exported symbol list from a shared archive.
14075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14076
14077 # Symbols that should not be listed in the preloaded symbols.
14078 exclude_expsyms=$lt_exclude_expsyms_CXX
14079
14080 # Symbols that must always be exported.
14081 include_expsyms=$lt_include_expsyms_CXX
14082
14083 # ### END LIBTOOL TAG CONFIG: $tagname
14084
14085 __EOF__
14086
14087
14088 else
14089   # If there is no Makefile yet, we rely on a make rule to execute
14090   # `config.status --recheck' to rerun these tests and create the
14091   # libtool script then.
14092   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14093   if test -f "$ltmain_in"; then
14094     test -f Makefile && make "$ltmain"
14095   fi
14096 fi
14097
14098
14099 ac_ext=c
14100 ac_cpp='$CPP $CPPFLAGS'
14101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14104
14105 CC=$lt_save_CC
14106 LDCXX=$LD
14107 LD=$lt_save_LD
14108 GCC=$lt_save_GCC
14109 with_gnu_ldcxx=$with_gnu_ld
14110 with_gnu_ld=$lt_save_with_gnu_ld
14111 lt_cv_path_LDCXX=$lt_cv_path_LD
14112 lt_cv_path_LD=$lt_save_path_LD
14113 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14114 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14115
14116         else
14117           tagname=""
14118         fi
14119         ;;
14120
14121       F77)
14122         if test -n "$F77" && test "X$F77" != "Xno"; then
14123
14124 ac_ext=f
14125 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14126 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14127 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14128
14129
14130 archive_cmds_need_lc_F77=no
14131 allow_undefined_flag_F77=
14132 always_export_symbols_F77=no
14133 archive_expsym_cmds_F77=
14134 export_dynamic_flag_spec_F77=
14135 hardcode_direct_F77=no
14136 hardcode_libdir_flag_spec_F77=
14137 hardcode_libdir_flag_spec_ld_F77=
14138 hardcode_libdir_separator_F77=
14139 hardcode_minus_L_F77=no
14140 hardcode_automatic_F77=no
14141 module_cmds_F77=
14142 module_expsym_cmds_F77=
14143 link_all_deplibs_F77=unknown
14144 old_archive_cmds_F77=$old_archive_cmds
14145 no_undefined_flag_F77=
14146 whole_archive_flag_spec_F77=
14147 enable_shared_with_static_runtimes_F77=no
14148
14149 # Source file extension for f77 test sources.
14150 ac_ext=f
14151
14152 # Object file extension for compiled f77 test sources.
14153 objext=o
14154 objext_F77=$objext
14155
14156 # Code to be used in simple compile tests
14157 lt_simple_compile_test_code="\
14158       subroutine t
14159       return
14160       end
14161 "
14162
14163 # Code to be used in simple link tests
14164 lt_simple_link_test_code="\
14165       program t
14166       end
14167 "
14168
14169 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14170
14171 # If no C compiler was specified, use CC.
14172 LTCC=${LTCC-"$CC"}
14173
14174 # If no C compiler flags were specified, use CFLAGS.
14175 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14176
14177 # Allow CC to be a program name with arguments.
14178 compiler=$CC
14179
14180
14181 # save warnings/boilerplate of simple test code
14182 ac_outfile=conftest.$ac_objext
14183 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14184 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14185 _lt_compiler_boilerplate=`cat conftest.err`
14186 $rm conftest*
14187
14188 ac_outfile=conftest.$ac_objext
14189 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14190 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14191 _lt_linker_boilerplate=`cat conftest.err`
14192 $rm conftest*
14193
14194
14195 # Allow CC to be a program name with arguments.
14196 lt_save_CC="$CC"
14197 CC=${F77-"f77"}
14198 compiler=$CC
14199 compiler_F77=$CC
14200 for cc_temp in $compiler""; do
14201   case $cc_temp in
14202     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14203     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14204     \-*) ;;
14205     *) break;;
14206   esac
14207 done
14208 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14209
14210
14211 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14212 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14213 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14214 echo "${ECHO_T}$can_build_shared" >&6; }
14215
14216 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14217 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14218 test "$can_build_shared" = "no" && enable_shared=no
14219
14220 # On AIX, shared libraries and static libraries use the same namespace, and
14221 # are all built from PIC.
14222 case $host_os in
14223 aix3*)
14224   test "$enable_shared" = yes && enable_static=no
14225   if test -n "$RANLIB"; then
14226     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14227     postinstall_cmds='$RANLIB $lib'
14228   fi
14229   ;;
14230 aix4* | aix5*)
14231   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14232     test "$enable_shared" = yes && enable_static=no
14233   fi
14234   ;;
14235 esac
14236 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14237 echo "${ECHO_T}$enable_shared" >&6; }
14238
14239 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14240 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14241 # Make sure either enable_shared or enable_static is yes.
14242 test "$enable_shared" = yes || enable_static=yes
14243 { echo "$as_me:$LINENO: result: $enable_static" >&5
14244 echo "${ECHO_T}$enable_static" >&6; }
14245
14246 GCC_F77="$G77"
14247 LD_F77="$LD"
14248
14249 lt_prog_compiler_wl_F77=
14250 lt_prog_compiler_pic_F77=
14251 lt_prog_compiler_static_F77=
14252
14253 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14254 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14255
14256   if test "$GCC" = yes; then
14257     lt_prog_compiler_wl_F77='-Wl,'
14258     lt_prog_compiler_static_F77='-static'
14259
14260     case $host_os in
14261       aix*)
14262       # All AIX code is PIC.
14263       if test "$host_cpu" = ia64; then
14264         # AIX 5 now supports IA64 processor
14265         lt_prog_compiler_static_F77='-Bstatic'
14266       fi
14267       ;;
14268
14269     amigaos*)
14270       # FIXME: we need at least 68020 code to build shared libraries, but
14271       # adding the `-m68020' flag to GCC prevents building anything better,
14272       # like `-m68040'.
14273       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14274       ;;
14275
14276     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14277       # PIC is the default for these OSes.
14278       ;;
14279
14280     mingw* | cygwin* | pw32* | os2*)
14281       # This hack is so that the source file can tell whether it is being
14282       # built for inclusion in a dll (and should export symbols for example).
14283       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14284       # (--disable-auto-import) libraries
14285       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14286       ;;
14287
14288     darwin* | rhapsody*)
14289       # PIC is the default on this platform
14290       # Common symbols not allowed in MH_DYLIB files
14291       lt_prog_compiler_pic_F77='-fno-common'
14292       ;;
14293
14294     interix[3-9]*)
14295       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14296       # Instead, we relocate shared libraries at runtime.
14297       ;;
14298
14299     msdosdjgpp*)
14300       # Just because we use GCC doesn't mean we suddenly get shared libraries
14301       # on systems that don't support them.
14302       lt_prog_compiler_can_build_shared_F77=no
14303       enable_shared=no
14304       ;;
14305
14306     sysv4*MP*)
14307       if test -d /usr/nec; then
14308         lt_prog_compiler_pic_F77=-Kconform_pic
14309       fi
14310       ;;
14311
14312     hpux*)
14313       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14314       # not for PA HP-UX.
14315       case $host_cpu in
14316       hppa*64*|ia64*)
14317         # +Z the default
14318         ;;
14319       *)
14320         lt_prog_compiler_pic_F77='-fPIC'
14321         ;;
14322       esac
14323       ;;
14324
14325     *)
14326       lt_prog_compiler_pic_F77='-fPIC'
14327       ;;
14328     esac
14329   else
14330     # PORTME Check for flag to pass linker flags through the system compiler.
14331     case $host_os in
14332     aix*)
14333       lt_prog_compiler_wl_F77='-Wl,'
14334       if test "$host_cpu" = ia64; then
14335         # AIX 5 now supports IA64 processor
14336         lt_prog_compiler_static_F77='-Bstatic'
14337       else
14338         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14339       fi
14340       ;;
14341       darwin*)
14342         # PIC is the default on this platform
14343         # Common symbols not allowed in MH_DYLIB files
14344        case $cc_basename in
14345          xlc*)
14346          lt_prog_compiler_pic_F77='-qnocommon'
14347          lt_prog_compiler_wl_F77='-Wl,'
14348          ;;
14349        esac
14350        ;;
14351
14352     mingw* | cygwin* | pw32* | os2*)
14353       # This hack is so that the source file can tell whether it is being
14354       # built for inclusion in a dll (and should export symbols for example).
14355       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14356       ;;
14357
14358     hpux9* | hpux10* | hpux11*)
14359       lt_prog_compiler_wl_F77='-Wl,'
14360       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14361       # not for PA HP-UX.
14362       case $host_cpu in
14363       hppa*64*|ia64*)
14364         # +Z the default
14365         ;;
14366       *)
14367         lt_prog_compiler_pic_F77='+Z'
14368         ;;
14369       esac
14370       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14371       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14372       ;;
14373
14374     irix5* | irix6* | nonstopux*)
14375       lt_prog_compiler_wl_F77='-Wl,'
14376       # PIC (with -KPIC) is the default.
14377       lt_prog_compiler_static_F77='-non_shared'
14378       ;;
14379
14380     newsos6)
14381       lt_prog_compiler_pic_F77='-KPIC'
14382       lt_prog_compiler_static_F77='-Bstatic'
14383       ;;
14384
14385     linux* | k*bsd*-gnu)
14386       case $cc_basename in
14387       icc* | ecc*)
14388         lt_prog_compiler_wl_F77='-Wl,'
14389         lt_prog_compiler_pic_F77='-KPIC'
14390         lt_prog_compiler_static_F77='-static'
14391         ;;
14392       pgcc* | pgf77* | pgf90* | pgf95*)
14393         # Portland Group compilers (*not* the Pentium gcc compiler,
14394         # which looks to be a dead project)
14395         lt_prog_compiler_wl_F77='-Wl,'
14396         lt_prog_compiler_pic_F77='-fpic'
14397         lt_prog_compiler_static_F77='-Bstatic'
14398         ;;
14399       ccc*)
14400         lt_prog_compiler_wl_F77='-Wl,'
14401         # All Alpha code is PIC.
14402         lt_prog_compiler_static_F77='-non_shared'
14403         ;;
14404       *)
14405         case `$CC -V 2>&1 | sed 5q` in
14406         *Sun\ C*)
14407           # Sun C 5.9
14408           lt_prog_compiler_pic_F77='-KPIC'
14409           lt_prog_compiler_static_F77='-Bstatic'
14410           lt_prog_compiler_wl_F77='-Wl,'
14411           ;;
14412         *Sun\ F*)
14413           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14414           lt_prog_compiler_pic_F77='-KPIC'
14415           lt_prog_compiler_static_F77='-Bstatic'
14416           lt_prog_compiler_wl_F77=''
14417           ;;
14418         esac
14419         ;;
14420       esac
14421       ;;
14422
14423     osf3* | osf4* | osf5*)
14424       lt_prog_compiler_wl_F77='-Wl,'
14425       # All OSF/1 code is PIC.
14426       lt_prog_compiler_static_F77='-non_shared'
14427       ;;
14428
14429     rdos*)
14430       lt_prog_compiler_static_F77='-non_shared'
14431       ;;
14432
14433     solaris*)
14434       lt_prog_compiler_pic_F77='-KPIC'
14435       lt_prog_compiler_static_F77='-Bstatic'
14436       case $cc_basename in
14437       f77* | f90* | f95*)
14438         lt_prog_compiler_wl_F77='-Qoption ld ';;
14439       *)
14440         lt_prog_compiler_wl_F77='-Wl,';;
14441       esac
14442       ;;
14443
14444     sunos4*)
14445       lt_prog_compiler_wl_F77='-Qoption ld '
14446       lt_prog_compiler_pic_F77='-PIC'
14447       lt_prog_compiler_static_F77='-Bstatic'
14448       ;;
14449
14450     sysv4 | sysv4.2uw2* | sysv4.3*)
14451       lt_prog_compiler_wl_F77='-Wl,'
14452       lt_prog_compiler_pic_F77='-KPIC'
14453       lt_prog_compiler_static_F77='-Bstatic'
14454       ;;
14455
14456     sysv4*MP*)
14457       if test -d /usr/nec ;then
14458         lt_prog_compiler_pic_F77='-Kconform_pic'
14459         lt_prog_compiler_static_F77='-Bstatic'
14460       fi
14461       ;;
14462
14463     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14464       lt_prog_compiler_wl_F77='-Wl,'
14465       lt_prog_compiler_pic_F77='-KPIC'
14466       lt_prog_compiler_static_F77='-Bstatic'
14467       ;;
14468
14469     unicos*)
14470       lt_prog_compiler_wl_F77='-Wl,'
14471       lt_prog_compiler_can_build_shared_F77=no
14472       ;;
14473
14474     uts4*)
14475       lt_prog_compiler_pic_F77='-pic'
14476       lt_prog_compiler_static_F77='-Bstatic'
14477       ;;
14478
14479     *)
14480       lt_prog_compiler_can_build_shared_F77=no
14481       ;;
14482     esac
14483   fi
14484
14485 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14486 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14487
14488 #
14489 # Check to make sure the PIC flag actually works.
14490 #
14491 if test -n "$lt_prog_compiler_pic_F77"; then
14492
14493 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14495 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14496   echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498   lt_prog_compiler_pic_works_F77=no
14499   ac_outfile=conftest.$ac_objext
14500    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14501    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14502    # Insert the option either (1) after the last *FLAGS variable, or
14503    # (2) before a word containing "conftest.", or (3) at the end.
14504    # Note that $ac_compile itself does not contain backslashes and begins
14505    # with a dollar sign (not a hyphen), so the echo should work correctly.
14506    # The option is referenced via a variable to avoid confusing sed.
14507    lt_compile=`echo "$ac_compile" | $SED \
14508    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14510    -e 's:$: $lt_compiler_flag:'`
14511    (eval echo "\"\$as_me:14511: $lt_compile\"" >&5)
14512    (eval "$lt_compile" 2>conftest.err)
14513    ac_status=$?
14514    cat conftest.err >&5
14515    echo "$as_me:14515: \$? = $ac_status" >&5
14516    if (exit $ac_status) && test -s "$ac_outfile"; then
14517      # The compiler can only warn and ignore the option if not recognized
14518      # So say no if there are warnings other than the usual output.
14519      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14520      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14522        lt_prog_compiler_pic_works_F77=yes
14523      fi
14524    fi
14525    $rm conftest*
14526
14527 fi
14528 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14529 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14530
14531 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14532     case $lt_prog_compiler_pic_F77 in
14533      "" | " "*) ;;
14534      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14535      esac
14536 else
14537     lt_prog_compiler_pic_F77=
14538      lt_prog_compiler_can_build_shared_F77=no
14539 fi
14540
14541 fi
14542 case $host_os in
14543   # For platforms which do not support PIC, -DPIC is meaningless:
14544   *djgpp*)
14545     lt_prog_compiler_pic_F77=
14546     ;;
14547   *)
14548     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14549     ;;
14550 esac
14551
14552 #
14553 # Check to make sure the static flag actually works.
14554 #
14555 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14556 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14557 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14558 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14559   echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561   lt_prog_compiler_static_works_F77=no
14562    save_LDFLAGS="$LDFLAGS"
14563    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14564    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14565    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14566      # The linker can only warn and ignore the option if not recognized
14567      # So say no if there are warnings
14568      if test -s conftest.err; then
14569        # Append any errors to the config.log.
14570        cat conftest.err 1>&5
14571        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14572        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14573        if diff conftest.exp conftest.er2 >/dev/null; then
14574          lt_prog_compiler_static_works_F77=yes
14575        fi
14576      else
14577        lt_prog_compiler_static_works_F77=yes
14578      fi
14579    fi
14580    $rm conftest*
14581    LDFLAGS="$save_LDFLAGS"
14582
14583 fi
14584 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14585 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14586
14587 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14588     :
14589 else
14590     lt_prog_compiler_static_F77=
14591 fi
14592
14593
14594 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14595 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14596 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14597   echo $ECHO_N "(cached) $ECHO_C" >&6
14598 else
14599   lt_cv_prog_compiler_c_o_F77=no
14600    $rm -r conftest 2>/dev/null
14601    mkdir conftest
14602    cd conftest
14603    mkdir out
14604    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14605
14606    lt_compiler_flag="-o out/conftest2.$ac_objext"
14607    # Insert the option either (1) after the last *FLAGS variable, or
14608    # (2) before a word containing "conftest.", or (3) at the end.
14609    # Note that $ac_compile itself does not contain backslashes and begins
14610    # with a dollar sign (not a hyphen), so the echo should work correctly.
14611    lt_compile=`echo "$ac_compile" | $SED \
14612    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14613    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14614    -e 's:$: $lt_compiler_flag:'`
14615    (eval echo "\"\$as_me:14615: $lt_compile\"" >&5)
14616    (eval "$lt_compile" 2>out/conftest.err)
14617    ac_status=$?
14618    cat out/conftest.err >&5
14619    echo "$as_me:14619: \$? = $ac_status" >&5
14620    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14621    then
14622      # The compiler can only warn and ignore the option if not recognized
14623      # So say no if there are warnings
14624      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14625      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14626      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14627        lt_cv_prog_compiler_c_o_F77=yes
14628      fi
14629    fi
14630    chmod u+w . 2>&5
14631    $rm conftest*
14632    # SGI C++ compiler will create directory out/ii_files/ for
14633    # template instantiation
14634    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14635    $rm out/* && rmdir out
14636    cd ..
14637    rmdir conftest
14638    $rm conftest*
14639
14640 fi
14641 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14642 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14643
14644
14645 hard_links="nottested"
14646 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14647   # do not overwrite the value of need_locks provided by the user
14648   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14649 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14650   hard_links=yes
14651   $rm conftest*
14652   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14653   touch conftest.a
14654   ln conftest.a conftest.b 2>&5 || hard_links=no
14655   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14656   { echo "$as_me:$LINENO: result: $hard_links" >&5
14657 echo "${ECHO_T}$hard_links" >&6; }
14658   if test "$hard_links" = no; then
14659     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14660 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14661     need_locks=warn
14662   fi
14663 else
14664   need_locks=no
14665 fi
14666
14667 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14668 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14669
14670   runpath_var=
14671   allow_undefined_flag_F77=
14672   enable_shared_with_static_runtimes_F77=no
14673   archive_cmds_F77=
14674   archive_expsym_cmds_F77=
14675   old_archive_From_new_cmds_F77=
14676   old_archive_from_expsyms_cmds_F77=
14677   export_dynamic_flag_spec_F77=
14678   whole_archive_flag_spec_F77=
14679   thread_safe_flag_spec_F77=
14680   hardcode_libdir_flag_spec_F77=
14681   hardcode_libdir_flag_spec_ld_F77=
14682   hardcode_libdir_separator_F77=
14683   hardcode_direct_F77=no
14684   hardcode_minus_L_F77=no
14685   hardcode_shlibpath_var_F77=unsupported
14686   link_all_deplibs_F77=unknown
14687   hardcode_automatic_F77=no
14688   module_cmds_F77=
14689   module_expsym_cmds_F77=
14690   always_export_symbols_F77=no
14691   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14692   # include_expsyms should be a list of space-separated symbols to be *always*
14693   # included in the symbol list
14694   include_expsyms_F77=
14695   # exclude_expsyms can be an extended regexp of symbols to exclude
14696   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14697   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14698   # as well as any symbol that contains `d'.
14699   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14700   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14701   # platforms (ab)use it in PIC code, but their linkers get confused if
14702   # the symbol is explicitly referenced.  Since portable code cannot
14703   # rely on this symbol name, it's probably fine to never include it in
14704   # preloaded symbol tables.
14705   extract_expsyms_cmds=
14706   # Just being paranoid about ensuring that cc_basename is set.
14707   for cc_temp in $compiler""; do
14708   case $cc_temp in
14709     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14710     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14711     \-*) ;;
14712     *) break;;
14713   esac
14714 done
14715 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14716
14717   case $host_os in
14718   cygwin* | mingw* | pw32*)
14719     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14720     # When not using gcc, we currently assume that we are using
14721     # Microsoft Visual C++.
14722     if test "$GCC" != yes; then
14723       with_gnu_ld=no
14724     fi
14725     ;;
14726   interix*)
14727     # we just hope/assume this is gcc and not c89 (= MSVC++)
14728     with_gnu_ld=yes
14729     ;;
14730   openbsd*)
14731     with_gnu_ld=no
14732     ;;
14733   esac
14734
14735   ld_shlibs_F77=yes
14736   if test "$with_gnu_ld" = yes; then
14737     # If archive_cmds runs LD, not CC, wlarc should be empty
14738     wlarc='${wl}'
14739
14740     # Set some defaults for GNU ld with shared library support. These
14741     # are reset later if shared libraries are not supported. Putting them
14742     # here allows them to be overridden if necessary.
14743     runpath_var=LD_RUN_PATH
14744     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14745     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14746     # ancient GNU ld didn't support --whole-archive et. al.
14747     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14748         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14749       else
14750         whole_archive_flag_spec_F77=
14751     fi
14752     supports_anon_versioning=no
14753     case `$LD -v 2>/dev/null` in
14754       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14755       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14756       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14757       *\ 2.11.*) ;; # other 2.11 versions
14758       *) supports_anon_versioning=yes ;;
14759     esac
14760
14761     # See if GNU ld supports shared libraries.
14762     case $host_os in
14763     aix3* | aix4* | aix5*)
14764       # On AIX/PPC, the GNU linker is very broken
14765       if test "$host_cpu" != ia64; then
14766         ld_shlibs_F77=no
14767         cat <<EOF 1>&2
14768
14769 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14770 *** to be unable to reliably create shared libraries on AIX.
14771 *** Therefore, libtool is disabling shared libraries support.  If you
14772 *** really care for shared libraries, you may want to modify your PATH
14773 *** so that a non-GNU linker is found, and then restart.
14774
14775 EOF
14776       fi
14777       ;;
14778
14779     amigaos*)
14780       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)'
14781       hardcode_libdir_flag_spec_F77='-L$libdir'
14782       hardcode_minus_L_F77=yes
14783
14784       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14785       # that the semantics of dynamic libraries on AmigaOS, at least up
14786       # to version 4, is to share data among multiple programs linked
14787       # with the same dynamic library.  Since this doesn't match the
14788       # behavior of shared libraries on other platforms, we can't use
14789       # them.
14790       ld_shlibs_F77=no
14791       ;;
14792
14793     beos*)
14794       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14795         allow_undefined_flag_F77=unsupported
14796         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14797         # support --undefined.  This deserves some investigation.  FIXME
14798         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14799       else
14800         ld_shlibs_F77=no
14801       fi
14802       ;;
14803
14804     cygwin* | mingw* | pw32*)
14805       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14806       # as there is no search path for DLLs.
14807       hardcode_libdir_flag_spec_F77='-L$libdir'
14808       allow_undefined_flag_F77=unsupported
14809       always_export_symbols_F77=no
14810       enable_shared_with_static_runtimes_F77=yes
14811       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14812
14813       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14814         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14815         # If the export-symbols file already is a .def file (1st line
14816         # is EXPORTS), use it as is; otherwise, prepend...
14817         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14818           cp $export_symbols $output_objdir/$soname.def;
14819         else
14820           echo EXPORTS > $output_objdir/$soname.def;
14821           cat $export_symbols >> $output_objdir/$soname.def;
14822         fi~
14823         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14824       else
14825         ld_shlibs_F77=no
14826       fi
14827       ;;
14828
14829     interix[3-9]*)
14830       hardcode_direct_F77=no
14831       hardcode_shlibpath_var_F77=no
14832       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14833       export_dynamic_flag_spec_F77='${wl}-E'
14834       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14835       # Instead, shared libraries are loaded at an image base (0x10000000 by
14836       # default) and relocated if they conflict, which is a slow very memory
14837       # consuming and fragmenting process.  To avoid this, we pick a random,
14838       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14839       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14840       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'
14841       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'
14842       ;;
14843
14844     gnu* | linux* | k*bsd*-gnu)
14845       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14846         tmp_addflag=
14847         case $cc_basename,$host_cpu in
14848         pgcc*)                          # Portland Group C compiler
14849           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'
14850           tmp_addflag=' $pic_flag'
14851           ;;
14852         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14853           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'
14854           tmp_addflag=' $pic_flag -Mnomain' ;;
14855         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14856           tmp_addflag=' -i_dynamic' ;;
14857         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14858           tmp_addflag=' -i_dynamic -nofor_main' ;;
14859         ifc* | ifort*)                  # Intel Fortran compiler
14860           tmp_addflag=' -nofor_main' ;;
14861         esac
14862         case `$CC -V 2>&1 | sed 5q` in
14863         *Sun\ C*)                       # Sun C 5.9
14864           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14865           tmp_sharedflag='-G' ;;
14866         *Sun\ F*)                       # Sun Fortran 8.3
14867           tmp_sharedflag='-G' ;;
14868         *)
14869           tmp_sharedflag='-shared' ;;
14870         esac
14871         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872
14873         if test $supports_anon_versioning = yes; then
14874           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14875   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14876   $echo "local: *; };" >> $output_objdir/$libname.ver~
14877           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14878         fi
14879         link_all_deplibs_F77=no
14880       else
14881         ld_shlibs_F77=no
14882       fi
14883       ;;
14884
14885     netbsd* | netbsdelf*-gnu)
14886       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14887         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14888         wlarc=
14889       else
14890         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14892       fi
14893       ;;
14894
14895     solaris*)
14896       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14897         ld_shlibs_F77=no
14898         cat <<EOF 1>&2
14899
14900 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14901 *** create shared libraries on Solaris systems.  Therefore, libtool
14902 *** is disabling shared libraries support.  We urge you to upgrade GNU
14903 *** binutils to release 2.9.1 or newer.  Another option is to modify
14904 *** your PATH or compiler configuration so that the native linker is
14905 *** used, and then restart.
14906
14907 EOF
14908       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14909         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14910         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14911       else
14912         ld_shlibs_F77=no
14913       fi
14914       ;;
14915
14916     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14917       case `$LD -v 2>&1` in
14918         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14919         ld_shlibs_F77=no
14920         cat <<_LT_EOF 1>&2
14921
14922 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14923 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14924 *** is disabling shared libraries support.  We urge you to upgrade GNU
14925 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14926 *** your PATH or compiler configuration so that the native linker is
14927 *** used, and then restart.
14928
14929 _LT_EOF
14930         ;;
14931         *)
14932           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14933             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14934             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14935             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14936           else
14937             ld_shlibs_F77=no
14938           fi
14939         ;;
14940       esac
14941       ;;
14942
14943     sunos4*)
14944       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14945       wlarc=
14946       hardcode_direct_F77=yes
14947       hardcode_shlibpath_var_F77=no
14948       ;;
14949
14950     *)
14951       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14952         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14953         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14954       else
14955         ld_shlibs_F77=no
14956       fi
14957       ;;
14958     esac
14959
14960     if test "$ld_shlibs_F77" = no; then
14961       runpath_var=
14962       hardcode_libdir_flag_spec_F77=
14963       export_dynamic_flag_spec_F77=
14964       whole_archive_flag_spec_F77=
14965     fi
14966   else
14967     # PORTME fill in a description of your system's linker (not GNU ld)
14968     case $host_os in
14969     aix3*)
14970       allow_undefined_flag_F77=unsupported
14971       always_export_symbols_F77=yes
14972       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'
14973       # Note: this linker hardcodes the directories in LIBPATH if there
14974       # are no directories specified by -L.
14975       hardcode_minus_L_F77=yes
14976       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14977         # Neither direct hardcoding nor static linking is supported with a
14978         # broken collect2.
14979         hardcode_direct_F77=unsupported
14980       fi
14981       ;;
14982
14983     aix4* | aix5*)
14984       if test "$host_cpu" = ia64; then
14985         # On IA64, the linker does run time linking by default, so we don't
14986         # have to do anything special.
14987         aix_use_runtimelinking=no
14988         exp_sym_flag='-Bexport'
14989         no_entry_flag=""
14990       else
14991         # If we're using GNU nm, then we don't want the "-C" option.
14992         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14993         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14994           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'
14995         else
14996           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'
14997         fi
14998         aix_use_runtimelinking=no
14999
15000         # Test if we are trying to use run time linking or normal
15001         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15002         # need to do runtime linking.
15003         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15004           for ld_flag in $LDFLAGS; do
15005           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15006             aix_use_runtimelinking=yes
15007             break
15008           fi
15009           done
15010           ;;
15011         esac
15012
15013         exp_sym_flag='-bexport'
15014         no_entry_flag='-bnoentry'
15015       fi
15016
15017       # When large executables or shared objects are built, AIX ld can
15018       # have problems creating the table of contents.  If linking a library
15019       # or program results in "error TOC overflow" add -mminimal-toc to
15020       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15021       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15022
15023       archive_cmds_F77=''
15024       hardcode_direct_F77=yes
15025       hardcode_libdir_separator_F77=':'
15026       link_all_deplibs_F77=yes
15027
15028       if test "$GCC" = yes; then
15029         case $host_os in aix4.[012]|aix4.[012].*)
15030         # We only want to do this on AIX 4.2 and lower, the check
15031         # below for broken collect2 doesn't work under 4.3+
15032           collect2name=`${CC} -print-prog-name=collect2`
15033           if test -f "$collect2name" && \
15034            strings "$collect2name" | grep resolve_lib_name >/dev/null
15035           then
15036           # We have reworked collect2
15037           :
15038           else
15039           # We have old collect2
15040           hardcode_direct_F77=unsupported
15041           # It fails to find uninstalled libraries when the uninstalled
15042           # path is not listed in the libpath.  Setting hardcode_minus_L
15043           # to unsupported forces relinking
15044           hardcode_minus_L_F77=yes
15045           hardcode_libdir_flag_spec_F77='-L$libdir'
15046           hardcode_libdir_separator_F77=
15047           fi
15048           ;;
15049         esac
15050         shared_flag='-shared'
15051         if test "$aix_use_runtimelinking" = yes; then
15052           shared_flag="$shared_flag "'${wl}-G'
15053         fi
15054       else
15055         # not using gcc
15056         if test "$host_cpu" = ia64; then
15057         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15058         # chokes on -Wl,-G. The following line is correct:
15059           shared_flag='-G'
15060         else
15061           if test "$aix_use_runtimelinking" = yes; then
15062             shared_flag='${wl}-G'
15063           else
15064             shared_flag='${wl}-bM:SRE'
15065           fi
15066         fi
15067       fi
15068
15069       # It seems that -bexpall does not export symbols beginning with
15070       # underscore (_), so it is better to generate a list of symbols to export.
15071       always_export_symbols_F77=yes
15072       if test "$aix_use_runtimelinking" = yes; then
15073         # Warning - without using the other runtime loading flags (-brtl),
15074         # -berok will link without error, but may produce a broken library.
15075         allow_undefined_flag_F77='-berok'
15076        # Determine the default libpath from the value encoded in an empty executable.
15077        cat >conftest.$ac_ext <<_ACEOF
15078       program main
15079
15080       end
15081 _ACEOF
15082 rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (ac_try="$ac_link"
15084 case "(($ac_try" in
15085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086   *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089   (eval "$ac_link") 2>conftest.er1
15090   ac_status=$?
15091   grep -v '^ *+' conftest.er1 >conftest.err
15092   rm -f conftest.er1
15093   cat conftest.err >&5
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } && {
15096          test -z "$ac_f77_werror_flag" ||
15097          test ! -s conftest.err
15098        } && test -s conftest$ac_exeext &&
15099        $as_test_x conftest$ac_exeext; then
15100
15101 lt_aix_libpath_sed='
15102     /Import File Strings/,/^$/ {
15103         /^0/ {
15104             s/^0  *\(.*\)$/\1/
15105             p
15106         }
15107     }'
15108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15109 # Check for a 64-bit object if we didn't find anything.
15110 if test -z "$aix_libpath"; then
15111   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15112 fi
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117
15118 fi
15119
15120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15121       conftest$ac_exeext conftest.$ac_ext
15122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15123
15124        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15125         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"
15126        else
15127         if test "$host_cpu" = ia64; then
15128           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15129           allow_undefined_flag_F77="-z nodefs"
15130           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"
15131         else
15132          # Determine the default libpath from the value encoded in an empty executable.
15133          cat >conftest.$ac_ext <<_ACEOF
15134       program main
15135
15136       end
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (ac_try="$ac_link"
15140 case "(($ac_try" in
15141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142   *) ac_try_echo=$ac_try;;
15143 esac
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145   (eval "$ac_link") 2>conftest.er1
15146   ac_status=$?
15147   grep -v '^ *+' conftest.er1 >conftest.err
15148   rm -f conftest.er1
15149   cat conftest.err >&5
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); } && {
15152          test -z "$ac_f77_werror_flag" ||
15153          test ! -s conftest.err
15154        } && test -s conftest$ac_exeext &&
15155        $as_test_x conftest$ac_exeext; then
15156
15157 lt_aix_libpath_sed='
15158     /Import File Strings/,/^$/ {
15159         /^0/ {
15160             s/^0  *\(.*\)$/\1/
15161             p
15162         }
15163     }'
15164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15165 # Check for a 64-bit object if we didn't find anything.
15166 if test -z "$aix_libpath"; then
15167   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15168 fi
15169 else
15170   echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15172
15173
15174 fi
15175
15176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15177       conftest$ac_exeext conftest.$ac_ext
15178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15179
15180          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15181           # Warning - without using the other run time loading flags,
15182           # -berok will link without error, but may produce a broken library.
15183           no_undefined_flag_F77=' ${wl}-bernotok'
15184           allow_undefined_flag_F77=' ${wl}-berok'
15185           # Exported symbols can be pulled into shared objects from archives
15186           whole_archive_flag_spec_F77='$convenience'
15187           archive_cmds_need_lc_F77=yes
15188           # This is similar to how AIX traditionally builds its shared libraries.
15189           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'
15190         fi
15191       fi
15192       ;;
15193
15194     amigaos*)
15195       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)'
15196       hardcode_libdir_flag_spec_F77='-L$libdir'
15197       hardcode_minus_L_F77=yes
15198       # see comment about different semantics on the GNU ld section
15199       ld_shlibs_F77=no
15200       ;;
15201
15202     bsdi[45]*)
15203       export_dynamic_flag_spec_F77=-rdynamic
15204       ;;
15205
15206     cygwin* | mingw* | pw32*)
15207       # When not using gcc, we currently assume that we are using
15208       # Microsoft Visual C++.
15209       # hardcode_libdir_flag_spec is actually meaningless, as there is
15210       # no search path for DLLs.
15211       hardcode_libdir_flag_spec_F77=' '
15212       allow_undefined_flag_F77=unsupported
15213       # Tell ltmain to make .lib files, not .a files.
15214       libext=lib
15215       # Tell ltmain to make .dll files, not .so files.
15216       shrext_cmds=".dll"
15217       # FIXME: Setting linknames here is a bad hack.
15218       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15219       # The linker will automatically build a .lib file if we build a DLL.
15220       old_archive_From_new_cmds_F77='true'
15221       # FIXME: Should let the user specify the lib program.
15222       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15223       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15224       enable_shared_with_static_runtimes_F77=yes
15225       ;;
15226
15227     darwin* | rhapsody*)
15228       case $host_os in
15229         rhapsody* | darwin1.[012])
15230          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15231          ;;
15232        *) # Darwin 1.3 on
15233          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15234            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15235          else
15236            case ${MACOSX_DEPLOYMENT_TARGET} in
15237              10.[012])
15238                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15239                ;;
15240              10.*)
15241                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15242                ;;
15243            esac
15244          fi
15245          ;;
15246       esac
15247       archive_cmds_need_lc_F77=no
15248       hardcode_direct_F77=no
15249       hardcode_automatic_F77=yes
15250       hardcode_shlibpath_var_F77=unsupported
15251       whole_archive_flag_spec_F77=''
15252       link_all_deplibs_F77=yes
15253     if test "$GCC" = yes ; then
15254         output_verbose_link_cmd='echo'
15255         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15256       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15257       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15258       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}'
15259       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}'
15260     else
15261       case $cc_basename in
15262         xlc*)
15263          output_verbose_link_cmd='echo'
15264          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15265          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15266           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15267          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15268           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}'
15269           ;;
15270        *)
15271          ld_shlibs_F77=no
15272           ;;
15273       esac
15274     fi
15275       ;;
15276
15277     dgux*)
15278       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15279       hardcode_libdir_flag_spec_F77='-L$libdir'
15280       hardcode_shlibpath_var_F77=no
15281       ;;
15282
15283     freebsd1*)
15284       ld_shlibs_F77=no
15285       ;;
15286
15287     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15288     # support.  Future versions do this automatically, but an explicit c++rt0.o
15289     # does not break anything, and helps significantly (at the cost of a little
15290     # extra space).
15291     freebsd2.2*)
15292       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15293       hardcode_libdir_flag_spec_F77='-R$libdir'
15294       hardcode_direct_F77=yes
15295       hardcode_shlibpath_var_F77=no
15296       ;;
15297
15298     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15299     freebsd2*)
15300       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15301       hardcode_direct_F77=yes
15302       hardcode_minus_L_F77=yes
15303       hardcode_shlibpath_var_F77=no
15304       ;;
15305
15306     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15307     freebsd* | dragonfly*)
15308       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15309       hardcode_libdir_flag_spec_F77='-R$libdir'
15310       hardcode_direct_F77=yes
15311       hardcode_shlibpath_var_F77=no
15312       ;;
15313
15314     hpux9*)
15315       if test "$GCC" = yes; then
15316         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'
15317       else
15318         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'
15319       fi
15320       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15321       hardcode_libdir_separator_F77=:
15322       hardcode_direct_F77=yes
15323
15324       # hardcode_minus_L: Not really in the search PATH,
15325       # but as the default location of the library.
15326       hardcode_minus_L_F77=yes
15327       export_dynamic_flag_spec_F77='${wl}-E'
15328       ;;
15329
15330     hpux10*)
15331       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15332         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15333       else
15334         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15335       fi
15336       if test "$with_gnu_ld" = no; then
15337         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15338         hardcode_libdir_separator_F77=:
15339
15340         hardcode_direct_F77=yes
15341         export_dynamic_flag_spec_F77='${wl}-E'
15342
15343         # hardcode_minus_L: Not really in the search PATH,
15344         # but as the default location of the library.
15345         hardcode_minus_L_F77=yes
15346       fi
15347       ;;
15348
15349     hpux11*)
15350       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15351         case $host_cpu in
15352         hppa*64*)
15353           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15354           ;;
15355         ia64*)
15356           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15357           ;;
15358         *)
15359           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15360           ;;
15361         esac
15362       else
15363         case $host_cpu in
15364         hppa*64*)
15365           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15366           ;;
15367         ia64*)
15368           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15369           ;;
15370         *)
15371           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15372           ;;
15373         esac
15374       fi
15375       if test "$with_gnu_ld" = no; then
15376         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15377         hardcode_libdir_separator_F77=:
15378
15379         case $host_cpu in
15380         hppa*64*|ia64*)
15381           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15382           hardcode_direct_F77=no
15383           hardcode_shlibpath_var_F77=no
15384           ;;
15385         *)
15386           hardcode_direct_F77=yes
15387           export_dynamic_flag_spec_F77='${wl}-E'
15388
15389           # hardcode_minus_L: Not really in the search PATH,
15390           # but as the default location of the library.
15391           hardcode_minus_L_F77=yes
15392           ;;
15393         esac
15394       fi
15395       ;;
15396
15397     irix5* | irix6* | nonstopux*)
15398       if test "$GCC" = yes; then
15399         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'
15400       else
15401         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'
15402         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15403       fi
15404       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15405       hardcode_libdir_separator_F77=:
15406       link_all_deplibs_F77=yes
15407       ;;
15408
15409     netbsd* | netbsdelf*-gnu)
15410       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15411         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15412       else
15413         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15414       fi
15415       hardcode_libdir_flag_spec_F77='-R$libdir'
15416       hardcode_direct_F77=yes
15417       hardcode_shlibpath_var_F77=no
15418       ;;
15419
15420     newsos6)
15421       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15422       hardcode_direct_F77=yes
15423       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15424       hardcode_libdir_separator_F77=:
15425       hardcode_shlibpath_var_F77=no
15426       ;;
15427
15428     openbsd*)
15429       if test -f /usr/libexec/ld.so; then
15430         hardcode_direct_F77=yes
15431         hardcode_shlibpath_var_F77=no
15432         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15433           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15434           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15435           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15436           export_dynamic_flag_spec_F77='${wl}-E'
15437         else
15438           case $host_os in
15439            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15440              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15441              hardcode_libdir_flag_spec_F77='-R$libdir'
15442              ;;
15443            *)
15444              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15445              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15446              ;;
15447           esac
15448         fi
15449       else
15450         ld_shlibs_F77=no
15451       fi
15452       ;;
15453
15454     os2*)
15455       hardcode_libdir_flag_spec_F77='-L$libdir'
15456       hardcode_minus_L_F77=yes
15457       allow_undefined_flag_F77=unsupported
15458       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'
15459       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15460       ;;
15461
15462     osf3*)
15463       if test "$GCC" = yes; then
15464         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15465         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'
15466       else
15467         allow_undefined_flag_F77=' -expect_unresolved \*'
15468         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'
15469       fi
15470       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15471       hardcode_libdir_separator_F77=:
15472       ;;
15473
15474     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15475       if test "$GCC" = yes; then
15476         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15477         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'
15478         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15479       else
15480         allow_undefined_flag_F77=' -expect_unresolved \*'
15481         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'
15482         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~
15483         $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'
15484
15485         # Both c and cxx compiler support -rpath directly
15486         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15487       fi
15488       hardcode_libdir_separator_F77=:
15489       ;;
15490
15491     solaris*)
15492       no_undefined_flag_F77=' -z text'
15493       if test "$GCC" = yes; then
15494         wlarc='${wl}'
15495         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15497           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15498       else
15499         wlarc=''
15500         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15501         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15502         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15503       fi
15504       hardcode_libdir_flag_spec_F77='-R$libdir'
15505       hardcode_shlibpath_var_F77=no
15506       case $host_os in
15507       solaris2.[0-5] | solaris2.[0-5].*) ;;
15508       *)
15509         # The compiler driver will combine and reorder linker options,
15510         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15511         # but is careful enough not to reorder.
15512         # Supported since Solaris 2.6 (maybe 2.5.1?)
15513         if test "$GCC" = yes; then
15514           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15515         else
15516           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15517         fi
15518         ;;
15519       esac
15520       link_all_deplibs_F77=yes
15521       ;;
15522
15523     sunos4*)
15524       if test "x$host_vendor" = xsequent; then
15525         # Use $CC to link under sequent, because it throws in some extra .o
15526         # files that make .init and .fini sections work.
15527         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15528       else
15529         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15530       fi
15531       hardcode_libdir_flag_spec_F77='-L$libdir'
15532       hardcode_direct_F77=yes
15533       hardcode_minus_L_F77=yes
15534       hardcode_shlibpath_var_F77=no
15535       ;;
15536
15537     sysv4)
15538       case $host_vendor in
15539         sni)
15540           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541           hardcode_direct_F77=yes # is this really true???
15542         ;;
15543         siemens)
15544           ## LD is ld it makes a PLAMLIB
15545           ## CC just makes a GrossModule.
15546           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15547           reload_cmds_F77='$CC -r -o $output$reload_objs'
15548           hardcode_direct_F77=no
15549         ;;
15550         motorola)
15551           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15553         ;;
15554       esac
15555       runpath_var='LD_RUN_PATH'
15556       hardcode_shlibpath_var_F77=no
15557       ;;
15558
15559     sysv4.3*)
15560       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15561       hardcode_shlibpath_var_F77=no
15562       export_dynamic_flag_spec_F77='-Bexport'
15563       ;;
15564
15565     sysv4*MP*)
15566       if test -d /usr/nec; then
15567         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568         hardcode_shlibpath_var_F77=no
15569         runpath_var=LD_RUN_PATH
15570         hardcode_runpath_var=yes
15571         ld_shlibs_F77=yes
15572       fi
15573       ;;
15574
15575     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15576       no_undefined_flag_F77='${wl}-z,text'
15577       archive_cmds_need_lc_F77=no
15578       hardcode_shlibpath_var_F77=no
15579       runpath_var='LD_RUN_PATH'
15580
15581       if test "$GCC" = yes; then
15582         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15583         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15584       else
15585         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15586         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15587       fi
15588       ;;
15589
15590     sysv5* | sco3.2v5* | sco5v6*)
15591       # Note: We can NOT use -z defs as we might desire, because we do not
15592       # link with -lc, and that would cause any symbols used from libc to
15593       # always be unresolved, which means just about no library would
15594       # ever link correctly.  If we're not using GNU ld we use -z text
15595       # though, which does catch some bad symbols but isn't as heavy-handed
15596       # as -z defs.
15597       no_undefined_flag_F77='${wl}-z,text'
15598       allow_undefined_flag_F77='${wl}-z,nodefs'
15599       archive_cmds_need_lc_F77=no
15600       hardcode_shlibpath_var_F77=no
15601       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15602       hardcode_libdir_separator_F77=':'
15603       link_all_deplibs_F77=yes
15604       export_dynamic_flag_spec_F77='${wl}-Bexport'
15605       runpath_var='LD_RUN_PATH'
15606
15607       if test "$GCC" = yes; then
15608         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15609         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15610       else
15611         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15612         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15613       fi
15614       ;;
15615
15616     uts4*)
15617       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15618       hardcode_libdir_flag_spec_F77='-L$libdir'
15619       hardcode_shlibpath_var_F77=no
15620       ;;
15621
15622     *)
15623       ld_shlibs_F77=no
15624       ;;
15625     esac
15626   fi
15627
15628 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15629 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15630 test "$ld_shlibs_F77" = no && can_build_shared=no
15631
15632 #
15633 # Do we need to explicitly link libc?
15634 #
15635 case "x$archive_cmds_need_lc_F77" in
15636 x|xyes)
15637   # Assume -lc should be added
15638   archive_cmds_need_lc_F77=yes
15639
15640   if test "$enable_shared" = yes && test "$GCC" = yes; then
15641     case $archive_cmds_F77 in
15642     *'~'*)
15643       # FIXME: we may have to deal with multi-command sequences.
15644       ;;
15645     '$CC '*)
15646       # Test whether the compiler implicitly links with -lc since on some
15647       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15648       # to ld, don't add -lc before -lgcc.
15649       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15650 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15651       $rm conftest*
15652       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15653
15654       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655   (eval $ac_compile) 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); } 2>conftest.err; then
15659         soname=conftest
15660         lib=conftest
15661         libobjs=conftest.$ac_objext
15662         deplibs=
15663         wl=$lt_prog_compiler_wl_F77
15664         pic_flag=$lt_prog_compiler_pic_F77
15665         compiler_flags=-v
15666         linker_flags=-v
15667         verstring=
15668         output_objdir=.
15669         libname=conftest
15670         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15671         allow_undefined_flag_F77=
15672         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15673   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); }
15677         then
15678           archive_cmds_need_lc_F77=no
15679         else
15680           archive_cmds_need_lc_F77=yes
15681         fi
15682         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15683       else
15684         cat conftest.err 1>&5
15685       fi
15686       $rm conftest*
15687       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15688 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15689       ;;
15690     esac
15691   fi
15692   ;;
15693 esac
15694
15695 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15697 library_names_spec=
15698 libname_spec='lib$name'
15699 soname_spec=
15700 shrext_cmds=".so"
15701 postinstall_cmds=
15702 postuninstall_cmds=
15703 finish_cmds=
15704 finish_eval=
15705 shlibpath_var=
15706 shlibpath_overrides_runpath=unknown
15707 version_type=none
15708 dynamic_linker="$host_os ld.so"
15709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15710
15711 need_lib_prefix=unknown
15712 hardcode_into_libs=no
15713
15714 # when you set need_version to no, make sure it does not cause -set_version
15715 # flags to be left without arguments
15716 need_version=unknown
15717
15718 case $host_os in
15719 aix3*)
15720   version_type=linux
15721   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15722   shlibpath_var=LIBPATH
15723
15724   # AIX 3 has no versioning support, so we append a major version to the name.
15725   soname_spec='${libname}${release}${shared_ext}$major'
15726   ;;
15727
15728 aix4* | aix5*)
15729   version_type=linux
15730   need_lib_prefix=no
15731   need_version=no
15732   hardcode_into_libs=yes
15733   if test "$host_cpu" = ia64; then
15734     # AIX 5 supports IA64
15735     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15736     shlibpath_var=LD_LIBRARY_PATH
15737   else
15738     # With GCC up to 2.95.x, collect2 would create an import file
15739     # for dependence libraries.  The import file would start with
15740     # the line `#! .'.  This would cause the generated library to
15741     # depend on `.', always an invalid library.  This was fixed in
15742     # development snapshots of GCC prior to 3.0.
15743     case $host_os in
15744       aix4 | aix4.[01] | aix4.[01].*)
15745       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15746            echo ' yes '
15747            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15748         :
15749       else
15750         can_build_shared=no
15751       fi
15752       ;;
15753     esac
15754     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15755     # soname into executable. Probably we can add versioning support to
15756     # collect2, so additional links can be useful in future.
15757     if test "$aix_use_runtimelinking" = yes; then
15758       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15759       # instead of lib<name>.a to let people know that these are not
15760       # typical AIX shared libraries.
15761       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762     else
15763       # We preserve .a as extension for shared libraries through AIX4.2
15764       # and later when we are not doing run time linking.
15765       library_names_spec='${libname}${release}.a $libname.a'
15766       soname_spec='${libname}${release}${shared_ext}$major'
15767     fi
15768     shlibpath_var=LIBPATH
15769   fi
15770   ;;
15771
15772 amigaos*)
15773   library_names_spec='$libname.ixlibrary $libname.a'
15774   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15775   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'
15776   ;;
15777
15778 beos*)
15779   library_names_spec='${libname}${shared_ext}'
15780   dynamic_linker="$host_os ld.so"
15781   shlibpath_var=LIBRARY_PATH
15782   ;;
15783
15784 bsdi[45]*)
15785   version_type=linux
15786   need_version=no
15787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788   soname_spec='${libname}${release}${shared_ext}$major'
15789   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15790   shlibpath_var=LD_LIBRARY_PATH
15791   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15792   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15793   # the default ld.so.conf also contains /usr/contrib/lib and
15794   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15795   # libtool to hard-code these into programs
15796   ;;
15797
15798 cygwin* | mingw* | pw32*)
15799   version_type=windows
15800   shrext_cmds=".dll"
15801   need_version=no
15802   need_lib_prefix=no
15803
15804   case $GCC,$host_os in
15805   yes,cygwin* | yes,mingw* | yes,pw32*)
15806     library_names_spec='$libname.dll.a'
15807     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15808     postinstall_cmds='base_file=`basename \${file}`~
15809       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15810       dldir=$destdir/`dirname \$dlpath`~
15811       test -d \$dldir || mkdir -p \$dldir~
15812       $install_prog $dir/$dlname \$dldir/$dlname~
15813       chmod a+x \$dldir/$dlname'
15814     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15815       dlpath=$dir/\$dldll~
15816        $rm \$dlpath'
15817     shlibpath_overrides_runpath=yes
15818
15819     case $host_os in
15820     cygwin*)
15821       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15822       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15823       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15824       ;;
15825     mingw*)
15826       # MinGW DLLs use traditional 'lib' prefix
15827       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15828       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15829       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15830         # It is most probably a Windows format PATH printed by
15831         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15832         # path with ; separators, and with drive letters. We can handle the
15833         # drive letters (cygwin fileutils understands them), so leave them,
15834         # especially as we might pass files found there to a mingw objdump,
15835         # which wouldn't understand a cygwinified path. Ahh.
15836         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15837       else
15838         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15839       fi
15840       ;;
15841     pw32*)
15842       # pw32 DLLs use 'pw' prefix rather than 'lib'
15843       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15844       ;;
15845     esac
15846     ;;
15847
15848   *)
15849     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15850     ;;
15851   esac
15852   dynamic_linker='Win32 ld.exe'
15853   # FIXME: first we should search . and the directory the executable is in
15854   shlibpath_var=PATH
15855   ;;
15856
15857 darwin* | rhapsody*)
15858   dynamic_linker="$host_os dyld"
15859   version_type=darwin
15860   need_lib_prefix=no
15861   need_version=no
15862   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15863   soname_spec='${libname}${release}${major}$shared_ext'
15864   shlibpath_overrides_runpath=yes
15865   shlibpath_var=DYLD_LIBRARY_PATH
15866   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15867
15868   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15869   ;;
15870
15871 dgux*)
15872   version_type=linux
15873   need_lib_prefix=no
15874   need_version=no
15875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15876   soname_spec='${libname}${release}${shared_ext}$major'
15877   shlibpath_var=LD_LIBRARY_PATH
15878   ;;
15879
15880 freebsd1*)
15881   dynamic_linker=no
15882   ;;
15883
15884 freebsd* | dragonfly*)
15885   # DragonFly does not have aout.  When/if they implement a new
15886   # versioning mechanism, adjust this.
15887   if test -x /usr/bin/objformat; then
15888     objformat=`/usr/bin/objformat`
15889   else
15890     case $host_os in
15891     freebsd[123]*) objformat=aout ;;
15892     *) objformat=elf ;;
15893     esac
15894   fi
15895   version_type=freebsd-$objformat
15896   case $version_type in
15897     freebsd-elf*)
15898       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15899       need_version=no
15900       need_lib_prefix=no
15901       ;;
15902     freebsd-*)
15903       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15904       need_version=yes
15905       ;;
15906   esac
15907   shlibpath_var=LD_LIBRARY_PATH
15908   case $host_os in
15909   freebsd2*)
15910     shlibpath_overrides_runpath=yes
15911     ;;
15912   freebsd3.[01]* | freebsdelf3.[01]*)
15913     shlibpath_overrides_runpath=yes
15914     hardcode_into_libs=yes
15915     ;;
15916   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15917   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15918     shlibpath_overrides_runpath=no
15919     hardcode_into_libs=yes
15920     ;;
15921   *) # from 4.6 on, and DragonFly
15922     shlibpath_overrides_runpath=yes
15923     hardcode_into_libs=yes
15924     ;;
15925   esac
15926   ;;
15927
15928 gnu*)
15929   version_type=linux
15930   need_lib_prefix=no
15931   need_version=no
15932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15933   soname_spec='${libname}${release}${shared_ext}$major'
15934   shlibpath_var=LD_LIBRARY_PATH
15935   hardcode_into_libs=yes
15936   ;;
15937
15938 hpux9* | hpux10* | hpux11*)
15939   # Give a soname corresponding to the major version so that dld.sl refuses to
15940   # link against other versions.
15941   version_type=sunos
15942   need_lib_prefix=no
15943   need_version=no
15944   case $host_cpu in
15945   ia64*)
15946     shrext_cmds='.so'
15947     hardcode_into_libs=yes
15948     dynamic_linker="$host_os dld.so"
15949     shlibpath_var=LD_LIBRARY_PATH
15950     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952     soname_spec='${libname}${release}${shared_ext}$major'
15953     if test "X$HPUX_IA64_MODE" = X32; then
15954       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15955     else
15956       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15957     fi
15958     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15959     ;;
15960    hppa*64*)
15961      shrext_cmds='.sl'
15962      hardcode_into_libs=yes
15963      dynamic_linker="$host_os dld.sl"
15964      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15965      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15966      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15967      soname_spec='${libname}${release}${shared_ext}$major'
15968      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15969      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15970      ;;
15971    *)
15972     shrext_cmds='.sl'
15973     dynamic_linker="$host_os dld.sl"
15974     shlibpath_var=SHLIB_PATH
15975     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15977     soname_spec='${libname}${release}${shared_ext}$major'
15978     ;;
15979   esac
15980   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15981   postinstall_cmds='chmod 555 $lib'
15982   ;;
15983
15984 interix[3-9]*)
15985   version_type=linux
15986   need_lib_prefix=no
15987   need_version=no
15988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15989   soname_spec='${libname}${release}${shared_ext}$major'
15990   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15991   shlibpath_var=LD_LIBRARY_PATH
15992   shlibpath_overrides_runpath=no
15993   hardcode_into_libs=yes
15994   ;;
15995
15996 irix5* | irix6* | nonstopux*)
15997   case $host_os in
15998     nonstopux*) version_type=nonstopux ;;
15999     *)
16000         if test "$lt_cv_prog_gnu_ld" = yes; then
16001                 version_type=linux
16002         else
16003                 version_type=irix
16004         fi ;;
16005   esac
16006   need_lib_prefix=no
16007   need_version=no
16008   soname_spec='${libname}${release}${shared_ext}$major'
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16010   case $host_os in
16011   irix5* | nonstopux*)
16012     libsuff= shlibsuff=
16013     ;;
16014   *)
16015     case $LD in # libtool.m4 will add one of these switches to LD
16016     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16017       libsuff= shlibsuff= libmagic=32-bit;;
16018     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16019       libsuff=32 shlibsuff=N32 libmagic=N32;;
16020     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16021       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16022     *) libsuff= shlibsuff= libmagic=never-match;;
16023     esac
16024     ;;
16025   esac
16026   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16027   shlibpath_overrides_runpath=no
16028   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16029   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16030   hardcode_into_libs=yes
16031   ;;
16032
16033 # No shared lib support for Linux oldld, aout, or coff.
16034 linux*oldld* | linux*aout* | linux*coff*)
16035   dynamic_linker=no
16036   ;;
16037
16038 # This must be Linux ELF.
16039 linux* | k*bsd*-gnu)
16040   version_type=linux
16041   need_lib_prefix=no
16042   need_version=no
16043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044   soname_spec='${libname}${release}${shared_ext}$major'
16045   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16046   shlibpath_var=LD_LIBRARY_PATH
16047   shlibpath_overrides_runpath=no
16048   # This implies no fast_install, which is unacceptable.
16049   # Some rework will be needed to allow for fast_install
16050   # before this can be enabled.
16051   hardcode_into_libs=yes
16052
16053   # Append ld.so.conf contents to the search path
16054   if test -f /etc/ld.so.conf; then
16055     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16056     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16057   fi
16058
16059   # We used to test for /lib/ld.so.1 and disable shared libraries on
16060   # powerpc, because MkLinux only supported shared libraries with the
16061   # GNU dynamic linker.  Since this was broken with cross compilers,
16062   # most powerpc-linux boxes support dynamic linking these days and
16063   # people can always --disable-shared, the test was removed, and we
16064   # assume the GNU/Linux dynamic linker is in use.
16065   dynamic_linker='GNU/Linux ld.so'
16066   ;;
16067
16068 netbsdelf*-gnu)
16069   version_type=linux
16070   need_lib_prefix=no
16071   need_version=no
16072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16073   soname_spec='${libname}${release}${shared_ext}$major'
16074   shlibpath_var=LD_LIBRARY_PATH
16075   shlibpath_overrides_runpath=no
16076   hardcode_into_libs=yes
16077   dynamic_linker='NetBSD ld.elf_so'
16078   ;;
16079
16080 netbsd*)
16081   version_type=sunos
16082   need_lib_prefix=no
16083   need_version=no
16084   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16086     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16087     dynamic_linker='NetBSD (a.out) ld.so'
16088   else
16089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16090     soname_spec='${libname}${release}${shared_ext}$major'
16091     dynamic_linker='NetBSD ld.elf_so'
16092   fi
16093   shlibpath_var=LD_LIBRARY_PATH
16094   shlibpath_overrides_runpath=yes
16095   hardcode_into_libs=yes
16096   ;;
16097
16098 newsos6)
16099   version_type=linux
16100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16101   shlibpath_var=LD_LIBRARY_PATH
16102   shlibpath_overrides_runpath=yes
16103   ;;
16104
16105 nto-qnx*)
16106   version_type=linux
16107   need_lib_prefix=no
16108   need_version=no
16109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110   soname_spec='${libname}${release}${shared_ext}$major'
16111   shlibpath_var=LD_LIBRARY_PATH
16112   shlibpath_overrides_runpath=yes
16113   ;;
16114
16115 openbsd*)
16116   version_type=sunos
16117   sys_lib_dlsearch_path_spec="/usr/lib"
16118   need_lib_prefix=no
16119   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16120   case $host_os in
16121     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16122     *)                         need_version=no  ;;
16123   esac
16124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16125   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16126   shlibpath_var=LD_LIBRARY_PATH
16127   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16128     case $host_os in
16129       openbsd2.[89] | openbsd2.[89].*)
16130         shlibpath_overrides_runpath=no
16131         ;;
16132       *)
16133         shlibpath_overrides_runpath=yes
16134         ;;
16135       esac
16136   else
16137     shlibpath_overrides_runpath=yes
16138   fi
16139   ;;
16140
16141 os2*)
16142   libname_spec='$name'
16143   shrext_cmds=".dll"
16144   need_lib_prefix=no
16145   library_names_spec='$libname${shared_ext} $libname.a'
16146   dynamic_linker='OS/2 ld.exe'
16147   shlibpath_var=LIBPATH
16148   ;;
16149
16150 osf3* | osf4* | osf5*)
16151   version_type=osf
16152   need_lib_prefix=no
16153   need_version=no
16154   soname_spec='${libname}${release}${shared_ext}$major'
16155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16158   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16159   ;;
16160
16161 rdos*)
16162   dynamic_linker=no
16163   ;;
16164
16165 solaris*)
16166   version_type=linux
16167   need_lib_prefix=no
16168   need_version=no
16169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170   soname_spec='${libname}${release}${shared_ext}$major'
16171   shlibpath_var=LD_LIBRARY_PATH
16172   shlibpath_overrides_runpath=yes
16173   hardcode_into_libs=yes
16174   # ldd complains unless libraries are executable
16175   postinstall_cmds='chmod +x $lib'
16176   ;;
16177
16178 sunos4*)
16179   version_type=sunos
16180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16181   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16182   shlibpath_var=LD_LIBRARY_PATH
16183   shlibpath_overrides_runpath=yes
16184   if test "$with_gnu_ld" = yes; then
16185     need_lib_prefix=no
16186   fi
16187   need_version=yes
16188   ;;
16189
16190 sysv4 | sysv4.3*)
16191   version_type=linux
16192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193   soname_spec='${libname}${release}${shared_ext}$major'
16194   shlibpath_var=LD_LIBRARY_PATH
16195   case $host_vendor in
16196     sni)
16197       shlibpath_overrides_runpath=no
16198       need_lib_prefix=no
16199       export_dynamic_flag_spec='${wl}-Blargedynsym'
16200       runpath_var=LD_RUN_PATH
16201       ;;
16202     siemens)
16203       need_lib_prefix=no
16204       ;;
16205     motorola)
16206       need_lib_prefix=no
16207       need_version=no
16208       shlibpath_overrides_runpath=no
16209       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16210       ;;
16211   esac
16212   ;;
16213
16214 sysv4*MP*)
16215   if test -d /usr/nec ;then
16216     version_type=linux
16217     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16218     soname_spec='$libname${shared_ext}.$major'
16219     shlibpath_var=LD_LIBRARY_PATH
16220   fi
16221   ;;
16222
16223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16224   version_type=freebsd-elf
16225   need_lib_prefix=no
16226   need_version=no
16227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228   soname_spec='${libname}${release}${shared_ext}$major'
16229   shlibpath_var=LD_LIBRARY_PATH
16230   hardcode_into_libs=yes
16231   if test "$with_gnu_ld" = yes; then
16232     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16233     shlibpath_overrides_runpath=no
16234   else
16235     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16236     shlibpath_overrides_runpath=yes
16237     case $host_os in
16238       sco3.2v5*)
16239         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16240         ;;
16241     esac
16242   fi
16243   sys_lib_dlsearch_path_spec='/usr/lib'
16244   ;;
16245
16246 uts4*)
16247   version_type=linux
16248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   shlibpath_var=LD_LIBRARY_PATH
16251   ;;
16252
16253 *)
16254   dynamic_linker=no
16255   ;;
16256 esac
16257 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16258 echo "${ECHO_T}$dynamic_linker" >&6; }
16259 test "$dynamic_linker" = no && can_build_shared=no
16260
16261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262 if test "$GCC" = yes; then
16263   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16264 fi
16265
16266 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16267 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16268 hardcode_action_F77=
16269 if test -n "$hardcode_libdir_flag_spec_F77" || \
16270    test -n "$runpath_var_F77" || \
16271    test "X$hardcode_automatic_F77" = "Xyes" ; then
16272
16273   # We can hardcode non-existant directories.
16274   if test "$hardcode_direct_F77" != no &&
16275      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16276      # have to relink, otherwise we might link with an installed library
16277      # when we should be linking with a yet-to-be-installed one
16278      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16279      test "$hardcode_minus_L_F77" != no; then
16280     # Linking always hardcodes the temporary library directory.
16281     hardcode_action_F77=relink
16282   else
16283     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16284     hardcode_action_F77=immediate
16285   fi
16286 else
16287   # We cannot hardcode anything, or else we can only hardcode existing
16288   # directories.
16289   hardcode_action_F77=unsupported
16290 fi
16291 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16292 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16293
16294 if test "$hardcode_action_F77" = relink; then
16295   # Fast installation is not supported
16296   enable_fast_install=no
16297 elif test "$shlibpath_overrides_runpath" = yes ||
16298      test "$enable_shared" = no; then
16299   # Fast installation is not necessary
16300   enable_fast_install=needless
16301 fi
16302
16303
16304 # The else clause should only fire when bootstrapping the
16305 # libtool distribution, otherwise you forgot to ship ltmain.sh
16306 # with your package, and you will get complaints that there are
16307 # no rules to generate ltmain.sh.
16308 if test -f "$ltmain"; then
16309   # See if we are running on zsh, and set the options which allow our commands through
16310   # without removal of \ escapes.
16311   if test -n "${ZSH_VERSION+set}" ; then
16312     setopt NO_GLOB_SUBST
16313   fi
16314   # Now quote all the things that may contain metacharacters while being
16315   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16316   # variables and quote the copies for generation of the libtool script.
16317   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16318     SED SHELL STRIP \
16319     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16320     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16321     deplibs_check_method reload_flag reload_cmds need_locks \
16322     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16323     lt_cv_sys_global_symbol_to_c_name_address \
16324     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16325     old_postinstall_cmds old_postuninstall_cmds \
16326     compiler_F77 \
16327     CC_F77 \
16328     LD_F77 \
16329     lt_prog_compiler_wl_F77 \
16330     lt_prog_compiler_pic_F77 \
16331     lt_prog_compiler_static_F77 \
16332     lt_prog_compiler_no_builtin_flag_F77 \
16333     export_dynamic_flag_spec_F77 \
16334     thread_safe_flag_spec_F77 \
16335     whole_archive_flag_spec_F77 \
16336     enable_shared_with_static_runtimes_F77 \
16337     old_archive_cmds_F77 \
16338     old_archive_from_new_cmds_F77 \
16339     predep_objects_F77 \
16340     postdep_objects_F77 \
16341     predeps_F77 \
16342     postdeps_F77 \
16343     compiler_lib_search_path_F77 \
16344     archive_cmds_F77 \
16345     archive_expsym_cmds_F77 \
16346     postinstall_cmds_F77 \
16347     postuninstall_cmds_F77 \
16348     old_archive_from_expsyms_cmds_F77 \
16349     allow_undefined_flag_F77 \
16350     no_undefined_flag_F77 \
16351     export_symbols_cmds_F77 \
16352     hardcode_libdir_flag_spec_F77 \
16353     hardcode_libdir_flag_spec_ld_F77 \
16354     hardcode_libdir_separator_F77 \
16355     hardcode_automatic_F77 \
16356     module_cmds_F77 \
16357     module_expsym_cmds_F77 \
16358     lt_cv_prog_compiler_c_o_F77 \
16359     fix_srcfile_path_F77 \
16360     exclude_expsyms_F77 \
16361     include_expsyms_F77; do
16362
16363     case $var in
16364     old_archive_cmds_F77 | \
16365     old_archive_from_new_cmds_F77 | \
16366     archive_cmds_F77 | \
16367     archive_expsym_cmds_F77 | \
16368     module_cmds_F77 | \
16369     module_expsym_cmds_F77 | \
16370     old_archive_from_expsyms_cmds_F77 | \
16371     export_symbols_cmds_F77 | \
16372     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16373     postinstall_cmds | postuninstall_cmds | \
16374     old_postinstall_cmds | old_postuninstall_cmds | \
16375     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16376       # Double-quote double-evaled strings.
16377       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16378       ;;
16379     *)
16380       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16381       ;;
16382     esac
16383   done
16384
16385   case $lt_echo in
16386   *'\$0 --fallback-echo"')
16387     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16388     ;;
16389   esac
16390
16391 cfgfile="$ofile"
16392
16393   cat <<__EOF__ >> "$cfgfile"
16394 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16395
16396 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16397
16398 # Shell to use when invoking shell scripts.
16399 SHELL=$lt_SHELL
16400
16401 # Whether or not to build shared libraries.
16402 build_libtool_libs=$enable_shared
16403
16404 # Whether or not to build static libraries.
16405 build_old_libs=$enable_static
16406
16407 # Whether or not to add -lc for building shared libraries.
16408 build_libtool_need_lc=$archive_cmds_need_lc_F77
16409
16410 # Whether or not to disallow shared libs when runtime libs are static
16411 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16412
16413 # Whether or not to optimize for fast installation.
16414 fast_install=$enable_fast_install
16415
16416 # The host system.
16417 host_alias=$host_alias
16418 host=$host
16419 host_os=$host_os
16420
16421 # The build system.
16422 build_alias=$build_alias
16423 build=$build
16424 build_os=$build_os
16425
16426 # An echo program that does not interpret backslashes.
16427 echo=$lt_echo
16428
16429 # The archiver.
16430 AR=$lt_AR
16431 AR_FLAGS=$lt_AR_FLAGS
16432
16433 # A C compiler.
16434 LTCC=$lt_LTCC
16435
16436 # LTCC compiler flags.
16437 LTCFLAGS=$lt_LTCFLAGS
16438
16439 # A language-specific compiler.
16440 CC=$lt_compiler_F77
16441
16442 # Is the compiler the GNU C compiler?
16443 with_gcc=$GCC_F77
16444
16445 # An ERE matcher.
16446 EGREP=$lt_EGREP
16447
16448 # The linker used to build libraries.
16449 LD=$lt_LD_F77
16450
16451 # Whether we need hard or soft links.
16452 LN_S=$lt_LN_S
16453
16454 # A BSD-compatible nm program.
16455 NM=$lt_NM
16456
16457 # A symbol stripping program
16458 STRIP=$lt_STRIP
16459
16460 # Used to examine libraries when file_magic_cmd begins "file"
16461 MAGIC_CMD=$MAGIC_CMD
16462
16463 # Used on cygwin: DLL creation program.
16464 DLLTOOL="$DLLTOOL"
16465
16466 # Used on cygwin: object dumper.
16467 OBJDUMP="$OBJDUMP"
16468
16469 # Used on cygwin: assembler.
16470 AS="$AS"
16471
16472 # The name of the directory that contains temporary libtool files.
16473 objdir=$objdir
16474
16475 # How to create reloadable object files.
16476 reload_flag=$lt_reload_flag
16477 reload_cmds=$lt_reload_cmds
16478
16479 # How to pass a linker flag through the compiler.
16480 wl=$lt_lt_prog_compiler_wl_F77
16481
16482 # Object file suffix (normally "o").
16483 objext="$ac_objext"
16484
16485 # Old archive suffix (normally "a").
16486 libext="$libext"
16487
16488 # Shared library suffix (normally ".so").
16489 shrext_cmds='$shrext_cmds'
16490
16491 # Executable file suffix (normally "").
16492 exeext="$exeext"
16493
16494 # Additional compiler flags for building library objects.
16495 pic_flag=$lt_lt_prog_compiler_pic_F77
16496 pic_mode=$pic_mode
16497
16498 # What is the maximum length of a command?
16499 max_cmd_len=$lt_cv_sys_max_cmd_len
16500
16501 # Does compiler simultaneously support -c and -o options?
16502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16503
16504 # Must we lock files when doing compilation?
16505 need_locks=$lt_need_locks
16506
16507 # Do we need the lib prefix for modules?
16508 need_lib_prefix=$need_lib_prefix
16509
16510 # Do we need a version for libraries?
16511 need_version=$need_version
16512
16513 # Whether dlopen is supported.
16514 dlopen_support=$enable_dlopen
16515
16516 # Whether dlopen of programs is supported.
16517 dlopen_self=$enable_dlopen_self
16518
16519 # Whether dlopen of statically linked programs is supported.
16520 dlopen_self_static=$enable_dlopen_self_static
16521
16522 # Compiler flag to prevent dynamic linking.
16523 link_static_flag=$lt_lt_prog_compiler_static_F77
16524
16525 # Compiler flag to turn off builtin functions.
16526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16527
16528 # Compiler flag to allow reflexive dlopens.
16529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16530
16531 # Compiler flag to generate shared objects directly from archives.
16532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16533
16534 # Compiler flag to generate thread-safe objects.
16535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16536
16537 # Library versioning type.
16538 version_type=$version_type
16539
16540 # Format of library name prefix.
16541 libname_spec=$lt_libname_spec
16542
16543 # List of archive names.  First name is the real one, the rest are links.
16544 # The last name is the one that the linker finds with -lNAME.
16545 library_names_spec=$lt_library_names_spec
16546
16547 # The coded name of the library, if different from the real name.
16548 soname_spec=$lt_soname_spec
16549
16550 # Commands used to build and install an old-style archive.
16551 RANLIB=$lt_RANLIB
16552 old_archive_cmds=$lt_old_archive_cmds_F77
16553 old_postinstall_cmds=$lt_old_postinstall_cmds
16554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16555
16556 # Create an old-style archive from a shared archive.
16557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16558
16559 # Create a temporary old-style archive to link instead of a shared archive.
16560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16561
16562 # Commands used to build and install a shared archive.
16563 archive_cmds=$lt_archive_cmds_F77
16564 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16565 postinstall_cmds=$lt_postinstall_cmds
16566 postuninstall_cmds=$lt_postuninstall_cmds
16567
16568 # Commands used to build a loadable module (assumed same as above if empty)
16569 module_cmds=$lt_module_cmds_F77
16570 module_expsym_cmds=$lt_module_expsym_cmds_F77
16571
16572 # Commands to strip libraries.
16573 old_striplib=$lt_old_striplib
16574 striplib=$lt_striplib
16575
16576 # Dependencies to place before the objects being linked to create a
16577 # shared library.
16578 predep_objects=$lt_predep_objects_F77
16579
16580 # Dependencies to place after the objects being linked to create a
16581 # shared library.
16582 postdep_objects=$lt_postdep_objects_F77
16583
16584 # Dependencies to place before the objects being linked to create a
16585 # shared library.
16586 predeps=$lt_predeps_F77
16587
16588 # Dependencies to place after the objects being linked to create a
16589 # shared library.
16590 postdeps=$lt_postdeps_F77
16591
16592 # The library search path used internally by the compiler when linking
16593 # a shared library.
16594 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16595
16596 # Method to check whether dependent libraries are shared objects.
16597 deplibs_check_method=$lt_deplibs_check_method
16598
16599 # Command to use when deplibs_check_method == file_magic.
16600 file_magic_cmd=$lt_file_magic_cmd
16601
16602 # Flag that allows shared libraries with undefined symbols to be built.
16603 allow_undefined_flag=$lt_allow_undefined_flag_F77
16604
16605 # Flag that forces no undefined symbols.
16606 no_undefined_flag=$lt_no_undefined_flag_F77
16607
16608 # Commands used to finish a libtool library installation in a directory.
16609 finish_cmds=$lt_finish_cmds
16610
16611 # Same as above, but a single script fragment to be evaled but not shown.
16612 finish_eval=$lt_finish_eval
16613
16614 # Take the output of nm and produce a listing of raw symbols and C names.
16615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16616
16617 # Transform the output of nm in a proper C declaration
16618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16619
16620 # Transform the output of nm in a C name address pair
16621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16622
16623 # This is the shared library runtime path variable.
16624 runpath_var=$runpath_var
16625
16626 # This is the shared library path variable.
16627 shlibpath_var=$shlibpath_var
16628
16629 # Is shlibpath searched before the hard-coded library search path?
16630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16631
16632 # How to hardcode a shared library path into an executable.
16633 hardcode_action=$hardcode_action_F77
16634
16635 # Whether we should hardcode library paths into libraries.
16636 hardcode_into_libs=$hardcode_into_libs
16637
16638 # Flag to hardcode \$libdir into a binary during linking.
16639 # This must work even if \$libdir does not exist.
16640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16641
16642 # If ld is used when linking, flag to hardcode \$libdir into
16643 # a binary during linking. This must work even if \$libdir does
16644 # not exist.
16645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16646
16647 # Whether we need a single -rpath flag with a separated argument.
16648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16649
16650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16651 # resulting binary.
16652 hardcode_direct=$hardcode_direct_F77
16653
16654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16655 # resulting binary.
16656 hardcode_minus_L=$hardcode_minus_L_F77
16657
16658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16659 # the resulting binary.
16660 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16661
16662 # Set to yes if building a shared library automatically hardcodes DIR into the library
16663 # and all subsequent libraries and executables linked against it.
16664 hardcode_automatic=$hardcode_automatic_F77
16665
16666 # Variables whose values should be saved in libtool wrapper scripts and
16667 # restored at relink time.
16668 variables_saved_for_relink="$variables_saved_for_relink"
16669
16670 # Whether libtool must link a program against all its dependency libraries.
16671 link_all_deplibs=$link_all_deplibs_F77
16672
16673 # Compile-time system search path for libraries
16674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16675
16676 # Run-time system search path for libraries
16677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16678
16679 # Fix the shell variable \$srcfile for the compiler.
16680 fix_srcfile_path=$lt_fix_srcfile_path
16681
16682 # Set to yes if exported symbols are required.
16683 always_export_symbols=$always_export_symbols_F77
16684
16685 # The commands to list exported symbols.
16686 export_symbols_cmds=$lt_export_symbols_cmds_F77
16687
16688 # The commands to extract the exported symbol list from a shared archive.
16689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16690
16691 # Symbols that should not be listed in the preloaded symbols.
16692 exclude_expsyms=$lt_exclude_expsyms_F77
16693
16694 # Symbols that must always be exported.
16695 include_expsyms=$lt_include_expsyms_F77
16696
16697 # ### END LIBTOOL TAG CONFIG: $tagname
16698
16699 __EOF__
16700
16701
16702 else
16703   # If there is no Makefile yet, we rely on a make rule to execute
16704   # `config.status --recheck' to rerun these tests and create the
16705   # libtool script then.
16706   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16707   if test -f "$ltmain_in"; then
16708     test -f Makefile && make "$ltmain"
16709   fi
16710 fi
16711
16712
16713 ac_ext=c
16714 ac_cpp='$CPP $CPPFLAGS'
16715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16718
16719 CC="$lt_save_CC"
16720
16721         else
16722           tagname=""
16723         fi
16724         ;;
16725
16726       GCJ)
16727         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16728
16729
16730 # Source file extension for Java test sources.
16731 ac_ext=java
16732
16733 # Object file extension for compiled Java test sources.
16734 objext=o
16735 objext_GCJ=$objext
16736
16737 # Code to be used in simple compile tests
16738 lt_simple_compile_test_code="class foo {}"
16739
16740 # Code to be used in simple link tests
16741 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16742
16743 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16744
16745 # If no C compiler was specified, use CC.
16746 LTCC=${LTCC-"$CC"}
16747
16748 # If no C compiler flags were specified, use CFLAGS.
16749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16750
16751 # Allow CC to be a program name with arguments.
16752 compiler=$CC
16753
16754
16755 # save warnings/boilerplate of simple test code
16756 ac_outfile=conftest.$ac_objext
16757 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16758 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16759 _lt_compiler_boilerplate=`cat conftest.err`
16760 $rm conftest*
16761
16762 ac_outfile=conftest.$ac_objext
16763 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16764 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16765 _lt_linker_boilerplate=`cat conftest.err`
16766 $rm conftest*
16767
16768
16769 # Allow CC to be a program name with arguments.
16770 lt_save_CC="$CC"
16771 CC=${GCJ-"gcj"}
16772 compiler=$CC
16773 compiler_GCJ=$CC
16774 for cc_temp in $compiler""; do
16775   case $cc_temp in
16776     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16777     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16778     \-*) ;;
16779     *) break;;
16780   esac
16781 done
16782 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16783
16784
16785 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16786 archive_cmds_need_lc_GCJ=no
16787
16788 old_archive_cmds_GCJ=$old_archive_cmds
16789
16790
16791 lt_prog_compiler_no_builtin_flag_GCJ=
16792
16793 if test "$GCC" = yes; then
16794   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16795
16796
16797 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16798 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16799 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16800   echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802   lt_cv_prog_compiler_rtti_exceptions=no
16803   ac_outfile=conftest.$ac_objext
16804    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16805    lt_compiler_flag="-fno-rtti -fno-exceptions"
16806    # Insert the option either (1) after the last *FLAGS variable, or
16807    # (2) before a word containing "conftest.", or (3) at the end.
16808    # Note that $ac_compile itself does not contain backslashes and begins
16809    # with a dollar sign (not a hyphen), so the echo should work correctly.
16810    # The option is referenced via a variable to avoid confusing sed.
16811    lt_compile=`echo "$ac_compile" | $SED \
16812    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16813    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16814    -e 's:$: $lt_compiler_flag:'`
16815    (eval echo "\"\$as_me:16815: $lt_compile\"" >&5)
16816    (eval "$lt_compile" 2>conftest.err)
16817    ac_status=$?
16818    cat conftest.err >&5
16819    echo "$as_me:16819: \$? = $ac_status" >&5
16820    if (exit $ac_status) && test -s "$ac_outfile"; then
16821      # The compiler can only warn and ignore the option if not recognized
16822      # So say no if there are warnings other than the usual output.
16823      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16824      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16825      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16826        lt_cv_prog_compiler_rtti_exceptions=yes
16827      fi
16828    fi
16829    $rm conftest*
16830
16831 fi
16832 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16833 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16834
16835 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16836     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16837 else
16838     :
16839 fi
16840
16841 fi
16842
16843 lt_prog_compiler_wl_GCJ=
16844 lt_prog_compiler_pic_GCJ=
16845 lt_prog_compiler_static_GCJ=
16846
16847 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16848 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16849
16850   if test "$GCC" = yes; then
16851     lt_prog_compiler_wl_GCJ='-Wl,'
16852     lt_prog_compiler_static_GCJ='-static'
16853
16854     case $host_os in
16855       aix*)
16856       # All AIX code is PIC.
16857       if test "$host_cpu" = ia64; then
16858         # AIX 5 now supports IA64 processor
16859         lt_prog_compiler_static_GCJ='-Bstatic'
16860       fi
16861       ;;
16862
16863     amigaos*)
16864       # FIXME: we need at least 68020 code to build shared libraries, but
16865       # adding the `-m68020' flag to GCC prevents building anything better,
16866       # like `-m68040'.
16867       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16868       ;;
16869
16870     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16871       # PIC is the default for these OSes.
16872       ;;
16873
16874     mingw* | cygwin* | pw32* | os2*)
16875       # This hack is so that the source file can tell whether it is being
16876       # built for inclusion in a dll (and should export symbols for example).
16877       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16878       # (--disable-auto-import) libraries
16879       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16880       ;;
16881
16882     darwin* | rhapsody*)
16883       # PIC is the default on this platform
16884       # Common symbols not allowed in MH_DYLIB files
16885       lt_prog_compiler_pic_GCJ='-fno-common'
16886       ;;
16887
16888     interix[3-9]*)
16889       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16890       # Instead, we relocate shared libraries at runtime.
16891       ;;
16892
16893     msdosdjgpp*)
16894       # Just because we use GCC doesn't mean we suddenly get shared libraries
16895       # on systems that don't support them.
16896       lt_prog_compiler_can_build_shared_GCJ=no
16897       enable_shared=no
16898       ;;
16899
16900     sysv4*MP*)
16901       if test -d /usr/nec; then
16902         lt_prog_compiler_pic_GCJ=-Kconform_pic
16903       fi
16904       ;;
16905
16906     hpux*)
16907       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16908       # not for PA HP-UX.
16909       case $host_cpu in
16910       hppa*64*|ia64*)
16911         # +Z the default
16912         ;;
16913       *)
16914         lt_prog_compiler_pic_GCJ='-fPIC'
16915         ;;
16916       esac
16917       ;;
16918
16919     *)
16920       lt_prog_compiler_pic_GCJ='-fPIC'
16921       ;;
16922     esac
16923   else
16924     # PORTME Check for flag to pass linker flags through the system compiler.
16925     case $host_os in
16926     aix*)
16927       lt_prog_compiler_wl_GCJ='-Wl,'
16928       if test "$host_cpu" = ia64; then
16929         # AIX 5 now supports IA64 processor
16930         lt_prog_compiler_static_GCJ='-Bstatic'
16931       else
16932         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16933       fi
16934       ;;
16935       darwin*)
16936         # PIC is the default on this platform
16937         # Common symbols not allowed in MH_DYLIB files
16938        case $cc_basename in
16939          xlc*)
16940          lt_prog_compiler_pic_GCJ='-qnocommon'
16941          lt_prog_compiler_wl_GCJ='-Wl,'
16942          ;;
16943        esac
16944        ;;
16945
16946     mingw* | cygwin* | pw32* | os2*)
16947       # This hack is so that the source file can tell whether it is being
16948       # built for inclusion in a dll (and should export symbols for example).
16949       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16950       ;;
16951
16952     hpux9* | hpux10* | hpux11*)
16953       lt_prog_compiler_wl_GCJ='-Wl,'
16954       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16955       # not for PA HP-UX.
16956       case $host_cpu in
16957       hppa*64*|ia64*)
16958         # +Z the default
16959         ;;
16960       *)
16961         lt_prog_compiler_pic_GCJ='+Z'
16962         ;;
16963       esac
16964       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16965       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16966       ;;
16967
16968     irix5* | irix6* | nonstopux*)
16969       lt_prog_compiler_wl_GCJ='-Wl,'
16970       # PIC (with -KPIC) is the default.
16971       lt_prog_compiler_static_GCJ='-non_shared'
16972       ;;
16973
16974     newsos6)
16975       lt_prog_compiler_pic_GCJ='-KPIC'
16976       lt_prog_compiler_static_GCJ='-Bstatic'
16977       ;;
16978
16979     linux* | k*bsd*-gnu)
16980       case $cc_basename in
16981       icc* | ecc*)
16982         lt_prog_compiler_wl_GCJ='-Wl,'
16983         lt_prog_compiler_pic_GCJ='-KPIC'
16984         lt_prog_compiler_static_GCJ='-static'
16985         ;;
16986       pgcc* | pgf77* | pgf90* | pgf95*)
16987         # Portland Group compilers (*not* the Pentium gcc compiler,
16988         # which looks to be a dead project)
16989         lt_prog_compiler_wl_GCJ='-Wl,'
16990         lt_prog_compiler_pic_GCJ='-fpic'
16991         lt_prog_compiler_static_GCJ='-Bstatic'
16992         ;;
16993       ccc*)
16994         lt_prog_compiler_wl_GCJ='-Wl,'
16995         # All Alpha code is PIC.
16996         lt_prog_compiler_static_GCJ='-non_shared'
16997         ;;
16998       *)
16999         case `$CC -V 2>&1 | sed 5q` in
17000         *Sun\ C*)
17001           # Sun C 5.9
17002           lt_prog_compiler_pic_GCJ='-KPIC'
17003           lt_prog_compiler_static_GCJ='-Bstatic'
17004           lt_prog_compiler_wl_GCJ='-Wl,'
17005           ;;
17006         *Sun\ F*)
17007           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17008           lt_prog_compiler_pic_GCJ='-KPIC'
17009           lt_prog_compiler_static_GCJ='-Bstatic'
17010           lt_prog_compiler_wl_GCJ=''
17011           ;;
17012         esac
17013         ;;
17014       esac
17015       ;;
17016
17017     osf3* | osf4* | osf5*)
17018       lt_prog_compiler_wl_GCJ='-Wl,'
17019       # All OSF/1 code is PIC.
17020       lt_prog_compiler_static_GCJ='-non_shared'
17021       ;;
17022
17023     rdos*)
17024       lt_prog_compiler_static_GCJ='-non_shared'
17025       ;;
17026
17027     solaris*)
17028       lt_prog_compiler_pic_GCJ='-KPIC'
17029       lt_prog_compiler_static_GCJ='-Bstatic'
17030       case $cc_basename in
17031       f77* | f90* | f95*)
17032         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17033       *)
17034         lt_prog_compiler_wl_GCJ='-Wl,';;
17035       esac
17036       ;;
17037
17038     sunos4*)
17039       lt_prog_compiler_wl_GCJ='-Qoption ld '
17040       lt_prog_compiler_pic_GCJ='-PIC'
17041       lt_prog_compiler_static_GCJ='-Bstatic'
17042       ;;
17043
17044     sysv4 | sysv4.2uw2* | sysv4.3*)
17045       lt_prog_compiler_wl_GCJ='-Wl,'
17046       lt_prog_compiler_pic_GCJ='-KPIC'
17047       lt_prog_compiler_static_GCJ='-Bstatic'
17048       ;;
17049
17050     sysv4*MP*)
17051       if test -d /usr/nec ;then
17052         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17053         lt_prog_compiler_static_GCJ='-Bstatic'
17054       fi
17055       ;;
17056
17057     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17058       lt_prog_compiler_wl_GCJ='-Wl,'
17059       lt_prog_compiler_pic_GCJ='-KPIC'
17060       lt_prog_compiler_static_GCJ='-Bstatic'
17061       ;;
17062
17063     unicos*)
17064       lt_prog_compiler_wl_GCJ='-Wl,'
17065       lt_prog_compiler_can_build_shared_GCJ=no
17066       ;;
17067
17068     uts4*)
17069       lt_prog_compiler_pic_GCJ='-pic'
17070       lt_prog_compiler_static_GCJ='-Bstatic'
17071       ;;
17072
17073     *)
17074       lt_prog_compiler_can_build_shared_GCJ=no
17075       ;;
17076     esac
17077   fi
17078
17079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17080 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17081
17082 #
17083 # Check to make sure the PIC flag actually works.
17084 #
17085 if test -n "$lt_prog_compiler_pic_GCJ"; then
17086
17087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17089 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17090   echo $ECHO_N "(cached) $ECHO_C" >&6
17091 else
17092   lt_prog_compiler_pic_works_GCJ=no
17093   ac_outfile=conftest.$ac_objext
17094    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17095    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17096    # Insert the option either (1) after the last *FLAGS variable, or
17097    # (2) before a word containing "conftest.", or (3) at the end.
17098    # Note that $ac_compile itself does not contain backslashes and begins
17099    # with a dollar sign (not a hyphen), so the echo should work correctly.
17100    # The option is referenced via a variable to avoid confusing sed.
17101    lt_compile=`echo "$ac_compile" | $SED \
17102    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17104    -e 's:$: $lt_compiler_flag:'`
17105    (eval echo "\"\$as_me:17105: $lt_compile\"" >&5)
17106    (eval "$lt_compile" 2>conftest.err)
17107    ac_status=$?
17108    cat conftest.err >&5
17109    echo "$as_me:17109: \$? = $ac_status" >&5
17110    if (exit $ac_status) && test -s "$ac_outfile"; then
17111      # The compiler can only warn and ignore the option if not recognized
17112      # So say no if there are warnings other than the usual output.
17113      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17114      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17115      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17116        lt_prog_compiler_pic_works_GCJ=yes
17117      fi
17118    fi
17119    $rm conftest*
17120
17121 fi
17122 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17123 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17124
17125 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17126     case $lt_prog_compiler_pic_GCJ in
17127      "" | " "*) ;;
17128      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17129      esac
17130 else
17131     lt_prog_compiler_pic_GCJ=
17132      lt_prog_compiler_can_build_shared_GCJ=no
17133 fi
17134
17135 fi
17136 case $host_os in
17137   # For platforms which do not support PIC, -DPIC is meaningless:
17138   *djgpp*)
17139     lt_prog_compiler_pic_GCJ=
17140     ;;
17141   *)
17142     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17143     ;;
17144 esac
17145
17146 #
17147 # Check to make sure the static flag actually works.
17148 #
17149 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17151 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17152 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17153   echo $ECHO_N "(cached) $ECHO_C" >&6
17154 else
17155   lt_prog_compiler_static_works_GCJ=no
17156    save_LDFLAGS="$LDFLAGS"
17157    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17158    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17159    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17160      # The linker can only warn and ignore the option if not recognized
17161      # So say no if there are warnings
17162      if test -s conftest.err; then
17163        # Append any errors to the config.log.
17164        cat conftest.err 1>&5
17165        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17166        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17167        if diff conftest.exp conftest.er2 >/dev/null; then
17168          lt_prog_compiler_static_works_GCJ=yes
17169        fi
17170      else
17171        lt_prog_compiler_static_works_GCJ=yes
17172      fi
17173    fi
17174    $rm conftest*
17175    LDFLAGS="$save_LDFLAGS"
17176
17177 fi
17178 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17179 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17180
17181 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17182     :
17183 else
17184     lt_prog_compiler_static_GCJ=
17185 fi
17186
17187
17188 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17190 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17191   echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193   lt_cv_prog_compiler_c_o_GCJ=no
17194    $rm -r conftest 2>/dev/null
17195    mkdir conftest
17196    cd conftest
17197    mkdir out
17198    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17199
17200    lt_compiler_flag="-o out/conftest2.$ac_objext"
17201    # Insert the option either (1) after the last *FLAGS variable, or
17202    # (2) before a word containing "conftest.", or (3) at the end.
17203    # Note that $ac_compile itself does not contain backslashes and begins
17204    # with a dollar sign (not a hyphen), so the echo should work correctly.
17205    lt_compile=`echo "$ac_compile" | $SED \
17206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17208    -e 's:$: $lt_compiler_flag:'`
17209    (eval echo "\"\$as_me:17209: $lt_compile\"" >&5)
17210    (eval "$lt_compile" 2>out/conftest.err)
17211    ac_status=$?
17212    cat out/conftest.err >&5
17213    echo "$as_me:17213: \$? = $ac_status" >&5
17214    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17215    then
17216      # The compiler can only warn and ignore the option if not recognized
17217      # So say no if there are warnings
17218      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17219      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17220      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17221        lt_cv_prog_compiler_c_o_GCJ=yes
17222      fi
17223    fi
17224    chmod u+w . 2>&5
17225    $rm conftest*
17226    # SGI C++ compiler will create directory out/ii_files/ for
17227    # template instantiation
17228    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17229    $rm out/* && rmdir out
17230    cd ..
17231    rmdir conftest
17232    $rm conftest*
17233
17234 fi
17235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17237
17238
17239 hard_links="nottested"
17240 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17241   # do not overwrite the value of need_locks provided by the user
17242   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17244   hard_links=yes
17245   $rm conftest*
17246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17247   touch conftest.a
17248   ln conftest.a conftest.b 2>&5 || hard_links=no
17249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17250   { echo "$as_me:$LINENO: result: $hard_links" >&5
17251 echo "${ECHO_T}$hard_links" >&6; }
17252   if test "$hard_links" = no; then
17253     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17255     need_locks=warn
17256   fi
17257 else
17258   need_locks=no
17259 fi
17260
17261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17263
17264   runpath_var=
17265   allow_undefined_flag_GCJ=
17266   enable_shared_with_static_runtimes_GCJ=no
17267   archive_cmds_GCJ=
17268   archive_expsym_cmds_GCJ=
17269   old_archive_From_new_cmds_GCJ=
17270   old_archive_from_expsyms_cmds_GCJ=
17271   export_dynamic_flag_spec_GCJ=
17272   whole_archive_flag_spec_GCJ=
17273   thread_safe_flag_spec_GCJ=
17274   hardcode_libdir_flag_spec_GCJ=
17275   hardcode_libdir_flag_spec_ld_GCJ=
17276   hardcode_libdir_separator_GCJ=
17277   hardcode_direct_GCJ=no
17278   hardcode_minus_L_GCJ=no
17279   hardcode_shlibpath_var_GCJ=unsupported
17280   link_all_deplibs_GCJ=unknown
17281   hardcode_automatic_GCJ=no
17282   module_cmds_GCJ=
17283   module_expsym_cmds_GCJ=
17284   always_export_symbols_GCJ=no
17285   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17286   # include_expsyms should be a list of space-separated symbols to be *always*
17287   # included in the symbol list
17288   include_expsyms_GCJ=
17289   # exclude_expsyms can be an extended regexp of symbols to exclude
17290   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17291   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17292   # as well as any symbol that contains `d'.
17293   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17294   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17295   # platforms (ab)use it in PIC code, but their linkers get confused if
17296   # the symbol is explicitly referenced.  Since portable code cannot
17297   # rely on this symbol name, it's probably fine to never include it in
17298   # preloaded symbol tables.
17299   extract_expsyms_cmds=
17300   # Just being paranoid about ensuring that cc_basename is set.
17301   for cc_temp in $compiler""; do
17302   case $cc_temp in
17303     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17304     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17305     \-*) ;;
17306     *) break;;
17307   esac
17308 done
17309 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17310
17311   case $host_os in
17312   cygwin* | mingw* | pw32*)
17313     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17314     # When not using gcc, we currently assume that we are using
17315     # Microsoft Visual C++.
17316     if test "$GCC" != yes; then
17317       with_gnu_ld=no
17318     fi
17319     ;;
17320   interix*)
17321     # we just hope/assume this is gcc and not c89 (= MSVC++)
17322     with_gnu_ld=yes
17323     ;;
17324   openbsd*)
17325     with_gnu_ld=no
17326     ;;
17327   esac
17328
17329   ld_shlibs_GCJ=yes
17330   if test "$with_gnu_ld" = yes; then
17331     # If archive_cmds runs LD, not CC, wlarc should be empty
17332     wlarc='${wl}'
17333
17334     # Set some defaults for GNU ld with shared library support. These
17335     # are reset later if shared libraries are not supported. Putting them
17336     # here allows them to be overridden if necessary.
17337     runpath_var=LD_RUN_PATH
17338     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17339     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17340     # ancient GNU ld didn't support --whole-archive et. al.
17341     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17342         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17343       else
17344         whole_archive_flag_spec_GCJ=
17345     fi
17346     supports_anon_versioning=no
17347     case `$LD -v 2>/dev/null` in
17348       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17349       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17350       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17351       *\ 2.11.*) ;; # other 2.11 versions
17352       *) supports_anon_versioning=yes ;;
17353     esac
17354
17355     # See if GNU ld supports shared libraries.
17356     case $host_os in
17357     aix3* | aix4* | aix5*)
17358       # On AIX/PPC, the GNU linker is very broken
17359       if test "$host_cpu" != ia64; then
17360         ld_shlibs_GCJ=no
17361         cat <<EOF 1>&2
17362
17363 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17364 *** to be unable to reliably create shared libraries on AIX.
17365 *** Therefore, libtool is disabling shared libraries support.  If you
17366 *** really care for shared libraries, you may want to modify your PATH
17367 *** so that a non-GNU linker is found, and then restart.
17368
17369 EOF
17370       fi
17371       ;;
17372
17373     amigaos*)
17374       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)'
17375       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17376       hardcode_minus_L_GCJ=yes
17377
17378       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17379       # that the semantics of dynamic libraries on AmigaOS, at least up
17380       # to version 4, is to share data among multiple programs linked
17381       # with the same dynamic library.  Since this doesn't match the
17382       # behavior of shared libraries on other platforms, we can't use
17383       # them.
17384       ld_shlibs_GCJ=no
17385       ;;
17386
17387     beos*)
17388       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17389         allow_undefined_flag_GCJ=unsupported
17390         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17391         # support --undefined.  This deserves some investigation.  FIXME
17392         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17393       else
17394         ld_shlibs_GCJ=no
17395       fi
17396       ;;
17397
17398     cygwin* | mingw* | pw32*)
17399       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17400       # as there is no search path for DLLs.
17401       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17402       allow_undefined_flag_GCJ=unsupported
17403       always_export_symbols_GCJ=no
17404       enable_shared_with_static_runtimes_GCJ=yes
17405       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17406
17407       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17408         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17409         # If the export-symbols file already is a .def file (1st line
17410         # is EXPORTS), use it as is; otherwise, prepend...
17411         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17412           cp $export_symbols $output_objdir/$soname.def;
17413         else
17414           echo EXPORTS > $output_objdir/$soname.def;
17415           cat $export_symbols >> $output_objdir/$soname.def;
17416         fi~
17417         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17418       else
17419         ld_shlibs_GCJ=no
17420       fi
17421       ;;
17422
17423     interix[3-9]*)
17424       hardcode_direct_GCJ=no
17425       hardcode_shlibpath_var_GCJ=no
17426       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17427       export_dynamic_flag_spec_GCJ='${wl}-E'
17428       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17429       # Instead, shared libraries are loaded at an image base (0x10000000 by
17430       # default) and relocated if they conflict, which is a slow very memory
17431       # consuming and fragmenting process.  To avoid this, we pick a random,
17432       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17433       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17434       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'
17435       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'
17436       ;;
17437
17438     gnu* | linux* | k*bsd*-gnu)
17439       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17440         tmp_addflag=
17441         case $cc_basename,$host_cpu in
17442         pgcc*)                          # Portland Group C compiler
17443           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'
17444           tmp_addflag=' $pic_flag'
17445           ;;
17446         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17447           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'
17448           tmp_addflag=' $pic_flag -Mnomain' ;;
17449         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17450           tmp_addflag=' -i_dynamic' ;;
17451         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17452           tmp_addflag=' -i_dynamic -nofor_main' ;;
17453         ifc* | ifort*)                  # Intel Fortran compiler
17454           tmp_addflag=' -nofor_main' ;;
17455         esac
17456         case `$CC -V 2>&1 | sed 5q` in
17457         *Sun\ C*)                       # Sun C 5.9
17458           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17459           tmp_sharedflag='-G' ;;
17460         *Sun\ F*)                       # Sun Fortran 8.3
17461           tmp_sharedflag='-G' ;;
17462         *)
17463           tmp_sharedflag='-shared' ;;
17464         esac
17465         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17466
17467         if test $supports_anon_versioning = yes; then
17468           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17469   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17470   $echo "local: *; };" >> $output_objdir/$libname.ver~
17471           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17472         fi
17473         link_all_deplibs_GCJ=no
17474       else
17475         ld_shlibs_GCJ=no
17476       fi
17477       ;;
17478
17479     netbsd* | netbsdelf*-gnu)
17480       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17481         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17482         wlarc=
17483       else
17484         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17485         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17486       fi
17487       ;;
17488
17489     solaris*)
17490       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17491         ld_shlibs_GCJ=no
17492         cat <<EOF 1>&2
17493
17494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17495 *** create shared libraries on Solaris systems.  Therefore, libtool
17496 *** is disabling shared libraries support.  We urge you to upgrade GNU
17497 *** binutils to release 2.9.1 or newer.  Another option is to modify
17498 *** your PATH or compiler configuration so that the native linker is
17499 *** used, and then restart.
17500
17501 EOF
17502       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17503         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17504         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17505       else
17506         ld_shlibs_GCJ=no
17507       fi
17508       ;;
17509
17510     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17511       case `$LD -v 2>&1` in
17512         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17513         ld_shlibs_GCJ=no
17514         cat <<_LT_EOF 1>&2
17515
17516 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17517 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17518 *** is disabling shared libraries support.  We urge you to upgrade GNU
17519 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17520 *** your PATH or compiler configuration so that the native linker is
17521 *** used, and then restart.
17522
17523 _LT_EOF
17524         ;;
17525         *)
17526           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17527             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17528             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17529             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17530           else
17531             ld_shlibs_GCJ=no
17532           fi
17533         ;;
17534       esac
17535       ;;
17536
17537     sunos4*)
17538       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17539       wlarc=
17540       hardcode_direct_GCJ=yes
17541       hardcode_shlibpath_var_GCJ=no
17542       ;;
17543
17544     *)
17545       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17546         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17547         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17548       else
17549         ld_shlibs_GCJ=no
17550       fi
17551       ;;
17552     esac
17553
17554     if test "$ld_shlibs_GCJ" = no; then
17555       runpath_var=
17556       hardcode_libdir_flag_spec_GCJ=
17557       export_dynamic_flag_spec_GCJ=
17558       whole_archive_flag_spec_GCJ=
17559     fi
17560   else
17561     # PORTME fill in a description of your system's linker (not GNU ld)
17562     case $host_os in
17563     aix3*)
17564       allow_undefined_flag_GCJ=unsupported
17565       always_export_symbols_GCJ=yes
17566       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'
17567       # Note: this linker hardcodes the directories in LIBPATH if there
17568       # are no directories specified by -L.
17569       hardcode_minus_L_GCJ=yes
17570       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17571         # Neither direct hardcoding nor static linking is supported with a
17572         # broken collect2.
17573         hardcode_direct_GCJ=unsupported
17574       fi
17575       ;;
17576
17577     aix4* | aix5*)
17578       if test "$host_cpu" = ia64; then
17579         # On IA64, the linker does run time linking by default, so we don't
17580         # have to do anything special.
17581         aix_use_runtimelinking=no
17582         exp_sym_flag='-Bexport'
17583         no_entry_flag=""
17584       else
17585         # If we're using GNU nm, then we don't want the "-C" option.
17586         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17587         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17588           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'
17589         else
17590           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'
17591         fi
17592         aix_use_runtimelinking=no
17593
17594         # Test if we are trying to use run time linking or normal
17595         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17596         # need to do runtime linking.
17597         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17598           for ld_flag in $LDFLAGS; do
17599           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17600             aix_use_runtimelinking=yes
17601             break
17602           fi
17603           done
17604           ;;
17605         esac
17606
17607         exp_sym_flag='-bexport'
17608         no_entry_flag='-bnoentry'
17609       fi
17610
17611       # When large executables or shared objects are built, AIX ld can
17612       # have problems creating the table of contents.  If linking a library
17613       # or program results in "error TOC overflow" add -mminimal-toc to
17614       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17615       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17616
17617       archive_cmds_GCJ=''
17618       hardcode_direct_GCJ=yes
17619       hardcode_libdir_separator_GCJ=':'
17620       link_all_deplibs_GCJ=yes
17621
17622       if test "$GCC" = yes; then
17623         case $host_os in aix4.[012]|aix4.[012].*)
17624         # We only want to do this on AIX 4.2 and lower, the check
17625         # below for broken collect2 doesn't work under 4.3+
17626           collect2name=`${CC} -print-prog-name=collect2`
17627           if test -f "$collect2name" && \
17628            strings "$collect2name" | grep resolve_lib_name >/dev/null
17629           then
17630           # We have reworked collect2
17631           :
17632           else
17633           # We have old collect2
17634           hardcode_direct_GCJ=unsupported
17635           # It fails to find uninstalled libraries when the uninstalled
17636           # path is not listed in the libpath.  Setting hardcode_minus_L
17637           # to unsupported forces relinking
17638           hardcode_minus_L_GCJ=yes
17639           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17640           hardcode_libdir_separator_GCJ=
17641           fi
17642           ;;
17643         esac
17644         shared_flag='-shared'
17645         if test "$aix_use_runtimelinking" = yes; then
17646           shared_flag="$shared_flag "'${wl}-G'
17647         fi
17648       else
17649         # not using gcc
17650         if test "$host_cpu" = ia64; then
17651         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17652         # chokes on -Wl,-G. The following line is correct:
17653           shared_flag='-G'
17654         else
17655           if test "$aix_use_runtimelinking" = yes; then
17656             shared_flag='${wl}-G'
17657           else
17658             shared_flag='${wl}-bM:SRE'
17659           fi
17660         fi
17661       fi
17662
17663       # It seems that -bexpall does not export symbols beginning with
17664       # underscore (_), so it is better to generate a list of symbols to export.
17665       always_export_symbols_GCJ=yes
17666       if test "$aix_use_runtimelinking" = yes; then
17667         # Warning - without using the other runtime loading flags (-brtl),
17668         # -berok will link without error, but may produce a broken library.
17669         allow_undefined_flag_GCJ='-berok'
17670        # Determine the default libpath from the value encoded in an empty executable.
17671        cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h.  */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h.  */
17677
17678 int
17679 main ()
17680 {
17681
17682   ;
17683   return 0;
17684 }
17685 _ACEOF
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (ac_try="$ac_link"
17688 case "(($ac_try" in
17689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690   *) ac_try_echo=$ac_try;;
17691 esac
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693   (eval "$ac_link") 2>conftest.er1
17694   ac_status=$?
17695   grep -v '^ *+' conftest.er1 >conftest.err
17696   rm -f conftest.er1
17697   cat conftest.err >&5
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); } && {
17700          test -z "$ac_c_werror_flag" ||
17701          test ! -s conftest.err
17702        } && test -s conftest$ac_exeext &&
17703        $as_test_x conftest$ac_exeext; then
17704
17705 lt_aix_libpath_sed='
17706     /Import File Strings/,/^$/ {
17707         /^0/ {
17708             s/^0  *\(.*\)$/\1/
17709             p
17710         }
17711     }'
17712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17713 # Check for a 64-bit object if we didn't find anything.
17714 if test -z "$aix_libpath"; then
17715   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17716 fi
17717 else
17718   echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17720
17721
17722 fi
17723
17724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17725       conftest$ac_exeext conftest.$ac_ext
17726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17727
17728        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17729         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"
17730        else
17731         if test "$host_cpu" = ia64; then
17732           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17733           allow_undefined_flag_GCJ="-z nodefs"
17734           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"
17735         else
17736          # Determine the default libpath from the value encoded in an empty executable.
17737          cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743
17744 int
17745 main ()
17746 {
17747
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (ac_try="$ac_link"
17754 case "(($ac_try" in
17755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756   *) ac_try_echo=$ac_try;;
17757 esac
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759   (eval "$ac_link") 2>conftest.er1
17760   ac_status=$?
17761   grep -v '^ *+' conftest.er1 >conftest.err
17762   rm -f conftest.er1
17763   cat conftest.err >&5
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } && {
17766          test -z "$ac_c_werror_flag" ||
17767          test ! -s conftest.err
17768        } && test -s conftest$ac_exeext &&
17769        $as_test_x conftest$ac_exeext; then
17770
17771 lt_aix_libpath_sed='
17772     /Import File Strings/,/^$/ {
17773         /^0/ {
17774             s/^0  *\(.*\)$/\1/
17775             p
17776         }
17777     }'
17778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17779 # Check for a 64-bit object if we didn't find anything.
17780 if test -z "$aix_libpath"; then
17781   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17782 fi
17783 else
17784   echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17786
17787
17788 fi
17789
17790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17791       conftest$ac_exeext conftest.$ac_ext
17792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17793
17794          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17795           # Warning - without using the other run time loading flags,
17796           # -berok will link without error, but may produce a broken library.
17797           no_undefined_flag_GCJ=' ${wl}-bernotok'
17798           allow_undefined_flag_GCJ=' ${wl}-berok'
17799           # Exported symbols can be pulled into shared objects from archives
17800           whole_archive_flag_spec_GCJ='$convenience'
17801           archive_cmds_need_lc_GCJ=yes
17802           # This is similar to how AIX traditionally builds its shared libraries.
17803           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'
17804         fi
17805       fi
17806       ;;
17807
17808     amigaos*)
17809       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)'
17810       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17811       hardcode_minus_L_GCJ=yes
17812       # see comment about different semantics on the GNU ld section
17813       ld_shlibs_GCJ=no
17814       ;;
17815
17816     bsdi[45]*)
17817       export_dynamic_flag_spec_GCJ=-rdynamic
17818       ;;
17819
17820     cygwin* | mingw* | pw32*)
17821       # When not using gcc, we currently assume that we are using
17822       # Microsoft Visual C++.
17823       # hardcode_libdir_flag_spec is actually meaningless, as there is
17824       # no search path for DLLs.
17825       hardcode_libdir_flag_spec_GCJ=' '
17826       allow_undefined_flag_GCJ=unsupported
17827       # Tell ltmain to make .lib files, not .a files.
17828       libext=lib
17829       # Tell ltmain to make .dll files, not .so files.
17830       shrext_cmds=".dll"
17831       # FIXME: Setting linknames here is a bad hack.
17832       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17833       # The linker will automatically build a .lib file if we build a DLL.
17834       old_archive_From_new_cmds_GCJ='true'
17835       # FIXME: Should let the user specify the lib program.
17836       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17837       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17838       enable_shared_with_static_runtimes_GCJ=yes
17839       ;;
17840
17841     darwin* | rhapsody*)
17842       case $host_os in
17843         rhapsody* | darwin1.[012])
17844          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17845          ;;
17846        *) # Darwin 1.3 on
17847          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17848            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17849          else
17850            case ${MACOSX_DEPLOYMENT_TARGET} in
17851              10.[012])
17852                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17853                ;;
17854              10.*)
17855                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17856                ;;
17857            esac
17858          fi
17859          ;;
17860       esac
17861       archive_cmds_need_lc_GCJ=no
17862       hardcode_direct_GCJ=no
17863       hardcode_automatic_GCJ=yes
17864       hardcode_shlibpath_var_GCJ=unsupported
17865       whole_archive_flag_spec_GCJ=''
17866       link_all_deplibs_GCJ=yes
17867     if test "$GCC" = yes ; then
17868         output_verbose_link_cmd='echo'
17869         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17870       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17871       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17872       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}'
17873       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}'
17874     else
17875       case $cc_basename in
17876         xlc*)
17877          output_verbose_link_cmd='echo'
17878          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17879          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17880           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17881          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17882           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}'
17883           ;;
17884        *)
17885          ld_shlibs_GCJ=no
17886           ;;
17887       esac
17888     fi
17889       ;;
17890
17891     dgux*)
17892       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17893       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17894       hardcode_shlibpath_var_GCJ=no
17895       ;;
17896
17897     freebsd1*)
17898       ld_shlibs_GCJ=no
17899       ;;
17900
17901     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17902     # support.  Future versions do this automatically, but an explicit c++rt0.o
17903     # does not break anything, and helps significantly (at the cost of a little
17904     # extra space).
17905     freebsd2.2*)
17906       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17907       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17908       hardcode_direct_GCJ=yes
17909       hardcode_shlibpath_var_GCJ=no
17910       ;;
17911
17912     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17913     freebsd2*)
17914       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17915       hardcode_direct_GCJ=yes
17916       hardcode_minus_L_GCJ=yes
17917       hardcode_shlibpath_var_GCJ=no
17918       ;;
17919
17920     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17921     freebsd* | dragonfly*)
17922       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17923       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17924       hardcode_direct_GCJ=yes
17925       hardcode_shlibpath_var_GCJ=no
17926       ;;
17927
17928     hpux9*)
17929       if test "$GCC" = yes; then
17930         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'
17931       else
17932         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'
17933       fi
17934       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17935       hardcode_libdir_separator_GCJ=:
17936       hardcode_direct_GCJ=yes
17937
17938       # hardcode_minus_L: Not really in the search PATH,
17939       # but as the default location of the library.
17940       hardcode_minus_L_GCJ=yes
17941       export_dynamic_flag_spec_GCJ='${wl}-E'
17942       ;;
17943
17944     hpux10*)
17945       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17946         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17947       else
17948         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17949       fi
17950       if test "$with_gnu_ld" = no; then
17951         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17952         hardcode_libdir_separator_GCJ=:
17953
17954         hardcode_direct_GCJ=yes
17955         export_dynamic_flag_spec_GCJ='${wl}-E'
17956
17957         # hardcode_minus_L: Not really in the search PATH,
17958         # but as the default location of the library.
17959         hardcode_minus_L_GCJ=yes
17960       fi
17961       ;;
17962
17963     hpux11*)
17964       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17965         case $host_cpu in
17966         hppa*64*)
17967           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17968           ;;
17969         ia64*)
17970           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17971           ;;
17972         *)
17973           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17974           ;;
17975         esac
17976       else
17977         case $host_cpu in
17978         hppa*64*)
17979           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17980           ;;
17981         ia64*)
17982           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17983           ;;
17984         *)
17985           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17986           ;;
17987         esac
17988       fi
17989       if test "$with_gnu_ld" = no; then
17990         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17991         hardcode_libdir_separator_GCJ=:
17992
17993         case $host_cpu in
17994         hppa*64*|ia64*)
17995           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17996           hardcode_direct_GCJ=no
17997           hardcode_shlibpath_var_GCJ=no
17998           ;;
17999         *)
18000           hardcode_direct_GCJ=yes
18001           export_dynamic_flag_spec_GCJ='${wl}-E'
18002
18003           # hardcode_minus_L: Not really in the search PATH,
18004           # but as the default location of the library.
18005           hardcode_minus_L_GCJ=yes
18006           ;;
18007         esac
18008       fi
18009       ;;
18010
18011     irix5* | irix6* | nonstopux*)
18012       if test "$GCC" = yes; then
18013         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'
18014       else
18015         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'
18016         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18017       fi
18018       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18019       hardcode_libdir_separator_GCJ=:
18020       link_all_deplibs_GCJ=yes
18021       ;;
18022
18023     netbsd* | netbsdelf*-gnu)
18024       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18025         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18026       else
18027         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18028       fi
18029       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18030       hardcode_direct_GCJ=yes
18031       hardcode_shlibpath_var_GCJ=no
18032       ;;
18033
18034     newsos6)
18035       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18036       hardcode_direct_GCJ=yes
18037       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18038       hardcode_libdir_separator_GCJ=:
18039       hardcode_shlibpath_var_GCJ=no
18040       ;;
18041
18042     openbsd*)
18043       if test -f /usr/libexec/ld.so; then
18044         hardcode_direct_GCJ=yes
18045         hardcode_shlibpath_var_GCJ=no
18046         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18047           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18048           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18049           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18050           export_dynamic_flag_spec_GCJ='${wl}-E'
18051         else
18052           case $host_os in
18053            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18054              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18055              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18056              ;;
18057            *)
18058              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18059              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18060              ;;
18061           esac
18062         fi
18063       else
18064         ld_shlibs_GCJ=no
18065       fi
18066       ;;
18067
18068     os2*)
18069       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18070       hardcode_minus_L_GCJ=yes
18071       allow_undefined_flag_GCJ=unsupported
18072       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'
18073       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18074       ;;
18075
18076     osf3*)
18077       if test "$GCC" = yes; then
18078         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18079         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'
18080       else
18081         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18082         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'
18083       fi
18084       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18085       hardcode_libdir_separator_GCJ=:
18086       ;;
18087
18088     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18089       if test "$GCC" = yes; then
18090         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18091         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'
18092         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18093       else
18094         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18095         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'
18096         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~
18097         $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'
18098
18099         # Both c and cxx compiler support -rpath directly
18100         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18101       fi
18102       hardcode_libdir_separator_GCJ=:
18103       ;;
18104
18105     solaris*)
18106       no_undefined_flag_GCJ=' -z text'
18107       if test "$GCC" = yes; then
18108         wlarc='${wl}'
18109         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18110         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18111           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18112       else
18113         wlarc=''
18114         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18116         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18117       fi
18118       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18119       hardcode_shlibpath_var_GCJ=no
18120       case $host_os in
18121       solaris2.[0-5] | solaris2.[0-5].*) ;;
18122       *)
18123         # The compiler driver will combine and reorder linker options,
18124         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18125         # but is careful enough not to reorder.
18126         # Supported since Solaris 2.6 (maybe 2.5.1?)
18127         if test "$GCC" = yes; then
18128           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18129         else
18130           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18131         fi
18132         ;;
18133       esac
18134       link_all_deplibs_GCJ=yes
18135       ;;
18136
18137     sunos4*)
18138       if test "x$host_vendor" = xsequent; then
18139         # Use $CC to link under sequent, because it throws in some extra .o
18140         # files that make .init and .fini sections work.
18141         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18142       else
18143         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18144       fi
18145       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18146       hardcode_direct_GCJ=yes
18147       hardcode_minus_L_GCJ=yes
18148       hardcode_shlibpath_var_GCJ=no
18149       ;;
18150
18151     sysv4)
18152       case $host_vendor in
18153         sni)
18154           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18155           hardcode_direct_GCJ=yes # is this really true???
18156         ;;
18157         siemens)
18158           ## LD is ld it makes a PLAMLIB
18159           ## CC just makes a GrossModule.
18160           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18161           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18162           hardcode_direct_GCJ=no
18163         ;;
18164         motorola)
18165           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18166           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18167         ;;
18168       esac
18169       runpath_var='LD_RUN_PATH'
18170       hardcode_shlibpath_var_GCJ=no
18171       ;;
18172
18173     sysv4.3*)
18174       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18175       hardcode_shlibpath_var_GCJ=no
18176       export_dynamic_flag_spec_GCJ='-Bexport'
18177       ;;
18178
18179     sysv4*MP*)
18180       if test -d /usr/nec; then
18181         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18182         hardcode_shlibpath_var_GCJ=no
18183         runpath_var=LD_RUN_PATH
18184         hardcode_runpath_var=yes
18185         ld_shlibs_GCJ=yes
18186       fi
18187       ;;
18188
18189     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18190       no_undefined_flag_GCJ='${wl}-z,text'
18191       archive_cmds_need_lc_GCJ=no
18192       hardcode_shlibpath_var_GCJ=no
18193       runpath_var='LD_RUN_PATH'
18194
18195       if test "$GCC" = yes; then
18196         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18197         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18198       else
18199         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18200         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18201       fi
18202       ;;
18203
18204     sysv5* | sco3.2v5* | sco5v6*)
18205       # Note: We can NOT use -z defs as we might desire, because we do not
18206       # link with -lc, and that would cause any symbols used from libc to
18207       # always be unresolved, which means just about no library would
18208       # ever link correctly.  If we're not using GNU ld we use -z text
18209       # though, which does catch some bad symbols but isn't as heavy-handed
18210       # as -z defs.
18211       no_undefined_flag_GCJ='${wl}-z,text'
18212       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18213       archive_cmds_need_lc_GCJ=no
18214       hardcode_shlibpath_var_GCJ=no
18215       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18216       hardcode_libdir_separator_GCJ=':'
18217       link_all_deplibs_GCJ=yes
18218       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18219       runpath_var='LD_RUN_PATH'
18220
18221       if test "$GCC" = yes; then
18222         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18223         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18224       else
18225         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18226         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18227       fi
18228       ;;
18229
18230     uts4*)
18231       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18232       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18233       hardcode_shlibpath_var_GCJ=no
18234       ;;
18235
18236     *)
18237       ld_shlibs_GCJ=no
18238       ;;
18239     esac
18240   fi
18241
18242 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18243 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18244 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18245
18246 #
18247 # Do we need to explicitly link libc?
18248 #
18249 case "x$archive_cmds_need_lc_GCJ" in
18250 x|xyes)
18251   # Assume -lc should be added
18252   archive_cmds_need_lc_GCJ=yes
18253
18254   if test "$enable_shared" = yes && test "$GCC" = yes; then
18255     case $archive_cmds_GCJ in
18256     *'~'*)
18257       # FIXME: we may have to deal with multi-command sequences.
18258       ;;
18259     '$CC '*)
18260       # Test whether the compiler implicitly links with -lc since on some
18261       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18262       # to ld, don't add -lc before -lgcc.
18263       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18264 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18265       $rm conftest*
18266       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18267
18268       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269   (eval $ac_compile) 2>&5
18270   ac_status=$?
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); } 2>conftest.err; then
18273         soname=conftest
18274         lib=conftest
18275         libobjs=conftest.$ac_objext
18276         deplibs=
18277         wl=$lt_prog_compiler_wl_GCJ
18278         pic_flag=$lt_prog_compiler_pic_GCJ
18279         compiler_flags=-v
18280         linker_flags=-v
18281         verstring=
18282         output_objdir=.
18283         libname=conftest
18284         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18285         allow_undefined_flag_GCJ=
18286         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18287   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18288   ac_status=$?
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); }
18291         then
18292           archive_cmds_need_lc_GCJ=no
18293         else
18294           archive_cmds_need_lc_GCJ=yes
18295         fi
18296         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18297       else
18298         cat conftest.err 1>&5
18299       fi
18300       $rm conftest*
18301       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18302 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18303       ;;
18304     esac
18305   fi
18306   ;;
18307 esac
18308
18309 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18310 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18311 library_names_spec=
18312 libname_spec='lib$name'
18313 soname_spec=
18314 shrext_cmds=".so"
18315 postinstall_cmds=
18316 postuninstall_cmds=
18317 finish_cmds=
18318 finish_eval=
18319 shlibpath_var=
18320 shlibpath_overrides_runpath=unknown
18321 version_type=none
18322 dynamic_linker="$host_os ld.so"
18323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18324
18325 need_lib_prefix=unknown
18326 hardcode_into_libs=no
18327
18328 # when you set need_version to no, make sure it does not cause -set_version
18329 # flags to be left without arguments
18330 need_version=unknown
18331
18332 case $host_os in
18333 aix3*)
18334   version_type=linux
18335   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18336   shlibpath_var=LIBPATH
18337
18338   # AIX 3 has no versioning support, so we append a major version to the name.
18339   soname_spec='${libname}${release}${shared_ext}$major'
18340   ;;
18341
18342 aix4* | aix5*)
18343   version_type=linux
18344   need_lib_prefix=no
18345   need_version=no
18346   hardcode_into_libs=yes
18347   if test "$host_cpu" = ia64; then
18348     # AIX 5 supports IA64
18349     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18350     shlibpath_var=LD_LIBRARY_PATH
18351   else
18352     # With GCC up to 2.95.x, collect2 would create an import file
18353     # for dependence libraries.  The import file would start with
18354     # the line `#! .'.  This would cause the generated library to
18355     # depend on `.', always an invalid library.  This was fixed in
18356     # development snapshots of GCC prior to 3.0.
18357     case $host_os in
18358       aix4 | aix4.[01] | aix4.[01].*)
18359       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18360            echo ' yes '
18361            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18362         :
18363       else
18364         can_build_shared=no
18365       fi
18366       ;;
18367     esac
18368     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18369     # soname into executable. Probably we can add versioning support to
18370     # collect2, so additional links can be useful in future.
18371     if test "$aix_use_runtimelinking" = yes; then
18372       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18373       # instead of lib<name>.a to let people know that these are not
18374       # typical AIX shared libraries.
18375       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18376     else
18377       # We preserve .a as extension for shared libraries through AIX4.2
18378       # and later when we are not doing run time linking.
18379       library_names_spec='${libname}${release}.a $libname.a'
18380       soname_spec='${libname}${release}${shared_ext}$major'
18381     fi
18382     shlibpath_var=LIBPATH
18383   fi
18384   ;;
18385
18386 amigaos*)
18387   library_names_spec='$libname.ixlibrary $libname.a'
18388   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18389   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'
18390   ;;
18391
18392 beos*)
18393   library_names_spec='${libname}${shared_ext}'
18394   dynamic_linker="$host_os ld.so"
18395   shlibpath_var=LIBRARY_PATH
18396   ;;
18397
18398 bsdi[45]*)
18399   version_type=linux
18400   need_version=no
18401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18402   soname_spec='${libname}${release}${shared_ext}$major'
18403   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18404   shlibpath_var=LD_LIBRARY_PATH
18405   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18406   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18407   # the default ld.so.conf also contains /usr/contrib/lib and
18408   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18409   # libtool to hard-code these into programs
18410   ;;
18411
18412 cygwin* | mingw* | pw32*)
18413   version_type=windows
18414   shrext_cmds=".dll"
18415   need_version=no
18416   need_lib_prefix=no
18417
18418   case $GCC,$host_os in
18419   yes,cygwin* | yes,mingw* | yes,pw32*)
18420     library_names_spec='$libname.dll.a'
18421     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18422     postinstall_cmds='base_file=`basename \${file}`~
18423       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18424       dldir=$destdir/`dirname \$dlpath`~
18425       test -d \$dldir || mkdir -p \$dldir~
18426       $install_prog $dir/$dlname \$dldir/$dlname~
18427       chmod a+x \$dldir/$dlname'
18428     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18429       dlpath=$dir/\$dldll~
18430        $rm \$dlpath'
18431     shlibpath_overrides_runpath=yes
18432
18433     case $host_os in
18434     cygwin*)
18435       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18436       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18437       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18438       ;;
18439     mingw*)
18440       # MinGW DLLs use traditional 'lib' prefix
18441       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18442       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18443       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18444         # It is most probably a Windows format PATH printed by
18445         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18446         # path with ; separators, and with drive letters. We can handle the
18447         # drive letters (cygwin fileutils understands them), so leave them,
18448         # especially as we might pass files found there to a mingw objdump,
18449         # which wouldn't understand a cygwinified path. Ahh.
18450         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18451       else
18452         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18453       fi
18454       ;;
18455     pw32*)
18456       # pw32 DLLs use 'pw' prefix rather than 'lib'
18457       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18458       ;;
18459     esac
18460     ;;
18461
18462   *)
18463     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18464     ;;
18465   esac
18466   dynamic_linker='Win32 ld.exe'
18467   # FIXME: first we should search . and the directory the executable is in
18468   shlibpath_var=PATH
18469   ;;
18470
18471 darwin* | rhapsody*)
18472   dynamic_linker="$host_os dyld"
18473   version_type=darwin
18474   need_lib_prefix=no
18475   need_version=no
18476   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18477   soname_spec='${libname}${release}${major}$shared_ext'
18478   shlibpath_overrides_runpath=yes
18479   shlibpath_var=DYLD_LIBRARY_PATH
18480   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18481
18482   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18483   ;;
18484
18485 dgux*)
18486   version_type=linux
18487   need_lib_prefix=no
18488   need_version=no
18489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18490   soname_spec='${libname}${release}${shared_ext}$major'
18491   shlibpath_var=LD_LIBRARY_PATH
18492   ;;
18493
18494 freebsd1*)
18495   dynamic_linker=no
18496   ;;
18497
18498 freebsd* | dragonfly*)
18499   # DragonFly does not have aout.  When/if they implement a new
18500   # versioning mechanism, adjust this.
18501   if test -x /usr/bin/objformat; then
18502     objformat=`/usr/bin/objformat`
18503   else
18504     case $host_os in
18505     freebsd[123]*) objformat=aout ;;
18506     *) objformat=elf ;;
18507     esac
18508   fi
18509   version_type=freebsd-$objformat
18510   case $version_type in
18511     freebsd-elf*)
18512       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18513       need_version=no
18514       need_lib_prefix=no
18515       ;;
18516     freebsd-*)
18517       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18518       need_version=yes
18519       ;;
18520   esac
18521   shlibpath_var=LD_LIBRARY_PATH
18522   case $host_os in
18523   freebsd2*)
18524     shlibpath_overrides_runpath=yes
18525     ;;
18526   freebsd3.[01]* | freebsdelf3.[01]*)
18527     shlibpath_overrides_runpath=yes
18528     hardcode_into_libs=yes
18529     ;;
18530   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18531   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18532     shlibpath_overrides_runpath=no
18533     hardcode_into_libs=yes
18534     ;;
18535   *) # from 4.6 on, and DragonFly
18536     shlibpath_overrides_runpath=yes
18537     hardcode_into_libs=yes
18538     ;;
18539   esac
18540   ;;
18541
18542 gnu*)
18543   version_type=linux
18544   need_lib_prefix=no
18545   need_version=no
18546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18547   soname_spec='${libname}${release}${shared_ext}$major'
18548   shlibpath_var=LD_LIBRARY_PATH
18549   hardcode_into_libs=yes
18550   ;;
18551
18552 hpux9* | hpux10* | hpux11*)
18553   # Give a soname corresponding to the major version so that dld.sl refuses to
18554   # link against other versions.
18555   version_type=sunos
18556   need_lib_prefix=no
18557   need_version=no
18558   case $host_cpu in
18559   ia64*)
18560     shrext_cmds='.so'
18561     hardcode_into_libs=yes
18562     dynamic_linker="$host_os dld.so"
18563     shlibpath_var=LD_LIBRARY_PATH
18564     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566     soname_spec='${libname}${release}${shared_ext}$major'
18567     if test "X$HPUX_IA64_MODE" = X32; then
18568       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18569     else
18570       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18571     fi
18572     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18573     ;;
18574    hppa*64*)
18575      shrext_cmds='.sl'
18576      hardcode_into_libs=yes
18577      dynamic_linker="$host_os dld.sl"
18578      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18579      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18580      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581      soname_spec='${libname}${release}${shared_ext}$major'
18582      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18583      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18584      ;;
18585    *)
18586     shrext_cmds='.sl'
18587     dynamic_linker="$host_os dld.sl"
18588     shlibpath_var=SHLIB_PATH
18589     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18591     soname_spec='${libname}${release}${shared_ext}$major'
18592     ;;
18593   esac
18594   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18595   postinstall_cmds='chmod 555 $lib'
18596   ;;
18597
18598 interix[3-9]*)
18599   version_type=linux
18600   need_lib_prefix=no
18601   need_version=no
18602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18603   soname_spec='${libname}${release}${shared_ext}$major'
18604   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18605   shlibpath_var=LD_LIBRARY_PATH
18606   shlibpath_overrides_runpath=no
18607   hardcode_into_libs=yes
18608   ;;
18609
18610 irix5* | irix6* | nonstopux*)
18611   case $host_os in
18612     nonstopux*) version_type=nonstopux ;;
18613     *)
18614         if test "$lt_cv_prog_gnu_ld" = yes; then
18615                 version_type=linux
18616         else
18617                 version_type=irix
18618         fi ;;
18619   esac
18620   need_lib_prefix=no
18621   need_version=no
18622   soname_spec='${libname}${release}${shared_ext}$major'
18623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18624   case $host_os in
18625   irix5* | nonstopux*)
18626     libsuff= shlibsuff=
18627     ;;
18628   *)
18629     case $LD in # libtool.m4 will add one of these switches to LD
18630     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18631       libsuff= shlibsuff= libmagic=32-bit;;
18632     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18633       libsuff=32 shlibsuff=N32 libmagic=N32;;
18634     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18635       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18636     *) libsuff= shlibsuff= libmagic=never-match;;
18637     esac
18638     ;;
18639   esac
18640   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18641   shlibpath_overrides_runpath=no
18642   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18643   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18644   hardcode_into_libs=yes
18645   ;;
18646
18647 # No shared lib support for Linux oldld, aout, or coff.
18648 linux*oldld* | linux*aout* | linux*coff*)
18649   dynamic_linker=no
18650   ;;
18651
18652 # This must be Linux ELF.
18653 linux* | k*bsd*-gnu)
18654   version_type=linux
18655   need_lib_prefix=no
18656   need_version=no
18657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18658   soname_spec='${libname}${release}${shared_ext}$major'
18659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18660   shlibpath_var=LD_LIBRARY_PATH
18661   shlibpath_overrides_runpath=no
18662   # This implies no fast_install, which is unacceptable.
18663   # Some rework will be needed to allow for fast_install
18664   # before this can be enabled.
18665   hardcode_into_libs=yes
18666
18667   # Append ld.so.conf contents to the search path
18668   if test -f /etc/ld.so.conf; then
18669     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18670     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18671   fi
18672
18673   # We used to test for /lib/ld.so.1 and disable shared libraries on
18674   # powerpc, because MkLinux only supported shared libraries with the
18675   # GNU dynamic linker.  Since this was broken with cross compilers,
18676   # most powerpc-linux boxes support dynamic linking these days and
18677   # people can always --disable-shared, the test was removed, and we
18678   # assume the GNU/Linux dynamic linker is in use.
18679   dynamic_linker='GNU/Linux ld.so'
18680   ;;
18681
18682 netbsdelf*-gnu)
18683   version_type=linux
18684   need_lib_prefix=no
18685   need_version=no
18686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18687   soname_spec='${libname}${release}${shared_ext}$major'
18688   shlibpath_var=LD_LIBRARY_PATH
18689   shlibpath_overrides_runpath=no
18690   hardcode_into_libs=yes
18691   dynamic_linker='NetBSD ld.elf_so'
18692   ;;
18693
18694 netbsd*)
18695   version_type=sunos
18696   need_lib_prefix=no
18697   need_version=no
18698   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18700     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18701     dynamic_linker='NetBSD (a.out) ld.so'
18702   else
18703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18704     soname_spec='${libname}${release}${shared_ext}$major'
18705     dynamic_linker='NetBSD ld.elf_so'
18706   fi
18707   shlibpath_var=LD_LIBRARY_PATH
18708   shlibpath_overrides_runpath=yes
18709   hardcode_into_libs=yes
18710   ;;
18711
18712 newsos6)
18713   version_type=linux
18714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18715   shlibpath_var=LD_LIBRARY_PATH
18716   shlibpath_overrides_runpath=yes
18717   ;;
18718
18719 nto-qnx*)
18720   version_type=linux
18721   need_lib_prefix=no
18722   need_version=no
18723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18724   soname_spec='${libname}${release}${shared_ext}$major'
18725   shlibpath_var=LD_LIBRARY_PATH
18726   shlibpath_overrides_runpath=yes
18727   ;;
18728
18729 openbsd*)
18730   version_type=sunos
18731   sys_lib_dlsearch_path_spec="/usr/lib"
18732   need_lib_prefix=no
18733   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18734   case $host_os in
18735     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18736     *)                         need_version=no  ;;
18737   esac
18738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18739   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18740   shlibpath_var=LD_LIBRARY_PATH
18741   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18742     case $host_os in
18743       openbsd2.[89] | openbsd2.[89].*)
18744         shlibpath_overrides_runpath=no
18745         ;;
18746       *)
18747         shlibpath_overrides_runpath=yes
18748         ;;
18749       esac
18750   else
18751     shlibpath_overrides_runpath=yes
18752   fi
18753   ;;
18754
18755 os2*)
18756   libname_spec='$name'
18757   shrext_cmds=".dll"
18758   need_lib_prefix=no
18759   library_names_spec='$libname${shared_ext} $libname.a'
18760   dynamic_linker='OS/2 ld.exe'
18761   shlibpath_var=LIBPATH
18762   ;;
18763
18764 osf3* | osf4* | osf5*)
18765   version_type=osf
18766   need_lib_prefix=no
18767   need_version=no
18768   soname_spec='${libname}${release}${shared_ext}$major'
18769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770   shlibpath_var=LD_LIBRARY_PATH
18771   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18772   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18773   ;;
18774
18775 rdos*)
18776   dynamic_linker=no
18777   ;;
18778
18779 solaris*)
18780   version_type=linux
18781   need_lib_prefix=no
18782   need_version=no
18783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18784   soname_spec='${libname}${release}${shared_ext}$major'
18785   shlibpath_var=LD_LIBRARY_PATH
18786   shlibpath_overrides_runpath=yes
18787   hardcode_into_libs=yes
18788   # ldd complains unless libraries are executable
18789   postinstall_cmds='chmod +x $lib'
18790   ;;
18791
18792 sunos4*)
18793   version_type=sunos
18794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18795   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18796   shlibpath_var=LD_LIBRARY_PATH
18797   shlibpath_overrides_runpath=yes
18798   if test "$with_gnu_ld" = yes; then
18799     need_lib_prefix=no
18800   fi
18801   need_version=yes
18802   ;;
18803
18804 sysv4 | sysv4.3*)
18805   version_type=linux
18806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807   soname_spec='${libname}${release}${shared_ext}$major'
18808   shlibpath_var=LD_LIBRARY_PATH
18809   case $host_vendor in
18810     sni)
18811       shlibpath_overrides_runpath=no
18812       need_lib_prefix=no
18813       export_dynamic_flag_spec='${wl}-Blargedynsym'
18814       runpath_var=LD_RUN_PATH
18815       ;;
18816     siemens)
18817       need_lib_prefix=no
18818       ;;
18819     motorola)
18820       need_lib_prefix=no
18821       need_version=no
18822       shlibpath_overrides_runpath=no
18823       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18824       ;;
18825   esac
18826   ;;
18827
18828 sysv4*MP*)
18829   if test -d /usr/nec ;then
18830     version_type=linux
18831     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18832     soname_spec='$libname${shared_ext}.$major'
18833     shlibpath_var=LD_LIBRARY_PATH
18834   fi
18835   ;;
18836
18837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18838   version_type=freebsd-elf
18839   need_lib_prefix=no
18840   need_version=no
18841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18842   soname_spec='${libname}${release}${shared_ext}$major'
18843   shlibpath_var=LD_LIBRARY_PATH
18844   hardcode_into_libs=yes
18845   if test "$with_gnu_ld" = yes; then
18846     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18847     shlibpath_overrides_runpath=no
18848   else
18849     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18850     shlibpath_overrides_runpath=yes
18851     case $host_os in
18852       sco3.2v5*)
18853         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18854         ;;
18855     esac
18856   fi
18857   sys_lib_dlsearch_path_spec='/usr/lib'
18858   ;;
18859
18860 uts4*)
18861   version_type=linux
18862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863   soname_spec='${libname}${release}${shared_ext}$major'
18864   shlibpath_var=LD_LIBRARY_PATH
18865   ;;
18866
18867 *)
18868   dynamic_linker=no
18869   ;;
18870 esac
18871 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18872 echo "${ECHO_T}$dynamic_linker" >&6; }
18873 test "$dynamic_linker" = no && can_build_shared=no
18874
18875 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18876 if test "$GCC" = yes; then
18877   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18878 fi
18879
18880 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18882 hardcode_action_GCJ=
18883 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18884    test -n "$runpath_var_GCJ" || \
18885    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18886
18887   # We can hardcode non-existant directories.
18888   if test "$hardcode_direct_GCJ" != no &&
18889      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18890      # have to relink, otherwise we might link with an installed library
18891      # when we should be linking with a yet-to-be-installed one
18892      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18893      test "$hardcode_minus_L_GCJ" != no; then
18894     # Linking always hardcodes the temporary library directory.
18895     hardcode_action_GCJ=relink
18896   else
18897     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18898     hardcode_action_GCJ=immediate
18899   fi
18900 else
18901   # We cannot hardcode anything, or else we can only hardcode existing
18902   # directories.
18903   hardcode_action_GCJ=unsupported
18904 fi
18905 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18906 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18907
18908 if test "$hardcode_action_GCJ" = relink; then
18909   # Fast installation is not supported
18910   enable_fast_install=no
18911 elif test "$shlibpath_overrides_runpath" = yes ||
18912      test "$enable_shared" = no; then
18913   # Fast installation is not necessary
18914   enable_fast_install=needless
18915 fi
18916
18917
18918 # The else clause should only fire when bootstrapping the
18919 # libtool distribution, otherwise you forgot to ship ltmain.sh
18920 # with your package, and you will get complaints that there are
18921 # no rules to generate ltmain.sh.
18922 if test -f "$ltmain"; then
18923   # See if we are running on zsh, and set the options which allow our commands through
18924   # without removal of \ escapes.
18925   if test -n "${ZSH_VERSION+set}" ; then
18926     setopt NO_GLOB_SUBST
18927   fi
18928   # Now quote all the things that may contain metacharacters while being
18929   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18930   # variables and quote the copies for generation of the libtool script.
18931   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18932     SED SHELL STRIP \
18933     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18934     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18935     deplibs_check_method reload_flag reload_cmds need_locks \
18936     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18937     lt_cv_sys_global_symbol_to_c_name_address \
18938     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18939     old_postinstall_cmds old_postuninstall_cmds \
18940     compiler_GCJ \
18941     CC_GCJ \
18942     LD_GCJ \
18943     lt_prog_compiler_wl_GCJ \
18944     lt_prog_compiler_pic_GCJ \
18945     lt_prog_compiler_static_GCJ \
18946     lt_prog_compiler_no_builtin_flag_GCJ \
18947     export_dynamic_flag_spec_GCJ \
18948     thread_safe_flag_spec_GCJ \
18949     whole_archive_flag_spec_GCJ \
18950     enable_shared_with_static_runtimes_GCJ \
18951     old_archive_cmds_GCJ \
18952     old_archive_from_new_cmds_GCJ \
18953     predep_objects_GCJ \
18954     postdep_objects_GCJ \
18955     predeps_GCJ \
18956     postdeps_GCJ \
18957     compiler_lib_search_path_GCJ \
18958     archive_cmds_GCJ \
18959     archive_expsym_cmds_GCJ \
18960     postinstall_cmds_GCJ \
18961     postuninstall_cmds_GCJ \
18962     old_archive_from_expsyms_cmds_GCJ \
18963     allow_undefined_flag_GCJ \
18964     no_undefined_flag_GCJ \
18965     export_symbols_cmds_GCJ \
18966     hardcode_libdir_flag_spec_GCJ \
18967     hardcode_libdir_flag_spec_ld_GCJ \
18968     hardcode_libdir_separator_GCJ \
18969     hardcode_automatic_GCJ \
18970     module_cmds_GCJ \
18971     module_expsym_cmds_GCJ \
18972     lt_cv_prog_compiler_c_o_GCJ \
18973     fix_srcfile_path_GCJ \
18974     exclude_expsyms_GCJ \
18975     include_expsyms_GCJ; do
18976
18977     case $var in
18978     old_archive_cmds_GCJ | \
18979     old_archive_from_new_cmds_GCJ | \
18980     archive_cmds_GCJ | \
18981     archive_expsym_cmds_GCJ | \
18982     module_cmds_GCJ | \
18983     module_expsym_cmds_GCJ | \
18984     old_archive_from_expsyms_cmds_GCJ | \
18985     export_symbols_cmds_GCJ | \
18986     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18987     postinstall_cmds | postuninstall_cmds | \
18988     old_postinstall_cmds | old_postuninstall_cmds | \
18989     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18990       # Double-quote double-evaled strings.
18991       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18992       ;;
18993     *)
18994       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18995       ;;
18996     esac
18997   done
18998
18999   case $lt_echo in
19000   *'\$0 --fallback-echo"')
19001     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19002     ;;
19003   esac
19004
19005 cfgfile="$ofile"
19006
19007   cat <<__EOF__ >> "$cfgfile"
19008 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19009
19010 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19011
19012 # Shell to use when invoking shell scripts.
19013 SHELL=$lt_SHELL
19014
19015 # Whether or not to build shared libraries.
19016 build_libtool_libs=$enable_shared
19017
19018 # Whether or not to build static libraries.
19019 build_old_libs=$enable_static
19020
19021 # Whether or not to add -lc for building shared libraries.
19022 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19023
19024 # Whether or not to disallow shared libs when runtime libs are static
19025 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19026
19027 # Whether or not to optimize for fast installation.
19028 fast_install=$enable_fast_install
19029
19030 # The host system.
19031 host_alias=$host_alias
19032 host=$host
19033 host_os=$host_os
19034
19035 # The build system.
19036 build_alias=$build_alias
19037 build=$build
19038 build_os=$build_os
19039
19040 # An echo program that does not interpret backslashes.
19041 echo=$lt_echo
19042
19043 # The archiver.
19044 AR=$lt_AR
19045 AR_FLAGS=$lt_AR_FLAGS
19046
19047 # A C compiler.
19048 LTCC=$lt_LTCC
19049
19050 # LTCC compiler flags.
19051 LTCFLAGS=$lt_LTCFLAGS
19052
19053 # A language-specific compiler.
19054 CC=$lt_compiler_GCJ
19055
19056 # Is the compiler the GNU C compiler?
19057 with_gcc=$GCC_GCJ
19058
19059 # An ERE matcher.
19060 EGREP=$lt_EGREP
19061
19062 # The linker used to build libraries.
19063 LD=$lt_LD_GCJ
19064
19065 # Whether we need hard or soft links.
19066 LN_S=$lt_LN_S
19067
19068 # A BSD-compatible nm program.
19069 NM=$lt_NM
19070
19071 # A symbol stripping program
19072 STRIP=$lt_STRIP
19073
19074 # Used to examine libraries when file_magic_cmd begins "file"
19075 MAGIC_CMD=$MAGIC_CMD
19076
19077 # Used on cygwin: DLL creation program.
19078 DLLTOOL="$DLLTOOL"
19079
19080 # Used on cygwin: object dumper.
19081 OBJDUMP="$OBJDUMP"
19082
19083 # Used on cygwin: assembler.
19084 AS="$AS"
19085
19086 # The name of the directory that contains temporary libtool files.
19087 objdir=$objdir
19088
19089 # How to create reloadable object files.
19090 reload_flag=$lt_reload_flag
19091 reload_cmds=$lt_reload_cmds
19092
19093 # How to pass a linker flag through the compiler.
19094 wl=$lt_lt_prog_compiler_wl_GCJ
19095
19096 # Object file suffix (normally "o").
19097 objext="$ac_objext"
19098
19099 # Old archive suffix (normally "a").
19100 libext="$libext"
19101
19102 # Shared library suffix (normally ".so").
19103 shrext_cmds='$shrext_cmds'
19104
19105 # Executable file suffix (normally "").
19106 exeext="$exeext"
19107
19108 # Additional compiler flags for building library objects.
19109 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19110 pic_mode=$pic_mode
19111
19112 # What is the maximum length of a command?
19113 max_cmd_len=$lt_cv_sys_max_cmd_len
19114
19115 # Does compiler simultaneously support -c and -o options?
19116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19117
19118 # Must we lock files when doing compilation?
19119 need_locks=$lt_need_locks
19120
19121 # Do we need the lib prefix for modules?
19122 need_lib_prefix=$need_lib_prefix
19123
19124 # Do we need a version for libraries?
19125 need_version=$need_version
19126
19127 # Whether dlopen is supported.
19128 dlopen_support=$enable_dlopen
19129
19130 # Whether dlopen of programs is supported.
19131 dlopen_self=$enable_dlopen_self
19132
19133 # Whether dlopen of statically linked programs is supported.
19134 dlopen_self_static=$enable_dlopen_self_static
19135
19136 # Compiler flag to prevent dynamic linking.
19137 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19138
19139 # Compiler flag to turn off builtin functions.
19140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19141
19142 # Compiler flag to allow reflexive dlopens.
19143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19144
19145 # Compiler flag to generate shared objects directly from archives.
19146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19147
19148 # Compiler flag to generate thread-safe objects.
19149 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19150
19151 # Library versioning type.
19152 version_type=$version_type
19153
19154 # Format of library name prefix.
19155 libname_spec=$lt_libname_spec
19156
19157 # List of archive names.  First name is the real one, the rest are links.
19158 # The last name is the one that the linker finds with -lNAME.
19159 library_names_spec=$lt_library_names_spec
19160
19161 # The coded name of the library, if different from the real name.
19162 soname_spec=$lt_soname_spec
19163
19164 # Commands used to build and install an old-style archive.
19165 RANLIB=$lt_RANLIB
19166 old_archive_cmds=$lt_old_archive_cmds_GCJ
19167 old_postinstall_cmds=$lt_old_postinstall_cmds
19168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19169
19170 # Create an old-style archive from a shared archive.
19171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19172
19173 # Create a temporary old-style archive to link instead of a shared archive.
19174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19175
19176 # Commands used to build and install a shared archive.
19177 archive_cmds=$lt_archive_cmds_GCJ
19178 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19179 postinstall_cmds=$lt_postinstall_cmds
19180 postuninstall_cmds=$lt_postuninstall_cmds
19181
19182 # Commands used to build a loadable module (assumed same as above if empty)
19183 module_cmds=$lt_module_cmds_GCJ
19184 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19185
19186 # Commands to strip libraries.
19187 old_striplib=$lt_old_striplib
19188 striplib=$lt_striplib
19189
19190 # Dependencies to place before the objects being linked to create a
19191 # shared library.
19192 predep_objects=$lt_predep_objects_GCJ
19193
19194 # Dependencies to place after the objects being linked to create a
19195 # shared library.
19196 postdep_objects=$lt_postdep_objects_GCJ
19197
19198 # Dependencies to place before the objects being linked to create a
19199 # shared library.
19200 predeps=$lt_predeps_GCJ
19201
19202 # Dependencies to place after the objects being linked to create a
19203 # shared library.
19204 postdeps=$lt_postdeps_GCJ
19205
19206 # The library search path used internally by the compiler when linking
19207 # a shared library.
19208 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19209
19210 # Method to check whether dependent libraries are shared objects.
19211 deplibs_check_method=$lt_deplibs_check_method
19212
19213 # Command to use when deplibs_check_method == file_magic.
19214 file_magic_cmd=$lt_file_magic_cmd
19215
19216 # Flag that allows shared libraries with undefined symbols to be built.
19217 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19218
19219 # Flag that forces no undefined symbols.
19220 no_undefined_flag=$lt_no_undefined_flag_GCJ
19221
19222 # Commands used to finish a libtool library installation in a directory.
19223 finish_cmds=$lt_finish_cmds
19224
19225 # Same as above, but a single script fragment to be evaled but not shown.
19226 finish_eval=$lt_finish_eval
19227
19228 # Take the output of nm and produce a listing of raw symbols and C names.
19229 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19230
19231 # Transform the output of nm in a proper C declaration
19232 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19233
19234 # Transform the output of nm in a C name address pair
19235 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19236
19237 # This is the shared library runtime path variable.
19238 runpath_var=$runpath_var
19239
19240 # This is the shared library path variable.
19241 shlibpath_var=$shlibpath_var
19242
19243 # Is shlibpath searched before the hard-coded library search path?
19244 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19245
19246 # How to hardcode a shared library path into an executable.
19247 hardcode_action=$hardcode_action_GCJ
19248
19249 # Whether we should hardcode library paths into libraries.
19250 hardcode_into_libs=$hardcode_into_libs
19251
19252 # Flag to hardcode \$libdir into a binary during linking.
19253 # This must work even if \$libdir does not exist.
19254 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19255
19256 # If ld is used when linking, flag to hardcode \$libdir into
19257 # a binary during linking. This must work even if \$libdir does
19258 # not exist.
19259 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19260
19261 # Whether we need a single -rpath flag with a separated argument.
19262 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19263
19264 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19265 # resulting binary.
19266 hardcode_direct=$hardcode_direct_GCJ
19267
19268 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19269 # resulting binary.
19270 hardcode_minus_L=$hardcode_minus_L_GCJ
19271
19272 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19273 # the resulting binary.
19274 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19275
19276 # Set to yes if building a shared library automatically hardcodes DIR into the library
19277 # and all subsequent libraries and executables linked against it.
19278 hardcode_automatic=$hardcode_automatic_GCJ
19279
19280 # Variables whose values should be saved in libtool wrapper scripts and
19281 # restored at relink time.
19282 variables_saved_for_relink="$variables_saved_for_relink"
19283
19284 # Whether libtool must link a program against all its dependency libraries.
19285 link_all_deplibs=$link_all_deplibs_GCJ
19286
19287 # Compile-time system search path for libraries
19288 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19289
19290 # Run-time system search path for libraries
19291 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19292
19293 # Fix the shell variable \$srcfile for the compiler.
19294 fix_srcfile_path=$lt_fix_srcfile_path
19295
19296 # Set to yes if exported symbols are required.
19297 always_export_symbols=$always_export_symbols_GCJ
19298
19299 # The commands to list exported symbols.
19300 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19301
19302 # The commands to extract the exported symbol list from a shared archive.
19303 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19304
19305 # Symbols that should not be listed in the preloaded symbols.
19306 exclude_expsyms=$lt_exclude_expsyms_GCJ
19307
19308 # Symbols that must always be exported.
19309 include_expsyms=$lt_include_expsyms_GCJ
19310
19311 # ### END LIBTOOL TAG CONFIG: $tagname
19312
19313 __EOF__
19314
19315
19316 else
19317   # If there is no Makefile yet, we rely on a make rule to execute
19318   # `config.status --recheck' to rerun these tests and create the
19319   # libtool script then.
19320   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19321   if test -f "$ltmain_in"; then
19322     test -f Makefile && make "$ltmain"
19323   fi
19324 fi
19325
19326
19327 ac_ext=c
19328 ac_cpp='$CPP $CPPFLAGS'
19329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19332
19333 CC="$lt_save_CC"
19334
19335         else
19336           tagname=""
19337         fi
19338         ;;
19339
19340       RC)
19341
19342
19343 # Source file extension for RC test sources.
19344 ac_ext=rc
19345
19346 # Object file extension for compiled RC test sources.
19347 objext=o
19348 objext_RC=$objext
19349
19350 # Code to be used in simple compile tests
19351 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19352
19353 # Code to be used in simple link tests
19354 lt_simple_link_test_code="$lt_simple_compile_test_code"
19355
19356 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19357
19358 # If no C compiler was specified, use CC.
19359 LTCC=${LTCC-"$CC"}
19360
19361 # If no C compiler flags were specified, use CFLAGS.
19362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19363
19364 # Allow CC to be a program name with arguments.
19365 compiler=$CC
19366
19367
19368 # save warnings/boilerplate of simple test code
19369 ac_outfile=conftest.$ac_objext
19370 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19372 _lt_compiler_boilerplate=`cat conftest.err`
19373 $rm conftest*
19374
19375 ac_outfile=conftest.$ac_objext
19376 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19378 _lt_linker_boilerplate=`cat conftest.err`
19379 $rm conftest*
19380
19381
19382 # Allow CC to be a program name with arguments.
19383 lt_save_CC="$CC"
19384 CC=${RC-"windres"}
19385 compiler=$CC
19386 compiler_RC=$CC
19387 for cc_temp in $compiler""; do
19388   case $cc_temp in
19389     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19390     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19391     \-*) ;;
19392     *) break;;
19393   esac
19394 done
19395 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19396
19397 lt_cv_prog_compiler_c_o_RC=yes
19398
19399 # The else clause should only fire when bootstrapping the
19400 # libtool distribution, otherwise you forgot to ship ltmain.sh
19401 # with your package, and you will get complaints that there are
19402 # no rules to generate ltmain.sh.
19403 if test -f "$ltmain"; then
19404   # See if we are running on zsh, and set the options which allow our commands through
19405   # without removal of \ escapes.
19406   if test -n "${ZSH_VERSION+set}" ; then
19407     setopt NO_GLOB_SUBST
19408   fi
19409   # Now quote all the things that may contain metacharacters while being
19410   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19411   # variables and quote the copies for generation of the libtool script.
19412   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19413     SED SHELL STRIP \
19414     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19415     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19416     deplibs_check_method reload_flag reload_cmds need_locks \
19417     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19418     lt_cv_sys_global_symbol_to_c_name_address \
19419     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19420     old_postinstall_cmds old_postuninstall_cmds \
19421     compiler_RC \
19422     CC_RC \
19423     LD_RC \
19424     lt_prog_compiler_wl_RC \
19425     lt_prog_compiler_pic_RC \
19426     lt_prog_compiler_static_RC \
19427     lt_prog_compiler_no_builtin_flag_RC \
19428     export_dynamic_flag_spec_RC \
19429     thread_safe_flag_spec_RC \
19430     whole_archive_flag_spec_RC \
19431     enable_shared_with_static_runtimes_RC \
19432     old_archive_cmds_RC \
19433     old_archive_from_new_cmds_RC \
19434     predep_objects_RC \
19435     postdep_objects_RC \
19436     predeps_RC \
19437     postdeps_RC \
19438     compiler_lib_search_path_RC \
19439     archive_cmds_RC \
19440     archive_expsym_cmds_RC \
19441     postinstall_cmds_RC \
19442     postuninstall_cmds_RC \
19443     old_archive_from_expsyms_cmds_RC \
19444     allow_undefined_flag_RC \
19445     no_undefined_flag_RC \
19446     export_symbols_cmds_RC \
19447     hardcode_libdir_flag_spec_RC \
19448     hardcode_libdir_flag_spec_ld_RC \
19449     hardcode_libdir_separator_RC \
19450     hardcode_automatic_RC \
19451     module_cmds_RC \
19452     module_expsym_cmds_RC \
19453     lt_cv_prog_compiler_c_o_RC \
19454     fix_srcfile_path_RC \
19455     exclude_expsyms_RC \
19456     include_expsyms_RC; do
19457
19458     case $var in
19459     old_archive_cmds_RC | \
19460     old_archive_from_new_cmds_RC | \
19461     archive_cmds_RC | \
19462     archive_expsym_cmds_RC | \
19463     module_cmds_RC | \
19464     module_expsym_cmds_RC | \
19465     old_archive_from_expsyms_cmds_RC | \
19466     export_symbols_cmds_RC | \
19467     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19468     postinstall_cmds | postuninstall_cmds | \
19469     old_postinstall_cmds | old_postuninstall_cmds | \
19470     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19471       # Double-quote double-evaled strings.
19472       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19473       ;;
19474     *)
19475       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19476       ;;
19477     esac
19478   done
19479
19480   case $lt_echo in
19481   *'\$0 --fallback-echo"')
19482     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19483     ;;
19484   esac
19485
19486 cfgfile="$ofile"
19487
19488   cat <<__EOF__ >> "$cfgfile"
19489 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19490
19491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19492
19493 # Shell to use when invoking shell scripts.
19494 SHELL=$lt_SHELL
19495
19496 # Whether or not to build shared libraries.
19497 build_libtool_libs=$enable_shared
19498
19499 # Whether or not to build static libraries.
19500 build_old_libs=$enable_static
19501
19502 # Whether or not to add -lc for building shared libraries.
19503 build_libtool_need_lc=$archive_cmds_need_lc_RC
19504
19505 # Whether or not to disallow shared libs when runtime libs are static
19506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19507
19508 # Whether or not to optimize for fast installation.
19509 fast_install=$enable_fast_install
19510
19511 # The host system.
19512 host_alias=$host_alias
19513 host=$host
19514 host_os=$host_os
19515
19516 # The build system.
19517 build_alias=$build_alias
19518 build=$build
19519 build_os=$build_os
19520
19521 # An echo program that does not interpret backslashes.
19522 echo=$lt_echo
19523
19524 # The archiver.
19525 AR=$lt_AR
19526 AR_FLAGS=$lt_AR_FLAGS
19527
19528 # A C compiler.
19529 LTCC=$lt_LTCC
19530
19531 # LTCC compiler flags.
19532 LTCFLAGS=$lt_LTCFLAGS
19533
19534 # A language-specific compiler.
19535 CC=$lt_compiler_RC
19536
19537 # Is the compiler the GNU C compiler?
19538 with_gcc=$GCC_RC
19539
19540 # An ERE matcher.
19541 EGREP=$lt_EGREP
19542
19543 # The linker used to build libraries.
19544 LD=$lt_LD_RC
19545
19546 # Whether we need hard or soft links.
19547 LN_S=$lt_LN_S
19548
19549 # A BSD-compatible nm program.
19550 NM=$lt_NM
19551
19552 # A symbol stripping program
19553 STRIP=$lt_STRIP
19554
19555 # Used to examine libraries when file_magic_cmd begins "file"
19556 MAGIC_CMD=$MAGIC_CMD
19557
19558 # Used on cygwin: DLL creation program.
19559 DLLTOOL="$DLLTOOL"
19560
19561 # Used on cygwin: object dumper.
19562 OBJDUMP="$OBJDUMP"
19563
19564 # Used on cygwin: assembler.
19565 AS="$AS"
19566
19567 # The name of the directory that contains temporary libtool files.
19568 objdir=$objdir
19569
19570 # How to create reloadable object files.
19571 reload_flag=$lt_reload_flag
19572 reload_cmds=$lt_reload_cmds
19573
19574 # How to pass a linker flag through the compiler.
19575 wl=$lt_lt_prog_compiler_wl_RC
19576
19577 # Object file suffix (normally "o").
19578 objext="$ac_objext"
19579
19580 # Old archive suffix (normally "a").
19581 libext="$libext"
19582
19583 # Shared library suffix (normally ".so").
19584 shrext_cmds='$shrext_cmds'
19585
19586 # Executable file suffix (normally "").
19587 exeext="$exeext"
19588
19589 # Additional compiler flags for building library objects.
19590 pic_flag=$lt_lt_prog_compiler_pic_RC
19591 pic_mode=$pic_mode
19592
19593 # What is the maximum length of a command?
19594 max_cmd_len=$lt_cv_sys_max_cmd_len
19595
19596 # Does compiler simultaneously support -c and -o options?
19597 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19598
19599 # Must we lock files when doing compilation?
19600 need_locks=$lt_need_locks
19601
19602 # Do we need the lib prefix for modules?
19603 need_lib_prefix=$need_lib_prefix
19604
19605 # Do we need a version for libraries?
19606 need_version=$need_version
19607
19608 # Whether dlopen is supported.
19609 dlopen_support=$enable_dlopen
19610
19611 # Whether dlopen of programs is supported.
19612 dlopen_self=$enable_dlopen_self
19613
19614 # Whether dlopen of statically linked programs is supported.
19615 dlopen_self_static=$enable_dlopen_self_static
19616
19617 # Compiler flag to prevent dynamic linking.
19618 link_static_flag=$lt_lt_prog_compiler_static_RC
19619
19620 # Compiler flag to turn off builtin functions.
19621 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19622
19623 # Compiler flag to allow reflexive dlopens.
19624 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19625
19626 # Compiler flag to generate shared objects directly from archives.
19627 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19628
19629 # Compiler flag to generate thread-safe objects.
19630 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19631
19632 # Library versioning type.
19633 version_type=$version_type
19634
19635 # Format of library name prefix.
19636 libname_spec=$lt_libname_spec
19637
19638 # List of archive names.  First name is the real one, the rest are links.
19639 # The last name is the one that the linker finds with -lNAME.
19640 library_names_spec=$lt_library_names_spec
19641
19642 # The coded name of the library, if different from the real name.
19643 soname_spec=$lt_soname_spec
19644
19645 # Commands used to build and install an old-style archive.
19646 RANLIB=$lt_RANLIB
19647 old_archive_cmds=$lt_old_archive_cmds_RC
19648 old_postinstall_cmds=$lt_old_postinstall_cmds
19649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19650
19651 # Create an old-style archive from a shared archive.
19652 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19653
19654 # Create a temporary old-style archive to link instead of a shared archive.
19655 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19656
19657 # Commands used to build and install a shared archive.
19658 archive_cmds=$lt_archive_cmds_RC
19659 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19660 postinstall_cmds=$lt_postinstall_cmds
19661 postuninstall_cmds=$lt_postuninstall_cmds
19662
19663 # Commands used to build a loadable module (assumed same as above if empty)
19664 module_cmds=$lt_module_cmds_RC
19665 module_expsym_cmds=$lt_module_expsym_cmds_RC
19666
19667 # Commands to strip libraries.
19668 old_striplib=$lt_old_striplib
19669 striplib=$lt_striplib
19670
19671 # Dependencies to place before the objects being linked to create a
19672 # shared library.
19673 predep_objects=$lt_predep_objects_RC
19674
19675 # Dependencies to place after the objects being linked to create a
19676 # shared library.
19677 postdep_objects=$lt_postdep_objects_RC
19678
19679 # Dependencies to place before the objects being linked to create a
19680 # shared library.
19681 predeps=$lt_predeps_RC
19682
19683 # Dependencies to place after the objects being linked to create a
19684 # shared library.
19685 postdeps=$lt_postdeps_RC
19686
19687 # The library search path used internally by the compiler when linking
19688 # a shared library.
19689 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19690
19691 # Method to check whether dependent libraries are shared objects.
19692 deplibs_check_method=$lt_deplibs_check_method
19693
19694 # Command to use when deplibs_check_method == file_magic.
19695 file_magic_cmd=$lt_file_magic_cmd
19696
19697 # Flag that allows shared libraries with undefined symbols to be built.
19698 allow_undefined_flag=$lt_allow_undefined_flag_RC
19699
19700 # Flag that forces no undefined symbols.
19701 no_undefined_flag=$lt_no_undefined_flag_RC
19702
19703 # Commands used to finish a libtool library installation in a directory.
19704 finish_cmds=$lt_finish_cmds
19705
19706 # Same as above, but a single script fragment to be evaled but not shown.
19707 finish_eval=$lt_finish_eval
19708
19709 # Take the output of nm and produce a listing of raw symbols and C names.
19710 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19711
19712 # Transform the output of nm in a proper C declaration
19713 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19714
19715 # Transform the output of nm in a C name address pair
19716 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19717
19718 # This is the shared library runtime path variable.
19719 runpath_var=$runpath_var
19720
19721 # This is the shared library path variable.
19722 shlibpath_var=$shlibpath_var
19723
19724 # Is shlibpath searched before the hard-coded library search path?
19725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19726
19727 # How to hardcode a shared library path into an executable.
19728 hardcode_action=$hardcode_action_RC
19729
19730 # Whether we should hardcode library paths into libraries.
19731 hardcode_into_libs=$hardcode_into_libs
19732
19733 # Flag to hardcode \$libdir into a binary during linking.
19734 # This must work even if \$libdir does not exist.
19735 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19736
19737 # If ld is used when linking, flag to hardcode \$libdir into
19738 # a binary during linking. This must work even if \$libdir does
19739 # not exist.
19740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19741
19742 # Whether we need a single -rpath flag with a separated argument.
19743 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19744
19745 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19746 # resulting binary.
19747 hardcode_direct=$hardcode_direct_RC
19748
19749 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19750 # resulting binary.
19751 hardcode_minus_L=$hardcode_minus_L_RC
19752
19753 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19754 # the resulting binary.
19755 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19756
19757 # Set to yes if building a shared library automatically hardcodes DIR into the library
19758 # and all subsequent libraries and executables linked against it.
19759 hardcode_automatic=$hardcode_automatic_RC
19760
19761 # Variables whose values should be saved in libtool wrapper scripts and
19762 # restored at relink time.
19763 variables_saved_for_relink="$variables_saved_for_relink"
19764
19765 # Whether libtool must link a program against all its dependency libraries.
19766 link_all_deplibs=$link_all_deplibs_RC
19767
19768 # Compile-time system search path for libraries
19769 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19770
19771 # Run-time system search path for libraries
19772 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19773
19774 # Fix the shell variable \$srcfile for the compiler.
19775 fix_srcfile_path=$lt_fix_srcfile_path
19776
19777 # Set to yes if exported symbols are required.
19778 always_export_symbols=$always_export_symbols_RC
19779
19780 # The commands to list exported symbols.
19781 export_symbols_cmds=$lt_export_symbols_cmds_RC
19782
19783 # The commands to extract the exported symbol list from a shared archive.
19784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19785
19786 # Symbols that should not be listed in the preloaded symbols.
19787 exclude_expsyms=$lt_exclude_expsyms_RC
19788
19789 # Symbols that must always be exported.
19790 include_expsyms=$lt_include_expsyms_RC
19791
19792 # ### END LIBTOOL TAG CONFIG: $tagname
19793
19794 __EOF__
19795
19796
19797 else
19798   # If there is no Makefile yet, we rely on a make rule to execute
19799   # `config.status --recheck' to rerun these tests and create the
19800   # libtool script then.
19801   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19802   if test -f "$ltmain_in"; then
19803     test -f Makefile && make "$ltmain"
19804   fi
19805 fi
19806
19807
19808 ac_ext=c
19809 ac_cpp='$CPP $CPPFLAGS'
19810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19813
19814 CC="$lt_save_CC"
19815
19816         ;;
19817
19818       *)
19819         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19820 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19821    { (exit 1); exit 1; }; }
19822         ;;
19823       esac
19824
19825       # Append the new tag name to the list of available tags.
19826       if test -n "$tagname" ; then
19827       available_tags="$available_tags $tagname"
19828     fi
19829     fi
19830   done
19831   IFS="$lt_save_ifs"
19832
19833   # Now substitute the updated list of available tags.
19834   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19835     mv "${ofile}T" "$ofile"
19836     chmod +x "$ofile"
19837   else
19838     rm -f "${ofile}T"
19839     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19840 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19841    { (exit 1); exit 1; }; }
19842   fi
19843 fi
19844
19845
19846
19847 # This can be used to rebuild libtool when needed
19848 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19849
19850 # Always use our own libtool.
19851 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19852
19853 # Prevent multiple expansion
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874 # AC_SUBST(LD)
19875 # AC_SUBST(CXXLD)
19876
19877 ######################################################################
19878 # the following interpret 'with' and 'enable' switches.
19879 # some of these switches trigger checks that can be found further
19880 # below in this configure script
19881
19882 # does the user want aggressive optimization?
19883 # Check whether --enable-debug was given.
19884 if test "${enable_debug+set}" = set; then
19885   enableval=$enable_debug; debug=$enableval
19886 else
19887   debug=no
19888 fi
19889
19890
19891 # does the user want to build demo applications?
19892 # Check whether --enable-apps was given.
19893 if test "${enable_apps+set}" = set; then
19894   enableval=$enable_apps; enable_apps=$enableval
19895 else
19896   enable_apps="yes"
19897 fi
19898
19899  if test x"$enable_apps" = x"yes"; then
19900   BUILD_APPS_TRUE=
19901   BUILD_APPS_FALSE='#'
19902 else
19903   BUILD_APPS_TRUE='#'
19904   BUILD_APPS_FALSE=
19905 fi
19906
19907
19908
19909 # the following checks reflect the dependencies of OpenCV on other
19910 # libraries that do the actual work for video I/O or windowing
19911 # subsystem. On some platforms there are ambiguities that a user
19912 # can influence. There is also additional logic to be found in code
19913 # later code lines that tries to do sensible decisions on what to use
19914
19915 # does the user want to compile python modules as well?
19916
19917 # Check whether --with-swig was given.
19918 if test "${with_swig+set}" = set; then
19919   withval=$with_swig; with_swig=$withval
19920 else
19921   with_swig=no
19922 fi
19923
19924
19925 # does the user want to compile python modules as well?
19926
19927 # Check whether --with-python was given.
19928 if test "${with_python+set}" = set; then
19929   withval=$with_python; with_python=$withval
19930 else
19931   with_python=yes
19932 fi
19933
19934
19935 # does the user want to compile octave modules as well?
19936
19937 # Check whether --with-octave was given.
19938 if test "${with_octave+set}" = set; then
19939   withval=$with_octave; with_octave=$withval
19940 else
19941   with_octave=no
19942 fi
19943
19944
19945 # does the user want OpenCV to use xine video libraries?
19946
19947 # Check whether --with-xine was given.
19948 if test "${with_xine+set}" = set; then
19949   withval=$with_xine; with_xine=$withval
19950 else
19951   with_xine=no
19952 fi
19953
19954
19955 # does the user want OpenCV to use the gstreamer multimedia framework?
19956
19957 # Check whether --with-gstreamer was given.
19958 if test "${with_gstreamer+set}" = set; then
19959   withval=$with_gstreamer; with_gstreamer=$withval
19960 else
19961   with_gstreamer=no
19962 fi
19963
19964
19965 # does the user want OpenCV to use ffmpeg video libraries?
19966
19967 # Check whether --with-ffmpeg was given.
19968 if test "${with_ffmpeg+set}" = set; then
19969   withval=$with_ffmpeg; with_ffmpeg=$withval
19970 else
19971   with_ffmpeg=auto
19972 fi
19973
19974
19975 # does the user want OpenCV to use libraw1394/libdc1394 for video input?
19976
19977 # Check whether --with-1394libs was given.
19978 if test "${with_1394libs+set}" = set; then
19979   withval=$with_1394libs; with_1394libs=$withval
19980 else
19981   with_1394libs=auto
19982 fi
19983
19984
19985 # does the user want OpenCV to use the video4linux kernel module?
19986
19987 # Check whether --with-v4l was given.
19988 if test "${with_v4l+set}" = set; then
19989   withval=$with_v4l; with_v4l=$withval
19990 else
19991   with_v4l=auto
19992 fi
19993
19994
19995 # does the user want OpenCV to use image libraries from OS X 10.4?
19996
19997 # Check whether --with-imageio was given.
19998 if test "${with_imageio+set}" = set; then
19999   withval=$with_imageio; with_imageio=$withval
20000 else
20001   with_imageio=yes
20002 fi
20003
20004
20005 # does the user want OpenCV to use QuickTime video libraries?
20006
20007 # Check whether --with-quicktime was given.
20008 if test "${with_quicktime+set}" = set; then
20009   withval=$with_quicktime; with_quicktime=$withval
20010 else
20011   with_quicktime=yes
20012 fi
20013
20014
20015 # does the user want OpenCV to use the Carbon GUI of Mac OS X?
20016
20017 # Check whether --with-carbon was given.
20018 if test "${with_carbon+set}" = set; then
20019   withval=$with_carbon; with_carbon=$withval
20020 else
20021   with_carbon=yes
20022 fi
20023
20024
20025 # does the user want OpenCV to use GTK+ 2.0 for the GUI?
20026
20027 # Check whether --with-gtk was given.
20028 if test "${with_gtk+set}" = set; then
20029   withval=$with_gtk; with_gtk=$withval
20030 else
20031   with_gtk=auto
20032 fi
20033
20034
20035 # does the user want OpenCV to use gthread for GTK+ threaded HighGUI?
20036
20037 # Check whether --with-gthread was given.
20038 if test "${with_gthread+set}" = set; then
20039   withval=$with_gthread; with_gthread=$withval
20040 else
20041   with_gthread=auto
20042 fi
20043
20044
20045
20046 ######################################################################
20047 # getting the code to compile
20048
20049 # cure annoying default arguments for CFLAGS and CXXFLAGS
20050 # that autoconf automatically sets in GNU environments if
20051 # no CFLAGS or CXXFLAGS were manually given
20052 if test x"$CFLAGS" = "x-g -O2" ; then
20053     CFLAGS=""
20054 fi
20055 if test x"$CXXFLAGS" = "x-g -O2" ; then
20056     CXXFLAGS=""
20057 fi
20058
20059 # set the default c++ flags for all the compilations
20060 # we don't append CXXFLAGS, because it's done at compile time
20061 # see http://www.gnu.org/software/libtool/manual/automake/Flag-Variables-Ordering.html
20062 # for more information
20063 DEFAULT_CXXFLAGS=""
20064
20065 # see if the user wants aggressive optimizations of the code,
20066 # check whether to include debugging code
20067 { echo "$as_me:$LINENO: checking whether to build debug version (no optimization)" >&5
20068 echo $ECHO_N "checking whether to build debug version (no optimization)... $ECHO_C" >&6; }
20069 if test x"$debug" = "xyes"; then
20070     { echo "$as_me:$LINENO: result: yes" >&5
20071 echo "${ECHO_T}yes" >&6; }
20072     if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20073         CPPFLAGS="-DDEBUG -D_DEBUG $CPPFLAGS"
20074         DEFAULT_CXXFLAGS="-ggdb -O0 $DEFAULT_CXXFLAGS"
20075     fi
20076 else
20077     { echo "$as_me:$LINENO: result: no" >&5
20078 echo "${ECHO_T}no" >&6; }
20079     { echo "$as_me:$LINENO: TARGET=$target " >&5
20080 echo "$as_me: TARGET=$target " >&6;}
20081     case $target in
20082     i*86-apple-*)
20083         if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20084             # apples g++ fails with '-march=i686' and there are no apple machines older than prescott/core anyway
20085             DEFAULT_CXXFLAGS="-g -march=prescott -ffast-math -fomit-frame-pointer $DEFAULT_CXXFLAGS"
20086         fi
20087         ;;
20088     i686-*-*)
20089         if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20090           # default to i686/pentiumpro -- people can override this
20091           DEFAULT_CXXFLAGS="-g -march=i686 -ffast-math -fomit-frame-pointer $DEFAULT_CXXFLAGS"
20092         fi
20093         ;;
20094     powerpc-*-*)
20095         if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20096             # default to G3 processors -- people can override this
20097             DEFAULT_CXXFLAGS="-g -mcpu=G3 -mtune=G5 -fomit-frame-pointer $DEFAULT_CXXFLAGS"
20098         fi
20099         ;;
20100     *-*-*)
20101         if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20102             DEFAULT_CXXFLAGS="-fomit-frame-pointer $DEFAULT_CXXFLAGS"
20103         fi
20104         ;;
20105     esac
20106
20107     CPPFLAGS="-DNDEBUG $CPPFLAGS"
20108     DEFAULT_CXXFLAGS="-O3 $DEFAULT_CXXFLAGS"
20109 fi
20110
20111 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20112     PY_CXXFLAGS="-Wall -pipe $DEFAULT_CXXFLAGS"
20113     OCT_CXXFLAGS="-fno-strict-aliasing -Wall -Wno-uninitialized -pipe $DEFAULT_CXXFLAGS"
20114     DEF_CXXFLAGS="-Wall -fno-rtti -pipe $DEFAULT_CXXFLAGS"
20115 else
20116     PY_CXXFLAGS="$DEFAULT_CXXFLAGS"
20117     OCT_CXXFLAGS="$DEFAULT_CXXFLAGS"
20118     DEF_CXXFLAGS="$DEFAULT_CXXFLAGS"
20119 fi
20120
20121
20122
20123
20124 # add libm because it is used by several libraries and OpenCV itself
20125
20126 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
20127 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
20128 if test "${ac_cv_lib_m_pow+set}" = set; then
20129   echo $ECHO_N "(cached) $ECHO_C" >&6
20130 else
20131   ac_check_lib_save_LIBS=$LIBS
20132 LIBS="-lm  $LIBS"
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h.  */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h.  */
20139
20140 /* Override any GCC internal prototype to avoid an error.
20141    Use char because int might match the return type of a GCC
20142    builtin and then its argument prototype would still apply.  */
20143 #ifdef __cplusplus
20144 extern "C"
20145 #endif
20146 char pow ();
20147 int
20148 main ()
20149 {
20150 return pow ();
20151   ;
20152   return 0;
20153 }
20154 _ACEOF
20155 rm -f conftest.$ac_objext conftest$ac_exeext
20156 if { (ac_try="$ac_link"
20157 case "(($ac_try" in
20158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159   *) ac_try_echo=$ac_try;;
20160 esac
20161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20162   (eval "$ac_link") 2>conftest.er1
20163   ac_status=$?
20164   grep -v '^ *+' conftest.er1 >conftest.err
20165   rm -f conftest.er1
20166   cat conftest.err >&5
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); } && {
20169          test -z "$ac_c_werror_flag" ||
20170          test ! -s conftest.err
20171        } && test -s conftest$ac_exeext &&
20172        $as_test_x conftest$ac_exeext; then
20173   ac_cv_lib_m_pow=yes
20174 else
20175   echo "$as_me: failed program was:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20177
20178         ac_cv_lib_m_pow=no
20179 fi
20180
20181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20182       conftest$ac_exeext conftest.$ac_ext
20183 LIBS=$ac_check_lib_save_LIBS
20184 fi
20185 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20186 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
20187 if test $ac_cv_lib_m_pow = yes; then
20188   cat >>confdefs.h <<_ACEOF
20189 #define HAVE_LIBM 1
20190 _ACEOF
20191
20192   LIBS="-lm $LIBS"
20193
20194 fi
20195
20196
20197 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20200   echo $ECHO_N "(cached) $ECHO_C" >&6
20201 else
20202   ac_check_lib_save_LIBS=$LIBS
20203 LIBS="-ldl  $LIBS"
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h.  */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h.  */
20210
20211 /* Override any GCC internal prototype to avoid an error.
20212    Use char because int might match the return type of a GCC
20213    builtin and then its argument prototype would still apply.  */
20214 #ifdef __cplusplus
20215 extern "C"
20216 #endif
20217 char dlopen ();
20218 int
20219 main ()
20220 {
20221 return dlopen ();
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 rm -f conftest.$ac_objext conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230   *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233   (eval "$ac_link") 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } && {
20240          test -z "$ac_c_werror_flag" ||
20241          test ! -s conftest.err
20242        } && test -s conftest$ac_exeext &&
20243        $as_test_x conftest$ac_exeext; then
20244   ac_cv_lib_dl_dlopen=yes
20245 else
20246   echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249         ac_cv_lib_dl_dlopen=no
20250 fi
20251
20252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20253       conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_check_lib_save_LIBS
20255 fi
20256 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20258 if test $ac_cv_lib_dl_dlopen = yes; then
20259   cat >>confdefs.h <<_ACEOF
20260 #define HAVE_LIBDL 1
20261 _ACEOF
20262
20263   LIBS="-ldl $LIBS"
20264
20265 fi
20266
20267
20268 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20269 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20270 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20271   echo $ECHO_N "(cached) $ECHO_C" >&6
20272 else
20273   ac_check_lib_save_LIBS=$LIBS
20274 LIBS="-lpthread  $LIBS"
20275 cat >conftest.$ac_ext <<_ACEOF
20276 /* confdefs.h.  */
20277 _ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h.  */
20281
20282 /* Override any GCC internal prototype to avoid an error.
20283    Use char because int might match the return type of a GCC
20284    builtin and then its argument prototype would still apply.  */
20285 #ifdef __cplusplus
20286 extern "C"
20287 #endif
20288 char pthread_create ();
20289 int
20290 main ()
20291 {
20292 return pthread_create ();
20293   ;
20294   return 0;
20295 }
20296 _ACEOF
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (ac_try="$ac_link"
20299 case "(($ac_try" in
20300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301   *) ac_try_echo=$ac_try;;
20302 esac
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304   (eval "$ac_link") 2>conftest.er1
20305   ac_status=$?
20306   grep -v '^ *+' conftest.er1 >conftest.err
20307   rm -f conftest.er1
20308   cat conftest.err >&5
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); } && {
20311          test -z "$ac_c_werror_flag" ||
20312          test ! -s conftest.err
20313        } && test -s conftest$ac_exeext &&
20314        $as_test_x conftest$ac_exeext; then
20315   ac_cv_lib_pthread_pthread_create=yes
20316 else
20317   echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320         ac_cv_lib_pthread_pthread_create=no
20321 fi
20322
20323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20324       conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20326 fi
20327 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20328 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20329 if test $ac_cv_lib_pthread_pthread_create = yes; then
20330   cat >>confdefs.h <<_ACEOF
20331 #define HAVE_LIBPTHREAD 1
20332 _ACEOF
20333
20334   LIBS="-lpthread $LIBS"
20335
20336 fi
20337
20338
20339 # check endianness
20340 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20341 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20342 if test "${ac_cv_c_bigendian+set}" = set; then
20343   echo $ECHO_N "(cached) $ECHO_C" >&6
20344 else
20345   # See if sys/param.h defines the BYTE_ORDER macro.
20346 cat >conftest.$ac_ext <<_ACEOF
20347 /* confdefs.h.  */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h.  */
20352 #include <sys/types.h>
20353 #include <sys/param.h>
20354
20355 int
20356 main ()
20357 {
20358 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20359         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20360  bogus endian macros
20361 #endif
20362
20363   ;
20364   return 0;
20365 }
20366 _ACEOF
20367 rm -f conftest.$ac_objext
20368 if { (ac_try="$ac_compile"
20369 case "(($ac_try" in
20370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371   *) ac_try_echo=$ac_try;;
20372 esac
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374   (eval "$ac_compile") 2>conftest.er1
20375   ac_status=$?
20376   grep -v '^ *+' conftest.er1 >conftest.err
20377   rm -f conftest.er1
20378   cat conftest.err >&5
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); } && {
20381          test -z "$ac_c_werror_flag" ||
20382          test ! -s conftest.err
20383        } && test -s conftest.$ac_objext; then
20384   # It does; now see whether it defined to BIG_ENDIAN or not.
20385 cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391 #include <sys/types.h>
20392 #include <sys/param.h>
20393
20394 int
20395 main ()
20396 {
20397 #if BYTE_ORDER != BIG_ENDIAN
20398  not big endian
20399 #endif
20400
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (ac_try="$ac_compile"
20407 case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_compile") 2>conftest.er1
20413   ac_status=$?
20414   grep -v '^ *+' conftest.er1 >conftest.err
20415   rm -f conftest.er1
20416   cat conftest.err >&5
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } && {
20419          test -z "$ac_c_werror_flag" ||
20420          test ! -s conftest.err
20421        } && test -s conftest.$ac_objext; then
20422   ac_cv_c_bigendian=yes
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427         ac_cv_c_bigendian=no
20428 fi
20429
20430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 else
20432   echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435         # It does not; compile a test program.
20436 if test "$cross_compiling" = yes; then
20437   # try to guess the endianness by grepping values into an object file
20438   ac_cv_c_bigendian=unknown
20439   cat >conftest.$ac_ext <<_ACEOF
20440 /* confdefs.h.  */
20441 _ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h.  */
20445 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20446 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20447 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20448 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20449 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20450 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20451 int
20452 main ()
20453 {
20454  _ascii (); _ebcdic ();
20455   ;
20456   return 0;
20457 }
20458 _ACEOF
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463   *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466   (eval "$ac_compile") 2>conftest.er1
20467   ac_status=$?
20468   grep -v '^ *+' conftest.er1 >conftest.err
20469   rm -f conftest.er1
20470   cat conftest.err >&5
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } && {
20473          test -z "$ac_c_werror_flag" ||
20474          test ! -s conftest.err
20475        } && test -s conftest.$ac_objext; then
20476   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20477   ac_cv_c_bigendian=yes
20478 fi
20479 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20480   if test "$ac_cv_c_bigendian" = unknown; then
20481     ac_cv_c_bigendian=no
20482   else
20483     # finding both strings is unlikely to happen, but who knows?
20484     ac_cv_c_bigendian=unknown
20485   fi
20486 fi
20487 else
20488   echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491
20492 fi
20493
20494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20495 else
20496   cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h.  */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h.  */
20502 $ac_includes_default
20503 int
20504 main ()
20505 {
20506
20507   /* Are we little or big endian?  From Harbison&Steele.  */
20508   union
20509   {
20510     long int l;
20511     char c[sizeof (long int)];
20512   } u;
20513   u.l = 1;
20514   return u.c[sizeof (long int) - 1] == 1;
20515
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 rm -f conftest$ac_exeext
20521 if { (ac_try="$ac_link"
20522 case "(($ac_try" in
20523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524   *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527   (eval "$ac_link") 2>&5
20528   ac_status=$?
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20531   { (case "(($ac_try" in
20532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533   *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536   (eval "$ac_try") 2>&5
20537   ac_status=$?
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); }; }; then
20540   ac_cv_c_bigendian=no
20541 else
20542   echo "$as_me: program exited with status $ac_status" >&5
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20545
20546 ( exit $ac_status )
20547 ac_cv_c_bigendian=yes
20548 fi
20549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20550 fi
20551
20552
20553 fi
20554
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556 fi
20557 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20558 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20559 case $ac_cv_c_bigendian in
20560   yes)
20561
20562 cat >>confdefs.h <<\_ACEOF
20563 #define WORDS_BIGENDIAN 1
20564 _ACEOF
20565  ;;
20566   no)
20567      ;;
20568   *)
20569     { { echo "$as_me:$LINENO: error: unknown endianness
20570 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20571 echo "$as_me: error: unknown endianness
20572 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20573    { (exit 1); exit 1; }; } ;;
20574 esac
20575
20576
20577 # check for specific functions that might be missing from
20578 # certain standard library implementations
20579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20580 # for constant arguments.  Useless!
20581 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
20582 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20583 if test "${ac_cv_working_alloca_h+set}" = set; then
20584   echo $ECHO_N "(cached) $ECHO_C" >&6
20585 else
20586   cat >conftest.$ac_ext <<_ACEOF
20587 /* confdefs.h.  */
20588 _ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h.  */
20592 #include <alloca.h>
20593 int
20594 main ()
20595 {
20596 char *p = (char *) alloca (2 * sizeof (int));
20597                           if (p) return 0;
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609   (eval "$ac_link") 2>conftest.er1
20610   ac_status=$?
20611   grep -v '^ *+' conftest.er1 >conftest.err
20612   rm -f conftest.er1
20613   cat conftest.err >&5
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } && {
20616          test -z "$ac_c_werror_flag" ||
20617          test ! -s conftest.err
20618        } && test -s conftest$ac_exeext &&
20619        $as_test_x conftest$ac_exeext; then
20620   ac_cv_working_alloca_h=yes
20621 else
20622   echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20624
20625         ac_cv_working_alloca_h=no
20626 fi
20627
20628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20629       conftest$ac_exeext conftest.$ac_ext
20630 fi
20631 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20632 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
20633 if test $ac_cv_working_alloca_h = yes; then
20634
20635 cat >>confdefs.h <<\_ACEOF
20636 #define HAVE_ALLOCA_H 1
20637 _ACEOF
20638
20639 fi
20640
20641 { echo "$as_me:$LINENO: checking for alloca" >&5
20642 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
20643 if test "${ac_cv_func_alloca_works+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646   cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h.  */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h.  */
20652 #ifdef __GNUC__
20653 # define alloca __builtin_alloca
20654 #else
20655 # ifdef _MSC_VER
20656 #  include <malloc.h>
20657 #  define alloca _alloca
20658 # else
20659 #  ifdef HAVE_ALLOCA_H
20660 #   include <alloca.h>
20661 #  else
20662 #   ifdef _AIX
20663  #pragma alloca
20664 #   else
20665 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20666 char *alloca ();
20667 #    endif
20668 #   endif
20669 #  endif
20670 # endif
20671 #endif
20672
20673 int
20674 main ()
20675 {
20676 char *p = (char *) alloca (1);
20677                                     if (p) return 0;
20678   ;
20679   return 0;
20680 }
20681 _ACEOF
20682 rm -f conftest.$ac_objext conftest$ac_exeext
20683 if { (ac_try="$ac_link"
20684 case "(($ac_try" in
20685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686   *) ac_try_echo=$ac_try;;
20687 esac
20688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689   (eval "$ac_link") 2>conftest.er1
20690   ac_status=$?
20691   grep -v '^ *+' conftest.er1 >conftest.err
20692   rm -f conftest.er1
20693   cat conftest.err >&5
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); } && {
20696          test -z "$ac_c_werror_flag" ||
20697          test ! -s conftest.err
20698        } && test -s conftest$ac_exeext &&
20699        $as_test_x conftest$ac_exeext; then
20700   ac_cv_func_alloca_works=yes
20701 else
20702   echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20704
20705         ac_cv_func_alloca_works=no
20706 fi
20707
20708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20709       conftest$ac_exeext conftest.$ac_ext
20710 fi
20711 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20712 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
20713
20714 if test $ac_cv_func_alloca_works = yes; then
20715
20716 cat >>confdefs.h <<\_ACEOF
20717 #define HAVE_ALLOCA 1
20718 _ACEOF
20719
20720 else
20721   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20722 # that cause trouble.  Some versions do not even contain alloca or
20723 # contain a buggy version.  If you still want to use their alloca,
20724 # use ar to extract alloca.o from them instead of compiling alloca.c.
20725
20726 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20727
20728 cat >>confdefs.h <<\_ACEOF
20729 #define C_ALLOCA 1
20730 _ACEOF
20731
20732
20733 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20734 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
20735 if test "${ac_cv_os_cray+set}" = set; then
20736   echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738   cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744 #if defined CRAY && ! defined CRAY2
20745 webecray
20746 #else
20747 wenotbecray
20748 #endif
20749
20750 _ACEOF
20751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20752   $EGREP "webecray" >/dev/null 2>&1; then
20753   ac_cv_os_cray=yes
20754 else
20755   ac_cv_os_cray=no
20756 fi
20757 rm -f conftest*
20758
20759 fi
20760 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20761 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
20762 if test $ac_cv_os_cray = yes; then
20763   for ac_func in _getb67 GETB67 getb67; do
20764     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20768   echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770   cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h.  */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h.  */
20776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20778 #define $ac_func innocuous_$ac_func
20779
20780 /* System header to define __stub macros and hopefully few prototypes,
20781     which can conflict with char $ac_func (); below.
20782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20783     <limits.h> exists even on freestanding compilers.  */
20784
20785 #ifdef __STDC__
20786 # include <limits.h>
20787 #else
20788 # include <assert.h>
20789 #endif
20790
20791 #undef $ac_func
20792
20793 /* Override any GCC internal prototype to avoid an error.
20794    Use char because int might match the return type of a GCC
20795    builtin and then its argument prototype would still apply.  */
20796 #ifdef __cplusplus
20797 extern "C"
20798 #endif
20799 char $ac_func ();
20800 /* The GNU C library defines this for functions which it implements
20801     to always fail with ENOSYS.  Some functions are actually named
20802     something starting with __ and the normal name is an alias.  */
20803 #if defined __stub_$ac_func || defined __stub___$ac_func
20804 choke me
20805 #endif
20806
20807 int
20808 main ()
20809 {
20810 return $ac_func ();
20811   ;
20812   return 0;
20813 }
20814 _ACEOF
20815 rm -f conftest.$ac_objext conftest$ac_exeext
20816 if { (ac_try="$ac_link"
20817 case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_link") 2>conftest.er1
20823   ac_status=$?
20824   grep -v '^ *+' conftest.er1 >conftest.err
20825   rm -f conftest.er1
20826   cat conftest.err >&5
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); } && {
20829          test -z "$ac_c_werror_flag" ||
20830          test ! -s conftest.err
20831        } && test -s conftest$ac_exeext &&
20832        $as_test_x conftest$ac_exeext; then
20833   eval "$as_ac_var=yes"
20834 else
20835   echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20837
20838         eval "$as_ac_var=no"
20839 fi
20840
20841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20842       conftest$ac_exeext conftest.$ac_ext
20843 fi
20844 ac_res=`eval echo '${'$as_ac_var'}'`
20845                { echo "$as_me:$LINENO: result: $ac_res" >&5
20846 echo "${ECHO_T}$ac_res" >&6; }
20847 if test `eval echo '${'$as_ac_var'}'` = yes; then
20848
20849 cat >>confdefs.h <<_ACEOF
20850 #define CRAY_STACKSEG_END $ac_func
20851 _ACEOF
20852
20853     break
20854 fi
20855
20856   done
20857 fi
20858
20859 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20860 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
20861 if test "${ac_cv_c_stack_direction+set}" = set; then
20862   echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864   if test "$cross_compiling" = yes; then
20865   ac_cv_c_stack_direction=0
20866 else
20867   cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 $ac_includes_default
20874 int
20875 find_stack_direction ()
20876 {
20877   static char *addr = 0;
20878   auto char dummy;
20879   if (addr == 0)
20880     {
20881       addr = &dummy;
20882       return find_stack_direction ();
20883     }
20884   else
20885     return (&dummy > addr) ? 1 : -1;
20886 }
20887
20888 int
20889 main ()
20890 {
20891   return find_stack_direction () < 0;
20892 }
20893 _ACEOF
20894 rm -f conftest$ac_exeext
20895 if { (ac_try="$ac_link"
20896 case "(($ac_try" in
20897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898   *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901   (eval "$ac_link") 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20905   { (case "(($ac_try" in
20906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907   *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910   (eval "$ac_try") 2>&5
20911   ac_status=$?
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); }; }; then
20914   ac_cv_c_stack_direction=1
20915 else
20916   echo "$as_me: program exited with status $ac_status" >&5
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20919
20920 ( exit $ac_status )
20921 ac_cv_c_stack_direction=-1
20922 fi
20923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20924 fi
20925
20926
20927 fi
20928 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20929 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
20930
20931 cat >>confdefs.h <<_ACEOF
20932 #define STACK_DIRECTION $ac_cv_c_stack_direction
20933 _ACEOF
20934
20935
20936 fi
20937
20938
20939 for ac_header in malloc.h
20940 do
20941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20943   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20946   echo $ECHO_N "(cached) $ECHO_C" >&6
20947 fi
20948 ac_res=`eval echo '${'$as_ac_Header'}'`
20949                { echo "$as_me:$LINENO: result: $ac_res" >&5
20950 echo "${ECHO_T}$ac_res" >&6; }
20951 else
20952   # Is the header compilable?
20953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20955 cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961 $ac_includes_default
20962 #include <$ac_header>
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968   *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971   (eval "$ac_compile") 2>conftest.er1
20972   ac_status=$?
20973   grep -v '^ *+' conftest.er1 >conftest.err
20974   rm -f conftest.er1
20975   cat conftest.err >&5
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } && {
20978          test -z "$ac_c_werror_flag" ||
20979          test ! -s conftest.err
20980        } && test -s conftest.$ac_objext; then
20981   ac_header_compiler=yes
20982 else
20983   echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986         ac_header_compiler=no
20987 fi
20988
20989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20991 echo "${ECHO_T}$ac_header_compiler" >&6; }
20992
20993 # Is the header present?
20994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002 #include <$ac_header>
21003 _ACEOF
21004 if { (ac_try="$ac_cpp conftest.$ac_ext"
21005 case "(($ac_try" in
21006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007   *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21011   ac_status=$?
21012   grep -v '^ *+' conftest.er1 >conftest.err
21013   rm -f conftest.er1
21014   cat conftest.err >&5
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); } >/dev/null && {
21017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21018          test ! -s conftest.err
21019        }; then
21020   ac_header_preproc=yes
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025   ac_header_preproc=no
21026 fi
21027
21028 rm -f conftest.err conftest.$ac_ext
21029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21030 echo "${ECHO_T}$ac_header_preproc" >&6; }
21031
21032 # So?  What about this header?
21033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21034   yes:no: )
21035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21039     ac_header_preproc=yes
21040     ;;
21041   no:yes:* )
21042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21054     ( cat <<\_ASBOX
21055 ## -------------------------------------------------------- ##
21056 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21057 ## -------------------------------------------------------- ##
21058 _ASBOX
21059      ) | sed "s/^/$as_me: WARNING:     /" >&2
21060     ;;
21061 esac
21062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21065   echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067   eval "$as_ac_Header=\$ac_header_preproc"
21068 fi
21069 ac_res=`eval echo '${'$as_ac_Header'}'`
21070                { echo "$as_me:$LINENO: result: $ac_res" >&5
21071 echo "${ECHO_T}$ac_res" >&6; }
21072
21073 fi
21074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21075   cat >>confdefs.h <<_ACEOF
21076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21077 _ACEOF
21078
21079 fi
21080
21081 done
21082
21083
21084 for ac_header in assert.h
21085 do
21086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21088   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21091   echo $ECHO_N "(cached) $ECHO_C" >&6
21092 fi
21093 ac_res=`eval echo '${'$as_ac_Header'}'`
21094                { echo "$as_me:$LINENO: result: $ac_res" >&5
21095 echo "${ECHO_T}$ac_res" >&6; }
21096 else
21097   # Is the header compilable?
21098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21100 cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h.  */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h.  */
21106 $ac_includes_default
21107 #include <$ac_header>
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113   *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116   (eval "$ac_compile") 2>conftest.er1
21117   ac_status=$?
21118   grep -v '^ *+' conftest.er1 >conftest.err
21119   rm -f conftest.er1
21120   cat conftest.err >&5
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } && {
21123          test -z "$ac_c_werror_flag" ||
21124          test ! -s conftest.err
21125        } && test -s conftest.$ac_objext; then
21126   ac_header_compiler=yes
21127 else
21128   echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131         ac_header_compiler=no
21132 fi
21133
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21136 echo "${ECHO_T}$ac_header_compiler" >&6; }
21137
21138 # Is the header present?
21139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147 #include <$ac_header>
21148 _ACEOF
21149 if { (ac_try="$ac_cpp conftest.$ac_ext"
21150 case "(($ac_try" in
21151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152   *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21156   ac_status=$?
21157   grep -v '^ *+' conftest.er1 >conftest.err
21158   rm -f conftest.er1
21159   cat conftest.err >&5
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); } >/dev/null && {
21162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21163          test ! -s conftest.err
21164        }; then
21165   ac_header_preproc=yes
21166 else
21167   echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21169
21170   ac_header_preproc=no
21171 fi
21172
21173 rm -f conftest.err conftest.$ac_ext
21174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21175 echo "${ECHO_T}$ac_header_preproc" >&6; }
21176
21177 # So?  What about this header?
21178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21179   yes:no: )
21180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21184     ac_header_preproc=yes
21185     ;;
21186   no:yes:* )
21187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21199     ( cat <<\_ASBOX
21200 ## -------------------------------------------------------- ##
21201 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21202 ## -------------------------------------------------------- ##
21203 _ASBOX
21204      ) | sed "s/^/$as_me: WARNING:     /" >&2
21205     ;;
21206 esac
21207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21210   echo $ECHO_N "(cached) $ECHO_C" >&6
21211 else
21212   eval "$as_ac_Header=\$ac_header_preproc"
21213 fi
21214 ac_res=`eval echo '${'$as_ac_Header'}'`
21215                { echo "$as_me:$LINENO: result: $ac_res" >&5
21216 echo "${ECHO_T}$ac_res" >&6; }
21217
21218 fi
21219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21220   cat >>confdefs.h <<_ACEOF
21221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21222 _ACEOF
21223
21224 fi
21225
21226 done
21227
21228
21229 for ac_func in lrint
21230 do
21231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21235   echo $ECHO_N "(cached) $ECHO_C" >&6
21236 else
21237   cat >conftest.$ac_ext <<_ACEOF
21238 /* confdefs.h.  */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h.  */
21243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21245 #define $ac_func innocuous_$ac_func
21246
21247 /* System header to define __stub macros and hopefully few prototypes,
21248     which can conflict with char $ac_func (); below.
21249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21250     <limits.h> exists even on freestanding compilers.  */
21251
21252 #ifdef __STDC__
21253 # include <limits.h>
21254 #else
21255 # include <assert.h>
21256 #endif
21257
21258 #undef $ac_func
21259
21260 /* Override any GCC internal prototype to avoid an error.
21261    Use char because int might match the return type of a GCC
21262    builtin and then its argument prototype would still apply.  */
21263 #ifdef __cplusplus
21264 extern "C"
21265 #endif
21266 char $ac_func ();
21267 /* The GNU C library defines this for functions which it implements
21268     to always fail with ENOSYS.  Some functions are actually named
21269     something starting with __ and the normal name is an alias.  */
21270 #if defined __stub_$ac_func || defined __stub___$ac_func
21271 choke me
21272 #endif
21273
21274 int
21275 main ()
21276 {
21277 return $ac_func ();
21278   ;
21279   return 0;
21280 }
21281 _ACEOF
21282 rm -f conftest.$ac_objext conftest$ac_exeext
21283 if { (ac_try="$ac_link"
21284 case "(($ac_try" in
21285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286   *) ac_try_echo=$ac_try;;
21287 esac
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289   (eval "$ac_link") 2>conftest.er1
21290   ac_status=$?
21291   grep -v '^ *+' conftest.er1 >conftest.err
21292   rm -f conftest.er1
21293   cat conftest.err >&5
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } && {
21296          test -z "$ac_c_werror_flag" ||
21297          test ! -s conftest.err
21298        } && test -s conftest$ac_exeext &&
21299        $as_test_x conftest$ac_exeext; then
21300   eval "$as_ac_var=yes"
21301 else
21302   echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21304
21305         eval "$as_ac_var=no"
21306 fi
21307
21308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21309       conftest$ac_exeext conftest.$ac_ext
21310 fi
21311 ac_res=`eval echo '${'$as_ac_var'}'`
21312                { echo "$as_me:$LINENO: result: $ac_res" >&5
21313 echo "${ECHO_T}$ac_res" >&6; }
21314 if test `eval echo '${'$as_ac_var'}'` = yes; then
21315   cat >>confdefs.h <<_ACEOF
21316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21317 _ACEOF
21318
21319 fi
21320 done
21321
21322
21323
21324 ######################################################################
21325 # HighGUI dependencies for windowing system
21326
21327 # honor user selection,
21328 # if no selection given check for Carbon first
21329 CARBON_CFLAGS=""
21330 CARBON_LIBS=""
21331 if test x"$with_carbon" = "xyes"; then
21332
21333     # header presence and usability seem to be enough
21334     if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21335   { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
21336 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
21337 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21338   echo $ECHO_N "(cached) $ECHO_C" >&6
21339 fi
21340 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
21341 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
21342 else
21343   # Is the header compilable?
21344 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
21345 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
21346 cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h.  */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h.  */
21352 $ac_includes_default
21353 #include <Carbon/Carbon.h>
21354 _ACEOF
21355 rm -f conftest.$ac_objext
21356 if { (ac_try="$ac_compile"
21357 case "(($ac_try" in
21358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359   *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362   (eval "$ac_compile") 2>conftest.er1
21363   ac_status=$?
21364   grep -v '^ *+' conftest.er1 >conftest.err
21365   rm -f conftest.er1
21366   cat conftest.err >&5
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); } && {
21369          test -z "$ac_c_werror_flag" ||
21370          test ! -s conftest.err
21371        } && test -s conftest.$ac_objext; then
21372   ac_header_compiler=yes
21373 else
21374   echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21376
21377         ac_header_compiler=no
21378 fi
21379
21380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21382 echo "${ECHO_T}$ac_header_compiler" >&6; }
21383
21384 # Is the header present?
21385 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
21386 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
21387 cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393 #include <Carbon/Carbon.h>
21394 _ACEOF
21395 if { (ac_try="$ac_cpp conftest.$ac_ext"
21396 case "(($ac_try" in
21397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398   *) ac_try_echo=$ac_try;;
21399 esac
21400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21402   ac_status=$?
21403   grep -v '^ *+' conftest.er1 >conftest.err
21404   rm -f conftest.er1
21405   cat conftest.err >&5
21406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407   (exit $ac_status); } >/dev/null && {
21408          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21409          test ! -s conftest.err
21410        }; then
21411   ac_header_preproc=yes
21412 else
21413   echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416   ac_header_preproc=no
21417 fi
21418
21419 rm -f conftest.err conftest.$ac_ext
21420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21421 echo "${ECHO_T}$ac_header_preproc" >&6; }
21422
21423 # So?  What about this header?
21424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21425   yes:no: )
21426     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
21427 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21428     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
21429 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
21430     ac_header_preproc=yes
21431     ;;
21432   no:yes:* )
21433     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
21434 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
21435     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
21436 echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
21437     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
21438 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
21439     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
21440 echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21441     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
21442 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
21443     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
21444 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
21445     ( cat <<\_ASBOX
21446 ## -------------------------------------------------------- ##
21447 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21448 ## -------------------------------------------------------- ##
21449 _ASBOX
21450      ) | sed "s/^/$as_me: WARNING:     /" >&2
21451     ;;
21452 esac
21453 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
21454 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
21455 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458   ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
21459 fi
21460 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
21461 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
21462
21463 fi
21464 if test $ac_cv_header_Carbon_Carbon_h = yes; then
21465
21466
21467 cat >>confdefs.h <<\_ACEOF
21468 #define HAVE_CARBON
21469 _ACEOF
21470
21471                       CARBON_LIBS="-Xlinker -framework -Xlinker Carbon"
21472                       have_carbon=yes
21473
21474 else
21475
21476                       have_carbon=no
21477                       with_carbon=no
21478
21479 fi
21480
21481
21482
21483     # sanity checks
21484     if test x"$have_carbon" = "xyes"; then
21485
21486         # if we asked for gtk, this is not ok
21487         if test x"$with_gtk" = "xyes"; then
21488             { { echo "$as_me:$LINENO: error: You cannot specify --with-carbon and --with-gtk at the same time" >&5
21489 echo "$as_me: error: You cannot specify --with-carbon and --with-gtk at the same time" >&2;}
21490    { (exit 1); exit 1; }; }
21491         fi
21492
21493         # don't check alternatives if carbon was found
21494         if test x"$with_gtk" = "xauto"; then
21495             with_gtk=no
21496         fi
21497     fi
21498 else
21499     have_carbon=no
21500     if test ! x"$with_carbon" = "xno"; then
21501         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&5
21502 echo "$as_me: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&2;}
21503     fi
21504 fi
21505
21506
21507  if test x"$have_carbon" = "xyes"; then
21508   BUILD_CARBON_TRUE=
21509   BUILD_CARBON_FALSE='#'
21510 else
21511   BUILD_CARBON_TRUE='#'
21512   BUILD_CARBON_FALSE=
21513 fi
21514
21515
21516 # use GTK+ 2.x (or later) for windowing
21517 # if carbon not present or not wanted (--without-carbon)
21518 GTK_CFLAGS=""
21519 GTK_LIBS=""
21520 GTHREAD_CFLAGS=""
21521 GTHREAD_LIBS=""
21522 if test x"$with_gtk" = "xno"; then
21523     have_gtk=no
21524 else
21525
21526     # check if ./configure arguments are valid
21527     if test x"$with_gtk" = "xauto"; then
21528        with_gtk=yes
21529     fi
21530     if test x"$with_gtk" = "xyes"; then
21531
21532         # pkg-config is needed for GTK+
21533         # Extract the first word of "pkg-config", so it can be a program name with args.
21534 set dummy pkg-config; ac_word=$2
21535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21538   echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540   case $PKG_CONFIG in
21541   [\\/]* | ?:[\\/]*)
21542   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21543   ;;
21544   *)
21545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21546 for as_dir in $PATH
21547 do
21548   IFS=$as_save_IFS
21549   test -z "$as_dir" && as_dir=.
21550   for ac_exec_ext in '' $ac_executable_extensions; do
21551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21552     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21554     break 2
21555   fi
21556 done
21557 done
21558 IFS=$as_save_IFS
21559
21560   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21561   ;;
21562 esac
21563 fi
21564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21565 if test -n "$PKG_CONFIG"; then
21566   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21567 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21568 else
21569   { echo "$as_me:$LINENO: result: no" >&5
21570 echo "${ECHO_T}no" >&6; }
21571 fi
21572
21573
21574         if test x"$PKG_CONFIG" == "xno"; then
21575             { { echo "$as_me:$LINENO: error: You have to install pkg-config to compile OpenCV with GTK+" >&5
21576 echo "$as_me: error: You have to install pkg-config to compile OpenCV with GTK+" >&2;}
21577    { (exit 1); exit 1; }; }
21578         fi
21579
21580
21581   succeeded=no
21582
21583   if test -z "$PKG_CONFIG"; then
21584     # Extract the first word of "pkg-config", so it can be a program name with args.
21585 set dummy pkg-config; ac_word=$2
21586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21588 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21589   echo $ECHO_N "(cached) $ECHO_C" >&6
21590 else
21591   case $PKG_CONFIG in
21592   [\\/]* | ?:[\\/]*)
21593   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21594   ;;
21595   *)
21596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21597 for as_dir in $PATH
21598 do
21599   IFS=$as_save_IFS
21600   test -z "$as_dir" && as_dir=.
21601   for ac_exec_ext in '' $ac_executable_extensions; do
21602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21603     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21605     break 2
21606   fi
21607 done
21608 done
21609 IFS=$as_save_IFS
21610
21611   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21612   ;;
21613 esac
21614 fi
21615 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21616 if test -n "$PKG_CONFIG"; then
21617   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21618 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21619 else
21620   { echo "$as_me:$LINENO: result: no" >&5
21621 echo "${ECHO_T}no" >&6; }
21622 fi
21623
21624
21625   fi
21626
21627   if test "$PKG_CONFIG" = "no" ; then
21628      echo "*** The pkg-config script could not be found. Make sure it is"
21629      echo "*** in your path, or set the PKG_CONFIG environment variable"
21630      echo "*** to the full path to pkg-config."
21631      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21632   else
21633      PKG_CONFIG_MIN_VERSION=0.9.0
21634      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21635         { echo "$as_me:$LINENO: checking for \"gtk+-2.0 gdk-pixbuf-2.0\"" >&5
21636 echo $ECHO_N "checking for \"gtk+-2.0 gdk-pixbuf-2.0\"... $ECHO_C" >&6; }
21637
21638         if $PKG_CONFIG --exists ""gtk+-2.0 gdk-pixbuf-2.0"" ; then
21639             { echo "$as_me:$LINENO: result: yes" >&5
21640 echo "${ECHO_T}yes" >&6; }
21641             succeeded=yes
21642
21643             { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
21644 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
21645             GTK_CFLAGS=`$PKG_CONFIG --cflags ""gtk+-2.0 gdk-pixbuf-2.0""`
21646             { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
21647 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
21648
21649             { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
21650 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
21651             GTK_LIBS=`$PKG_CONFIG --libs ""gtk+-2.0 gdk-pixbuf-2.0""`
21652             { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
21653 echo "${ECHO_T}$GTK_LIBS" >&6; }
21654         else
21655             GTK_CFLAGS=""
21656             GTK_LIBS=""
21657             ## If we have a custom action on failure, don't print errors, but
21658             ## do set a variable so people can do so.
21659             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gtk+-2.0 gdk-pixbuf-2.0""`
21660
21661         fi
21662
21663
21664
21665      else
21666         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21667         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21668      fi
21669   fi
21670
21671   if test $succeeded = yes; then
21672
21673                             have_gtk=yes
21674
21675 cat >>confdefs.h <<\_ACEOF
21676 #define HAVE_GTK
21677 _ACEOF
21678
21679
21680   else
21681       have_gtk=no
21682   fi
21683
21684
21685     else
21686         # if we get here then --with-gtk was not called with 'yes','no' or 'auto'
21687         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&5
21688 echo "$as_me: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&2;}
21689         have_gtk=no
21690     fi
21691 fi
21692 if test x"$with_gthread" = "xno"; then
21693     have_gthread=no
21694 else
21695     if test x"$have_gtk" = "xyes"; then
21696         if test x"$with_gthread" = "xauto"; then
21697             with_gthread=yes
21698         fi
21699
21700         if test x"$with_gthread" = "xyes"; then
21701
21702   succeeded=no
21703
21704   if test -z "$PKG_CONFIG"; then
21705     # Extract the first word of "pkg-config", so it can be a program name with args.
21706 set dummy pkg-config; ac_word=$2
21707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21709 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21710   echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712   case $PKG_CONFIG in
21713   [\\/]* | ?:[\\/]*)
21714   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21715   ;;
21716   *)
21717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21718 for as_dir in $PATH
21719 do
21720   IFS=$as_save_IFS
21721   test -z "$as_dir" && as_dir=.
21722   for ac_exec_ext in '' $ac_executable_extensions; do
21723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21724     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21726     break 2
21727   fi
21728 done
21729 done
21730 IFS=$as_save_IFS
21731
21732   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21733   ;;
21734 esac
21735 fi
21736 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21737 if test -n "$PKG_CONFIG"; then
21738   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21739 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21740 else
21741   { echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6; }
21743 fi
21744
21745
21746   fi
21747
21748   if test "$PKG_CONFIG" = "no" ; then
21749      echo "*** The pkg-config script could not be found. Make sure it is"
21750      echo "*** in your path, or set the PKG_CONFIG environment variable"
21751      echo "*** to the full path to pkg-config."
21752      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21753   else
21754      PKG_CONFIG_MIN_VERSION=0.9.0
21755      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21756         { echo "$as_me:$LINENO: checking for \"gthread-2.0\"" >&5
21757 echo $ECHO_N "checking for \"gthread-2.0\"... $ECHO_C" >&6; }
21758
21759         if $PKG_CONFIG --exists ""gthread-2.0"" ; then
21760             { echo "$as_me:$LINENO: result: yes" >&5
21761 echo "${ECHO_T}yes" >&6; }
21762             succeeded=yes
21763
21764             { echo "$as_me:$LINENO: checking GTHREAD_CFLAGS" >&5
21765 echo $ECHO_N "checking GTHREAD_CFLAGS... $ECHO_C" >&6; }
21766             GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0""`
21767             { echo "$as_me:$LINENO: result: $GTHREAD_CFLAGS" >&5
21768 echo "${ECHO_T}$GTHREAD_CFLAGS" >&6; }
21769
21770             { echo "$as_me:$LINENO: checking GTHREAD_LIBS" >&5
21771 echo $ECHO_N "checking GTHREAD_LIBS... $ECHO_C" >&6; }
21772             GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0""`
21773             { echo "$as_me:$LINENO: result: $GTHREAD_LIBS" >&5
21774 echo "${ECHO_T}$GTHREAD_LIBS" >&6; }
21775         else
21776             GTHREAD_CFLAGS=""
21777             GTHREAD_LIBS=""
21778             ## If we have a custom action on failure, don't print errors, but
21779             ## do set a variable so people can do so.
21780             GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gthread-2.0""`
21781
21782         fi
21783
21784
21785
21786      else
21787         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21788         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21789      fi
21790   fi
21791
21792   if test $succeeded = yes; then
21793
21794                                 have_gthread=yes
21795
21796 cat >>confdefs.h <<\_ACEOF
21797 #define HAVE_GTHREAD
21798 _ACEOF
21799
21800
21801   else
21802       have_gthread=no
21803   fi
21804
21805         else
21806             # if we get here then --with-gthread was not called with 'yes','no' or 'auto'
21807             { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&5
21808 echo "$as_me: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&2;}
21809             have_gthread=no
21810         fi
21811     else
21812         # if no gtk+ was detected, looking for gthread does not make any sense
21813         have_gthread=no
21814     fi
21815 fi
21816
21817
21818
21819
21820  if test x"$have_gtk" = "xyes"; then
21821   BUILD_GTK_TRUE=
21822   BUILD_GTK_FALSE='#'
21823 else
21824   BUILD_GTK_TRUE='#'
21825   BUILD_GTK_FALSE=
21826 fi
21827
21828
21829
21830 ######################################################################
21831 # HighGUI dependencies for video I/O
21832
21833 # if QuickTime is present, it will override everything else,
21834 # (unless '--without-quicktime' was given)
21835 if test x"$with_quicktime" = "xyes"; then
21836
21837     # check other ./configure flags
21838     if test x"$with_ffmpeg" = "xyes"; then
21839         { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-ffmpeg at the same time" >&5
21840 echo "$as_me: error: You cannot specify --with-quicktime and --with-ffmpeg at the same time" >&2;}
21841    { (exit 1); exit 1; }; }
21842     fi
21843     if test x"$with_xine" = "xyes"; then
21844         { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-xine at the same time" >&5
21845 echo "$as_me: error: You cannot specify --with-quicktime and --with-xine at the same time" >&2;}
21846    { (exit 1); exit 1; }; }
21847     fi
21848     if test x"$with_1394libs" = "xyes"; then
21849         { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-1394libs at the same time" >&5
21850 echo "$as_me: error: You cannot specify --with-quicktime and --with-1394libs at the same time" >&2;}
21851    { (exit 1); exit 1; }; }
21852     fi
21853     if test x"$with_v4l" = "xyes"; then
21854         { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-v4l at the same time" >&5
21855 echo "$as_me: error: You cannot specify --with-quicktime and --with-v4l at the same time" >&2;}
21856    { (exit 1); exit 1; }; }
21857     fi
21858
21859     # header presence and usability seem to be enough
21860     if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
21861   { echo "$as_me:$LINENO: checking for QuickTime/QuickTime.h" >&5
21862 echo $ECHO_N "checking for QuickTime/QuickTime.h... $ECHO_C" >&6; }
21863 if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
21864   echo $ECHO_N "(cached) $ECHO_C" >&6
21865 fi
21866 { echo "$as_me:$LINENO: result: $ac_cv_header_QuickTime_QuickTime_h" >&5
21867 echo "${ECHO_T}$ac_cv_header_QuickTime_QuickTime_h" >&6; }
21868 else
21869   # Is the header compilable?
21870 { echo "$as_me:$LINENO: checking QuickTime/QuickTime.h usability" >&5
21871 echo $ECHO_N "checking QuickTime/QuickTime.h usability... $ECHO_C" >&6; }
21872 cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h.  */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h.  */
21878 $ac_includes_default
21879 #include <QuickTime/QuickTime.h>
21880 _ACEOF
21881 rm -f conftest.$ac_objext
21882 if { (ac_try="$ac_compile"
21883 case "(($ac_try" in
21884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885   *) ac_try_echo=$ac_try;;
21886 esac
21887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888   (eval "$ac_compile") 2>conftest.er1
21889   ac_status=$?
21890   grep -v '^ *+' conftest.er1 >conftest.err
21891   rm -f conftest.er1
21892   cat conftest.err >&5
21893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894   (exit $ac_status); } && {
21895          test -z "$ac_c_werror_flag" ||
21896          test ! -s conftest.err
21897        } && test -s conftest.$ac_objext; then
21898   ac_header_compiler=yes
21899 else
21900   echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21902
21903         ac_header_compiler=no
21904 fi
21905
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21908 echo "${ECHO_T}$ac_header_compiler" >&6; }
21909
21910 # Is the header present?
21911 { echo "$as_me:$LINENO: checking QuickTime/QuickTime.h presence" >&5
21912 echo $ECHO_N "checking QuickTime/QuickTime.h presence... $ECHO_C" >&6; }
21913 cat >conftest.$ac_ext <<_ACEOF
21914 /* confdefs.h.  */
21915 _ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h.  */
21919 #include <QuickTime/QuickTime.h>
21920 _ACEOF
21921 if { (ac_try="$ac_cpp conftest.$ac_ext"
21922 case "(($ac_try" in
21923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924   *) ac_try_echo=$ac_try;;
21925 esac
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21928   ac_status=$?
21929   grep -v '^ *+' conftest.er1 >conftest.err
21930   rm -f conftest.er1
21931   cat conftest.err >&5
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); } >/dev/null && {
21934          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21935          test ! -s conftest.err
21936        }; then
21937   ac_header_preproc=yes
21938 else
21939   echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21941
21942   ac_header_preproc=no
21943 fi
21944
21945 rm -f conftest.err conftest.$ac_ext
21946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21947 echo "${ECHO_T}$ac_header_preproc" >&6; }
21948
21949 # So?  What about this header?
21950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21951   yes:no: )
21952     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: accepted by the compiler, rejected by the preprocessor!" >&5
21953 echo "$as_me: WARNING: QuickTime/QuickTime.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21954     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: proceeding with the compiler's result" >&5
21955 echo "$as_me: WARNING: QuickTime/QuickTime.h: proceeding with the compiler's result" >&2;}
21956     ac_header_preproc=yes
21957     ;;
21958   no:yes:* )
21959     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: present but cannot be compiled" >&5
21960 echo "$as_me: WARNING: QuickTime/QuickTime.h: present but cannot be compiled" >&2;}
21961     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h:     check for missing prerequisite headers?" >&5
21962 echo "$as_me: WARNING: QuickTime/QuickTime.h:     check for missing prerequisite headers?" >&2;}
21963     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: see the Autoconf documentation" >&5
21964 echo "$as_me: WARNING: QuickTime/QuickTime.h: see the Autoconf documentation" >&2;}
21965     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h:     section \"Present But Cannot Be Compiled\"" >&5
21966 echo "$as_me: WARNING: QuickTime/QuickTime.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21967     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: proceeding with the preprocessor's result" >&5
21968 echo "$as_me: WARNING: QuickTime/QuickTime.h: proceeding with the preprocessor's result" >&2;}
21969     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: in the future, the compiler will take precedence" >&5
21970 echo "$as_me: WARNING: QuickTime/QuickTime.h: in the future, the compiler will take precedence" >&2;}
21971     ( cat <<\_ASBOX
21972 ## -------------------------------------------------------- ##
21973 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21974 ## -------------------------------------------------------- ##
21975 _ASBOX
21976      ) | sed "s/^/$as_me: WARNING:     /" >&2
21977     ;;
21978 esac
21979 { echo "$as_me:$LINENO: checking for QuickTime/QuickTime.h" >&5
21980 echo $ECHO_N "checking for QuickTime/QuickTime.h... $ECHO_C" >&6; }
21981 if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
21982   echo $ECHO_N "(cached) $ECHO_C" >&6
21983 else
21984   ac_cv_header_QuickTime_QuickTime_h=$ac_header_preproc
21985 fi
21986 { echo "$as_me:$LINENO: result: $ac_cv_header_QuickTime_QuickTime_h" >&5
21987 echo "${ECHO_T}$ac_cv_header_QuickTime_QuickTime_h" >&6; }
21988
21989 fi
21990 if test $ac_cv_header_QuickTime_QuickTime_h = yes; then
21991
21992
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_QUICKTIME
21995 _ACEOF
21996
21997                       have_quicktime=yes
21998
21999 else
22000    have_quicktime=no
22001 fi
22002
22003
22004
22005     # specify quicktime libraries
22006     if test x"$have_quicktime" = "xyes"; then
22007         QUICKTIME_LIBS="-Xlinker -framework -Xlinker QuickTime -Xlinker -framework -Xlinker QuartzCore"
22008
22009         # don't check alternatives if quicktime was found
22010         if test x"$with_ffmpeg" = "xauto"; then
22011             with_ffmpeg=no
22012         fi
22013         if test x"$with_xine" = "xauto"; then
22014             with_xine=no
22015         fi
22016         if test x"$with_1394libs" = "xauto"; then
22017             with_1394libs=no
22018         fi
22019         if test x"$with_v4l" = "xauto"; then
22020             with_v4l=no
22021         fi
22022     fi
22023 else
22024     # check if ./configure arguments are valid
22025     have_quicktime=no
22026     if test ! x"$with_quicktime" = "xno"; then
22027         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&5
22028 echo "$as_me: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&2;}
22029     fi
22030 fi
22031
22032
22033  if test x"$have_quicktime" = "xyes"; then
22034   BUILD_QUICKTIME_TRUE=
22035   BUILD_QUICKTIME_FALSE='#'
22036 else
22037   BUILD_QUICKTIME_TRUE='#'
22038   BUILD_QUICKTIME_FALSE=
22039 fi
22040
22041
22042 # GStreamer seems to be a nice solution for both reading and writing
22043 # and even supports some cameras
22044 GSTREAMER_CFLAGS=""
22045 GSTREAMER_LIBS=""
22046 if test x"$with_gstreamer" = "xno"; then
22047     have_gstreamer=no
22048 else
22049
22050     if test x"$with_ffmpeg" = "xyes"; then
22051         { { echo "$as_me:$LINENO: error: You cannot specify --with-gstreamer and --with-ffmpeg at the same time" >&5
22052 echo "$as_me: error: You cannot specify --with-gstreamer and --with-ffmpeg at the same time" >&2;}
22053    { (exit 1); exit 1; }; }
22054     fi
22055
22056     # check if ./configure arguments are valid
22057     if test x"$with_gstreamer" = "xauto"; then
22058        with_gstreamer=yes
22059     fi
22060     if test x"$with_gstreamer" = "xyes"; then
22061
22062         # pkg-config is needed for GTK+
22063         # Extract the first word of "pkg-config", so it can be a program name with args.
22064 set dummy pkg-config; ac_word=$2
22065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22067 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22068   echo $ECHO_N "(cached) $ECHO_C" >&6
22069 else
22070   case $PKG_CONFIG in
22071   [\\/]* | ?:[\\/]*)
22072   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22073   ;;
22074   *)
22075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22076 for as_dir in $PATH
22077 do
22078   IFS=$as_save_IFS
22079   test -z "$as_dir" && as_dir=.
22080   for ac_exec_ext in '' $ac_executable_extensions; do
22081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22082     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22084     break 2
22085   fi
22086 done
22087 done
22088 IFS=$as_save_IFS
22089
22090   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22091   ;;
22092 esac
22093 fi
22094 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22095 if test -n "$PKG_CONFIG"; then
22096   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22097 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22098 else
22099   { echo "$as_me:$LINENO: result: no" >&5
22100 echo "${ECHO_T}no" >&6; }
22101 fi
22102
22103
22104         if test x"$PKG_CONFIG" == "xno"; then
22105             { { echo "$as_me:$LINENO: error: You have to install pkg-config to compile OpenCV with GStreamer" >&5
22106 echo "$as_me: error: You have to install pkg-config to compile OpenCV with GStreamer" >&2;}
22107    { (exit 1); exit 1; }; }
22108         fi
22109
22110
22111   succeeded=no
22112
22113   if test -z "$PKG_CONFIG"; then
22114     # Extract the first word of "pkg-config", so it can be a program name with args.
22115 set dummy pkg-config; ac_word=$2
22116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22119   echo $ECHO_N "(cached) $ECHO_C" >&6
22120 else
22121   case $PKG_CONFIG in
22122   [\\/]* | ?:[\\/]*)
22123   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22124   ;;
22125   *)
22126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22127 for as_dir in $PATH
22128 do
22129   IFS=$as_save_IFS
22130   test -z "$as_dir" && as_dir=.
22131   for ac_exec_ext in '' $ac_executable_extensions; do
22132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22133     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22135     break 2
22136   fi
22137 done
22138 done
22139 IFS=$as_save_IFS
22140
22141   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22142   ;;
22143 esac
22144 fi
22145 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22146 if test -n "$PKG_CONFIG"; then
22147   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22148 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22149 else
22150   { echo "$as_me:$LINENO: result: no" >&5
22151 echo "${ECHO_T}no" >&6; }
22152 fi
22153
22154
22155   fi
22156
22157   if test "$PKG_CONFIG" = "no" ; then
22158      echo "*** The pkg-config script could not be found. Make sure it is"
22159      echo "*** in your path, or set the PKG_CONFIG environment variable"
22160      echo "*** to the full path to pkg-config."
22161      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22162   else
22163      PKG_CONFIG_MIN_VERSION=0.9.0
22164      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22165         { echo "$as_me:$LINENO: checking for \"gstreamer-0.10\"" >&5
22166 echo $ECHO_N "checking for \"gstreamer-0.10\"... $ECHO_C" >&6; }
22167
22168         if $PKG_CONFIG --exists ""gstreamer-0.10"" ; then
22169             { echo "$as_me:$LINENO: result: yes" >&5
22170 echo "${ECHO_T}yes" >&6; }
22171             succeeded=yes
22172
22173             { echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
22174 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6; }
22175             GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags ""gstreamer-0.10""`
22176             { echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
22177 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6; }
22178
22179             { echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
22180 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6; }
22181             GSTREAMER_LIBS=`$PKG_CONFIG --libs ""gstreamer-0.10""`
22182             { echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
22183 echo "${ECHO_T}$GSTREAMER_LIBS" >&6; }
22184         else
22185             GSTREAMER_CFLAGS=""
22186             GSTREAMER_LIBS=""
22187             ## If we have a custom action on failure, don't print errors, but
22188             ## do set a variable so people can do so.
22189             GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gstreamer-0.10""`
22190
22191         fi
22192
22193
22194
22195      else
22196         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22197         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22198      fi
22199   fi
22200
22201   if test $succeeded = yes; then
22202
22203                             have_gstreamer=yes
22204
22205 cat >>confdefs.h <<\_ACEOF
22206 #define HAVE_GSTREAMER
22207 _ACEOF
22208
22209
22210   else
22211       have_gstreamer=no
22212   fi
22213
22214
22215         if test x"$have_gstreamer" = "xyes"; then
22216             GSTREAMER_LIBS="$GSTREAMER_LIBS -lgstbase-0.10"
22217             with_ffmpeg=no
22218         fi
22219     else
22220         # if we get here then --with-gstreamer was not called with 'yes','no' or 'auto'
22221         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-gstreamer, continuing assuming 'no'" >&5
22222 echo "$as_me: WARNING: unexpected arguments for option --with-gstreamer, continuing assuming 'no'" >&2;}
22223         have_gstreamer=no
22224     fi
22225 fi
22226
22227
22228  if test x"$have_gstreamer" = "xyes"; then
22229   BUILD_GSTREAMER_TRUE=
22230   BUILD_GSTREAMER_FALSE='#'
22231 else
22232   BUILD_GSTREAMER_TRUE='#'
22233   BUILD_GSTREAMER_FALSE=
22234 fi
22235
22236
22237 # prefer XINE over FFMPEG for video reading because it is quick, has a cleaner API
22238 # and allows for easy seeking with some formats
22239 if test x"$with_xine" = "xno"; then
22240     have_xine=no
22241     # XINE_LIBS=""
22242 else
22243
22244     # check if ./configure arguments are valid
22245     if test x"$with_xine" = "xauto"; then
22246        with_xine=yes
22247     fi
22248     if test x"$with_xine" = "xyes"; then
22249         if test "${ac_cv_header_xine_h+set}" = set; then
22250   { echo "$as_me:$LINENO: checking for xine.h" >&5
22251 echo $ECHO_N "checking for xine.h... $ECHO_C" >&6; }
22252 if test "${ac_cv_header_xine_h+set}" = set; then
22253   echo $ECHO_N "(cached) $ECHO_C" >&6
22254 fi
22255 { echo "$as_me:$LINENO: result: $ac_cv_header_xine_h" >&5
22256 echo "${ECHO_T}$ac_cv_header_xine_h" >&6; }
22257 else
22258   # Is the header compilable?
22259 { echo "$as_me:$LINENO: checking xine.h usability" >&5
22260 echo $ECHO_N "checking xine.h usability... $ECHO_C" >&6; }
22261 cat >conftest.$ac_ext <<_ACEOF
22262 /* confdefs.h.  */
22263 _ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h.  */
22267 $ac_includes_default
22268 #include <xine.h>
22269 _ACEOF
22270 rm -f conftest.$ac_objext
22271 if { (ac_try="$ac_compile"
22272 case "(($ac_try" in
22273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274   *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277   (eval "$ac_compile") 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } && {
22284          test -z "$ac_c_werror_flag" ||
22285          test ! -s conftest.err
22286        } && test -s conftest.$ac_objext; then
22287   ac_header_compiler=yes
22288 else
22289   echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22291
22292         ac_header_compiler=no
22293 fi
22294
22295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22297 echo "${ECHO_T}$ac_header_compiler" >&6; }
22298
22299 # Is the header present?
22300 { echo "$as_me:$LINENO: checking xine.h presence" >&5
22301 echo $ECHO_N "checking xine.h presence... $ECHO_C" >&6; }
22302 cat >conftest.$ac_ext <<_ACEOF
22303 /* confdefs.h.  */
22304 _ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h.  */
22308 #include <xine.h>
22309 _ACEOF
22310 if { (ac_try="$ac_cpp conftest.$ac_ext"
22311 case "(($ac_try" in
22312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313   *) ac_try_echo=$ac_try;;
22314 esac
22315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22317   ac_status=$?
22318   grep -v '^ *+' conftest.er1 >conftest.err
22319   rm -f conftest.er1
22320   cat conftest.err >&5
22321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322   (exit $ac_status); } >/dev/null && {
22323          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22324          test ! -s conftest.err
22325        }; then
22326   ac_header_preproc=yes
22327 else
22328   echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22330
22331   ac_header_preproc=no
22332 fi
22333
22334 rm -f conftest.err conftest.$ac_ext
22335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22336 echo "${ECHO_T}$ac_header_preproc" >&6; }
22337
22338 # So?  What about this header?
22339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22340   yes:no: )
22341     { echo "$as_me:$LINENO: WARNING: xine.h: accepted by the compiler, rejected by the preprocessor!" >&5
22342 echo "$as_me: WARNING: xine.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22343     { echo "$as_me:$LINENO: WARNING: xine.h: proceeding with the compiler's result" >&5
22344 echo "$as_me: WARNING: xine.h: proceeding with the compiler's result" >&2;}
22345     ac_header_preproc=yes
22346     ;;
22347   no:yes:* )
22348     { echo "$as_me:$LINENO: WARNING: xine.h: present but cannot be compiled" >&5
22349 echo "$as_me: WARNING: xine.h: present but cannot be compiled" >&2;}
22350     { echo "$as_me:$LINENO: WARNING: xine.h:     check for missing prerequisite headers?" >&5
22351 echo "$as_me: WARNING: xine.h:     check for missing prerequisite headers?" >&2;}
22352     { echo "$as_me:$LINENO: WARNING: xine.h: see the Autoconf documentation" >&5
22353 echo "$as_me: WARNING: xine.h: see the Autoconf documentation" >&2;}
22354     { echo "$as_me:$LINENO: WARNING: xine.h:     section \"Present But Cannot Be Compiled\"" >&5
22355 echo "$as_me: WARNING: xine.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22356     { echo "$as_me:$LINENO: WARNING: xine.h: proceeding with the preprocessor's result" >&5
22357 echo "$as_me: WARNING: xine.h: proceeding with the preprocessor's result" >&2;}
22358     { echo "$as_me:$LINENO: WARNING: xine.h: in the future, the compiler will take precedence" >&5
22359 echo "$as_me: WARNING: xine.h: in the future, the compiler will take precedence" >&2;}
22360     ( cat <<\_ASBOX
22361 ## -------------------------------------------------------- ##
22362 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22363 ## -------------------------------------------------------- ##
22364 _ASBOX
22365      ) | sed "s/^/$as_me: WARNING:     /" >&2
22366     ;;
22367 esac
22368 { echo "$as_me:$LINENO: checking for xine.h" >&5
22369 echo $ECHO_N "checking for xine.h... $ECHO_C" >&6; }
22370 if test "${ac_cv_header_xine_h+set}" = set; then
22371   echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373   ac_cv_header_xine_h=$ac_header_preproc
22374 fi
22375 { echo "$as_me:$LINENO: result: $ac_cv_header_xine_h" >&5
22376 echo "${ECHO_T}$ac_cv_header_xine_h" >&6; }
22377
22378 fi
22379 if test $ac_cv_header_xine_h = yes; then
22380   { echo "$as_me:$LINENO: checking for xine_init in -lxine" >&5
22381 echo $ECHO_N "checking for xine_init in -lxine... $ECHO_C" >&6; }
22382 if test "${ac_cv_lib_xine_xine_init+set}" = set; then
22383   echo $ECHO_N "(cached) $ECHO_C" >&6
22384 else
22385   ac_check_lib_save_LIBS=$LIBS
22386 LIBS="-lxine  $LIBS"
22387 cat >conftest.$ac_ext <<_ACEOF
22388 /* confdefs.h.  */
22389 _ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h.  */
22393
22394 /* Override any GCC internal prototype to avoid an error.
22395    Use char because int might match the return type of a GCC
22396    builtin and then its argument prototype would still apply.  */
22397 #ifdef __cplusplus
22398 extern "C"
22399 #endif
22400 char xine_init ();
22401 int
22402 main ()
22403 {
22404 return xine_init ();
22405   ;
22406   return 0;
22407 }
22408 _ACEOF
22409 rm -f conftest.$ac_objext conftest$ac_exeext
22410 if { (ac_try="$ac_link"
22411 case "(($ac_try" in
22412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413   *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416   (eval "$ac_link") 2>conftest.er1
22417   ac_status=$?
22418   grep -v '^ *+' conftest.er1 >conftest.err
22419   rm -f conftest.er1
22420   cat conftest.err >&5
22421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422   (exit $ac_status); } && {
22423          test -z "$ac_c_werror_flag" ||
22424          test ! -s conftest.err
22425        } && test -s conftest$ac_exeext &&
22426        $as_test_x conftest$ac_exeext; then
22427   ac_cv_lib_xine_xine_init=yes
22428 else
22429   echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22431
22432         ac_cv_lib_xine_xine_init=no
22433 fi
22434
22435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22436       conftest$ac_exeext conftest.$ac_ext
22437 LIBS=$ac_check_lib_save_LIBS
22438 fi
22439 { echo "$as_me:$LINENO: result: $ac_cv_lib_xine_xine_init" >&5
22440 echo "${ECHO_T}$ac_cv_lib_xine_xine_init" >&6; }
22441 if test $ac_cv_lib_xine_xine_init = yes; then
22442
22443                                       have_xine=yes
22444
22445 cat >>confdefs.h <<\_ACEOF
22446 #define HAVE_XINE
22447 _ACEOF
22448
22449                                       XINE_LIBS="-lxine"
22450
22451 else
22452    have_xine=no
22453 fi
22454
22455 else
22456    have_xine=no
22457 fi
22458
22459
22460     else
22461         # if we get here then --with-xine was not called with 'yes','no' or 'auto'
22462         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&5
22463 echo "$as_me: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&2;}
22464         have_xine=no
22465     fi
22466 fi
22467
22468  if test x"$have_xine" = "xyes"; then
22469   BUILD_XINE_TRUE=
22470   BUILD_XINE_FALSE='#'
22471 else
22472   BUILD_XINE_TRUE='#'
22473   BUILD_XINE_FALSE=
22474 fi
22475
22476
22477 # unfortunately, xine does not feature video writing,
22478 # so we have to resort to FFMPEG here
22479 if test x"$with_ffmpeg" = "xno"; then
22480     have_ffmpeg=no
22481     # FFMPEGLIBS=""
22482 else
22483
22484     # check if ./configure arguments are valid
22485     if test x"$with_ffmpeg" = "xauto"; then
22486        with_ffmpeg=yes
22487     fi
22488     if test x"$with_ffmpeg" = "xyes"; then
22489         if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22490   { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
22491 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
22492 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22493   echo $ECHO_N "(cached) $ECHO_C" >&6
22494 fi
22495 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
22496 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
22497 else
22498   # Is the header compilable?
22499 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
22500 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
22501 cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h.  */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h.  */
22507 $ac_includes_default
22508 #include <ffmpeg/avcodec.h>
22509 _ACEOF
22510 rm -f conftest.$ac_objext
22511 if { (ac_try="$ac_compile"
22512 case "(($ac_try" in
22513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514   *) ac_try_echo=$ac_try;;
22515 esac
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517   (eval "$ac_compile") 2>conftest.er1
22518   ac_status=$?
22519   grep -v '^ *+' conftest.er1 >conftest.err
22520   rm -f conftest.er1
22521   cat conftest.err >&5
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); } && {
22524          test -z "$ac_c_werror_flag" ||
22525          test ! -s conftest.err
22526        } && test -s conftest.$ac_objext; then
22527   ac_header_compiler=yes
22528 else
22529   echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22531
22532         ac_header_compiler=no
22533 fi
22534
22535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22537 echo "${ECHO_T}$ac_header_compiler" >&6; }
22538
22539 # Is the header present?
22540 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
22541 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548 #include <ffmpeg/avcodec.h>
22549 _ACEOF
22550 if { (ac_try="$ac_cpp conftest.$ac_ext"
22551 case "(($ac_try" in
22552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553   *) ac_try_echo=$ac_try;;
22554 esac
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22557   ac_status=$?
22558   grep -v '^ *+' conftest.er1 >conftest.err
22559   rm -f conftest.er1
22560   cat conftest.err >&5
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); } >/dev/null && {
22563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22564          test ! -s conftest.err
22565        }; then
22566   ac_header_preproc=yes
22567 else
22568   echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22570
22571   ac_header_preproc=no
22572 fi
22573
22574 rm -f conftest.err conftest.$ac_ext
22575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22576 echo "${ECHO_T}$ac_header_preproc" >&6; }
22577
22578 # So?  What about this header?
22579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22580   yes:no: )
22581     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
22582 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22583     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
22584 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
22585     ac_header_preproc=yes
22586     ;;
22587   no:yes:* )
22588     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
22589 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
22590     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h:     check for missing prerequisite headers?" >&5
22591 echo "$as_me: WARNING: ffmpeg/avcodec.h:     check for missing prerequisite headers?" >&2;}
22592     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
22593 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
22594     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h:     section \"Present But Cannot Be Compiled\"" >&5
22595 echo "$as_me: WARNING: ffmpeg/avcodec.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22596     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
22597 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
22598     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
22599 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
22600     ( cat <<\_ASBOX
22601 ## -------------------------------------------------------- ##
22602 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22603 ## -------------------------------------------------------- ##
22604 _ASBOX
22605      ) | sed "s/^/$as_me: WARNING:     /" >&2
22606     ;;
22607 esac
22608 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
22609 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
22610 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22611   echo $ECHO_N "(cached) $ECHO_C" >&6
22612 else
22613   ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
22614 fi
22615 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
22616 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
22617
22618 fi
22619 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
22620   { echo "$as_me:$LINENO: checking for library containing avcodec_decode_video" >&5
22621 echo $ECHO_N "checking for library containing avcodec_decode_video... $ECHO_C" >&6; }
22622 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
22623   echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625   ac_func_search_save_LIBS=$LIBS
22626 cat >conftest.$ac_ext <<_ACEOF
22627 /* confdefs.h.  */
22628 _ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h.  */
22632
22633 /* Override any GCC internal prototype to avoid an error.
22634    Use char because int might match the return type of a GCC
22635    builtin and then its argument prototype would still apply.  */
22636 #ifdef __cplusplus
22637 extern "C"
22638 #endif
22639 char avcodec_decode_video ();
22640 int
22641 main ()
22642 {
22643 return avcodec_decode_video ();
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 for ac_lib in '' avcodec_pic avcodec; do
22649   if test -z "$ac_lib"; then
22650     ac_res="none required"
22651   else
22652     ac_res=-l$ac_lib
22653     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22654   fi
22655   rm -f conftest.$ac_objext conftest$ac_exeext
22656 if { (ac_try="$ac_link"
22657 case "(($ac_try" in
22658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659   *) ac_try_echo=$ac_try;;
22660 esac
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662   (eval "$ac_link") 2>conftest.er1
22663   ac_status=$?
22664   grep -v '^ *+' conftest.er1 >conftest.err
22665   rm -f conftest.er1
22666   cat conftest.err >&5
22667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); } && {
22669          test -z "$ac_c_werror_flag" ||
22670          test ! -s conftest.err
22671        } && test -s conftest$ac_exeext &&
22672        $as_test_x conftest$ac_exeext; then
22673   ac_cv_search_avcodec_decode_video=$ac_res
22674 else
22675   echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22677
22678
22679 fi
22680
22681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22682       conftest$ac_exeext
22683   if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
22684   break
22685 fi
22686 done
22687 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
22688   :
22689 else
22690   ac_cv_search_avcodec_decode_video=no
22691 fi
22692 rm conftest.$ac_ext
22693 LIBS=$ac_func_search_save_LIBS
22694 fi
22695 { echo "$as_me:$LINENO: result: $ac_cv_search_avcodec_decode_video" >&5
22696 echo "${ECHO_T}$ac_cv_search_avcodec_decode_video" >&6; }
22697 ac_res=$ac_cv_search_avcodec_decode_video
22698 if test "$ac_res" != no; then
22699   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22700
22701                                        { echo "$as_me:$LINENO: checking for library containing av_open_input_file" >&5
22702 echo $ECHO_N "checking for library containing av_open_input_file... $ECHO_C" >&6; }
22703 if test "${ac_cv_search_av_open_input_file+set}" = set; then
22704   echo $ECHO_N "(cached) $ECHO_C" >&6
22705 else
22706   ac_func_search_save_LIBS=$LIBS
22707 cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h.  */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h.  */
22713
22714 /* Override any GCC internal prototype to avoid an error.
22715    Use char because int might match the return type of a GCC
22716    builtin and then its argument prototype would still apply.  */
22717 #ifdef __cplusplus
22718 extern "C"
22719 #endif
22720 char av_open_input_file ();
22721 int
22722 main ()
22723 {
22724 return av_open_input_file ();
22725   ;
22726   return 0;
22727 }
22728 _ACEOF
22729 for ac_lib in '' avformat_pic avformat; do
22730   if test -z "$ac_lib"; then
22731     ac_res="none required"
22732   else
22733     ac_res=-l$ac_lib
22734     LIBS="-l$ac_lib -lavcodec $ac_func_search_save_LIBS"
22735   fi
22736   rm -f conftest.$ac_objext conftest$ac_exeext
22737 if { (ac_try="$ac_link"
22738 case "(($ac_try" in
22739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740   *) ac_try_echo=$ac_try;;
22741 esac
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743   (eval "$ac_link") 2>conftest.er1
22744   ac_status=$?
22745   grep -v '^ *+' conftest.er1 >conftest.err
22746   rm -f conftest.er1
22747   cat conftest.err >&5
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); } && {
22750          test -z "$ac_c_werror_flag" ||
22751          test ! -s conftest.err
22752        } && test -s conftest$ac_exeext &&
22753        $as_test_x conftest$ac_exeext; then
22754   ac_cv_search_av_open_input_file=$ac_res
22755 else
22756   echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759
22760 fi
22761
22762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22763       conftest$ac_exeext
22764   if test "${ac_cv_search_av_open_input_file+set}" = set; then
22765   break
22766 fi
22767 done
22768 if test "${ac_cv_search_av_open_input_file+set}" = set; then
22769   :
22770 else
22771   ac_cv_search_av_open_input_file=no
22772 fi
22773 rm conftest.$ac_ext
22774 LIBS=$ac_func_search_save_LIBS
22775 fi
22776 { echo "$as_me:$LINENO: result: $ac_cv_search_av_open_input_file" >&5
22777 echo "${ECHO_T}$ac_cv_search_av_open_input_file" >&6; }
22778 ac_res=$ac_cv_search_av_open_input_file
22779 if test "$ac_res" != no; then
22780   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22781
22782                                                       have_ffmpeg=yes
22783
22784 cat >>confdefs.h <<\_ACEOF
22785 #define HAVE_FFMPEG
22786 _ACEOF
22787
22788                                                       FFMPEGLIBS="-lavcodec -lavformat"
22789
22790 else
22791    have_ffmpeg=no
22792 fi
22793
22794
22795 else
22796    have_ffmpeg=no
22797 fi
22798
22799 else
22800    have_ffmpeg=no
22801 fi
22802
22803
22804     else
22805         # if we get here then --with-ffmpeg was not called with 'yes','no' or 'auto'
22806         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&5
22807 echo "$as_me: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&2;}
22808         have_ffmpeg=no
22809     fi
22810 fi
22811
22812  if test x"$have_ffmpeg" = "xyes"; then
22813   BUILD_FFMPEG_TRUE=
22814   BUILD_FFMPEG_FALSE='#'
22815 else
22816   BUILD_FFMPEG_TRUE='#'
22817   BUILD_FFMPEG_FALSE=
22818 fi
22819
22820
22821 # IEEE1394 / FireWire video video i/o with libdc1394, libraw1394
22822 # (can be managed by QuickTime as well)
22823 if test x"$with_1394libs" = "xno"; then
22824     have_raw1394=no
22825     have_dc1394=no
22826     # IEEE1394LIBS=""
22827 else
22828
22829     # check if ./configure arguments are valid
22830     if test x"$with_1394libs" = "xauto"; then
22831        with_1394libs=yes
22832     fi
22833     if test x"$with_1394libs" = "xyes"; then
22834
22835         SAVELIBS="$LIBS"
22836         have_raw1394=no
22837         have_dc1394=no
22838
22839         if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
22840   { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
22841 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
22842 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
22843   echo $ECHO_N "(cached) $ECHO_C" >&6
22844 fi
22845 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
22846 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
22847 else
22848   # Is the header compilable?
22849 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
22850 echo $ECHO_N "checking libraw1394/raw1394.h usability... $ECHO_C" >&6; }
22851 cat >conftest.$ac_ext <<_ACEOF
22852 /* confdefs.h.  */
22853 _ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h.  */
22857 $ac_includes_default
22858 #include <libraw1394/raw1394.h>
22859 _ACEOF
22860 rm -f conftest.$ac_objext
22861 if { (ac_try="$ac_compile"
22862 case "(($ac_try" in
22863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864   *) ac_try_echo=$ac_try;;
22865 esac
22866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867   (eval "$ac_compile") 2>conftest.er1
22868   ac_status=$?
22869   grep -v '^ *+' conftest.er1 >conftest.err
22870   rm -f conftest.er1
22871   cat conftest.err >&5
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); } && {
22874          test -z "$ac_c_werror_flag" ||
22875          test ! -s conftest.err
22876        } && test -s conftest.$ac_objext; then
22877   ac_header_compiler=yes
22878 else
22879   echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22881
22882         ac_header_compiler=no
22883 fi
22884
22885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22887 echo "${ECHO_T}$ac_header_compiler" >&6; }
22888
22889 # Is the header present?
22890 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
22891 echo $ECHO_N "checking libraw1394/raw1394.h presence... $ECHO_C" >&6; }
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h.  */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h.  */
22898 #include <libraw1394/raw1394.h>
22899 _ACEOF
22900 if { (ac_try="$ac_cpp conftest.$ac_ext"
22901 case "(($ac_try" in
22902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903   *) ac_try_echo=$ac_try;;
22904 esac
22905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22907   ac_status=$?
22908   grep -v '^ *+' conftest.er1 >conftest.err
22909   rm -f conftest.er1
22910   cat conftest.err >&5
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); } >/dev/null && {
22913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22914          test ! -s conftest.err
22915        }; then
22916   ac_header_preproc=yes
22917 else
22918   echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22920
22921   ac_header_preproc=no
22922 fi
22923
22924 rm -f conftest.err conftest.$ac_ext
22925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22926 echo "${ECHO_T}$ac_header_preproc" >&6; }
22927
22928 # So?  What about this header?
22929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22930   yes:no: )
22931     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
22932 echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22933     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
22934 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
22935     ac_header_preproc=yes
22936     ;;
22937   no:yes:* )
22938     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
22939 echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
22940     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h:     check for missing prerequisite headers?" >&5
22941 echo "$as_me: WARNING: libraw1394/raw1394.h:     check for missing prerequisite headers?" >&2;}
22942     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
22943 echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
22944     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h:     section \"Present But Cannot Be Compiled\"" >&5
22945 echo "$as_me: WARNING: libraw1394/raw1394.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22946     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
22947 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
22948     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
22949 echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
22950     ( cat <<\_ASBOX
22951 ## -------------------------------------------------------- ##
22952 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22953 ## -------------------------------------------------------- ##
22954 _ASBOX
22955      ) | sed "s/^/$as_me: WARNING:     /" >&2
22956     ;;
22957 esac
22958 { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
22959 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
22960 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
22961   echo $ECHO_N "(cached) $ECHO_C" >&6
22962 else
22963   ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
22964 fi
22965 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
22966 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
22967
22968 fi
22969 if test $ac_cv_header_libraw1394_raw1394_h = yes; then
22970   { echo "$as_me:$LINENO: checking for raw1394_new_handle in -lraw1394" >&5
22971 echo $ECHO_N "checking for raw1394_new_handle in -lraw1394... $ECHO_C" >&6; }
22972 if test "${ac_cv_lib_raw1394_raw1394_new_handle+set}" = set; then
22973   echo $ECHO_N "(cached) $ECHO_C" >&6
22974 else
22975   ac_check_lib_save_LIBS=$LIBS
22976 LIBS="-lraw1394  $LIBS"
22977 cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h.  */
22979 _ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h.  */
22983
22984 /* Override any GCC internal prototype to avoid an error.
22985    Use char because int might match the return type of a GCC
22986    builtin and then its argument prototype would still apply.  */
22987 #ifdef __cplusplus
22988 extern "C"
22989 #endif
22990 char raw1394_new_handle ();
22991 int
22992 main ()
22993 {
22994 return raw1394_new_handle ();
22995   ;
22996   return 0;
22997 }
22998 _ACEOF
22999 rm -f conftest.$ac_objext conftest$ac_exeext
23000 if { (ac_try="$ac_link"
23001 case "(($ac_try" in
23002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003   *) ac_try_echo=$ac_try;;
23004 esac
23005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23006   (eval "$ac_link") 2>conftest.er1
23007   ac_status=$?
23008   grep -v '^ *+' conftest.er1 >conftest.err
23009   rm -f conftest.er1
23010   cat conftest.err >&5
23011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012   (exit $ac_status); } && {
23013          test -z "$ac_c_werror_flag" ||
23014          test ! -s conftest.err
23015        } && test -s conftest$ac_exeext &&
23016        $as_test_x conftest$ac_exeext; then
23017   ac_cv_lib_raw1394_raw1394_new_handle=yes
23018 else
23019   echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23021
23022         ac_cv_lib_raw1394_raw1394_new_handle=no
23023 fi
23024
23025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23026       conftest$ac_exeext conftest.$ac_ext
23027 LIBS=$ac_check_lib_save_LIBS
23028 fi
23029 { echo "$as_me:$LINENO: result: $ac_cv_lib_raw1394_raw1394_new_handle" >&5
23030 echo "${ECHO_T}$ac_cv_lib_raw1394_raw1394_new_handle" >&6; }
23031 if test $ac_cv_lib_raw1394_raw1394_new_handle = yes; then
23032
23033                                        have_raw1394=yes
23034                                        LIBS="-lm -lraw1394 $LIBS"
23035
23036 fi
23037
23038 fi
23039
23040
23041
23042         if test x"$have_raw1394" = "xyes"; then
23043             if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23044   { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
23045 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
23046 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23047   echo $ECHO_N "(cached) $ECHO_C" >&6
23048 fi
23049 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
23050 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
23051 else
23052   # Is the header compilable?
23053 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h usability" >&5
23054 echo $ECHO_N "checking libdc1394/dc1394_control.h usability... $ECHO_C" >&6; }
23055 cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h.  */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h.  */
23061 $ac_includes_default
23062 #include <libdc1394/dc1394_control.h>
23063 _ACEOF
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068   *) ac_try_echo=$ac_try;;
23069 esac
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071   (eval "$ac_compile") 2>conftest.er1
23072   ac_status=$?
23073   grep -v '^ *+' conftest.er1 >conftest.err
23074   rm -f conftest.er1
23075   cat conftest.err >&5
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); } && {
23078          test -z "$ac_c_werror_flag" ||
23079          test ! -s conftest.err
23080        } && test -s conftest.$ac_objext; then
23081   ac_header_compiler=yes
23082 else
23083   echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086         ac_header_compiler=no
23087 fi
23088
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23091 echo "${ECHO_T}$ac_header_compiler" >&6; }
23092
23093 # Is the header present?
23094 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h presence" >&5
23095 echo $ECHO_N "checking libdc1394/dc1394_control.h presence... $ECHO_C" >&6; }
23096 cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102 #include <libdc1394/dc1394_control.h>
23103 _ACEOF
23104 if { (ac_try="$ac_cpp conftest.$ac_ext"
23105 case "(($ac_try" in
23106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107   *) ac_try_echo=$ac_try;;
23108 esac
23109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23111   ac_status=$?
23112   grep -v '^ *+' conftest.er1 >conftest.err
23113   rm -f conftest.er1
23114   cat conftest.err >&5
23115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116   (exit $ac_status); } >/dev/null && {
23117          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23118          test ! -s conftest.err
23119        }; then
23120   ac_header_preproc=yes
23121 else
23122   echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23124
23125   ac_header_preproc=no
23126 fi
23127
23128 rm -f conftest.err conftest.$ac_ext
23129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23130 echo "${ECHO_T}$ac_header_preproc" >&6; }
23131
23132 # So?  What about this header?
23133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23134   yes:no: )
23135     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&5
23136 echo "$as_me: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23137     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&5
23138 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&2;}
23139     ac_header_preproc=yes
23140     ;;
23141   no:yes:* )
23142     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&5
23143 echo "$as_me: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&2;}
23144     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h:     check for missing prerequisite headers?" >&5
23145 echo "$as_me: WARNING: libdc1394/dc1394_control.h:     check for missing prerequisite headers?" >&2;}
23146     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&5
23147 echo "$as_me: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&2;}
23148     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h:     section \"Present But Cannot Be Compiled\"" >&5
23149 echo "$as_me: WARNING: libdc1394/dc1394_control.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23150     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&5
23151 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&2;}
23152     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&5
23153 echo "$as_me: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&2;}
23154     ( cat <<\_ASBOX
23155 ## -------------------------------------------------------- ##
23156 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23157 ## -------------------------------------------------------- ##
23158 _ASBOX
23159      ) | sed "s/^/$as_me: WARNING:     /" >&2
23160     ;;
23161 esac
23162 { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
23163 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
23164 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23165   echo $ECHO_N "(cached) $ECHO_C" >&6
23166 else
23167   ac_cv_header_libdc1394_dc1394_control_h=$ac_header_preproc
23168 fi
23169 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
23170 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
23171
23172 fi
23173 if test $ac_cv_header_libdc1394_dc1394_control_h = yes; then
23174   { echo "$as_me:$LINENO: checking for dc1394_camera_on in -ldc1394_control" >&5
23175 echo $ECHO_N "checking for dc1394_camera_on in -ldc1394_control... $ECHO_C" >&6; }
23176 if test "${ac_cv_lib_dc1394_control_dc1394_camera_on+set}" = set; then
23177   echo $ECHO_N "(cached) $ECHO_C" >&6
23178 else
23179   ac_check_lib_save_LIBS=$LIBS
23180 LIBS="-ldc1394_control  $LIBS"
23181 cat >conftest.$ac_ext <<_ACEOF
23182 /* confdefs.h.  */
23183 _ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h.  */
23187
23188 /* Override any GCC internal prototype to avoid an error.
23189    Use char because int might match the return type of a GCC
23190    builtin and then its argument prototype would still apply.  */
23191 #ifdef __cplusplus
23192 extern "C"
23193 #endif
23194 char dc1394_camera_on ();
23195 int
23196 main ()
23197 {
23198 return dc1394_camera_on ();
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext conftest$ac_exeext
23204 if { (ac_try="$ac_link"
23205 case "(($ac_try" in
23206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207   *) ac_try_echo=$ac_try;;
23208 esac
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210   (eval "$ac_link") 2>conftest.er1
23211   ac_status=$?
23212   grep -v '^ *+' conftest.er1 >conftest.err
23213   rm -f conftest.er1
23214   cat conftest.err >&5
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); } && {
23217          test -z "$ac_c_werror_flag" ||
23218          test ! -s conftest.err
23219        } && test -s conftest$ac_exeext &&
23220        $as_test_x conftest$ac_exeext; then
23221   ac_cv_lib_dc1394_control_dc1394_camera_on=yes
23222 else
23223   echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226         ac_cv_lib_dc1394_control_dc1394_camera_on=no
23227 fi
23228
23229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23230       conftest$ac_exeext conftest.$ac_ext
23231 LIBS=$ac_check_lib_save_LIBS
23232 fi
23233 { echo "$as_me:$LINENO: result: $ac_cv_lib_dc1394_control_dc1394_camera_on" >&5
23234 echo "${ECHO_T}$ac_cv_lib_dc1394_control_dc1394_camera_on" >&6; }
23235 if test $ac_cv_lib_dc1394_control_dc1394_camera_on = yes; then
23236
23237                                            have_dc1394=yes
23238
23239 cat >>confdefs.h <<\_ACEOF
23240 #define HAVE_DC1394
23241 _ACEOF
23242
23243                                            cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h.  */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h.  */
23249 #include <libdc1394/dc1394_control.h>
23250
23251 _ACEOF
23252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23253   $EGREP "do_extra_buffering" >/dev/null 2>&1; then
23254
23255 cat >>confdefs.h <<\_ACEOF
23256 #define HAVE_DC1394_095
23257 _ACEOF
23258
23259 fi
23260 rm -f conftest*
23261
23262                                            IEEE1394LIBS="-lm -lraw1394 -ldc1394_control"
23263
23264 fi
23265
23266 fi
23267
23268
23269         fi
23270
23271         LIBS="$SAVELIBS"
23272     else
23273         # if we get here then --with-1394libs was not called with 'yes','no' or 'auto'
23274         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&5
23275 echo "$as_me: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&2;}
23276         have_dc1394=no
23277     fi
23278 fi
23279
23280  if test x"$have_dc1394" = "xyes"; then
23281   BUILD_DC1394_TRUE=
23282   BUILD_DC1394_FALSE='#'
23283 else
23284   BUILD_DC1394_TRUE='#'
23285   BUILD_DC1394_FALSE=
23286 fi
23287
23288
23289 # Video for Linux (V4L)
23290 # we support version 1 and 2 currently
23291 if test x"$with_v4l" = "xno"; then
23292     have_v4l=no
23293     have_v4l2=no
23294     have_v4l1or2=no
23295 else
23296     # check if ./configure arguments are valid
23297     if test x"$with_v4l" = "xauto"; then
23298        with_v4l=yes
23299     fi
23300     if test x"$with_v4l" = "xyes"; then
23301         if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23302   { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
23303 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
23304 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23305   echo $ECHO_N "(cached) $ECHO_C" >&6
23306 fi
23307 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
23308 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
23309 else
23310   # Is the header compilable?
23311 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
23312 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
23313 cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h.  */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h.  */
23319 $ac_includes_default
23320 #include <linux/videodev.h>
23321 _ACEOF
23322 rm -f conftest.$ac_objext
23323 if { (ac_try="$ac_compile"
23324 case "(($ac_try" in
23325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326   *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329   (eval "$ac_compile") 2>conftest.er1
23330   ac_status=$?
23331   grep -v '^ *+' conftest.er1 >conftest.err
23332   rm -f conftest.er1
23333   cat conftest.err >&5
23334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335   (exit $ac_status); } && {
23336          test -z "$ac_c_werror_flag" ||
23337          test ! -s conftest.err
23338        } && test -s conftest.$ac_objext; then
23339   ac_header_compiler=yes
23340 else
23341   echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23343
23344         ac_header_compiler=no
23345 fi
23346
23347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23349 echo "${ECHO_T}$ac_header_compiler" >&6; }
23350
23351 # Is the header present?
23352 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
23353 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
23354 cat >conftest.$ac_ext <<_ACEOF
23355 /* confdefs.h.  */
23356 _ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h.  */
23360 #include <linux/videodev.h>
23361 _ACEOF
23362 if { (ac_try="$ac_cpp conftest.$ac_ext"
23363 case "(($ac_try" in
23364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365   *) ac_try_echo=$ac_try;;
23366 esac
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23369   ac_status=$?
23370   grep -v '^ *+' conftest.er1 >conftest.err
23371   rm -f conftest.er1
23372   cat conftest.err >&5
23373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); } >/dev/null && {
23375          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23376          test ! -s conftest.err
23377        }; then
23378   ac_header_preproc=yes
23379 else
23380   echo "$as_me: failed program was:" >&5
23381 sed 's/^/| /' conftest.$ac_ext >&5
23382
23383   ac_header_preproc=no
23384 fi
23385
23386 rm -f conftest.err conftest.$ac_ext
23387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23388 echo "${ECHO_T}$ac_header_preproc" >&6; }
23389
23390 # So?  What about this header?
23391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23392   yes:no: )
23393     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
23394 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23395     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
23396 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
23397     ac_header_preproc=yes
23398     ;;
23399   no:yes:* )
23400     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
23401 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
23402     { echo "$as_me:$LINENO: WARNING: linux/videodev.h:     check for missing prerequisite headers?" >&5
23403 echo "$as_me: WARNING: linux/videodev.h:     check for missing prerequisite headers?" >&2;}
23404     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
23405 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
23406     { echo "$as_me:$LINENO: WARNING: linux/videodev.h:     section \"Present But Cannot Be Compiled\"" >&5
23407 echo "$as_me: WARNING: linux/videodev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23408     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
23409 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
23410     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
23411 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
23412     ( cat <<\_ASBOX
23413 ## -------------------------------------------------------- ##
23414 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23415 ## -------------------------------------------------------- ##
23416 _ASBOX
23417      ) | sed "s/^/$as_me: WARNING:     /" >&2
23418     ;;
23419 esac
23420 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
23421 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
23422 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23423   echo $ECHO_N "(cached) $ECHO_C" >&6
23424 else
23425   ac_cv_header_linux_videodev_h=$ac_header_preproc
23426 fi
23427 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
23428 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
23429
23430 fi
23431 if test $ac_cv_header_linux_videodev_h = yes; then
23432
23433
23434 cat >>confdefs.h <<\_ACEOF
23435 #define HAVE_CAMV4L
23436 _ACEOF
23437
23438                           have_v4l=yes
23439                           have_v4l1or2=yes
23440
23441 else
23442
23443                           have_v4l=no
23444                           have_v4l1or2=no
23445
23446 fi
23447
23448
23449         { echo "$as_me:$LINENO: checking for linux/videodev2.h" >&5
23450 echo $ECHO_N "checking for linux/videodev2.h... $ECHO_C" >&6; }
23451 if test "${ac_cv_header_linux_videodev2_h+set}" = set; then
23452   echo $ECHO_N "(cached) $ECHO_C" >&6
23453 else
23454   cat >conftest.$ac_ext <<_ACEOF
23455 /* confdefs.h.  */
23456 _ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h.  */
23460
23461                 #include <asm/types.h>
23462                 #include <sys/time.h>
23463
23464
23465 #include <linux/videodev2.h>
23466 _ACEOF
23467 rm -f conftest.$ac_objext
23468 if { (ac_try="$ac_compile"
23469 case "(($ac_try" in
23470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471   *) ac_try_echo=$ac_try;;
23472 esac
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474   (eval "$ac_compile") 2>conftest.er1
23475   ac_status=$?
23476   grep -v '^ *+' conftest.er1 >conftest.err
23477   rm -f conftest.er1
23478   cat conftest.err >&5
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); } && {
23481          test -z "$ac_c_werror_flag" ||
23482          test ! -s conftest.err
23483        } && test -s conftest.$ac_objext; then
23484   ac_cv_header_linux_videodev2_h=yes
23485 else
23486   echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23488
23489         ac_cv_header_linux_videodev2_h=no
23490 fi
23491
23492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493 fi
23494 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev2_h" >&5
23495 echo "${ECHO_T}$ac_cv_header_linux_videodev2_h" >&6; }
23496 if test $ac_cv_header_linux_videodev2_h = yes; then
23497
23498
23499 cat >>confdefs.h <<\_ACEOF
23500 #define HAVE_CAMV4L2
23501 _ACEOF
23502
23503                           have_v4l2=yes
23504                           have_v4l1or2=yes
23505
23506 else
23507    have_v4l2=no
23508 fi
23509
23510
23511     else
23512         # if we get here then --with-v4l was not called with 'yes','no' or 'auto'
23513         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&5
23514 echo "$as_me: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&2;}
23515         have_v4l=no
23516         have_v4l2=no
23517         have_v4l1or2=no
23518     fi
23519
23520 fi
23521  if test x"$have_v4l1or2" = "xyes"; then
23522   BUILD_V4L_TRUE=
23523   BUILD_V4L_FALSE='#'
23524 else
23525   BUILD_V4L_TRUE='#'
23526   BUILD_V4L_FALSE=
23527 fi
23528
23529
23530
23531 ######################################################################
23532 # HighGUI dependencies for image I/O
23533
23534 SAVELIBS="$LIBS"
23535 IMAGELIBS=""
23536
23537
23538
23539 have_imageio=no
23540 if test x"$with_imageio" = "xauto"; then
23541     with_imageio=yes
23542 fi
23543 if test x"$with_imageio" = "xyes"; then
23544     if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
23545   { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
23546 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
23547 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
23548   echo $ECHO_N "(cached) $ECHO_C" >&6
23549 fi
23550 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
23551 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
23552 else
23553   # Is the header compilable?
23554 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
23555 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
23556 cat >conftest.$ac_ext <<_ACEOF
23557 /* confdefs.h.  */
23558 _ACEOF
23559 cat confdefs.h >>conftest.$ac_ext
23560 cat >>conftest.$ac_ext <<_ACEOF
23561 /* end confdefs.h.  */
23562 $ac_includes_default
23563 #include <ApplicationServices/ApplicationServices.h>
23564 _ACEOF
23565 rm -f conftest.$ac_objext
23566 if { (ac_try="$ac_compile"
23567 case "(($ac_try" in
23568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569   *) ac_try_echo=$ac_try;;
23570 esac
23571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572   (eval "$ac_compile") 2>conftest.er1
23573   ac_status=$?
23574   grep -v '^ *+' conftest.er1 >conftest.err
23575   rm -f conftest.er1
23576   cat conftest.err >&5
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); } && {
23579          test -z "$ac_c_werror_flag" ||
23580          test ! -s conftest.err
23581        } && test -s conftest.$ac_objext; then
23582   ac_header_compiler=yes
23583 else
23584   echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23586
23587         ac_header_compiler=no
23588 fi
23589
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23592 echo "${ECHO_T}$ac_header_compiler" >&6; }
23593
23594 # Is the header present?
23595 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
23596 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
23597 cat >conftest.$ac_ext <<_ACEOF
23598 /* confdefs.h.  */
23599 _ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h.  */
23603 #include <ApplicationServices/ApplicationServices.h>
23604 _ACEOF
23605 if { (ac_try="$ac_cpp conftest.$ac_ext"
23606 case "(($ac_try" in
23607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608   *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23612   ac_status=$?
23613   grep -v '^ *+' conftest.er1 >conftest.err
23614   rm -f conftest.er1
23615   cat conftest.err >&5
23616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617   (exit $ac_status); } >/dev/null && {
23618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23619          test ! -s conftest.err
23620        }; then
23621   ac_header_preproc=yes
23622 else
23623   echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23625
23626   ac_header_preproc=no
23627 fi
23628
23629 rm -f conftest.err conftest.$ac_ext
23630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23631 echo "${ECHO_T}$ac_header_preproc" >&6; }
23632
23633 # So?  What about this header?
23634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23635   yes:no: )
23636     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
23637 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23638     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
23639 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
23640     ac_header_preproc=yes
23641     ;;
23642   no:yes:* )
23643     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
23644 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
23645     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h:     check for missing prerequisite headers?" >&5
23646 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h:     check for missing prerequisite headers?" >&2;}
23647     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
23648 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
23649     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h:     section \"Present But Cannot Be Compiled\"" >&5
23650 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23651     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
23652 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
23653     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
23654 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
23655     ( cat <<\_ASBOX
23656 ## -------------------------------------------------------- ##
23657 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23658 ## -------------------------------------------------------- ##
23659 _ASBOX
23660      ) | sed "s/^/$as_me: WARNING:     /" >&2
23661     ;;
23662 esac
23663 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
23664 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
23665 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
23666   echo $ECHO_N "(cached) $ECHO_C" >&6
23667 else
23668   ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
23669 fi
23670 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
23671 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
23672
23673 fi
23674 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
23675
23676                       have_imageio=yes
23677
23678 cat >>confdefs.h <<\_ACEOF
23679 #define HAVE_IMAGEIO
23680 _ACEOF
23681
23682                       IMAGELIBS="$IMAGELIBS -framework ApplicationServices"
23683                       LIBS="$LIBS -framework ApplicationServices"
23684
23685 else
23686    have_imageio=no
23687 fi
23688
23689
23690 fi
23691  if test x"$have_imageio" = "xyes"; then
23692   BUILD_IMAGEIO_TRUE=
23693   BUILD_IMAGEIO_FALSE='#'
23694 else
23695   BUILD_IMAGEIO_TRUE='#'
23696   BUILD_IMAGEIO_FALSE=
23697 fi
23698
23699
23700
23701 have_jpeg=no
23702 have_zlib=no
23703 have_png=no
23704 have_tiff=no
23705
23706 # there are problems with dependencies of ImageIO to libtiff, etc.
23707 # that we avoid by not linking them ourselves
23708 if test x"$have_imageio" = "xno" ; then
23709
23710   if test "${ac_cv_header_jpeglib_h+set}" = set; then
23711   { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23712 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
23713 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23714   echo $ECHO_N "(cached) $ECHO_C" >&6
23715 fi
23716 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23717 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
23718 else
23719   # Is the header compilable?
23720 { echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
23721 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
23722 cat >conftest.$ac_ext <<_ACEOF
23723 /* confdefs.h.  */
23724 _ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h.  */
23728 $ac_includes_default
23729 #include <jpeglib.h>
23730 _ACEOF
23731 rm -f conftest.$ac_objext
23732 if { (ac_try="$ac_compile"
23733 case "(($ac_try" in
23734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735   *) ac_try_echo=$ac_try;;
23736 esac
23737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23738   (eval "$ac_compile") 2>conftest.er1
23739   ac_status=$?
23740   grep -v '^ *+' conftest.er1 >conftest.err
23741   rm -f conftest.er1
23742   cat conftest.err >&5
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); } && {
23745          test -z "$ac_c_werror_flag" ||
23746          test ! -s conftest.err
23747        } && test -s conftest.$ac_objext; then
23748   ac_header_compiler=yes
23749 else
23750   echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23752
23753         ac_header_compiler=no
23754 fi
23755
23756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23758 echo "${ECHO_T}$ac_header_compiler" >&6; }
23759
23760 # Is the header present?
23761 { echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
23762 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
23763 cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h.  */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h.  */
23769 #include <jpeglib.h>
23770 _ACEOF
23771 if { (ac_try="$ac_cpp conftest.$ac_ext"
23772 case "(($ac_try" in
23773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774   *) ac_try_echo=$ac_try;;
23775 esac
23776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23778   ac_status=$?
23779   grep -v '^ *+' conftest.er1 >conftest.err
23780   rm -f conftest.er1
23781   cat conftest.err >&5
23782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783   (exit $ac_status); } >/dev/null && {
23784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23785          test ! -s conftest.err
23786        }; then
23787   ac_header_preproc=yes
23788 else
23789   echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23791
23792   ac_header_preproc=no
23793 fi
23794
23795 rm -f conftest.err conftest.$ac_ext
23796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23797 echo "${ECHO_T}$ac_header_preproc" >&6; }
23798
23799 # So?  What about this header?
23800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23801   yes:no: )
23802     { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23803 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23804     { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
23805 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
23806     ac_header_preproc=yes
23807     ;;
23808   no:yes:* )
23809     { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
23810 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
23811     { echo "$as_me:$LINENO: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&5
23812 echo "$as_me: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&2;}
23813     { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
23814 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
23815     { echo "$as_me:$LINENO: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&5
23816 echo "$as_me: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23817     { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
23818 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
23819     { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
23820 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
23821     ( cat <<\_ASBOX
23822 ## -------------------------------------------------------- ##
23823 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23824 ## -------------------------------------------------------- ##
23825 _ASBOX
23826      ) | sed "s/^/$as_me: WARNING:     /" >&2
23827     ;;
23828 esac
23829 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23830 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
23831 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23832   echo $ECHO_N "(cached) $ECHO_C" >&6
23833 else
23834   ac_cv_header_jpeglib_h=$ac_header_preproc
23835 fi
23836 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23837 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
23838
23839 fi
23840 if test $ac_cv_header_jpeglib_h = yes; then
23841   { echo "$as_me:$LINENO: checking for jpeg_destroy_decompress in -ljpeg" >&5
23842 echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C" >&6; }
23843 if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then
23844   echo $ECHO_N "(cached) $ECHO_C" >&6
23845 else
23846   ac_check_lib_save_LIBS=$LIBS
23847 LIBS="-ljpeg  $LIBS"
23848 cat >conftest.$ac_ext <<_ACEOF
23849 /* confdefs.h.  */
23850 _ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h.  */
23854
23855 /* Override any GCC internal prototype to avoid an error.
23856    Use char because int might match the return type of a GCC
23857    builtin and then its argument prototype would still apply.  */
23858 #ifdef __cplusplus
23859 extern "C"
23860 #endif
23861 char jpeg_destroy_decompress ();
23862 int
23863 main ()
23864 {
23865 return jpeg_destroy_decompress ();
23866   ;
23867   return 0;
23868 }
23869 _ACEOF
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (ac_try="$ac_link"
23872 case "(($ac_try" in
23873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874   *) ac_try_echo=$ac_try;;
23875 esac
23876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23877   (eval "$ac_link") 2>conftest.er1
23878   ac_status=$?
23879   grep -v '^ *+' conftest.er1 >conftest.err
23880   rm -f conftest.er1
23881   cat conftest.err >&5
23882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); } && {
23884          test -z "$ac_c_werror_flag" ||
23885          test ! -s conftest.err
23886        } && test -s conftest$ac_exeext &&
23887        $as_test_x conftest$ac_exeext; then
23888   ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
23889 else
23890   echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23892
23893         ac_cv_lib_jpeg_jpeg_destroy_decompress=no
23894 fi
23895
23896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23897       conftest$ac_exeext conftest.$ac_ext
23898 LIBS=$ac_check_lib_save_LIBS
23899 fi
23900 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
23901 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
23902 if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then
23903
23904                                  have_jpeg=yes
23905
23906 cat >>confdefs.h <<\_ACEOF
23907 #define HAVE_JPEG
23908 _ACEOF
23909
23910                                  IMAGELIBS="$IMAGELIBS -ljpeg"
23911
23912 fi
23913
23914 fi
23915
23916
23917
23918   if test "${ac_cv_header_zlib_h+set}" = set; then
23919   { echo "$as_me:$LINENO: checking for zlib.h" >&5
23920 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
23921 if test "${ac_cv_header_zlib_h+set}" = set; then
23922   echo $ECHO_N "(cached) $ECHO_C" >&6
23923 fi
23924 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23925 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
23926 else
23927   # Is the header compilable?
23928 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
23929 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
23930 cat >conftest.$ac_ext <<_ACEOF
23931 /* confdefs.h.  */
23932 _ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h.  */
23936 $ac_includes_default
23937 #include <zlib.h>
23938 _ACEOF
23939 rm -f conftest.$ac_objext
23940 if { (ac_try="$ac_compile"
23941 case "(($ac_try" in
23942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23943   *) ac_try_echo=$ac_try;;
23944 esac
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946   (eval "$ac_compile") 2>conftest.er1
23947   ac_status=$?
23948   grep -v '^ *+' conftest.er1 >conftest.err
23949   rm -f conftest.er1
23950   cat conftest.err >&5
23951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952   (exit $ac_status); } && {
23953          test -z "$ac_c_werror_flag" ||
23954          test ! -s conftest.err
23955        } && test -s conftest.$ac_objext; then
23956   ac_header_compiler=yes
23957 else
23958   echo "$as_me: failed program was:" >&5
23959 sed 's/^/| /' conftest.$ac_ext >&5
23960
23961         ac_header_compiler=no
23962 fi
23963
23964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23966 echo "${ECHO_T}$ac_header_compiler" >&6; }
23967
23968 # Is the header present?
23969 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
23970 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
23971 cat >conftest.$ac_ext <<_ACEOF
23972 /* confdefs.h.  */
23973 _ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h.  */
23977 #include <zlib.h>
23978 _ACEOF
23979 if { (ac_try="$ac_cpp conftest.$ac_ext"
23980 case "(($ac_try" in
23981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982   *) ac_try_echo=$ac_try;;
23983 esac
23984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23985   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23986   ac_status=$?
23987   grep -v '^ *+' conftest.er1 >conftest.err
23988   rm -f conftest.er1
23989   cat conftest.err >&5
23990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); } >/dev/null && {
23992          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23993          test ! -s conftest.err
23994        }; then
23995   ac_header_preproc=yes
23996 else
23997   echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
23999
24000   ac_header_preproc=no
24001 fi
24002
24003 rm -f conftest.err conftest.$ac_ext
24004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24005 echo "${ECHO_T}$ac_header_preproc" >&6; }
24006
24007 # So?  What about this header?
24008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24009   yes:no: )
24010     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24011 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24012     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24013 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24014     ac_header_preproc=yes
24015     ;;
24016   no:yes:* )
24017     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24018 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
24019     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
24020 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
24021     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24022 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24023     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
24024 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24025     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24026 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
24027     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24028 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
24029     ( cat <<\_ASBOX
24030 ## -------------------------------------------------------- ##
24031 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24032 ## -------------------------------------------------------- ##
24033 _ASBOX
24034      ) | sed "s/^/$as_me: WARNING:     /" >&2
24035     ;;
24036 esac
24037 { echo "$as_me:$LINENO: checking for zlib.h" >&5
24038 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
24039 if test "${ac_cv_header_zlib_h+set}" = set; then
24040   echo $ECHO_N "(cached) $ECHO_C" >&6
24041 else
24042   ac_cv_header_zlib_h=$ac_header_preproc
24043 fi
24044 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24045 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
24046
24047 fi
24048 if test $ac_cv_header_zlib_h = yes; then
24049   { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
24050 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
24051 if test "${ac_cv_lib_z_gzopen+set}" = set; then
24052   echo $ECHO_N "(cached) $ECHO_C" >&6
24053 else
24054   ac_check_lib_save_LIBS=$LIBS
24055 LIBS="-lz  $LIBS"
24056 cat >conftest.$ac_ext <<_ACEOF
24057 /* confdefs.h.  */
24058 _ACEOF
24059 cat confdefs.h >>conftest.$ac_ext
24060 cat >>conftest.$ac_ext <<_ACEOF
24061 /* end confdefs.h.  */
24062
24063 /* Override any GCC internal prototype to avoid an error.
24064    Use char because int might match the return type of a GCC
24065    builtin and then its argument prototype would still apply.  */
24066 #ifdef __cplusplus
24067 extern "C"
24068 #endif
24069 char gzopen ();
24070 int
24071 main ()
24072 {
24073 return gzopen ();
24074   ;
24075   return 0;
24076 }
24077 _ACEOF
24078 rm -f conftest.$ac_objext conftest$ac_exeext
24079 if { (ac_try="$ac_link"
24080 case "(($ac_try" in
24081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082   *) ac_try_echo=$ac_try;;
24083 esac
24084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24085   (eval "$ac_link") 2>conftest.er1
24086   ac_status=$?
24087   grep -v '^ *+' conftest.er1 >conftest.err
24088   rm -f conftest.er1
24089   cat conftest.err >&5
24090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); } && {
24092          test -z "$ac_c_werror_flag" ||
24093          test ! -s conftest.err
24094        } && test -s conftest$ac_exeext &&
24095        $as_test_x conftest$ac_exeext; then
24096   ac_cv_lib_z_gzopen=yes
24097 else
24098   echo "$as_me: failed program was:" >&5
24099 sed 's/^/| /' conftest.$ac_ext >&5
24100
24101         ac_cv_lib_z_gzopen=no
24102 fi
24103
24104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24105       conftest$ac_exeext conftest.$ac_ext
24106 LIBS=$ac_check_lib_save_LIBS
24107 fi
24108 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
24109 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
24110 if test $ac_cv_lib_z_gzopen = yes; then
24111
24112                                  have_zlib=yes
24113
24114 cat >>confdefs.h <<\_ACEOF
24115 #define HAVE_ZLIB
24116 _ACEOF
24117
24118                                  IMAGELIBS="$IMAGELIBS -lz -lm"
24119                                  LIBS="$LIBS -lz -lm"
24120
24121 fi
24122
24123 fi
24124
24125
24126
24127   if test "${ac_cv_header_png_h+set}" = set; then
24128   { echo "$as_me:$LINENO: checking for png.h" >&5
24129 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
24130 if test "${ac_cv_header_png_h+set}" = set; then
24131   echo $ECHO_N "(cached) $ECHO_C" >&6
24132 fi
24133 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24134 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
24135 else
24136   # Is the header compilable?
24137 { echo "$as_me:$LINENO: checking png.h usability" >&5
24138 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
24139 cat >conftest.$ac_ext <<_ACEOF
24140 /* confdefs.h.  */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h.  */
24145 $ac_includes_default
24146 #include <png.h>
24147 _ACEOF
24148 rm -f conftest.$ac_objext
24149 if { (ac_try="$ac_compile"
24150 case "(($ac_try" in
24151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152   *) ac_try_echo=$ac_try;;
24153 esac
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155   (eval "$ac_compile") 2>conftest.er1
24156   ac_status=$?
24157   grep -v '^ *+' conftest.er1 >conftest.err
24158   rm -f conftest.er1
24159   cat conftest.err >&5
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); } && {
24162          test -z "$ac_c_werror_flag" ||
24163          test ! -s conftest.err
24164        } && test -s conftest.$ac_objext; then
24165   ac_header_compiler=yes
24166 else
24167   echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24169
24170         ac_header_compiler=no
24171 fi
24172
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24175 echo "${ECHO_T}$ac_header_compiler" >&6; }
24176
24177 # Is the header present?
24178 { echo "$as_me:$LINENO: checking png.h presence" >&5
24179 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
24180 cat >conftest.$ac_ext <<_ACEOF
24181 /* confdefs.h.  */
24182 _ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h.  */
24186 #include <png.h>
24187 _ACEOF
24188 if { (ac_try="$ac_cpp conftest.$ac_ext"
24189 case "(($ac_try" in
24190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191   *) ac_try_echo=$ac_try;;
24192 esac
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24195   ac_status=$?
24196   grep -v '^ *+' conftest.er1 >conftest.err
24197   rm -f conftest.er1
24198   cat conftest.err >&5
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); } >/dev/null && {
24201          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24202          test ! -s conftest.err
24203        }; then
24204   ac_header_preproc=yes
24205 else
24206   echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24208
24209   ac_header_preproc=no
24210 fi
24211
24212 rm -f conftest.err conftest.$ac_ext
24213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24214 echo "${ECHO_T}$ac_header_preproc" >&6; }
24215
24216 # So?  What about this header?
24217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24218   yes:no: )
24219     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24220 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24221     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24222 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24223     ac_header_preproc=yes
24224     ;;
24225   no:yes:* )
24226     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24227 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
24228     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
24229 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
24230     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24231 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24232     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
24233 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24234     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24235 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
24236     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24237 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
24238     ( cat <<\_ASBOX
24239 ## -------------------------------------------------------- ##
24240 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24241 ## -------------------------------------------------------- ##
24242 _ASBOX
24243      ) | sed "s/^/$as_me: WARNING:     /" >&2
24244     ;;
24245 esac
24246 { echo "$as_me:$LINENO: checking for png.h" >&5
24247 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
24248 if test "${ac_cv_header_png_h+set}" = set; then
24249   echo $ECHO_N "(cached) $ECHO_C" >&6
24250 else
24251   ac_cv_header_png_h=$ac_header_preproc
24252 fi
24253 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24254 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
24255
24256 fi
24257 if test $ac_cv_header_png_h = yes; then
24258
24259
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_PNG_H
24262 _ACEOF
24263
24264                     have_png=yes
24265
24266 fi
24267
24268
24269   if test "${ac_cv_header_libpng_png_h+set}" = set; then
24270   { echo "$as_me:$LINENO: checking for libpng/png.h" >&5
24271 echo $ECHO_N "checking for libpng/png.h... $ECHO_C" >&6; }
24272 if test "${ac_cv_header_libpng_png_h+set}" = set; then
24273   echo $ECHO_N "(cached) $ECHO_C" >&6
24274 fi
24275 { echo "$as_me:$LINENO: result: $ac_cv_header_libpng_png_h" >&5
24276 echo "${ECHO_T}$ac_cv_header_libpng_png_h" >&6; }
24277 else
24278   # Is the header compilable?
24279 { echo "$as_me:$LINENO: checking libpng/png.h usability" >&5
24280 echo $ECHO_N "checking libpng/png.h usability... $ECHO_C" >&6; }
24281 cat >conftest.$ac_ext <<_ACEOF
24282 /* confdefs.h.  */
24283 _ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h.  */
24287 $ac_includes_default
24288 #include <libpng/png.h>
24289 _ACEOF
24290 rm -f conftest.$ac_objext
24291 if { (ac_try="$ac_compile"
24292 case "(($ac_try" in
24293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294   *) ac_try_echo=$ac_try;;
24295 esac
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297   (eval "$ac_compile") 2>conftest.er1
24298   ac_status=$?
24299   grep -v '^ *+' conftest.er1 >conftest.err
24300   rm -f conftest.er1
24301   cat conftest.err >&5
24302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303   (exit $ac_status); } && {
24304          test -z "$ac_c_werror_flag" ||
24305          test ! -s conftest.err
24306        } && test -s conftest.$ac_objext; then
24307   ac_header_compiler=yes
24308 else
24309   echo "$as_me: failed program was:" >&5
24310 sed 's/^/| /' conftest.$ac_ext >&5
24311
24312         ac_header_compiler=no
24313 fi
24314
24315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24317 echo "${ECHO_T}$ac_header_compiler" >&6; }
24318
24319 # Is the header present?
24320 { echo "$as_me:$LINENO: checking libpng/png.h presence" >&5
24321 echo $ECHO_N "checking libpng/png.h presence... $ECHO_C" >&6; }
24322 cat >conftest.$ac_ext <<_ACEOF
24323 /* confdefs.h.  */
24324 _ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h.  */
24328 #include <libpng/png.h>
24329 _ACEOF
24330 if { (ac_try="$ac_cpp conftest.$ac_ext"
24331 case "(($ac_try" in
24332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333   *) ac_try_echo=$ac_try;;
24334 esac
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24337   ac_status=$?
24338   grep -v '^ *+' conftest.er1 >conftest.err
24339   rm -f conftest.er1
24340   cat conftest.err >&5
24341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); } >/dev/null && {
24343          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24344          test ! -s conftest.err
24345        }; then
24346   ac_header_preproc=yes
24347 else
24348   echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24350
24351   ac_header_preproc=no
24352 fi
24353
24354 rm -f conftest.err conftest.$ac_ext
24355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24356 echo "${ECHO_T}$ac_header_preproc" >&6; }
24357
24358 # So?  What about this header?
24359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24360   yes:no: )
24361     { echo "$as_me:$LINENO: WARNING: libpng/png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24362 echo "$as_me: WARNING: libpng/png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24363     { echo "$as_me:$LINENO: WARNING: libpng/png.h: proceeding with the compiler's result" >&5
24364 echo "$as_me: WARNING: libpng/png.h: proceeding with the compiler's result" >&2;}
24365     ac_header_preproc=yes
24366     ;;
24367   no:yes:* )
24368     { echo "$as_me:$LINENO: WARNING: libpng/png.h: present but cannot be compiled" >&5
24369 echo "$as_me: WARNING: libpng/png.h: present but cannot be compiled" >&2;}
24370     { echo "$as_me:$LINENO: WARNING: libpng/png.h:     check for missing prerequisite headers?" >&5
24371 echo "$as_me: WARNING: libpng/png.h:     check for missing prerequisite headers?" >&2;}
24372     { echo "$as_me:$LINENO: WARNING: libpng/png.h: see the Autoconf documentation" >&5
24373 echo "$as_me: WARNING: libpng/png.h: see the Autoconf documentation" >&2;}
24374     { echo "$as_me:$LINENO: WARNING: libpng/png.h:     section \"Present But Cannot Be Compiled\"" >&5
24375 echo "$as_me: WARNING: libpng/png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24376     { echo "$as_me:$LINENO: WARNING: libpng/png.h: proceeding with the preprocessor's result" >&5
24377 echo "$as_me: WARNING: libpng/png.h: proceeding with the preprocessor's result" >&2;}
24378     { echo "$as_me:$LINENO: WARNING: libpng/png.h: in the future, the compiler will take precedence" >&5
24379 echo "$as_me: WARNING: libpng/png.h: in the future, the compiler will take precedence" >&2;}
24380     ( cat <<\_ASBOX
24381 ## -------------------------------------------------------- ##
24382 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24383 ## -------------------------------------------------------- ##
24384 _ASBOX
24385      ) | sed "s/^/$as_me: WARNING:     /" >&2
24386     ;;
24387 esac
24388 { echo "$as_me:$LINENO: checking for libpng/png.h" >&5
24389 echo $ECHO_N "checking for libpng/png.h... $ECHO_C" >&6; }
24390 if test "${ac_cv_header_libpng_png_h+set}" = set; then
24391   echo $ECHO_N "(cached) $ECHO_C" >&6
24392 else
24393   ac_cv_header_libpng_png_h=$ac_header_preproc
24394 fi
24395 { echo "$as_me:$LINENO: result: $ac_cv_header_libpng_png_h" >&5
24396 echo "${ECHO_T}$ac_cv_header_libpng_png_h" >&6; }
24397
24398 fi
24399 if test $ac_cv_header_libpng_png_h = yes; then
24400
24401
24402 cat >>confdefs.h <<\_ACEOF
24403 #define HAVE_LIBPNG_PNG_H
24404 _ACEOF
24405
24406                     have_png=yes
24407
24408 fi
24409
24410
24411
24412   if test x"$have_png" = "xyes"; then
24413     { echo "$as_me:$LINENO: checking for png_read_image in -lpng12" >&5
24414 echo $ECHO_N "checking for png_read_image in -lpng12... $ECHO_C" >&6; }
24415 if test "${ac_cv_lib_png12_png_read_image+set}" = set; then
24416   echo $ECHO_N "(cached) $ECHO_C" >&6
24417 else
24418   ac_check_lib_save_LIBS=$LIBS
24419 LIBS="-lpng12  $LIBS"
24420 cat >conftest.$ac_ext <<_ACEOF
24421 /* confdefs.h.  */
24422 _ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h.  */
24426
24427 /* Override any GCC internal prototype to avoid an error.
24428    Use char because int might match the return type of a GCC
24429    builtin and then its argument prototype would still apply.  */
24430 #ifdef __cplusplus
24431 extern "C"
24432 #endif
24433 char png_read_image ();
24434 int
24435 main ()
24436 {
24437 return png_read_image ();
24438   ;
24439   return 0;
24440 }
24441 _ACEOF
24442 rm -f conftest.$ac_objext conftest$ac_exeext
24443 if { (ac_try="$ac_link"
24444 case "(($ac_try" in
24445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446   *) ac_try_echo=$ac_try;;
24447 esac
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449   (eval "$ac_link") 2>conftest.er1
24450   ac_status=$?
24451   grep -v '^ *+' conftest.er1 >conftest.err
24452   rm -f conftest.er1
24453   cat conftest.err >&5
24454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455   (exit $ac_status); } && {
24456          test -z "$ac_c_werror_flag" ||
24457          test ! -s conftest.err
24458        } && test -s conftest$ac_exeext &&
24459        $as_test_x conftest$ac_exeext; then
24460   ac_cv_lib_png12_png_read_image=yes
24461 else
24462   echo "$as_me: failed program was:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24464
24465         ac_cv_lib_png12_png_read_image=no
24466 fi
24467
24468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24469       conftest$ac_exeext conftest.$ac_ext
24470 LIBS=$ac_check_lib_save_LIBS
24471 fi
24472 { echo "$as_me:$LINENO: result: $ac_cv_lib_png12_png_read_image" >&5
24473 echo "${ECHO_T}$ac_cv_lib_png12_png_read_image" >&6; }
24474 if test $ac_cv_lib_png12_png_read_image = yes; then
24475
24476                    have_png=yes
24477
24478 cat >>confdefs.h <<\_ACEOF
24479 #define HAVE_PNG
24480 _ACEOF
24481
24482                    IMAGELIBS="-lpng12 $IMAGELIBS"
24483                    LIBS="-lpng12 $LIBS"
24484
24485
24486 for ac_func in png_get_valid png_set_tRNS_to_alpha
24487 do
24488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24492   echo $ECHO_N "(cached) $ECHO_C" >&6
24493 else
24494   cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h.  */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h.  */
24500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24502 #define $ac_func innocuous_$ac_func
24503
24504 /* System header to define __stub macros and hopefully few prototypes,
24505     which can conflict with char $ac_func (); below.
24506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24507     <limits.h> exists even on freestanding compilers.  */
24508
24509 #ifdef __STDC__
24510 # include <limits.h>
24511 #else
24512 # include <assert.h>
24513 #endif
24514
24515 #undef $ac_func
24516
24517 /* Override any GCC internal prototype to avoid an error.
24518    Use char because int might match the return type of a GCC
24519    builtin and then its argument prototype would still apply.  */
24520 #ifdef __cplusplus
24521 extern "C"
24522 #endif
24523 char $ac_func ();
24524 /* The GNU C library defines this for functions which it implements
24525     to always fail with ENOSYS.  Some functions are actually named
24526     something starting with __ and the normal name is an alias.  */
24527 #if defined __stub_$ac_func || defined __stub___$ac_func
24528 choke me
24529 #endif
24530
24531 int
24532 main ()
24533 {
24534 return $ac_func ();
24535   ;
24536   return 0;
24537 }
24538 _ACEOF
24539 rm -f conftest.$ac_objext conftest$ac_exeext
24540 if { (ac_try="$ac_link"
24541 case "(($ac_try" in
24542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24543   *) ac_try_echo=$ac_try;;
24544 esac
24545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24546   (eval "$ac_link") 2>conftest.er1
24547   ac_status=$?
24548   grep -v '^ *+' conftest.er1 >conftest.err
24549   rm -f conftest.er1
24550   cat conftest.err >&5
24551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552   (exit $ac_status); } && {
24553          test -z "$ac_c_werror_flag" ||
24554          test ! -s conftest.err
24555        } && test -s conftest$ac_exeext &&
24556        $as_test_x conftest$ac_exeext; then
24557   eval "$as_ac_var=yes"
24558 else
24559   echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24561
24562         eval "$as_ac_var=no"
24563 fi
24564
24565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24566       conftest$ac_exeext conftest.$ac_ext
24567 fi
24568 ac_res=`eval echo '${'$as_ac_var'}'`
24569                { echo "$as_me:$LINENO: result: $ac_res" >&5
24570 echo "${ECHO_T}$ac_res" >&6; }
24571 if test `eval echo '${'$as_ac_var'}'` = yes; then
24572   cat >>confdefs.h <<_ACEOF
24573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24574 _ACEOF
24575
24576 fi
24577 done
24578
24579
24580 else
24581    have_png=no
24582 fi
24583
24584   fi
24585
24586   if test "${ac_cv_header_tiff_h+set}" = set; then
24587   { echo "$as_me:$LINENO: checking for tiff.h" >&5
24588 echo $ECHO_N "checking for tiff.h... $ECHO_C" >&6; }
24589 if test "${ac_cv_header_tiff_h+set}" = set; then
24590   echo $ECHO_N "(cached) $ECHO_C" >&6
24591 fi
24592 { echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
24593 echo "${ECHO_T}$ac_cv_header_tiff_h" >&6; }
24594 else
24595   # Is the header compilable?
24596 { echo "$as_me:$LINENO: checking tiff.h usability" >&5
24597 echo $ECHO_N "checking tiff.h usability... $ECHO_C" >&6; }
24598 cat >conftest.$ac_ext <<_ACEOF
24599 /* confdefs.h.  */
24600 _ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h.  */
24604 $ac_includes_default
24605 #include <tiff.h>
24606 _ACEOF
24607 rm -f conftest.$ac_objext
24608 if { (ac_try="$ac_compile"
24609 case "(($ac_try" in
24610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611   *) ac_try_echo=$ac_try;;
24612 esac
24613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614   (eval "$ac_compile") 2>conftest.er1
24615   ac_status=$?
24616   grep -v '^ *+' conftest.er1 >conftest.err
24617   rm -f conftest.er1
24618   cat conftest.err >&5
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); } && {
24621          test -z "$ac_c_werror_flag" ||
24622          test ! -s conftest.err
24623        } && test -s conftest.$ac_objext; then
24624   ac_header_compiler=yes
24625 else
24626   echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24628
24629         ac_header_compiler=no
24630 fi
24631
24632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24634 echo "${ECHO_T}$ac_header_compiler" >&6; }
24635
24636 # Is the header present?
24637 { echo "$as_me:$LINENO: checking tiff.h presence" >&5
24638 echo $ECHO_N "checking tiff.h presence... $ECHO_C" >&6; }
24639 cat >conftest.$ac_ext <<_ACEOF
24640 /* confdefs.h.  */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h.  */
24645 #include <tiff.h>
24646 _ACEOF
24647 if { (ac_try="$ac_cpp conftest.$ac_ext"
24648 case "(($ac_try" in
24649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24650   *) ac_try_echo=$ac_try;;
24651 esac
24652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24654   ac_status=$?
24655   grep -v '^ *+' conftest.er1 >conftest.err
24656   rm -f conftest.er1
24657   cat conftest.err >&5
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); } >/dev/null && {
24660          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24661          test ! -s conftest.err
24662        }; then
24663   ac_header_preproc=yes
24664 else
24665   echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24667
24668   ac_header_preproc=no
24669 fi
24670
24671 rm -f conftest.err conftest.$ac_ext
24672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24673 echo "${ECHO_T}$ac_header_preproc" >&6; }
24674
24675 # So?  What about this header?
24676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24677   yes:no: )
24678     { echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
24679 echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24680     { echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
24681 echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
24682     ac_header_preproc=yes
24683     ;;
24684   no:yes:* )
24685     { echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
24686 echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
24687     { echo "$as_me:$LINENO: WARNING: tiff.h:     check for missing prerequisite headers?" >&5
24688 echo "$as_me: WARNING: tiff.h:     check for missing prerequisite headers?" >&2;}
24689     { echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
24690 echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
24691     { echo "$as_me:$LINENO: WARNING: tiff.h:     section \"Present But Cannot Be Compiled\"" >&5
24692 echo "$as_me: WARNING: tiff.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24693     { echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
24694 echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
24695     { echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
24696 echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
24697     ( cat <<\_ASBOX
24698 ## -------------------------------------------------------- ##
24699 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24700 ## -------------------------------------------------------- ##
24701 _ASBOX
24702      ) | sed "s/^/$as_me: WARNING:     /" >&2
24703     ;;
24704 esac
24705 { echo "$as_me:$LINENO: checking for tiff.h" >&5
24706 echo $ECHO_N "checking for tiff.h... $ECHO_C" >&6; }
24707 if test "${ac_cv_header_tiff_h+set}" = set; then
24708   echo $ECHO_N "(cached) $ECHO_C" >&6
24709 else
24710   ac_cv_header_tiff_h=$ac_header_preproc
24711 fi
24712 { echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
24713 echo "${ECHO_T}$ac_cv_header_tiff_h" >&6; }
24714
24715 fi
24716 if test $ac_cv_header_tiff_h = yes; then
24717   { echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
24718 echo $ECHO_N "checking for TIFFReadRGBAStrip in -ltiff... $ECHO_C" >&6; }
24719 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   ac_check_lib_save_LIBS=$LIBS
24723 LIBS="-ltiff  $LIBS"
24724 cat >conftest.$ac_ext <<_ACEOF
24725 /* confdefs.h.  */
24726 _ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h.  */
24730
24731 /* Override any GCC internal prototype to avoid an error.
24732    Use char because int might match the return type of a GCC
24733    builtin and then its argument prototype would still apply.  */
24734 #ifdef __cplusplus
24735 extern "C"
24736 #endif
24737 char TIFFReadRGBAStrip ();
24738 int
24739 main ()
24740 {
24741 return TIFFReadRGBAStrip ();
24742   ;
24743   return 0;
24744 }
24745 _ACEOF
24746 rm -f conftest.$ac_objext conftest$ac_exeext
24747 if { (ac_try="$ac_link"
24748 case "(($ac_try" in
24749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750   *) ac_try_echo=$ac_try;;
24751 esac
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753   (eval "$ac_link") 2>conftest.er1
24754   ac_status=$?
24755   grep -v '^ *+' conftest.er1 >conftest.err
24756   rm -f conftest.er1
24757   cat conftest.err >&5
24758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759   (exit $ac_status); } && {
24760          test -z "$ac_c_werror_flag" ||
24761          test ! -s conftest.err
24762        } && test -s conftest$ac_exeext &&
24763        $as_test_x conftest$ac_exeext; then
24764   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
24765 else
24766   echo "$as_me: failed program was:" >&5
24767 sed 's/^/| /' conftest.$ac_ext >&5
24768
24769         ac_cv_lib_tiff_TIFFReadRGBAStrip=no
24770 fi
24771
24772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24773       conftest$ac_exeext conftest.$ac_ext
24774 LIBS=$ac_check_lib_save_LIBS
24775 fi
24776 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
24777 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
24778 if test $ac_cv_lib_tiff_TIFFReadRGBAStrip = yes; then
24779
24780                                  have_tiff=yes
24781
24782 cat >>confdefs.h <<\_ACEOF
24783 #define HAVE_TIFF
24784 _ACEOF
24785
24786                                  IMAGELIBS="$IMAGELIBS -ltiff"
24787                                  LIBS="$LIBS -ltiff"
24788
24789 fi
24790
24791 fi
24792
24793
24794 fi
24795
24796 have_jasper=no
24797 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
24798   { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
24799 echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
24800 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
24801   echo $ECHO_N "(cached) $ECHO_C" >&6
24802 fi
24803 { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
24804 echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
24805 else
24806   # Is the header compilable?
24807 { echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
24808 echo $ECHO_N "checking jasper/jasper.h usability... $ECHO_C" >&6; }
24809 cat >conftest.$ac_ext <<_ACEOF
24810 /* confdefs.h.  */
24811 _ACEOF
24812 cat confdefs.h >>conftest.$ac_ext
24813 cat >>conftest.$ac_ext <<_ACEOF
24814 /* end confdefs.h.  */
24815 $ac_includes_default
24816 #include <jasper/jasper.h>
24817 _ACEOF
24818 rm -f conftest.$ac_objext
24819 if { (ac_try="$ac_compile"
24820 case "(($ac_try" in
24821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822   *) ac_try_echo=$ac_try;;
24823 esac
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825   (eval "$ac_compile") 2>conftest.er1
24826   ac_status=$?
24827   grep -v '^ *+' conftest.er1 >conftest.err
24828   rm -f conftest.er1
24829   cat conftest.err >&5
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); } && {
24832          test -z "$ac_c_werror_flag" ||
24833          test ! -s conftest.err
24834        } && test -s conftest.$ac_objext; then
24835   ac_header_compiler=yes
24836 else
24837   echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24839
24840         ac_header_compiler=no
24841 fi
24842
24843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24845 echo "${ECHO_T}$ac_header_compiler" >&6; }
24846
24847 # Is the header present?
24848 { echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
24849 echo $ECHO_N "checking jasper/jasper.h presence... $ECHO_C" >&6; }
24850 cat >conftest.$ac_ext <<_ACEOF
24851 /* confdefs.h.  */
24852 _ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h.  */
24856 #include <jasper/jasper.h>
24857 _ACEOF
24858 if { (ac_try="$ac_cpp conftest.$ac_ext"
24859 case "(($ac_try" in
24860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24861   *) ac_try_echo=$ac_try;;
24862 esac
24863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24865   ac_status=$?
24866   grep -v '^ *+' conftest.er1 >conftest.err
24867   rm -f conftest.er1
24868   cat conftest.err >&5
24869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870   (exit $ac_status); } >/dev/null && {
24871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24872          test ! -s conftest.err
24873        }; then
24874   ac_header_preproc=yes
24875 else
24876   echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24878
24879   ac_header_preproc=no
24880 fi
24881
24882 rm -f conftest.err conftest.$ac_ext
24883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24884 echo "${ECHO_T}$ac_header_preproc" >&6; }
24885
24886 # So?  What about this header?
24887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24888   yes:no: )
24889     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
24890 echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24891     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
24892 echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
24893     ac_header_preproc=yes
24894     ;;
24895   no:yes:* )
24896     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
24897 echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
24898     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h:     check for missing prerequisite headers?" >&5
24899 echo "$as_me: WARNING: jasper/jasper.h:     check for missing prerequisite headers?" >&2;}
24900     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
24901 echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
24902     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h:     section \"Present But Cannot Be Compiled\"" >&5
24903 echo "$as_me: WARNING: jasper/jasper.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24904     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
24905 echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
24906     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
24907 echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
24908     ( cat <<\_ASBOX
24909 ## -------------------------------------------------------- ##
24910 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24911 ## -------------------------------------------------------- ##
24912 _ASBOX
24913      ) | sed "s/^/$as_me: WARNING:     /" >&2
24914     ;;
24915 esac
24916 { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
24917 echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
24918 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
24919   echo $ECHO_N "(cached) $ECHO_C" >&6
24920 else
24921   ac_cv_header_jasper_jasper_h=$ac_header_preproc
24922 fi
24923 { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
24924 echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
24925
24926 fi
24927 if test $ac_cv_header_jasper_jasper_h = yes; then
24928   { echo "$as_me:$LINENO: checking for jas_image_readcmpt in -ljasper" >&5
24929 echo $ECHO_N "checking for jas_image_readcmpt in -ljasper... $ECHO_C" >&6; }
24930 if test "${ac_cv_lib_jasper_jas_image_readcmpt+set}" = set; then
24931   echo $ECHO_N "(cached) $ECHO_C" >&6
24932 else
24933   ac_check_lib_save_LIBS=$LIBS
24934 LIBS="-ljasper  $LIBS"
24935 cat >conftest.$ac_ext <<_ACEOF
24936 /* confdefs.h.  */
24937 _ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h.  */
24941
24942 /* Override any GCC internal prototype to avoid an error.
24943    Use char because int might match the return type of a GCC
24944    builtin and then its argument prototype would still apply.  */
24945 #ifdef __cplusplus
24946 extern "C"
24947 #endif
24948 char jas_image_readcmpt ();
24949 int
24950 main ()
24951 {
24952 return jas_image_readcmpt ();
24953   ;
24954   return 0;
24955 }
24956 _ACEOF
24957 rm -f conftest.$ac_objext conftest$ac_exeext
24958 if { (ac_try="$ac_link"
24959 case "(($ac_try" in
24960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961   *) ac_try_echo=$ac_try;;
24962 esac
24963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24964   (eval "$ac_link") 2>conftest.er1
24965   ac_status=$?
24966   grep -v '^ *+' conftest.er1 >conftest.err
24967   rm -f conftest.er1
24968   cat conftest.err >&5
24969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970   (exit $ac_status); } && {
24971          test -z "$ac_c_werror_flag" ||
24972          test ! -s conftest.err
24973        } && test -s conftest$ac_exeext &&
24974        $as_test_x conftest$ac_exeext; then
24975   ac_cv_lib_jasper_jas_image_readcmpt=yes
24976 else
24977   echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24979
24980         ac_cv_lib_jasper_jas_image_readcmpt=no
24981 fi
24982
24983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24984       conftest$ac_exeext conftest.$ac_ext
24985 LIBS=$ac_check_lib_save_LIBS
24986 fi
24987 { echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_image_readcmpt" >&5
24988 echo "${ECHO_T}$ac_cv_lib_jasper_jas_image_readcmpt" >&6; }
24989 if test $ac_cv_lib_jasper_jas_image_readcmpt = yes; then
24990
24991                                have_jasper=yes
24992
24993 cat >>confdefs.h <<\_ACEOF
24994 #define HAVE_JASPER
24995 _ACEOF
24996
24997                                IMAGELIBS="$IMAGELIBS -ljasper"
24998                                LIBS="$LIBS -ljasper"
24999
25000 fi
25001
25002 fi
25003
25004
25005
25006 have_ilmimf=no
25007 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25008   { echo "$as_me:$LINENO: checking for ImfCRgbaFile.h" >&5
25009 echo $ECHO_N "checking for ImfCRgbaFile.h... $ECHO_C" >&6; }
25010 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25011   echo $ECHO_N "(cached) $ECHO_C" >&6
25012 fi
25013 { echo "$as_me:$LINENO: result: $ac_cv_header_ImfCRgbaFile_h" >&5
25014 echo "${ECHO_T}$ac_cv_header_ImfCRgbaFile_h" >&6; }
25015 else
25016   # Is the header compilable?
25017 { echo "$as_me:$LINENO: checking ImfCRgbaFile.h usability" >&5
25018 echo $ECHO_N "checking ImfCRgbaFile.h usability... $ECHO_C" >&6; }
25019 cat >conftest.$ac_ext <<_ACEOF
25020 /* confdefs.h.  */
25021 _ACEOF
25022 cat confdefs.h >>conftest.$ac_ext
25023 cat >>conftest.$ac_ext <<_ACEOF
25024 /* end confdefs.h.  */
25025 $ac_includes_default
25026 #include <ImfCRgbaFile.h>
25027 _ACEOF
25028 rm -f conftest.$ac_objext
25029 if { (ac_try="$ac_compile"
25030 case "(($ac_try" in
25031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032   *) ac_try_echo=$ac_try;;
25033 esac
25034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035   (eval "$ac_compile") 2>conftest.er1
25036   ac_status=$?
25037   grep -v '^ *+' conftest.er1 >conftest.err
25038   rm -f conftest.er1
25039   cat conftest.err >&5
25040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041   (exit $ac_status); } && {
25042          test -z "$ac_c_werror_flag" ||
25043          test ! -s conftest.err
25044        } && test -s conftest.$ac_objext; then
25045   ac_header_compiler=yes
25046 else
25047   echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25049
25050         ac_header_compiler=no
25051 fi
25052
25053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25055 echo "${ECHO_T}$ac_header_compiler" >&6; }
25056
25057 # Is the header present?
25058 { echo "$as_me:$LINENO: checking ImfCRgbaFile.h presence" >&5
25059 echo $ECHO_N "checking ImfCRgbaFile.h presence... $ECHO_C" >&6; }
25060 cat >conftest.$ac_ext <<_ACEOF
25061 /* confdefs.h.  */
25062 _ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h.  */
25066 #include <ImfCRgbaFile.h>
25067 _ACEOF
25068 if { (ac_try="$ac_cpp conftest.$ac_ext"
25069 case "(($ac_try" in
25070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25071   *) ac_try_echo=$ac_try;;
25072 esac
25073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25075   ac_status=$?
25076   grep -v '^ *+' conftest.er1 >conftest.err
25077   rm -f conftest.er1
25078   cat conftest.err >&5
25079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080   (exit $ac_status); } >/dev/null && {
25081          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25082          test ! -s conftest.err
25083        }; then
25084   ac_header_preproc=yes
25085 else
25086   echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25088
25089   ac_header_preproc=no
25090 fi
25091
25092 rm -f conftest.err conftest.$ac_ext
25093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25094 echo "${ECHO_T}$ac_header_preproc" >&6; }
25095
25096 # So?  What about this header?
25097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25098   yes:no: )
25099     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: accepted by the compiler, rejected by the preprocessor!" >&5
25100 echo "$as_me: WARNING: ImfCRgbaFile.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25101     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: proceeding with the compiler's result" >&5
25102 echo "$as_me: WARNING: ImfCRgbaFile.h: proceeding with the compiler's result" >&2;}
25103     ac_header_preproc=yes
25104     ;;
25105   no:yes:* )
25106     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: present but cannot be compiled" >&5
25107 echo "$as_me: WARNING: ImfCRgbaFile.h: present but cannot be compiled" >&2;}
25108     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h:     check for missing prerequisite headers?" >&5
25109 echo "$as_me: WARNING: ImfCRgbaFile.h:     check for missing prerequisite headers?" >&2;}
25110     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: see the Autoconf documentation" >&5
25111 echo "$as_me: WARNING: ImfCRgbaFile.h: see the Autoconf documentation" >&2;}
25112     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h:     section \"Present But Cannot Be Compiled\"" >&5
25113 echo "$as_me: WARNING: ImfCRgbaFile.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25114     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: proceeding with the preprocessor's result" >&5
25115 echo "$as_me: WARNING: ImfCRgbaFile.h: proceeding with the preprocessor's result" >&2;}
25116     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: in the future, the compiler will take precedence" >&5
25117 echo "$as_me: WARNING: ImfCRgbaFile.h: in the future, the compiler will take precedence" >&2;}
25118     ( cat <<\_ASBOX
25119 ## -------------------------------------------------------- ##
25120 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25121 ## -------------------------------------------------------- ##
25122 _ASBOX
25123      ) | sed "s/^/$as_me: WARNING:     /" >&2
25124     ;;
25125 esac
25126 { echo "$as_me:$LINENO: checking for ImfCRgbaFile.h" >&5
25127 echo $ECHO_N "checking for ImfCRgbaFile.h... $ECHO_C" >&6; }
25128 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25129   echo $ECHO_N "(cached) $ECHO_C" >&6
25130 else
25131   ac_cv_header_ImfCRgbaFile_h=$ac_header_preproc
25132 fi
25133 { echo "$as_me:$LINENO: result: $ac_cv_header_ImfCRgbaFile_h" >&5
25134 echo "${ECHO_T}$ac_cv_header_ImfCRgbaFile_h" >&6; }
25135
25136 fi
25137 if test $ac_cv_header_ImfCRgbaFile_h = yes; then
25138   { echo "$as_me:$LINENO: checking for ImfInputReadPixels in -lIlmImf" >&5
25139 echo $ECHO_N "checking for ImfInputReadPixels in -lIlmImf... $ECHO_C" >&6; }
25140 if test "${ac_cv_lib_IlmImf_ImfInputReadPixels+set}" = set; then
25141   echo $ECHO_N "(cached) $ECHO_C" >&6
25142 else
25143   ac_check_lib_save_LIBS=$LIBS
25144 LIBS="-lIlmImf  -lIex -lHalf  $LIBS"
25145 cat >conftest.$ac_ext <<_ACEOF
25146 /* confdefs.h.  */
25147 _ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h.  */
25151
25152 /* Override any GCC internal prototype to avoid an error.
25153    Use char because int might match the return type of a GCC
25154    builtin and then its argument prototype would still apply.  */
25155 #ifdef __cplusplus
25156 extern "C"
25157 #endif
25158 char ImfInputReadPixels ();
25159 int
25160 main ()
25161 {
25162 return ImfInputReadPixels ();
25163   ;
25164   return 0;
25165 }
25166 _ACEOF
25167 rm -f conftest.$ac_objext conftest$ac_exeext
25168 if { (ac_try="$ac_link"
25169 case "(($ac_try" in
25170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171   *) ac_try_echo=$ac_try;;
25172 esac
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174   (eval "$ac_link") 2>conftest.er1
25175   ac_status=$?
25176   grep -v '^ *+' conftest.er1 >conftest.err
25177   rm -f conftest.er1
25178   cat conftest.err >&5
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); } && {
25181          test -z "$ac_c_werror_flag" ||
25182          test ! -s conftest.err
25183        } && test -s conftest$ac_exeext &&
25184        $as_test_x conftest$ac_exeext; then
25185   ac_cv_lib_IlmImf_ImfInputReadPixels=yes
25186 else
25187   echo "$as_me: failed program was:" >&5
25188 sed 's/^/| /' conftest.$ac_ext >&5
25189
25190         ac_cv_lib_IlmImf_ImfInputReadPixels=no
25191 fi
25192
25193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25194       conftest$ac_exeext conftest.$ac_ext
25195 LIBS=$ac_check_lib_save_LIBS
25196 fi
25197 { echo "$as_me:$LINENO: result: $ac_cv_lib_IlmImf_ImfInputReadPixels" >&5
25198 echo "${ECHO_T}$ac_cv_lib_IlmImf_ImfInputReadPixels" >&6; }
25199 if test $ac_cv_lib_IlmImf_ImfInputReadPixels = yes; then
25200
25201                                have_ilmimf=yes
25202
25203 cat >>confdefs.h <<\_ACEOF
25204 #define HAVE_ILMIMF
25205 _ACEOF
25206
25207                                IMAGELIBS="$IMAGELIBS -lIlmImf -lIex -lHalf"
25208                                LIBS="$LIBS -lIlmImf -lIex -lHalf"
25209
25210 fi
25211
25212 fi
25213
25214
25215
25216 # Restore original LIBS settings...
25217 LIBS="$SAVELIBS"
25218
25219
25220
25221 ######################################################################
25222 # SWIG wrappers
25223
25224 # each language should have --with-LANGUAGE switch
25225
25226 # check for python
25227 if test x"$with_python" = "xyes"; then
25228     { echo "$as_me:$LINENO: Checking for necessary tools to build python wrappers" >&5
25229 echo "$as_me: Checking for necessary tools to build python wrappers" >&6;}
25230
25231     # we need Python now
25232
25233
25234
25235
25236         # Find any Python interpreter.
25237     if test -z "$PYTHON"; then
25238       for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
25239 do
25240   # Extract the first word of "$ac_prog", so it can be a program name with args.
25241 set dummy $ac_prog; ac_word=$2
25242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25244 if test "${ac_cv_path_PYTHON+set}" = set; then
25245   echo $ECHO_N "(cached) $ECHO_C" >&6
25246 else
25247   case $PYTHON in
25248   [\\/]* | ?:[\\/]*)
25249   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
25250   ;;
25251   *)
25252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25253 for as_dir in $PATH
25254 do
25255   IFS=$as_save_IFS
25256   test -z "$as_dir" && as_dir=.
25257   for ac_exec_ext in '' $ac_executable_extensions; do
25258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25259     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
25260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25261     break 2
25262   fi
25263 done
25264 done
25265 IFS=$as_save_IFS
25266
25267   ;;
25268 esac
25269 fi
25270 PYTHON=$ac_cv_path_PYTHON
25271 if test -n "$PYTHON"; then
25272   { echo "$as_me:$LINENO: result: $PYTHON" >&5
25273 echo "${ECHO_T}$PYTHON" >&6; }
25274 else
25275   { echo "$as_me:$LINENO: result: no" >&5
25276 echo "${ECHO_T}no" >&6; }
25277 fi
25278
25279
25280   test -n "$PYTHON" && break
25281 done
25282 test -n "$PYTHON" || PYTHON=":"
25283
25284     fi
25285     am_display_PYTHON=python
25286
25287
25288   if test "$PYTHON" = :; then
25289       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
25290 echo "$as_me: error: no suitable Python interpreter found" >&2;}
25291    { (exit 1); exit 1; }; }
25292   else
25293
25294
25295   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
25296 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
25297 if test "${am_cv_python_version+set}" = set; then
25298   echo $ECHO_N "(cached) $ECHO_C" >&6
25299 else
25300   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
25301 fi
25302 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
25303 echo "${ECHO_T}$am_cv_python_version" >&6; }
25304   PYTHON_VERSION=$am_cv_python_version
25305
25306
25307
25308   PYTHON_PREFIX='${prefix}'
25309
25310   PYTHON_EXEC_PREFIX='${exec_prefix}'
25311
25312
25313
25314   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
25315 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
25316 if test "${am_cv_python_platform+set}" = set; then
25317   echo $ECHO_N "(cached) $ECHO_C" >&6
25318 else
25319   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
25320 fi
25321 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
25322 echo "${ECHO_T}$am_cv_python_platform" >&6; }
25323   PYTHON_PLATFORM=$am_cv_python_platform
25324
25325
25326
25327
25328                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
25329 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
25330 if test "${am_cv_python_pythondir+set}" = set; then
25331   echo $ECHO_N "(cached) $ECHO_C" >&6
25332 else
25333   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
25334      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
25335 fi
25336 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
25337 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
25338   pythondir=$am_cv_python_pythondir
25339
25340
25341
25342   pkgpythondir=\${pythondir}/$PACKAGE
25343
25344
25345             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
25346 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
25347 if test "${am_cv_python_pyexecdir+set}" = set; then
25348   echo $ECHO_N "(cached) $ECHO_C" >&6
25349 else
25350   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
25351      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
25352 fi
25353 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
25354 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
25355   pyexecdir=$am_cv_python_pyexecdir
25356
25357
25358
25359   pkgpyexecdir=\${pyexecdir}/$PACKAGE
25360
25361
25362
25363   fi
25364
25365
25366
25367     # get some info on how to compile and link python modules
25368
25369
25370     if test -n "$PYTHON"
25371     then
25372         az_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
25373         if test -z "$az_python_prefix"
25374         then
25375             { { echo "$as_me:$LINENO: error: Python Prefix is not known" >&5
25376 echo "$as_me: error: Python Prefix is not known" >&2;}
25377    { (exit 1); exit 1; }; }
25378         fi
25379         az_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
25380         az_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
25381         az_python_includespec="-I${az_python_prefix}/include/python${az_python_version}"
25382         if test x"$python_prefix" != x"$python_execprefix"; then
25383             az_python_execspec="-I${az_python_execprefix}/include/python${az_python_version}"
25384             az_python_includespec="${az_python_includespec} $az_python_execspec"
25385         fi
25386         az_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"`
25387         az_python_cspec="${az_python_ccshared} ${az_python_includespec}"
25388         PYTHON_CSPEC=${az_python_cspec}
25389
25390         { echo "$as_me:$LINENO: PYTHON_CSPEC=${az_python_cspec}" >&5
25391 echo "$as_me: PYTHON_CSPEC=${az_python_cspec}" >&6;}
25392     fi
25393
25394
25395
25396     if test -n "$PYTHON"
25397     then
25398
25399
25400     if test -z "$PYTHON"
25401     then
25402         { { echo "$as_me:$LINENO: error: Python Executable not found" >&5
25403 echo "$as_me: error: Python Executable not found" >&2;}
25404    { (exit 1); exit 1; }; }
25405     else
25406         cat >conftest.py <<_ACEOF
25407
25408 import sys
25409 import distutils.sysconfig
25410 strUseFrameWork = "--enable-framework"
25411 dictConfig = distutils.sysconfig.get_config_vars( )
25412 strConfigArgs = dictConfig.get("CONFIG_ARGS")
25413 strLinkSpec =  dictConfig.get('LDFLAGS')
25414 if -1 ==  strConfigArgs.find(strUseFrameWork):
25415     strLibPL = dictConfig.get("LIBPL")
25416     if strLibPL and (strLibPL != ""):
25417         strLinkSpec += " -L%s" % (strLibPL)
25418     strSys = dictConfig.get("SYSLIBS")
25419     if strSys and (strSys != ""):
25420         strLinkSpec += " %s" % (strSys)
25421     strSHL = dictConfig.get("SHLIBS")
25422     if strSHL and (strSHL != ""):
25423         strLinkSpec += " %s" % (strSHL)
25424     # Construct the Python Library Name.
25425     strTmplte = " -lpython%d.%d"
25426     if (sys.platform == "win32") or (sys.platform == "os2emx"):
25427         strTmplte = " -lpython%d%d"
25428     strWrk = strTmplte % ( (sys.hexversion >> 24),
25429                             ((sys.hexversion >> 16) & 0xff))
25430     strLinkSpec += strWrk
25431 else:
25432     # This is not ideal since it changes the search path
25433     # for Frameworks which could have side-effects on
25434     # other included Frameworks.  However, it is necessary
25435     # where someone has installed more than one frameworked
25436     # Python.  Frameworks are really only used in MacOSX.
25437     strLibFW = dictConfig.get("PYTHONFRAMEWORKPREFIX")
25438     if strLibFW and (strLibFW != ""):
25439         strLinkSpec += " -F%s" % (strLibFW)
25440     strLibPL = dictConfig.get("LIBPL")
25441     if strLibPL and (strLibPL != ""):
25442         strLinkSpec += " -L%s" % (strLibPL)
25443     # Construct the Python Library Name.
25444     strTmplte = " -lpython%d.%d"
25445     if (sys.platform == "win32") or (sys.platform == "os2emx"):
25446         strTmplte = " -lpython%d%d"
25447     strWrk = strTmplte % ( (sys.hexversion >> 24),
25448                             ((sys.hexversion >> 16) & 0xff))
25449     strLinkSpec += strWrk
25450 strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED'))
25451 print strLinkSpec
25452
25453 _ACEOF
25454         az_python_output=`$PYTHON conftest.py`
25455         az_python_cc=$?
25456         rm conftest.py
25457         if test -f "conftest.pyc"
25458         then
25459             rm conftest.pyc
25460         fi
25461     fi
25462
25463         PYTHON_LSPEC=${az_python_output}
25464
25465         { echo "$as_me:$LINENO: PYTHON_LSPEC=${az_python_output}" >&5
25466 echo "$as_me: PYTHON_LSPEC=${az_python_output}" >&6;}
25467     fi
25468
25469
25470     # if not explicitly forbidden, check for swig also
25471     if test x"$with_swig" = "xauto"; then
25472         with_swig=yes
25473     fi
25474
25475     ### almost ok... just need to check if we have the Python headers ###
25476
25477     # first, save the CPPFLAGS
25478     OLD_CPPFLAGS=$CPPFLAGS
25479
25480     # then add the PYTHON path founded previously
25481     CPPFLAGS="$CPPFLAGS $PYTHON_CSPEC"
25482
25483     # now, we can check
25484     if test "${ac_cv_header_Python_h+set}" = set; then
25485   { echo "$as_me:$LINENO: checking for Python.h" >&5
25486 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
25487 if test "${ac_cv_header_Python_h+set}" = set; then
25488   echo $ECHO_N "(cached) $ECHO_C" >&6
25489 fi
25490 { echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
25491 echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
25492 else
25493   # Is the header compilable?
25494 { echo "$as_me:$LINENO: checking Python.h usability" >&5
25495 echo $ECHO_N "checking Python.h usability... $ECHO_C" >&6; }
25496 cat >conftest.$ac_ext <<_ACEOF
25497 /* confdefs.h.  */
25498 _ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h.  */
25502 $ac_includes_default
25503 #include <Python.h>
25504 _ACEOF
25505 rm -f conftest.$ac_objext
25506 if { (ac_try="$ac_compile"
25507 case "(($ac_try" in
25508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509   *) ac_try_echo=$ac_try;;
25510 esac
25511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512   (eval "$ac_compile") 2>conftest.er1
25513   ac_status=$?
25514   grep -v '^ *+' conftest.er1 >conftest.err
25515   rm -f conftest.er1
25516   cat conftest.err >&5
25517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518   (exit $ac_status); } && {
25519          test -z "$ac_c_werror_flag" ||
25520          test ! -s conftest.err
25521        } && test -s conftest.$ac_objext; then
25522   ac_header_compiler=yes
25523 else
25524   echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25526
25527         ac_header_compiler=no
25528 fi
25529
25530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25532 echo "${ECHO_T}$ac_header_compiler" >&6; }
25533
25534 # Is the header present?
25535 { echo "$as_me:$LINENO: checking Python.h presence" >&5
25536 echo $ECHO_N "checking Python.h presence... $ECHO_C" >&6; }
25537 cat >conftest.$ac_ext <<_ACEOF
25538 /* confdefs.h.  */
25539 _ACEOF
25540 cat confdefs.h >>conftest.$ac_ext
25541 cat >>conftest.$ac_ext <<_ACEOF
25542 /* end confdefs.h.  */
25543 #include <Python.h>
25544 _ACEOF
25545 if { (ac_try="$ac_cpp conftest.$ac_ext"
25546 case "(($ac_try" in
25547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25548   *) ac_try_echo=$ac_try;;
25549 esac
25550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25552   ac_status=$?
25553   grep -v '^ *+' conftest.er1 >conftest.err
25554   rm -f conftest.er1
25555   cat conftest.err >&5
25556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557   (exit $ac_status); } >/dev/null && {
25558          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25559          test ! -s conftest.err
25560        }; then
25561   ac_header_preproc=yes
25562 else
25563   echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25565
25566   ac_header_preproc=no
25567 fi
25568
25569 rm -f conftest.err conftest.$ac_ext
25570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25571 echo "${ECHO_T}$ac_header_preproc" >&6; }
25572
25573 # So?  What about this header?
25574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25575   yes:no: )
25576     { echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
25577 echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25578     { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
25579 echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
25580     ac_header_preproc=yes
25581     ;;
25582   no:yes:* )
25583     { echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
25584 echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
25585     { echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
25586 echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
25587     { echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
25588 echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
25589     { echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
25590 echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25591     { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
25592 echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
25593     { echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
25594 echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
25595     ( cat <<\_ASBOX
25596 ## -------------------------------------------------------- ##
25597 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25598 ## -------------------------------------------------------- ##
25599 _ASBOX
25600      ) | sed "s/^/$as_me: WARNING:     /" >&2
25601     ;;
25602 esac
25603 { echo "$as_me:$LINENO: checking for Python.h" >&5
25604 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
25605 if test "${ac_cv_header_Python_h+set}" = set; then
25606   echo $ECHO_N "(cached) $ECHO_C" >&6
25607 else
25608   ac_cv_header_Python_h=$ac_header_preproc
25609 fi
25610 { echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
25611 echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
25612
25613 fi
25614 if test $ac_cv_header_Python_h = yes; then
25615   have_python=yes
25616 else
25617
25618           { echo "$as_me:$LINENO: WARNING: Python headers not found, disabling python wrappers" >&5
25619 echo "$as_me: WARNING: Python headers not found, disabling python wrappers" >&2;}
25620           have_python=no
25621
25622 fi
25623
25624
25625
25626     # restore the old CPPFLAGS
25627     CPPFLAGS=$OLD_CPPFLAGS
25628
25629 else
25630     # check if ./configure arguments are valid
25631     if test x"$with_python" = "xno"; then
25632         have_python=no
25633     else
25634         # if we get here then --with-python was not called with 'yes','no' or 'auto'
25635         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&5
25636 echo "$as_me: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&2;}
25637         have_python=no
25638     fi
25639 fi
25640  if test x"$have_python" = "xyes"; then
25641   BUILD_PYTHON_WRAPPERS_TRUE=
25642   BUILD_PYTHON_WRAPPERS_FALSE='#'
25643 else
25644   BUILD_PYTHON_WRAPPERS_TRUE='#'
25645   BUILD_PYTHON_WRAPPERS_FALSE=
25646 fi
25647
25648
25649 # check for octave
25650 if test x"$with_octave" = "xyes"; then
25651     { echo "$as_me:$LINENO: Checking for necessary tools to build octave wrappers" >&5
25652 echo "$as_me: Checking for necessary tools to build octave wrappers" >&6;}
25653
25654     # find octave and mkoctfile
25655     # Extract the first word of "octave", so it can be a program name with args.
25656 set dummy octave; ac_word=$2
25657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25659 if test "${ac_cv_path_OCTAVE+set}" = set; then
25660   echo $ECHO_N "(cached) $ECHO_C" >&6
25661 else
25662   case $OCTAVE in
25663   [\\/]* | ?:[\\/]*)
25664   ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path.
25665   ;;
25666   *)
25667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25668 for as_dir in $PATH
25669 do
25670   IFS=$as_save_IFS
25671   test -z "$as_dir" && as_dir=.
25672   for ac_exec_ext in '' $ac_executable_extensions; do
25673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25674     ac_cv_path_OCTAVE="$as_dir/$ac_word$ac_exec_ext"
25675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25676     break 2
25677   fi
25678 done
25679 done
25680 IFS=$as_save_IFS
25681
25682   ;;
25683 esac
25684 fi
25685 OCTAVE=$ac_cv_path_OCTAVE
25686 if test -n "$OCTAVE"; then
25687   { echo "$as_me:$LINENO: result: $OCTAVE" >&5
25688 echo "${ECHO_T}$OCTAVE" >&6; }
25689 else
25690   { echo "$as_me:$LINENO: result: no" >&5
25691 echo "${ECHO_T}no" >&6; }
25692 fi
25693
25694
25695     # Extract the first word of "mkoctfile", so it can be a program name with args.
25696 set dummy mkoctfile; ac_word=$2
25697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25699 if test "${ac_cv_path_MKOCTFILE+set}" = set; then
25700   echo $ECHO_N "(cached) $ECHO_C" >&6
25701 else
25702   case $MKOCTFILE in
25703   [\\/]* | ?:[\\/]*)
25704   ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.
25705   ;;
25706   *)
25707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25708 for as_dir in $PATH
25709 do
25710   IFS=$as_save_IFS
25711   test -z "$as_dir" && as_dir=.
25712   for ac_exec_ext in '' $ac_executable_extensions; do
25713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25714     ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext"
25715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25716     break 2
25717   fi
25718 done
25719 done
25720 IFS=$as_save_IFS
25721
25722   ;;
25723 esac
25724 fi
25725 MKOCTFILE=$ac_cv_path_MKOCTFILE
25726 if test -n "$MKOCTFILE"; then
25727   { echo "$as_me:$LINENO: result: $MKOCTFILE" >&5
25728 echo "${ECHO_T}$MKOCTFILE" >&6; }
25729 else
25730   { echo "$as_me:$LINENO: result: no" >&5
25731 echo "${ECHO_T}no" >&6; }
25732 fi
25733
25734
25735
25736     if test -z "$OCTAVE"; then
25737        { echo "$as_me:$LINENO: WARNING: octave not found, disabling octave wrappers" >&5
25738 echo "$as_me: WARNING: octave not found, disabling octave wrappers" >&2;}
25739        with_octave=no
25740     fi
25741     if test -z "$MKOCTFILE"; then
25742        { echo "$as_me:$LINENO: WARNING: mkoctfile not found, disabling octave wrappers" >&5
25743 echo "$as_me: WARNING: mkoctfile not found, disabling octave wrappers" >&2;}
25744        with_octave=no
25745     fi
25746 fi
25747 if test x"$with_octave" = "xyes"; then
25748     # check that octave version is at least 2.9.12
25749     cat > conftest.m <<'EOF'
25750 [a,b,c]=sscanf([version()," "],"%i.%i.%i","C");
25751 exit(sum([a,b,c].*[1e5,1e3,1])<209012)
25752 EOF
25753     $OCTAVE --no-init-file conftest.m >& /dev/null || with_octave="no";
25754     rm -f conftest.m
25755
25756     if test x"$with_octave" = "xno"; then
25757        { echo "$as_me:$LINENO: WARNING: Octave version < 2.9.12, disabling octave wrappers" >&5
25758 echo "$as_me: WARNING: Octave version < 2.9.12, disabling octave wrappers" >&2;}
25759     fi
25760 fi
25761 if test x"$with_octave" = "xyes"; then
25762     # if not explicitly forbidden, check for swig also
25763     if test x"$with_swig" = "xauto"; then
25764         with_swig=yes
25765     fi
25766
25767     # check that we have octave headers
25768     OLD_CPPFLAGS=$CPPFLAGS
25769     CPPFLAGS="$CPPFLAGS -x c++"
25770     if test "${ac_cv_header_octave_oct_h+set}" = set; then
25771   { echo "$as_me:$LINENO: checking for octave/oct.h" >&5
25772 echo $ECHO_N "checking for octave/oct.h... $ECHO_C" >&6; }
25773 if test "${ac_cv_header_octave_oct_h+set}" = set; then
25774   echo $ECHO_N "(cached) $ECHO_C" >&6
25775 fi
25776 { echo "$as_me:$LINENO: result: $ac_cv_header_octave_oct_h" >&5
25777 echo "${ECHO_T}$ac_cv_header_octave_oct_h" >&6; }
25778 else
25779   # Is the header compilable?
25780 { echo "$as_me:$LINENO: checking octave/oct.h usability" >&5
25781 echo $ECHO_N "checking octave/oct.h usability... $ECHO_C" >&6; }
25782 cat >conftest.$ac_ext <<_ACEOF
25783 /* confdefs.h.  */
25784 _ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h.  */
25788 $ac_includes_default
25789 #include <octave/oct.h>
25790 _ACEOF
25791 rm -f conftest.$ac_objext
25792 if { (ac_try="$ac_compile"
25793 case "(($ac_try" in
25794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25795   *) ac_try_echo=$ac_try;;
25796 esac
25797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25798   (eval "$ac_compile") 2>conftest.er1
25799   ac_status=$?
25800   grep -v '^ *+' conftest.er1 >conftest.err
25801   rm -f conftest.er1
25802   cat conftest.err >&5
25803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804   (exit $ac_status); } && {
25805          test -z "$ac_c_werror_flag" ||
25806          test ! -s conftest.err
25807        } && test -s conftest.$ac_objext; then
25808   ac_header_compiler=yes
25809 else
25810   echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25812
25813         ac_header_compiler=no
25814 fi
25815
25816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25818 echo "${ECHO_T}$ac_header_compiler" >&6; }
25819
25820 # Is the header present?
25821 { echo "$as_me:$LINENO: checking octave/oct.h presence" >&5
25822 echo $ECHO_N "checking octave/oct.h presence... $ECHO_C" >&6; }
25823 cat >conftest.$ac_ext <<_ACEOF
25824 /* confdefs.h.  */
25825 _ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h.  */
25829 #include <octave/oct.h>
25830 _ACEOF
25831 if { (ac_try="$ac_cpp conftest.$ac_ext"
25832 case "(($ac_try" in
25833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834   *) ac_try_echo=$ac_try;;
25835 esac
25836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25838   ac_status=$?
25839   grep -v '^ *+' conftest.er1 >conftest.err
25840   rm -f conftest.er1
25841   cat conftest.err >&5
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); } >/dev/null && {
25844          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25845          test ! -s conftest.err
25846        }; then
25847   ac_header_preproc=yes
25848 else
25849   echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25851
25852   ac_header_preproc=no
25853 fi
25854
25855 rm -f conftest.err conftest.$ac_ext
25856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25857 echo "${ECHO_T}$ac_header_preproc" >&6; }
25858
25859 # So?  What about this header?
25860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25861   yes:no: )
25862     { echo "$as_me:$LINENO: WARNING: octave/oct.h: accepted by the compiler, rejected by the preprocessor!" >&5
25863 echo "$as_me: WARNING: octave/oct.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25864     { echo "$as_me:$LINENO: WARNING: octave/oct.h: proceeding with the compiler's result" >&5
25865 echo "$as_me: WARNING: octave/oct.h: proceeding with the compiler's result" >&2;}
25866     ac_header_preproc=yes
25867     ;;
25868   no:yes:* )
25869     { echo "$as_me:$LINENO: WARNING: octave/oct.h: present but cannot be compiled" >&5
25870 echo "$as_me: WARNING: octave/oct.h: present but cannot be compiled" >&2;}
25871     { echo "$as_me:$LINENO: WARNING: octave/oct.h:     check for missing prerequisite headers?" >&5
25872 echo "$as_me: WARNING: octave/oct.h:     check for missing prerequisite headers?" >&2;}
25873     { echo "$as_me:$LINENO: WARNING: octave/oct.h: see the Autoconf documentation" >&5
25874 echo "$as_me: WARNING: octave/oct.h: see the Autoconf documentation" >&2;}
25875     { echo "$as_me:$LINENO: WARNING: octave/oct.h:     section \"Present But Cannot Be Compiled\"" >&5
25876 echo "$as_me: WARNING: octave/oct.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25877     { echo "$as_me:$LINENO: WARNING: octave/oct.h: proceeding with the preprocessor's result" >&5
25878 echo "$as_me: WARNING: octave/oct.h: proceeding with the preprocessor's result" >&2;}
25879     { echo "$as_me:$LINENO: WARNING: octave/oct.h: in the future, the compiler will take precedence" >&5
25880 echo "$as_me: WARNING: octave/oct.h: in the future, the compiler will take precedence" >&2;}
25881     ( cat <<\_ASBOX
25882 ## -------------------------------------------------------- ##
25883 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25884 ## -------------------------------------------------------- ##
25885 _ASBOX
25886      ) | sed "s/^/$as_me: WARNING:     /" >&2
25887     ;;
25888 esac
25889 { echo "$as_me:$LINENO: checking for octave/oct.h" >&5
25890 echo $ECHO_N "checking for octave/oct.h... $ECHO_C" >&6; }
25891 if test "${ac_cv_header_octave_oct_h+set}" = set; then
25892   echo $ECHO_N "(cached) $ECHO_C" >&6
25893 else
25894   ac_cv_header_octave_oct_h=$ac_header_preproc
25895 fi
25896 { echo "$as_me:$LINENO: result: $ac_cv_header_octave_oct_h" >&5
25897 echo "${ECHO_T}$ac_cv_header_octave_oct_h" >&6; }
25898
25899 fi
25900 if test $ac_cv_header_octave_oct_h = yes; then
25901   have_octave=yes
25902 else
25903
25904           { echo "$as_me:$LINENO: WARNING: Octave headers not found, disabling octave wrappers" >&5
25905 echo "$as_me: WARNING: Octave headers not found, disabling octave wrappers" >&2;}
25906           have_octave=no
25907
25908 fi
25909
25910
25911
25912     # restore the old CPPFLAGS
25913     CPPFLAGS=$OLD_CPPFLAGS
25914
25915     # find Octave arch
25916     { echo "$as_me:$LINENO: checking for Octave arch" >&5
25917 echo $ECHO_N "checking for Octave arch... $ECHO_C" >&6; }
25918     OCTAVE_ARCH=`$OCTAVE -q --eval 'strcat(octave_config_info("canonical_host_type"), "-", octave_config_info("api_version"))'|sed -e 's/ans = //'`
25919     { echo "$as_me:$LINENO: result: $OCTAVE_ARCH" >&5
25920 echo "${ECHO_T}$OCTAVE_ARCH" >&6; }
25921     OCTAVE_ARCH=$OCTAVE_ARCH
25922
25923
25924 else
25925     # check if ./configure arguments are valid
25926     if test x"$with_octave" = "xno"; then
25927         have_octave=no
25928     else
25929         # if we get here then --with-octave was not called with 'yes','no' or 'auto'
25930         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-octave, continuing assuming 'no'" >&5
25931 echo "$as_me: WARNING: unexpected arguments for option --with-octave, continuing assuming 'no'" >&2;}
25932         have_octave=no
25933     fi
25934 fi
25935  if test x"$have_octave" = "xyes"; then
25936   BUILD_OCTAVE_WRAPPERS_TRUE=
25937   BUILD_OCTAVE_WRAPPERS_FALSE='#'
25938 else
25939   BUILD_OCTAVE_WRAPPERS_TRUE='#'
25940   BUILD_OCTAVE_WRAPPERS_FALSE=
25941 fi
25942
25943
25944 # check for swig itself
25945 SWIG=""
25946 if test x"$with_swig" = "xyes"; then
25947     { echo "$as_me:$LINENO: Checking for SWIG" >&5
25948 echo "$as_me: Checking for SWIG" >&6;}
25949
25950         # Python 2.5 requires SWIG >= 1.3.30
25951         prog="import sys, string
25952 # split strings by '.' and convert to numeric.  Append some zeros
25953 # because we need at least 4 digits for the hex conversion.
25954 minver = map(int, string.split('have_python25=yes', '.')) + [0, 0, 0]
25955 minverhex = 0
25956 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
25957 sys.exit(sys.hexversion < minverhex)"
25958   if { echo "$as_me:$LINENO: 2.5 -c "$prog"" >&5
25959    (2.5 -c "$prog") >&5 2>&5
25960    ac_status=$?
25961    echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962    (exit $ac_status); }; then
25963   have_python25=no
25964 fi
25965
25966         if test x"$have_python25" = "xyes" ; then
25967
25968   #
25969   # define SWIG as precious variable
25970
25971   #
25972   # check where to find the swig executable
25973   # Extract the first word of "swig", so it can be a program name with args.
25974 set dummy swig; ac_word=$2
25975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25977 if test "${ac_cv_path_SWIG+set}" = set; then
25978   echo $ECHO_N "(cached) $ECHO_C" >&6
25979 else
25980   case $SWIG in
25981   [\\/]* | ?:[\\/]*)
25982   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
25983   ;;
25984   *)
25985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25986 for as_dir in $PATH
25987 do
25988   IFS=$as_save_IFS
25989   test -z "$as_dir" && as_dir=.
25990   for ac_exec_ext in '' $ac_executable_extensions; do
25991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25992     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
25993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25994     break 2
25995   fi
25996 done
25997 done
25998 IFS=$as_save_IFS
25999
26000   ;;
26001 esac
26002 fi
26003 SWIG=$ac_cv_path_SWIG
26004 if test -n "$SWIG"; then
26005   { echo "$as_me:$LINENO: result: $SWIG" >&5
26006 echo "${ECHO_T}$SWIG" >&6; }
26007 else
26008   { echo "$as_me:$LINENO: result: no" >&5
26009 echo "${ECHO_T}no" >&6; }
26010 fi
26011
26012
26013   if test -n "$SWIG"; then
26014     #
26015     # inquire version number
26016     if test -n "$SWIG"; then
26017       { echo "$as_me:$LINENO: checking for SWIG version" >&5
26018 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
26019             SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
26020       { echo "$as_me:$LINENO: result: $SWIG_VERSION" >&5
26021 echo "${ECHO_T}$SWIG_VERSION" >&6; }
26022     else
26023       SWIG_VERSION=""
26024     fi
26025     #
26026     # if a user requested a given number, check for that now
26027     if test -n "1.3.30"; then
26028       if test -n "$SWIG_VERSION"; then
26029         #
26030         # compare version strings
26031
26032   # check if both parameters were given
26033   if test -n "$SWIG_VERSION"; then
26034     if test -n "1.3.30"; then
26035       :
26036     else
26037       { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26038 echo "$as_me: error: no required-version supplied" >&2;}
26039    { (exit 1); exit 1; }; }
26040     fi
26041   else
26042     { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26043 echo "$as_me: error: no given-version supplied" >&2;}
26044    { (exit 1); exit 1; }; }
26045   fi
26046   #
26047   # recombine version strings
26048   tmp_both=`echo "1.3.30
26049 $SWIG_VERSION" | sed 's/\.0*/./g'`
26050   tmp_sorted=`
26051     echo "$tmp_both" | {
26052       # Use POSIX sort first, falling back on traditional sort.
26053       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26054       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26055     }
26056   `
26057   #
26058   # set result value
26059   if test "x$tmp_both" = "x$tmp_sorted"; then
26060     ac_version_at_least=yes
26061   else
26062     ac_version_at_least=no
26063   fi
26064
26065         if test x"$ac_version_at_least" = "xyes"; then
26066           # everything is perfect
26067           :
26068         else
26069           # version requirement not fulfilled
26070           # we could stop with an error, but instead we just pretend
26071           # that there is no swig installed
26072           { echo "$as_me:$LINENO: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
26073 echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
26074           SWIG=""
26075         fi
26076       else
26077         # there was no version number available from swig
26078         # and because the user has given requirements, we take
26079         # this for a version mismatch
26080         { echo "$as_me:$LINENO: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
26081 echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
26082         SWIG=""
26083       fi
26084     else
26085       # there was no version number available from swig
26086       # but because no requirement was given, just warn and go on
26087       { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
26088 echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
26089     fi
26090   fi
26091   #
26092   # just in case someone wants to link swig libraries,
26093   # we try to determine their path
26094   if test -n "$SWIG" ; then
26095     SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
26096     { echo "$as_me:$LINENO: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
26097 echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
26098   fi
26099   #
26100 # AC_SUBST([SWIG])  -- already done by AC_PATH_PROG([SWIG],[swig])
26101
26102
26103
26104         else
26105
26106   #
26107   # define SWIG as precious variable
26108
26109   #
26110   # check where to find the swig executable
26111   # Extract the first word of "swig", so it can be a program name with args.
26112 set dummy swig; ac_word=$2
26113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26115 if test "${ac_cv_path_SWIG+set}" = set; then
26116   echo $ECHO_N "(cached) $ECHO_C" >&6
26117 else
26118   case $SWIG in
26119   [\\/]* | ?:[\\/]*)
26120   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
26121   ;;
26122   *)
26123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26124 for as_dir in $PATH
26125 do
26126   IFS=$as_save_IFS
26127   test -z "$as_dir" && as_dir=.
26128   for ac_exec_ext in '' $ac_executable_extensions; do
26129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26130     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
26131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26132     break 2
26133   fi
26134 done
26135 done
26136 IFS=$as_save_IFS
26137
26138   ;;
26139 esac
26140 fi
26141 SWIG=$ac_cv_path_SWIG
26142 if test -n "$SWIG"; then
26143   { echo "$as_me:$LINENO: result: $SWIG" >&5
26144 echo "${ECHO_T}$SWIG" >&6; }
26145 else
26146   { echo "$as_me:$LINENO: result: no" >&5
26147 echo "${ECHO_T}no" >&6; }
26148 fi
26149
26150
26151   if test -n "$SWIG"; then
26152     #
26153     # inquire version number
26154     if test -n "$SWIG"; then
26155       { echo "$as_me:$LINENO: checking for SWIG version" >&5
26156 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
26157             SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
26158       { echo "$as_me:$LINENO: result: $SWIG_VERSION" >&5
26159 echo "${ECHO_T}$SWIG_VERSION" >&6; }
26160     else
26161       SWIG_VERSION=""
26162     fi
26163     #
26164     # if a user requested a given number, check for that now
26165     if test -n "1.2.24"; then
26166       if test -n "$SWIG_VERSION"; then
26167         #
26168         # compare version strings
26169
26170   # check if both parameters were given
26171   if test -n "$SWIG_VERSION"; then
26172     if test -n "1.2.24"; then
26173       :
26174     else
26175       { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26176 echo "$as_me: error: no required-version supplied" >&2;}
26177    { (exit 1); exit 1; }; }
26178     fi
26179   else
26180     { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26181 echo "$as_me: error: no given-version supplied" >&2;}
26182    { (exit 1); exit 1; }; }
26183   fi
26184   #
26185   # recombine version strings
26186   tmp_both=`echo "1.2.24
26187 $SWIG_VERSION" | sed 's/\.0*/./g'`
26188   tmp_sorted=`
26189     echo "$tmp_both" | {
26190       # Use POSIX sort first, falling back on traditional sort.
26191       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26192       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26193     }
26194   `
26195   #
26196   # set result value
26197   if test "x$tmp_both" = "x$tmp_sorted"; then
26198     ac_version_at_least=yes
26199   else
26200     ac_version_at_least=no
26201   fi
26202
26203         if test x"$ac_version_at_least" = "xyes"; then
26204           # everything is perfect
26205           :
26206         else
26207           # version requirement not fulfilled
26208           # we could stop with an error, but instead we just pretend
26209           # that there is no swig installed
26210           { echo "$as_me:$LINENO: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
26211 echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
26212           SWIG=""
26213         fi
26214       else
26215         # there was no version number available from swig
26216         # and because the user has given requirements, we take
26217         # this for a version mismatch
26218         { echo "$as_me:$LINENO: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
26219 echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
26220         SWIG=""
26221       fi
26222     else
26223       # there was no version number available from swig
26224       # but because no requirement was given, just warn and go on
26225       { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
26226 echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
26227     fi
26228   fi
26229   #
26230   # just in case someone wants to link swig libraries,
26231   # we try to determine their path
26232   if test -n "$SWIG" ; then
26233     SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
26234     { echo "$as_me:$LINENO: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
26235 echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
26236   fi
26237   #
26238 # AC_SUBST([SWIG])  -- already done by AC_PATH_PROG([SWIG],[swig])
26239
26240
26241
26242         fi
26243
26244
26245     if test -n "$SWIG"; then
26246
26247
26248
26249   if test -z "$SWIG" ; then
26250     { { echo "$as_me:$LINENO: error: swig not found" >&5
26251 echo "$as_me: error: swig not found" >&2;}
26252    { (exit 1); exit 1; }; }
26253   fi
26254   SWIG="$SWIG -c++"
26255
26256
26257
26258   { echo "$as_me:$LINENO: checking for swig multi module support" >&5
26259 echo $ECHO_N "checking for swig multi module support... $ECHO_C" >&6; }
26260   #
26261   if test -n "$SWIG_VERSION"; then
26262     #
26263
26264   # check if both parameters were given
26265   if test -n "$SWIG_VERSION"; then
26266     if test -n "1.3.24"; then
26267       :
26268     else
26269       { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26270 echo "$as_me: error: no required-version supplied" >&2;}
26271    { (exit 1); exit 1; }; }
26272     fi
26273   else
26274     { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26275 echo "$as_me: error: no given-version supplied" >&2;}
26276    { (exit 1); exit 1; }; }
26277   fi
26278   #
26279   # recombine version strings
26280   tmp_both=`echo "1.3.24
26281 $SWIG_VERSION" | sed 's/\.0*/./g'`
26282   tmp_sorted=`
26283     echo "$tmp_both" | {
26284       # Use POSIX sort first, falling back on traditional sort.
26285       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26286       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26287     }
26288   `
26289   #
26290   # set result value
26291   if test "x$tmp_both" = "x$tmp_sorted"; then
26292     ac_version_at_least=yes
26293   else
26294     ac_version_at_least=no
26295   fi
26296
26297     if test x"$ac_version_at_least" = "xyes"; then
26298       # perfect!
26299       { echo "$as_me:$LINENO: result: always working (SWIG >= 1.3.24)" >&5
26300 echo "${ECHO_T}always working (SWIG >= 1.3.24)" >&6; }
26301     else
26302       #
26303       # there were some older versions that need special treatment
26304       # in form of additional command line flags and/or library
26305       # dependencies
26306
26307   # check if both parameters were given
26308   if test -n "$SWIG_VERSION"; then
26309     if test -n "1.3.20"; then
26310       :
26311     else
26312       { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26313 echo "$as_me: error: no required-version supplied" >&2;}
26314    { (exit 1); exit 1; }; }
26315     fi
26316   else
26317     { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26318 echo "$as_me: error: no given-version supplied" >&2;}
26319    { (exit 1); exit 1; }; }
26320   fi
26321   #
26322   # recombine version strings
26323   tmp_both=`echo "1.3.20
26324 $SWIG_VERSION" | sed 's/\.0*/./g'`
26325   tmp_sorted=`
26326     echo "$tmp_both" | {
26327       # Use POSIX sort first, falling back on traditional sort.
26328       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26329       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26330     }
26331   `
26332   #
26333   # set result value
26334   if test "x$tmp_both" = "x$tmp_sorted"; then
26335     ac_version_at_least=yes
26336   else
26337     ac_version_at_least=no
26338   fi
26339
26340       if test x"$ac_version_at_least" = "xyes"; then
26341         SWIG="$SWIG -noruntime"
26342         { echo "$as_me:$LINENO: result: interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&5
26343 echo "${ECHO_T}interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&6; }
26344       else
26345         SWIG="$SWIG -c"
26346         { echo "$as_me:$LINENO: result: old syntax (SWIG < 1.3.20)" >&5
26347 echo "${ECHO_T}old syntax (SWIG < 1.3.20)" >&6; }
26348       fi
26349     fi
26350   else
26351     { { echo "$as_me:$LINENO: error: SWIG version number unknown - cannot set flags for multi module support" >&5
26352 echo "$as_me: error: SWIG version number unknown - cannot set flags for multi module support" >&2;}
26353    { (exit 1); exit 1; }; }
26354   fi
26355 # AC_SUBST([SWIG]) -- already done by AC_PATH_SWIG()
26356
26357
26358         # if octave wrappers are enabled, check that swig supports octave
26359         if test x"$with_octave" = "xyes"; then
26360            { echo "$as_me:$LINENO: checking if SWIG supports Octave" >&5
26361 echo $ECHO_N "checking if SWIG supports Octave... $ECHO_C" >&6; }
26362 cat > conftest.i <<EOF
26363 %module conftest
26364 EOF
26365            $SWIG -c++ -octave conftest.i || { { echo "$as_me:$LINENO: error: SWIG doesn't support Octave modules" >&5
26366 echo "$as_me: error: SWIG doesn't support Octave modules" >&2;}
26367    { (exit 1); exit 1; }; }
26368            { echo "$as_me:$LINENO: result: yes" >&5
26369 echo "${ECHO_T}yes" >&6; }
26370            rm -f conftest.*
26371
26372         # specify the flags for swig
26373         SWIG_OCTAVE_OPT="-octave"
26374
26375
26376         fi
26377
26378         # check for swig python library
26379
26380
26381
26382   #
26383   test "x" != "xno" || swig_shadow=" -noproxy"
26384   #
26385   if test -n "$SWIG_VERSION"; then
26386
26387   # check if both parameters were given
26388   if test -n "$SWIG_VERSION"; then
26389     if test -n "1.3.24"; then
26390       :
26391     else
26392       { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26393 echo "$as_me: error: no required-version supplied" >&2;}
26394    { (exit 1); exit 1; }; }
26395     fi
26396   else
26397     { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26398 echo "$as_me: error: no given-version supplied" >&2;}
26399    { (exit 1); exit 1; }; }
26400   fi
26401   #
26402   # recombine version strings
26403   tmp_both=`echo "1.3.24
26404 $SWIG_VERSION" | sed 's/\.0*/./g'`
26405   tmp_sorted=`
26406     echo "$tmp_both" | {
26407       # Use POSIX sort first, falling back on traditional sort.
26408       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26409       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26410     }
26411   `
26412   #
26413   # set result value
26414   if test "x$tmp_both" = "x$tmp_sorted"; then
26415     ac_version_at_least=yes
26416   else
26417     ac_version_at_least=no
26418   fi
26419
26420     if test x"$ac_version_at_least" = "xyes"; then
26421       SWIG_PYTHON_LIBS=""
26422     else
26423       SWIG_PYTHON_LIBS="$SWIG_RUNTIME_LIBS_DIR -lswigpy"
26424     fi
26425   else
26426     { { echo "$as_me:$LINENO: error: SWIG version number unknown - cannot set python libs" >&5
26427 echo "$as_me: error: SWIG version number unknown - cannot set python libs" >&2;}
26428    { (exit 1); exit 1; }; }
26429   fi
26430   #
26431   SWIG_PYTHON_OPT="-python$swig_shadow"
26432
26433
26434
26435         have_swig=yes
26436     else
26437                 if test x"$have_python25" = "xyes"; then
26438                         { echo "$as_me:$LINENO: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&5
26439 echo "$as_me: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&2;}
26440                 fi
26441                 have_swig=no
26442     fi
26443 else
26444     if test x"$with_swig" = "xno"; then
26445         have_swig=no
26446     else
26447         if test x"$with_swig" = "xauto"; then
26448             # no (python) wrapper will be generated
26449             # we don't need to check for SWIG
26450             have_swig=no
26451         else
26452             # if we get here then --with-swig was not called with 'yes','no' or 'auto'
26453             { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&5
26454 echo "$as_me: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&2;}
26455             have_swig=no
26456         fi
26457     fi
26458 fi
26459  if test x"$have_swig" = "xyes"; then
26460   UPDATE_SWIG_WRAPPERS_TRUE=
26461   UPDATE_SWIG_WRAPPERS_FALSE='#'
26462 else
26463   UPDATE_SWIG_WRAPPERS_TRUE='#'
26464   UPDATE_SWIG_WRAPPERS_FALSE=
26465 fi
26466
26467
26468
26469 ######################################################################
26470 # Parallelization
26471 #
26472 #CXXOPENMP="no"
26473 #
26474 #AC_ARG_WITH(openmp, dnl
26475 #  [--with-openmp=COMPILER  use OpenMP supporting compiler [default=no] ],
26476 #    [CXXOPENMP="$withval"],[CXXOPENMP="no"])
26477 #if test "$CXXOPENMP" = "no"; then
26478 #    CXXOPENMP="$CXX"
26479 #fi
26480 #
26481 #AC_SUBST(CXXOPENMP)
26482
26483
26484
26485 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 interfaces/swig/octave/Makefile tests/Makefile tests/python/Makefile tests/octave/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 samples/octave/Makefile"
26486
26487
26488 cat >confcache <<\_ACEOF
26489 # This file is a shell script that caches the results of configure
26490 # tests run on this system so they can be shared between configure
26491 # scripts and configure runs, see configure's option --config-cache.
26492 # It is not useful on other systems.  If it contains results you don't
26493 # want to keep, you may remove or edit it.
26494 #
26495 # config.status only pays attention to the cache file if you give it
26496 # the --recheck option to rerun configure.
26497 #
26498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26500 # following values.
26501
26502 _ACEOF
26503
26504 # The following way of writing the cache mishandles newlines in values,
26505 # but we know of no workaround that is simple, portable, and efficient.
26506 # So, we kill variables containing newlines.
26507 # Ultrix sh set writes to stderr and can't be redirected directly,
26508 # and sets the high bit in the cache file unless we assign to the vars.
26509 (
26510   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26511     eval ac_val=\$$ac_var
26512     case $ac_val in #(
26513     *${as_nl}*)
26514       case $ac_var in #(
26515       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26516 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26517       esac
26518       case $ac_var in #(
26519       _ | IFS | as_nl) ;; #(
26520       *) $as_unset $ac_var ;;
26521       esac ;;
26522     esac
26523   done
26524
26525   (set) 2>&1 |
26526     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26527     *${as_nl}ac_space=\ *)
26528       # `set' does not quote correctly, so add quotes (double-quote
26529       # substitution turns \\\\ into \\, and sed turns \\ into \).
26530       sed -n \
26531         "s/'/'\\\\''/g;
26532           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26533       ;; #(
26534     *)
26535       # `set' quotes correctly as required by POSIX, so do not add quotes.
26536       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26537       ;;
26538     esac |
26539     sort
26540 ) |
26541   sed '
26542      /^ac_cv_env_/b end
26543      t clear
26544      :clear
26545      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26546      t end
26547      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26548      :end' >>confcache
26549 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26550   if test -w "$cache_file"; then
26551     test "x$cache_file" != "x/dev/null" &&
26552       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26553 echo "$as_me: updating cache $cache_file" >&6;}
26554     cat confcache >$cache_file
26555   else
26556     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26557 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26558   fi
26559 fi
26560 rm -f confcache
26561
26562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26563 # Let make expand exec_prefix.
26564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26565
26566 DEFS=-DHAVE_CONFIG_H
26567
26568 ac_libobjs=
26569 ac_ltlibobjs=
26570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26571   # 1. Remove the extension, and $U if already installed.
26572   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26573   ac_i=`echo "$ac_i" | sed "$ac_script"`
26574   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26575   #    will be set to the directory where LIBOBJS objects are built.
26576   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26577   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26578 done
26579 LIBOBJS=$ac_libobjs
26580
26581 LTLIBOBJS=$ac_ltlibobjs
26582
26583
26584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26585   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26586 Usually this means the macro was only invoked conditionally." >&5
26587 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26588 Usually this means the macro was only invoked conditionally." >&2;}
26589    { (exit 1); exit 1; }; }
26590 fi
26591 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26592   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26593 Usually this means the macro was only invoked conditionally." >&5
26594 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26595 Usually this means the macro was only invoked conditionally." >&2;}
26596    { (exit 1); exit 1; }; }
26597 fi
26598 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26599   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26600 Usually this means the macro was only invoked conditionally." >&5
26601 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26602 Usually this means the macro was only invoked conditionally." >&2;}
26603    { (exit 1); exit 1; }; }
26604 fi
26605 if test -z "${BUILD_APPS_TRUE}" && test -z "${BUILD_APPS_FALSE}"; then
26606   { { echo "$as_me:$LINENO: error: conditional \"BUILD_APPS\" was never defined.
26607 Usually this means the macro was only invoked conditionally." >&5
26608 echo "$as_me: error: conditional \"BUILD_APPS\" was never defined.
26609 Usually this means the macro was only invoked conditionally." >&2;}
26610    { (exit 1); exit 1; }; }
26611 fi
26612 if test -z "${BUILD_CARBON_TRUE}" && test -z "${BUILD_CARBON_FALSE}"; then
26613   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CARBON\" was never defined.
26614 Usually this means the macro was only invoked conditionally." >&5
26615 echo "$as_me: error: conditional \"BUILD_CARBON\" was never defined.
26616 Usually this means the macro was only invoked conditionally." >&2;}
26617    { (exit 1); exit 1; }; }
26618 fi
26619 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
26620   { { echo "$as_me:$LINENO: error: conditional \"BUILD_GTK\" was never defined.
26621 Usually this means the macro was only invoked conditionally." >&5
26622 echo "$as_me: error: conditional \"BUILD_GTK\" was never defined.
26623 Usually this means the macro was only invoked conditionally." >&2;}
26624    { (exit 1); exit 1; }; }
26625 fi
26626 if test -z "${BUILD_QUICKTIME_TRUE}" && test -z "${BUILD_QUICKTIME_FALSE}"; then
26627   { { echo "$as_me:$LINENO: error: conditional \"BUILD_QUICKTIME\" was never defined.
26628 Usually this means the macro was only invoked conditionally." >&5
26629 echo "$as_me: error: conditional \"BUILD_QUICKTIME\" was never defined.
26630 Usually this means the macro was only invoked conditionally." >&2;}
26631    { (exit 1); exit 1; }; }
26632 fi
26633 if test -z "${BUILD_GSTREAMER_TRUE}" && test -z "${BUILD_GSTREAMER_FALSE}"; then
26634   { { echo "$as_me:$LINENO: error: conditional \"BUILD_GSTREAMER\" was never defined.
26635 Usually this means the macro was only invoked conditionally." >&5
26636 echo "$as_me: error: conditional \"BUILD_GSTREAMER\" was never defined.
26637 Usually this means the macro was only invoked conditionally." >&2;}
26638    { (exit 1); exit 1; }; }
26639 fi
26640 if test -z "${BUILD_XINE_TRUE}" && test -z "${BUILD_XINE_FALSE}"; then
26641   { { echo "$as_me:$LINENO: error: conditional \"BUILD_XINE\" was never defined.
26642 Usually this means the macro was only invoked conditionally." >&5
26643 echo "$as_me: error: conditional \"BUILD_XINE\" was never defined.
26644 Usually this means the macro was only invoked conditionally." >&2;}
26645    { (exit 1); exit 1; }; }
26646 fi
26647 if test -z "${BUILD_FFMPEG_TRUE}" && test -z "${BUILD_FFMPEG_FALSE}"; then
26648   { { echo "$as_me:$LINENO: error: conditional \"BUILD_FFMPEG\" was never defined.
26649 Usually this means the macro was only invoked conditionally." >&5
26650 echo "$as_me: error: conditional \"BUILD_FFMPEG\" was never defined.
26651 Usually this means the macro was only invoked conditionally." >&2;}
26652    { (exit 1); exit 1; }; }
26653 fi
26654 if test -z "${BUILD_DC1394_TRUE}" && test -z "${BUILD_DC1394_FALSE}"; then
26655   { { echo "$as_me:$LINENO: error: conditional \"BUILD_DC1394\" was never defined.
26656 Usually this means the macro was only invoked conditionally." >&5
26657 echo "$as_me: error: conditional \"BUILD_DC1394\" was never defined.
26658 Usually this means the macro was only invoked conditionally." >&2;}
26659    { (exit 1); exit 1; }; }
26660 fi
26661 if test -z "${BUILD_V4L_TRUE}" && test -z "${BUILD_V4L_FALSE}"; then
26662   { { echo "$as_me:$LINENO: error: conditional \"BUILD_V4L\" was never defined.
26663 Usually this means the macro was only invoked conditionally." >&5
26664 echo "$as_me: error: conditional \"BUILD_V4L\" was never defined.
26665 Usually this means the macro was only invoked conditionally." >&2;}
26666    { (exit 1); exit 1; }; }
26667 fi
26668 if test -z "${BUILD_IMAGEIO_TRUE}" && test -z "${BUILD_IMAGEIO_FALSE}"; then
26669   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAGEIO\" was never defined.
26670 Usually this means the macro was only invoked conditionally." >&5
26671 echo "$as_me: error: conditional \"BUILD_IMAGEIO\" was never defined.
26672 Usually this means the macro was only invoked conditionally." >&2;}
26673    { (exit 1); exit 1; }; }
26674 fi
26675 if test -z "${BUILD_PYTHON_WRAPPERS_TRUE}" && test -z "${BUILD_PYTHON_WRAPPERS_FALSE}"; then
26676   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PYTHON_WRAPPERS\" was never defined.
26677 Usually this means the macro was only invoked conditionally." >&5
26678 echo "$as_me: error: conditional \"BUILD_PYTHON_WRAPPERS\" was never defined.
26679 Usually this means the macro was only invoked conditionally." >&2;}
26680    { (exit 1); exit 1; }; }
26681 fi
26682 if test -z "${BUILD_OCTAVE_WRAPPERS_TRUE}" && test -z "${BUILD_OCTAVE_WRAPPERS_FALSE}"; then
26683   { { echo "$as_me:$LINENO: error: conditional \"BUILD_OCTAVE_WRAPPERS\" was never defined.
26684 Usually this means the macro was only invoked conditionally." >&5
26685 echo "$as_me: error: conditional \"BUILD_OCTAVE_WRAPPERS\" was never defined.
26686 Usually this means the macro was only invoked conditionally." >&2;}
26687    { (exit 1); exit 1; }; }
26688 fi
26689 if test -z "${UPDATE_SWIG_WRAPPERS_TRUE}" && test -z "${UPDATE_SWIG_WRAPPERS_FALSE}"; then
26690   { { echo "$as_me:$LINENO: error: conditional \"UPDATE_SWIG_WRAPPERS\" was never defined.
26691 Usually this means the macro was only invoked conditionally." >&5
26692 echo "$as_me: error: conditional \"UPDATE_SWIG_WRAPPERS\" was never defined.
26693 Usually this means the macro was only invoked conditionally." >&2;}
26694    { (exit 1); exit 1; }; }
26695 fi
26696
26697 : ${CONFIG_STATUS=./config.status}
26698 ac_clean_files_save=$ac_clean_files
26699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26700 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26701 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26702 cat >$CONFIG_STATUS <<_ACEOF
26703 #! $SHELL
26704 # Generated by $as_me.
26705 # Run this file to recreate the current configuration.
26706 # Compiler output produced by configure, useful for debugging
26707 # configure, is in config.log if it exists.
26708
26709 debug=false
26710 ac_cs_recheck=false
26711 ac_cs_silent=false
26712 SHELL=\${CONFIG_SHELL-$SHELL}
26713 _ACEOF
26714
26715 cat >>$CONFIG_STATUS <<\_ACEOF
26716 ## --------------------- ##
26717 ## M4sh Initialization.  ##
26718 ## --------------------- ##
26719
26720 # Be more Bourne compatible
26721 DUALCASE=1; export DUALCASE # for MKS sh
26722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26723   emulate sh
26724   NULLCMD=:
26725   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26726   # is contrary to our usage.  Disable this feature.
26727   alias -g '${1+"$@"}'='"$@"'
26728   setopt NO_GLOB_SUBST
26729 else
26730   case `(set -o) 2>/dev/null` in
26731   *posix*) set -o posix ;;
26732 esac
26733
26734 fi
26735
26736
26737
26738
26739 # PATH needs CR
26740 # Avoid depending upon Character Ranges.
26741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26744 as_cr_digits='0123456789'
26745 as_cr_alnum=$as_cr_Letters$as_cr_digits
26746
26747 # The user is always right.
26748 if test "${PATH_SEPARATOR+set}" != set; then
26749   echo "#! /bin/sh" >conf$$.sh
26750   echo  "exit 0"   >>conf$$.sh
26751   chmod +x conf$$.sh
26752   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26753     PATH_SEPARATOR=';'
26754   else
26755     PATH_SEPARATOR=:
26756   fi
26757   rm -f conf$$.sh
26758 fi
26759
26760 # Support unset when possible.
26761 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26762   as_unset=unset
26763 else
26764   as_unset=false
26765 fi
26766
26767
26768 # IFS
26769 # We need space, tab and new line, in precisely that order.  Quoting is
26770 # there to prevent editors from complaining about space-tab.
26771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26772 # splitting by setting IFS to empty value.)
26773 as_nl='
26774 '
26775 IFS=" ""        $as_nl"
26776
26777 # Find who we are.  Look in the path if we contain no directory separator.
26778 case $0 in
26779   *[\\/]* ) as_myself=$0 ;;
26780   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26781 for as_dir in $PATH
26782 do
26783   IFS=$as_save_IFS
26784   test -z "$as_dir" && as_dir=.
26785   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26786 done
26787 IFS=$as_save_IFS
26788
26789      ;;
26790 esac
26791 # We did not find ourselves, most probably we were run as `sh COMMAND'
26792 # in which case we are not to be found in the path.
26793 if test "x$as_myself" = x; then
26794   as_myself=$0
26795 fi
26796 if test ! -f "$as_myself"; then
26797   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26798   { (exit 1); exit 1; }
26799 fi
26800
26801 # Work around bugs in pre-3.0 UWIN ksh.
26802 for as_var in ENV MAIL MAILPATH
26803 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26804 done
26805 PS1='$ '
26806 PS2='> '
26807 PS4='+ '
26808
26809 # NLS nuisances.
26810 for as_var in \
26811   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26812   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26813   LC_TELEPHONE LC_TIME
26814 do
26815   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26816     eval $as_var=C; export $as_var
26817   else
26818     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26819   fi
26820 done
26821
26822 # Required to use basename.
26823 if expr a : '\(a\)' >/dev/null 2>&1 &&
26824    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26825   as_expr=expr
26826 else
26827   as_expr=false
26828 fi
26829
26830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26831   as_basename=basename
26832 else
26833   as_basename=false
26834 fi
26835
26836
26837 # Name of the executable.
26838 as_me=`$as_basename -- "$0" ||
26839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26840          X"$0" : 'X\(//\)$' \| \
26841          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26842 echo X/"$0" |
26843     sed '/^.*\/\([^/][^/]*\)\/*$/{
26844             s//\1/
26845             q
26846           }
26847           /^X\/\(\/\/\)$/{
26848             s//\1/
26849             q
26850           }
26851           /^X\/\(\/\).*/{
26852             s//\1/
26853             q
26854           }
26855           s/.*/./; q'`
26856
26857 # CDPATH.
26858 $as_unset CDPATH
26859
26860
26861
26862   as_lineno_1=$LINENO
26863   as_lineno_2=$LINENO
26864   test "x$as_lineno_1" != "x$as_lineno_2" &&
26865   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26866
26867   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26868   # uniformly replaced by the line number.  The first 'sed' inserts a
26869   # line-number line after each line using $LINENO; the second 'sed'
26870   # does the real work.  The second script uses 'N' to pair each
26871   # line-number line with the line containing $LINENO, and appends
26872   # trailing '-' during substitution so that $LINENO is not a special
26873   # case at line end.
26874   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26875   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26876   # E. McMahon (1931-1989) for sed's syntax.  :-)
26877   sed -n '
26878     p
26879     /[$]LINENO/=
26880   ' <$as_myself |
26881     sed '
26882       s/[$]LINENO.*/&-/
26883       t lineno
26884       b
26885       :lineno
26886       N
26887       :loop
26888       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26889       t loop
26890       s/-\n.*//
26891     ' >$as_me.lineno &&
26892   chmod +x "$as_me.lineno" ||
26893     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26894    { (exit 1); exit 1; }; }
26895
26896   # Don't try to exec as it changes $[0], causing all sort of problems
26897   # (the dirname of $[0] is not the place where we might find the
26898   # original and so on.  Autoconf is especially sensitive to this).
26899   . "./$as_me.lineno"
26900   # Exit status is that of the last command.
26901   exit
26902 }
26903
26904
26905 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26906   as_dirname=dirname
26907 else
26908   as_dirname=false
26909 fi
26910
26911 ECHO_C= ECHO_N= ECHO_T=
26912 case `echo -n x` in
26913 -n*)
26914   case `echo 'x\c'` in
26915   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26916   *)   ECHO_C='\c';;
26917   esac;;
26918 *)
26919   ECHO_N='-n';;
26920 esac
26921
26922 if expr a : '\(a\)' >/dev/null 2>&1 &&
26923    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26924   as_expr=expr
26925 else
26926   as_expr=false
26927 fi
26928
26929 rm -f conf$$ conf$$.exe conf$$.file
26930 if test -d conf$$.dir; then
26931   rm -f conf$$.dir/conf$$.file
26932 else
26933   rm -f conf$$.dir
26934   mkdir conf$$.dir
26935 fi
26936 echo >conf$$.file
26937 if ln -s conf$$.file conf$$ 2>/dev/null; then
26938   as_ln_s='ln -s'
26939   # ... but there are two gotchas:
26940   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26941   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26942   # In both cases, we have to default to `cp -p'.
26943   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26944     as_ln_s='cp -p'
26945 elif ln conf$$.file conf$$ 2>/dev/null; then
26946   as_ln_s=ln
26947 else
26948   as_ln_s='cp -p'
26949 fi
26950 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26951 rmdir conf$$.dir 2>/dev/null
26952
26953 if mkdir -p . 2>/dev/null; then
26954   as_mkdir_p=:
26955 else
26956   test -d ./-p && rmdir ./-p
26957   as_mkdir_p=false
26958 fi
26959
26960 if test -x / >/dev/null 2>&1; then
26961   as_test_x='test -x'
26962 else
26963   if ls -dL / >/dev/null 2>&1; then
26964     as_ls_L_option=L
26965   else
26966     as_ls_L_option=
26967   fi
26968   as_test_x='
26969     eval sh -c '\''
26970       if test -d "$1"; then
26971         test -d "$1/.";
26972       else
26973         case $1 in
26974         -*)set "./$1";;
26975         esac;
26976         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26977         ???[sx]*):;;*)false;;esac;fi
26978     '\'' sh
26979   '
26980 fi
26981 as_executable_p=$as_test_x
26982
26983 # Sed expression to map a string onto a valid CPP name.
26984 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26985
26986 # Sed expression to map a string onto a valid variable name.
26987 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26988
26989
26990 exec 6>&1
26991
26992 # Save the log message, to keep $[0] and so on meaningful, and to
26993 # report actual input values of CONFIG_FILES etc. instead of their
26994 # values after options handling.
26995 ac_log="
26996 This file was extended by opencv $as_me 1.1.0, which was
26997 generated by GNU Autoconf 2.61.  Invocation command line was
26998
26999   CONFIG_FILES    = $CONFIG_FILES
27000   CONFIG_HEADERS  = $CONFIG_HEADERS
27001   CONFIG_LINKS    = $CONFIG_LINKS
27002   CONFIG_COMMANDS = $CONFIG_COMMANDS
27003   $ $0 $@
27004
27005 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27006 "
27007
27008 _ACEOF
27009
27010 cat >>$CONFIG_STATUS <<_ACEOF
27011 # Files that config.status was made for.
27012 config_files="$ac_config_files"
27013 config_headers="$ac_config_headers"
27014 config_commands="$ac_config_commands"
27015
27016 _ACEOF
27017
27018 cat >>$CONFIG_STATUS <<\_ACEOF
27019 ac_cs_usage="\
27020 \`$as_me' instantiates files from templates according to the
27021 current configuration.
27022
27023 Usage: $0 [OPTIONS] [FILE]...
27024
27025   -h, --help       print this help, then exit
27026   -V, --version    print version number and configuration settings, then exit
27027   -q, --quiet      do not print progress messages
27028   -d, --debug      don't remove temporary files
27029       --recheck    update $as_me by reconfiguring in the same conditions
27030   --file=FILE[:TEMPLATE]
27031                    instantiate the configuration file FILE
27032   --header=FILE[:TEMPLATE]
27033                    instantiate the configuration header FILE
27034
27035 Configuration files:
27036 $config_files
27037
27038 Configuration headers:
27039 $config_headers
27040
27041 Configuration commands:
27042 $config_commands
27043
27044 Report bugs to <bug-autoconf@gnu.org>."
27045
27046 _ACEOF
27047 cat >>$CONFIG_STATUS <<_ACEOF
27048 ac_cs_version="\\
27049 opencv config.status 1.1.0
27050 configured by $0, generated by GNU Autoconf 2.61,
27051   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27052
27053 Copyright (C) 2006 Free Software Foundation, Inc.
27054 This config.status script is free software; the Free Software Foundation
27055 gives unlimited permission to copy, distribute and modify it."
27056
27057 ac_pwd='$ac_pwd'
27058 srcdir='$srcdir'
27059 INSTALL='$INSTALL'
27060 MKDIR_P='$MKDIR_P'
27061 _ACEOF
27062
27063 cat >>$CONFIG_STATUS <<\_ACEOF
27064 # If no file are specified by the user, then we need to provide default
27065 # value.  By we need to know if files were specified by the user.
27066 ac_need_defaults=:
27067 while test $# != 0
27068 do
27069   case $1 in
27070   --*=*)
27071     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27072     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27073     ac_shift=:
27074     ;;
27075   *)
27076     ac_option=$1
27077     ac_optarg=$2
27078     ac_shift=shift
27079     ;;
27080   esac
27081
27082   case $ac_option in
27083   # Handling of the options.
27084   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27085     ac_cs_recheck=: ;;
27086   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27087     echo "$ac_cs_version"; exit ;;
27088   --debug | --debu | --deb | --de | --d | -d )
27089     debug=: ;;
27090   --file | --fil | --fi | --f )
27091     $ac_shift
27092     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27093     ac_need_defaults=false;;
27094   --header | --heade | --head | --hea )
27095     $ac_shift
27096     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27097     ac_need_defaults=false;;
27098   --he | --h)
27099     # Conflict between --help and --header
27100     { echo "$as_me: error: ambiguous option: $1
27101 Try \`$0 --help' for more information." >&2
27102    { (exit 1); exit 1; }; };;
27103   --help | --hel | -h )
27104     echo "$ac_cs_usage"; exit ;;
27105   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27106   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27107     ac_cs_silent=: ;;
27108
27109   # This is an error.
27110   -*) { echo "$as_me: error: unrecognized option: $1
27111 Try \`$0 --help' for more information." >&2
27112    { (exit 1); exit 1; }; } ;;
27113
27114   *) ac_config_targets="$ac_config_targets $1"
27115      ac_need_defaults=false ;;
27116
27117   esac
27118   shift
27119 done
27120
27121 ac_configure_extra_args=
27122
27123 if $ac_cs_silent; then
27124   exec 6>/dev/null
27125   ac_configure_extra_args="$ac_configure_extra_args --silent"
27126 fi
27127
27128 _ACEOF
27129 cat >>$CONFIG_STATUS <<_ACEOF
27130 if \$ac_cs_recheck; then
27131   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27132   CONFIG_SHELL=$SHELL
27133   export CONFIG_SHELL
27134   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27135 fi
27136
27137 _ACEOF
27138 cat >>$CONFIG_STATUS <<\_ACEOF
27139 exec 5>>config.log
27140 {
27141   echo
27142   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27143 ## Running $as_me. ##
27144 _ASBOX
27145   echo "$ac_log"
27146 } >&5
27147
27148 _ACEOF
27149 cat >>$CONFIG_STATUS <<_ACEOF
27150 #
27151 # INIT-COMMANDS
27152 #
27153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27154
27155 _ACEOF
27156
27157 cat >>$CONFIG_STATUS <<\_ACEOF
27158
27159 # Handling of arguments.
27160 for ac_config_target in $ac_config_targets
27161 do
27162   case $ac_config_target in
27163     "cvconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS cvconfig.h" ;;
27164     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27165     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27166     "opencv.pc") CONFIG_FILES="$CONFIG_FILES opencv.pc" ;;
27167     "opencv.spec") CONFIG_FILES="$CONFIG_FILES opencv.spec" ;;
27168     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
27169     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
27170     "cxcore/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/Makefile" ;;
27171     "cxcore/include/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/include/Makefile" ;;
27172     "cxcore/src/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/src/Makefile" ;;
27173     "cv/Makefile") CONFIG_FILES="$CONFIG_FILES cv/Makefile" ;;
27174     "cv/include/Makefile") CONFIG_FILES="$CONFIG_FILES cv/include/Makefile" ;;
27175     "cv/src/Makefile") CONFIG_FILES="$CONFIG_FILES cv/src/Makefile" ;;
27176     "cvaux/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/Makefile" ;;
27177     "cvaux/include/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/include/Makefile" ;;
27178     "cvaux/src/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/src/Makefile" ;;
27179     "ml/Makefile") CONFIG_FILES="$CONFIG_FILES ml/Makefile" ;;
27180     "ml/include/Makefile") CONFIG_FILES="$CONFIG_FILES ml/include/Makefile" ;;
27181     "ml/src/Makefile") CONFIG_FILES="$CONFIG_FILES ml/src/Makefile" ;;
27182     "otherlibs/Makefile") CONFIG_FILES="$CONFIG_FILES otherlibs/Makefile" ;;
27183     "otherlibs/highgui/Makefile") CONFIG_FILES="$CONFIG_FILES otherlibs/highgui/Makefile" ;;
27184     "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
27185     "apps/haartraining/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/Makefile" ;;
27186     "apps/haartraining/include/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/include/Makefile" ;;
27187     "apps/haartraining/src/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/src/Makefile" ;;
27188     "interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/Makefile" ;;
27189     "interfaces/swig/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/Makefile" ;;
27190     "interfaces/swig/filtered/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/filtered/Makefile" ;;
27191     "interfaces/swig/general/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/general/Makefile" ;;
27192     "interfaces/swig/python/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/python/Makefile" ;;
27193     "interfaces/swig/octave/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/octave/Makefile" ;;
27194     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27195     "tests/python/Makefile") CONFIG_FILES="$CONFIG_FILES tests/python/Makefile" ;;
27196     "tests/octave/Makefile") CONFIG_FILES="$CONFIG_FILES tests/octave/Makefile" ;;
27197     "tests/cv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cv/Makefile" ;;
27198     "tests/cv/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cv/src/Makefile" ;;
27199     "tests/cxts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxts/Makefile" ;;
27200     "tests/cxcore/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxcore/Makefile" ;;
27201     "tests/cxcore/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxcore/src/Makefile" ;;
27202     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27203     "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
27204     "samples/c/Makefile") CONFIG_FILES="$CONFIG_FILES samples/c/Makefile" ;;
27205     "samples/python/Makefile") CONFIG_FILES="$CONFIG_FILES samples/python/Makefile" ;;
27206     "samples/octave/Makefile") CONFIG_FILES="$CONFIG_FILES samples/octave/Makefile" ;;
27207
27208   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27209 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27210    { (exit 1); exit 1; }; };;
27211   esac
27212 done
27213
27214
27215 # If the user did not use the arguments to specify the items to instantiate,
27216 # then the envvar interface is used.  Set only those that are not.
27217 # We use the long form for the default assignment because of an extremely
27218 # bizarre bug on SunOS 4.1.3.
27219 if $ac_need_defaults; then
27220   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27221   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27222   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27223 fi
27224
27225 # Have a temporary directory for convenience.  Make it in the build tree
27226 # simply because there is no reason against having it here, and in addition,
27227 # creating and moving files from /tmp can sometimes cause problems.
27228 # Hook for its removal unless debugging.
27229 # Note that there is a small window in which the directory will not be cleaned:
27230 # after its creation but before its name has been assigned to `$tmp'.
27231 $debug ||
27232 {
27233   tmp=
27234   trap 'exit_status=$?
27235   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27236 ' 0
27237   trap '{ (exit 1); exit 1; }' 1 2 13 15
27238 }
27239 # Create a (secure) tmp directory for tmp files.
27240
27241 {
27242   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27243   test -n "$tmp" && test -d "$tmp"
27244 }  ||
27245 {
27246   tmp=./conf$$-$RANDOM
27247   (umask 077 && mkdir "$tmp")
27248 } ||
27249 {
27250    echo "$me: cannot create a temporary directory in ." >&2
27251    { (exit 1); exit 1; }
27252 }
27253
27254 #
27255 # Set up the sed scripts for CONFIG_FILES section.
27256 #
27257
27258 # No need to generate the scripts if there are no CONFIG_FILES.
27259 # This happens for instance when ./config.status config.h
27260 if test -n "$CONFIG_FILES"; then
27261
27262 _ACEOF
27263
27264
27265
27266 ac_delim='%!_!# '
27267 for ac_last_try in false false false false false :; do
27268   cat >conf$$subs.sed <<_ACEOF
27269 SHELL!$SHELL$ac_delim
27270 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27271 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27272 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27273 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27274 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27275 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27276 exec_prefix!$exec_prefix$ac_delim
27277 prefix!$prefix$ac_delim
27278 program_transform_name!$program_transform_name$ac_delim
27279 bindir!$bindir$ac_delim
27280 sbindir!$sbindir$ac_delim
27281 libexecdir!$libexecdir$ac_delim
27282 datarootdir!$datarootdir$ac_delim
27283 datadir!$datadir$ac_delim
27284 sysconfdir!$sysconfdir$ac_delim
27285 sharedstatedir!$sharedstatedir$ac_delim
27286 localstatedir!$localstatedir$ac_delim
27287 includedir!$includedir$ac_delim
27288 oldincludedir!$oldincludedir$ac_delim
27289 docdir!$docdir$ac_delim
27290 infodir!$infodir$ac_delim
27291 htmldir!$htmldir$ac_delim
27292 dvidir!$dvidir$ac_delim
27293 pdfdir!$pdfdir$ac_delim
27294 psdir!$psdir$ac_delim
27295 libdir!$libdir$ac_delim
27296 localedir!$localedir$ac_delim
27297 mandir!$mandir$ac_delim
27298 DEFS!$DEFS$ac_delim
27299 ECHO_C!$ECHO_C$ac_delim
27300 ECHO_N!$ECHO_N$ac_delim
27301 ECHO_T!$ECHO_T$ac_delim
27302 LIBS!$LIBS$ac_delim
27303 build_alias!$build_alias$ac_delim
27304 host_alias!$host_alias$ac_delim
27305 target_alias!$target_alias$ac_delim
27306 build!$build$ac_delim
27307 build_cpu!$build_cpu$ac_delim
27308 build_vendor!$build_vendor$ac_delim
27309 build_os!$build_os$ac_delim
27310 host!$host$ac_delim
27311 host_cpu!$host_cpu$ac_delim
27312 host_vendor!$host_vendor$ac_delim
27313 host_os!$host_os$ac_delim
27314 target!$target$ac_delim
27315 target_cpu!$target_cpu$ac_delim
27316 target_vendor!$target_vendor$ac_delim
27317 target_os!$target_os$ac_delim
27318 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27319 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27320 INSTALL_DATA!$INSTALL_DATA$ac_delim
27321 am__isrc!$am__isrc$ac_delim
27322 CYGPATH_W!$CYGPATH_W$ac_delim
27323 PACKAGE!$PACKAGE$ac_delim
27324 VERSION!$VERSION$ac_delim
27325 ACLOCAL!$ACLOCAL$ac_delim
27326 AUTOCONF!$AUTOCONF$ac_delim
27327 AUTOMAKE!$AUTOMAKE$ac_delim
27328 AUTOHEADER!$AUTOHEADER$ac_delim
27329 MAKEINFO!$MAKEINFO$ac_delim
27330 install_sh!$install_sh$ac_delim
27331 STRIP!$STRIP$ac_delim
27332 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27333 mkdir_p!$mkdir_p$ac_delim
27334 AWK!$AWK$ac_delim
27335 SET_MAKE!$SET_MAKE$ac_delim
27336 am__leading_dot!$am__leading_dot$ac_delim
27337 AMTAR!$AMTAR$ac_delim
27338 am__tar!$am__tar$ac_delim
27339 am__untar!$am__untar$ac_delim
27340 MMAJOR!$MMAJOR$ac_delim
27341 MMINOR!$MMINOR$ac_delim
27342 MSUBMINOR!$MSUBMINOR$ac_delim
27343 LT_VERSION!$LT_VERSION$ac_delim
27344 CXX!$CXX$ac_delim
27345 CXXFLAGS!$CXXFLAGS$ac_delim
27346 LDFLAGS!$LDFLAGS$ac_delim
27347 CPPFLAGS!$CPPFLAGS$ac_delim
27348 ac_ct_CXX!$ac_ct_CXX$ac_delim
27349 EXEEXT!$EXEEXT$ac_delim
27350 OBJEXT!$OBJEXT$ac_delim
27351 DEPDIR!$DEPDIR$ac_delim
27352 am__include!$am__include$ac_delim
27353 am__quote!$am__quote$ac_delim
27354 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27355 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27356 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27357 CXXDEPMODE!$CXXDEPMODE$ac_delim
27358 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27359 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27360 CC!$CC$ac_delim
27361 CFLAGS!$CFLAGS$ac_delim
27362 ac_ct_CC!$ac_ct_CC$ac_delim
27363 CCDEPMODE!$CCDEPMODE$ac_delim
27364 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27365 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27366 _ACEOF
27367
27368   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27369     break
27370   elif $ac_last_try; then
27371     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27372 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27373    { (exit 1); exit 1; }; }
27374   else
27375     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27376   fi
27377 done
27378
27379 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27380 if test -n "$ac_eof"; then
27381   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27382   ac_eof=`expr $ac_eof + 1`
27383 fi
27384
27385 cat >>$CONFIG_STATUS <<_ACEOF
27386 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27388 _ACEOF
27389 sed '
27390 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27391 s/^/s,@/; s/!/@,|#_!!_#|/
27392 :n
27393 t n
27394 s/'"$ac_delim"'$/,g/; t
27395 s/$/\\/; p
27396 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27397 ' >>$CONFIG_STATUS <conf$$subs.sed
27398 rm -f conf$$subs.sed
27399 cat >>$CONFIG_STATUS <<_ACEOF
27400 CEOF$ac_eof
27401 _ACEOF
27402
27403
27404 ac_delim='%!_!# '
27405 for ac_last_try in false false false false false :; do
27406   cat >conf$$subs.sed <<_ACEOF
27407 CPP!$CPP$ac_delim
27408 SED!$SED$ac_delim
27409 GREP!$GREP$ac_delim
27410 EGREP!$EGREP$ac_delim
27411 LN_S!$LN_S$ac_delim
27412 ECHO!$ECHO$ac_delim
27413 AR!$AR$ac_delim
27414 RANLIB!$RANLIB$ac_delim
27415 DLLTOOL!$DLLTOOL$ac_delim
27416 AS!$AS$ac_delim
27417 OBJDUMP!$OBJDUMP$ac_delim
27418 CXXCPP!$CXXCPP$ac_delim
27419 F77!$F77$ac_delim
27420 FFLAGS!$FFLAGS$ac_delim
27421 ac_ct_F77!$ac_ct_F77$ac_delim
27422 LIBTOOL!$LIBTOOL$ac_delim
27423 BUILD_APPS_TRUE!$BUILD_APPS_TRUE$ac_delim
27424 BUILD_APPS_FALSE!$BUILD_APPS_FALSE$ac_delim
27425 PY_CXXFLAGS!$PY_CXXFLAGS$ac_delim
27426 OCT_CXXFLAGS!$OCT_CXXFLAGS$ac_delim
27427 DEF_CXXFLAGS!$DEF_CXXFLAGS$ac_delim
27428 ALLOCA!$ALLOCA$ac_delim
27429 CARBON_CFLAGS!$CARBON_CFLAGS$ac_delim
27430 CARBON_LIBS!$CARBON_LIBS$ac_delim
27431 BUILD_CARBON_TRUE!$BUILD_CARBON_TRUE$ac_delim
27432 BUILD_CARBON_FALSE!$BUILD_CARBON_FALSE$ac_delim
27433 PKG_CONFIG!$PKG_CONFIG$ac_delim
27434 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
27435 GTK_LIBS!$GTK_LIBS$ac_delim
27436 GTHREAD_CFLAGS!$GTHREAD_CFLAGS$ac_delim
27437 GTHREAD_LIBS!$GTHREAD_LIBS$ac_delim
27438 BUILD_GTK_TRUE!$BUILD_GTK_TRUE$ac_delim
27439 BUILD_GTK_FALSE!$BUILD_GTK_FALSE$ac_delim
27440 QUICKTIME_CFLAGS!$QUICKTIME_CFLAGS$ac_delim
27441 QUICKTIME_LIBS!$QUICKTIME_LIBS$ac_delim
27442 BUILD_QUICKTIME_TRUE!$BUILD_QUICKTIME_TRUE$ac_delim
27443 BUILD_QUICKTIME_FALSE!$BUILD_QUICKTIME_FALSE$ac_delim
27444 GSTREAMER_CFLAGS!$GSTREAMER_CFLAGS$ac_delim
27445 GSTREAMER_LIBS!$GSTREAMER_LIBS$ac_delim
27446 BUILD_GSTREAMER_TRUE!$BUILD_GSTREAMER_TRUE$ac_delim
27447 BUILD_GSTREAMER_FALSE!$BUILD_GSTREAMER_FALSE$ac_delim
27448 XINE_LIBS!$XINE_LIBS$ac_delim
27449 BUILD_XINE_TRUE!$BUILD_XINE_TRUE$ac_delim
27450 BUILD_XINE_FALSE!$BUILD_XINE_FALSE$ac_delim
27451 FFMPEGLIBS!$FFMPEGLIBS$ac_delim
27452 BUILD_FFMPEG_TRUE!$BUILD_FFMPEG_TRUE$ac_delim
27453 BUILD_FFMPEG_FALSE!$BUILD_FFMPEG_FALSE$ac_delim
27454 IEEE1394LIBS!$IEEE1394LIBS$ac_delim
27455 BUILD_DC1394_TRUE!$BUILD_DC1394_TRUE$ac_delim
27456 BUILD_DC1394_FALSE!$BUILD_DC1394_FALSE$ac_delim
27457 BUILD_V4L_TRUE!$BUILD_V4L_TRUE$ac_delim
27458 BUILD_V4L_FALSE!$BUILD_V4L_FALSE$ac_delim
27459 IMAGELIBS!$IMAGELIBS$ac_delim
27460 BUILD_IMAGEIO_TRUE!$BUILD_IMAGEIO_TRUE$ac_delim
27461 BUILD_IMAGEIO_FALSE!$BUILD_IMAGEIO_FALSE$ac_delim
27462 PYTHON!$PYTHON$ac_delim
27463 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
27464 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
27465 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
27466 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
27467 pythondir!$pythondir$ac_delim
27468 pkgpythondir!$pkgpythondir$ac_delim
27469 pyexecdir!$pyexecdir$ac_delim
27470 pkgpyexecdir!$pkgpyexecdir$ac_delim
27471 PYTHON_CSPEC!$PYTHON_CSPEC$ac_delim
27472 PYTHON_LSPEC!$PYTHON_LSPEC$ac_delim
27473 BUILD_PYTHON_WRAPPERS_TRUE!$BUILD_PYTHON_WRAPPERS_TRUE$ac_delim
27474 BUILD_PYTHON_WRAPPERS_FALSE!$BUILD_PYTHON_WRAPPERS_FALSE$ac_delim
27475 OCTAVE!$OCTAVE$ac_delim
27476 MKOCTFILE!$MKOCTFILE$ac_delim
27477 OCTAVE_ARCH!$OCTAVE_ARCH$ac_delim
27478 BUILD_OCTAVE_WRAPPERS_TRUE!$BUILD_OCTAVE_WRAPPERS_TRUE$ac_delim
27479 BUILD_OCTAVE_WRAPPERS_FALSE!$BUILD_OCTAVE_WRAPPERS_FALSE$ac_delim
27480 SWIG!$SWIG$ac_delim
27481 SWIG_VERSION!$SWIG_VERSION$ac_delim
27482 SWIG_RUNTIME_LIBS_DIR!$SWIG_RUNTIME_LIBS_DIR$ac_delim
27483 SWIG_OCTAVE_OPT!$SWIG_OCTAVE_OPT$ac_delim
27484 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
27485 SWIG_PYTHON_LIBS!$SWIG_PYTHON_LIBS$ac_delim
27486 UPDATE_SWIG_WRAPPERS_TRUE!$UPDATE_SWIG_WRAPPERS_TRUE$ac_delim
27487 UPDATE_SWIG_WRAPPERS_FALSE!$UPDATE_SWIG_WRAPPERS_FALSE$ac_delim
27488 DEBUG!$DEBUG$ac_delim
27489 LIBOBJS!$LIBOBJS$ac_delim
27490 LTLIBOBJS!$LTLIBOBJS$ac_delim
27491 _ACEOF
27492
27493   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
27494     break
27495   elif $ac_last_try; then
27496     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27497 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27498    { (exit 1); exit 1; }; }
27499   else
27500     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27501   fi
27502 done
27503
27504 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27505 if test -n "$ac_eof"; then
27506   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27507   ac_eof=`expr $ac_eof + 1`
27508 fi
27509
27510 cat >>$CONFIG_STATUS <<_ACEOF
27511 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27513 _ACEOF
27514 sed '
27515 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27516 s/^/s,@/; s/!/@,|#_!!_#|/
27517 :n
27518 t n
27519 s/'"$ac_delim"'$/,g/; t
27520 s/$/\\/; p
27521 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27522 ' >>$CONFIG_STATUS <conf$$subs.sed
27523 rm -f conf$$subs.sed
27524 cat >>$CONFIG_STATUS <<_ACEOF
27525 :end
27526 s/|#_!!_#|//g
27527 CEOF$ac_eof
27528 _ACEOF
27529
27530
27531 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27532 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27533 # trailing colons and then remove the whole line if VPATH becomes empty
27534 # (actually we leave an empty line to preserve line numbers).
27535 if test "x$srcdir" = x.; then
27536   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27537 s/:*\$(srcdir):*/:/
27538 s/:*\${srcdir}:*/:/
27539 s/:*@srcdir@:*/:/
27540 s/^\([^=]*=[     ]*\):*/\1/
27541 s/:*$//
27542 s/^[^=]*=[       ]*$//
27543 }'
27544 fi
27545
27546 cat >>$CONFIG_STATUS <<\_ACEOF
27547 fi # test -n "$CONFIG_FILES"
27548
27549
27550 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27551 do
27552   case $ac_tag in
27553   :[FHLC]) ac_mode=$ac_tag; continue;;
27554   esac
27555   case $ac_mode$ac_tag in
27556   :[FHL]*:*);;
27557   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27558 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27559    { (exit 1); exit 1; }; };;
27560   :[FH]-) ac_tag=-:-;;
27561   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27562   esac
27563   ac_save_IFS=$IFS
27564   IFS=:
27565   set x $ac_tag
27566   IFS=$ac_save_IFS
27567   shift
27568   ac_file=$1
27569   shift
27570
27571   case $ac_mode in
27572   :L) ac_source=$1;;
27573   :[FH])
27574     ac_file_inputs=
27575     for ac_f
27576     do
27577       case $ac_f in
27578       -) ac_f="$tmp/stdin";;
27579       *) # Look for the file first in the build tree, then in the source tree
27580          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27581          # because $ac_f cannot contain `:'.
27582          test -f "$ac_f" ||
27583            case $ac_f in
27584            [\\/$]*) false;;
27585            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27586            esac ||
27587            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27588 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27589    { (exit 1); exit 1; }; };;
27590       esac
27591       ac_file_inputs="$ac_file_inputs $ac_f"
27592     done
27593
27594     # Let's still pretend it is `configure' which instantiates (i.e., don't
27595     # use $as_me), people would be surprised to read:
27596     #    /* config.h.  Generated by config.status.  */
27597     configure_input="Generated from "`IFS=:
27598           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27599     if test x"$ac_file" != x-; then
27600       configure_input="$ac_file.  $configure_input"
27601       { echo "$as_me:$LINENO: creating $ac_file" >&5
27602 echo "$as_me: creating $ac_file" >&6;}
27603     fi
27604
27605     case $ac_tag in
27606     *:-:* | *:-) cat >"$tmp/stdin";;
27607     esac
27608     ;;
27609   esac
27610
27611   ac_dir=`$as_dirname -- "$ac_file" ||
27612 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27613          X"$ac_file" : 'X\(//\)[^/]' \| \
27614          X"$ac_file" : 'X\(//\)$' \| \
27615          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27616 echo X"$ac_file" |
27617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27618             s//\1/
27619             q
27620           }
27621           /^X\(\/\/\)[^/].*/{
27622             s//\1/
27623             q
27624           }
27625           /^X\(\/\/\)$/{
27626             s//\1/
27627             q
27628           }
27629           /^X\(\/\).*/{
27630             s//\1/
27631             q
27632           }
27633           s/.*/./; q'`
27634   { as_dir="$ac_dir"
27635   case $as_dir in #(
27636   -*) as_dir=./$as_dir;;
27637   esac
27638   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27639     as_dirs=
27640     while :; do
27641       case $as_dir in #(
27642       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27643       *) as_qdir=$as_dir;;
27644       esac
27645       as_dirs="'$as_qdir' $as_dirs"
27646       as_dir=`$as_dirname -- "$as_dir" ||
27647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27648          X"$as_dir" : 'X\(//\)[^/]' \| \
27649          X"$as_dir" : 'X\(//\)$' \| \
27650          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27651 echo X"$as_dir" |
27652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27653             s//\1/
27654             q
27655           }
27656           /^X\(\/\/\)[^/].*/{
27657             s//\1/
27658             q
27659           }
27660           /^X\(\/\/\)$/{
27661             s//\1/
27662             q
27663           }
27664           /^X\(\/\).*/{
27665             s//\1/
27666             q
27667           }
27668           s/.*/./; q'`
27669       test -d "$as_dir" && break
27670     done
27671     test -z "$as_dirs" || eval "mkdir $as_dirs"
27672   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27673 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27674    { (exit 1); exit 1; }; }; }
27675   ac_builddir=.
27676
27677 case "$ac_dir" in
27678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27679 *)
27680   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27681   # A ".." for each directory in $ac_dir_suffix.
27682   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27683   case $ac_top_builddir_sub in
27684   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27685   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27686   esac ;;
27687 esac
27688 ac_abs_top_builddir=$ac_pwd
27689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27690 # for backward compatibility:
27691 ac_top_builddir=$ac_top_build_prefix
27692
27693 case $srcdir in
27694   .)  # We are building in place.
27695     ac_srcdir=.
27696     ac_top_srcdir=$ac_top_builddir_sub
27697     ac_abs_top_srcdir=$ac_pwd ;;
27698   [\\/]* | ?:[\\/]* )  # Absolute name.
27699     ac_srcdir=$srcdir$ac_dir_suffix;
27700     ac_top_srcdir=$srcdir
27701     ac_abs_top_srcdir=$srcdir ;;
27702   *) # Relative name.
27703     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27704     ac_top_srcdir=$ac_top_build_prefix$srcdir
27705     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27706 esac
27707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27708
27709
27710   case $ac_mode in
27711   :F)
27712   #
27713   # CONFIG_FILE
27714   #
27715
27716   case $INSTALL in
27717   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27718   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27719   esac
27720   ac_MKDIR_P=$MKDIR_P
27721   case $MKDIR_P in
27722   [\\/$]* | ?:[\\/]* ) ;;
27723   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27724   esac
27725 _ACEOF
27726
27727 cat >>$CONFIG_STATUS <<\_ACEOF
27728 # If the template does not know about datarootdir, expand it.
27729 # FIXME: This hack should be removed a few years after 2.60.
27730 ac_datarootdir_hack=; ac_datarootdir_seen=
27731
27732 case `sed -n '/datarootdir/ {
27733   p
27734   q
27735 }
27736 /@datadir@/p
27737 /@docdir@/p
27738 /@infodir@/p
27739 /@localedir@/p
27740 /@mandir@/p
27741 ' $ac_file_inputs` in
27742 *datarootdir*) ac_datarootdir_seen=yes;;
27743 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27744   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27745 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27746 _ACEOF
27747 cat >>$CONFIG_STATUS <<_ACEOF
27748   ac_datarootdir_hack='
27749   s&@datadir@&$datadir&g
27750   s&@docdir@&$docdir&g
27751   s&@infodir@&$infodir&g
27752   s&@localedir@&$localedir&g
27753   s&@mandir@&$mandir&g
27754     s&\\\${datarootdir}&$datarootdir&g' ;;
27755 esac
27756 _ACEOF
27757
27758 # Neutralize VPATH when `$srcdir' = `.'.
27759 # Shell code in configure.ac might set extrasub.
27760 # FIXME: do we really want to maintain this feature?
27761 cat >>$CONFIG_STATUS <<_ACEOF
27762   sed "$ac_vpsub
27763 $extrasub
27764 _ACEOF
27765 cat >>$CONFIG_STATUS <<\_ACEOF
27766 :t
27767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27768 s&@configure_input@&$configure_input&;t t
27769 s&@top_builddir@&$ac_top_builddir_sub&;t t
27770 s&@srcdir@&$ac_srcdir&;t t
27771 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27772 s&@top_srcdir@&$ac_top_srcdir&;t t
27773 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27774 s&@builddir@&$ac_builddir&;t t
27775 s&@abs_builddir@&$ac_abs_builddir&;t t
27776 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27777 s&@INSTALL@&$ac_INSTALL&;t t
27778 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27779 $ac_datarootdir_hack
27780 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27781
27782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27783   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27784   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27785   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27786 which seems to be undefined.  Please make sure it is defined." >&5
27787 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27788 which seems to be undefined.  Please make sure it is defined." >&2;}
27789
27790   rm -f "$tmp/stdin"
27791   case $ac_file in
27792   -) cat "$tmp/out"; rm -f "$tmp/out";;
27793   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27794   esac
27795  ;;
27796   :H)
27797   #
27798   # CONFIG_HEADER
27799   #
27800 _ACEOF
27801
27802 # Transform confdefs.h into a sed script `conftest.defines', that
27803 # substitutes the proper values into config.h.in to produce config.h.
27804 rm -f conftest.defines conftest.tail
27805 # First, append a space to every undef/define line, to ease matching.
27806 echo 's/$/ /' >conftest.defines
27807 # Then, protect against being on the right side of a sed subst, or in
27808 # an unquoted here document, in config.status.  If some macros were
27809 # called several times there might be several #defines for the same
27810 # symbol, which is useless.  But do not sort them, since the last
27811 # AC_DEFINE must be honored.
27812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27813 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27814 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27815 # PARAMS is the parameter list in the macro definition--in most cases, it's
27816 # just an empty string.
27817 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27818 ac_dB='\\)[      (].*,\\1define\\2'
27819 ac_dC=' '
27820 ac_dD=' ,'
27821
27822 uniq confdefs.h |
27823   sed -n '
27824         t rset
27825         :rset
27826         s/^[     ]*#[    ]*define[       ][      ]*//
27827         t ok
27828         d
27829         :ok
27830         s/[\\&,]/\\&/g
27831         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27832         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27833   ' >>conftest.defines
27834
27835 # Remove the space that was appended to ease matching.
27836 # Then replace #undef with comments.  This is necessary, for
27837 # example, in the case of _POSIX_SOURCE, which is predefined and required
27838 # on some systems where configure will not decide to define it.
27839 # (The regexp can be short, since the line contains either #define or #undef.)
27840 echo 's/ $//
27841 s,^[     #]*u.*,/* & */,' >>conftest.defines
27842
27843 # Break up conftest.defines:
27844 ac_max_sed_lines=50
27845
27846 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27847 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27848 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27849 # et cetera.
27850 ac_in='$ac_file_inputs'
27851 ac_out='"$tmp/out1"'
27852 ac_nxt='"$tmp/out2"'
27853
27854 while :
27855 do
27856   # Write a here document:
27857     cat >>$CONFIG_STATUS <<_ACEOF
27858     # First, check the format of the line:
27859     cat >"\$tmp/defines.sed" <<\\CEOF
27860 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27861 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27862 b
27863 :def
27864 _ACEOF
27865   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27866   echo 'CEOF
27867     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27868   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27869   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27870   grep . conftest.tail >/dev/null || break
27871   rm -f conftest.defines
27872   mv conftest.tail conftest.defines
27873 done
27874 rm -f conftest.defines conftest.tail
27875
27876 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27877 cat >>$CONFIG_STATUS <<\_ACEOF
27878   if test x"$ac_file" != x-; then
27879     echo "/* $configure_input  */" >"$tmp/config.h"
27880     cat "$ac_result" >>"$tmp/config.h"
27881     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27882       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27883 echo "$as_me: $ac_file is unchanged" >&6;}
27884     else
27885       rm -f $ac_file
27886       mv "$tmp/config.h" $ac_file
27887     fi
27888   else
27889     echo "/* $configure_input  */"
27890     cat "$ac_result"
27891   fi
27892   rm -f "$tmp/out12"
27893 # Compute $ac_file's index in $config_headers.
27894 _am_stamp_count=1
27895 for _am_header in $config_headers :; do
27896   case $_am_header in
27897     $ac_file | $ac_file:* )
27898       break ;;
27899     * )
27900       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27901   esac
27902 done
27903 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27904 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27905          X$ac_file : 'X\(//\)[^/]' \| \
27906          X$ac_file : 'X\(//\)$' \| \
27907          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27908 echo X$ac_file |
27909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27910             s//\1/
27911             q
27912           }
27913           /^X\(\/\/\)[^/].*/{
27914             s//\1/
27915             q
27916           }
27917           /^X\(\/\/\)$/{
27918             s//\1/
27919             q
27920           }
27921           /^X\(\/\).*/{
27922             s//\1/
27923             q
27924           }
27925           s/.*/./; q'`/stamp-h$_am_stamp_count
27926  ;;
27927
27928   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27929 echo "$as_me: executing $ac_file commands" >&6;}
27930  ;;
27931   esac
27932
27933
27934   case $ac_file$ac_mode in
27935     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27936   # Strip MF so we end up with the name of the file.
27937   mf=`echo "$mf" | sed -e 's/:.*$//'`
27938   # Check whether this is an Automake generated Makefile or not.
27939   # We used to match only the files named `Makefile.in', but
27940   # some people rename them; so instead we look at the file content.
27941   # Grep'ing the first line is not enough: some people post-process
27942   # each Makefile.in and add a new line on top of each file to say so.
27943   # Grep'ing the whole file is not good either: AIX grep has a line
27944   # limit of 2048, but all sed's we know have understand at least 4000.
27945   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27946     dirpart=`$as_dirname -- "$mf" ||
27947 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27948          X"$mf" : 'X\(//\)[^/]' \| \
27949          X"$mf" : 'X\(//\)$' \| \
27950          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27951 echo X"$mf" |
27952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27953             s//\1/
27954             q
27955           }
27956           /^X\(\/\/\)[^/].*/{
27957             s//\1/
27958             q
27959           }
27960           /^X\(\/\/\)$/{
27961             s//\1/
27962             q
27963           }
27964           /^X\(\/\).*/{
27965             s//\1/
27966             q
27967           }
27968           s/.*/./; q'`
27969   else
27970     continue
27971   fi
27972   # Extract the definition of DEPDIR, am__include, and am__quote
27973   # from the Makefile without running `make'.
27974   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27975   test -z "$DEPDIR" && continue
27976   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27977   test -z "am__include" && continue
27978   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27979   # When using ansi2knr, U may be empty or an underscore; expand it
27980   U=`sed -n 's/^U = //p' < "$mf"`
27981   # Find all dependency output files, they are included files with
27982   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27983   # simplest approach to changing $(DEPDIR) to its actual value in the
27984   # expansion.
27985   for file in `sed -n "
27986     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27987        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27988     # Make sure the directory exists.
27989     test -f "$dirpart/$file" && continue
27990     fdir=`$as_dirname -- "$file" ||
27991 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27992          X"$file" : 'X\(//\)[^/]' \| \
27993          X"$file" : 'X\(//\)$' \| \
27994          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27995 echo X"$file" |
27996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27997             s//\1/
27998             q
27999           }
28000           /^X\(\/\/\)[^/].*/{
28001             s//\1/
28002             q
28003           }
28004           /^X\(\/\/\)$/{
28005             s//\1/
28006             q
28007           }
28008           /^X\(\/\).*/{
28009             s//\1/
28010             q
28011           }
28012           s/.*/./; q'`
28013     { as_dir=$dirpart/$fdir
28014   case $as_dir in #(
28015   -*) as_dir=./$as_dir;;
28016   esac
28017   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28018     as_dirs=
28019     while :; do
28020       case $as_dir in #(
28021       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28022       *) as_qdir=$as_dir;;
28023       esac
28024       as_dirs="'$as_qdir' $as_dirs"
28025       as_dir=`$as_dirname -- "$as_dir" ||
28026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28027          X"$as_dir" : 'X\(//\)[^/]' \| \
28028          X"$as_dir" : 'X\(//\)$' \| \
28029          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28030 echo X"$as_dir" |
28031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28032             s//\1/
28033             q
28034           }
28035           /^X\(\/\/\)[^/].*/{
28036             s//\1/
28037             q
28038           }
28039           /^X\(\/\/\)$/{
28040             s//\1/
28041             q
28042           }
28043           /^X\(\/\).*/{
28044             s//\1/
28045             q
28046           }
28047           s/.*/./; q'`
28048       test -d "$as_dir" && break
28049     done
28050     test -z "$as_dirs" || eval "mkdir $as_dirs"
28051   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28052 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28053    { (exit 1); exit 1; }; }; }
28054     # echo "creating $dirpart/$file"
28055     echo '# dummy' > "$dirpart/$file"
28056   done
28057 done
28058  ;;
28059
28060   esac
28061 done # for ac_tag
28062
28063
28064 { (exit 0); exit 0; }
28065 _ACEOF
28066 chmod +x $CONFIG_STATUS
28067 ac_clean_files=$ac_clean_files_save
28068
28069
28070 # configure is writing to config.log, and then calls config.status.
28071 # config.status does its own redirection, appending to config.log.
28072 # Unfortunately, on DOS this fails, as config.log is still kept open
28073 # by configure, so config.status won't be able to write to it; its
28074 # output is simply discarded.  So we exec the FD to /dev/null,
28075 # effectively closing config.log, so it can be properly (re)opened and
28076 # appended to by config.status.  When coming back to configure, we
28077 # need to make the FD available again.
28078 if test "$no_create" != yes; then
28079   ac_cs_success=:
28080   ac_config_status_args=
28081   test "$silent" = yes &&
28082     ac_config_status_args="$ac_config_status_args --quiet"
28083   exec 5>/dev/null
28084   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28085   exec 5>>config.log
28086   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28087   # would make configure fail if this is the last instruction.
28088   $ac_cs_success || { (exit 1); exit 1; }
28089 fi
28090
28091
28092 { echo "$as_me:$LINENO: result:
28093 General configuration ================================================
28094     Compiler:                 ${CXX}
28095     CXXFLAGS:                 ${CXXFLAGS}
28096     DEF_CXXFLAGS:             ${DEF_CXXFLAGS}
28097     PY_CXXFLAGS:              ${PY_CXXFLAGS}
28098     OCT_CXXFLAGS:             ${OCT_CXXFLAGS}
28099
28100     Install path:             ${prefix}
28101
28102 HighGUI configuration ================================================
28103
28104     Windowing system --------------
28105     Use Carbon / Mac OS X:    ${have_carbon}
28106     Use gtk+ 2.x:             ${have_gtk}
28107     Use gthread:              ${have_gthread}
28108
28109     Image I/O ---------------------
28110     Use ImageIO / Mac OS X:   ${have_imageio}
28111     Use libjpeg:              ${have_jpeg}
28112     Use zlib:                 ${have_zlib}
28113     Use libpng:               ${have_png}
28114     Use libtiff:              ${have_tiff}
28115     Use libjasper:            ${have_jasper}
28116     Use libIlmImf:            ${have_ilmimf}
28117
28118     Video I/O ---------------------
28119     Use QuickTime / Mac OS X: ${have_quicktime}
28120     Use xine:                 ${have_xine}
28121     Use gstreamer:            ${have_gstreamer}
28122     Use ffmpeg:               ${have_ffmpeg}
28123     Use dc1394 & raw1394:     ${have_dc1394}
28124     Use v4l:                  ${have_v4l}
28125     Use v4l2:                 ${have_v4l2}
28126
28127 Wrappers for other languages =========================================
28128     SWIG                      ${SWIG}
28129     Python                    ${have_python}
28130     Octave                    ${have_octave}
28131
28132 Additional build settings ============================================
28133     Build demo apps           ${enable_apps}
28134
28135 Now run make ...
28136 " >&5
28137 echo "${ECHO_T}
28138 General configuration ================================================
28139     Compiler:                 ${CXX}
28140     CXXFLAGS:                 ${CXXFLAGS}
28141     DEF_CXXFLAGS:             ${DEF_CXXFLAGS}
28142     PY_CXXFLAGS:              ${PY_CXXFLAGS}
28143     OCT_CXXFLAGS:             ${OCT_CXXFLAGS}
28144
28145     Install path:             ${prefix}
28146
28147 HighGUI configuration ================================================
28148
28149     Windowing system --------------
28150     Use Carbon / Mac OS X:    ${have_carbon}
28151     Use gtk+ 2.x:             ${have_gtk}
28152     Use gthread:              ${have_gthread}
28153
28154     Image I/O ---------------------
28155     Use ImageIO / Mac OS X:   ${have_imageio}
28156     Use libjpeg:              ${have_jpeg}
28157     Use zlib:                 ${have_zlib}
28158     Use libpng:               ${have_png}
28159     Use libtiff:              ${have_tiff}
28160     Use libjasper:            ${have_jasper}
28161     Use libIlmImf:            ${have_ilmimf}
28162
28163     Video I/O ---------------------
28164     Use QuickTime / Mac OS X: ${have_quicktime}
28165     Use xine:                 ${have_xine}
28166     Use gstreamer:            ${have_gstreamer}
28167     Use ffmpeg:               ${have_ffmpeg}
28168     Use dc1394 & raw1394:     ${have_dc1394}
28169     Use v4l:                  ${have_v4l}
28170     Use v4l2:                 ${have_v4l2}
28171
28172 Wrappers for other languages =========================================
28173     SWIG                      ${SWIG}
28174     Python                    ${have_python}
28175     Octave                    ${have_octave}
28176
28177 Additional build settings ============================================
28178     Build demo apps           ${enable_apps}
28179
28180 Now run make ...
28181 " >&6; }
28182
28183 if test x"$have_xine" = "xyes"; then
28184     { echo "$as_me:$LINENO:
28185 ATTENTION: highgui will be built with xine support,
28186            thus it will be a subject to GNU Public License" >&5
28187 echo "$as_me:
28188 ATTENTION: highgui will be built with xine support,
28189            thus it will be a subject to GNU Public License" >&6;}
28190 fi