Update to 2.0.0 tree from current Fremantle build
[opencv] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.60 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for opencv 2.0.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, 2007, 2008, 2009 Free Software
10 # Foundation, Inc.
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='print -r --'
49   as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in #(
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order.  Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" ""        $as_nl"
91
92 # Find who we are.  Look in the path if we contain no directory separator.
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         BASH_ENV=/dev/null
219         ENV=/dev/null
220         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221         export CONFIG_SHELL
222         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223 fi
224
225     if test x$as_have_required = xno; then :
226   $as_echo "$0: This script requires a shell more modern than all"
227   $as_echo "$0: the shells that I found on your system."
228   if test x${ZSH_VERSION+set} = xset ; then
229     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231   else
232     $as_echo "$0: Please tell bug-autoconf@gnu.org and
233 $0: opencvlibrary-devel@lists.sourceforge.net about your
234 $0: system, including any error possibly output before this
235 $0: message. Then install a modern shell, or manually run
236 $0: the script under such a shell if you do have one."
237   fi
238   exit 1
239 fi
240 fi
241 fi
242 SHELL=${CONFIG_SHELL-/bin/sh}
243 export SHELL
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
247
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
251 # as_fn_unset VAR
252 # ---------------
253 # Portably unset VAR.
254 as_fn_unset ()
255 {
256   { eval $1=; unset $1;}
257 }
258 as_unset=as_fn_unset
259
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
263 as_fn_set_status ()
264 {
265   return $1
266 } # as_fn_set_status
267
268 # as_fn_exit STATUS
269 # -----------------
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271 as_fn_exit ()
272 {
273   set +e
274   as_fn_set_status $1
275   exit $1
276 } # as_fn_exit
277
278 # as_fn_mkdir_p
279 # -------------
280 # Create "$as_dir" as a directory, including parents if necessary.
281 as_fn_mkdir_p ()
282 {
283
284   case $as_dir in #(
285   -*) as_dir=./$as_dir;;
286   esac
287   test -d "$as_dir" || eval $as_mkdir_p || {
288     as_dirs=
289     while :; do
290       case $as_dir in #(
291       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292       *) as_qdir=$as_dir;;
293       esac
294       as_dirs="'$as_qdir' $as_dirs"
295       as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297          X"$as_dir" : 'X\(//\)[^/]' \| \
298          X"$as_dir" : 'X\(//\)$' \| \
299          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)[^/].*/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)$/{
310             s//\1/
311             q
312           }
313           /^X\(\/\).*/{
314             s//\1/
315             q
316           }
317           s/.*/./; q'`
318       test -d "$as_dir" && break
319     done
320     test -z "$as_dirs" || eval "mkdir $as_dirs"
321   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322
323
324 } # as_fn_mkdir_p
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
330 # implementations.
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332   eval 'as_fn_append ()
333   {
334     eval $1+=\$2
335   }'
336 else
337   as_fn_append ()
338   {
339     eval $1=\$$1\$2
340   }
341 fi # as_fn_append
342
343 # as_fn_arith ARG...
344 # ------------------
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349   eval 'as_fn_arith ()
350   {
351     as_val=$(( $* ))
352   }'
353 else
354   as_fn_arith ()
355   {
356     as_val=`expr "$@" || test $? -eq 1`
357   }
358 fi # as_fn_arith
359
360
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
366 as_fn_error ()
367 {
368   as_status=$?; test $as_status -eq 0 && as_status=1
369   if test "$3"; then
370     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372   fi
373   $as_echo "$as_me: error: $1" >&2
374   as_fn_exit $as_status
375 } # as_fn_error
376
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378    test "X`expr 00001 : '.*\(...\)'`" = X001; then
379   as_expr=expr
380 else
381   as_expr=false
382 fi
383
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385   as_basename=basename
386 else
387   as_basename=false
388 fi
389
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391   as_dirname=dirname
392 else
393   as_dirname=false
394 fi
395
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398          X"$0" : 'X\(//\)$' \| \
399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 $as_echo X/"$0" |
401     sed '/^.*\/\([^/][^/]*\)\/*$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\/\)$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\).*/{
410             s//\1/
411             q
412           }
413           s/.*/./; q'`
414
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
421
422
423   as_lineno_1=$LINENO as_lineno_1a=$LINENO
424   as_lineno_2=$LINENO as_lineno_2a=$LINENO
425   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
428   sed -n '
429     p
430     /[$]LINENO/=
431   ' <$as_myself |
432     sed '
433       s/[$]LINENO.*/&-/
434       t lineno
435       b
436       :lineno
437       N
438       :loop
439       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440       t loop
441       s/-\n.*//
442     ' >$as_me.lineno &&
443   chmod +x "$as_me.lineno" ||
444     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
446   # Don't try to exec as it changes $[0], causing all sort of problems
447   # (the dirname of $[0] is not the place where we might find the
448   # original and so on.  Autoconf is especially sensitive to this).
449   . "./$as_me.lineno"
450   # Exit status is that of the last command.
451   exit
452 }
453
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
456 -n*)
457   case `echo 'xy\c'` in
458   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
459   xy)  ECHO_C='\c';;
460   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
461        ECHO_T=' ';;
462   esac;;
463 *)
464   ECHO_N='-n';;
465 esac
466
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469   rm -f conf$$.dir/conf$$.file
470 else
471   rm -f conf$$.dir
472   mkdir conf$$.dir 2>/dev/null
473 fi
474 if (echo >conf$$.file) 2>/dev/null; then
475   if ln -s conf$$.file conf$$ 2>/dev/null; then
476     as_ln_s='ln -s'
477     # ... but there are two gotchas:
478     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480     # In both cases, we have to default to `cp -p'.
481     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482       as_ln_s='cp -p'
483   elif ln conf$$.file conf$$ 2>/dev/null; then
484     as_ln_s=ln
485   else
486     as_ln_s='cp -p'
487   fi
488 else
489   as_ln_s='cp -p'
490 fi
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
493
494 if mkdir -p . 2>/dev/null; then
495   as_mkdir_p='mkdir -p "$as_dir"'
496 else
497   test -d ./-p && rmdir ./-p
498   as_mkdir_p=false
499 fi
500
501 if test -x / >/dev/null 2>&1; then
502   as_test_x='test -x'
503 else
504   if ls -dL / >/dev/null 2>&1; then
505     as_ls_L_option=L
506   else
507     as_ls_L_option=
508   fi
509   as_test_x='
510     eval sh -c '\''
511       if test -d "$1"; then
512         test -d "$1/.";
513       else
514         case $1 in #(
515         -*)set "./$1";;
516         esac;
517         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518         ???[sx]*):;;*)false;;esac;fi
519     '\'' sh
520   '
521 fi
522 as_executable_p=$as_test_x
523
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529
530
531
532 # Check that we are running under the correct shell.
533 SHELL=${CONFIG_SHELL-/bin/sh}
534
535 case X$lt_ECHO in
536 X*--fallback-echo)
537   # Remove one level of quotation (which was required for Make).
538   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539   ;;
540 esac
541
542 ECHO=${lt_ECHO-echo}
543 if test "X$1" = X--no-reexec; then
544   # Discard the --no-reexec flag, and continue.
545   shift
546 elif test "X$1" = X--fallback-echo; then
547   # Avoid inline document here, it may be left over
548   :
549 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550   # Yippee, $ECHO works!
551   :
552 else
553   # Restart under the correct shell.
554   exec $SHELL "$0" --no-reexec ${1+"$@"}
555 fi
556
557 if test "X$1" = X--fallback-echo; then
558   # used as fallback echo
559   shift
560   cat <<_LT_EOF
561 $*
562 _LT_EOF
563   exit 0
564 fi
565
566 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 # if CDPATH is set.
568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
570 if test -z "$lt_ECHO"; then
571   if test "X${echo_test_string+set}" != Xset; then
572     # find a string as large as possible, as long as the shell can cope with it
573     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
577       then
578         break
579       fi
580     done
581   fi
582
583   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585      test "X$echo_testing_string" = "X$echo_test_string"; then
586     :
587   else
588     # The Solaris, AIX, and Digital Unix default echo programs unquote
589     # backslashes.  This makes it impossible to quote backslashes using
590     #   echo "$something" | sed 's/\\/\\\\/g'
591     #
592     # So, first we look for a working echo in the user's PATH.
593
594     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595     for dir in $PATH /usr/ucb; do
596       IFS="$lt_save_ifs"
597       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600          test "X$echo_testing_string" = "X$echo_test_string"; then
601         ECHO="$dir/echo"
602         break
603       fi
604     done
605     IFS="$lt_save_ifs"
606
607     if test "X$ECHO" = Xecho; then
608       # We didn't find a better echo, so look for alternatives.
609       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611          test "X$echo_testing_string" = "X$echo_test_string"; then
612         # This shell has a builtin print -r that does the trick.
613         ECHO='print -r'
614       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615            test "X$CONFIG_SHELL" != X/bin/ksh; then
616         # If we have ksh, try running configure again with it.
617         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618         export ORIGINAL_CONFIG_SHELL
619         CONFIG_SHELL=/bin/ksh
620         export CONFIG_SHELL
621         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622       else
623         # Try using printf.
624         ECHO='printf %s\n'
625         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627            test "X$echo_testing_string" = "X$echo_test_string"; then
628           # Cool, printf works
629           :
630         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631              test "X$echo_testing_string" = 'X\t' &&
632              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633              test "X$echo_testing_string" = "X$echo_test_string"; then
634           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635           export CONFIG_SHELL
636           SHELL="$CONFIG_SHELL"
637           export SHELL
638           ECHO="$CONFIG_SHELL $0 --fallback-echo"
639         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640              test "X$echo_testing_string" = 'X\t' &&
641              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642              test "X$echo_testing_string" = "X$echo_test_string"; then
643           ECHO="$CONFIG_SHELL $0 --fallback-echo"
644         else
645           # maybe with a smaller string...
646           prev=:
647
648           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
650             then
651               break
652             fi
653             prev="$cmd"
654           done
655
656           if test "$prev" != 'sed 50q "$0"'; then
657             echo_test_string=`eval $prev`
658             export echo_test_string
659             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660           else
661             # Oops.  We lost completely, so just stick with echo.
662             ECHO=echo
663           fi
664         fi
665       fi
666     fi
667   fi
668 fi
669
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
672 lt_ECHO=$ECHO
673 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
675 fi
676
677
678
679
680 exec 7<&0 </dev/null 6>&1
681
682 # Name of the host.
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686
687 #
688 # Initializations.
689 #
690 ac_default_prefix=/usr/local
691 ac_clean_files=
692 ac_config_libobj_dir=.
693 LIBOBJS=
694 cross_compiling=no
695 subdirs=
696 MFLAGS=
697 MAKEFLAGS=
698
699 # Identity of this package.
700 PACKAGE_NAME='opencv'
701 PACKAGE_TARNAME='opencv'
702 PACKAGE_VERSION='2.0.0'
703 PACKAGE_STRING='opencv 2.0.0'
704 PACKAGE_BUGREPORT='opencvlibrary-devel@lists.sourceforge.net'
705 PACKAGE_URL=''
706
707 ac_unique_file="opencv.pc.in"
708 # Factoring default headers for most tests.
709 ac_includes_default="\
710 #include <stdio.h>
711 #ifdef HAVE_SYS_TYPES_H
712 # include <sys/types.h>
713 #endif
714 #ifdef HAVE_SYS_STAT_H
715 # include <sys/stat.h>
716 #endif
717 #ifdef STDC_HEADERS
718 # include <stdlib.h>
719 # include <stddef.h>
720 #else
721 # ifdef HAVE_STDLIB_H
722 #  include <stdlib.h>
723 # endif
724 #endif
725 #ifdef HAVE_STRING_H
726 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #  include <memory.h>
728 # endif
729 # include <string.h>
730 #endif
731 #ifdef HAVE_STRINGS_H
732 # include <strings.h>
733 #endif
734 #ifdef HAVE_INTTYPES_H
735 # include <inttypes.h>
736 #endif
737 #ifdef HAVE_STDINT_H
738 # include <stdint.h>
739 #endif
740 #ifdef HAVE_UNISTD_H
741 # include <unistd.h>
742 #endif"
743
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 LIBOBJS
748 DEBUG
749 UPDATE_SWIG_WRAPPERS_FALSE
750 UPDATE_SWIG_WRAPPERS_TRUE
751 SWIG_PYTHON_LIBS
752 SWIG_PYTHON_OPT
753 SWIG_OCTAVE_OPT
754 SWIG_RUNTIME_LIBS_DIR
755 SWIG_VERSION
756 SWIG
757 BUILD_OCTAVE_WRAPPERS_FALSE
758 BUILD_OCTAVE_WRAPPERS_TRUE
759 OCTAVE_ARCH
760 OCTAVE_INCFLAGS
761 MKOCTFILE
762 OCTAVE
763 BUILD_PYTHON_WRAPPERS_FALSE
764 BUILD_PYTHON_WRAPPERS_TRUE
765 PYTHON_LSPEC
766 PYTHON_CSPEC
767 pkgpyexecdir
768 pyexecdir
769 pkgpythondir
770 pythondir
771 PYTHON_PLATFORM
772 PYTHON_EXEC_PREFIX
773 PYTHON_PREFIX
774 PYTHON_VERSION
775 PYTHON
776 BUILD_IMAGEIO_FALSE
777 BUILD_IMAGEIO_TRUE
778 IMAGELIBS
779 BUILD_V4L_FALSE
780 BUILD_V4L_TRUE
781 BUILD_DC1394_2_FALSE
782 BUILD_DC1394_2_TRUE
783 BUILD_DC1394_FALSE
784 BUILD_DC1394_TRUE
785 IEEE1394LIBS
786 BUILD_FFMPEG_FALSE
787 BUILD_FFMPEG_TRUE
788 FFMPEGLIBS
789 BUILD_XINE_FALSE
790 BUILD_XINE_TRUE
791 XINE_LIBS
792 BUILD_UNICAP_FALSE
793 BUILD_UNICAP_TRUE
794 UCIL_PACKAGE_LIBS
795 UCIL_PACKAGE_CFLAGS
796 UNICAP_PACKAGE_LIBS
797 UNICAP_PACKAGE_CFLAGS
798 BUILD_GSTREAMER_FALSE
799 BUILD_GSTREAMER_TRUE
800 GSTREAMER_LIBS
801 GSTREAMER_CFLAGS
802 BUILD_QUICKTIME_FALSE
803 BUILD_QUICKTIME_TRUE
804 QUICKTIME_LIBS
805 QUICKTIME_CFLAGS
806 BUILD_GTK_FALSE
807 BUILD_GTK_TRUE
808 GTHREAD_LIBS
809 GTHREAD_CFLAGS
810 GTK_LIBS
811 GTK_CFLAGS
812 PKG_CONFIG
813 BUILD_CARBON_FALSE
814 BUILD_CARBON_TRUE
815 CARBON_LIBS
816 CARBON_CFLAGS
817 NATIVE_LAPACK_FALSE
818 NATIVE_LAPACK_TRUE
819 LAPACK_LIBS
820 ALLOCA
821 FLOAT_STORE_CFLAGS
822 OPTIMIZATION_CXXFLAGS
823 OPTIMIZATION_CPPFLAGS
824 DEBUG_CXXFLAGS
825 DEBUG_CPPFLAGS
826 SIMD_FLAGS
827 OPENMP_CXXFLAGS
828 BUILD_APPS_FALSE
829 BUILD_APPS_TRUE
830 CPP
831 OTOOL64
832 OTOOL
833 LIPO
834 NMEDIT
835 DSYMUTIL
836 lt_ECHO
837 RANLIB
838 AR
839 LN_S
840 NM
841 ac_ct_DUMPBIN
842 DUMPBIN
843 LD
844 FGREP
845 EGREP
846 GREP
847 SED
848 am__fastdepCC_FALSE
849 am__fastdepCC_TRUE
850 CCDEPMODE
851 ac_ct_CC
852 CFLAGS
853 CC
854 LIBTOOL
855 CXXCPP
856 am__fastdepCXX_FALSE
857 am__fastdepCXX_TRUE
858 CXXDEPMODE
859 AMDEPBACKSLASH
860 AMDEP_FALSE
861 AMDEP_TRUE
862 am__quote
863 am__include
864 DEPDIR
865 OBJEXT
866 EXEEXT
867 ac_ct_CXX
868 CPPFLAGS
869 LDFLAGS
870 CXXFLAGS
871 CXX
872 OBJDUMP
873 DLLTOOL
874 AS
875 LT_VERSION
876 MSUBMINOR
877 MMINOR
878 MMAJOR
879 am__untar
880 am__tar
881 AMTAR
882 am__leading_dot
883 SET_MAKE
884 AWK
885 mkdir_p
886 MKDIR_P
887 INSTALL_STRIP_PROGRAM
888 STRIP
889 install_sh
890 MAKEINFO
891 AUTOHEADER
892 AUTOMAKE
893 AUTOCONF
894 ACLOCAL
895 VERSION
896 PACKAGE
897 CYGPATH_W
898 am__isrc
899 INSTALL_DATA
900 INSTALL_SCRIPT
901 INSTALL_PROGRAM
902 target_os
903 target_vendor
904 target_cpu
905 target
906 host_os
907 host_vendor
908 host_cpu
909 host
910 build_os
911 build_vendor
912 build_cpu
913 build
914 target_alias
915 host_alias
916 build_alias
917 LIBS
918 ECHO_T
919 ECHO_N
920 ECHO_C
921 DEFS
922 mandir
923 localedir
924 libdir
925 psdir
926 pdfdir
927 dvidir
928 htmldir
929 infodir
930 docdir
931 oldincludedir
932 includedir
933 localstatedir
934 sharedstatedir
935 sysconfdir
936 datadir
937 datarootdir
938 libexecdir
939 sbindir
940 bindir
941 program_transform_name
942 prefix
943 exec_prefix
944 PACKAGE_URL
945 PACKAGE_BUGREPORT
946 PACKAGE_STRING
947 PACKAGE_VERSION
948 PACKAGE_TARNAME
949 PACKAGE_NAME
950 PATH_SEPARATOR
951 SHELL'
952 ac_subst_files=''
953 ac_user_opts='
954 enable_option_checking
955 enable_static
956 enable_dependency_tracking
957 enable_shared
958 with_pic
959 enable_fast_install
960 with_gnu_ld
961 enable_libtool_lock
962 enable_debug
963 enable_optimization
964 enable_sse
965 enable_apps
966 with_native_lapack
967 with_swig
968 with_python
969 with_octave
970 with_xine
971 with_gstreamer
972 with_ffmpeg
973 with_1394libs
974 with_v4l
975 with_unicap
976 with_imageio
977 with_quicktime
978 with_carbon
979 with_gtk
980 with_gthread
981 enable_openmp
982 '
983       ac_precious_vars='build_alias
984 host_alias
985 target_alias
986 CXX
987 CXXFLAGS
988 LDFLAGS
989 LIBS
990 CPPFLAGS
991 CCC
992 CXXCPP
993 CC
994 CFLAGS
995 CPP
996 PYTHON
997 SWIG'
998
999
1000 # Initialize some variables set by options.
1001 ac_init_help=
1002 ac_init_version=false
1003 ac_unrecognized_opts=
1004 ac_unrecognized_sep=
1005 # The variables have the same names as the options, with
1006 # dashes changed to underlines.
1007 cache_file=/dev/null
1008 exec_prefix=NONE
1009 no_create=
1010 no_recursion=
1011 prefix=NONE
1012 program_prefix=NONE
1013 program_suffix=NONE
1014 program_transform_name=s,x,x,
1015 silent=
1016 site=
1017 srcdir=
1018 verbose=
1019 x_includes=NONE
1020 x_libraries=NONE
1021
1022 # Installation directory options.
1023 # These are left unexpanded so users can "make install exec_prefix=/foo"
1024 # and all the variables that are supposed to be based on exec_prefix
1025 # by default will actually change.
1026 # Use braces instead of parens because sh, perl, etc. also accept them.
1027 # (The list follows the same order as the GNU Coding Standards.)
1028 bindir='${exec_prefix}/bin'
1029 sbindir='${exec_prefix}/sbin'
1030 libexecdir='${exec_prefix}/libexec'
1031 datarootdir='${prefix}/share'
1032 datadir='${datarootdir}'
1033 sysconfdir='${prefix}/etc'
1034 sharedstatedir='${prefix}/com'
1035 localstatedir='${prefix}/var'
1036 includedir='${prefix}/include'
1037 oldincludedir='/usr/include'
1038 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1039 infodir='${datarootdir}/info'
1040 htmldir='${docdir}'
1041 dvidir='${docdir}'
1042 pdfdir='${docdir}'
1043 psdir='${docdir}'
1044 libdir='${exec_prefix}/lib'
1045 localedir='${datarootdir}/locale'
1046 mandir='${datarootdir}/man'
1047
1048 ac_prev=
1049 ac_dashdash=
1050 for ac_option
1051 do
1052   # If the previous option needs an argument, assign it.
1053   if test -n "$ac_prev"; then
1054     eval $ac_prev=\$ac_option
1055     ac_prev=
1056     continue
1057   fi
1058
1059   case $ac_option in
1060   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1061   *)    ac_optarg=yes ;;
1062   esac
1063
1064   # Accept the important Cygnus configure options, so we can diagnose typos.
1065
1066   case $ac_dashdash$ac_option in
1067   --)
1068     ac_dashdash=yes ;;
1069
1070   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1071     ac_prev=bindir ;;
1072   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1073     bindir=$ac_optarg ;;
1074
1075   -build | --build | --buil | --bui | --bu)
1076     ac_prev=build_alias ;;
1077   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1078     build_alias=$ac_optarg ;;
1079
1080   -cache-file | --cache-file | --cache-fil | --cache-fi \
1081   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1082     ac_prev=cache_file ;;
1083   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1084   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1085     cache_file=$ac_optarg ;;
1086
1087   --config-cache | -C)
1088     cache_file=config.cache ;;
1089
1090   -datadir | --datadir | --datadi | --datad)
1091     ac_prev=datadir ;;
1092   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1093     datadir=$ac_optarg ;;
1094
1095   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1096   | --dataroo | --dataro | --datar)
1097     ac_prev=datarootdir ;;
1098   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1099   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1100     datarootdir=$ac_optarg ;;
1101
1102   -disable-* | --disable-*)
1103     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106       as_fn_error "invalid feature name: $ac_useropt"
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval enable_$ac_useropt=no ;;
1117
1118   -docdir | --docdir | --docdi | --doc | --do)
1119     ac_prev=docdir ;;
1120   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121     docdir=$ac_optarg ;;
1122
1123   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124     ac_prev=dvidir ;;
1125   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126     dvidir=$ac_optarg ;;
1127
1128   -enable-* | --enable-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       as_fn_error "invalid feature name: $ac_useropt"
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "enable_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval enable_$ac_useropt=\$ac_optarg ;;
1143
1144   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1145   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1146   | --exec | --exe | --ex)
1147     ac_prev=exec_prefix ;;
1148   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1149   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1150   | --exec=* | --exe=* | --ex=*)
1151     exec_prefix=$ac_optarg ;;
1152
1153   -gas | --gas | --ga | --g)
1154     # Obsolete; use --with-gas.
1155     with_gas=yes ;;
1156
1157   -help | --help | --hel | --he | -h)
1158     ac_init_help=long ;;
1159   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1160     ac_init_help=recursive ;;
1161   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1162     ac_init_help=short ;;
1163
1164   -host | --host | --hos | --ho)
1165     ac_prev=host_alias ;;
1166   -host=* | --host=* | --hos=* | --ho=*)
1167     host_alias=$ac_optarg ;;
1168
1169   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1170     ac_prev=htmldir ;;
1171   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1172   | --ht=*)
1173     htmldir=$ac_optarg ;;
1174
1175   -includedir | --includedir | --includedi | --included | --include \
1176   | --includ | --inclu | --incl | --inc)
1177     ac_prev=includedir ;;
1178   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1179   | --includ=* | --inclu=* | --incl=* | --inc=*)
1180     includedir=$ac_optarg ;;
1181
1182   -infodir | --infodir | --infodi | --infod | --info | --inf)
1183     ac_prev=infodir ;;
1184   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1185     infodir=$ac_optarg ;;
1186
1187   -libdir | --libdir | --libdi | --libd)
1188     ac_prev=libdir ;;
1189   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1190     libdir=$ac_optarg ;;
1191
1192   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1193   | --libexe | --libex | --libe)
1194     ac_prev=libexecdir ;;
1195   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1196   | --libexe=* | --libex=* | --libe=*)
1197     libexecdir=$ac_optarg ;;
1198
1199   -localedir | --localedir | --localedi | --localed | --locale)
1200     ac_prev=localedir ;;
1201   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1202     localedir=$ac_optarg ;;
1203
1204   -localstatedir | --localstatedir | --localstatedi | --localstated \
1205   | --localstate | --localstat | --localsta | --localst | --locals)
1206     ac_prev=localstatedir ;;
1207   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1208   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1209     localstatedir=$ac_optarg ;;
1210
1211   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1212     ac_prev=mandir ;;
1213   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1214     mandir=$ac_optarg ;;
1215
1216   -nfp | --nfp | --nf)
1217     # Obsolete; use --without-fp.
1218     with_fp=no ;;
1219
1220   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1221   | --no-cr | --no-c | -n)
1222     no_create=yes ;;
1223
1224   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1225   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1226     no_recursion=yes ;;
1227
1228   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1229   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1230   | --oldin | --oldi | --old | --ol | --o)
1231     ac_prev=oldincludedir ;;
1232   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1233   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1234   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1235     oldincludedir=$ac_optarg ;;
1236
1237   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1238     ac_prev=prefix ;;
1239   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1240     prefix=$ac_optarg ;;
1241
1242   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1243   | --program-pre | --program-pr | --program-p)
1244     ac_prev=program_prefix ;;
1245   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1246   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1247     program_prefix=$ac_optarg ;;
1248
1249   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1250   | --program-suf | --program-su | --program-s)
1251     ac_prev=program_suffix ;;
1252   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1253   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1254     program_suffix=$ac_optarg ;;
1255
1256   -program-transform-name | --program-transform-name \
1257   | --program-transform-nam | --program-transform-na \
1258   | --program-transform-n | --program-transform- \
1259   | --program-transform | --program-transfor \
1260   | --program-transfo | --program-transf \
1261   | --program-trans | --program-tran \
1262   | --progr-tra | --program-tr | --program-t)
1263     ac_prev=program_transform_name ;;
1264   -program-transform-name=* | --program-transform-name=* \
1265   | --program-transform-nam=* | --program-transform-na=* \
1266   | --program-transform-n=* | --program-transform-=* \
1267   | --program-transform=* | --program-transfor=* \
1268   | --program-transfo=* | --program-transf=* \
1269   | --program-trans=* | --program-tran=* \
1270   | --progr-tra=* | --program-tr=* | --program-t=*)
1271     program_transform_name=$ac_optarg ;;
1272
1273   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1274     ac_prev=pdfdir ;;
1275   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1276     pdfdir=$ac_optarg ;;
1277
1278   -psdir | --psdir | --psdi | --psd | --ps)
1279     ac_prev=psdir ;;
1280   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1281     psdir=$ac_optarg ;;
1282
1283   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284   | -silent | --silent | --silen | --sile | --sil)
1285     silent=yes ;;
1286
1287   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1288     ac_prev=sbindir ;;
1289   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1290   | --sbi=* | --sb=*)
1291     sbindir=$ac_optarg ;;
1292
1293   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1294   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1295   | --sharedst | --shareds | --shared | --share | --shar \
1296   | --sha | --sh)
1297     ac_prev=sharedstatedir ;;
1298   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1299   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1300   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1301   | --sha=* | --sh=*)
1302     sharedstatedir=$ac_optarg ;;
1303
1304   -site | --site | --sit)
1305     ac_prev=site ;;
1306   -site=* | --site=* | --sit=*)
1307     site=$ac_optarg ;;
1308
1309   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1310     ac_prev=srcdir ;;
1311   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1312     srcdir=$ac_optarg ;;
1313
1314   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1315   | --syscon | --sysco | --sysc | --sys | --sy)
1316     ac_prev=sysconfdir ;;
1317   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1318   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1319     sysconfdir=$ac_optarg ;;
1320
1321   -target | --target | --targe | --targ | --tar | --ta | --t)
1322     ac_prev=target_alias ;;
1323   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1324     target_alias=$ac_optarg ;;
1325
1326   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1327     verbose=yes ;;
1328
1329   -version | --version | --versio | --versi | --vers | -V)
1330     ac_init_version=: ;;
1331
1332   -with-* | --with-*)
1333     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334     # Reject names that are not valid shell variable names.
1335     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336       as_fn_error "invalid package name: $ac_useropt"
1337     ac_useropt_orig=$ac_useropt
1338     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339     case $ac_user_opts in
1340       *"
1341 "with_$ac_useropt"
1342 "*) ;;
1343       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1344          ac_unrecognized_sep=', ';;
1345     esac
1346     eval with_$ac_useropt=\$ac_optarg ;;
1347
1348   -without-* | --without-*)
1349     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1350     # Reject names that are not valid shell variable names.
1351     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352       as_fn_error "invalid package name: $ac_useropt"
1353     ac_useropt_orig=$ac_useropt
1354     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355     case $ac_user_opts in
1356       *"
1357 "with_$ac_useropt"
1358 "*) ;;
1359       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1360          ac_unrecognized_sep=', ';;
1361     esac
1362     eval with_$ac_useropt=no ;;
1363
1364   --x)
1365     # Obsolete; use --with-x.
1366     with_x=yes ;;
1367
1368   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1369   | --x-incl | --x-inc | --x-in | --x-i)
1370     ac_prev=x_includes ;;
1371   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1372   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1373     x_includes=$ac_optarg ;;
1374
1375   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1376   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1377     ac_prev=x_libraries ;;
1378   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1379   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1380     x_libraries=$ac_optarg ;;
1381
1382   -*) as_fn_error "unrecognized option: \`$ac_option'
1383 Try \`$0 --help' for more information."
1384     ;;
1385
1386   *=*)
1387     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1388     # Reject names that are not valid shell variable names.
1389     case $ac_envvar in #(
1390       '' | [0-9]* | *[!_$as_cr_alnum]* )
1391       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1392     esac
1393     eval $ac_envvar=\$ac_optarg
1394     export $ac_envvar ;;
1395
1396   *)
1397     # FIXME: should be removed in autoconf 3.0.
1398     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1399     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1401     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1402     ;;
1403
1404   esac
1405 done
1406
1407 if test -n "$ac_prev"; then
1408   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1409   as_fn_error "missing argument to $ac_option"
1410 fi
1411
1412 if test -n "$ac_unrecognized_opts"; then
1413   case $enable_option_checking in
1414     no) ;;
1415     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1416     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1417   esac
1418 fi
1419
1420 # Check all directory arguments for consistency.
1421 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1422                 datadir sysconfdir sharedstatedir localstatedir includedir \
1423                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1424                 libdir localedir mandir
1425 do
1426   eval ac_val=\$$ac_var
1427   # Remove trailing slashes.
1428   case $ac_val in
1429     */ )
1430       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1431       eval $ac_var=\$ac_val;;
1432   esac
1433   # Be sure to have absolute directory names.
1434   case $ac_val in
1435     [\\/$]* | ?:[\\/]* )  continue;;
1436     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1437   esac
1438   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1439 done
1440
1441 # There might be people who depend on the old broken behavior: `$host'
1442 # used to hold the argument of --host etc.
1443 # FIXME: To remove some day.
1444 build=$build_alias
1445 host=$host_alias
1446 target=$target_alias
1447
1448 # FIXME: To remove some day.
1449 if test "x$host_alias" != x; then
1450   if test "x$build_alias" = x; then
1451     cross_compiling=maybe
1452     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1453     If a cross compiler is detected then cross compile mode will be used." >&2
1454   elif test "x$build_alias" != "x$host_alias"; then
1455     cross_compiling=yes
1456   fi
1457 fi
1458
1459 ac_tool_prefix=
1460 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1461
1462 test "$silent" = yes && exec 6>/dev/null
1463
1464
1465 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di=`ls -di .` &&
1467 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1468   as_fn_error "working directory cannot be determined"
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470   as_fn_error "pwd does not report name of working directory"
1471
1472
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475   ac_srcdir_defaulted=yes
1476   # Try the directory containing this script, then the parent directory.
1477   ac_confdir=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479          X"$as_myself" : 'X\(//\)[^/]' \| \
1480          X"$as_myself" : 'X\(//\)$' \| \
1481          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1484             s//\1/
1485             q
1486           }
1487           /^X\(\/\/\)[^/].*/{
1488             s//\1/
1489             q
1490           }
1491           /^X\(\/\/\)$/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\).*/{
1496             s//\1/
1497             q
1498           }
1499           s/.*/./; q'`
1500   srcdir=$ac_confdir
1501   if test ! -r "$srcdir/$ac_unique_file"; then
1502     srcdir=..
1503   fi
1504 else
1505   ac_srcdir_defaulted=no
1506 fi
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1509   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1510 fi
1511 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1512 ac_abs_confdir=`(
1513         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1514         pwd)`
1515 # When building in place, set srcdir=.
1516 if test "$ac_abs_confdir" = "$ac_pwd"; then
1517   srcdir=.
1518 fi
1519 # Remove unnecessary trailing slashes from srcdir.
1520 # Double slashes in file names in object file debugging info
1521 # mess up M-x gdb in Emacs.
1522 case $srcdir in
1523 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524 esac
1525 for ac_var in $ac_precious_vars; do
1526   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1527   eval ac_env_${ac_var}_value=\$${ac_var}
1528   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1529   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1530 done
1531
1532 #
1533 # Report the --help message.
1534 #
1535 if test "$ac_init_help" = "long"; then
1536   # Omit some internal or obsolete options to make the list less imposing.
1537   # This message is too long to be a string in the A/UX 3.1 sh.
1538   cat <<_ACEOF
1539 \`configure' configures opencv 2.0.0 to adapt to many kinds of systems.
1540
1541 Usage: $0 [OPTION]... [VAR=VALUE]...
1542
1543 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544 VAR=VALUE.  See below for descriptions of some of the useful variables.
1545
1546 Defaults for the options are specified in brackets.
1547
1548 Configuration:
1549   -h, --help              display this help and exit
1550       --help=short        display options specific to this package
1551       --help=recursive    display the short help of all the included packages
1552   -V, --version           display version information and exit
1553   -q, --quiet, --silent   do not print \`checking...' messages
1554       --cache-file=FILE   cache test results in FILE [disabled]
1555   -C, --config-cache      alias for \`--cache-file=config.cache'
1556   -n, --no-create         do not create output files
1557       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1558
1559 Installation directories:
1560   --prefix=PREFIX         install architecture-independent files in PREFIX
1561                           [$ac_default_prefix]
1562   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1563                           [PREFIX]
1564
1565 By default, \`make install' will install all the files in
1566 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1567 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568 for instance \`--prefix=\$HOME'.
1569
1570 For better control, use the options below.
1571
1572 Fine tuning of the installation directories:
1573   --bindir=DIR            user executables [EPREFIX/bin]
1574   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1575   --libexecdir=DIR        program executables [EPREFIX/libexec]
1576   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1577   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1578   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1579   --libdir=DIR            object code libraries [EPREFIX/lib]
1580   --includedir=DIR        C header files [PREFIX/include]
1581   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1582   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1583   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1584   --infodir=DIR           info documentation [DATAROOTDIR/info]
1585   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1586   --mandir=DIR            man documentation [DATAROOTDIR/man]
1587   --docdir=DIR            documentation root [DATAROOTDIR/doc/opencv]
1588   --htmldir=DIR           html documentation [DOCDIR]
1589   --dvidir=DIR            dvi documentation [DOCDIR]
1590   --pdfdir=DIR            pdf documentation [DOCDIR]
1591   --psdir=DIR             ps documentation [DOCDIR]
1592 _ACEOF
1593
1594   cat <<\_ACEOF
1595
1596 Program names:
1597   --program-prefix=PREFIX            prepend PREFIX to installed program names
1598   --program-suffix=SUFFIX            append SUFFIX to installed program names
1599   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1600
1601 System types:
1602   --build=BUILD     configure for building on BUILD [guessed]
1603   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1604   --target=TARGET   configure for building compilers for TARGET [HOST]
1605 _ACEOF
1606 fi
1607
1608 if test -n "$ac_init_help"; then
1609   case $ac_init_help in
1610      short | recursive ) echo "Configuration of opencv 2.0.0:";;
1611    esac
1612   cat <<\_ACEOF
1613
1614 Optional Features:
1615   --disable-option-checking  ignore unrecognized --enable/--with options
1616   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1617   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1618   --enable-static[=PKGS]  build static libraries [default=no]
1619   --disable-dependency-tracking  speeds up one-time build
1620   --enable-dependency-tracking   do not reject slow dependency extractors
1621   --enable-shared[=PKGS]  build shared libraries [default=yes]
1622   --enable-fast-install[=PKGS]
1623                           optimize for fast installation [default=yes]
1624   --disable-libtool-lock  avoid locking (might break parallel builds)
1625   --enable-debug          build debug version without optimization [no]
1626   --enable-optimization   automatic guess of suitable optimization options
1627                           [yes]
1628   --enable-sse            enable SSE(2) intrinsics [automatic]
1629   --enable-apps           build demo applications [yes]
1630   --disable-openmp        do not use OpenMP
1631
1632 Optional Packages:
1633   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1634   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1635   --with-pic              try to use only PIC/non-PIC objects [default=use
1636                           both]
1637   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1638   --with-native-lapack    use platform native BLAS and LAPACK [no]
1639   --with-swig             use swig wrapper generator [no]
1640   --with-python           use python for wrapping [yes]
1641   --with-octave           use octave for wrapping [no]
1642   --with-xine             use xine libraries (see LICENSE) [no]
1643   --with-gstreamer        use gstreamer multimedia framework (see LICENSE)
1644                           [no]
1645   --with-ffmpeg           use ffmpeg libraries (see LICENSE) [automatic]
1646   --with-1394libs         use libraw1394/libdc1394 [automatic]
1647   --with-v4l              use video4linux [automatic]
1648   --with-unicap           use unicap (see LICENSE) [no]
1649   --with-imageio          use ImageIO libraries [automatic]
1650   --with-quicktime        use QuickTime libraries [automatic]
1651   --with-carbon           use Carbon windows [automatic]
1652   --with-gtk              use gtk+ 2.0 windows [automatic]
1653   --with-gthread          use gthread in addition to gtk+ [automatic]
1654
1655 Some influential environment variables:
1656   CXX         C++ compiler command
1657   CXXFLAGS    C++ compiler flags
1658   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1659               nonstandard directory <lib dir>
1660   LIBS        libraries to pass to the linker, e.g. -l<library>
1661   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1662               you have headers in a nonstandard directory <include dir>
1663   CXXCPP      C++ preprocessor
1664   CC          C compiler command
1665   CFLAGS      C compiler flags
1666   CPP         C preprocessor
1667   PYTHON      Python Executable Path
1668   SWIG        Simplified Wrapper and Interface Generator, used for Python
1669               bindings
1670
1671 Use these variables to override the choices made by `configure' or to help
1672 it to find libraries and programs with nonstandard names/locations.
1673
1674 Report bugs to <opencvlibrary-devel@lists.sourceforge.net>.
1675 _ACEOF
1676 ac_status=$?
1677 fi
1678
1679 if test "$ac_init_help" = "recursive"; then
1680   # If there are subdirs, report their specific --help.
1681   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1682     test -d "$ac_dir" ||
1683       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1684       continue
1685     ac_builddir=.
1686
1687 case "$ac_dir" in
1688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *)
1690   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1691   # A ".." for each directory in $ac_dir_suffix.
1692   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1693   case $ac_top_builddir_sub in
1694   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1696   esac ;;
1697 esac
1698 ac_abs_top_builddir=$ac_pwd
1699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1700 # for backward compatibility:
1701 ac_top_builddir=$ac_top_build_prefix
1702
1703 case $srcdir in
1704   .)  # We are building in place.
1705     ac_srcdir=.
1706     ac_top_srcdir=$ac_top_builddir_sub
1707     ac_abs_top_srcdir=$ac_pwd ;;
1708   [\\/]* | ?:[\\/]* )  # Absolute name.
1709     ac_srcdir=$srcdir$ac_dir_suffix;
1710     ac_top_srcdir=$srcdir
1711     ac_abs_top_srcdir=$srcdir ;;
1712   *) # Relative name.
1713     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1714     ac_top_srcdir=$ac_top_build_prefix$srcdir
1715     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1716 esac
1717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1718
1719     cd "$ac_dir" || { ac_status=$?; continue; }
1720     # Check for guested configure.
1721     if test -f "$ac_srcdir/configure.gnu"; then
1722       echo &&
1723       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1724     elif test -f "$ac_srcdir/configure"; then
1725       echo &&
1726       $SHELL "$ac_srcdir/configure" --help=recursive
1727     else
1728       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1729     fi || ac_status=$?
1730     cd "$ac_pwd" || { ac_status=$?; break; }
1731   done
1732 fi
1733
1734 test -n "$ac_init_help" && exit $ac_status
1735 if $ac_init_version; then
1736   cat <<\_ACEOF
1737 opencv configure 2.0.0
1738 generated by GNU Autoconf 2.64
1739
1740 Copyright (C) 2009 Free Software Foundation, Inc.
1741 This configure script is free software; the Free Software Foundation
1742 gives unlimited permission to copy, distribute and modify it.
1743 _ACEOF
1744   exit
1745 fi
1746
1747 ## ------------------------ ##
1748 ## Autoconf initialization. ##
1749 ## ------------------------ ##
1750
1751 # ac_fn_cxx_try_compile LINENO
1752 # ----------------------------
1753 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_cxx_try_compile ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   rm -f conftest.$ac_objext
1758   if { { ac_try="$ac_compile"
1759 case "(($ac_try" in
1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761   *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765   (eval "$ac_compile") 2>conftest.err
1766   ac_status=$?
1767   if test -s conftest.err; then
1768     grep -v '^ *+' conftest.err >conftest.er1
1769     cat conftest.er1 >&5
1770     mv -f conftest.er1 conftest.err
1771   fi
1772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773   test $ac_status = 0; } && {
1774          test -z "$ac_cxx_werror_flag" ||
1775          test ! -s conftest.err
1776        } && test -s conftest.$ac_objext; then :
1777   ac_retval=0
1778 else
1779   $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782         ac_retval=1
1783 fi
1784   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785   return $ac_retval
1786
1787 } # ac_fn_cxx_try_compile
1788
1789 # ac_fn_cxx_try_cpp LINENO
1790 # ------------------------
1791 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_cxx_try_cpp ()
1793 {
1794   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795   if { { ac_try="$ac_cpp conftest.$ac_ext"
1796 case "(($ac_try" in
1797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798   *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1803   ac_status=$?
1804   if test -s conftest.err; then
1805     grep -v '^ *+' conftest.err >conftest.er1
1806     cat conftest.er1 >&5
1807     mv -f conftest.er1 conftest.err
1808   fi
1809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810   test $ac_status = 0; } >/dev/null && {
1811          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1812          test ! -s conftest.err
1813        }; then :
1814   ac_retval=0
1815 else
1816   $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819     ac_retval=1
1820 fi
1821   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822   return $ac_retval
1823
1824 } # ac_fn_cxx_try_cpp
1825
1826 # ac_fn_c_try_compile LINENO
1827 # --------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_compile ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   rm -f conftest.$ac_objext
1833   if { { ac_try="$ac_compile"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_compile") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } && {
1849          test -z "$ac_c_werror_flag" ||
1850          test ! -s conftest.err
1851        } && test -s conftest.$ac_objext; then :
1852   ac_retval=0
1853 else
1854   $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857         ac_retval=1
1858 fi
1859   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860   return $ac_retval
1861
1862 } # ac_fn_c_try_compile
1863
1864 # ac_fn_c_try_link LINENO
1865 # -----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_c_try_link ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   rm -f conftest.$ac_objext conftest$ac_exeext
1871   if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878   (eval "$ac_link") 2>conftest.err
1879   ac_status=$?
1880   if test -s conftest.err; then
1881     grep -v '^ *+' conftest.err >conftest.er1
1882     cat conftest.er1 >&5
1883     mv -f conftest.er1 conftest.err
1884   fi
1885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886   test $ac_status = 0; } && {
1887          test -z "$ac_c_werror_flag" ||
1888          test ! -s conftest.err
1889        } && test -s conftest$ac_exeext && {
1890          test "$cross_compiling" = yes ||
1891          $as_test_x conftest$ac_exeext
1892        }; then :
1893   ac_retval=0
1894 else
1895   $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898         ac_retval=1
1899 fi
1900   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902   # interfere with the next link command; also delete a directory that is
1903   # left behind by Apple's compiler.  We do this before executing the actions.
1904   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906   return $ac_retval
1907
1908 } # ac_fn_c_try_link
1909
1910 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1911 # -------------------------------------------------------
1912 # Tests whether HEADER exists and can be compiled using the include files in
1913 # INCLUDES, setting the cache variable VAR accordingly.
1914 ac_fn_c_check_header_compile ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920   $as_echo_n "(cached) " >&6
1921 else
1922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 $4
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928   eval "$3=yes"
1929 else
1930   eval "$3=no"
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
1939 } # ac_fn_c_check_header_compile
1940
1941 # ac_fn_c_try_cpp LINENO
1942 # ----------------------
1943 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_cpp ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   if { { ac_try="$ac_cpp conftest.$ac_ext"
1948 case "(($ac_try" in
1949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950   *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1955   ac_status=$?
1956   if test -s conftest.err; then
1957     grep -v '^ *+' conftest.err >conftest.er1
1958     cat conftest.er1 >&5
1959     mv -f conftest.er1 conftest.err
1960   fi
1961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962   test $ac_status = 0; } >/dev/null && {
1963          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1964          test ! -s conftest.err
1965        }; then :
1966   ac_retval=0
1967 else
1968   $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1970
1971     ac_retval=1
1972 fi
1973   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974   return $ac_retval
1975
1976 } # ac_fn_c_try_cpp
1977
1978 # ac_fn_c_try_run LINENO
1979 # ----------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1981 # that executables *can* be run.
1982 ac_fn_c_try_run ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   if { { ac_try="$ac_link"
1986 case "(($ac_try" in
1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988   *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992   (eval "$ac_link") 2>&5
1993   ac_status=$?
1994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1996   { { case "(($ac_try" in
1997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998   *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002   (eval "$ac_try") 2>&5
2003   ac_status=$?
2004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005   test $ac_status = 0; }; }; then :
2006   ac_retval=0
2007 else
2008   $as_echo "$as_me: program exited with status $ac_status" >&5
2009        $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011
2012        ac_retval=$ac_status
2013 fi
2014   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016   return $ac_retval
2017
2018 } # ac_fn_c_try_run
2019
2020 # ac_fn_c_check_func LINENO FUNC VAR
2021 # ----------------------------------
2022 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2023 ac_fn_c_check_func ()
2024 {
2025   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029   $as_echo_n "(cached) " >&6
2030 else
2031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h.  */
2033 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2035 #define $2 innocuous_$2
2036
2037 /* System header to define __stub macros and hopefully few prototypes,
2038     which can conflict with char $2 (); below.
2039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2040     <limits.h> exists even on freestanding compilers.  */
2041
2042 #ifdef __STDC__
2043 # include <limits.h>
2044 #else
2045 # include <assert.h>
2046 #endif
2047
2048 #undef $2
2049
2050 /* Override any GCC internal prototype to avoid an error.
2051    Use char because int might match the return type of a GCC
2052    builtin and then its argument prototype would still apply.  */
2053 #ifdef __cplusplus
2054 extern "C"
2055 #endif
2056 char $2 ();
2057 /* The GNU C library defines this for functions which it implements
2058     to always fail with ENOSYS.  Some functions are actually named
2059     something starting with __ and the normal name is an alias.  */
2060 #if defined __stub_$2 || defined __stub___$2
2061 choke me
2062 #endif
2063
2064 int
2065 main ()
2066 {
2067 return $2 ();
2068   ;
2069   return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_link "$LINENO"; then :
2073   eval "$3=yes"
2074 else
2075   eval "$3=no"
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext \
2078     conftest$ac_exeext conftest.$ac_ext
2079 fi
2080 eval ac_res=\$$3
2081                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084
2085 } # ac_fn_c_check_func
2086
2087 # ac_fn_cxx_try_link LINENO
2088 # -------------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded.
2090 ac_fn_cxx_try_link ()
2091 {
2092   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093   rm -f conftest.$ac_objext conftest$ac_exeext
2094   if { { ac_try="$ac_link"
2095 case "(($ac_try" in
2096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097   *) ac_try_echo=$ac_try;;
2098 esac
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101   (eval "$ac_link") 2>conftest.err
2102   ac_status=$?
2103   if test -s conftest.err; then
2104     grep -v '^ *+' conftest.err >conftest.er1
2105     cat conftest.er1 >&5
2106     mv -f conftest.er1 conftest.err
2107   fi
2108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109   test $ac_status = 0; } && {
2110          test -z "$ac_cxx_werror_flag" ||
2111          test ! -s conftest.err
2112        } && test -s conftest$ac_exeext && {
2113          test "$cross_compiling" = yes ||
2114          $as_test_x conftest$ac_exeext
2115        }; then :
2116   ac_retval=0
2117 else
2118   $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2120
2121         ac_retval=1
2122 fi
2123   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2124   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2125   # interfere with the next link command; also delete a directory that is
2126   # left behind by Apple's compiler.  We do this before executing the actions.
2127   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2128   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129   return $ac_retval
2130
2131 } # ac_fn_cxx_try_link
2132
2133 # ac_fn_cxx_try_run LINENO
2134 # ------------------------
2135 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2136 # that executables *can* be run.
2137 ac_fn_cxx_try_run ()
2138 {
2139   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140   if { { ac_try="$ac_link"
2141 case "(($ac_try" in
2142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143   *) ac_try_echo=$ac_try;;
2144 esac
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147   (eval "$ac_link") 2>&5
2148   ac_status=$?
2149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2151   { { case "(($ac_try" in
2152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153   *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157   (eval "$ac_try") 2>&5
2158   ac_status=$?
2159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160   test $ac_status = 0; }; }; then :
2161   ac_retval=0
2162 else
2163   $as_echo "$as_me: program exited with status $ac_status" >&5
2164        $as_echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167        ac_retval=$ac_status
2168 fi
2169   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2170   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171   return $ac_retval
2172
2173 } # ac_fn_cxx_try_run
2174
2175 # ac_fn_cxx_check_func LINENO FUNC VAR
2176 # ------------------------------------
2177 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2178 ac_fn_cxx_check_func ()
2179 {
2180   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2184   $as_echo_n "(cached) " >&6
2185 else
2186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h.  */
2188 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2190 #define $2 innocuous_$2
2191
2192 /* System header to define __stub macros and hopefully few prototypes,
2193     which can conflict with char $2 (); below.
2194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2195     <limits.h> exists even on freestanding compilers.  */
2196
2197 #ifdef __STDC__
2198 # include <limits.h>
2199 #else
2200 # include <assert.h>
2201 #endif
2202
2203 #undef $2
2204
2205 /* Override any GCC internal prototype to avoid an error.
2206    Use char because int might match the return type of a GCC
2207    builtin and then its argument prototype would still apply.  */
2208 #ifdef __cplusplus
2209 extern "C"
2210 #endif
2211 char $2 ();
2212 /* The GNU C library defines this for functions which it implements
2213     to always fail with ENOSYS.  Some functions are actually named
2214     something starting with __ and the normal name is an alias.  */
2215 #if defined __stub_$2 || defined __stub___$2
2216 choke me
2217 #endif
2218
2219 int
2220 main ()
2221 {
2222 return $2 ();
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_cxx_try_link "$LINENO"; then :
2228   eval "$3=yes"
2229 else
2230   eval "$3=no"
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext \
2233     conftest$ac_exeext conftest.$ac_ext
2234 fi
2235 eval ac_res=\$$3
2236                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239
2240 } # ac_fn_cxx_check_func
2241
2242 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2243 # ---------------------------------------------------------
2244 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2245 # the include files in INCLUDES and setting the cache variable VAR
2246 # accordingly.
2247 ac_fn_cxx_check_header_mongrel ()
2248 {
2249   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2254   $as_echo_n "(cached) " >&6
2255 fi
2256 eval ac_res=\$$3
2257                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 else
2260   # Is the header compilable?
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2262 $as_echo_n "checking $2 usability... " >&6; }
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h.  */
2265 $4
2266 #include <$2>
2267 _ACEOF
2268 if ac_fn_cxx_try_compile "$LINENO"; then :
2269   ac_header_compiler=yes
2270 else
2271   ac_header_compiler=no
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2275 $as_echo "$ac_header_compiler" >&6; }
2276
2277 # Is the header present?
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2279 $as_echo_n "checking $2 presence... " >&6; }
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h.  */
2282 #include <$2>
2283 _ACEOF
2284 if ac_fn_cxx_try_cpp "$LINENO"; then :
2285   ac_header_preproc=yes
2286 else
2287   ac_header_preproc=no
2288 fi
2289 rm -f conftest.err conftest.$ac_ext
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2291 $as_echo "$ac_header_preproc" >&6; }
2292
2293 # So?  What about this header?
2294 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2295   yes:no: )
2296     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2297 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2298     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2299 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2300     ;;
2301   no:yes:* )
2302     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2303 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2304     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2305 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2306     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2307 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2308     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2309 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2310     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2311 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2312 ( cat <<\_ASBOX
2313 ## -------------------------------------------------------- ##
2314 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
2315 ## -------------------------------------------------------- ##
2316 _ASBOX
2317      ) | sed "s/^/$as_me: WARNING:     /" >&2
2318     ;;
2319 esac
2320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2323   $as_echo_n "(cached) " >&6
2324 else
2325   eval "$3=\$ac_header_compiler"
2326 fi
2327 eval ac_res=\$$3
2328                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 fi
2331   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332
2333 } # ac_fn_cxx_check_header_mongrel
2334
2335 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2336 # ---------------------------------------------------------
2337 # Tests whether HEADER exists and can be compiled using the include files in
2338 # INCLUDES, setting the cache variable VAR accordingly.
2339 ac_fn_cxx_check_header_compile ()
2340 {
2341   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345   $as_echo_n "(cached) " >&6
2346 else
2347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h.  */
2349 $4
2350 #include <$2>
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353   eval "$3=yes"
2354 else
2355   eval "$3=no"
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 eval ac_res=\$$3
2360                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363
2364 } # ac_fn_cxx_check_header_compile
2365 cat >config.log <<_ACEOF
2366 This file contains any messages produced by compilers while
2367 running configure, to aid debugging if configure makes a mistake.
2368
2369 It was created by opencv $as_me 2.0.0, which was
2370 generated by GNU Autoconf 2.64.  Invocation command line was
2371
2372   $ $0 $@
2373
2374 _ACEOF
2375 exec 5>>config.log
2376 {
2377 cat <<_ASUNAME
2378 ## --------- ##
2379 ## Platform. ##
2380 ## --------- ##
2381
2382 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2383 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2384 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2385 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2386 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2387
2388 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2389 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2390
2391 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2392 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2393 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2394 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2395 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2396 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2397 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2398
2399 _ASUNAME
2400
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2403 do
2404   IFS=$as_save_IFS
2405   test -z "$as_dir" && as_dir=.
2406     $as_echo "PATH: $as_dir"
2407   done
2408 IFS=$as_save_IFS
2409
2410 } >&5
2411
2412 cat >&5 <<_ACEOF
2413
2414
2415 ## ----------- ##
2416 ## Core tests. ##
2417 ## ----------- ##
2418
2419 _ACEOF
2420
2421
2422 # Keep a trace of the command line.
2423 # Strip out --no-create and --no-recursion so they do not pile up.
2424 # Strip out --silent because we don't want to record it for future runs.
2425 # Also quote any args containing shell meta-characters.
2426 # Make two passes to allow for proper duplicate-argument suppression.
2427 ac_configure_args=
2428 ac_configure_args0=
2429 ac_configure_args1=
2430 ac_must_keep_next=false
2431 for ac_pass in 1 2
2432 do
2433   for ac_arg
2434   do
2435     case $ac_arg in
2436     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2437     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2438     | -silent | --silent | --silen | --sile | --sil)
2439       continue ;;
2440     *\'*)
2441       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2442     esac
2443     case $ac_pass in
2444     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2445     2)
2446       as_fn_append ac_configure_args1 " '$ac_arg'"
2447       if test $ac_must_keep_next = true; then
2448         ac_must_keep_next=false # Got value, back to normal.
2449       else
2450         case $ac_arg in
2451           *=* | --config-cache | -C | -disable-* | --disable-* \
2452           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2453           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2454           | -with-* | --with-* | -without-* | --without-* | --x)
2455             case "$ac_configure_args0 " in
2456               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2457             esac
2458             ;;
2459           -* ) ac_must_keep_next=true ;;
2460         esac
2461       fi
2462       as_fn_append ac_configure_args " '$ac_arg'"
2463       ;;
2464     esac
2465   done
2466 done
2467 { ac_configure_args0=; unset ac_configure_args0;}
2468 { ac_configure_args1=; unset ac_configure_args1;}
2469
2470 # When interrupted or exit'd, cleanup temporary files, and complete
2471 # config.log.  We remove comments because anyway the quotes in there
2472 # would cause problems or look ugly.
2473 # WARNING: Use '\'' to represent an apostrophe within the trap.
2474 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2475 trap 'exit_status=$?
2476   # Save into config.log some information that might help in debugging.
2477   {
2478     echo
2479
2480     cat <<\_ASBOX
2481 ## ---------------- ##
2482 ## Cache variables. ##
2483 ## ---------------- ##
2484 _ASBOX
2485     echo
2486     # The following way of writing the cache mishandles newlines in values,
2487 (
2488   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489     eval ac_val=\$$ac_var
2490     case $ac_val in #(
2491     *${as_nl}*)
2492       case $ac_var in #(
2493       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2495       esac
2496       case $ac_var in #(
2497       _ | IFS | as_nl) ;; #(
2498       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499       *) { eval $ac_var=; unset $ac_var;} ;;
2500       esac ;;
2501     esac
2502   done
2503   (set) 2>&1 |
2504     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505     *${as_nl}ac_space=\ *)
2506       sed -n \
2507         "s/'\''/'\''\\\\'\'''\''/g;
2508           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2509       ;; #(
2510     *)
2511       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2512       ;;
2513     esac |
2514     sort
2515 )
2516     echo
2517
2518     cat <<\_ASBOX
2519 ## ----------------- ##
2520 ## Output variables. ##
2521 ## ----------------- ##
2522 _ASBOX
2523     echo
2524     for ac_var in $ac_subst_vars
2525     do
2526       eval ac_val=\$$ac_var
2527       case $ac_val in
2528       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529       esac
2530       $as_echo "$ac_var='\''$ac_val'\''"
2531     done | sort
2532     echo
2533
2534     if test -n "$ac_subst_files"; then
2535       cat <<\_ASBOX
2536 ## ------------------- ##
2537 ## File substitutions. ##
2538 ## ------------------- ##
2539 _ASBOX
2540       echo
2541       for ac_var in $ac_subst_files
2542       do
2543         eval ac_val=\$$ac_var
2544         case $ac_val in
2545         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2546         esac
2547         $as_echo "$ac_var='\''$ac_val'\''"
2548       done | sort
2549       echo
2550     fi
2551
2552     if test -s confdefs.h; then
2553       cat <<\_ASBOX
2554 ## ----------- ##
2555 ## confdefs.h. ##
2556 ## ----------- ##
2557 _ASBOX
2558       echo
2559       cat confdefs.h
2560       echo
2561     fi
2562     test "$ac_signal" != 0 &&
2563       $as_echo "$as_me: caught signal $ac_signal"
2564     $as_echo "$as_me: exit $exit_status"
2565   } >&5
2566   rm -f core *.core core.conftest.* &&
2567     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2568     exit $exit_status
2569 ' 0
2570 for ac_signal in 1 2 13 15; do
2571   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2572 done
2573 ac_signal=0
2574
2575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2576 rm -f -r conftest* confdefs.h
2577
2578 $as_echo "/* confdefs.h */" > confdefs.h
2579
2580 # Predefined preprocessor variables.
2581
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_NAME "$PACKAGE_NAME"
2584 _ACEOF
2585
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2588 _ACEOF
2589
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2592 _ACEOF
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_STRING "$PACKAGE_STRING"
2596 _ACEOF
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2600 _ACEOF
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_URL "$PACKAGE_URL"
2604 _ACEOF
2605
2606
2607 # Let the site file select an alternate cache file if it wants to.
2608 # Prefer an explicitly selected file to automatically selected ones.
2609 ac_site_file1=NONE
2610 ac_site_file2=NONE
2611 if test -n "$CONFIG_SITE"; then
2612   ac_site_file1=$CONFIG_SITE
2613 elif test "x$prefix" != xNONE; then
2614   ac_site_file1=$prefix/share/config.site
2615   ac_site_file2=$prefix/etc/config.site
2616 else
2617   ac_site_file1=$ac_default_prefix/share/config.site
2618   ac_site_file2=$ac_default_prefix/etc/config.site
2619 fi
2620 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2621 do
2622   test "x$ac_site_file" = xNONE && continue
2623   if test -r "$ac_site_file"; then
2624     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2625 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2626     sed 's/^/| /' "$ac_site_file" >&5
2627     . "$ac_site_file"
2628   fi
2629 done
2630
2631 if test -r "$cache_file"; then
2632   # Some versions of bash will fail to source /dev/null (special
2633   # files actually), so we avoid doing that.
2634   if test -f "$cache_file"; then
2635     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2636 $as_echo "$as_me: loading cache $cache_file" >&6;}
2637     case $cache_file in
2638       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2639       *)                      . "./$cache_file";;
2640     esac
2641   fi
2642 else
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2644 $as_echo "$as_me: creating cache $cache_file" >&6;}
2645   >$cache_file
2646 fi
2647
2648 # Check that the precious variables saved in the cache have kept the same
2649 # value.
2650 ac_cache_corrupted=false
2651 for ac_var in $ac_precious_vars; do
2652   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653   eval ac_new_set=\$ac_env_${ac_var}_set
2654   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655   eval ac_new_val=\$ac_env_${ac_var}_value
2656   case $ac_old_set,$ac_new_set in
2657     set,)
2658       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660       ac_cache_corrupted=: ;;
2661     ,set)
2662       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664       ac_cache_corrupted=: ;;
2665     ,);;
2666     *)
2667       if test "x$ac_old_val" != "x$ac_new_val"; then
2668         # differences in whitespace do not lead to failure.
2669         ac_old_val_w=`echo x $ac_old_val`
2670         ac_new_val_w=`echo x $ac_new_val`
2671         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674           ac_cache_corrupted=:
2675         else
2676           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678           eval $ac_var=\$ac_old_val
2679         fi
2680         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2681 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2682         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2683 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2684       fi;;
2685   esac
2686   # Pass precious variables to config.status.
2687   if test "$ac_new_set" = set; then
2688     case $ac_new_val in
2689     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690     *) ac_arg=$ac_var=$ac_new_val ;;
2691     esac
2692     case " $ac_configure_args " in
2693       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2694       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2695     esac
2696   fi
2697 done
2698 if $ac_cache_corrupted; then
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2704 fi
2705 ## -------------------- ##
2706 ## Main body of script. ##
2707 ## -------------------- ##
2708
2709 ac_ext=c
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715
2716
2717 ac_aux_dir=
2718 for ac_dir in autotools "$srcdir"/autotools; do
2719   for ac_t in install-sh install.sh shtool; do
2720     if test -f "$ac_dir/$ac_t"; then
2721       ac_aux_dir=$ac_dir
2722       ac_install_sh="$ac_aux_dir/$ac_t -c"
2723       break 2
2724     fi
2725   done
2726 done
2727 if test -z "$ac_aux_dir"; then
2728   as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
2729 fi
2730
2731 # These three variables are undocumented and unsupported,
2732 # and are intended to be withdrawn in a future Autoconf release.
2733 # They can cause serious problems if a builder's source tree is in a directory
2734 # whose full name contains unusual characters.
2735 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2736 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2737 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2738
2739
2740
2741
2742 # put CVS revision of this configure.in into the resulting configure script
2743
2744
2745 # Detect the canonical host and target build environment
2746 # Make sure we can run config.sub.
2747 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2748   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2749
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2751 $as_echo_n "checking build system type... " >&6; }
2752 if test "${ac_cv_build+set}" = set; then :
2753   $as_echo_n "(cached) " >&6
2754 else
2755   ac_build_alias=$build_alias
2756 test "x$ac_build_alias" = x &&
2757   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2758 test "x$ac_build_alias" = x &&
2759   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2760 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2761   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2762
2763 fi
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2765 $as_echo "$ac_cv_build" >&6; }
2766 case $ac_cv_build in
2767 *-*-*) ;;
2768 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2769 esac
2770 build=$ac_cv_build
2771 ac_save_IFS=$IFS; IFS='-'
2772 set x $ac_cv_build
2773 shift
2774 build_cpu=$1
2775 build_vendor=$2
2776 shift; shift
2777 # Remember, the first character of IFS is used to create $*,
2778 # except with old shells:
2779 build_os=$*
2780 IFS=$ac_save_IFS
2781 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2782
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2785 $as_echo_n "checking host system type... " >&6; }
2786 if test "${ac_cv_host+set}" = set; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   if test "x$host_alias" = x; then
2790   ac_cv_host=$ac_cv_build
2791 else
2792   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2793     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2794 fi
2795
2796 fi
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2798 $as_echo "$ac_cv_host" >&6; }
2799 case $ac_cv_host in
2800 *-*-*) ;;
2801 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2802 esac
2803 host=$ac_cv_host
2804 ac_save_IFS=$IFS; IFS='-'
2805 set x $ac_cv_host
2806 shift
2807 host_cpu=$1
2808 host_vendor=$2
2809 shift; shift
2810 # Remember, the first character of IFS is used to create $*,
2811 # except with old shells:
2812 host_os=$*
2813 IFS=$ac_save_IFS
2814 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2815
2816
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2818 $as_echo_n "checking target system type... " >&6; }
2819 if test "${ac_cv_target+set}" = set; then :
2820   $as_echo_n "(cached) " >&6
2821 else
2822   if test "x$target_alias" = x; then
2823   ac_cv_target=$ac_cv_host
2824 else
2825   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2826     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2827 fi
2828
2829 fi
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2831 $as_echo "$ac_cv_target" >&6; }
2832 case $ac_cv_target in
2833 *-*-*) ;;
2834 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2835 esac
2836 target=$ac_cv_target
2837 ac_save_IFS=$IFS; IFS='-'
2838 set x $ac_cv_target
2839 shift
2840 target_cpu=$1
2841 target_vendor=$2
2842 shift; shift
2843 # Remember, the first character of IFS is used to create $*,
2844 # except with old shells:
2845 target_os=$*
2846 IFS=$ac_save_IFS
2847 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2848
2849
2850 # The aliases save the names the user supplied, while $host etc.
2851 # will get canonicalized.
2852 test -n "$target_alias" &&
2853   test "$program_prefix$program_suffix$program_transform_name" = \
2854     NONENONEs,x,x, &&
2855   program_prefix=${target_alias}-
2856
2857 # setup automake - we need >= 1.6 because of python and aclocal support
2858 #                  we updated to 1.9 because of cross-platform issues
2859 ac_config_headers="$ac_config_headers cvconfig.h"
2860
2861 am__api_version='1.11'
2862
2863 # Find a good install program.  We prefer a C program (faster),
2864 # so one script is as good as another.  But avoid the broken or
2865 # incompatible versions:
2866 # SysV /etc/install, /usr/sbin/install
2867 # SunOS /usr/etc/install
2868 # IRIX /sbin/install
2869 # AIX /bin/install
2870 # AmigaOS /C/install, which installs bootblocks on floppy discs
2871 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2874 # OS/2's system install, which has a completely different semantic
2875 # ./install, which can be erroneously created by make from ./install.sh.
2876 # Reject install programs that cannot install multiple files.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2878 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2879 if test -z "$INSTALL"; then
2880 if test "${ac_cv_path_install+set}" = set; then :
2881   $as_echo_n "(cached) " >&6
2882 else
2883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888     # Account for people who put trailing slashes in PATH elements.
2889 case $as_dir/ in #((
2890   ./ | .// | /[cC]/* | \
2891   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2892   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2893   /usr/ucb/* ) ;;
2894   *)
2895     # OSF1 and SCO ODT 3.0 have their own names for install.
2896     # Don't use installbsd from OSF since it installs stuff as root
2897     # by default.
2898     for ac_prog in ginstall scoinst install; do
2899       for ac_exec_ext in '' $ac_executable_extensions; do
2900         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2901           if test $ac_prog = install &&
2902             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903             # AIX install.  It has an incompatible calling convention.
2904             :
2905           elif test $ac_prog = install &&
2906             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907             # program-specific install script used by HP pwplus--don't use.
2908             :
2909           else
2910             rm -rf conftest.one conftest.two conftest.dir
2911             echo one > conftest.one
2912             echo two > conftest.two
2913             mkdir conftest.dir
2914             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2915               test -s conftest.one && test -s conftest.two &&
2916               test -s conftest.dir/conftest.one &&
2917               test -s conftest.dir/conftest.two
2918             then
2919               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2920               break 3
2921             fi
2922           fi
2923         fi
2924       done
2925     done
2926     ;;
2927 esac
2928
2929   done
2930 IFS=$as_save_IFS
2931
2932 rm -rf conftest.one conftest.two conftest.dir
2933
2934 fi
2935   if test "${ac_cv_path_install+set}" = set; then
2936     INSTALL=$ac_cv_path_install
2937   else
2938     # As a last resort, use the slow shell script.  Don't cache a
2939     # value for INSTALL within a source directory, because that will
2940     # break other packages using the cache if that directory is
2941     # removed, or if the value is a relative name.
2942     INSTALL=$ac_install_sh
2943   fi
2944 fi
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2946 $as_echo "$INSTALL" >&6; }
2947
2948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2949 # It thinks the first close brace ends the variable substitution.
2950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2951
2952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2953
2954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2957 $as_echo_n "checking whether build environment is sane... " >&6; }
2958 # Just in case
2959 sleep 1
2960 echo timestamp > conftest.file
2961 # Reject unsafe characters in $srcdir or the absolute working directory
2962 # name.  Accept space and tab only in the latter.
2963 am_lf='
2964 '
2965 case `pwd` in
2966   *[\\\"\#\$\&\'\`$am_lf]*)
2967     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2968 esac
2969 case $srcdir in
2970   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2971     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2972 esac
2973
2974 # Do `set' in a subshell so we don't clobber the current shell's
2975 # arguments.  Must try -L first in case configure is actually a
2976 # symlink; some systems play weird games with the mod time of symlinks
2977 # (eg FreeBSD returns the mod time of the symlink's containing
2978 # directory).
2979 if (
2980    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2981    if test "$*" = "X"; then
2982       # -L didn't work.
2983       set X `ls -t "$srcdir/configure" conftest.file`
2984    fi
2985    rm -f conftest.file
2986    if test "$*" != "X $srcdir/configure conftest.file" \
2987       && test "$*" != "X conftest.file $srcdir/configure"; then
2988
2989       # If neither matched, then we have a broken ls.  This can happen
2990       # if, for instance, CONFIG_SHELL is bash and it inherits a
2991       # broken ls alias from the environment.  This has actually
2992       # happened.  Such a system could not be considered "sane".
2993       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2994 alias in your environment" "$LINENO" 5
2995    fi
2996
2997    test "$2" = conftest.file
2998    )
2999 then
3000    # Ok.
3001    :
3002 else
3003    as_fn_error "newly created file is older than distributed files!
3004 Check your system clock" "$LINENO" 5
3005 fi
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3007 $as_echo "yes" >&6; }
3008 test "$program_prefix" != NONE &&
3009   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3010 # Use a double $ so make ignores it.
3011 test "$program_suffix" != NONE &&
3012   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3013 # Double any \ or $.
3014 # By default was `s,x,x', remove it if useless.
3015 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3016 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3017
3018 # expand $ac_aux_dir to an absolute path
3019 am_aux_dir=`cd $ac_aux_dir && pwd`
3020
3021 if test x"${MISSING+set}" != xset; then
3022   case $am_aux_dir in
3023   *\ * | *\     *)
3024     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3025   *)
3026     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3027   esac
3028 fi
3029 # Use eval to expand $SHELL
3030 if eval "$MISSING --run true"; then
3031   am_missing_run="$MISSING --run "
3032 else
3033   am_missing_run=
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3035 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3036 fi
3037
3038 if test x"${install_sh}" != xset; then
3039   case $am_aux_dir in
3040   *\ * | *\     *)
3041     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3042   *)
3043     install_sh="\${SHELL} $am_aux_dir/install-sh"
3044   esac
3045 fi
3046
3047 # Installed binaries are usually stripped using `strip' when the user
3048 # run `make install-strip'.  However `strip' might not be the right
3049 # tool to use in cross-compilation environments, therefore Automake
3050 # will honor the `STRIP' environment variable to overrule this program.
3051 if test "$cross_compiling" != no; then
3052   if test -n "$ac_tool_prefix"; then
3053   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}strip; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_STRIP+set}" = set; then :
3058   $as_echo_n "(cached) " >&6
3059 else
3060   if test -n "$STRIP"; then
3061   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066   IFS=$as_save_IFS
3067   test -z "$as_dir" && as_dir=.
3068     for ac_exec_ext in '' $ac_executable_extensions; do
3069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072     break 2
3073   fi
3074 done
3075   done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 STRIP=$ac_cv_prog_STRIP
3081 if test -n "$STRIP"; then
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3083 $as_echo "$STRIP" >&6; }
3084 else
3085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090 fi
3091 if test -z "$ac_cv_prog_STRIP"; then
3092   ac_ct_STRIP=$STRIP
3093   # Extract the first word of "strip", so it can be a program name with args.
3094 set dummy strip; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100   if test -n "$ac_ct_STRIP"; then
3101   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106   IFS=$as_save_IFS
3107   test -z "$as_dir" && as_dir=.
3108     for ac_exec_ext in '' $ac_executable_extensions; do
3109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110     ac_cv_prog_ac_ct_STRIP="strip"
3111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112     break 2
3113   fi
3114 done
3115   done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3121 if test -n "$ac_ct_STRIP"; then
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3123 $as_echo "$ac_ct_STRIP" >&6; }
3124 else
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129   if test "x$ac_ct_STRIP" = x; then
3130     STRIP=":"
3131   else
3132     case $cross_compiling:$ac_tool_warned in
3133 yes:)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136 ac_tool_warned=yes ;;
3137 esac
3138     STRIP=$ac_ct_STRIP
3139   fi
3140 else
3141   STRIP="$ac_cv_prog_STRIP"
3142 fi
3143
3144 fi
3145 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3146
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3148 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3149 if test -z "$MKDIR_P"; then
3150   if test "${ac_cv_path_mkdir+set}" = set; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3155 do
3156   IFS=$as_save_IFS
3157   test -z "$as_dir" && as_dir=.
3158     for ac_prog in mkdir gmkdir; do
3159          for ac_exec_ext in '' $ac_executable_extensions; do
3160            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3161            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3162              'mkdir (GNU coreutils) '* | \
3163              'mkdir (coreutils) '* | \
3164              'mkdir (fileutils) '4.1*)
3165                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3166                break 3;;
3167            esac
3168          done
3169        done
3170   done
3171 IFS=$as_save_IFS
3172
3173 fi
3174
3175   if test "${ac_cv_path_mkdir+set}" = set; then
3176     MKDIR_P="$ac_cv_path_mkdir -p"
3177   else
3178     # As a last resort, use the slow shell script.  Don't cache a
3179     # value for MKDIR_P within a source directory, because that will
3180     # break other packages using the cache if that directory is
3181     # removed, or if the value is a relative name.
3182     test -d ./--version && rmdir ./--version
3183     MKDIR_P="$ac_install_sh -d"
3184   fi
3185 fi
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3187 $as_echo "$MKDIR_P" >&6; }
3188
3189 mkdir_p="$MKDIR_P"
3190 case $mkdir_p in
3191   [\\/$]* | ?:[\\/]*) ;;
3192   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3193 esac
3194
3195 for ac_prog in gawk mawk nawk awk
3196 do
3197   # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_prog_AWK+set}" = set; then :
3202   $as_echo_n "(cached) " >&6
3203 else
3204   if test -n "$AWK"; then
3205   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212     for ac_exec_ext in '' $ac_executable_extensions; do
3213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214     ac_cv_prog_AWK="$ac_prog"
3215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216     break 2
3217   fi
3218 done
3219   done
3220 IFS=$as_save_IFS
3221
3222 fi
3223 fi
3224 AWK=$ac_cv_prog_AWK
3225 if test -n "$AWK"; then
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3227 $as_echo "$AWK" >&6; }
3228 else
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 fi
3232
3233
3234   test -n "$AWK" && break
3235 done
3236
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3238 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3239 set x ${MAKE-make}
3240 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3241 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   cat >conftest.make <<\_ACEOF
3245 SHELL = /bin/sh
3246 all:
3247         @echo '@@@%%%=$(MAKE)=@@@%%%'
3248 _ACEOF
3249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3250 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3251   *@@@%%%=?*=@@@%%%*)
3252     eval ac_cv_prog_make_${ac_make}_set=yes;;
3253   *)
3254     eval ac_cv_prog_make_${ac_make}_set=no;;
3255 esac
3256 rm -f conftest.make
3257 fi
3258 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3261   SET_MAKE=
3262 else
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265   SET_MAKE="MAKE=${MAKE-make}"
3266 fi
3267
3268 rm -rf .tst 2>/dev/null
3269 mkdir .tst 2>/dev/null
3270 if test -d .tst; then
3271   am__leading_dot=.
3272 else
3273   am__leading_dot=_
3274 fi
3275 rmdir .tst 2>/dev/null
3276
3277 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3278   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3279   # is not polluted with repeated "-I."
3280   am__isrc=' -I$(srcdir)'
3281   # test to see if srcdir already configured
3282   if test -f $srcdir/config.status; then
3283     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3284   fi
3285 fi
3286
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289   if (cygpath --version) >/dev/null 2>/dev/null; then
3290     CYGPATH_W='cygpath -w'
3291   else
3292     CYGPATH_W=echo
3293   fi
3294 fi
3295
3296
3297 # Define the identity of the package.
3298  PACKAGE='opencv'
3299  VERSION='2.0.0'
3300
3301
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE "$PACKAGE"
3304 _ACEOF
3305
3306
3307 cat >>confdefs.h <<_ACEOF
3308 #define VERSION "$VERSION"
3309 _ACEOF
3310
3311 # Some tools Automake needs.
3312
3313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3314
3315
3316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3317
3318
3319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3320
3321
3322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3323
3324
3325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3326
3327 # We need awk for the "check" target.  The system "awk" is bad on
3328 # some platforms.
3329 # Always define AMTAR for backward compatibility.
3330
3331 AMTAR=${AMTAR-"${am_missing_run}tar"}
3332
3333 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3334
3335
3336
3337
3338
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3340 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3341 set x ${MAKE-make}
3342 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3344   $as_echo_n "(cached) " >&6
3345 else
3346   cat >conftest.make <<\_ACEOF
3347 SHELL = /bin/sh
3348 all:
3349         @echo '@@@%%%=$(MAKE)=@@@%%%'
3350 _ACEOF
3351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3353   *@@@%%%=?*=@@@%%%*)
3354     eval ac_cv_prog_make_${ac_make}_set=yes;;
3355   *)
3356     eval ac_cv_prog_make_${ac_make}_set=no;;
3357 esac
3358 rm -f conftest.make
3359 fi
3360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 $as_echo "yes" >&6; }
3363   SET_MAKE=
3364 else
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367   SET_MAKE="MAKE=${MAKE-make}"
3368 fi
3369
3370
3371 # use ugly maintainer-mode flag to help CVS users that do not want to
3372 # help developing OpenCV but just need to compile the latest version
3373 # AM_MAINTAINER_MODE
3374
3375 # substitute versionnumbers
3376 MMAJOR=2
3377
3378 MMINOR=0
3379
3380 MSUBMINOR=0
3381
3382 VERSION=2.0.0
3383
3384 LT_VERSION=4:0:0
3385
3386
3387 # disable building static libraries,
3388 # allow Cygwin to build DLLs
3389 # Check whether --enable-static was given.
3390 if test "${enable_static+set}" = set; then :
3391   enableval=$enable_static; p=${PACKAGE-default}
3392     case $enableval in
3393     yes) enable_static=yes ;;
3394     no) enable_static=no ;;
3395     *)
3396      enable_static=no
3397       # Look at the argument we got.  We use all the common list separators.
3398       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3399       for pkg in $enableval; do
3400         IFS="$lt_save_ifs"
3401         if test "X$pkg" = "X$p"; then
3402           enable_static=yes
3403         fi
3404       done
3405       IFS="$lt_save_ifs"
3406       ;;
3407     esac
3408 else
3409   enable_static=no
3410 fi
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420 enable_win32_dll=yes
3421
3422 case $host in
3423 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3424   if test -n "$ac_tool_prefix"; then
3425   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3426 set dummy ${ac_tool_prefix}as; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if test "${ac_cv_prog_AS+set}" = set; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   if test -n "$AS"; then
3433   ac_cv_prog_AS="$AS" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438   IFS=$as_save_IFS
3439   test -z "$as_dir" && as_dir=.
3440     for ac_exec_ext in '' $ac_executable_extensions; do
3441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442     ac_cv_prog_AS="${ac_tool_prefix}as"
3443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444     break 2
3445   fi
3446 done
3447   done
3448 IFS=$as_save_IFS
3449
3450 fi
3451 fi
3452 AS=$ac_cv_prog_AS
3453 if test -n "$AS"; then
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3455 $as_echo "$AS" >&6; }
3456 else
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461
3462 fi
3463 if test -z "$ac_cv_prog_AS"; then
3464   ac_ct_AS=$AS
3465   # Extract the first word of "as", so it can be a program name with args.
3466 set dummy as; ac_word=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3470   $as_echo_n "(cached) " >&6
3471 else
3472   if test -n "$ac_ct_AS"; then
3473   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3474 else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478   IFS=$as_save_IFS
3479   test -z "$as_dir" && as_dir=.
3480     for ac_exec_ext in '' $ac_executable_extensions; do
3481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3482     ac_cv_prog_ac_ct_AS="as"
3483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487   done
3488 IFS=$as_save_IFS
3489
3490 fi
3491 fi
3492 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3493 if test -n "$ac_ct_AS"; then
3494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3495 $as_echo "$ac_ct_AS" >&6; }
3496 else
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3499 fi
3500
3501   if test "x$ac_ct_AS" = x; then
3502     AS="false"
3503   else
3504     case $cross_compiling:$ac_tool_warned in
3505 yes:)
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3508 ac_tool_warned=yes ;;
3509 esac
3510     AS=$ac_ct_AS
3511   fi
3512 else
3513   AS="$ac_cv_prog_AS"
3514 fi
3515
3516   if test -n "$ac_tool_prefix"; then
3517   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3518 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3522   $as_echo_n "(cached) " >&6
3523 else
3524   if test -n "$DLLTOOL"; then
3525   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3529 do
3530   IFS=$as_save_IFS
3531   test -z "$as_dir" && as_dir=.
3532     for ac_exec_ext in '' $ac_executable_extensions; do
3533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3534     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536     break 2
3537   fi
3538 done
3539   done
3540 IFS=$as_save_IFS
3541
3542 fi
3543 fi
3544 DLLTOOL=$ac_cv_prog_DLLTOOL
3545 if test -n "$DLLTOOL"; then
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3547 $as_echo "$DLLTOOL" >&6; }
3548 else
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3551 fi
3552
3553
3554 fi
3555 if test -z "$ac_cv_prog_DLLTOOL"; then
3556   ac_ct_DLLTOOL=$DLLTOOL
3557   # Extract the first word of "dlltool", so it can be a program name with args.
3558 set dummy dlltool; ac_word=$2
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560 $as_echo_n "checking for $ac_word... " >&6; }
3561 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3562   $as_echo_n "(cached) " >&6
3563 else
3564   if test -n "$ac_ct_DLLTOOL"; then
3565   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3569 do
3570   IFS=$as_save_IFS
3571   test -z "$as_dir" && as_dir=.
3572     for ac_exec_ext in '' $ac_executable_extensions; do
3573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3574     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576     break 2
3577   fi
3578 done
3579   done
3580 IFS=$as_save_IFS
3581
3582 fi
3583 fi
3584 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3585 if test -n "$ac_ct_DLLTOOL"; then
3586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3587 $as_echo "$ac_ct_DLLTOOL" >&6; }
3588 else
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3591 fi
3592
3593   if test "x$ac_ct_DLLTOOL" = x; then
3594     DLLTOOL="false"
3595   else
3596     case $cross_compiling:$ac_tool_warned in
3597 yes:)
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3600 ac_tool_warned=yes ;;
3601 esac
3602     DLLTOOL=$ac_ct_DLLTOOL
3603   fi
3604 else
3605   DLLTOOL="$ac_cv_prog_DLLTOOL"
3606 fi
3607
3608   if test -n "$ac_tool_prefix"; then
3609   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3610 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
3614   $as_echo_n "(cached) " >&6
3615 else
3616   if test -n "$OBJDUMP"; then
3617   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3618 else
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3621 do
3622   IFS=$as_save_IFS
3623   test -z "$as_dir" && as_dir=.
3624     for ac_exec_ext in '' $ac_executable_extensions; do
3625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3626     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3628     break 2
3629   fi
3630 done
3631   done
3632 IFS=$as_save_IFS
3633
3634 fi
3635 fi
3636 OBJDUMP=$ac_cv_prog_OBJDUMP
3637 if test -n "$OBJDUMP"; then
3638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3639 $as_echo "$OBJDUMP" >&6; }
3640 else
3641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3643 fi
3644
3645
3646 fi
3647 if test -z "$ac_cv_prog_OBJDUMP"; then
3648   ac_ct_OBJDUMP=$OBJDUMP
3649   # Extract the first word of "objdump", so it can be a program name with args.
3650 set dummy objdump; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
3654   $as_echo_n "(cached) " >&6
3655 else
3656   if test -n "$ac_ct_OBJDUMP"; then
3657   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664     for ac_exec_ext in '' $ac_executable_extensions; do
3665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668     break 2
3669   fi
3670 done
3671   done
3672 IFS=$as_save_IFS
3673
3674 fi
3675 fi
3676 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3677 if test -n "$ac_ct_OBJDUMP"; then
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3679 $as_echo "$ac_ct_OBJDUMP" >&6; }
3680 else
3681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3683 fi
3684
3685   if test "x$ac_ct_OBJDUMP" = x; then
3686     OBJDUMP="false"
3687   else
3688     case $cross_compiling:$ac_tool_warned in
3689 yes:)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3692 ac_tool_warned=yes ;;
3693 esac
3694     OBJDUMP=$ac_ct_OBJDUMP
3695   fi
3696 else
3697   OBJDUMP="$ac_cv_prog_OBJDUMP"
3698 fi
3699
3700   ;;
3701 esac
3702
3703 test -z "$AS" && AS=as
3704
3705
3706
3707
3708
3709 test -z "$DLLTOOL" && DLLTOOL=dlltool
3710
3711
3712
3713
3714
3715 test -z "$OBJDUMP" && OBJDUMP=objdump
3716
3717
3718
3719
3720
3721
3722
3723
3724 # Do compilation tests using CXX and CXXCPP and use extension .C for test programs.
3725 # Use compilation flags: CPPFLAGS with CXXCPP, and both CPPFLAGS and CXXFLAGS with CXX.
3726 ac_ext=cpp
3727 ac_cpp='$CXXCPP $CPPFLAGS'
3728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3731
3732
3733 # checks for programs.
3734 DEPDIR="${am__leading_dot}deps"
3735
3736 ac_config_commands="$ac_config_commands depfiles"
3737
3738
3739 am_make=${MAKE-make}
3740 cat > confinc << 'END'
3741 am__doit:
3742         @echo this is the am__doit target
3743 .PHONY: am__doit
3744 END
3745 # If we don't find an include directive, just comment out the code.
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3747 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3748 am__include="#"
3749 am__quote=
3750 _am_result=none
3751 # First try GNU make style include.
3752 echo "include confinc" > confmf
3753 # Ignore all kinds of additional output from `make'.
3754 case `$am_make -s -f confmf 2> /dev/null` in #(
3755 *the\ am__doit\ target*)
3756   am__include=include
3757   am__quote=
3758   _am_result=GNU
3759   ;;
3760 esac
3761 # Now try BSD make style include.
3762 if test "$am__include" = "#"; then
3763    echo '.include "confinc"' > confmf
3764    case `$am_make -s -f confmf 2> /dev/null` in #(
3765    *the\ am__doit\ target*)
3766      am__include=.include
3767      am__quote="\""
3768      _am_result=BSD
3769      ;;
3770    esac
3771 fi
3772
3773
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3775 $as_echo "$_am_result" >&6; }
3776 rm -f confinc confmf
3777
3778 # Check whether --enable-dependency-tracking was given.
3779 if test "${enable_dependency_tracking+set}" = set; then :
3780   enableval=$enable_dependency_tracking;
3781 fi
3782
3783 if test "x$enable_dependency_tracking" != xno; then
3784   am_depcomp="$ac_aux_dir/depcomp"
3785   AMDEPBACKSLASH='\'
3786 fi
3787  if test "x$enable_dependency_tracking" != xno; then
3788   AMDEP_TRUE=
3789   AMDEP_FALSE='#'
3790 else
3791   AMDEP_TRUE='#'
3792   AMDEP_FALSE=
3793 fi
3794
3795
3796 ac_ext=cpp
3797 ac_cpp='$CXXCPP $CPPFLAGS'
3798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3801 if test -z "$CXX"; then
3802   if test -n "$CCC"; then
3803     CXX=$CCC
3804   else
3805     if test -n "$ac_tool_prefix"; then
3806   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3807   do
3808     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if test "${ac_cv_prog_CXX+set}" = set; then :
3813   $as_echo_n "(cached) " >&6
3814 else
3815   if test -n "$CXX"; then
3816   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821   IFS=$as_save_IFS
3822   test -z "$as_dir" && as_dir=.
3823     for ac_exec_ext in '' $ac_executable_extensions; do
3824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827     break 2
3828   fi
3829 done
3830   done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 CXX=$ac_cv_prog_CXX
3836 if test -n "$CXX"; then
3837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3838 $as_echo "$CXX" >&6; }
3839 else
3840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3842 fi
3843
3844
3845     test -n "$CXX" && break
3846   done
3847 fi
3848 if test -z "$CXX"; then
3849   ac_ct_CXX=$CXX
3850   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3851 do
3852   # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if test -n "$ac_ct_CXX"; then
3860   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867     for ac_exec_ext in '' $ac_executable_extensions; do
3868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869     ac_cv_prog_ac_ct_CXX="$ac_prog"
3870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871     break 2
3872   fi
3873 done
3874   done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3880 if test -n "$ac_ct_CXX"; then
3881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3882 $as_echo "$ac_ct_CXX" >&6; }
3883 else
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888
3889   test -n "$ac_ct_CXX" && break
3890 done
3891
3892   if test "x$ac_ct_CXX" = x; then
3893     CXX="g++"
3894   else
3895     case $cross_compiling:$ac_tool_warned in
3896 yes:)
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899 ac_tool_warned=yes ;;
3900 esac
3901     CXX=$ac_ct_CXX
3902   fi
3903 fi
3904
3905   fi
3906 fi
3907 # Provide some information about the compiler.
3908 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3909 set X $ac_compile
3910 ac_compiler=$2
3911 for ac_option in --version -v -V -qversion; do
3912   { { ac_try="$ac_compiler $ac_option >&5"
3913 case "(($ac_try" in
3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915   *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3920   ac_status=$?
3921   if test -s conftest.err; then
3922     sed '10a\
3923 ... rest of stderr output deleted ...
3924          10q' conftest.err >conftest.er1
3925     cat conftest.er1 >&5
3926     rm -f conftest.er1 conftest.err
3927   fi
3928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929   test $ac_status = 0; }
3930 done
3931
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h.  */
3934 #include <stdio.h>
3935 int
3936 main ()
3937 {
3938 FILE *f = fopen ("conftest.out", "w");
3939  return ferror (f) || fclose (f) != 0;
3940
3941   ;
3942   return 0;
3943 }
3944 _ACEOF
3945 ac_clean_files_save=$ac_clean_files
3946 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3947 # Try to create an executable without -o first, disregard a.out.
3948 # It will help us diagnose broken compilers, and finding out an intuition
3949 # of exeext.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3951 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3952 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3953
3954 # The possible output files:
3955 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3956
3957 ac_rmfiles=
3958 for ac_file in $ac_files
3959 do
3960   case $ac_file in
3961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3962     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3963   esac
3964 done
3965 rm -f $ac_rmfiles
3966
3967 if { { ac_try="$ac_link_default"
3968 case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974   (eval "$ac_link_default") 2>&5
3975   ac_status=$?
3976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977   test $ac_status = 0; }; then :
3978   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3979 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3980 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3981 # so that the user can short-circuit this test for compilers unknown to
3982 # Autoconf.
3983 for ac_file in $ac_files ''
3984 do
3985   test -f "$ac_file" || continue
3986   case $ac_file in
3987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3988         ;;
3989     [ab].out )
3990         # We found the default executable, but exeext='' is most
3991         # certainly right.
3992         break;;
3993     *.* )
3994         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3995         then :; else
3996            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997         fi
3998         # We set ac_cv_exeext here because the later test for it is not
3999         # safe: cross compilers may not add the suffix if given an `-o'
4000         # argument, so we may need to know it at that point already.
4001         # Even if this section looks crufty: it has the advantage of
4002         # actually working.
4003         break;;
4004     * )
4005         break;;
4006   esac
4007 done
4008 test "$ac_cv_exeext" = no && ac_cv_exeext=
4009
4010 else
4011   ac_file=''
4012 fi
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4014 $as_echo "$ac_file" >&6; }
4015 if test -z "$ac_file"; then :
4016   $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 { as_fn_set_status 77
4022 as_fn_error "C++ compiler cannot create executables
4023 See \`config.log' for more details." "$LINENO" 5; }; }
4024 fi
4025 ac_exeext=$ac_cv_exeext
4026
4027 # Check that the compiler produces executables we can run.  If not, either
4028 # the compiler is broken, or we cross compile.
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4030 $as_echo_n "checking whether the C++ compiler works... " >&6; }
4031 # If not cross compiling, check that we can run a simple program.
4032 if test "$cross_compiling" != yes; then
4033   if { ac_try='./$ac_file'
4034   { { case "(($ac_try" in
4035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036   *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040   (eval "$ac_try") 2>&5
4041   ac_status=$?
4042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043   test $ac_status = 0; }; }; then
4044     cross_compiling=no
4045   else
4046     if test "$cross_compiling" = maybe; then
4047         cross_compiling=yes
4048     else
4049         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error "cannot run C++ compiled programs.
4052 If you meant to cross compile, use \`--host'.
4053 See \`config.log' for more details." "$LINENO" 5; }
4054     fi
4055   fi
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058 $as_echo "yes" >&6; }
4059
4060 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4061 ac_clean_files=$ac_clean_files_save
4062 # Check that the compiler produces executables we can run.  If not, either
4063 # the compiler is broken, or we cross compile.
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4065 $as_echo_n "checking whether we are cross compiling... " >&6; }
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4067 $as_echo "$cross_compiling" >&6; }
4068
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4070 $as_echo_n "checking for suffix of executables... " >&6; }
4071 if { { ac_try="$ac_link"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4077 $as_echo "$ac_try_echo"; } >&5
4078   (eval "$ac_link") 2>&5
4079   ac_status=$?
4080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081   test $ac_status = 0; }; then :
4082   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4083 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4084 # work properly (i.e., refer to `conftest.exe'), while it won't with
4085 # `rm'.
4086 for ac_file in conftest.exe conftest conftest.*; do
4087   test -f "$ac_file" || continue
4088   case $ac_file in
4089     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4091           break;;
4092     * ) break;;
4093   esac
4094 done
4095 else
4096   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098 as_fn_error "cannot compute suffix of executables: cannot compile and link
4099 See \`config.log' for more details." "$LINENO" 5; }
4100 fi
4101 rm -f conftest$ac_cv_exeext
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4103 $as_echo "$ac_cv_exeext" >&6; }
4104
4105 rm -f conftest.$ac_ext
4106 EXEEXT=$ac_cv_exeext
4107 ac_exeext=$EXEEXT
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4109 $as_echo_n "checking for suffix of object files... " >&6; }
4110 if test "${ac_cv_objext+set}" = set; then :
4111   $as_echo_n "(cached) " >&6
4112 else
4113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h.  */
4115
4116 int
4117 main ()
4118 {
4119
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.o conftest.obj
4125 if { { ac_try="$ac_compile"
4126 case "(($ac_try" in
4127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128   *) ac_try_echo=$ac_try;;
4129 esac
4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 $as_echo "$ac_try_echo"; } >&5
4132   (eval "$ac_compile") 2>&5
4133   ac_status=$?
4134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135   test $ac_status = 0; }; then :
4136   for ac_file in conftest.o conftest.obj conftest.*; do
4137   test -f "$ac_file" || continue;
4138   case $ac_file in
4139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4140     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4141        break;;
4142   esac
4143 done
4144 else
4145   $as_echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4150 as_fn_error "cannot compute suffix of object files: cannot compile
4151 See \`config.log' for more details." "$LINENO" 5; }
4152 fi
4153 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4156 $as_echo "$ac_cv_objext" >&6; }
4157 OBJEXT=$ac_cv_objext
4158 ac_objext=$OBJEXT
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4160 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4161 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166
4167 int
4168 main ()
4169 {
4170 #ifndef __GNUC__
4171        choke me
4172 #endif
4173
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 if ac_fn_cxx_try_compile "$LINENO"; then :
4179   ac_compiler_gnu=yes
4180 else
4181   ac_compiler_gnu=no
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4185
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4188 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4189 if test $ac_compiler_gnu = yes; then
4190   GXX=yes
4191 else
4192   GXX=
4193 fi
4194 ac_test_CXXFLAGS=${CXXFLAGS+set}
4195 ac_save_CXXFLAGS=$CXXFLAGS
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4197 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4198 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4199   $as_echo_n "(cached) " >&6
4200 else
4201   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4202    ac_cxx_werror_flag=yes
4203    ac_cv_prog_cxx_g=no
4204    CXXFLAGS="-g"
4205    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h.  */
4207
4208 int
4209 main ()
4210 {
4211
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 if ac_fn_cxx_try_compile "$LINENO"; then :
4217   ac_cv_prog_cxx_g=yes
4218 else
4219   CXXFLAGS=""
4220       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h.  */
4222
4223 int
4224 main ()
4225 {
4226
4227   ;
4228   return 0;
4229 }
4230 _ACEOF
4231 if ac_fn_cxx_try_compile "$LINENO"; then :
4232
4233 else
4234   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4235          CXXFLAGS="-g"
4236          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238
4239 int
4240 main ()
4241 {
4242
4243   ;
4244   return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_cxx_try_compile "$LINENO"; then :
4248   ac_cv_prog_cxx_g=yes
4249 fi
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 fi
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4258 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4259 if test "$ac_test_CXXFLAGS" = set; then
4260   CXXFLAGS=$ac_save_CXXFLAGS
4261 elif test $ac_cv_prog_cxx_g = yes; then
4262   if test "$GXX" = yes; then
4263     CXXFLAGS="-g -O2"
4264   else
4265     CXXFLAGS="-g"
4266   fi
4267 else
4268   if test "$GXX" = yes; then
4269     CXXFLAGS="-O2"
4270   else
4271     CXXFLAGS=
4272   fi
4273 fi
4274 ac_ext=cpp
4275 ac_cpp='$CXXCPP $CPPFLAGS'
4276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4279
4280 depcc="$CXX"  am_compiler_list=
4281
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4283 $as_echo_n "checking dependency style of $depcc... " >&6; }
4284 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4285   $as_echo_n "(cached) " >&6
4286 else
4287   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4288   # We make a subdir and do the tests there.  Otherwise we can end up
4289   # making bogus files that we don't know about and never remove.  For
4290   # instance it was reported that on HP-UX the gcc test will end up
4291   # making a dummy file named `D' -- because `-MD' means `put the output
4292   # in D'.
4293   mkdir conftest.dir
4294   # Copy depcomp to subdir because otherwise we won't find it if we're
4295   # using a relative directory.
4296   cp "$am_depcomp" conftest.dir
4297   cd conftest.dir
4298   # We will build objects and dependencies in a subdirectory because
4299   # it helps to detect inapplicable dependency modes.  For instance
4300   # both Tru64's cc and ICC support -MD to output dependencies as a
4301   # side effect of compilation, but ICC will put the dependencies in
4302   # the current directory while Tru64 will put them in the object
4303   # directory.
4304   mkdir sub
4305
4306   am_cv_CXX_dependencies_compiler_type=none
4307   if test "$am_compiler_list" = ""; then
4308      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4309   fi
4310   am__universal=false
4311   case " $depcc " in #(
4312      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4313      esac
4314
4315   for depmode in $am_compiler_list; do
4316     # Setup a source with many dependencies, because some compilers
4317     # like to wrap large dependency lists on column 80 (with \), and
4318     # we should not choose a depcomp mode which is confused by this.
4319     #
4320     # We need to recreate these files for each test, as the compiler may
4321     # overwrite some of them when testing with obscure command lines.
4322     # This happens at least with the AIX C compiler.
4323     : > sub/conftest.c
4324     for i in 1 2 3 4 5 6; do
4325       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4326       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4327       # Solaris 8's {/usr,}/bin/sh.
4328       touch sub/conftst$i.h
4329     done
4330     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4331
4332     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4333     # mode.  It turns out that the SunPro C++ compiler does not properly
4334     # handle `-M -o', and we need to detect this.  Also, some Intel
4335     # versions had trouble with output in subdirs
4336     am__obj=sub/conftest.${OBJEXT-o}
4337     am__minus_obj="-o $am__obj"
4338     case $depmode in
4339     gcc)
4340       # This depmode causes a compiler race in universal mode.
4341       test "$am__universal" = false || continue
4342       ;;
4343     nosideeffect)
4344       # after this tag, mechanisms are not by side-effect, so they'll
4345       # only be used when explicitly requested
4346       if test "x$enable_dependency_tracking" = xyes; then
4347         continue
4348       else
4349         break
4350       fi
4351       ;;
4352     msvisualcpp | msvcmsys)
4353       # This compiler won't grok `-c -o', but also, the minuso test has
4354       # not run yet.  These depmodes are late enough in the game, and
4355       # so weak that their functioning should not be impacted.
4356       am__obj=conftest.${OBJEXT-o}
4357       am__minus_obj=
4358       ;;
4359     none) break ;;
4360     esac
4361     if depmode=$depmode \
4362        source=sub/conftest.c object=$am__obj \
4363        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4364        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4365          >/dev/null 2>conftest.err &&
4366        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4367        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4368        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4369        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4370       # icc doesn't choke on unknown options, it will just issue warnings
4371       # or remarks (even with -Werror).  So we grep stderr for any message
4372       # that says an option was ignored or not supported.
4373       # When given -MP, icc 7.0 and 7.1 complain thusly:
4374       #   icc: Command line warning: ignoring option '-M'; no argument required
4375       # The diagnosis changed in icc 8.0:
4376       #   icc: Command line remark: option '-MP' not supported
4377       if (grep 'ignoring option' conftest.err ||
4378           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4379         am_cv_CXX_dependencies_compiler_type=$depmode
4380         break
4381       fi
4382     fi
4383   done
4384
4385   cd ..
4386   rm -rf conftest.dir
4387 else
4388   am_cv_CXX_dependencies_compiler_type=none
4389 fi
4390
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4393 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4394 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4395
4396  if
4397   test "x$enable_dependency_tracking" != xno \
4398   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4399   am__fastdepCXX_TRUE=
4400   am__fastdepCXX_FALSE='#'
4401 else
4402   am__fastdepCXX_TRUE='#'
4403   am__fastdepCXX_FALSE=
4404 fi
4405
4406
4407 ac_ext=cpp
4408 ac_cpp='$CXXCPP $CPPFLAGS'
4409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4413 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4414 if test -z "$CXXCPP"; then
4415   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418       # Double quotes because CXXCPP needs to be expanded
4419     for CXXCPP in "$CXX -E" "/lib/cpp"
4420     do
4421       ac_preproc_ok=false
4422 for ac_cxx_preproc_warn_flag in '' yes
4423 do
4424   # Use a header file that comes with gcc, so configuring glibc
4425   # with a fresh cross-compiler works.
4426   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4427   # <limits.h> exists even on freestanding compilers.
4428   # On the NeXT, cc -E runs the code through the compiler's parser,
4429   # not just through cpp. "Syntax error" is here to catch this case.
4430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432 #ifdef __STDC__
4433 # include <limits.h>
4434 #else
4435 # include <assert.h>
4436 #endif
4437                      Syntax error
4438 _ACEOF
4439 if ac_fn_cxx_try_cpp "$LINENO"; then :
4440
4441 else
4442   # Broken: fails on valid input.
4443 continue
4444 fi
4445 rm -f conftest.err conftest.$ac_ext
4446
4447   # OK, works on sane cases.  Now check whether nonexistent headers
4448   # can be detected and how.
4449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h.  */
4451 #include <ac_nonexistent.h>
4452 _ACEOF
4453 if ac_fn_cxx_try_cpp "$LINENO"; then :
4454   # Broken: success on invalid input.
4455 continue
4456 else
4457   # Passes both tests.
4458 ac_preproc_ok=:
4459 break
4460 fi
4461 rm -f conftest.err conftest.$ac_ext
4462
4463 done
4464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4465 rm -f conftest.err conftest.$ac_ext
4466 if $ac_preproc_ok; then :
4467   break
4468 fi
4469
4470     done
4471     ac_cv_prog_CXXCPP=$CXXCPP
4472
4473 fi
4474   CXXCPP=$ac_cv_prog_CXXCPP
4475 else
4476   ac_cv_prog_CXXCPP=$CXXCPP
4477 fi
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4479 $as_echo "$CXXCPP" >&6; }
4480 ac_preproc_ok=false
4481 for ac_cxx_preproc_warn_flag in '' yes
4482 do
4483   # Use a header file that comes with gcc, so configuring glibc
4484   # with a fresh cross-compiler works.
4485   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4486   # <limits.h> exists even on freestanding compilers.
4487   # On the NeXT, cc -E runs the code through the compiler's parser,
4488   # not just through cpp. "Syntax error" is here to catch this case.
4489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h.  */
4491 #ifdef __STDC__
4492 # include <limits.h>
4493 #else
4494 # include <assert.h>
4495 #endif
4496                      Syntax error
4497 _ACEOF
4498 if ac_fn_cxx_try_cpp "$LINENO"; then :
4499
4500 else
4501   # Broken: fails on valid input.
4502 continue
4503 fi
4504 rm -f conftest.err conftest.$ac_ext
4505
4506   # OK, works on sane cases.  Now check whether nonexistent headers
4507   # can be detected and how.
4508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510 #include <ac_nonexistent.h>
4511 _ACEOF
4512 if ac_fn_cxx_try_cpp "$LINENO"; then :
4513   # Broken: success on invalid input.
4514 continue
4515 else
4516   # Passes both tests.
4517 ac_preproc_ok=:
4518 break
4519 fi
4520 rm -f conftest.err conftest.$ac_ext
4521
4522 done
4523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4524 rm -f conftest.err conftest.$ac_ext
4525 if $ac_preproc_ok; then :
4526
4527 else
4528   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4530 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4531 See \`config.log' for more details." "$LINENO" 5; }
4532 fi
4533
4534 ac_ext=cpp
4535 ac_cpp='$CXXCPP $CPPFLAGS'
4536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4539
4540 ac_ext=cpp
4541 ac_cpp='$CXXCPP $CPPFLAGS'
4542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4545 if test -z "$CXX"; then
4546   if test -n "$CCC"; then
4547     CXX=$CCC
4548   else
4549     if test -n "$ac_tool_prefix"; then
4550   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4551   do
4552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_CXX+set}" = set; then :
4557   $as_echo_n "(cached) " >&6
4558 else
4559   if test -n "$CXX"; then
4560   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567     for ac_exec_ext in '' $ac_executable_extensions; do
4568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574   done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 CXX=$ac_cv_prog_CXX
4580 if test -n "$CXX"; then
4581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4582 $as_echo "$CXX" >&6; }
4583 else
4584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 fi
4587
4588
4589     test -n "$CXX" && break
4590   done
4591 fi
4592 if test -z "$CXX"; then
4593   ac_ct_CXX=$CXX
4594   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4595 do
4596   # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy $ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   if test -n "$ac_ct_CXX"; then
4604   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611     for ac_exec_ext in '' $ac_executable_extensions; do
4612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613     ac_cv_prog_ac_ct_CXX="$ac_prog"
4614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615     break 2
4616   fi
4617 done
4618   done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4624 if test -n "$ac_ct_CXX"; then
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4626 $as_echo "$ac_ct_CXX" >&6; }
4627 else
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633   test -n "$ac_ct_CXX" && break
4634 done
4635
4636   if test "x$ac_ct_CXX" = x; then
4637     CXX="g++"
4638   else
4639     case $cross_compiling:$ac_tool_warned in
4640 yes:)
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4643 ac_tool_warned=yes ;;
4644 esac
4645     CXX=$ac_ct_CXX
4646   fi
4647 fi
4648
4649   fi
4650 fi
4651 # Provide some information about the compiler.
4652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4653 set X $ac_compile
4654 ac_compiler=$2
4655 for ac_option in --version -v -V -qversion; do
4656   { { ac_try="$ac_compiler $ac_option >&5"
4657 case "(($ac_try" in
4658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659   *) ac_try_echo=$ac_try;;
4660 esac
4661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4662 $as_echo "$ac_try_echo"; } >&5
4663   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4664   ac_status=$?
4665   if test -s conftest.err; then
4666     sed '10a\
4667 ... rest of stderr output deleted ...
4668          10q' conftest.err >conftest.er1
4669     cat conftest.er1 >&5
4670     rm -f conftest.er1 conftest.err
4671   fi
4672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673   test $ac_status = 0; }
4674 done
4675
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4677 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4678 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4679   $as_echo_n "(cached) " >&6
4680 else
4681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h.  */
4683
4684 int
4685 main ()
4686 {
4687 #ifndef __GNUC__
4688        choke me
4689 #endif
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_cxx_try_compile "$LINENO"; then :
4696   ac_compiler_gnu=yes
4697 else
4698   ac_compiler_gnu=no
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4702
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4705 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4706 if test $ac_compiler_gnu = yes; then
4707   GXX=yes
4708 else
4709   GXX=
4710 fi
4711 ac_test_CXXFLAGS=${CXXFLAGS+set}
4712 ac_save_CXXFLAGS=$CXXFLAGS
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4714 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4715 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4719    ac_cxx_werror_flag=yes
4720    ac_cv_prog_cxx_g=no
4721    CXXFLAGS="-g"
4722    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724
4725 int
4726 main ()
4727 {
4728
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_cxx_try_compile "$LINENO"; then :
4734   ac_cv_prog_cxx_g=yes
4735 else
4736   CXXFLAGS=""
4737       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h.  */
4739
4740 int
4741 main ()
4742 {
4743
4744   ;
4745   return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_cxx_try_compile "$LINENO"; then :
4749
4750 else
4751   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4752          CXXFLAGS="-g"
4753          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h.  */
4755
4756 int
4757 main ()
4758 {
4759
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_cxx_try_compile "$LINENO"; then :
4765   ac_cv_prog_cxx_g=yes
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 fi
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4775 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4776 if test "$ac_test_CXXFLAGS" = set; then
4777   CXXFLAGS=$ac_save_CXXFLAGS
4778 elif test $ac_cv_prog_cxx_g = yes; then
4779   if test "$GXX" = yes; then
4780     CXXFLAGS="-g -O2"
4781   else
4782     CXXFLAGS="-g"
4783   fi
4784 else
4785   if test "$GXX" = yes; then
4786     CXXFLAGS="-O2"
4787   else
4788     CXXFLAGS=
4789   fi
4790 fi
4791 ac_ext=cpp
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796
4797 depcc="$CXX"  am_compiler_list=
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4800 $as_echo_n "checking dependency style of $depcc... " >&6; }
4801 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4805   # We make a subdir and do the tests there.  Otherwise we can end up
4806   # making bogus files that we don't know about and never remove.  For
4807   # instance it was reported that on HP-UX the gcc test will end up
4808   # making a dummy file named `D' -- because `-MD' means `put the output
4809   # in D'.
4810   mkdir conftest.dir
4811   # Copy depcomp to subdir because otherwise we won't find it if we're
4812   # using a relative directory.
4813   cp "$am_depcomp" conftest.dir
4814   cd conftest.dir
4815   # We will build objects and dependencies in a subdirectory because
4816   # it helps to detect inapplicable dependency modes.  For instance
4817   # both Tru64's cc and ICC support -MD to output dependencies as a
4818   # side effect of compilation, but ICC will put the dependencies in
4819   # the current directory while Tru64 will put them in the object
4820   # directory.
4821   mkdir sub
4822
4823   am_cv_CXX_dependencies_compiler_type=none
4824   if test "$am_compiler_list" = ""; then
4825      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4826   fi
4827   am__universal=false
4828   case " $depcc " in #(
4829      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4830      esac
4831
4832   for depmode in $am_compiler_list; do
4833     # Setup a source with many dependencies, because some compilers
4834     # like to wrap large dependency lists on column 80 (with \), and
4835     # we should not choose a depcomp mode which is confused by this.
4836     #
4837     # We need to recreate these files for each test, as the compiler may
4838     # overwrite some of them when testing with obscure command lines.
4839     # This happens at least with the AIX C compiler.
4840     : > sub/conftest.c
4841     for i in 1 2 3 4 5 6; do
4842       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4843       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4844       # Solaris 8's {/usr,}/bin/sh.
4845       touch sub/conftst$i.h
4846     done
4847     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4848
4849     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4850     # mode.  It turns out that the SunPro C++ compiler does not properly
4851     # handle `-M -o', and we need to detect this.  Also, some Intel
4852     # versions had trouble with output in subdirs
4853     am__obj=sub/conftest.${OBJEXT-o}
4854     am__minus_obj="-o $am__obj"
4855     case $depmode in
4856     gcc)
4857       # This depmode causes a compiler race in universal mode.
4858       test "$am__universal" = false || continue
4859       ;;
4860     nosideeffect)
4861       # after this tag, mechanisms are not by side-effect, so they'll
4862       # only be used when explicitly requested
4863       if test "x$enable_dependency_tracking" = xyes; then
4864         continue
4865       else
4866         break
4867       fi
4868       ;;
4869     msvisualcpp | msvcmsys)
4870       # This compiler won't grok `-c -o', but also, the minuso test has
4871       # not run yet.  These depmodes are late enough in the game, and
4872       # so weak that their functioning should not be impacted.
4873       am__obj=conftest.${OBJEXT-o}
4874       am__minus_obj=
4875       ;;
4876     none) break ;;
4877     esac
4878     if depmode=$depmode \
4879        source=sub/conftest.c object=$am__obj \
4880        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4881        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4882          >/dev/null 2>conftest.err &&
4883        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4884        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4885        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4886        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4887       # icc doesn't choke on unknown options, it will just issue warnings
4888       # or remarks (even with -Werror).  So we grep stderr for any message
4889       # that says an option was ignored or not supported.
4890       # When given -MP, icc 7.0 and 7.1 complain thusly:
4891       #   icc: Command line warning: ignoring option '-M'; no argument required
4892       # The diagnosis changed in icc 8.0:
4893       #   icc: Command line remark: option '-MP' not supported
4894       if (grep 'ignoring option' conftest.err ||
4895           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4896         am_cv_CXX_dependencies_compiler_type=$depmode
4897         break
4898       fi
4899     fi
4900   done
4901
4902   cd ..
4903   rm -rf conftest.dir
4904 else
4905   am_cv_CXX_dependencies_compiler_type=none
4906 fi
4907
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4910 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4911 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4912
4913  if
4914   test "x$enable_dependency_tracking" != xno \
4915   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4916   am__fastdepCXX_TRUE=
4917   am__fastdepCXX_FALSE='#'
4918 else
4919   am__fastdepCXX_TRUE='#'
4920   am__fastdepCXX_FALSE=
4921 fi
4922
4923
4924 case `pwd` in
4925   *\ * | *\     *)
4926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4927 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4928 esac
4929
4930
4931
4932 macro_version='2.2.6'
4933 macro_revision='1.3012'
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947 ltmain="$ac_aux_dir/ltmain.sh"
4948
4949 ac_ext=c
4950 ac_cpp='$CPP $CPPFLAGS'
4951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954 if test -n "$ac_tool_prefix"; then
4955   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_prog_CC+set}" = set; then :
4960   $as_echo_n "(cached) " >&6
4961 else
4962   if test -n "$CC"; then
4963   ac_cv_prog_CC="$CC" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968   IFS=$as_save_IFS
4969   test -z "$as_dir" && as_dir=.
4970     for ac_exec_ext in '' $ac_executable_extensions; do
4971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974     break 2
4975   fi
4976 done
4977   done
4978 IFS=$as_save_IFS
4979
4980 fi
4981 fi
4982 CC=$ac_cv_prog_CC
4983 if test -n "$CC"; then
4984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4985 $as_echo "$CC" >&6; }
4986 else
4987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4989 fi
4990
4991
4992 fi
4993 if test -z "$ac_cv_prog_CC"; then
4994   ac_ct_CC=$CC
4995   # Extract the first word of "gcc", so it can be a program name with args.
4996 set dummy gcc; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5000   $as_echo_n "(cached) " >&6
5001 else
5002   if test -n "$ac_ct_CC"; then
5003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008   IFS=$as_save_IFS
5009   test -z "$as_dir" && as_dir=.
5010     for ac_exec_ext in '' $ac_executable_extensions; do
5011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012     ac_cv_prog_ac_ct_CC="gcc"
5013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014     break 2
5015   fi
5016 done
5017   done
5018 IFS=$as_save_IFS
5019
5020 fi
5021 fi
5022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5023 if test -n "$ac_ct_CC"; then
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5025 $as_echo "$ac_ct_CC" >&6; }
5026 else
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 fi
5030
5031   if test "x$ac_ct_CC" = x; then
5032     CC=""
5033   else
5034     case $cross_compiling:$ac_tool_warned in
5035 yes:)
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5038 ac_tool_warned=yes ;;
5039 esac
5040     CC=$ac_ct_CC
5041   fi
5042 else
5043   CC="$ac_cv_prog_CC"
5044 fi
5045
5046 if test -z "$CC"; then
5047           if test -n "$ac_tool_prefix"; then
5048     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5049 set dummy ${ac_tool_prefix}cc; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if test "${ac_cv_prog_CC+set}" = set; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   if test -n "$CC"; then
5056   ac_cv_prog_CC="$CC" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061   IFS=$as_save_IFS
5062   test -z "$as_dir" && as_dir=.
5063     for ac_exec_ext in '' $ac_executable_extensions; do
5064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065     ac_cv_prog_CC="${ac_tool_prefix}cc"
5066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067     break 2
5068   fi
5069 done
5070   done
5071 IFS=$as_save_IFS
5072
5073 fi
5074 fi
5075 CC=$ac_cv_prog_CC
5076 if test -n "$CC"; then
5077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5078 $as_echo "$CC" >&6; }
5079 else
5080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5082 fi
5083
5084
5085   fi
5086 fi
5087 if test -z "$CC"; then
5088   # Extract the first word of "cc", so it can be a program name with args.
5089 set dummy cc; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_prog_CC+set}" = set; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095   if test -n "$CC"; then
5096   ac_cv_prog_CC="$CC" # Let the user override the test.
5097 else
5098   ac_prog_rejected=no
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104     for ac_exec_ext in '' $ac_executable_extensions; do
5105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5107        ac_prog_rejected=yes
5108        continue
5109      fi
5110     ac_cv_prog_CC="cc"
5111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115   done
5116 IFS=$as_save_IFS
5117
5118 if test $ac_prog_rejected = yes; then
5119   # We found a bogon in the path, so make sure we never use it.
5120   set dummy $ac_cv_prog_CC
5121   shift
5122   if test $# != 0; then
5123     # We chose a different compiler from the bogus one.
5124     # However, it has the same basename, so the bogon will be chosen
5125     # first if we set CC to just the basename; use the full file name.
5126     shift
5127     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5128   fi
5129 fi
5130 fi
5131 fi
5132 CC=$ac_cv_prog_CC
5133 if test -n "$CC"; then
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5135 $as_echo "$CC" >&6; }
5136 else
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141
5142 fi
5143 if test -z "$CC"; then
5144   if test -n "$ac_tool_prefix"; then
5145   for ac_prog in cl.exe
5146   do
5147     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if test "${ac_cv_prog_CC+set}" = set; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   if test -n "$CC"; then
5155   ac_cv_prog_CC="$CC" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160   IFS=$as_save_IFS
5161   test -z "$as_dir" && as_dir=.
5162     for ac_exec_ext in '' $ac_executable_extensions; do
5163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166     break 2
5167   fi
5168 done
5169   done
5170 IFS=$as_save_IFS
5171
5172 fi
5173 fi
5174 CC=$ac_cv_prog_CC
5175 if test -n "$CC"; then
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5177 $as_echo "$CC" >&6; }
5178 else
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182
5183
5184     test -n "$CC" && break
5185   done
5186 fi
5187 if test -z "$CC"; then
5188   ac_ct_CC=$CC
5189   for ac_prog in cl.exe
5190 do
5191   # Extract the first word of "$ac_prog", so it can be a program name with args.
5192 set dummy $ac_prog; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198   if test -n "$ac_ct_CC"; then
5199   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204   IFS=$as_save_IFS
5205   test -z "$as_dir" && as_dir=.
5206     for ac_exec_ext in '' $ac_executable_extensions; do
5207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208     ac_cv_prog_ac_ct_CC="$ac_prog"
5209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210     break 2
5211   fi
5212 done
5213   done
5214 IFS=$as_save_IFS
5215
5216 fi
5217 fi
5218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5219 if test -n "$ac_ct_CC"; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5221 $as_echo "$ac_ct_CC" >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227
5228   test -n "$ac_ct_CC" && break
5229 done
5230
5231   if test "x$ac_ct_CC" = x; then
5232     CC=""
5233   else
5234     case $cross_compiling:$ac_tool_warned in
5235 yes:)
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238 ac_tool_warned=yes ;;
5239 esac
5240     CC=$ac_ct_CC
5241   fi
5242 fi
5243
5244 fi
5245
5246
5247 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5249 as_fn_error "no acceptable C compiler found in \$PATH
5250 See \`config.log' for more details." "$LINENO" 5; }
5251
5252 # Provide some information about the compiler.
5253 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5254 set X $ac_compile
5255 ac_compiler=$2
5256 for ac_option in --version -v -V -qversion; do
5257   { { ac_try="$ac_compiler $ac_option >&5"
5258 case "(($ac_try" in
5259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260   *) ac_try_echo=$ac_try;;
5261 esac
5262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5263 $as_echo "$ac_try_echo"; } >&5
5264   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5265   ac_status=$?
5266   if test -s conftest.err; then
5267     sed '10a\
5268 ... rest of stderr output deleted ...
5269          10q' conftest.err >conftest.er1
5270     cat conftest.er1 >&5
5271     rm -f conftest.er1 conftest.err
5272   fi
5273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5274   test $ac_status = 0; }
5275 done
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5278 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5279 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h.  */
5284
5285 int
5286 main ()
5287 {
5288 #ifndef __GNUC__
5289        choke me
5290 #endif
5291
5292   ;
5293   return 0;
5294 }
5295 _ACEOF
5296 if ac_fn_c_try_compile "$LINENO"; then :
5297   ac_compiler_gnu=yes
5298 else
5299   ac_compiler_gnu=no
5300 fi
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5303
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5306 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5307 if test $ac_compiler_gnu = yes; then
5308   GCC=yes
5309 else
5310   GCC=
5311 fi
5312 ac_test_CFLAGS=${CFLAGS+set}
5313 ac_save_CFLAGS=$CFLAGS
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5315 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5316 if test "${ac_cv_prog_cc_g+set}" = set; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   ac_save_c_werror_flag=$ac_c_werror_flag
5320    ac_c_werror_flag=yes
5321    ac_cv_prog_cc_g=no
5322    CFLAGS="-g"
5323    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h.  */
5325
5326 int
5327 main ()
5328 {
5329
5330   ;
5331   return 0;
5332 }
5333 _ACEOF
5334 if ac_fn_c_try_compile "$LINENO"; then :
5335   ac_cv_prog_cc_g=yes
5336 else
5337   CFLAGS=""
5338       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h.  */
5340
5341 int
5342 main ()
5343 {
5344
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350
5351 else
5352   ac_c_werror_flag=$ac_save_c_werror_flag
5353          CFLAGS="-g"
5354          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h.  */
5356
5357 int
5358 main ()
5359 {
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366   ac_cv_prog_cc_g=yes
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373    ac_c_werror_flag=$ac_save_c_werror_flag
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5376 $as_echo "$ac_cv_prog_cc_g" >&6; }
5377 if test "$ac_test_CFLAGS" = set; then
5378   CFLAGS=$ac_save_CFLAGS
5379 elif test $ac_cv_prog_cc_g = yes; then
5380   if test "$GCC" = yes; then
5381     CFLAGS="-g -O2"
5382   else
5383     CFLAGS="-g"
5384   fi
5385 else
5386   if test "$GCC" = yes; then
5387     CFLAGS="-O2"
5388   else
5389     CFLAGS=
5390   fi
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5393 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5394 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   ac_cv_prog_cc_c89=no
5398 ac_save_CC=$CC
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h.  */
5401 #include <stdarg.h>
5402 #include <stdio.h>
5403 #include <sys/types.h>
5404 #include <sys/stat.h>
5405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5406 struct buf { int x; };
5407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5408 static char *e (p, i)
5409      char **p;
5410      int i;
5411 {
5412   return p[i];
5413 }
5414 static char *f (char * (*g) (char **, int), char **p, ...)
5415 {
5416   char *s;
5417   va_list v;
5418   va_start (v,p);
5419   s = g (p, va_arg (v,int));
5420   va_end (v);
5421   return s;
5422 }
5423
5424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5425    function prototypes and stuff, but not '\xHH' hex character constants.
5426    These don't provoke an error unfortunately, instead are silently treated
5427    as 'x'.  The following induces an error, until -std is added to get
5428    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5429    array size at least.  It's necessary to write '\x00'==0 to get something
5430    that's true only with -std.  */
5431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5432
5433 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5434    inside strings and character constants.  */
5435 #define FOO(x) 'x'
5436 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5437
5438 int test (int i, double x);
5439 struct s1 {int (*f) (int a);};
5440 struct s2 {int (*f) (double a);};
5441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5442 int argc;
5443 char **argv;
5444 int
5445 main ()
5446 {
5447 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5453         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5454 do
5455   CC="$ac_save_CC $ac_arg"
5456   if ac_fn_c_try_compile "$LINENO"; then :
5457   ac_cv_prog_cc_c89=$ac_arg
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext
5460   test "x$ac_cv_prog_cc_c89" != "xno" && break
5461 done
5462 rm -f conftest.$ac_ext
5463 CC=$ac_save_CC
5464
5465 fi
5466 # AC_CACHE_VAL
5467 case "x$ac_cv_prog_cc_c89" in
5468   x)
5469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5470 $as_echo "none needed" >&6; } ;;
5471   xno)
5472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5473 $as_echo "unsupported" >&6; } ;;
5474   *)
5475     CC="$CC $ac_cv_prog_cc_c89"
5476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5477 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5478 esac
5479 if test "x$ac_cv_prog_cc_c89" != xno; then :
5480
5481 fi
5482
5483 ac_ext=cpp
5484 ac_cpp='$CXXCPP $CPPFLAGS'
5485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5488
5489 depcc="$CC"   am_compiler_list=
5490
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5492 $as_echo_n "checking dependency style of $depcc... " >&6; }
5493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5494   $as_echo_n "(cached) " >&6
5495 else
5496   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5497   # We make a subdir and do the tests there.  Otherwise we can end up
5498   # making bogus files that we don't know about and never remove.  For
5499   # instance it was reported that on HP-UX the gcc test will end up
5500   # making a dummy file named `D' -- because `-MD' means `put the output
5501   # in D'.
5502   mkdir conftest.dir
5503   # Copy depcomp to subdir because otherwise we won't find it if we're
5504   # using a relative directory.
5505   cp "$am_depcomp" conftest.dir
5506   cd conftest.dir
5507   # We will build objects and dependencies in a subdirectory because
5508   # it helps to detect inapplicable dependency modes.  For instance
5509   # both Tru64's cc and ICC support -MD to output dependencies as a
5510   # side effect of compilation, but ICC will put the dependencies in
5511   # the current directory while Tru64 will put them in the object
5512   # directory.
5513   mkdir sub
5514
5515   am_cv_CC_dependencies_compiler_type=none
5516   if test "$am_compiler_list" = ""; then
5517      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5518   fi
5519   am__universal=false
5520   case " $depcc " in #(
5521      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5522      esac
5523
5524   for depmode in $am_compiler_list; do
5525     # Setup a source with many dependencies, because some compilers
5526     # like to wrap large dependency lists on column 80 (with \), and
5527     # we should not choose a depcomp mode which is confused by this.
5528     #
5529     # We need to recreate these files for each test, as the compiler may
5530     # overwrite some of them when testing with obscure command lines.
5531     # This happens at least with the AIX C compiler.
5532     : > sub/conftest.c
5533     for i in 1 2 3 4 5 6; do
5534       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5535       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5536       # Solaris 8's {/usr,}/bin/sh.
5537       touch sub/conftst$i.h
5538     done
5539     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5540
5541     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5542     # mode.  It turns out that the SunPro C++ compiler does not properly
5543     # handle `-M -o', and we need to detect this.  Also, some Intel
5544     # versions had trouble with output in subdirs
5545     am__obj=sub/conftest.${OBJEXT-o}
5546     am__minus_obj="-o $am__obj"
5547     case $depmode in
5548     gcc)
5549       # This depmode causes a compiler race in universal mode.
5550       test "$am__universal" = false || continue
5551       ;;
5552     nosideeffect)
5553       # after this tag, mechanisms are not by side-effect, so they'll
5554       # only be used when explicitly requested
5555       if test "x$enable_dependency_tracking" = xyes; then
5556         continue
5557       else
5558         break
5559       fi
5560       ;;
5561     msvisualcpp | msvcmsys)
5562       # This compiler won't grok `-c -o', but also, the minuso test has
5563       # not run yet.  These depmodes are late enough in the game, and
5564       # so weak that their functioning should not be impacted.
5565       am__obj=conftest.${OBJEXT-o}
5566       am__minus_obj=
5567       ;;
5568     none) break ;;
5569     esac
5570     if depmode=$depmode \
5571        source=sub/conftest.c object=$am__obj \
5572        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5573        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5574          >/dev/null 2>conftest.err &&
5575        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5576        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5577        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5578        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5579       # icc doesn't choke on unknown options, it will just issue warnings
5580       # or remarks (even with -Werror).  So we grep stderr for any message
5581       # that says an option was ignored or not supported.
5582       # When given -MP, icc 7.0 and 7.1 complain thusly:
5583       #   icc: Command line warning: ignoring option '-M'; no argument required
5584       # The diagnosis changed in icc 8.0:
5585       #   icc: Command line remark: option '-MP' not supported
5586       if (grep 'ignoring option' conftest.err ||
5587           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5588         am_cv_CC_dependencies_compiler_type=$depmode
5589         break
5590       fi
5591     fi
5592   done
5593
5594   cd ..
5595   rm -rf conftest.dir
5596 else
5597   am_cv_CC_dependencies_compiler_type=none
5598 fi
5599
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5602 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5603 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5604
5605  if
5606   test "x$enable_dependency_tracking" != xno \
5607   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5608   am__fastdepCC_TRUE=
5609   am__fastdepCC_FALSE='#'
5610 else
5611   am__fastdepCC_TRUE='#'
5612   am__fastdepCC_FALSE=
5613 fi
5614
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5617 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5618 if test "${ac_cv_path_SED+set}" = set; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5622      for ac_i in 1 2 3 4 5 6 7; do
5623        ac_script="$ac_script$as_nl$ac_script"
5624      done
5625      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5626      { ac_script=; unset ac_script;}
5627      if test -z "$SED"; then
5628   ac_path_SED_found=false
5629   # Loop through the user's path and test for each of PROGNAME-LIST
5630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635     for ac_prog in sed gsed; do
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5638       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5639 # Check for GNU ac_path_SED and select it if it is found.
5640   # Check for GNU $ac_path_SED
5641 case `"$ac_path_SED" --version 2>&1` in
5642 *GNU*)
5643   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5644 *)
5645   ac_count=0
5646   $as_echo_n 0123456789 >"conftest.in"
5647   while :
5648   do
5649     cat "conftest.in" "conftest.in" >"conftest.tmp"
5650     mv "conftest.tmp" "conftest.in"
5651     cp "conftest.in" "conftest.nl"
5652     $as_echo '' >> "conftest.nl"
5653     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655     as_fn_arith $ac_count + 1 && ac_count=$as_val
5656     if test $ac_count -gt ${ac_path_SED_max-0}; then
5657       # Best one so far, save it but keep looking for a better one
5658       ac_cv_path_SED="$ac_path_SED"
5659       ac_path_SED_max=$ac_count
5660     fi
5661     # 10*(2^10) chars as input seems more than enough
5662     test $ac_count -gt 10 && break
5663   done
5664   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665 esac
5666
5667       $ac_path_SED_found && break 3
5668     done
5669   done
5670   done
5671 IFS=$as_save_IFS
5672   if test -z "$ac_cv_path_SED"; then
5673     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5674   fi
5675 else
5676   ac_cv_path_SED=$SED
5677 fi
5678
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5681 $as_echo "$ac_cv_path_SED" >&6; }
5682  SED="$ac_cv_path_SED"
5683   rm -f conftest.sed
5684
5685 test -z "$SED" && SED=sed
5686 Xsed="$SED -e 1s/^X//"
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5699 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5700 if test "${ac_cv_path_GREP+set}" = set; then :
5701   $as_echo_n "(cached) " >&6
5702 else
5703   if test -z "$GREP"; then
5704   ac_path_GREP_found=false
5705   # Loop through the user's path and test for each of PROGNAME-LIST
5706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711     for ac_prog in grep ggrep; do
5712     for ac_exec_ext in '' $ac_executable_extensions; do
5713       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5714       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5715 # Check for GNU ac_path_GREP and select it if it is found.
5716   # Check for GNU $ac_path_GREP
5717 case `"$ac_path_GREP" --version 2>&1` in
5718 *GNU*)
5719   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5720 *)
5721   ac_count=0
5722   $as_echo_n 0123456789 >"conftest.in"
5723   while :
5724   do
5725     cat "conftest.in" "conftest.in" >"conftest.tmp"
5726     mv "conftest.tmp" "conftest.in"
5727     cp "conftest.in" "conftest.nl"
5728     $as_echo 'GREP' >> "conftest.nl"
5729     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5730     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5731     as_fn_arith $ac_count + 1 && ac_count=$as_val
5732     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5733       # Best one so far, save it but keep looking for a better one
5734       ac_cv_path_GREP="$ac_path_GREP"
5735       ac_path_GREP_max=$ac_count
5736     fi
5737     # 10*(2^10) chars as input seems more than enough
5738     test $ac_count -gt 10 && break
5739   done
5740   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5741 esac
5742
5743       $ac_path_GREP_found && break 3
5744     done
5745   done
5746   done
5747 IFS=$as_save_IFS
5748   if test -z "$ac_cv_path_GREP"; then
5749     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5750   fi
5751 else
5752   ac_cv_path_GREP=$GREP
5753 fi
5754
5755 fi
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5757 $as_echo "$ac_cv_path_GREP" >&6; }
5758  GREP="$ac_cv_path_GREP"
5759
5760
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5762 $as_echo_n "checking for egrep... " >&6; }
5763 if test "${ac_cv_path_EGREP+set}" = set; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5767    then ac_cv_path_EGREP="$GREP -E"
5768    else
5769      if test -z "$EGREP"; then
5770   ac_path_EGREP_found=false
5771   # Loop through the user's path and test for each of PROGNAME-LIST
5772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777     for ac_prog in egrep; do
5778     for ac_exec_ext in '' $ac_executable_extensions; do
5779       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5780       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5781 # Check for GNU ac_path_EGREP and select it if it is found.
5782   # Check for GNU $ac_path_EGREP
5783 case `"$ac_path_EGREP" --version 2>&1` in
5784 *GNU*)
5785   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5786 *)
5787   ac_count=0
5788   $as_echo_n 0123456789 >"conftest.in"
5789   while :
5790   do
5791     cat "conftest.in" "conftest.in" >"conftest.tmp"
5792     mv "conftest.tmp" "conftest.in"
5793     cp "conftest.in" "conftest.nl"
5794     $as_echo 'EGREP' >> "conftest.nl"
5795     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5796     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5797     as_fn_arith $ac_count + 1 && ac_count=$as_val
5798     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5799       # Best one so far, save it but keep looking for a better one
5800       ac_cv_path_EGREP="$ac_path_EGREP"
5801       ac_path_EGREP_max=$ac_count
5802     fi
5803     # 10*(2^10) chars as input seems more than enough
5804     test $ac_count -gt 10 && break
5805   done
5806   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5807 esac
5808
5809       $ac_path_EGREP_found && break 3
5810     done
5811   done
5812   done
5813 IFS=$as_save_IFS
5814   if test -z "$ac_cv_path_EGREP"; then
5815     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5816   fi
5817 else
5818   ac_cv_path_EGREP=$EGREP
5819 fi
5820
5821    fi
5822 fi
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5824 $as_echo "$ac_cv_path_EGREP" >&6; }
5825  EGREP="$ac_cv_path_EGREP"
5826
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5829 $as_echo_n "checking for fgrep... " >&6; }
5830 if test "${ac_cv_path_FGREP+set}" = set; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5834    then ac_cv_path_FGREP="$GREP -F"
5835    else
5836      if test -z "$FGREP"; then
5837   ac_path_FGREP_found=false
5838   # Loop through the user's path and test for each of PROGNAME-LIST
5839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844     for ac_prog in fgrep; do
5845     for ac_exec_ext in '' $ac_executable_extensions; do
5846       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5847       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5848 # Check for GNU ac_path_FGREP and select it if it is found.
5849   # Check for GNU $ac_path_FGREP
5850 case `"$ac_path_FGREP" --version 2>&1` in
5851 *GNU*)
5852   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5853 *)
5854   ac_count=0
5855   $as_echo_n 0123456789 >"conftest.in"
5856   while :
5857   do
5858     cat "conftest.in" "conftest.in" >"conftest.tmp"
5859     mv "conftest.tmp" "conftest.in"
5860     cp "conftest.in" "conftest.nl"
5861     $as_echo 'FGREP' >> "conftest.nl"
5862     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5863     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5864     as_fn_arith $ac_count + 1 && ac_count=$as_val
5865     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5866       # Best one so far, save it but keep looking for a better one
5867       ac_cv_path_FGREP="$ac_path_FGREP"
5868       ac_path_FGREP_max=$ac_count
5869     fi
5870     # 10*(2^10) chars as input seems more than enough
5871     test $ac_count -gt 10 && break
5872   done
5873   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5874 esac
5875
5876       $ac_path_FGREP_found && break 3
5877     done
5878   done
5879   done
5880 IFS=$as_save_IFS
5881   if test -z "$ac_cv_path_FGREP"; then
5882     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5883   fi
5884 else
5885   ac_cv_path_FGREP=$FGREP
5886 fi
5887
5888    fi
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5891 $as_echo "$ac_cv_path_FGREP" >&6; }
5892  FGREP="$ac_cv_path_FGREP"
5893
5894
5895 test -z "$GREP" && GREP=grep
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915 # Check whether --with-gnu-ld was given.
5916 if test "${with_gnu_ld+set}" = set; then :
5917   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5918 else
5919   with_gnu_ld=no
5920 fi
5921
5922 ac_prog=ld
5923 if test "$GCC" = yes; then
5924   # Check if gcc -print-prog-name=ld gives a path.
5925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5926 $as_echo_n "checking for ld used by $CC... " >&6; }
5927   case $host in
5928   *-*-mingw*)
5929     # gcc leaves a trailing carriage return which upsets mingw
5930     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5931   *)
5932     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5933   esac
5934   case $ac_prog in
5935     # Accept absolute paths.
5936     [\\/]* | ?:[\\/]*)
5937       re_direlt='/[^/][^/]*/\.\./'
5938       # Canonicalize the pathname of ld
5939       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5940       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5941         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5942       done
5943       test -z "$LD" && LD="$ac_prog"
5944       ;;
5945   "")
5946     # If it fails, then pretend we aren't using GCC.
5947     ac_prog=ld
5948     ;;
5949   *)
5950     # If it is relative, then search for the first ld in PATH.
5951     with_gnu_ld=unknown
5952     ;;
5953   esac
5954 elif test "$with_gnu_ld" = yes; then
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5956 $as_echo_n "checking for GNU ld... " >&6; }
5957 else
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5959 $as_echo_n "checking for non-GNU ld... " >&6; }
5960 fi
5961 if test "${lt_cv_path_LD+set}" = set; then :
5962   $as_echo_n "(cached) " >&6
5963 else
5964   if test -z "$LD"; then
5965   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5966   for ac_dir in $PATH; do
5967     IFS="$lt_save_ifs"
5968     test -z "$ac_dir" && ac_dir=.
5969     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5970       lt_cv_path_LD="$ac_dir/$ac_prog"
5971       # Check to see if the program is GNU ld.  I'd rather use --version,
5972       # but apparently some variants of GNU ld only accept -v.
5973       # Break only if it was the GNU/non-GNU ld that we prefer.
5974       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5975       *GNU* | *'with BFD'*)
5976         test "$with_gnu_ld" != no && break
5977         ;;
5978       *)
5979         test "$with_gnu_ld" != yes && break
5980         ;;
5981       esac
5982     fi
5983   done
5984   IFS="$lt_save_ifs"
5985 else
5986   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5987 fi
5988 fi
5989
5990 LD="$lt_cv_path_LD"
5991 if test -n "$LD"; then
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5993 $as_echo "$LD" >&6; }
5994 else
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6000 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6001 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6005 case `$LD -v 2>&1 </dev/null` in
6006 *GNU* | *'with BFD'*)
6007   lt_cv_prog_gnu_ld=yes
6008   ;;
6009 *)
6010   lt_cv_prog_gnu_ld=no
6011   ;;
6012 esac
6013 fi
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6015 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6016 with_gnu_ld=$lt_cv_prog_gnu_ld
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6027 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6028 if test "${lt_cv_path_NM+set}" = set; then :
6029   $as_echo_n "(cached) " >&6
6030 else
6031   if test -n "$NM"; then
6032   # Let the user override the test.
6033   lt_cv_path_NM="$NM"
6034 else
6035   lt_nm_to_check="${ac_tool_prefix}nm"
6036   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6037     lt_nm_to_check="$lt_nm_to_check nm"
6038   fi
6039   for lt_tmp_nm in $lt_nm_to_check; do
6040     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6041     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6042       IFS="$lt_save_ifs"
6043       test -z "$ac_dir" && ac_dir=.
6044       tmp_nm="$ac_dir/$lt_tmp_nm"
6045       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6046         # Check to see if the nm accepts a BSD-compat flag.
6047         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6048         #   nm: unknown option "B" ignored
6049         # Tru64's nm complains that /dev/null is an invalid object file
6050         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6051         */dev/null* | *'Invalid file or object type'*)
6052           lt_cv_path_NM="$tmp_nm -B"
6053           break
6054           ;;
6055         *)
6056           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6057           */dev/null*)
6058             lt_cv_path_NM="$tmp_nm -p"
6059             break
6060             ;;
6061           *)
6062             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6063             continue # so that we can try to find one that supports BSD flags
6064             ;;
6065           esac
6066           ;;
6067         esac
6068       fi
6069     done
6070     IFS="$lt_save_ifs"
6071   done
6072   : ${lt_cv_path_NM=no}
6073 fi
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6076 $as_echo "$lt_cv_path_NM" >&6; }
6077 if test "$lt_cv_path_NM" != "no"; then
6078   NM="$lt_cv_path_NM"
6079 else
6080   # Didn't find any BSD compatible name lister, look for dumpbin.
6081   if test -n "$ac_tool_prefix"; then
6082   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6083   do
6084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6089   $as_echo_n "(cached) " >&6
6090 else
6091   if test -n "$DUMPBIN"; then
6092   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097   IFS=$as_save_IFS
6098   test -z "$as_dir" && as_dir=.
6099     for ac_exec_ext in '' $ac_executable_extensions; do
6100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103     break 2
6104   fi
6105 done
6106   done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 DUMPBIN=$ac_cv_prog_DUMPBIN
6112 if test -n "$DUMPBIN"; then
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6114 $as_echo "$DUMPBIN" >&6; }
6115 else
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6118 fi
6119
6120
6121     test -n "$DUMPBIN" && break
6122   done
6123 fi
6124 if test -z "$DUMPBIN"; then
6125   ac_ct_DUMPBIN=$DUMPBIN
6126   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6127 do
6128   # Extract the first word of "$ac_prog", so it can be a program name with args.
6129 set dummy $ac_prog; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   if test -n "$ac_ct_DUMPBIN"; then
6136   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143     for ac_exec_ext in '' $ac_executable_extensions; do
6144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147     break 2
6148   fi
6149 done
6150   done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6156 if test -n "$ac_ct_DUMPBIN"; then
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6158 $as_echo "$ac_ct_DUMPBIN" >&6; }
6159 else
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164
6165   test -n "$ac_ct_DUMPBIN" && break
6166 done
6167
6168   if test "x$ac_ct_DUMPBIN" = x; then
6169     DUMPBIN=":"
6170   else
6171     case $cross_compiling:$ac_tool_warned in
6172 yes:)
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6176 esac
6177     DUMPBIN=$ac_ct_DUMPBIN
6178   fi
6179 fi
6180
6181
6182   if test "$DUMPBIN" != ":"; then
6183     NM="$DUMPBIN"
6184   fi
6185 fi
6186 test -z "$NM" && NM=nm
6187
6188
6189
6190
6191
6192
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6194 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6195 if test "${lt_cv_nm_interface+set}" = set; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   lt_cv_nm_interface="BSD nm"
6199   echo "int some_variable = 0;" > conftest.$ac_ext
6200   (eval echo "\"\$as_me:6200: $ac_compile\"" >&5)
6201   (eval "$ac_compile" 2>conftest.err)
6202   cat conftest.err >&5
6203   (eval echo "\"\$as_me:6203: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6204   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6205   cat conftest.err >&5
6206   (eval echo "\"\$as_me:6206: output\"" >&5)
6207   cat conftest.out >&5
6208   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6209     lt_cv_nm_interface="MS dumpbin"
6210   fi
6211   rm -f conftest*
6212 fi
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6214 $as_echo "$lt_cv_nm_interface" >&6; }
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6217 $as_echo_n "checking whether ln -s works... " >&6; }
6218 LN_S=$as_ln_s
6219 if test "$LN_S" = "ln -s"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6221 $as_echo "yes" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6224 $as_echo "no, using $LN_S" >&6; }
6225 fi
6226
6227 # find the maximum length of command line arguments
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6229 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6230 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6231   $as_echo_n "(cached) " >&6
6232 else
6233     i=0
6234   teststring="ABCD"
6235
6236   case $build_os in
6237   msdosdjgpp*)
6238     # On DJGPP, this test can blow up pretty badly due to problems in libc
6239     # (any single argument exceeding 2000 bytes causes a buffer overrun
6240     # during glob expansion).  Even if it were fixed, the result of this
6241     # check would be larger than it should be.
6242     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6243     ;;
6244
6245   gnu*)
6246     # Under GNU Hurd, this test is not required because there is
6247     # no limit to the length of command line arguments.
6248     # Libtool will interpret -1 as no limit whatsoever
6249     lt_cv_sys_max_cmd_len=-1;
6250     ;;
6251
6252   cygwin* | mingw* | cegcc*)
6253     # On Win9x/ME, this test blows up -- it succeeds, but takes
6254     # about 5 minutes as the teststring grows exponentially.
6255     # Worse, since 9x/ME are not pre-emptively multitasking,
6256     # you end up with a "frozen" computer, even though with patience
6257     # the test eventually succeeds (with a max line length of 256k).
6258     # Instead, let's just punt: use the minimum linelength reported by
6259     # all of the supported platforms: 8192 (on NT/2K/XP).
6260     lt_cv_sys_max_cmd_len=8192;
6261     ;;
6262
6263   amigaos*)
6264     # On AmigaOS with pdksh, this test takes hours, literally.
6265     # So we just punt and use a minimum line length of 8192.
6266     lt_cv_sys_max_cmd_len=8192;
6267     ;;
6268
6269   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6270     # This has been around since 386BSD, at least.  Likely further.
6271     if test -x /sbin/sysctl; then
6272       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6273     elif test -x /usr/sbin/sysctl; then
6274       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6275     else
6276       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6277     fi
6278     # And add a safety zone
6279     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6280     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6281     ;;
6282
6283   interix*)
6284     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6285     lt_cv_sys_max_cmd_len=196608
6286     ;;
6287
6288   osf*)
6289     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6290     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6291     # nice to cause kernel panics so lets avoid the loop below.
6292     # First set a reasonable default.
6293     lt_cv_sys_max_cmd_len=16384
6294     #
6295     if test -x /sbin/sysconfig; then
6296       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6297         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6298       esac
6299     fi
6300     ;;
6301   sco3.2v5*)
6302     lt_cv_sys_max_cmd_len=102400
6303     ;;
6304   sysv5* | sco5v6* | sysv4.2uw2*)
6305     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6306     if test -n "$kargmax"; then
6307       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6308     else
6309       lt_cv_sys_max_cmd_len=32768
6310     fi
6311     ;;
6312   *)
6313     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6314     if test -n "$lt_cv_sys_max_cmd_len"; then
6315       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6316       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6317     else
6318       # Make teststring a little bigger before we do anything with it.
6319       # a 1K string should be a reasonable start.
6320       for i in 1 2 3 4 5 6 7 8 ; do
6321         teststring=$teststring$teststring
6322       done
6323       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6324       # If test is not a shell built-in, we'll probably end up computing a
6325       # maximum length that is only half of the actual maximum length, but
6326       # we can't tell.
6327       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6328                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6329               test $i != 17 # 1/2 MB should be enough
6330       do
6331         i=`expr $i + 1`
6332         teststring=$teststring$teststring
6333       done
6334       # Only check the string length outside the loop.
6335       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6336       teststring=
6337       # Add a significant safety factor because C++ compilers can tack on
6338       # massive amounts of additional arguments before passing them to the
6339       # linker.  It appears as though 1/2 is a usable value.
6340       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6341     fi
6342     ;;
6343   esac
6344
6345 fi
6346
6347 if test -n $lt_cv_sys_max_cmd_len ; then
6348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6349 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6350 else
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6352 $as_echo "none" >&6; }
6353 fi
6354 max_cmd_len=$lt_cv_sys_max_cmd_len
6355
6356
6357
6358
6359
6360
6361 : ${CP="cp -f"}
6362 : ${MV="mv -f"}
6363 : ${RM="rm -f"}
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6366 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6367 # Try some XSI features
6368 xsi_shell=no
6369 ( _lt_dummy="a/b/c"
6370   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6371       = c,a/b,, \
6372     && eval 'test $(( 1 + 1 )) -eq 2 \
6373     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6374   && xsi_shell=yes
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6376 $as_echo "$xsi_shell" >&6; }
6377
6378
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6380 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6381 lt_shell_append=no
6382 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6383     >/dev/null 2>&1 \
6384   && lt_shell_append=yes
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6386 $as_echo "$lt_shell_append" >&6; }
6387
6388
6389 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6390   lt_unset=unset
6391 else
6392   lt_unset=false
6393 fi
6394
6395
6396
6397
6398
6399 # test EBCDIC or ASCII
6400 case `echo X|tr X '\101'` in
6401  A) # ASCII based system
6402     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6403   lt_SP2NL='tr \040 \012'
6404   lt_NL2SP='tr \015\012 \040\040'
6405   ;;
6406  *) # EBCDIC based system
6407   lt_SP2NL='tr \100 \n'
6408   lt_NL2SP='tr \r\n \100\100'
6409   ;;
6410 esac
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6421 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6422 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6423   $as_echo_n "(cached) " >&6
6424 else
6425   lt_cv_ld_reload_flag='-r'
6426 fi
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6428 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6429 reload_flag=$lt_cv_ld_reload_flag
6430 case $reload_flag in
6431 "" | " "*) ;;
6432 *) reload_flag=" $reload_flag" ;;
6433 esac
6434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6435 case $host_os in
6436   darwin*)
6437     if test "$GCC" = yes; then
6438       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6439     else
6440       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6441     fi
6442     ;;
6443 esac
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453 if test -n "$ac_tool_prefix"; then
6454   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$OBJDUMP"; then
6462   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469     for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476   done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 OBJDUMP=$ac_cv_prog_OBJDUMP
6482 if test -n "$OBJDUMP"; then
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6484 $as_echo "$OBJDUMP" >&6; }
6485 else
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490
6491 fi
6492 if test -z "$ac_cv_prog_OBJDUMP"; then
6493   ac_ct_OBJDUMP=$OBJDUMP
6494   # Extract the first word of "objdump", so it can be a program name with args.
6495 set dummy objdump; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   if test -n "$ac_ct_OBJDUMP"; then
6502   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509     for ac_exec_ext in '' $ac_executable_extensions; do
6510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516   done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6522 if test -n "$ac_ct_OBJDUMP"; then
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6524 $as_echo "$ac_ct_OBJDUMP" >&6; }
6525 else
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530   if test "x$ac_ct_OBJDUMP" = x; then
6531     OBJDUMP="false"
6532   else
6533     case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6538 esac
6539     OBJDUMP=$ac_ct_OBJDUMP
6540   fi
6541 else
6542   OBJDUMP="$ac_cv_prog_OBJDUMP"
6543 fi
6544
6545 test -z "$OBJDUMP" && OBJDUMP=objdump
6546
6547
6548
6549
6550
6551
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6553 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6554 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   lt_cv_file_magic_cmd='$MAGIC_CMD'
6558 lt_cv_file_magic_test_file=
6559 lt_cv_deplibs_check_method='unknown'
6560 # Need to set the preceding variable on all platforms that support
6561 # interlibrary dependencies.
6562 # 'none' -- dependencies not supported.
6563 # `unknown' -- same as none, but documents that we really don't know.
6564 # 'pass_all' -- all dependencies passed with no checks.
6565 # 'test_compile' -- check by making test program.
6566 # 'file_magic [[regex]]' -- check by looking for files in library path
6567 # which responds to the $file_magic_cmd with a given extended regex.
6568 # If you have `file' or equivalent on your system and you're not sure
6569 # whether `pass_all' will *always* work, you probably want this one.
6570
6571 case $host_os in
6572 aix[4-9]*)
6573   lt_cv_deplibs_check_method=pass_all
6574   ;;
6575
6576 beos*)
6577   lt_cv_deplibs_check_method=pass_all
6578   ;;
6579
6580 bsdi[45]*)
6581   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6582   lt_cv_file_magic_cmd='/usr/bin/file -L'
6583   lt_cv_file_magic_test_file=/shlib/libc.so
6584   ;;
6585
6586 cygwin*)
6587   # func_win32_libid is a shell function defined in ltmain.sh
6588   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6589   lt_cv_file_magic_cmd='func_win32_libid'
6590   ;;
6591
6592 mingw* | pw32*)
6593   # Base MSYS/MinGW do not provide the 'file' command needed by
6594   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6595   # unless we find 'file', for example because we are cross-compiling.
6596   if ( file / ) >/dev/null 2>&1; then
6597     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6598     lt_cv_file_magic_cmd='func_win32_libid'
6599   else
6600     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6601     lt_cv_file_magic_cmd='$OBJDUMP -f'
6602   fi
6603   ;;
6604
6605 cegcc)
6606   # use the weaker test based on 'objdump'. See mingw*.
6607   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6608   lt_cv_file_magic_cmd='$OBJDUMP -f'
6609   ;;
6610
6611 darwin* | rhapsody*)
6612   lt_cv_deplibs_check_method=pass_all
6613   ;;
6614
6615 freebsd* | dragonfly*)
6616   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6617     case $host_cpu in
6618     i*86 )
6619       # Not sure whether the presence of OpenBSD here was a mistake.
6620       # Let's accept both of them until this is cleared up.
6621       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6622       lt_cv_file_magic_cmd=/usr/bin/file
6623       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6624       ;;
6625     esac
6626   else
6627     lt_cv_deplibs_check_method=pass_all
6628   fi
6629   ;;
6630
6631 gnu*)
6632   lt_cv_deplibs_check_method=pass_all
6633   ;;
6634
6635 hpux10.20* | hpux11*)
6636   lt_cv_file_magic_cmd=/usr/bin/file
6637   case $host_cpu in
6638   ia64*)
6639     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6640     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6641     ;;
6642   hppa*64*)
6643     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]'
6644     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6645     ;;
6646   *)
6647     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6648     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6649     ;;
6650   esac
6651   ;;
6652
6653 interix[3-9]*)
6654   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6655   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6656   ;;
6657
6658 irix5* | irix6* | nonstopux*)
6659   case $LD in
6660   *-32|*"-32 ") libmagic=32-bit;;
6661   *-n32|*"-n32 ") libmagic=N32;;
6662   *-64|*"-64 ") libmagic=64-bit;;
6663   *) libmagic=never-match;;
6664   esac
6665   lt_cv_deplibs_check_method=pass_all
6666   ;;
6667
6668 # This must be Linux ELF.
6669 linux* | k*bsd*-gnu)
6670   lt_cv_deplibs_check_method=pass_all
6671   ;;
6672
6673 netbsd*)
6674   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6675     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6676   else
6677     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6678   fi
6679   ;;
6680
6681 newos6*)
6682   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6683   lt_cv_file_magic_cmd=/usr/bin/file
6684   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6685   ;;
6686
6687 *nto* | *qnx*)
6688   lt_cv_deplibs_check_method=pass_all
6689   ;;
6690
6691 openbsd*)
6692   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6693     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6694   else
6695     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6696   fi
6697   ;;
6698
6699 osf3* | osf4* | osf5*)
6700   lt_cv_deplibs_check_method=pass_all
6701   ;;
6702
6703 rdos*)
6704   lt_cv_deplibs_check_method=pass_all
6705   ;;
6706
6707 solaris*)
6708   lt_cv_deplibs_check_method=pass_all
6709   ;;
6710
6711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6712   lt_cv_deplibs_check_method=pass_all
6713   ;;
6714
6715 sysv4 | sysv4.3*)
6716   case $host_vendor in
6717   motorola)
6718     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]'
6719     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6720     ;;
6721   ncr)
6722     lt_cv_deplibs_check_method=pass_all
6723     ;;
6724   sequent)
6725     lt_cv_file_magic_cmd='/bin/file'
6726     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6727     ;;
6728   sni)
6729     lt_cv_file_magic_cmd='/bin/file'
6730     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6731     lt_cv_file_magic_test_file=/lib/libc.so
6732     ;;
6733   siemens)
6734     lt_cv_deplibs_check_method=pass_all
6735     ;;
6736   pc)
6737     lt_cv_deplibs_check_method=pass_all
6738     ;;
6739   esac
6740   ;;
6741
6742 tpf*)
6743   lt_cv_deplibs_check_method=pass_all
6744   ;;
6745 esac
6746
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6749 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6750 file_magic_cmd=$lt_cv_file_magic_cmd
6751 deplibs_check_method=$lt_cv_deplibs_check_method
6752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765 if test -n "$ac_tool_prefix"; then
6766   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}ar; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if test "${ac_cv_prog_AR+set}" = set; then :
6771   $as_echo_n "(cached) " >&6
6772 else
6773   if test -n "$AR"; then
6774   ac_cv_prog_AR="$AR" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781     for ac_exec_ext in '' $ac_executable_extensions; do
6782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783     ac_cv_prog_AR="${ac_tool_prefix}ar"
6784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785     break 2
6786   fi
6787 done
6788   done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 AR=$ac_cv_prog_AR
6794 if test -n "$AR"; then
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6796 $as_echo "$AR" >&6; }
6797 else
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800 fi
6801
6802
6803 fi
6804 if test -z "$ac_cv_prog_AR"; then
6805   ac_ct_AR=$AR
6806   # Extract the first word of "ar", so it can be a program name with args.
6807 set dummy ar; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   if test -n "$ac_ct_AR"; then
6814   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821     for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_prog_ac_ct_AR="ar"
6824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828   done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6834 if test -n "$ac_ct_AR"; then
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6836 $as_echo "$ac_ct_AR" >&6; }
6837 else
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842   if test "x$ac_ct_AR" = x; then
6843     AR="false"
6844   else
6845     case $cross_compiling:$ac_tool_warned in
6846 yes:)
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849 ac_tool_warned=yes ;;
6850 esac
6851     AR=$ac_ct_AR
6852   fi
6853 else
6854   AR="$ac_cv_prog_AR"
6855 fi
6856
6857 test -z "$AR" && AR=ar
6858 test -z "$AR_FLAGS" && AR_FLAGS=cru
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870 if test -n "$ac_tool_prefix"; then
6871   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}strip; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if test "${ac_cv_prog_STRIP+set}" = set; then :
6876   $as_echo_n "(cached) " >&6
6877 else
6878   if test -n "$STRIP"; then
6879   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886     for ac_exec_ext in '' $ac_executable_extensions; do
6887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893   done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 STRIP=$ac_cv_prog_STRIP
6899 if test -n "$STRIP"; then
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6901 $as_echo "$STRIP" >&6; }
6902 else
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_STRIP"; then
6910   ac_ct_STRIP=$STRIP
6911   # Extract the first word of "strip", so it can be a program name with args.
6912 set dummy strip; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   if test -n "$ac_ct_STRIP"; then
6919   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926     for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_prog_ac_ct_STRIP="strip"
6929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933   done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6939 if test -n "$ac_ct_STRIP"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6941 $as_echo "$ac_ct_STRIP" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947   if test "x$ac_ct_STRIP" = x; then
6948     STRIP=":"
6949   else
6950     case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956     STRIP=$ac_ct_STRIP
6957   fi
6958 else
6959   STRIP="$ac_cv_prog_STRIP"
6960 fi
6961
6962 test -z "$STRIP" && STRIP=:
6963
6964
6965
6966
6967
6968
6969 if test -n "$ac_tool_prefix"; then
6970   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6975   $as_echo_n "(cached) " >&6
6976 else
6977   if test -n "$RANLIB"; then
6978   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6979 else
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6982 do
6983   IFS=$as_save_IFS
6984   test -z "$as_dir" && as_dir=.
6985     for ac_exec_ext in '' $ac_executable_extensions; do
6986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6987     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989     break 2
6990   fi
6991 done
6992   done
6993 IFS=$as_save_IFS
6994
6995 fi
6996 fi
6997 RANLIB=$ac_cv_prog_RANLIB
6998 if test -n "$RANLIB"; then
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7000 $as_echo "$RANLIB" >&6; }
7001 else
7002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 $as_echo "no" >&6; }
7004 fi
7005
7006
7007 fi
7008 if test -z "$ac_cv_prog_RANLIB"; then
7009   ac_ct_RANLIB=$RANLIB
7010   # Extract the first word of "ranlib", so it can be a program name with args.
7011 set dummy ranlib; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   if test -n "$ac_ct_RANLIB"; then
7018   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023   IFS=$as_save_IFS
7024   test -z "$as_dir" && as_dir=.
7025     for ac_exec_ext in '' $ac_executable_extensions; do
7026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027     ac_cv_prog_ac_ct_RANLIB="ranlib"
7028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029     break 2
7030   fi
7031 done
7032   done
7033 IFS=$as_save_IFS
7034
7035 fi
7036 fi
7037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7038 if test -n "$ac_ct_RANLIB"; then
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7040 $as_echo "$ac_ct_RANLIB" >&6; }
7041 else
7042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045
7046   if test "x$ac_ct_RANLIB" = x; then
7047     RANLIB=":"
7048   else
7049     case $cross_compiling:$ac_tool_warned in
7050 yes:)
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053 ac_tool_warned=yes ;;
7054 esac
7055     RANLIB=$ac_ct_RANLIB
7056   fi
7057 else
7058   RANLIB="$ac_cv_prog_RANLIB"
7059 fi
7060
7061 test -z "$RANLIB" && RANLIB=:
7062
7063
7064
7065
7066
7067
7068 # Determine commands to create old-style static archives.
7069 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7070 old_postinstall_cmds='chmod 644 $oldlib'
7071 old_postuninstall_cmds=
7072
7073 if test -n "$RANLIB"; then
7074   case $host_os in
7075   openbsd*)
7076     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7077     ;;
7078   *)
7079     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7080     ;;
7081   esac
7082   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7083 fi
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118 # If no C compiler was specified, use CC.
7119 LTCC=${LTCC-"$CC"}
7120
7121 # If no C compiler flags were specified, use CFLAGS.
7122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7123
7124 # Allow CC to be a program name with arguments.
7125 compiler=$CC
7126
7127
7128 # Check for command to grab the raw symbol name followed by C symbol from nm.
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7130 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7131 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7132   $as_echo_n "(cached) " >&6
7133 else
7134
7135 # These are sane defaults that work on at least a few old systems.
7136 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7137
7138 # Character class describing NM global symbol codes.
7139 symcode='[BCDEGRST]'
7140
7141 # Regexp to match symbols that can be accessed directly from C.
7142 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7143
7144 # Define system-specific variables.
7145 case $host_os in
7146 aix*)
7147   symcode='[BCDT]'
7148   ;;
7149 cygwin* | mingw* | pw32* | cegcc*)
7150   symcode='[ABCDGISTW]'
7151   ;;
7152 hpux*)
7153   if test "$host_cpu" = ia64; then
7154     symcode='[ABCDEGRST]'
7155   fi
7156   ;;
7157 irix* | nonstopux*)
7158   symcode='[BCDEGRST]'
7159   ;;
7160 osf*)
7161   symcode='[BCDEGQRST]'
7162   ;;
7163 solaris*)
7164   symcode='[BDRT]'
7165   ;;
7166 sco3.2v5*)
7167   symcode='[DT]'
7168   ;;
7169 sysv4.2uw2*)
7170   symcode='[DT]'
7171   ;;
7172 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7173   symcode='[ABDT]'
7174   ;;
7175 sysv4)
7176   symcode='[DFNSTU]'
7177   ;;
7178 esac
7179
7180 # If we're using GNU nm, then use its standard symbol codes.
7181 case `$NM -V 2>&1` in
7182 *GNU* | *'with BFD'*)
7183   symcode='[ABCDGIRSTW]' ;;
7184 esac
7185
7186 # Transform an extracted symbol line into a proper C declaration.
7187 # Some systems (esp. on ia64) link data and code symbols differently,
7188 # so use this general approach.
7189 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7190
7191 # Transform an extracted symbol line into symbol name and symbol address
7192 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7193 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7194
7195 # Handle CRLF in mingw tool chain
7196 opt_cr=
7197 case $build_os in
7198 mingw*)
7199   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7200   ;;
7201 esac
7202
7203 # Try without a prefix underscore, then with it.
7204 for ac_symprfx in "" "_"; do
7205
7206   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7207   symxfrm="\\1 $ac_symprfx\\2 \\2"
7208
7209   # Write the raw and C identifiers.
7210   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7211     # Fake it for dumpbin and say T for any non-static function
7212     # and D for any global variable.
7213     # Also find C++ and __fastcall symbols from MSVC++,
7214     # which start with @ or ?.
7215     lt_cv_sys_global_symbol_pipe="$AWK '"\
7216 "     {last_section=section; section=\$ 3};"\
7217 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7218 "     \$ 0!~/External *\|/{next};"\
7219 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7220 "     {if(hide[section]) next};"\
7221 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7222 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7223 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7224 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7225 "     ' prfx=^$ac_symprfx"
7226   else
7227     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7228   fi
7229
7230   # Check to see that the pipe works correctly.
7231   pipe_works=no
7232
7233   rm -f conftest*
7234   cat > conftest.$ac_ext <<_LT_EOF
7235 #ifdef __cplusplus
7236 extern "C" {
7237 #endif
7238 char nm_test_var;
7239 void nm_test_func(void);
7240 void nm_test_func(void){}
7241 #ifdef __cplusplus
7242 }
7243 #endif
7244 int main(){nm_test_var='a';nm_test_func();return(0);}
7245 _LT_EOF
7246
7247   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7248   (eval $ac_compile) 2>&5
7249   ac_status=$?
7250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251   test $ac_status = 0; }; then
7252     # Now try to grab the symbols.
7253     nlist=conftest.nm
7254     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7255   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7256   ac_status=$?
7257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258   test $ac_status = 0; } && test -s "$nlist"; then
7259       # Try sorting and uniquifying the output.
7260       if sort "$nlist" | uniq > "$nlist"T; then
7261         mv -f "$nlist"T "$nlist"
7262       else
7263         rm -f "$nlist"T
7264       fi
7265
7266       # Make sure that we snagged all the symbols we need.
7267       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7268         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7269           cat <<_LT_EOF > conftest.$ac_ext
7270 #ifdef __cplusplus
7271 extern "C" {
7272 #endif
7273
7274 _LT_EOF
7275           # Now generate the symbol file.
7276           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7277
7278           cat <<_LT_EOF >> conftest.$ac_ext
7279
7280 /* The mapping between symbol names and symbols.  */
7281 const struct {
7282   const char *name;
7283   void       *address;
7284 }
7285 lt__PROGRAM__LTX_preloaded_symbols[] =
7286 {
7287   { "@PROGRAM@", (void *) 0 },
7288 _LT_EOF
7289           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7290           cat <<\_LT_EOF >> conftest.$ac_ext
7291   {0, (void *) 0}
7292 };
7293
7294 /* This works around a problem in FreeBSD linker */
7295 #ifdef FREEBSD_WORKAROUND
7296 static const void *lt_preloaded_setup() {
7297   return lt__PROGRAM__LTX_preloaded_symbols;
7298 }
7299 #endif
7300
7301 #ifdef __cplusplus
7302 }
7303 #endif
7304 _LT_EOF
7305           # Now try linking the two files.
7306           mv conftest.$ac_objext conftstm.$ac_objext
7307           lt_save_LIBS="$LIBS"
7308           lt_save_CFLAGS="$CFLAGS"
7309           LIBS="conftstm.$ac_objext"
7310           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7311           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7312   (eval $ac_link) 2>&5
7313   ac_status=$?
7314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7316             pipe_works=yes
7317           fi
7318           LIBS="$lt_save_LIBS"
7319           CFLAGS="$lt_save_CFLAGS"
7320         else
7321           echo "cannot find nm_test_func in $nlist" >&5
7322         fi
7323       else
7324         echo "cannot find nm_test_var in $nlist" >&5
7325       fi
7326     else
7327       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7328     fi
7329   else
7330     echo "$progname: failed program was:" >&5
7331     cat conftest.$ac_ext >&5
7332   fi
7333   rm -rf conftest* conftst*
7334
7335   # Do not use the global_symbol_pipe unless it works.
7336   if test "$pipe_works" = yes; then
7337     break
7338   else
7339     lt_cv_sys_global_symbol_pipe=
7340   fi
7341 done
7342
7343 fi
7344
7345 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7346   lt_cv_sys_global_symbol_to_cdecl=
7347 fi
7348 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7350 $as_echo "failed" >&6; }
7351 else
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7353 $as_echo "ok" >&6; }
7354 fi
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 # Check whether --enable-libtool-lock was given.
7379 if test "${enable_libtool_lock+set}" = set; then :
7380   enableval=$enable_libtool_lock;
7381 fi
7382
7383 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7384
7385 # Some flags need to be propagated to the compiler or linker for good
7386 # libtool support.
7387 case $host in
7388 ia64-*-hpux*)
7389   # Find out which ABI we are using.
7390   echo 'int i;' > conftest.$ac_ext
7391   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7392   (eval $ac_compile) 2>&5
7393   ac_status=$?
7394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395   test $ac_status = 0; }; then
7396     case `/usr/bin/file conftest.$ac_objext` in
7397       *ELF-32*)
7398         HPUX_IA64_MODE="32"
7399         ;;
7400       *ELF-64*)
7401         HPUX_IA64_MODE="64"
7402         ;;
7403     esac
7404   fi
7405   rm -rf conftest*
7406   ;;
7407 *-*-irix6*)
7408   # Find out which ABI we are using.
7409   echo '#line 7409 "configure"' > conftest.$ac_ext
7410   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7411   (eval $ac_compile) 2>&5
7412   ac_status=$?
7413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414   test $ac_status = 0; }; then
7415     if test "$lt_cv_prog_gnu_ld" = yes; then
7416       case `/usr/bin/file conftest.$ac_objext` in
7417         *32-bit*)
7418           LD="${LD-ld} -melf32bsmip"
7419           ;;
7420         *N32*)
7421           LD="${LD-ld} -melf32bmipn32"
7422           ;;
7423         *64-bit*)
7424           LD="${LD-ld} -melf64bmip"
7425         ;;
7426       esac
7427     else
7428       case `/usr/bin/file conftest.$ac_objext` in
7429         *32-bit*)
7430           LD="${LD-ld} -32"
7431           ;;
7432         *N32*)
7433           LD="${LD-ld} -n32"
7434           ;;
7435         *64-bit*)
7436           LD="${LD-ld} -64"
7437           ;;
7438       esac
7439     fi
7440   fi
7441   rm -rf conftest*
7442   ;;
7443
7444 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7445 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7446   # Find out which ABI we are using.
7447   echo 'int i;' > conftest.$ac_ext
7448   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7449   (eval $ac_compile) 2>&5
7450   ac_status=$?
7451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7452   test $ac_status = 0; }; then
7453     case `/usr/bin/file conftest.o` in
7454       *32-bit*)
7455         case $host in
7456           x86_64-*kfreebsd*-gnu)
7457             LD="${LD-ld} -m elf_i386_fbsd"
7458             ;;
7459           x86_64-*linux*)
7460             LD="${LD-ld} -m elf_i386"
7461             ;;
7462           ppc64-*linux*|powerpc64-*linux*)
7463             LD="${LD-ld} -m elf32ppclinux"
7464             ;;
7465           s390x-*linux*)
7466             LD="${LD-ld} -m elf_s390"
7467             ;;
7468           sparc64-*linux*)
7469             LD="${LD-ld} -m elf32_sparc"
7470             ;;
7471         esac
7472         ;;
7473       *64-bit*)
7474         case $host in
7475           x86_64-*kfreebsd*-gnu)
7476             LD="${LD-ld} -m elf_x86_64_fbsd"
7477             ;;
7478           x86_64-*linux*)
7479             LD="${LD-ld} -m elf_x86_64"
7480             ;;
7481           ppc*-*linux*|powerpc*-*linux*)
7482             LD="${LD-ld} -m elf64ppc"
7483             ;;
7484           s390*-*linux*|s390*-*tpf*)
7485             LD="${LD-ld} -m elf64_s390"
7486             ;;
7487           sparc*-*linux*)
7488             LD="${LD-ld} -m elf64_sparc"
7489             ;;
7490         esac
7491         ;;
7492     esac
7493   fi
7494   rm -rf conftest*
7495   ;;
7496
7497 *-*-sco3.2v5*)
7498   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7499   SAVE_CFLAGS="$CFLAGS"
7500   CFLAGS="$CFLAGS -belf"
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7502 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7503 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   ac_ext=c
7507 ac_cpp='$CPP $CPPFLAGS'
7508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h.  */
7514
7515 int
7516 main ()
7517 {
7518
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 if ac_fn_c_try_link "$LINENO"; then :
7524   lt_cv_cc_needs_belf=yes
7525 else
7526   lt_cv_cc_needs_belf=no
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext \
7529     conftest$ac_exeext conftest.$ac_ext
7530      ac_ext=c
7531 ac_cpp='$CPP $CPPFLAGS'
7532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7535
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7538 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7539   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7540     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7541     CFLAGS="$SAVE_CFLAGS"
7542   fi
7543   ;;
7544 sparc*-*solaris*)
7545   # Find out which ABI we are using.
7546   echo 'int i;' > conftest.$ac_ext
7547   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7548   (eval $ac_compile) 2>&5
7549   ac_status=$?
7550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551   test $ac_status = 0; }; then
7552     case `/usr/bin/file conftest.o` in
7553     *64-bit*)
7554       case $lt_cv_prog_gnu_ld in
7555       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7556       *)
7557         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7558           LD="${LD-ld} -64"
7559         fi
7560         ;;
7561       esac
7562       ;;
7563     esac
7564   fi
7565   rm -rf conftest*
7566   ;;
7567 esac
7568
7569 need_locks="$enable_libtool_lock"
7570
7571
7572   case $host_os in
7573     rhapsody* | darwin*)
7574     if test -n "$ac_tool_prefix"; then
7575   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7576 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7580   $as_echo_n "(cached) " >&6
7581 else
7582   if test -n "$DSYMUTIL"; then
7583   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588   IFS=$as_save_IFS
7589   test -z "$as_dir" && as_dir=.
7590     for ac_exec_ext in '' $ac_executable_extensions; do
7591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594     break 2
7595   fi
7596 done
7597   done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7603 if test -n "$DSYMUTIL"; then
7604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7605 $as_echo "$DSYMUTIL" >&6; }
7606 else
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7609 fi
7610
7611
7612 fi
7613 if test -z "$ac_cv_prog_DSYMUTIL"; then
7614   ac_ct_DSYMUTIL=$DSYMUTIL
7615   # Extract the first word of "dsymutil", so it can be a program name with args.
7616 set dummy dsymutil; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7620   $as_echo_n "(cached) " >&6
7621 else
7622   if test -n "$ac_ct_DSYMUTIL"; then
7623   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628   IFS=$as_save_IFS
7629   test -z "$as_dir" && as_dir=.
7630     for ac_exec_ext in '' $ac_executable_extensions; do
7631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634     break 2
7635   fi
7636 done
7637   done
7638 IFS=$as_save_IFS
7639
7640 fi
7641 fi
7642 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7643 if test -n "$ac_ct_DSYMUTIL"; then
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7645 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7646 else
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7650
7651   if test "x$ac_ct_DSYMUTIL" = x; then
7652     DSYMUTIL=":"
7653   else
7654     case $cross_compiling:$ac_tool_warned in
7655 yes:)
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658 ac_tool_warned=yes ;;
7659 esac
7660     DSYMUTIL=$ac_ct_DSYMUTIL
7661   fi
7662 else
7663   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7664 fi
7665
7666     if test -n "$ac_tool_prefix"; then
7667   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7668 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7672   $as_echo_n "(cached) " >&6
7673 else
7674   if test -n "$NMEDIT"; then
7675   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682     for ac_exec_ext in '' $ac_executable_extensions; do
7683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689   done
7690 IFS=$as_save_IFS
7691
7692 fi
7693 fi
7694 NMEDIT=$ac_cv_prog_NMEDIT
7695 if test -n "$NMEDIT"; then
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7697 $as_echo "$NMEDIT" >&6; }
7698 else
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703
7704 fi
7705 if test -z "$ac_cv_prog_NMEDIT"; then
7706   ac_ct_NMEDIT=$NMEDIT
7707   # Extract the first word of "nmedit", so it can be a program name with args.
7708 set dummy nmedit; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7712   $as_echo_n "(cached) " >&6
7713 else
7714   if test -n "$ac_ct_NMEDIT"; then
7715   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720   IFS=$as_save_IFS
7721   test -z "$as_dir" && as_dir=.
7722     for ac_exec_ext in '' $ac_executable_extensions; do
7723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726     break 2
7727   fi
7728 done
7729   done
7730 IFS=$as_save_IFS
7731
7732 fi
7733 fi
7734 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7735 if test -n "$ac_ct_NMEDIT"; then
7736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7737 $as_echo "$ac_ct_NMEDIT" >&6; }
7738 else
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7741 fi
7742
7743   if test "x$ac_ct_NMEDIT" = x; then
7744     NMEDIT=":"
7745   else
7746     case $cross_compiling:$ac_tool_warned in
7747 yes:)
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned=yes ;;
7751 esac
7752     NMEDIT=$ac_ct_NMEDIT
7753   fi
7754 else
7755   NMEDIT="$ac_cv_prog_NMEDIT"
7756 fi
7757
7758     if test -n "$ac_tool_prefix"; then
7759   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7760 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_LIPO+set}" = set; then :
7764   $as_echo_n "(cached) " >&6
7765 else
7766   if test -n "$LIPO"; then
7767   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772   IFS=$as_save_IFS
7773   test -z "$as_dir" && as_dir=.
7774     for ac_exec_ext in '' $ac_executable_extensions; do
7775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778     break 2
7779   fi
7780 done
7781   done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 LIPO=$ac_cv_prog_LIPO
7787 if test -n "$LIPO"; then
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7789 $as_echo "$LIPO" >&6; }
7790 else
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794
7795
7796 fi
7797 if test -z "$ac_cv_prog_LIPO"; then
7798   ac_ct_LIPO=$LIPO
7799   # Extract the first word of "lipo", so it can be a program name with args.
7800 set dummy lipo; ac_word=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7804   $as_echo_n "(cached) " >&6
7805 else
7806   if test -n "$ac_ct_LIPO"; then
7807   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812   IFS=$as_save_IFS
7813   test -z "$as_dir" && as_dir=.
7814     for ac_exec_ext in '' $ac_executable_extensions; do
7815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7816     ac_cv_prog_ac_ct_LIPO="lipo"
7817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818     break 2
7819   fi
7820 done
7821   done
7822 IFS=$as_save_IFS
7823
7824 fi
7825 fi
7826 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7827 if test -n "$ac_ct_LIPO"; then
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7829 $as_echo "$ac_ct_LIPO" >&6; }
7830 else
7831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 fi
7834
7835   if test "x$ac_ct_LIPO" = x; then
7836     LIPO=":"
7837   else
7838     case $cross_compiling:$ac_tool_warned in
7839 yes:)
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842 ac_tool_warned=yes ;;
7843 esac
7844     LIPO=$ac_ct_LIPO
7845   fi
7846 else
7847   LIPO="$ac_cv_prog_LIPO"
7848 fi
7849
7850     if test -n "$ac_tool_prefix"; then
7851   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7852 set dummy ${ac_tool_prefix}otool; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7856   $as_echo_n "(cached) " >&6
7857 else
7858   if test -n "$OTOOL"; then
7859   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864   IFS=$as_save_IFS
7865   test -z "$as_dir" && as_dir=.
7866     for ac_exec_ext in '' $ac_executable_extensions; do
7867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870     break 2
7871   fi
7872 done
7873   done
7874 IFS=$as_save_IFS
7875
7876 fi
7877 fi
7878 OTOOL=$ac_cv_prog_OTOOL
7879 if test -n "$OTOOL"; then
7880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7881 $as_echo "$OTOOL" >&6; }
7882 else
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7885 fi
7886
7887
7888 fi
7889 if test -z "$ac_cv_prog_OTOOL"; then
7890   ac_ct_OTOOL=$OTOOL
7891   # Extract the first word of "otool", so it can be a program name with args.
7892 set dummy otool; ac_word=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7896   $as_echo_n "(cached) " >&6
7897 else
7898   if test -n "$ac_ct_OTOOL"; then
7899   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7903 do
7904   IFS=$as_save_IFS
7905   test -z "$as_dir" && as_dir=.
7906     for ac_exec_ext in '' $ac_executable_extensions; do
7907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908     ac_cv_prog_ac_ct_OTOOL="otool"
7909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910     break 2
7911   fi
7912 done
7913   done
7914 IFS=$as_save_IFS
7915
7916 fi
7917 fi
7918 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7919 if test -n "$ac_ct_OTOOL"; then
7920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7921 $as_echo "$ac_ct_OTOOL" >&6; }
7922 else
7923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7925 fi
7926
7927   if test "x$ac_ct_OTOOL" = x; then
7928     OTOOL=":"
7929   else
7930     case $cross_compiling:$ac_tool_warned in
7931 yes:)
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934 ac_tool_warned=yes ;;
7935 esac
7936     OTOOL=$ac_ct_OTOOL
7937   fi
7938 else
7939   OTOOL="$ac_cv_prog_OTOOL"
7940 fi
7941
7942     if test -n "$ac_tool_prefix"; then
7943   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7944 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   if test -n "$OTOOL64"; then
7951   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965   done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 OTOOL64=$ac_cv_prog_OTOOL64
7971 if test -n "$OTOOL64"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7973 $as_echo "$OTOOL64" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980 fi
7981 if test -z "$ac_cv_prog_OTOOL64"; then
7982   ac_ct_OTOOL64=$OTOOL64
7983   # Extract the first word of "otool64", so it can be a program name with args.
7984 set dummy otool64; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7988   $as_echo_n "(cached) " >&6
7989 else
7990   if test -n "$ac_ct_OTOOL64"; then
7991   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996   IFS=$as_save_IFS
7997   test -z "$as_dir" && as_dir=.
7998     for ac_exec_ext in '' $ac_executable_extensions; do
7999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8000     ac_cv_prog_ac_ct_OTOOL64="otool64"
8001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002     break 2
8003   fi
8004 done
8005   done
8006 IFS=$as_save_IFS
8007
8008 fi
8009 fi
8010 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8011 if test -n "$ac_ct_OTOOL64"; then
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8013 $as_echo "$ac_ct_OTOOL64" >&6; }
8014 else
8015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8017 fi
8018
8019   if test "x$ac_ct_OTOOL64" = x; then
8020     OTOOL64=":"
8021   else
8022     case $cross_compiling:$ac_tool_warned in
8023 yes:)
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026 ac_tool_warned=yes ;;
8027 esac
8028     OTOOL64=$ac_ct_OTOOL64
8029   fi
8030 else
8031   OTOOL64="$ac_cv_prog_OTOOL64"
8032 fi
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8061 $as_echo_n "checking for -single_module linker flag... " >&6; }
8062 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8063   $as_echo_n "(cached) " >&6
8064 else
8065   lt_cv_apple_cc_single_mod=no
8066       if test -z "${LT_MULTI_MODULE}"; then
8067         # By default we will add the -single_module flag. You can override
8068         # by either setting the environment variable LT_MULTI_MODULE
8069         # non-empty at configure time, or by adding -multi_module to the
8070         # link flags.
8071         rm -rf libconftest.dylib*
8072         echo "int foo(void){return 1;}" > conftest.c
8073         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8074 -dynamiclib -Wl,-single_module conftest.c" >&5
8075         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8076           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8077         _lt_result=$?
8078         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8079           lt_cv_apple_cc_single_mod=yes
8080         else
8081           cat conftest.err >&5
8082         fi
8083         rm -rf libconftest.dylib*
8084         rm -f conftest.*
8085       fi
8086 fi
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8088 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8090 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8091 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   lt_cv_ld_exported_symbols_list=no
8095       save_LDFLAGS=$LDFLAGS
8096       echo "_main" > conftest.sym
8097       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8098       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h.  */
8100
8101 int
8102 main ()
8103 {
8104
8105   ;
8106   return 0;
8107 }
8108 _ACEOF
8109 if ac_fn_c_try_link "$LINENO"; then :
8110   lt_cv_ld_exported_symbols_list=yes
8111 else
8112   lt_cv_ld_exported_symbols_list=no
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext \
8115     conftest$ac_exeext conftest.$ac_ext
8116         LDFLAGS="$save_LDFLAGS"
8117
8118 fi
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8120 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8121     case $host_os in
8122     rhapsody* | darwin1.[012])
8123       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8124     darwin1.*)
8125       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8126     darwin*) # darwin 5.x on
8127       # if running on 10.5 or later, the deployment target defaults
8128       # to the OS version, if on x86, and 10.4, the deployment
8129       # target defaults to 10.4. Don't you love it?
8130       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8131         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8132           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8133         10.[012]*)
8134           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8135         10.*)
8136           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8137       esac
8138     ;;
8139   esac
8140     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8141       _lt_dar_single_mod='$single_module'
8142     fi
8143     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8144       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8145     else
8146       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8147     fi
8148     if test "$DSYMUTIL" != ":"; then
8149       _lt_dsymutil='~$DSYMUTIL $lib || :'
8150     else
8151       _lt_dsymutil=
8152     fi
8153     ;;
8154   esac
8155
8156 ac_ext=c
8157 ac_cpp='$CPP $CPPFLAGS'
8158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8162 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8163 # On Suns, sometimes $CPP names a directory.
8164 if test -n "$CPP" && test -d "$CPP"; then
8165   CPP=
8166 fi
8167 if test -z "$CPP"; then
8168   if test "${ac_cv_prog_CPP+set}" = set; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171       # Double quotes because CPP needs to be expanded
8172     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8173     do
8174       ac_preproc_ok=false
8175 for ac_c_preproc_warn_flag in '' yes
8176 do
8177   # Use a header file that comes with gcc, so configuring glibc
8178   # with a fresh cross-compiler works.
8179   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8180   # <limits.h> exists even on freestanding compilers.
8181   # On the NeXT, cc -E runs the code through the compiler's parser,
8182   # not just through cpp. "Syntax error" is here to catch this case.
8183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h.  */
8185 #ifdef __STDC__
8186 # include <limits.h>
8187 #else
8188 # include <assert.h>
8189 #endif
8190                      Syntax error
8191 _ACEOF
8192 if ac_fn_c_try_cpp "$LINENO"; then :
8193
8194 else
8195   # Broken: fails on valid input.
8196 continue
8197 fi
8198 rm -f conftest.err conftest.$ac_ext
8199
8200   # OK, works on sane cases.  Now check whether nonexistent headers
8201   # can be detected and how.
8202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h.  */
8204 #include <ac_nonexistent.h>
8205 _ACEOF
8206 if ac_fn_c_try_cpp "$LINENO"; then :
8207   # Broken: success on invalid input.
8208 continue
8209 else
8210   # Passes both tests.
8211 ac_preproc_ok=:
8212 break
8213 fi
8214 rm -f conftest.err conftest.$ac_ext
8215
8216 done
8217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8218 rm -f conftest.err conftest.$ac_ext
8219 if $ac_preproc_ok; then :
8220   break
8221 fi
8222
8223     done
8224     ac_cv_prog_CPP=$CPP
8225
8226 fi
8227   CPP=$ac_cv_prog_CPP
8228 else
8229   ac_cv_prog_CPP=$CPP
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8232 $as_echo "$CPP" >&6; }
8233 ac_preproc_ok=false
8234 for ac_c_preproc_warn_flag in '' yes
8235 do
8236   # Use a header file that comes with gcc, so configuring glibc
8237   # with a fresh cross-compiler works.
8238   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8239   # <limits.h> exists even on freestanding compilers.
8240   # On the NeXT, cc -E runs the code through the compiler's parser,
8241   # not just through cpp. "Syntax error" is here to catch this case.
8242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h.  */
8244 #ifdef __STDC__
8245 # include <limits.h>
8246 #else
8247 # include <assert.h>
8248 #endif
8249                      Syntax error
8250 _ACEOF
8251 if ac_fn_c_try_cpp "$LINENO"; then :
8252
8253 else
8254   # Broken: fails on valid input.
8255 continue
8256 fi
8257 rm -f conftest.err conftest.$ac_ext
8258
8259   # OK, works on sane cases.  Now check whether nonexistent headers
8260   # can be detected and how.
8261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h.  */
8263 #include <ac_nonexistent.h>
8264 _ACEOF
8265 if ac_fn_c_try_cpp "$LINENO"; then :
8266   # Broken: success on invalid input.
8267 continue
8268 else
8269   # Passes both tests.
8270 ac_preproc_ok=:
8271 break
8272 fi
8273 rm -f conftest.err conftest.$ac_ext
8274
8275 done
8276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8277 rm -f conftest.err conftest.$ac_ext
8278 if $ac_preproc_ok; then :
8279
8280 else
8281   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8283 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8284 See \`config.log' for more details." "$LINENO" 5; }
8285 fi
8286
8287 ac_ext=c
8288 ac_cpp='$CPP $CPPFLAGS'
8289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8292
8293
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8295 $as_echo_n "checking for ANSI C header files... " >&6; }
8296 if test "${ac_cv_header_stdc+set}" = set; then :
8297   $as_echo_n "(cached) " >&6
8298 else
8299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h.  */
8301 #include <stdlib.h>
8302 #include <stdarg.h>
8303 #include <string.h>
8304 #include <float.h>
8305
8306 int
8307 main ()
8308 {
8309
8310   ;
8311   return 0;
8312 }
8313 _ACEOF
8314 if ac_fn_c_try_compile "$LINENO"; then :
8315   ac_cv_header_stdc=yes
8316 else
8317   ac_cv_header_stdc=no
8318 fi
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320
8321 if test $ac_cv_header_stdc = yes; then
8322   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h.  */
8325 #include <string.h>
8326
8327 _ACEOF
8328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8329   $EGREP "memchr" >/dev/null 2>&1; then :
8330
8331 else
8332   ac_cv_header_stdc=no
8333 fi
8334 rm -f conftest*
8335
8336 fi
8337
8338 if test $ac_cv_header_stdc = yes; then
8339   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h.  */
8342 #include <stdlib.h>
8343
8344 _ACEOF
8345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8346   $EGREP "free" >/dev/null 2>&1; then :
8347
8348 else
8349   ac_cv_header_stdc=no
8350 fi
8351 rm -f conftest*
8352
8353 fi
8354
8355 if test $ac_cv_header_stdc = yes; then
8356   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8357   if test "$cross_compiling" = yes; then :
8358   :
8359 else
8360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h.  */
8362 #include <ctype.h>
8363 #include <stdlib.h>
8364 #if ((' ' & 0x0FF) == 0x020)
8365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8367 #else
8368 # define ISLOWER(c) \
8369                    (('a' <= (c) && (c) <= 'i') \
8370                      || ('j' <= (c) && (c) <= 'r') \
8371                      || ('s' <= (c) && (c) <= 'z'))
8372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8373 #endif
8374
8375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8376 int
8377 main ()
8378 {
8379   int i;
8380   for (i = 0; i < 256; i++)
8381     if (XOR (islower (i), ISLOWER (i))
8382         || toupper (i) != TOUPPER (i))
8383       return 2;
8384   return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_run "$LINENO"; then :
8388
8389 else
8390   ac_cv_header_stdc=no
8391 fi
8392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8393   conftest.$ac_objext conftest.beam conftest.$ac_ext
8394 fi
8395
8396 fi
8397 fi
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8399 $as_echo "$ac_cv_header_stdc" >&6; }
8400 if test $ac_cv_header_stdc = yes; then
8401
8402 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8403
8404 fi
8405
8406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8408                   inttypes.h stdint.h unistd.h
8409 do :
8410   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8412 "
8413 eval as_val=\$$as_ac_Header
8414    if test "x$as_val" = x""yes; then :
8415   cat >>confdefs.h <<_ACEOF
8416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8417 _ACEOF
8418
8419 fi
8420
8421 done
8422
8423
8424 for ac_header in dlfcn.h
8425 do :
8426   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8427 "
8428 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8429   cat >>confdefs.h <<_ACEOF
8430 #define HAVE_DLFCN_H 1
8431 _ACEOF
8432
8433 fi
8434
8435 done
8436
8437
8438
8439 ac_ext=cpp
8440 ac_cpp='$CXXCPP $CPPFLAGS'
8441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8444 if test -z "$CXX"; then
8445   if test -n "$CCC"; then
8446     CXX=$CCC
8447   else
8448     if test -n "$ac_tool_prefix"; then
8449   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8450   do
8451     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_CXX+set}" = set; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458   if test -n "$CXX"; then
8459   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464   IFS=$as_save_IFS
8465   test -z "$as_dir" && as_dir=.
8466     for ac_exec_ext in '' $ac_executable_extensions; do
8467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470     break 2
8471   fi
8472 done
8473   done
8474 IFS=$as_save_IFS
8475
8476 fi
8477 fi
8478 CXX=$ac_cv_prog_CXX
8479 if test -n "$CXX"; then
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8481 $as_echo "$CXX" >&6; }
8482 else
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487
8488     test -n "$CXX" && break
8489   done
8490 fi
8491 if test -z "$CXX"; then
8492   ac_ct_CXX=$CXX
8493   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8494 do
8495   # Extract the first word of "$ac_prog", so it can be a program name with args.
8496 set dummy $ac_prog; ac_word=$2
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498 $as_echo_n "checking for $ac_word... " >&6; }
8499 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8500   $as_echo_n "(cached) " >&6
8501 else
8502   if test -n "$ac_ct_CXX"; then
8503   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8504 else
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8507 do
8508   IFS=$as_save_IFS
8509   test -z "$as_dir" && as_dir=.
8510     for ac_exec_ext in '' $ac_executable_extensions; do
8511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512     ac_cv_prog_ac_ct_CXX="$ac_prog"
8513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514     break 2
8515   fi
8516 done
8517   done
8518 IFS=$as_save_IFS
8519
8520 fi
8521 fi
8522 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8523 if test -n "$ac_ct_CXX"; then
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8525 $as_echo "$ac_ct_CXX" >&6; }
8526 else
8527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8529 fi
8530
8531
8532   test -n "$ac_ct_CXX" && break
8533 done
8534
8535   if test "x$ac_ct_CXX" = x; then
8536     CXX="g++"
8537   else
8538     case $cross_compiling:$ac_tool_warned in
8539 yes:)
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8542 ac_tool_warned=yes ;;
8543 esac
8544     CXX=$ac_ct_CXX
8545   fi
8546 fi
8547
8548   fi
8549 fi
8550 # Provide some information about the compiler.
8551 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8552 set X $ac_compile
8553 ac_compiler=$2
8554 for ac_option in --version -v -V -qversion; do
8555   { { ac_try="$ac_compiler $ac_option >&5"
8556 case "(($ac_try" in
8557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558   *) ac_try_echo=$ac_try;;
8559 esac
8560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8561 $as_echo "$ac_try_echo"; } >&5
8562   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8563   ac_status=$?
8564   if test -s conftest.err; then
8565     sed '10a\
8566 ... rest of stderr output deleted ...
8567          10q' conftest.err >conftest.er1
8568     cat conftest.er1 >&5
8569     rm -f conftest.er1 conftest.err
8570   fi
8571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8572   test $ac_status = 0; }
8573 done
8574
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8576 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8578   $as_echo_n "(cached) " >&6
8579 else
8580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h.  */
8582
8583 int
8584 main ()
8585 {
8586 #ifndef __GNUC__
8587        choke me
8588 #endif
8589
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 if ac_fn_cxx_try_compile "$LINENO"; then :
8595   ac_compiler_gnu=yes
8596 else
8597   ac_compiler_gnu=no
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8601
8602 fi
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8604 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8605 if test $ac_compiler_gnu = yes; then
8606   GXX=yes
8607 else
8608   GXX=
8609 fi
8610 ac_test_CXXFLAGS=${CXXFLAGS+set}
8611 ac_save_CXXFLAGS=$CXXFLAGS
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8613 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8614 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8618    ac_cxx_werror_flag=yes
8619    ac_cv_prog_cxx_g=no
8620    CXXFLAGS="-g"
8621    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h.  */
8623
8624 int
8625 main ()
8626 {
8627
8628   ;
8629   return 0;
8630 }
8631 _ACEOF
8632 if ac_fn_cxx_try_compile "$LINENO"; then :
8633   ac_cv_prog_cxx_g=yes
8634 else
8635   CXXFLAGS=""
8636       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h.  */
8638
8639 int
8640 main ()
8641 {
8642
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 if ac_fn_cxx_try_compile "$LINENO"; then :
8648
8649 else
8650   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8651          CXXFLAGS="-g"
8652          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h.  */
8654
8655 int
8656 main ()
8657 {
8658
8659   ;
8660   return 0;
8661 }
8662 _ACEOF
8663 if ac_fn_cxx_try_compile "$LINENO"; then :
8664   ac_cv_prog_cxx_g=yes
8665 fi
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 fi
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8674 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8675 if test "$ac_test_CXXFLAGS" = set; then
8676   CXXFLAGS=$ac_save_CXXFLAGS
8677 elif test $ac_cv_prog_cxx_g = yes; then
8678   if test "$GXX" = yes; then
8679     CXXFLAGS="-g -O2"
8680   else
8681     CXXFLAGS="-g"
8682   fi
8683 else
8684   if test "$GXX" = yes; then
8685     CXXFLAGS="-O2"
8686   else
8687     CXXFLAGS=
8688   fi
8689 fi
8690 ac_ext=cpp
8691 ac_cpp='$CXXCPP $CPPFLAGS'
8692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8695
8696 depcc="$CXX"  am_compiler_list=
8697
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8699 $as_echo_n "checking dependency style of $depcc... " >&6; }
8700 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8701   $as_echo_n "(cached) " >&6
8702 else
8703   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8704   # We make a subdir and do the tests there.  Otherwise we can end up
8705   # making bogus files that we don't know about and never remove.  For
8706   # instance it was reported that on HP-UX the gcc test will end up
8707   # making a dummy file named `D' -- because `-MD' means `put the output
8708   # in D'.
8709   mkdir conftest.dir
8710   # Copy depcomp to subdir because otherwise we won't find it if we're
8711   # using a relative directory.
8712   cp "$am_depcomp" conftest.dir
8713   cd conftest.dir
8714   # We will build objects and dependencies in a subdirectory because
8715   # it helps to detect inapplicable dependency modes.  For instance
8716   # both Tru64's cc and ICC support -MD to output dependencies as a
8717   # side effect of compilation, but ICC will put the dependencies in
8718   # the current directory while Tru64 will put them in the object
8719   # directory.
8720   mkdir sub
8721
8722   am_cv_CXX_dependencies_compiler_type=none
8723   if test "$am_compiler_list" = ""; then
8724      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8725   fi
8726   am__universal=false
8727   case " $depcc " in #(
8728      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8729      esac
8730
8731   for depmode in $am_compiler_list; do
8732     # Setup a source with many dependencies, because some compilers
8733     # like to wrap large dependency lists on column 80 (with \), and
8734     # we should not choose a depcomp mode which is confused by this.
8735     #
8736     # We need to recreate these files for each test, as the compiler may
8737     # overwrite some of them when testing with obscure command lines.
8738     # This happens at least with the AIX C compiler.
8739     : > sub/conftest.c
8740     for i in 1 2 3 4 5 6; do
8741       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8742       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8743       # Solaris 8's {/usr,}/bin/sh.
8744       touch sub/conftst$i.h
8745     done
8746     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8747
8748     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8749     # mode.  It turns out that the SunPro C++ compiler does not properly
8750     # handle `-M -o', and we need to detect this.  Also, some Intel
8751     # versions had trouble with output in subdirs
8752     am__obj=sub/conftest.${OBJEXT-o}
8753     am__minus_obj="-o $am__obj"
8754     case $depmode in
8755     gcc)
8756       # This depmode causes a compiler race in universal mode.
8757       test "$am__universal" = false || continue
8758       ;;
8759     nosideeffect)
8760       # after this tag, mechanisms are not by side-effect, so they'll
8761       # only be used when explicitly requested
8762       if test "x$enable_dependency_tracking" = xyes; then
8763         continue
8764       else
8765         break
8766       fi
8767       ;;
8768     msvisualcpp | msvcmsys)
8769       # This compiler won't grok `-c -o', but also, the minuso test has
8770       # not run yet.  These depmodes are late enough in the game, and
8771       # so weak that their functioning should not be impacted.
8772       am__obj=conftest.${OBJEXT-o}
8773       am__minus_obj=
8774       ;;
8775     none) break ;;
8776     esac
8777     if depmode=$depmode \
8778        source=sub/conftest.c object=$am__obj \
8779        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8780        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8781          >/dev/null 2>conftest.err &&
8782        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8783        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8784        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8785        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8786       # icc doesn't choke on unknown options, it will just issue warnings
8787       # or remarks (even with -Werror).  So we grep stderr for any message
8788       # that says an option was ignored or not supported.
8789       # When given -MP, icc 7.0 and 7.1 complain thusly:
8790       #   icc: Command line warning: ignoring option '-M'; no argument required
8791       # The diagnosis changed in icc 8.0:
8792       #   icc: Command line remark: option '-MP' not supported
8793       if (grep 'ignoring option' conftest.err ||
8794           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8795         am_cv_CXX_dependencies_compiler_type=$depmode
8796         break
8797       fi
8798     fi
8799   done
8800
8801   cd ..
8802   rm -rf conftest.dir
8803 else
8804   am_cv_CXX_dependencies_compiler_type=none
8805 fi
8806
8807 fi
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8809 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8810 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8811
8812  if
8813   test "x$enable_dependency_tracking" != xno \
8814   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8815   am__fastdepCXX_TRUE=
8816   am__fastdepCXX_FALSE='#'
8817 else
8818   am__fastdepCXX_TRUE='#'
8819   am__fastdepCXX_FALSE=
8820 fi
8821
8822
8823 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8824     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8825     (test "X$CXX" != "Xg++"))) ; then
8826   ac_ext=cpp
8827 ac_cpp='$CXXCPP $CPPFLAGS'
8828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8832 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8833 if test -z "$CXXCPP"; then
8834   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8835   $as_echo_n "(cached) " >&6
8836 else
8837       # Double quotes because CXXCPP needs to be expanded
8838     for CXXCPP in "$CXX -E" "/lib/cpp"
8839     do
8840       ac_preproc_ok=false
8841 for ac_cxx_preproc_warn_flag in '' yes
8842 do
8843   # Use a header file that comes with gcc, so configuring glibc
8844   # with a fresh cross-compiler works.
8845   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8846   # <limits.h> exists even on freestanding compilers.
8847   # On the NeXT, cc -E runs the code through the compiler's parser,
8848   # not just through cpp. "Syntax error" is here to catch this case.
8849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h.  */
8851 #ifdef __STDC__
8852 # include <limits.h>
8853 #else
8854 # include <assert.h>
8855 #endif
8856                      Syntax error
8857 _ACEOF
8858 if ac_fn_cxx_try_cpp "$LINENO"; then :
8859
8860 else
8861   # Broken: fails on valid input.
8862 continue
8863 fi
8864 rm -f conftest.err conftest.$ac_ext
8865
8866   # OK, works on sane cases.  Now check whether nonexistent headers
8867   # can be detected and how.
8868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h.  */
8870 #include <ac_nonexistent.h>
8871 _ACEOF
8872 if ac_fn_cxx_try_cpp "$LINENO"; then :
8873   # Broken: success on invalid input.
8874 continue
8875 else
8876   # Passes both tests.
8877 ac_preproc_ok=:
8878 break
8879 fi
8880 rm -f conftest.err conftest.$ac_ext
8881
8882 done
8883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8884 rm -f conftest.err conftest.$ac_ext
8885 if $ac_preproc_ok; then :
8886   break
8887 fi
8888
8889     done
8890     ac_cv_prog_CXXCPP=$CXXCPP
8891
8892 fi
8893   CXXCPP=$ac_cv_prog_CXXCPP
8894 else
8895   ac_cv_prog_CXXCPP=$CXXCPP
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8898 $as_echo "$CXXCPP" >&6; }
8899 ac_preproc_ok=false
8900 for ac_cxx_preproc_warn_flag in '' yes
8901 do
8902   # Use a header file that comes with gcc, so configuring glibc
8903   # with a fresh cross-compiler works.
8904   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8905   # <limits.h> exists even on freestanding compilers.
8906   # On the NeXT, cc -E runs the code through the compiler's parser,
8907   # not just through cpp. "Syntax error" is here to catch this case.
8908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h.  */
8910 #ifdef __STDC__
8911 # include <limits.h>
8912 #else
8913 # include <assert.h>
8914 #endif
8915                      Syntax error
8916 _ACEOF
8917 if ac_fn_cxx_try_cpp "$LINENO"; then :
8918
8919 else
8920   # Broken: fails on valid input.
8921 continue
8922 fi
8923 rm -f conftest.err conftest.$ac_ext
8924
8925   # OK, works on sane cases.  Now check whether nonexistent headers
8926   # can be detected and how.
8927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h.  */
8929 #include <ac_nonexistent.h>
8930 _ACEOF
8931 if ac_fn_cxx_try_cpp "$LINENO"; then :
8932   # Broken: success on invalid input.
8933 continue
8934 else
8935   # Passes both tests.
8936 ac_preproc_ok=:
8937 break
8938 fi
8939 rm -f conftest.err conftest.$ac_ext
8940
8941 done
8942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8943 rm -f conftest.err conftest.$ac_ext
8944 if $ac_preproc_ok; then :
8945
8946 else
8947   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8949 _lt_caught_CXX_error=yes; }
8950 fi
8951
8952 ac_ext=cpp
8953 ac_cpp='$CXXCPP $CPPFLAGS'
8954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8957
8958 else
8959   _lt_caught_CXX_error=yes
8960 fi
8961
8962
8963
8964
8965
8966 # Set options
8967
8968
8969
8970         enable_dlopen=no
8971
8972
8973
8974             # Check whether --enable-shared was given.
8975 if test "${enable_shared+set}" = set; then :
8976   enableval=$enable_shared; p=${PACKAGE-default}
8977     case $enableval in
8978     yes) enable_shared=yes ;;
8979     no) enable_shared=no ;;
8980     *)
8981       enable_shared=no
8982       # Look at the argument we got.  We use all the common list separators.
8983       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8984       for pkg in $enableval; do
8985         IFS="$lt_save_ifs"
8986         if test "X$pkg" = "X$p"; then
8987           enable_shared=yes
8988         fi
8989       done
8990       IFS="$lt_save_ifs"
8991       ;;
8992     esac
8993 else
8994   enable_shared=yes
8995 fi
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007 # Check whether --with-pic was given.
9008 if test "${with_pic+set}" = set; then :
9009   withval=$with_pic; pic_mode="$withval"
9010 else
9011   pic_mode=default
9012 fi
9013
9014
9015 test -z "$pic_mode" && pic_mode=default
9016
9017
9018
9019
9020
9021
9022
9023   # Check whether --enable-fast-install was given.
9024 if test "${enable_fast_install+set}" = set; then :
9025   enableval=$enable_fast_install; p=${PACKAGE-default}
9026     case $enableval in
9027     yes) enable_fast_install=yes ;;
9028     no) enable_fast_install=no ;;
9029     *)
9030       enable_fast_install=no
9031       # Look at the argument we got.  We use all the common list separators.
9032       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9033       for pkg in $enableval; do
9034         IFS="$lt_save_ifs"
9035         if test "X$pkg" = "X$p"; then
9036           enable_fast_install=yes
9037         fi
9038       done
9039       IFS="$lt_save_ifs"
9040       ;;
9041     esac
9042 else
9043   enable_fast_install=yes
9044 fi
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056 # This can be used to rebuild libtool when needed
9057 LIBTOOL_DEPS="$ltmain"
9058
9059 # Always use our own libtool.
9060 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086 test -z "$LN_S" && LN_S="ln -s"
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101 if test -n "${ZSH_VERSION+set}" ; then
9102    setopt NO_GLOB_SUBST
9103 fi
9104
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9106 $as_echo_n "checking for objdir... " >&6; }
9107 if test "${lt_cv_objdir+set}" = set; then :
9108   $as_echo_n "(cached) " >&6
9109 else
9110   rm -f .libs 2>/dev/null
9111 mkdir .libs 2>/dev/null
9112 if test -d .libs; then
9113   lt_cv_objdir=.libs
9114 else
9115   # MS-DOS does not allow filenames that begin with a dot.
9116   lt_cv_objdir=_libs
9117 fi
9118 rmdir .libs 2>/dev/null
9119 fi
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9121 $as_echo "$lt_cv_objdir" >&6; }
9122 objdir=$lt_cv_objdir
9123
9124
9125
9126
9127
9128 cat >>confdefs.h <<_ACEOF
9129 #define LT_OBJDIR "$lt_cv_objdir/"
9130 _ACEOF
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148 case $host_os in
9149 aix3*)
9150   # AIX sometimes has problems with the GCC collect2 program.  For some
9151   # reason, if we set the COLLECT_NAMES environment variable, the problems
9152   # vanish in a puff of smoke.
9153   if test "X${COLLECT_NAMES+set}" != Xset; then
9154     COLLECT_NAMES=
9155     export COLLECT_NAMES
9156   fi
9157   ;;
9158 esac
9159
9160 # Sed substitution that helps us do robust quoting.  It backslashifies
9161 # metacharacters that are still active within double-quoted strings.
9162 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9163
9164 # Same as above, but do not quote variable references.
9165 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9166
9167 # Sed substitution to delay expansion of an escaped shell variable in a
9168 # double_quote_subst'ed string.
9169 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9170
9171 # Sed substitution to delay expansion of an escaped single quote.
9172 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9173
9174 # Sed substitution to avoid accidental globbing in evaled expressions
9175 no_glob_subst='s/\*/\\\*/g'
9176
9177 # Global variables:
9178 ofile=libtool
9179 can_build_shared=yes
9180
9181 # All known linkers require a `.a' archive for static linking (except MSVC,
9182 # which needs '.lib').
9183 libext=a
9184
9185 with_gnu_ld="$lt_cv_prog_gnu_ld"
9186
9187 old_CC="$CC"
9188 old_CFLAGS="$CFLAGS"
9189
9190 # Set sane defaults for various variables
9191 test -z "$CC" && CC=cc
9192 test -z "$LTCC" && LTCC=$CC
9193 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9194 test -z "$LD" && LD=ld
9195 test -z "$ac_objext" && ac_objext=o
9196
9197 for cc_temp in $compiler""; do
9198   case $cc_temp in
9199     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9200     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9201     \-*) ;;
9202     *) break;;
9203   esac
9204 done
9205 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9206
9207
9208 # Only perform the check for file, if the check method requires it
9209 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9210 case $deplibs_check_method in
9211 file_magic*)
9212   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9214 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9215 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9216   $as_echo_n "(cached) " >&6
9217 else
9218   case $MAGIC_CMD in
9219 [\\/*] |  ?:[\\/]*)
9220   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9221   ;;
9222 *)
9223   lt_save_MAGIC_CMD="$MAGIC_CMD"
9224   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9225   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9226   for ac_dir in $ac_dummy; do
9227     IFS="$lt_save_ifs"
9228     test -z "$ac_dir" && ac_dir=.
9229     if test -f $ac_dir/${ac_tool_prefix}file; then
9230       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9231       if test -n "$file_magic_test_file"; then
9232         case $deplibs_check_method in
9233         "file_magic "*)
9234           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9235           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9236           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9237             $EGREP "$file_magic_regex" > /dev/null; then
9238             :
9239           else
9240             cat <<_LT_EOF 1>&2
9241
9242 *** Warning: the command libtool uses to detect shared libraries,
9243 *** $file_magic_cmd, produces output that libtool cannot recognize.
9244 *** The result is that libtool may fail to recognize shared libraries
9245 *** as such.  This will affect the creation of libtool libraries that
9246 *** depend on shared libraries, but programs linked with such libtool
9247 *** libraries will work regardless of this problem.  Nevertheless, you
9248 *** may want to report the problem to your system manager and/or to
9249 *** bug-libtool@gnu.org
9250
9251 _LT_EOF
9252           fi ;;
9253         esac
9254       fi
9255       break
9256     fi
9257   done
9258   IFS="$lt_save_ifs"
9259   MAGIC_CMD="$lt_save_MAGIC_CMD"
9260   ;;
9261 esac
9262 fi
9263
9264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9265 if test -n "$MAGIC_CMD"; then
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9267 $as_echo "$MAGIC_CMD" >&6; }
9268 else
9269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9271 fi
9272
9273
9274
9275
9276
9277 if test -z "$lt_cv_path_MAGIC_CMD"; then
9278   if test -n "$ac_tool_prefix"; then
9279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9280 $as_echo_n "checking for file... " >&6; }
9281 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9282   $as_echo_n "(cached) " >&6
9283 else
9284   case $MAGIC_CMD in
9285 [\\/*] |  ?:[\\/]*)
9286   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9287   ;;
9288 *)
9289   lt_save_MAGIC_CMD="$MAGIC_CMD"
9290   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9291   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9292   for ac_dir in $ac_dummy; do
9293     IFS="$lt_save_ifs"
9294     test -z "$ac_dir" && ac_dir=.
9295     if test -f $ac_dir/file; then
9296       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9297       if test -n "$file_magic_test_file"; then
9298         case $deplibs_check_method in
9299         "file_magic "*)
9300           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9301           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9302           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9303             $EGREP "$file_magic_regex" > /dev/null; then
9304             :
9305           else
9306             cat <<_LT_EOF 1>&2
9307
9308 *** Warning: the command libtool uses to detect shared libraries,
9309 *** $file_magic_cmd, produces output that libtool cannot recognize.
9310 *** The result is that libtool may fail to recognize shared libraries
9311 *** as such.  This will affect the creation of libtool libraries that
9312 *** depend on shared libraries, but programs linked with such libtool
9313 *** libraries will work regardless of this problem.  Nevertheless, you
9314 *** may want to report the problem to your system manager and/or to
9315 *** bug-libtool@gnu.org
9316
9317 _LT_EOF
9318           fi ;;
9319         esac
9320       fi
9321       break
9322     fi
9323   done
9324   IFS="$lt_save_ifs"
9325   MAGIC_CMD="$lt_save_MAGIC_CMD"
9326   ;;
9327 esac
9328 fi
9329
9330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9331 if test -n "$MAGIC_CMD"; then
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9333 $as_echo "$MAGIC_CMD" >&6; }
9334 else
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9337 fi
9338
9339
9340   else
9341     MAGIC_CMD=:
9342   fi
9343 fi
9344
9345   fi
9346   ;;
9347 esac
9348
9349 # Use C for the default configuration in the libtool script
9350
9351 lt_save_CC="$CC"
9352 ac_ext=c
9353 ac_cpp='$CPP $CPPFLAGS'
9354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9357
9358
9359 # Source file extension for C test sources.
9360 ac_ext=c
9361
9362 # Object file extension for compiled C test sources.
9363 objext=o
9364 objext=$objext
9365
9366 # Code to be used in simple compile tests
9367 lt_simple_compile_test_code="int some_variable = 0;"
9368
9369 # Code to be used in simple link tests
9370 lt_simple_link_test_code='int main(){return(0);}'
9371
9372
9373
9374
9375
9376
9377
9378 # If no C compiler was specified, use CC.
9379 LTCC=${LTCC-"$CC"}
9380
9381 # If no C compiler flags were specified, use CFLAGS.
9382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9383
9384 # Allow CC to be a program name with arguments.
9385 compiler=$CC
9386
9387 # Save the default compiler, since it gets overwritten when the other
9388 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9389 compiler_DEFAULT=$CC
9390
9391 # save warnings/boilerplate of simple test code
9392 ac_outfile=conftest.$ac_objext
9393 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9395 _lt_compiler_boilerplate=`cat conftest.err`
9396 $RM conftest*
9397
9398 ac_outfile=conftest.$ac_objext
9399 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9401 _lt_linker_boilerplate=`cat conftest.err`
9402 $RM -r conftest*
9403
9404
9405 ## CAVEAT EMPTOR:
9406 ## There is no encapsulation within the following macros, do not change
9407 ## the running order or otherwise move them around unless you know exactly
9408 ## what you are doing...
9409 if test -n "$compiler"; then
9410
9411 lt_prog_compiler_no_builtin_flag=
9412
9413 if test "$GCC" = yes; then
9414   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9415
9416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9417 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9418 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9419   $as_echo_n "(cached) " >&6
9420 else
9421   lt_cv_prog_compiler_rtti_exceptions=no
9422    ac_outfile=conftest.$ac_objext
9423    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424    lt_compiler_flag="-fno-rtti -fno-exceptions"
9425    # Insert the option either (1) after the last *FLAGS variable, or
9426    # (2) before a word containing "conftest.", or (3) at the end.
9427    # Note that $ac_compile itself does not contain backslashes and begins
9428    # with a dollar sign (not a hyphen), so the echo should work correctly.
9429    # The option is referenced via a variable to avoid confusing sed.
9430    lt_compile=`echo "$ac_compile" | $SED \
9431    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9432    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9433    -e 's:$: $lt_compiler_flag:'`
9434    (eval echo "\"\$as_me:9434: $lt_compile\"" >&5)
9435    (eval "$lt_compile" 2>conftest.err)
9436    ac_status=$?
9437    cat conftest.err >&5
9438    echo "$as_me:9438: \$? = $ac_status" >&5
9439    if (exit $ac_status) && test -s "$ac_outfile"; then
9440      # The compiler can only warn and ignore the option if not recognized
9441      # So say no if there are warnings other than the usual output.
9442      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9443      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9445        lt_cv_prog_compiler_rtti_exceptions=yes
9446      fi
9447    fi
9448    $RM conftest*
9449
9450 fi
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9452 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9453
9454 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9455     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9456 else
9457     :
9458 fi
9459
9460 fi
9461
9462
9463
9464
9465
9466
9467   lt_prog_compiler_wl=
9468 lt_prog_compiler_pic=
9469 lt_prog_compiler_static=
9470
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9472 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9473
9474   if test "$GCC" = yes; then
9475     lt_prog_compiler_wl='-Wl,'
9476     lt_prog_compiler_static='-static'
9477
9478     case $host_os in
9479       aix*)
9480       # All AIX code is PIC.
9481       if test "$host_cpu" = ia64; then
9482         # AIX 5 now supports IA64 processor
9483         lt_prog_compiler_static='-Bstatic'
9484       fi
9485       ;;
9486
9487     amigaos*)
9488       case $host_cpu in
9489       powerpc)
9490             # see comment about AmigaOS4 .so support
9491             lt_prog_compiler_pic='-fPIC'
9492         ;;
9493       m68k)
9494             # FIXME: we need at least 68020 code to build shared libraries, but
9495             # adding the `-m68020' flag to GCC prevents building anything better,
9496             # like `-m68040'.
9497             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9498         ;;
9499       esac
9500       ;;
9501
9502     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9503       # PIC is the default for these OSes.
9504       ;;
9505
9506     mingw* | cygwin* | pw32* | os2* | cegcc*)
9507       # This hack is so that the source file can tell whether it is being
9508       # built for inclusion in a dll (and should export symbols for example).
9509       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9510       # (--disable-auto-import) libraries
9511       lt_prog_compiler_pic='-DDLL_EXPORT'
9512       ;;
9513
9514     darwin* | rhapsody*)
9515       # PIC is the default on this platform
9516       # Common symbols not allowed in MH_DYLIB files
9517       lt_prog_compiler_pic='-fno-common'
9518       ;;
9519
9520     hpux*)
9521       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9522       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9523       # sets the default TLS model and affects inlining.
9524       case $host_cpu in
9525       hppa*64*)
9526         # +Z the default
9527         ;;
9528       *)
9529         lt_prog_compiler_pic='-fPIC'
9530         ;;
9531       esac
9532       ;;
9533
9534     interix[3-9]*)
9535       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9536       # Instead, we relocate shared libraries at runtime.
9537       ;;
9538
9539     msdosdjgpp*)
9540       # Just because we use GCC doesn't mean we suddenly get shared libraries
9541       # on systems that don't support them.
9542       lt_prog_compiler_can_build_shared=no
9543       enable_shared=no
9544       ;;
9545
9546     *nto* | *qnx*)
9547       # QNX uses GNU C++, but need to define -shared option too, otherwise
9548       # it will coredump.
9549       lt_prog_compiler_pic='-fPIC -shared'
9550       ;;
9551
9552     sysv4*MP*)
9553       if test -d /usr/nec; then
9554         lt_prog_compiler_pic=-Kconform_pic
9555       fi
9556       ;;
9557
9558     *)
9559       lt_prog_compiler_pic='-fPIC'
9560       ;;
9561     esac
9562   else
9563     # PORTME Check for flag to pass linker flags through the system compiler.
9564     case $host_os in
9565     aix*)
9566       lt_prog_compiler_wl='-Wl,'
9567       if test "$host_cpu" = ia64; then
9568         # AIX 5 now supports IA64 processor
9569         lt_prog_compiler_static='-Bstatic'
9570       else
9571         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9572       fi
9573       ;;
9574
9575     mingw* | cygwin* | pw32* | os2* | cegcc*)
9576       # This hack is so that the source file can tell whether it is being
9577       # built for inclusion in a dll (and should export symbols for example).
9578       lt_prog_compiler_pic='-DDLL_EXPORT'
9579       ;;
9580
9581     hpux9* | hpux10* | hpux11*)
9582       lt_prog_compiler_wl='-Wl,'
9583       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9584       # not for PA HP-UX.
9585       case $host_cpu in
9586       hppa*64*|ia64*)
9587         # +Z the default
9588         ;;
9589       *)
9590         lt_prog_compiler_pic='+Z'
9591         ;;
9592       esac
9593       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9594       lt_prog_compiler_static='${wl}-a ${wl}archive'
9595       ;;
9596
9597     irix5* | irix6* | nonstopux*)
9598       lt_prog_compiler_wl='-Wl,'
9599       # PIC (with -KPIC) is the default.
9600       lt_prog_compiler_static='-non_shared'
9601       ;;
9602
9603     linux* | k*bsd*-gnu)
9604       case $cc_basename in
9605       # old Intel for x86_64 which still supported -KPIC.
9606       ecc*)
9607         lt_prog_compiler_wl='-Wl,'
9608         lt_prog_compiler_pic='-KPIC'
9609         lt_prog_compiler_static='-static'
9610         ;;
9611       # icc used to be incompatible with GCC.
9612       # ICC 10 doesn't accept -KPIC any more.
9613       icc* | ifort*)
9614         lt_prog_compiler_wl='-Wl,'
9615         lt_prog_compiler_pic='-fPIC'
9616         lt_prog_compiler_static='-static'
9617         ;;
9618       # Lahey Fortran 8.1.
9619       lf95*)
9620         lt_prog_compiler_wl='-Wl,'
9621         lt_prog_compiler_pic='--shared'
9622         lt_prog_compiler_static='--static'
9623         ;;
9624       pgcc* | pgf77* | pgf90* | pgf95*)
9625         # Portland Group compilers (*not* the Pentium gcc compiler,
9626         # which looks to be a dead project)
9627         lt_prog_compiler_wl='-Wl,'
9628         lt_prog_compiler_pic='-fpic'
9629         lt_prog_compiler_static='-Bstatic'
9630         ;;
9631       ccc*)
9632         lt_prog_compiler_wl='-Wl,'
9633         # All Alpha code is PIC.
9634         lt_prog_compiler_static='-non_shared'
9635         ;;
9636       xl*)
9637         # IBM XL C 8.0/Fortran 10.1 on PPC
9638         lt_prog_compiler_wl='-Wl,'
9639         lt_prog_compiler_pic='-qpic'
9640         lt_prog_compiler_static='-qstaticlink'
9641         ;;
9642       *)
9643         case `$CC -V 2>&1 | sed 5q` in
9644         *Sun\ C*)
9645           # Sun C 5.9
9646           lt_prog_compiler_pic='-KPIC'
9647           lt_prog_compiler_static='-Bstatic'
9648           lt_prog_compiler_wl='-Wl,'
9649           ;;
9650         *Sun\ F*)
9651           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9652           lt_prog_compiler_pic='-KPIC'
9653           lt_prog_compiler_static='-Bstatic'
9654           lt_prog_compiler_wl=''
9655           ;;
9656         esac
9657         ;;
9658       esac
9659       ;;
9660
9661     newsos6)
9662       lt_prog_compiler_pic='-KPIC'
9663       lt_prog_compiler_static='-Bstatic'
9664       ;;
9665
9666     *nto* | *qnx*)
9667       # QNX uses GNU C++, but need to define -shared option too, otherwise
9668       # it will coredump.
9669       lt_prog_compiler_pic='-fPIC -shared'
9670       ;;
9671
9672     osf3* | osf4* | osf5*)
9673       lt_prog_compiler_wl='-Wl,'
9674       # All OSF/1 code is PIC.
9675       lt_prog_compiler_static='-non_shared'
9676       ;;
9677
9678     rdos*)
9679       lt_prog_compiler_static='-non_shared'
9680       ;;
9681
9682     solaris*)
9683       lt_prog_compiler_pic='-KPIC'
9684       lt_prog_compiler_static='-Bstatic'
9685       case $cc_basename in
9686       f77* | f90* | f95*)
9687         lt_prog_compiler_wl='-Qoption ld ';;
9688       *)
9689         lt_prog_compiler_wl='-Wl,';;
9690       esac
9691       ;;
9692
9693     sunos4*)
9694       lt_prog_compiler_wl='-Qoption ld '
9695       lt_prog_compiler_pic='-PIC'
9696       lt_prog_compiler_static='-Bstatic'
9697       ;;
9698
9699     sysv4 | sysv4.2uw2* | sysv4.3*)
9700       lt_prog_compiler_wl='-Wl,'
9701       lt_prog_compiler_pic='-KPIC'
9702       lt_prog_compiler_static='-Bstatic'
9703       ;;
9704
9705     sysv4*MP*)
9706       if test -d /usr/nec ;then
9707         lt_prog_compiler_pic='-Kconform_pic'
9708         lt_prog_compiler_static='-Bstatic'
9709       fi
9710       ;;
9711
9712     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9713       lt_prog_compiler_wl='-Wl,'
9714       lt_prog_compiler_pic='-KPIC'
9715       lt_prog_compiler_static='-Bstatic'
9716       ;;
9717
9718     unicos*)
9719       lt_prog_compiler_wl='-Wl,'
9720       lt_prog_compiler_can_build_shared=no
9721       ;;
9722
9723     uts4*)
9724       lt_prog_compiler_pic='-pic'
9725       lt_prog_compiler_static='-Bstatic'
9726       ;;
9727
9728     *)
9729       lt_prog_compiler_can_build_shared=no
9730       ;;
9731     esac
9732   fi
9733
9734 case $host_os in
9735   # For platforms which do not support PIC, -DPIC is meaningless:
9736   *djgpp*)
9737     lt_prog_compiler_pic=
9738     ;;
9739   *)
9740     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9741     ;;
9742 esac
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9744 $as_echo "$lt_prog_compiler_pic" >&6; }
9745
9746
9747
9748
9749
9750
9751 #
9752 # Check to make sure the PIC flag actually works.
9753 #
9754 if test -n "$lt_prog_compiler_pic"; then
9755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9756 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9757 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9758   $as_echo_n "(cached) " >&6
9759 else
9760   lt_cv_prog_compiler_pic_works=no
9761    ac_outfile=conftest.$ac_objext
9762    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9763    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9764    # Insert the option either (1) after the last *FLAGS variable, or
9765    # (2) before a word containing "conftest.", or (3) at the end.
9766    # Note that $ac_compile itself does not contain backslashes and begins
9767    # with a dollar sign (not a hyphen), so the echo should work correctly.
9768    # The option is referenced via a variable to avoid confusing sed.
9769    lt_compile=`echo "$ac_compile" | $SED \
9770    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9772    -e 's:$: $lt_compiler_flag:'`
9773    (eval echo "\"\$as_me:9773: $lt_compile\"" >&5)
9774    (eval "$lt_compile" 2>conftest.err)
9775    ac_status=$?
9776    cat conftest.err >&5
9777    echo "$as_me:9777: \$? = $ac_status" >&5
9778    if (exit $ac_status) && test -s "$ac_outfile"; then
9779      # The compiler can only warn and ignore the option if not recognized
9780      # So say no if there are warnings other than the usual output.
9781      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9782      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9783      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9784        lt_cv_prog_compiler_pic_works=yes
9785      fi
9786    fi
9787    $RM conftest*
9788
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9791 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9792
9793 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9794     case $lt_prog_compiler_pic in
9795      "" | " "*) ;;
9796      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9797      esac
9798 else
9799     lt_prog_compiler_pic=
9800      lt_prog_compiler_can_build_shared=no
9801 fi
9802
9803 fi
9804
9805
9806
9807
9808
9809
9810 #
9811 # Check to make sure the static flag actually works.
9812 #
9813 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9815 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9816 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9817   $as_echo_n "(cached) " >&6
9818 else
9819   lt_cv_prog_compiler_static_works=no
9820    save_LDFLAGS="$LDFLAGS"
9821    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9822    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9823    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9824      # The linker can only warn and ignore the option if not recognized
9825      # So say no if there are warnings
9826      if test -s conftest.err; then
9827        # Append any errors to the config.log.
9828        cat conftest.err 1>&5
9829        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9830        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9831        if diff conftest.exp conftest.er2 >/dev/null; then
9832          lt_cv_prog_compiler_static_works=yes
9833        fi
9834      else
9835        lt_cv_prog_compiler_static_works=yes
9836      fi
9837    fi
9838    $RM -r conftest*
9839    LDFLAGS="$save_LDFLAGS"
9840
9841 fi
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9843 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9844
9845 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9846     :
9847 else
9848     lt_prog_compiler_static=
9849 fi
9850
9851
9852
9853
9854
9855
9856
9857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9858 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9859 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9860   $as_echo_n "(cached) " >&6
9861 else
9862   lt_cv_prog_compiler_c_o=no
9863    $RM -r conftest 2>/dev/null
9864    mkdir conftest
9865    cd conftest
9866    mkdir out
9867    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9868
9869    lt_compiler_flag="-o out/conftest2.$ac_objext"
9870    # Insert the option either (1) after the last *FLAGS variable, or
9871    # (2) before a word containing "conftest.", or (3) at the end.
9872    # Note that $ac_compile itself does not contain backslashes and begins
9873    # with a dollar sign (not a hyphen), so the echo should work correctly.
9874    lt_compile=`echo "$ac_compile" | $SED \
9875    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9876    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9877    -e 's:$: $lt_compiler_flag:'`
9878    (eval echo "\"\$as_me:9878: $lt_compile\"" >&5)
9879    (eval "$lt_compile" 2>out/conftest.err)
9880    ac_status=$?
9881    cat out/conftest.err >&5
9882    echo "$as_me:9882: \$? = $ac_status" >&5
9883    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9884    then
9885      # The compiler can only warn and ignore the option if not recognized
9886      # So say no if there are warnings
9887      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9888      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9889      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9890        lt_cv_prog_compiler_c_o=yes
9891      fi
9892    fi
9893    chmod u+w . 2>&5
9894    $RM conftest*
9895    # SGI C++ compiler will create directory out/ii_files/ for
9896    # template instantiation
9897    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9898    $RM out/* && rmdir out
9899    cd ..
9900    $RM -r conftest
9901    $RM conftest*
9902
9903 fi
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9905 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9906
9907
9908
9909
9910
9911
9912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9913 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9914 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9915   $as_echo_n "(cached) " >&6
9916 else
9917   lt_cv_prog_compiler_c_o=no
9918    $RM -r conftest 2>/dev/null
9919    mkdir conftest
9920    cd conftest
9921    mkdir out
9922    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9923
9924    lt_compiler_flag="-o out/conftest2.$ac_objext"
9925    # Insert the option either (1) after the last *FLAGS variable, or
9926    # (2) before a word containing "conftest.", or (3) at the end.
9927    # Note that $ac_compile itself does not contain backslashes and begins
9928    # with a dollar sign (not a hyphen), so the echo should work correctly.
9929    lt_compile=`echo "$ac_compile" | $SED \
9930    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9931    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9932    -e 's:$: $lt_compiler_flag:'`
9933    (eval echo "\"\$as_me:9933: $lt_compile\"" >&5)
9934    (eval "$lt_compile" 2>out/conftest.err)
9935    ac_status=$?
9936    cat out/conftest.err >&5
9937    echo "$as_me:9937: \$? = $ac_status" >&5
9938    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9939    then
9940      # The compiler can only warn and ignore the option if not recognized
9941      # So say no if there are warnings
9942      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9943      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9944      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9945        lt_cv_prog_compiler_c_o=yes
9946      fi
9947    fi
9948    chmod u+w . 2>&5
9949    $RM conftest*
9950    # SGI C++ compiler will create directory out/ii_files/ for
9951    # template instantiation
9952    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9953    $RM out/* && rmdir out
9954    cd ..
9955    $RM -r conftest
9956    $RM conftest*
9957
9958 fi
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9960 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9961
9962
9963
9964
9965 hard_links="nottested"
9966 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9967   # do not overwrite the value of need_locks provided by the user
9968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9969 $as_echo_n "checking if we can lock with hard links... " >&6; }
9970   hard_links=yes
9971   $RM conftest*
9972   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9973   touch conftest.a
9974   ln conftest.a conftest.b 2>&5 || hard_links=no
9975   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9977 $as_echo "$hard_links" >&6; }
9978   if test "$hard_links" = no; then
9979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9980 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9981     need_locks=warn
9982   fi
9983 else
9984   need_locks=no
9985 fi
9986
9987
9988
9989
9990
9991
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9993 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9994
9995   runpath_var=
9996   allow_undefined_flag=
9997   always_export_symbols=no
9998   archive_cmds=
9999   archive_expsym_cmds=
10000   compiler_needs_object=no
10001   enable_shared_with_static_runtimes=no
10002   export_dynamic_flag_spec=
10003   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10004   hardcode_automatic=no
10005   hardcode_direct=no
10006   hardcode_direct_absolute=no
10007   hardcode_libdir_flag_spec=
10008   hardcode_libdir_flag_spec_ld=
10009   hardcode_libdir_separator=
10010   hardcode_minus_L=no
10011   hardcode_shlibpath_var=unsupported
10012   inherit_rpath=no
10013   link_all_deplibs=unknown
10014   module_cmds=
10015   module_expsym_cmds=
10016   old_archive_from_new_cmds=
10017   old_archive_from_expsyms_cmds=
10018   thread_safe_flag_spec=
10019   whole_archive_flag_spec=
10020   # include_expsyms should be a list of space-separated symbols to be *always*
10021   # included in the symbol list
10022   include_expsyms=
10023   # exclude_expsyms can be an extended regexp of symbols to exclude
10024   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10025   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10026   # as well as any symbol that contains `d'.
10027   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10028   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10029   # platforms (ab)use it in PIC code, but their linkers get confused if
10030   # the symbol is explicitly referenced.  Since portable code cannot
10031   # rely on this symbol name, it's probably fine to never include it in
10032   # preloaded symbol tables.
10033   # Exclude shared library initialization/finalization symbols.
10034   extract_expsyms_cmds=
10035
10036   case $host_os in
10037   cygwin* | mingw* | pw32* | cegcc*)
10038     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10039     # When not using gcc, we currently assume that we are using
10040     # Microsoft Visual C++.
10041     if test "$GCC" != yes; then
10042       with_gnu_ld=no
10043     fi
10044     ;;
10045   interix*)
10046     # we just hope/assume this is gcc and not c89 (= MSVC++)
10047     with_gnu_ld=yes
10048     ;;
10049   openbsd*)
10050     with_gnu_ld=no
10051     ;;
10052   esac
10053
10054   ld_shlibs=yes
10055   if test "$with_gnu_ld" = yes; then
10056     # If archive_cmds runs LD, not CC, wlarc should be empty
10057     wlarc='${wl}'
10058
10059     # Set some defaults for GNU ld with shared library support. These
10060     # are reset later if shared libraries are not supported. Putting them
10061     # here allows them to be overridden if necessary.
10062     runpath_var=LD_RUN_PATH
10063     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10064     export_dynamic_flag_spec='${wl}--export-dynamic'
10065     # ancient GNU ld didn't support --whole-archive et. al.
10066     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10067       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10068     else
10069       whole_archive_flag_spec=
10070     fi
10071     supports_anon_versioning=no
10072     case `$LD -v 2>&1` in
10073       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10074       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10075       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10076       *\ 2.11.*) ;; # other 2.11 versions
10077       *) supports_anon_versioning=yes ;;
10078     esac
10079
10080     # See if GNU ld supports shared libraries.
10081     case $host_os in
10082     aix[3-9]*)
10083       # On AIX/PPC, the GNU linker is very broken
10084       if test "$host_cpu" != ia64; then
10085         ld_shlibs=no
10086         cat <<_LT_EOF 1>&2
10087
10088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10089 *** to be unable to reliably create shared libraries on AIX.
10090 *** Therefore, libtool is disabling shared libraries support.  If you
10091 *** really care for shared libraries, you may want to modify your PATH
10092 *** so that a non-GNU linker is found, and then restart.
10093
10094 _LT_EOF
10095       fi
10096       ;;
10097
10098     amigaos*)
10099       case $host_cpu in
10100       powerpc)
10101             # see comment about AmigaOS4 .so support
10102             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103             archive_expsym_cmds=''
10104         ;;
10105       m68k)
10106             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)'
10107             hardcode_libdir_flag_spec='-L$libdir'
10108             hardcode_minus_L=yes
10109         ;;
10110       esac
10111       ;;
10112
10113     beos*)
10114       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10115         allow_undefined_flag=unsupported
10116         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10117         # support --undefined.  This deserves some investigation.  FIXME
10118         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10119       else
10120         ld_shlibs=no
10121       fi
10122       ;;
10123
10124     cygwin* | mingw* | pw32* | cegcc*)
10125       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10126       # as there is no search path for DLLs.
10127       hardcode_libdir_flag_spec='-L$libdir'
10128       allow_undefined_flag=unsupported
10129       always_export_symbols=no
10130       enable_shared_with_static_runtimes=yes
10131       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10132
10133       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10134         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10135         # If the export-symbols file already is a .def file (1st line
10136         # is EXPORTS), use it as is; otherwise, prepend...
10137         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10138           cp $export_symbols $output_objdir/$soname.def;
10139         else
10140           echo EXPORTS > $output_objdir/$soname.def;
10141           cat $export_symbols >> $output_objdir/$soname.def;
10142         fi~
10143         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10144       else
10145         ld_shlibs=no
10146       fi
10147       ;;
10148
10149     interix[3-9]*)
10150       hardcode_direct=no
10151       hardcode_shlibpath_var=no
10152       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10153       export_dynamic_flag_spec='${wl}-E'
10154       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10155       # Instead, shared libraries are loaded at an image base (0x10000000 by
10156       # default) and relocated if they conflict, which is a slow very memory
10157       # consuming and fragmenting process.  To avoid this, we pick a random,
10158       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10159       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10160       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10161       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'
10162       ;;
10163
10164     gnu* | linux* | tpf* | k*bsd*-gnu)
10165       tmp_diet=no
10166       if test "$host_os" = linux-dietlibc; then
10167         case $cc_basename in
10168           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10169         esac
10170       fi
10171       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10172          && test "$tmp_diet" = no
10173       then
10174         tmp_addflag=
10175         tmp_sharedflag='-shared'
10176         case $cc_basename,$host_cpu in
10177         pgcc*)                          # Portland Group C compiler
10178           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'
10179           tmp_addflag=' $pic_flag'
10180           ;;
10181         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10182           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'
10183           tmp_addflag=' $pic_flag -Mnomain' ;;
10184         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10185           tmp_addflag=' -i_dynamic' ;;
10186         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10187           tmp_addflag=' -i_dynamic -nofor_main' ;;
10188         ifc* | ifort*)                  # Intel Fortran compiler
10189           tmp_addflag=' -nofor_main' ;;
10190         lf95*)                          # Lahey Fortran 8.1
10191           whole_archive_flag_spec=
10192           tmp_sharedflag='--shared' ;;
10193         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10194           tmp_sharedflag='-qmkshrobj'
10195           tmp_addflag= ;;
10196         esac
10197         case `$CC -V 2>&1 | sed 5q` in
10198         *Sun\ C*)                       # Sun C 5.9
10199           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'
10200           compiler_needs_object=yes
10201           tmp_sharedflag='-G' ;;
10202         *Sun\ F*)                       # Sun Fortran 8.3
10203           tmp_sharedflag='-G' ;;
10204         esac
10205         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206
10207         if test "x$supports_anon_versioning" = xyes; then
10208           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10209             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10210             echo "local: *; };" >> $output_objdir/$libname.ver~
10211             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10212         fi
10213
10214         case $cc_basename in
10215         xlf*)
10216           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10217           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10218           hardcode_libdir_flag_spec=
10219           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10220           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10221           if test "x$supports_anon_versioning" = xyes; then
10222             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10223               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10224               echo "local: *; };" >> $output_objdir/$libname.ver~
10225               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10226           fi
10227           ;;
10228         esac
10229       else
10230         ld_shlibs=no
10231       fi
10232       ;;
10233
10234     netbsd*)
10235       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10236         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10237         wlarc=
10238       else
10239         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10241       fi
10242       ;;
10243
10244     solaris*)
10245       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10246         ld_shlibs=no
10247         cat <<_LT_EOF 1>&2
10248
10249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10250 *** create shared libraries on Solaris systems.  Therefore, libtool
10251 *** is disabling shared libraries support.  We urge you to upgrade GNU
10252 *** binutils to release 2.9.1 or newer.  Another option is to modify
10253 *** your PATH or compiler configuration so that the native linker is
10254 *** used, and then restart.
10255
10256 _LT_EOF
10257       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10260       else
10261         ld_shlibs=no
10262       fi
10263       ;;
10264
10265     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10266       case `$LD -v 2>&1` in
10267         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10268         ld_shlibs=no
10269         cat <<_LT_EOF 1>&2
10270
10271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10272 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10273 *** is disabling shared libraries support.  We urge you to upgrade GNU
10274 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10275 *** your PATH or compiler configuration so that the native linker is
10276 *** used, and then restart.
10277
10278 _LT_EOF
10279         ;;
10280         *)
10281           # For security reasons, it is highly recommended that you always
10282           # use absolute paths for naming shared libraries, and exclude the
10283           # DT_RUNPATH tag from executables and libraries.  But doing so
10284           # requires that you compile everything twice, which is a pain.
10285           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10286             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10287             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10288             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10289           else
10290             ld_shlibs=no
10291           fi
10292         ;;
10293       esac
10294       ;;
10295
10296     sunos4*)
10297       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10298       wlarc=
10299       hardcode_direct=yes
10300       hardcode_shlibpath_var=no
10301       ;;
10302
10303     *)
10304       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10305         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10307       else
10308         ld_shlibs=no
10309       fi
10310       ;;
10311     esac
10312
10313     if test "$ld_shlibs" = no; then
10314       runpath_var=
10315       hardcode_libdir_flag_spec=
10316       export_dynamic_flag_spec=
10317       whole_archive_flag_spec=
10318     fi
10319   else
10320     # PORTME fill in a description of your system's linker (not GNU ld)
10321     case $host_os in
10322     aix3*)
10323       allow_undefined_flag=unsupported
10324       always_export_symbols=yes
10325       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'
10326       # Note: this linker hardcodes the directories in LIBPATH if there
10327       # are no directories specified by -L.
10328       hardcode_minus_L=yes
10329       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10330         # Neither direct hardcoding nor static linking is supported with a
10331         # broken collect2.
10332         hardcode_direct=unsupported
10333       fi
10334       ;;
10335
10336     aix[4-9]*)
10337       if test "$host_cpu" = ia64; then
10338         # On IA64, the linker does run time linking by default, so we don't
10339         # have to do anything special.
10340         aix_use_runtimelinking=no
10341         exp_sym_flag='-Bexport'
10342         no_entry_flag=""
10343       else
10344         # If we're using GNU nm, then we don't want the "-C" option.
10345         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10346         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10347           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'
10348         else
10349           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'
10350         fi
10351         aix_use_runtimelinking=no
10352
10353         # Test if we are trying to use run time linking or normal
10354         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10355         # need to do runtime linking.
10356         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10357           for ld_flag in $LDFLAGS; do
10358           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10359             aix_use_runtimelinking=yes
10360             break
10361           fi
10362           done
10363           ;;
10364         esac
10365
10366         exp_sym_flag='-bexport'
10367         no_entry_flag='-bnoentry'
10368       fi
10369
10370       # When large executables or shared objects are built, AIX ld can
10371       # have problems creating the table of contents.  If linking a library
10372       # or program results in "error TOC overflow" add -mminimal-toc to
10373       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10374       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10375
10376       archive_cmds=''
10377       hardcode_direct=yes
10378       hardcode_direct_absolute=yes
10379       hardcode_libdir_separator=':'
10380       link_all_deplibs=yes
10381       file_list_spec='${wl}-f,'
10382
10383       if test "$GCC" = yes; then
10384         case $host_os in aix4.[012]|aix4.[012].*)
10385         # We only want to do this on AIX 4.2 and lower, the check
10386         # below for broken collect2 doesn't work under 4.3+
10387           collect2name=`${CC} -print-prog-name=collect2`
10388           if test -f "$collect2name" &&
10389            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10390           then
10391           # We have reworked collect2
10392           :
10393           else
10394           # We have old collect2
10395           hardcode_direct=unsupported
10396           # It fails to find uninstalled libraries when the uninstalled
10397           # path is not listed in the libpath.  Setting hardcode_minus_L
10398           # to unsupported forces relinking
10399           hardcode_minus_L=yes
10400           hardcode_libdir_flag_spec='-L$libdir'
10401           hardcode_libdir_separator=
10402           fi
10403           ;;
10404         esac
10405         shared_flag='-shared'
10406         if test "$aix_use_runtimelinking" = yes; then
10407           shared_flag="$shared_flag "'${wl}-G'
10408         fi
10409       else
10410         # not using gcc
10411         if test "$host_cpu" = ia64; then
10412         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10413         # chokes on -Wl,-G. The following line is correct:
10414           shared_flag='-G'
10415         else
10416           if test "$aix_use_runtimelinking" = yes; then
10417             shared_flag='${wl}-G'
10418           else
10419             shared_flag='${wl}-bM:SRE'
10420           fi
10421         fi
10422       fi
10423
10424       export_dynamic_flag_spec='${wl}-bexpall'
10425       # It seems that -bexpall does not export symbols beginning with
10426       # underscore (_), so it is better to generate a list of symbols to export.
10427       always_export_symbols=yes
10428       if test "$aix_use_runtimelinking" = yes; then
10429         # Warning - without using the other runtime loading flags (-brtl),
10430         # -berok will link without error, but may produce a broken library.
10431         allow_undefined_flag='-berok'
10432         # Determine the default libpath from the value encoded in an
10433         # empty executable.
10434         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h.  */
10436
10437 int
10438 main ()
10439 {
10440
10441   ;
10442   return 0;
10443 }
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10446
10447 lt_aix_libpath_sed='
10448     /Import File Strings/,/^$/ {
10449         /^0/ {
10450             s/^0  *\(.*\)$/\1/
10451             p
10452         }
10453     }'
10454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10455 # Check for a 64-bit object if we didn't find anything.
10456 if test -z "$aix_libpath"; then
10457   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458 fi
10459 fi
10460 rm -f core conftest.err conftest.$ac_objext \
10461     conftest$ac_exeext conftest.$ac_ext
10462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10463
10464         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10465         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10466       else
10467         if test "$host_cpu" = ia64; then
10468           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10469           allow_undefined_flag="-z nodefs"
10470           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"
10471         else
10472          # Determine the default libpath from the value encoded in an
10473          # empty executable.
10474          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h.  */
10476
10477 int
10478 main ()
10479 {
10480
10481   ;
10482   return 0;
10483 }
10484 _ACEOF
10485 if ac_fn_c_try_link "$LINENO"; then :
10486
10487 lt_aix_libpath_sed='
10488     /Import File Strings/,/^$/ {
10489         /^0/ {
10490             s/^0  *\(.*\)$/\1/
10491             p
10492         }
10493     }'
10494 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10495 # Check for a 64-bit object if we didn't find anything.
10496 if test -z "$aix_libpath"; then
10497   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10498 fi
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext \
10501     conftest$ac_exeext conftest.$ac_ext
10502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10503
10504          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10505           # Warning - without using the other run time loading flags,
10506           # -berok will link without error, but may produce a broken library.
10507           no_undefined_flag=' ${wl}-bernotok'
10508           allow_undefined_flag=' ${wl}-berok'
10509           # Exported symbols can be pulled into shared objects from archives
10510           whole_archive_flag_spec='$convenience'
10511           archive_cmds_need_lc=yes
10512           # This is similar to how AIX traditionally builds its shared libraries.
10513           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'
10514         fi
10515       fi
10516       ;;
10517
10518     amigaos*)
10519       case $host_cpu in
10520       powerpc)
10521             # see comment about AmigaOS4 .so support
10522             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10523             archive_expsym_cmds=''
10524         ;;
10525       m68k)
10526             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)'
10527             hardcode_libdir_flag_spec='-L$libdir'
10528             hardcode_minus_L=yes
10529         ;;
10530       esac
10531       ;;
10532
10533     bsdi[45]*)
10534       export_dynamic_flag_spec=-rdynamic
10535       ;;
10536
10537     cygwin* | mingw* | pw32* | cegcc*)
10538       # When not using gcc, we currently assume that we are using
10539       # Microsoft Visual C++.
10540       # hardcode_libdir_flag_spec is actually meaningless, as there is
10541       # no search path for DLLs.
10542       hardcode_libdir_flag_spec=' '
10543       allow_undefined_flag=unsupported
10544       # Tell ltmain to make .lib files, not .a files.
10545       libext=lib
10546       # Tell ltmain to make .dll files, not .so files.
10547       shrext_cmds=".dll"
10548       # FIXME: Setting linknames here is a bad hack.
10549       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10550       # The linker will automatically build a .lib file if we build a DLL.
10551       old_archive_from_new_cmds='true'
10552       # FIXME: Should let the user specify the lib program.
10553       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10554       fix_srcfile_path='`cygpath -w "$srcfile"`'
10555       enable_shared_with_static_runtimes=yes
10556       ;;
10557
10558     darwin* | rhapsody*)
10559
10560
10561   archive_cmds_need_lc=no
10562   hardcode_direct=no
10563   hardcode_automatic=yes
10564   hardcode_shlibpath_var=unsupported
10565   whole_archive_flag_spec=''
10566   link_all_deplibs=yes
10567   allow_undefined_flag="$_lt_dar_allow_undefined"
10568   case $cc_basename in
10569      ifort*) _lt_dar_can_shared=yes ;;
10570      *) _lt_dar_can_shared=$GCC ;;
10571   esac
10572   if test "$_lt_dar_can_shared" = "yes"; then
10573     output_verbose_link_cmd=echo
10574     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10575     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10576     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10577     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10578
10579   else
10580   ld_shlibs=no
10581   fi
10582
10583       ;;
10584
10585     dgux*)
10586       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10587       hardcode_libdir_flag_spec='-L$libdir'
10588       hardcode_shlibpath_var=no
10589       ;;
10590
10591     freebsd1*)
10592       ld_shlibs=no
10593       ;;
10594
10595     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10596     # support.  Future versions do this automatically, but an explicit c++rt0.o
10597     # does not break anything, and helps significantly (at the cost of a little
10598     # extra space).
10599     freebsd2.2*)
10600       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10601       hardcode_libdir_flag_spec='-R$libdir'
10602       hardcode_direct=yes
10603       hardcode_shlibpath_var=no
10604       ;;
10605
10606     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10607     freebsd2*)
10608       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10609       hardcode_direct=yes
10610       hardcode_minus_L=yes
10611       hardcode_shlibpath_var=no
10612       ;;
10613
10614     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10615     freebsd* | dragonfly*)
10616       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10617       hardcode_libdir_flag_spec='-R$libdir'
10618       hardcode_direct=yes
10619       hardcode_shlibpath_var=no
10620       ;;
10621
10622     hpux9*)
10623       if test "$GCC" = yes; then
10624         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'
10625       else
10626         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'
10627       fi
10628       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10629       hardcode_libdir_separator=:
10630       hardcode_direct=yes
10631
10632       # hardcode_minus_L: Not really in the search PATH,
10633       # but as the default location of the library.
10634       hardcode_minus_L=yes
10635       export_dynamic_flag_spec='${wl}-E'
10636       ;;
10637
10638     hpux10*)
10639       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10640         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10641       else
10642         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10643       fi
10644       if test "$with_gnu_ld" = no; then
10645         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646         hardcode_libdir_flag_spec_ld='+b $libdir'
10647         hardcode_libdir_separator=:
10648         hardcode_direct=yes
10649         hardcode_direct_absolute=yes
10650         export_dynamic_flag_spec='${wl}-E'
10651         # hardcode_minus_L: Not really in the search PATH,
10652         # but as the default location of the library.
10653         hardcode_minus_L=yes
10654       fi
10655       ;;
10656
10657     hpux11*)
10658       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10659         case $host_cpu in
10660         hppa*64*)
10661           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10662           ;;
10663         ia64*)
10664           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10665           ;;
10666         *)
10667           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10668           ;;
10669         esac
10670       else
10671         case $host_cpu in
10672         hppa*64*)
10673           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10674           ;;
10675         ia64*)
10676           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10677           ;;
10678         *)
10679           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10680           ;;
10681         esac
10682       fi
10683       if test "$with_gnu_ld" = no; then
10684         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10685         hardcode_libdir_separator=:
10686
10687         case $host_cpu in
10688         hppa*64*|ia64*)
10689           hardcode_direct=no
10690           hardcode_shlibpath_var=no
10691           ;;
10692         *)
10693           hardcode_direct=yes
10694           hardcode_direct_absolute=yes
10695           export_dynamic_flag_spec='${wl}-E'
10696
10697           # hardcode_minus_L: Not really in the search PATH,
10698           # but as the default location of the library.
10699           hardcode_minus_L=yes
10700           ;;
10701         esac
10702       fi
10703       ;;
10704
10705     irix5* | irix6* | nonstopux*)
10706       if test "$GCC" = yes; then
10707         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10708         # Try to use the -exported_symbol ld option, if it does not
10709         # work, assume that -exports_file does not work either and
10710         # implicitly export all symbols.
10711         save_LDFLAGS="$LDFLAGS"
10712         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10713         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h.  */
10715 int foo(void) {}
10716 _ACEOF
10717 if ac_fn_c_try_link "$LINENO"; then :
10718   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10719
10720 fi
10721 rm -f core conftest.err conftest.$ac_objext \
10722     conftest$ac_exeext conftest.$ac_ext
10723         LDFLAGS="$save_LDFLAGS"
10724       else
10725         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10726         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10727       fi
10728       archive_cmds_need_lc='no'
10729       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10730       hardcode_libdir_separator=:
10731       inherit_rpath=yes
10732       link_all_deplibs=yes
10733       ;;
10734
10735     netbsd*)
10736       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10737         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10738       else
10739         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10740       fi
10741       hardcode_libdir_flag_spec='-R$libdir'
10742       hardcode_direct=yes
10743       hardcode_shlibpath_var=no
10744       ;;
10745
10746     newsos6)
10747       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10748       hardcode_direct=yes
10749       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10750       hardcode_libdir_separator=:
10751       hardcode_shlibpath_var=no
10752       ;;
10753
10754     *nto* | *qnx*)
10755       ;;
10756
10757     openbsd*)
10758       if test -f /usr/libexec/ld.so; then
10759         hardcode_direct=yes
10760         hardcode_shlibpath_var=no
10761         hardcode_direct_absolute=yes
10762         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10763           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10764           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10765           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10766           export_dynamic_flag_spec='${wl}-E'
10767         else
10768           case $host_os in
10769            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10770              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10771              hardcode_libdir_flag_spec='-R$libdir'
10772              ;;
10773            *)
10774              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10775              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10776              ;;
10777           esac
10778         fi
10779       else
10780         ld_shlibs=no
10781       fi
10782       ;;
10783
10784     os2*)
10785       hardcode_libdir_flag_spec='-L$libdir'
10786       hardcode_minus_L=yes
10787       allow_undefined_flag=unsupported
10788       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'
10789       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10790       ;;
10791
10792     osf3*)
10793       if test "$GCC" = yes; then
10794         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10795         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10796       else
10797         allow_undefined_flag=' -expect_unresolved \*'
10798         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10799       fi
10800       archive_cmds_need_lc='no'
10801       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10802       hardcode_libdir_separator=:
10803       ;;
10804
10805     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10806       if test "$GCC" = yes; then
10807         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10808         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10809         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10810       else
10811         allow_undefined_flag=' -expect_unresolved \*'
10812         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10813         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10814         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10815
10816         # Both c and cxx compiler support -rpath directly
10817         hardcode_libdir_flag_spec='-rpath $libdir'
10818       fi
10819       archive_cmds_need_lc='no'
10820       hardcode_libdir_separator=:
10821       ;;
10822
10823     solaris*)
10824       no_undefined_flag=' -z defs'
10825       if test "$GCC" = yes; then
10826         wlarc='${wl}'
10827         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10828         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10829           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10830       else
10831         case `$CC -V 2>&1` in
10832         *"Compilers 5.0"*)
10833           wlarc=''
10834           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10835           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10836           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10837           ;;
10838         *)
10839           wlarc='${wl}'
10840           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10841           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10842           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10843           ;;
10844         esac
10845       fi
10846       hardcode_libdir_flag_spec='-R$libdir'
10847       hardcode_shlibpath_var=no
10848       case $host_os in
10849       solaris2.[0-5] | solaris2.[0-5].*) ;;
10850       *)
10851         # The compiler driver will combine and reorder linker options,
10852         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10853         # but is careful enough not to reorder.
10854         # Supported since Solaris 2.6 (maybe 2.5.1?)
10855         if test "$GCC" = yes; then
10856           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10857         else
10858           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10859         fi
10860         ;;
10861       esac
10862       link_all_deplibs=yes
10863       ;;
10864
10865     sunos4*)
10866       if test "x$host_vendor" = xsequent; then
10867         # Use $CC to link under sequent, because it throws in some extra .o
10868         # files that make .init and .fini sections work.
10869         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10870       else
10871         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10872       fi
10873       hardcode_libdir_flag_spec='-L$libdir'
10874       hardcode_direct=yes
10875       hardcode_minus_L=yes
10876       hardcode_shlibpath_var=no
10877       ;;
10878
10879     sysv4)
10880       case $host_vendor in
10881         sni)
10882           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10883           hardcode_direct=yes # is this really true???
10884         ;;
10885         siemens)
10886           ## LD is ld it makes a PLAMLIB
10887           ## CC just makes a GrossModule.
10888           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10889           reload_cmds='$CC -r -o $output$reload_objs'
10890           hardcode_direct=no
10891         ;;
10892         motorola)
10893           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10894           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10895         ;;
10896       esac
10897       runpath_var='LD_RUN_PATH'
10898       hardcode_shlibpath_var=no
10899       ;;
10900
10901     sysv4.3*)
10902       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903       hardcode_shlibpath_var=no
10904       export_dynamic_flag_spec='-Bexport'
10905       ;;
10906
10907     sysv4*MP*)
10908       if test -d /usr/nec; then
10909         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910         hardcode_shlibpath_var=no
10911         runpath_var=LD_RUN_PATH
10912         hardcode_runpath_var=yes
10913         ld_shlibs=yes
10914       fi
10915       ;;
10916
10917     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10918       no_undefined_flag='${wl}-z,text'
10919       archive_cmds_need_lc=no
10920       hardcode_shlibpath_var=no
10921       runpath_var='LD_RUN_PATH'
10922
10923       if test "$GCC" = yes; then
10924         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926       else
10927         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10929       fi
10930       ;;
10931
10932     sysv5* | sco3.2v5* | sco5v6*)
10933       # Note: We can NOT use -z defs as we might desire, because we do not
10934       # link with -lc, and that would cause any symbols used from libc to
10935       # always be unresolved, which means just about no library would
10936       # ever link correctly.  If we're not using GNU ld we use -z text
10937       # though, which does catch some bad symbols but isn't as heavy-handed
10938       # as -z defs.
10939       no_undefined_flag='${wl}-z,text'
10940       allow_undefined_flag='${wl}-z,nodefs'
10941       archive_cmds_need_lc=no
10942       hardcode_shlibpath_var=no
10943       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10944       hardcode_libdir_separator=':'
10945       link_all_deplibs=yes
10946       export_dynamic_flag_spec='${wl}-Bexport'
10947       runpath_var='LD_RUN_PATH'
10948
10949       if test "$GCC" = yes; then
10950         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952       else
10953         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955       fi
10956       ;;
10957
10958     uts4*)
10959       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10960       hardcode_libdir_flag_spec='-L$libdir'
10961       hardcode_shlibpath_var=no
10962       ;;
10963
10964     *)
10965       ld_shlibs=no
10966       ;;
10967     esac
10968
10969     if test x$host_vendor = xsni; then
10970       case $host in
10971       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10972         export_dynamic_flag_spec='${wl}-Blargedynsym'
10973         ;;
10974       esac
10975     fi
10976   fi
10977
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10979 $as_echo "$ld_shlibs" >&6; }
10980 test "$ld_shlibs" = no && can_build_shared=no
10981
10982 with_gnu_ld=$with_gnu_ld
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998 #
10999 # Do we need to explicitly link libc?
11000 #
11001 case "x$archive_cmds_need_lc" in
11002 x|xyes)
11003   # Assume -lc should be added
11004   archive_cmds_need_lc=yes
11005
11006   if test "$enable_shared" = yes && test "$GCC" = yes; then
11007     case $archive_cmds in
11008     *'~'*)
11009       # FIXME: we may have to deal with multi-command sequences.
11010       ;;
11011     '$CC '*)
11012       # Test whether the compiler implicitly links with -lc since on some
11013       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11014       # to ld, don't add -lc before -lgcc.
11015       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11016 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11017       $RM conftest*
11018       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11019
11020       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11021   (eval $ac_compile) 2>&5
11022   ac_status=$?
11023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024   test $ac_status = 0; } 2>conftest.err; then
11025         soname=conftest
11026         lib=conftest
11027         libobjs=conftest.$ac_objext
11028         deplibs=
11029         wl=$lt_prog_compiler_wl
11030         pic_flag=$lt_prog_compiler_pic
11031         compiler_flags=-v
11032         linker_flags=-v
11033         verstring=
11034         output_objdir=.
11035         libname=conftest
11036         lt_save_allow_undefined_flag=$allow_undefined_flag
11037         allow_undefined_flag=
11038         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11039   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11040   ac_status=$?
11041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042   test $ac_status = 0; }
11043         then
11044           archive_cmds_need_lc=no
11045         else
11046           archive_cmds_need_lc=yes
11047         fi
11048         allow_undefined_flag=$lt_save_allow_undefined_flag
11049       else
11050         cat conftest.err 1>&5
11051       fi
11052       $RM conftest*
11053       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11054 $as_echo "$archive_cmds_need_lc" >&6; }
11055       ;;
11056     esac
11057   fi
11058   ;;
11059 esac
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11218 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11219
11220 if test "$GCC" = yes; then
11221   case $host_os in
11222     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11223     *) lt_awk_arg="/^libraries:/" ;;
11224   esac
11225   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11226   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11227     # if the path contains ";" then we assume it to be the separator
11228     # otherwise default to the standard path separator (i.e. ":") - it is
11229     # assumed that no part of a normal pathname contains ";" but that should
11230     # okay in the real world where ";" in dirpaths is itself problematic.
11231     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11232   else
11233     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11234   fi
11235   # Ok, now we have the path, separated by spaces, we can step through it
11236   # and add multilib dir if necessary.
11237   lt_tmp_lt_search_path_spec=
11238   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11239   for lt_sys_path in $lt_search_path_spec; do
11240     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11241       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11242     else
11243       test -d "$lt_sys_path" && \
11244         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11245     fi
11246   done
11247   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11248 BEGIN {RS=" "; FS="/|\n";} {
11249   lt_foo="";
11250   lt_count=0;
11251   for (lt_i = NF; lt_i > 0; lt_i--) {
11252     if ($lt_i != "" && $lt_i != ".") {
11253       if ($lt_i == "..") {
11254         lt_count++;
11255       } else {
11256         if (lt_count == 0) {
11257           lt_foo="/" $lt_i lt_foo;
11258         } else {
11259           lt_count--;
11260         }
11261       }
11262     }
11263   }
11264   if (lt_foo != "") { lt_freq[lt_foo]++; }
11265   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11266 }'`
11267   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11268 else
11269   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11270 fi
11271 library_names_spec=
11272 libname_spec='lib$name'
11273 soname_spec=
11274 shrext_cmds=".so"
11275 postinstall_cmds=
11276 postuninstall_cmds=
11277 finish_cmds=
11278 finish_eval=
11279 shlibpath_var=
11280 shlibpath_overrides_runpath=unknown
11281 version_type=none
11282 dynamic_linker="$host_os ld.so"
11283 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11284 need_lib_prefix=unknown
11285 hardcode_into_libs=no
11286
11287 # when you set need_version to no, make sure it does not cause -set_version
11288 # flags to be left without arguments
11289 need_version=unknown
11290
11291 case $host_os in
11292 aix3*)
11293   version_type=linux
11294   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11295   shlibpath_var=LIBPATH
11296
11297   # AIX 3 has no versioning support, so we append a major version to the name.
11298   soname_spec='${libname}${release}${shared_ext}$major'
11299   ;;
11300
11301 aix[4-9]*)
11302   version_type=linux
11303   need_lib_prefix=no
11304   need_version=no
11305   hardcode_into_libs=yes
11306   if test "$host_cpu" = ia64; then
11307     # AIX 5 supports IA64
11308     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11309     shlibpath_var=LD_LIBRARY_PATH
11310   else
11311     # With GCC up to 2.95.x, collect2 would create an import file
11312     # for dependence libraries.  The import file would start with
11313     # the line `#! .'.  This would cause the generated library to
11314     # depend on `.', always an invalid library.  This was fixed in
11315     # development snapshots of GCC prior to 3.0.
11316     case $host_os in
11317       aix4 | aix4.[01] | aix4.[01].*)
11318       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11319            echo ' yes '
11320            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11321         :
11322       else
11323         can_build_shared=no
11324       fi
11325       ;;
11326     esac
11327     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11328     # soname into executable. Probably we can add versioning support to
11329     # collect2, so additional links can be useful in future.
11330     if test "$aix_use_runtimelinking" = yes; then
11331       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11332       # instead of lib<name>.a to let people know that these are not
11333       # typical AIX shared libraries.
11334       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335     else
11336       # We preserve .a as extension for shared libraries through AIX4.2
11337       # and later when we are not doing run time linking.
11338       library_names_spec='${libname}${release}.a $libname.a'
11339       soname_spec='${libname}${release}${shared_ext}$major'
11340     fi
11341     shlibpath_var=LIBPATH
11342   fi
11343   ;;
11344
11345 amigaos*)
11346   case $host_cpu in
11347   powerpc)
11348     # Since July 2007 AmigaOS4 officially supports .so libraries.
11349     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351     ;;
11352   m68k)
11353     library_names_spec='$libname.ixlibrary $libname.a'
11354     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11355     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'
11356     ;;
11357   esac
11358   ;;
11359
11360 beos*)
11361   library_names_spec='${libname}${shared_ext}'
11362   dynamic_linker="$host_os ld.so"
11363   shlibpath_var=LIBRARY_PATH
11364   ;;
11365
11366 bsdi[45]*)
11367   version_type=linux
11368   need_version=no
11369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370   soname_spec='${libname}${release}${shared_ext}$major'
11371   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11372   shlibpath_var=LD_LIBRARY_PATH
11373   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11374   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11375   # the default ld.so.conf also contains /usr/contrib/lib and
11376   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11377   # libtool to hard-code these into programs
11378   ;;
11379
11380 cygwin* | mingw* | pw32* | cegcc*)
11381   version_type=windows
11382   shrext_cmds=".dll"
11383   need_version=no
11384   need_lib_prefix=no
11385
11386   case $GCC,$host_os in
11387   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11388     library_names_spec='$libname.dll.a'
11389     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11390     postinstall_cmds='base_file=`basename \${file}`~
11391       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11392       dldir=$destdir/`dirname \$dlpath`~
11393       test -d \$dldir || mkdir -p \$dldir~
11394       $install_prog $dir/$dlname \$dldir/$dlname~
11395       chmod a+x \$dldir/$dlname~
11396       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11397         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11398       fi'
11399     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11400       dlpath=$dir/\$dldll~
11401        $RM \$dlpath'
11402     shlibpath_overrides_runpath=yes
11403
11404     case $host_os in
11405     cygwin*)
11406       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11407       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11408       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11409       ;;
11410     mingw* | cegcc*)
11411       # MinGW DLLs use traditional 'lib' prefix
11412       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11413       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11414       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11415         # It is most probably a Windows format PATH printed by
11416         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11417         # path with ; separators, and with drive letters. We can handle the
11418         # drive letters (cygwin fileutils understands them), so leave them,
11419         # especially as we might pass files found there to a mingw objdump,
11420         # which wouldn't understand a cygwinified path. Ahh.
11421         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11422       else
11423         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11424       fi
11425       ;;
11426     pw32*)
11427       # pw32 DLLs use 'pw' prefix rather than 'lib'
11428       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11429       ;;
11430     esac
11431     ;;
11432
11433   *)
11434     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11435     ;;
11436   esac
11437   dynamic_linker='Win32 ld.exe'
11438   # FIXME: first we should search . and the directory the executable is in
11439   shlibpath_var=PATH
11440   ;;
11441
11442 darwin* | rhapsody*)
11443   dynamic_linker="$host_os dyld"
11444   version_type=darwin
11445   need_lib_prefix=no
11446   need_version=no
11447   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11448   soname_spec='${libname}${release}${major}$shared_ext'
11449   shlibpath_overrides_runpath=yes
11450   shlibpath_var=DYLD_LIBRARY_PATH
11451   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11452
11453   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11454   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11455   ;;
11456
11457 dgux*)
11458   version_type=linux
11459   need_lib_prefix=no
11460   need_version=no
11461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11462   soname_spec='${libname}${release}${shared_ext}$major'
11463   shlibpath_var=LD_LIBRARY_PATH
11464   ;;
11465
11466 freebsd1*)
11467   dynamic_linker=no
11468   ;;
11469
11470 freebsd* | dragonfly*)
11471   # DragonFly does not have aout.  When/if they implement a new
11472   # versioning mechanism, adjust this.
11473   if test -x /usr/bin/objformat; then
11474     objformat=`/usr/bin/objformat`
11475   else
11476     case $host_os in
11477     freebsd[123]*) objformat=aout ;;
11478     *) objformat=elf ;;
11479     esac
11480   fi
11481   version_type=freebsd-$objformat
11482   case $version_type in
11483     freebsd-elf*)
11484       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11485       need_version=no
11486       need_lib_prefix=no
11487       ;;
11488     freebsd-*)
11489       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11490       need_version=yes
11491       ;;
11492   esac
11493   shlibpath_var=LD_LIBRARY_PATH
11494   case $host_os in
11495   freebsd2*)
11496     shlibpath_overrides_runpath=yes
11497     ;;
11498   freebsd3.[01]* | freebsdelf3.[01]*)
11499     shlibpath_overrides_runpath=yes
11500     hardcode_into_libs=yes
11501     ;;
11502   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11503   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11504     shlibpath_overrides_runpath=no
11505     hardcode_into_libs=yes
11506     ;;
11507   *) # from 4.6 on, and DragonFly
11508     shlibpath_overrides_runpath=yes
11509     hardcode_into_libs=yes
11510     ;;
11511   esac
11512   ;;
11513
11514 gnu*)
11515   version_type=linux
11516   need_lib_prefix=no
11517   need_version=no
11518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11519   soname_spec='${libname}${release}${shared_ext}$major'
11520   shlibpath_var=LD_LIBRARY_PATH
11521   hardcode_into_libs=yes
11522   ;;
11523
11524 hpux9* | hpux10* | hpux11*)
11525   # Give a soname corresponding to the major version so that dld.sl refuses to
11526   # link against other versions.
11527   version_type=sunos
11528   need_lib_prefix=no
11529   need_version=no
11530   case $host_cpu in
11531   ia64*)
11532     shrext_cmds='.so'
11533     hardcode_into_libs=yes
11534     dynamic_linker="$host_os dld.so"
11535     shlibpath_var=LD_LIBRARY_PATH
11536     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538     soname_spec='${libname}${release}${shared_ext}$major'
11539     if test "X$HPUX_IA64_MODE" = X32; then
11540       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11541     else
11542       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11543     fi
11544     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11545     ;;
11546   hppa*64*)
11547     shrext_cmds='.sl'
11548     hardcode_into_libs=yes
11549     dynamic_linker="$host_os dld.sl"
11550     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11551     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553     soname_spec='${libname}${release}${shared_ext}$major'
11554     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11555     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11556     ;;
11557   *)
11558     shrext_cmds='.sl'
11559     dynamic_linker="$host_os dld.sl"
11560     shlibpath_var=SHLIB_PATH
11561     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563     soname_spec='${libname}${release}${shared_ext}$major'
11564     ;;
11565   esac
11566   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11567   postinstall_cmds='chmod 555 $lib'
11568   ;;
11569
11570 interix[3-9]*)
11571   version_type=linux
11572   need_lib_prefix=no
11573   need_version=no
11574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11575   soname_spec='${libname}${release}${shared_ext}$major'
11576   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11577   shlibpath_var=LD_LIBRARY_PATH
11578   shlibpath_overrides_runpath=no
11579   hardcode_into_libs=yes
11580   ;;
11581
11582 irix5* | irix6* | nonstopux*)
11583   case $host_os in
11584     nonstopux*) version_type=nonstopux ;;
11585     *)
11586         if test "$lt_cv_prog_gnu_ld" = yes; then
11587                 version_type=linux
11588         else
11589                 version_type=irix
11590         fi ;;
11591   esac
11592   need_lib_prefix=no
11593   need_version=no
11594   soname_spec='${libname}${release}${shared_ext}$major'
11595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11596   case $host_os in
11597   irix5* | nonstopux*)
11598     libsuff= shlibsuff=
11599     ;;
11600   *)
11601     case $LD in # libtool.m4 will add one of these switches to LD
11602     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11603       libsuff= shlibsuff= libmagic=32-bit;;
11604     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11605       libsuff=32 shlibsuff=N32 libmagic=N32;;
11606     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11607       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11608     *) libsuff= shlibsuff= libmagic=never-match;;
11609     esac
11610     ;;
11611   esac
11612   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11613   shlibpath_overrides_runpath=no
11614   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11615   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11616   hardcode_into_libs=yes
11617   ;;
11618
11619 # No shared lib support for Linux oldld, aout, or coff.
11620 linux*oldld* | linux*aout* | linux*coff*)
11621   dynamic_linker=no
11622   ;;
11623
11624 # This must be Linux ELF.
11625 linux* | k*bsd*-gnu)
11626   version_type=linux
11627   need_lib_prefix=no
11628   need_version=no
11629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630   soname_spec='${libname}${release}${shared_ext}$major'
11631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11632   shlibpath_var=LD_LIBRARY_PATH
11633   shlibpath_overrides_runpath=no
11634   # Some binutils ld are patched to set DT_RUNPATH
11635   save_LDFLAGS=$LDFLAGS
11636   save_libdir=$libdir
11637   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11638        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h.  */
11641
11642 int
11643 main ()
11644 {
11645
11646   ;
11647   return 0;
11648 }
11649 _ACEOF
11650 if ac_fn_c_try_link "$LINENO"; then :
11651   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11652   shlibpath_overrides_runpath=yes
11653 fi
11654 fi
11655 rm -f core conftest.err conftest.$ac_objext \
11656     conftest$ac_exeext conftest.$ac_ext
11657   LDFLAGS=$save_LDFLAGS
11658   libdir=$save_libdir
11659
11660   # This implies no fast_install, which is unacceptable.
11661   # Some rework will be needed to allow for fast_install
11662   # before this can be enabled.
11663   hardcode_into_libs=yes
11664
11665   # Append ld.so.conf contents to the search path
11666   if test -f /etc/ld.so.conf; then
11667     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' ' '`
11668     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11669   fi
11670
11671   # We used to test for /lib/ld.so.1 and disable shared libraries on
11672   # powerpc, because MkLinux only supported shared libraries with the
11673   # GNU dynamic linker.  Since this was broken with cross compilers,
11674   # most powerpc-linux boxes support dynamic linking these days and
11675   # people can always --disable-shared, the test was removed, and we
11676   # assume the GNU/Linux dynamic linker is in use.
11677   dynamic_linker='GNU/Linux ld.so'
11678   ;;
11679
11680 netbsd*)
11681   version_type=sunos
11682   need_lib_prefix=no
11683   need_version=no
11684   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11686     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11687     dynamic_linker='NetBSD (a.out) ld.so'
11688   else
11689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11690     soname_spec='${libname}${release}${shared_ext}$major'
11691     dynamic_linker='NetBSD ld.elf_so'
11692   fi
11693   shlibpath_var=LD_LIBRARY_PATH
11694   shlibpath_overrides_runpath=yes
11695   hardcode_into_libs=yes
11696   ;;
11697
11698 newsos6)
11699   version_type=linux
11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701   shlibpath_var=LD_LIBRARY_PATH
11702   shlibpath_overrides_runpath=yes
11703   ;;
11704
11705 *nto* | *qnx*)
11706   version_type=qnx
11707   need_lib_prefix=no
11708   need_version=no
11709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710   soname_spec='${libname}${release}${shared_ext}$major'
11711   shlibpath_var=LD_LIBRARY_PATH
11712   shlibpath_overrides_runpath=no
11713   hardcode_into_libs=yes
11714   dynamic_linker='ldqnx.so'
11715   ;;
11716
11717 openbsd*)
11718   version_type=sunos
11719   sys_lib_dlsearch_path_spec="/usr/lib"
11720   need_lib_prefix=no
11721   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11722   case $host_os in
11723     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11724     *)                          need_version=no  ;;
11725   esac
11726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11727   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11728   shlibpath_var=LD_LIBRARY_PATH
11729   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11730     case $host_os in
11731       openbsd2.[89] | openbsd2.[89].*)
11732         shlibpath_overrides_runpath=no
11733         ;;
11734       *)
11735         shlibpath_overrides_runpath=yes
11736         ;;
11737       esac
11738   else
11739     shlibpath_overrides_runpath=yes
11740   fi
11741   ;;
11742
11743 os2*)
11744   libname_spec='$name'
11745   shrext_cmds=".dll"
11746   need_lib_prefix=no
11747   library_names_spec='$libname${shared_ext} $libname.a'
11748   dynamic_linker='OS/2 ld.exe'
11749   shlibpath_var=LIBPATH
11750   ;;
11751
11752 osf3* | osf4* | osf5*)
11753   version_type=osf
11754   need_lib_prefix=no
11755   need_version=no
11756   soname_spec='${libname}${release}${shared_ext}$major'
11757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758   shlibpath_var=LD_LIBRARY_PATH
11759   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11760   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11761   ;;
11762
11763 rdos*)
11764   dynamic_linker=no
11765   ;;
11766
11767 solaris*)
11768   version_type=linux
11769   need_lib_prefix=no
11770   need_version=no
11771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772   soname_spec='${libname}${release}${shared_ext}$major'
11773   shlibpath_var=LD_LIBRARY_PATH
11774   shlibpath_overrides_runpath=yes
11775   hardcode_into_libs=yes
11776   # ldd complains unless libraries are executable
11777   postinstall_cmds='chmod +x $lib'
11778   ;;
11779
11780 sunos4*)
11781   version_type=sunos
11782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11783   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11784   shlibpath_var=LD_LIBRARY_PATH
11785   shlibpath_overrides_runpath=yes
11786   if test "$with_gnu_ld" = yes; then
11787     need_lib_prefix=no
11788   fi
11789   need_version=yes
11790   ;;
11791
11792 sysv4 | sysv4.3*)
11793   version_type=linux
11794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795   soname_spec='${libname}${release}${shared_ext}$major'
11796   shlibpath_var=LD_LIBRARY_PATH
11797   case $host_vendor in
11798     sni)
11799       shlibpath_overrides_runpath=no
11800       need_lib_prefix=no
11801       runpath_var=LD_RUN_PATH
11802       ;;
11803     siemens)
11804       need_lib_prefix=no
11805       ;;
11806     motorola)
11807       need_lib_prefix=no
11808       need_version=no
11809       shlibpath_overrides_runpath=no
11810       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11811       ;;
11812   esac
11813   ;;
11814
11815 sysv4*MP*)
11816   if test -d /usr/nec ;then
11817     version_type=linux
11818     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11819     soname_spec='$libname${shared_ext}.$major'
11820     shlibpath_var=LD_LIBRARY_PATH
11821   fi
11822   ;;
11823
11824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11825   version_type=freebsd-elf
11826   need_lib_prefix=no
11827   need_version=no
11828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11829   soname_spec='${libname}${release}${shared_ext}$major'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   shlibpath_overrides_runpath=yes
11832   hardcode_into_libs=yes
11833   if test "$with_gnu_ld" = yes; then
11834     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11835   else
11836     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11837     case $host_os in
11838       sco3.2v5*)
11839         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11840         ;;
11841     esac
11842   fi
11843   sys_lib_dlsearch_path_spec='/usr/lib'
11844   ;;
11845
11846 tpf*)
11847   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11848   version_type=linux
11849   need_lib_prefix=no
11850   need_version=no
11851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852   shlibpath_var=LD_LIBRARY_PATH
11853   shlibpath_overrides_runpath=no
11854   hardcode_into_libs=yes
11855   ;;
11856
11857 uts4*)
11858   version_type=linux
11859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860   soname_spec='${libname}${release}${shared_ext}$major'
11861   shlibpath_var=LD_LIBRARY_PATH
11862   ;;
11863
11864 *)
11865   dynamic_linker=no
11866   ;;
11867 esac
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11869 $as_echo "$dynamic_linker" >&6; }
11870 test "$dynamic_linker" = no && can_build_shared=no
11871
11872 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11873 if test "$GCC" = yes; then
11874   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11875 fi
11876
11877 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11878   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11879 fi
11880 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11881   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11882 fi
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11971 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11972 hardcode_action=
11973 if test -n "$hardcode_libdir_flag_spec" ||
11974    test -n "$runpath_var" ||
11975    test "X$hardcode_automatic" = "Xyes" ; then
11976
11977   # We can hardcode non-existent directories.
11978   if test "$hardcode_direct" != no &&
11979      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11980      # have to relink, otherwise we might link with an installed library
11981      # when we should be linking with a yet-to-be-installed one
11982      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11983      test "$hardcode_minus_L" != no; then
11984     # Linking always hardcodes the temporary library directory.
11985     hardcode_action=relink
11986   else
11987     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11988     hardcode_action=immediate
11989   fi
11990 else
11991   # We cannot hardcode anything, or else we can only hardcode existing
11992   # directories.
11993   hardcode_action=unsupported
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11996 $as_echo "$hardcode_action" >&6; }
11997
11998 if test "$hardcode_action" = relink ||
11999    test "$inherit_rpath" = yes; then
12000   # Fast installation is not supported
12001   enable_fast_install=no
12002 elif test "$shlibpath_overrides_runpath" = yes ||
12003      test "$enable_shared" = no; then
12004   # Fast installation is not necessary
12005   enable_fast_install=needless
12006 fi
12007
12008
12009
12010
12011
12012
12013   if test "x$enable_dlopen" != xyes; then
12014   enable_dlopen=unknown
12015   enable_dlopen_self=unknown
12016   enable_dlopen_self_static=unknown
12017 else
12018   lt_cv_dlopen=no
12019   lt_cv_dlopen_libs=
12020
12021   case $host_os in
12022   beos*)
12023     lt_cv_dlopen="load_add_on"
12024     lt_cv_dlopen_libs=
12025     lt_cv_dlopen_self=yes
12026     ;;
12027
12028   mingw* | pw32* | cegcc*)
12029     lt_cv_dlopen="LoadLibrary"
12030     lt_cv_dlopen_libs=
12031     ;;
12032
12033   cygwin*)
12034     lt_cv_dlopen="dlopen"
12035     lt_cv_dlopen_libs=
12036     ;;
12037
12038   darwin*)
12039   # if libdl is installed we need to link against it
12040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12041 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12042 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12043   $as_echo_n "(cached) " >&6
12044 else
12045   ac_check_lib_save_LIBS=$LIBS
12046 LIBS="-ldl  $LIBS"
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h.  */
12049
12050 /* Override any GCC internal prototype to avoid an error.
12051    Use char because int might match the return type of a GCC
12052    builtin and then its argument prototype would still apply.  */
12053 #ifdef __cplusplus
12054 extern "C"
12055 #endif
12056 char dlopen ();
12057 int
12058 main ()
12059 {
12060 return dlopen ();
12061   ;
12062   return 0;
12063 }
12064 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then :
12066   ac_cv_lib_dl_dlopen=yes
12067 else
12068   ac_cv_lib_dl_dlopen=no
12069 fi
12070 rm -f core conftest.err conftest.$ac_objext \
12071     conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS
12073 fi
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12075 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12076 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12077   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12078 else
12079
12080     lt_cv_dlopen="dyld"
12081     lt_cv_dlopen_libs=
12082     lt_cv_dlopen_self=yes
12083
12084 fi
12085
12086     ;;
12087
12088   *)
12089     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12090 if test "x$ac_cv_func_shl_load" = x""yes; then :
12091   lt_cv_dlopen="shl_load"
12092 else
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12094 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12095 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12096   $as_echo_n "(cached) " >&6
12097 else
12098   ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-ldld  $LIBS"
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h.  */
12102
12103 /* Override any GCC internal prototype to avoid an error.
12104    Use char because int might match the return type of a GCC
12105    builtin and then its argument prototype would still apply.  */
12106 #ifdef __cplusplus
12107 extern "C"
12108 #endif
12109 char shl_load ();
12110 int
12111 main ()
12112 {
12113 return shl_load ();
12114   ;
12115   return 0;
12116 }
12117 _ACEOF
12118 if ac_fn_c_try_link "$LINENO"; then :
12119   ac_cv_lib_dld_shl_load=yes
12120 else
12121   ac_cv_lib_dld_shl_load=no
12122 fi
12123 rm -f core conftest.err conftest.$ac_objext \
12124     conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12126 fi
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12128 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12129 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12130   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12131 else
12132   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12133 if test "x$ac_cv_func_dlopen" = x""yes; then :
12134   lt_cv_dlopen="dlopen"
12135 else
12136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-ldl  $LIBS"
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145
12146 /* Override any GCC internal prototype to avoid an error.
12147    Use char because int might match the return type of a GCC
12148    builtin and then its argument prototype would still apply.  */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char dlopen ();
12153 int
12154 main ()
12155 {
12156 return dlopen ();
12157   ;
12158   return 0;
12159 }
12160 _ACEOF
12161 if ac_fn_c_try_link "$LINENO"; then :
12162   ac_cv_lib_dl_dlopen=yes
12163 else
12164   ac_cv_lib_dl_dlopen=no
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167     conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12169 fi
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12172 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12174 else
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12176 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12177 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12178   $as_echo_n "(cached) " >&6
12179 else
12180   ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-lsvld  $LIBS"
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h.  */
12184
12185 /* Override any GCC internal prototype to avoid an error.
12186    Use char because int might match the return type of a GCC
12187    builtin and then its argument prototype would still apply.  */
12188 #ifdef __cplusplus
12189 extern "C"
12190 #endif
12191 char dlopen ();
12192 int
12193 main ()
12194 {
12195 return dlopen ();
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 if ac_fn_c_try_link "$LINENO"; then :
12201   ac_cv_lib_svld_dlopen=yes
12202 else
12203   ac_cv_lib_svld_dlopen=no
12204 fi
12205 rm -f core conftest.err conftest.$ac_objext \
12206     conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12208 fi
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12210 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12211 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12212   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12213 else
12214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12215 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12216 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12217   $as_echo_n "(cached) " >&6
12218 else
12219   ac_check_lib_save_LIBS=$LIBS
12220 LIBS="-ldld  $LIBS"
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h.  */
12223
12224 /* Override any GCC internal prototype to avoid an error.
12225    Use char because int might match the return type of a GCC
12226    builtin and then its argument prototype would still apply.  */
12227 #ifdef __cplusplus
12228 extern "C"
12229 #endif
12230 char dld_link ();
12231 int
12232 main ()
12233 {
12234 return dld_link ();
12235   ;
12236   return 0;
12237 }
12238 _ACEOF
12239 if ac_fn_c_try_link "$LINENO"; then :
12240   ac_cv_lib_dld_dld_link=yes
12241 else
12242   ac_cv_lib_dld_dld_link=no
12243 fi
12244 rm -f core conftest.err conftest.$ac_objext \
12245     conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12247 fi
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12249 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12250 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12251   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12252 fi
12253
12254
12255 fi
12256
12257
12258 fi
12259
12260
12261 fi
12262
12263
12264 fi
12265
12266
12267 fi
12268
12269     ;;
12270   esac
12271
12272   if test "x$lt_cv_dlopen" != xno; then
12273     enable_dlopen=yes
12274   else
12275     enable_dlopen=no
12276   fi
12277
12278   case $lt_cv_dlopen in
12279   dlopen)
12280     save_CPPFLAGS="$CPPFLAGS"
12281     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12282
12283     save_LDFLAGS="$LDFLAGS"
12284     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12285
12286     save_LIBS="$LIBS"
12287     LIBS="$lt_cv_dlopen_libs $LIBS"
12288
12289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12290 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12291 if test "${lt_cv_dlopen_self+set}" = set; then :
12292   $as_echo_n "(cached) " >&6
12293 else
12294           if test "$cross_compiling" = yes; then :
12295   lt_cv_dlopen_self=cross
12296 else
12297   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12298   lt_status=$lt_dlunknown
12299   cat > conftest.$ac_ext <<_LT_EOF
12300 #line 12300 "configure"
12301 #include "confdefs.h"
12302
12303 #if HAVE_DLFCN_H
12304 #include <dlfcn.h>
12305 #endif
12306
12307 #include <stdio.h>
12308
12309 #ifdef RTLD_GLOBAL
12310 #  define LT_DLGLOBAL           RTLD_GLOBAL
12311 #else
12312 #  ifdef DL_GLOBAL
12313 #    define LT_DLGLOBAL         DL_GLOBAL
12314 #  else
12315 #    define LT_DLGLOBAL         0
12316 #  endif
12317 #endif
12318
12319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12320    find out it does not work in some platform. */
12321 #ifndef LT_DLLAZY_OR_NOW
12322 #  ifdef RTLD_LAZY
12323 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12324 #  else
12325 #    ifdef DL_LAZY
12326 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12327 #    else
12328 #      ifdef RTLD_NOW
12329 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12330 #      else
12331 #        ifdef DL_NOW
12332 #          define LT_DLLAZY_OR_NOW      DL_NOW
12333 #        else
12334 #          define LT_DLLAZY_OR_NOW      0
12335 #        endif
12336 #      endif
12337 #    endif
12338 #  endif
12339 #endif
12340
12341 void fnord() { int i=42;}
12342 int main ()
12343 {
12344   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12345   int status = $lt_dlunknown;
12346
12347   if (self)
12348     {
12349       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12350       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12351       /* dlclose (self); */
12352     }
12353   else
12354     puts (dlerror ());
12355
12356   return status;
12357 }
12358 _LT_EOF
12359   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12360   (eval $ac_link) 2>&5
12361   ac_status=$?
12362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12363   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12364     (./conftest; exit; ) >&5 2>/dev/null
12365     lt_status=$?
12366     case x$lt_status in
12367       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12368       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12369       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12370     esac
12371   else :
12372     # compilation failed
12373     lt_cv_dlopen_self=no
12374   fi
12375 fi
12376 rm -fr conftest*
12377
12378
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12381 $as_echo "$lt_cv_dlopen_self" >&6; }
12382
12383     if test "x$lt_cv_dlopen_self" = xyes; then
12384       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12385       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12386 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12387 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390           if test "$cross_compiling" = yes; then :
12391   lt_cv_dlopen_self_static=cross
12392 else
12393   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394   lt_status=$lt_dlunknown
12395   cat > conftest.$ac_ext <<_LT_EOF
12396 #line 12396 "configure"
12397 #include "confdefs.h"
12398
12399 #if HAVE_DLFCN_H
12400 #include <dlfcn.h>
12401 #endif
12402
12403 #include <stdio.h>
12404
12405 #ifdef RTLD_GLOBAL
12406 #  define LT_DLGLOBAL           RTLD_GLOBAL
12407 #else
12408 #  ifdef DL_GLOBAL
12409 #    define LT_DLGLOBAL         DL_GLOBAL
12410 #  else
12411 #    define LT_DLGLOBAL         0
12412 #  endif
12413 #endif
12414
12415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416    find out it does not work in some platform. */
12417 #ifndef LT_DLLAZY_OR_NOW
12418 #  ifdef RTLD_LAZY
12419 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12420 #  else
12421 #    ifdef DL_LAZY
12422 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12423 #    else
12424 #      ifdef RTLD_NOW
12425 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12426 #      else
12427 #        ifdef DL_NOW
12428 #          define LT_DLLAZY_OR_NOW      DL_NOW
12429 #        else
12430 #          define LT_DLLAZY_OR_NOW      0
12431 #        endif
12432 #      endif
12433 #    endif
12434 #  endif
12435 #endif
12436
12437 void fnord() { int i=42;}
12438 int main ()
12439 {
12440   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12441   int status = $lt_dlunknown;
12442
12443   if (self)
12444     {
12445       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12446       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12447       /* dlclose (self); */
12448     }
12449   else
12450     puts (dlerror ());
12451
12452   return status;
12453 }
12454 _LT_EOF
12455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12456   (eval $ac_link) 2>&5
12457   ac_status=$?
12458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12460     (./conftest; exit; ) >&5 2>/dev/null
12461     lt_status=$?
12462     case x$lt_status in
12463       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12464       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12465       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12466     esac
12467   else :
12468     # compilation failed
12469     lt_cv_dlopen_self_static=no
12470   fi
12471 fi
12472 rm -fr conftest*
12473
12474
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12477 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12478     fi
12479
12480     CPPFLAGS="$save_CPPFLAGS"
12481     LDFLAGS="$save_LDFLAGS"
12482     LIBS="$save_LIBS"
12483     ;;
12484   esac
12485
12486   case $lt_cv_dlopen_self in
12487   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12488   *) enable_dlopen_self=unknown ;;
12489   esac
12490
12491   case $lt_cv_dlopen_self_static in
12492   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12493   *) enable_dlopen_self_static=unknown ;;
12494   esac
12495 fi
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513 striplib=
12514 old_striplib=
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12516 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12517 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12518   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12519   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12521 $as_echo "yes" >&6; }
12522 else
12523 # FIXME - insert some real tests, host_os isn't really good enough
12524   case $host_os in
12525   darwin*)
12526     if test -n "$STRIP" ; then
12527       striplib="$STRIP -x"
12528       old_striplib="$STRIP -S"
12529       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530 $as_echo "yes" >&6; }
12531     else
12532       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12534     fi
12535     ;;
12536   *)
12537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12539     ;;
12540   esac
12541 fi
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554   # Report which library types will actually be built
12555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12556 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12558 $as_echo "$can_build_shared" >&6; }
12559
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12561 $as_echo_n "checking whether to build shared libraries... " >&6; }
12562   test "$can_build_shared" = "no" && enable_shared=no
12563
12564   # On AIX, shared libraries and static libraries use the same namespace, and
12565   # are all built from PIC.
12566   case $host_os in
12567   aix3*)
12568     test "$enable_shared" = yes && enable_static=no
12569     if test -n "$RANLIB"; then
12570       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12571       postinstall_cmds='$RANLIB $lib'
12572     fi
12573     ;;
12574
12575   aix[4-9]*)
12576     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12577       test "$enable_shared" = yes && enable_static=no
12578     fi
12579     ;;
12580   esac
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12582 $as_echo "$enable_shared" >&6; }
12583
12584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12585 $as_echo_n "checking whether to build static libraries... " >&6; }
12586   # Make sure either enable_shared or enable_static is yes.
12587   test "$enable_shared" = yes || enable_static=yes
12588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12589 $as_echo "$enable_static" >&6; }
12590
12591
12592
12593
12594 fi
12595 ac_ext=cpp
12596 ac_cpp='$CXXCPP $CPPFLAGS'
12597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12600
12601 CC="$lt_save_CC"
12602
12603
12604 ac_ext=cpp
12605 ac_cpp='$CXXCPP $CPPFLAGS'
12606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12609
12610 archive_cmds_need_lc_CXX=no
12611 allow_undefined_flag_CXX=
12612 always_export_symbols_CXX=no
12613 archive_expsym_cmds_CXX=
12614 compiler_needs_object_CXX=no
12615 export_dynamic_flag_spec_CXX=
12616 hardcode_direct_CXX=no
12617 hardcode_direct_absolute_CXX=no
12618 hardcode_libdir_flag_spec_CXX=
12619 hardcode_libdir_flag_spec_ld_CXX=
12620 hardcode_libdir_separator_CXX=
12621 hardcode_minus_L_CXX=no
12622 hardcode_shlibpath_var_CXX=unsupported
12623 hardcode_automatic_CXX=no
12624 inherit_rpath_CXX=no
12625 module_cmds_CXX=
12626 module_expsym_cmds_CXX=
12627 link_all_deplibs_CXX=unknown
12628 old_archive_cmds_CXX=$old_archive_cmds
12629 no_undefined_flag_CXX=
12630 whole_archive_flag_spec_CXX=
12631 enable_shared_with_static_runtimes_CXX=no
12632
12633 # Source file extension for C++ test sources.
12634 ac_ext=cpp
12635
12636 # Object file extension for compiled C++ test sources.
12637 objext=o
12638 objext_CXX=$objext
12639
12640 # No sense in running all these tests if we already determined that
12641 # the CXX compiler isn't working.  Some variables (like enable_shared)
12642 # are currently assumed to apply to all compilers on this platform,
12643 # and will be corrupted by setting them based on a non-working compiler.
12644 if test "$_lt_caught_CXX_error" != yes; then
12645   # Code to be used in simple compile tests
12646   lt_simple_compile_test_code="int some_variable = 0;"
12647
12648   # Code to be used in simple link tests
12649   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12650
12651   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12652
12653
12654
12655
12656
12657
12658 # If no C compiler was specified, use CC.
12659 LTCC=${LTCC-"$CC"}
12660
12661 # If no C compiler flags were specified, use CFLAGS.
12662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12663
12664 # Allow CC to be a program name with arguments.
12665 compiler=$CC
12666
12667
12668   # save warnings/boilerplate of simple test code
12669   ac_outfile=conftest.$ac_objext
12670 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12671 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12672 _lt_compiler_boilerplate=`cat conftest.err`
12673 $RM conftest*
12674
12675   ac_outfile=conftest.$ac_objext
12676 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12677 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12678 _lt_linker_boilerplate=`cat conftest.err`
12679 $RM -r conftest*
12680
12681
12682   # Allow CC to be a program name with arguments.
12683   lt_save_CC=$CC
12684   lt_save_LD=$LD
12685   lt_save_GCC=$GCC
12686   GCC=$GXX
12687   lt_save_with_gnu_ld=$with_gnu_ld
12688   lt_save_path_LD=$lt_cv_path_LD
12689   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12690     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12691   else
12692     $as_unset lt_cv_prog_gnu_ld
12693   fi
12694   if test -n "${lt_cv_path_LDCXX+set}"; then
12695     lt_cv_path_LD=$lt_cv_path_LDCXX
12696   else
12697     $as_unset lt_cv_path_LD
12698   fi
12699   test -z "${LDCXX+set}" || LD=$LDCXX
12700   CC=${CXX-"c++"}
12701   compiler=$CC
12702   compiler_CXX=$CC
12703   for cc_temp in $compiler""; do
12704   case $cc_temp in
12705     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12706     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12707     \-*) ;;
12708     *) break;;
12709   esac
12710 done
12711 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12712
12713
12714   if test -n "$compiler"; then
12715     # We don't want -fno-exception when compiling C++ code, so set the
12716     # no_builtin_flag separately
12717     if test "$GXX" = yes; then
12718       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12719     else
12720       lt_prog_compiler_no_builtin_flag_CXX=
12721     fi
12722
12723     if test "$GXX" = yes; then
12724       # Set up default GNU C++ configuration
12725
12726
12727
12728 # Check whether --with-gnu-ld was given.
12729 if test "${with_gnu_ld+set}" = set; then :
12730   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12731 else
12732   with_gnu_ld=no
12733 fi
12734
12735 ac_prog=ld
12736 if test "$GCC" = yes; then
12737   # Check if gcc -print-prog-name=ld gives a path.
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12739 $as_echo_n "checking for ld used by $CC... " >&6; }
12740   case $host in
12741   *-*-mingw*)
12742     # gcc leaves a trailing carriage return which upsets mingw
12743     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12744   *)
12745     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12746   esac
12747   case $ac_prog in
12748     # Accept absolute paths.
12749     [\\/]* | ?:[\\/]*)
12750       re_direlt='/[^/][^/]*/\.\./'
12751       # Canonicalize the pathname of ld
12752       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12753       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12754         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12755       done
12756       test -z "$LD" && LD="$ac_prog"
12757       ;;
12758   "")
12759     # If it fails, then pretend we aren't using GCC.
12760     ac_prog=ld
12761     ;;
12762   *)
12763     # If it is relative, then search for the first ld in PATH.
12764     with_gnu_ld=unknown
12765     ;;
12766   esac
12767 elif test "$with_gnu_ld" = yes; then
12768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12769 $as_echo_n "checking for GNU ld... " >&6; }
12770 else
12771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12772 $as_echo_n "checking for non-GNU ld... " >&6; }
12773 fi
12774 if test "${lt_cv_path_LD+set}" = set; then :
12775   $as_echo_n "(cached) " >&6
12776 else
12777   if test -z "$LD"; then
12778   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12779   for ac_dir in $PATH; do
12780     IFS="$lt_save_ifs"
12781     test -z "$ac_dir" && ac_dir=.
12782     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12783       lt_cv_path_LD="$ac_dir/$ac_prog"
12784       # Check to see if the program is GNU ld.  I'd rather use --version,
12785       # but apparently some variants of GNU ld only accept -v.
12786       # Break only if it was the GNU/non-GNU ld that we prefer.
12787       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12788       *GNU* | *'with BFD'*)
12789         test "$with_gnu_ld" != no && break
12790         ;;
12791       *)
12792         test "$with_gnu_ld" != yes && break
12793         ;;
12794       esac
12795     fi
12796   done
12797   IFS="$lt_save_ifs"
12798 else
12799   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12800 fi
12801 fi
12802
12803 LD="$lt_cv_path_LD"
12804 if test -n "$LD"; then
12805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12806 $as_echo "$LD" >&6; }
12807 else
12808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810 fi
12811 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12813 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12814 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12815   $as_echo_n "(cached) " >&6
12816 else
12817   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12818 case `$LD -v 2>&1 </dev/null` in
12819 *GNU* | *'with BFD'*)
12820   lt_cv_prog_gnu_ld=yes
12821   ;;
12822 *)
12823   lt_cv_prog_gnu_ld=no
12824   ;;
12825 esac
12826 fi
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12828 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12829 with_gnu_ld=$lt_cv_prog_gnu_ld
12830
12831
12832
12833
12834
12835
12836
12837       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12838       # archiving commands below assume that GNU ld is being used.
12839       if test "$with_gnu_ld" = yes; then
12840         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12841         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'
12842
12843         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12844         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12845
12846         # If archive_cmds runs LD, not CC, wlarc should be empty
12847         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12848         #     investigate it a little bit more. (MM)
12849         wlarc='${wl}'
12850
12851         # ancient GNU ld didn't support --whole-archive et. al.
12852         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12853           $GREP 'no-whole-archive' > /dev/null; then
12854           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12855         else
12856           whole_archive_flag_spec_CXX=
12857         fi
12858       else
12859         with_gnu_ld=no
12860         wlarc=
12861
12862         # A generic and very simple default shared library creation
12863         # command for GNU C++ for the case where it uses the native
12864         # linker, instead of GNU ld.  If possible, this setting should
12865         # overridden to take advantage of the native linker features on
12866         # the platform it is being used on.
12867         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12868       fi
12869
12870       # Commands to make compiler produce verbose output that lists
12871       # what "hidden" libraries, object files and flags are used when
12872       # linking a shared library.
12873       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12874
12875     else
12876       GXX=no
12877       with_gnu_ld=no
12878       wlarc=
12879     fi
12880
12881     # PORTME: fill in a description of your system's C++ link characteristics
12882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12883 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12884     ld_shlibs_CXX=yes
12885     case $host_os in
12886       aix3*)
12887         # FIXME: insert proper C++ library support
12888         ld_shlibs_CXX=no
12889         ;;
12890       aix[4-9]*)
12891         if test "$host_cpu" = ia64; then
12892           # On IA64, the linker does run time linking by default, so we don't
12893           # have to do anything special.
12894           aix_use_runtimelinking=no
12895           exp_sym_flag='-Bexport'
12896           no_entry_flag=""
12897         else
12898           aix_use_runtimelinking=no
12899
12900           # Test if we are trying to use run time linking or normal
12901           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12902           # need to do runtime linking.
12903           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12904             for ld_flag in $LDFLAGS; do
12905               case $ld_flag in
12906               *-brtl*)
12907                 aix_use_runtimelinking=yes
12908                 break
12909                 ;;
12910               esac
12911             done
12912             ;;
12913           esac
12914
12915           exp_sym_flag='-bexport'
12916           no_entry_flag='-bnoentry'
12917         fi
12918
12919         # When large executables or shared objects are built, AIX ld can
12920         # have problems creating the table of contents.  If linking a library
12921         # or program results in "error TOC overflow" add -mminimal-toc to
12922         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12923         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12924
12925         archive_cmds_CXX=''
12926         hardcode_direct_CXX=yes
12927         hardcode_direct_absolute_CXX=yes
12928         hardcode_libdir_separator_CXX=':'
12929         link_all_deplibs_CXX=yes
12930         file_list_spec_CXX='${wl}-f,'
12931
12932         if test "$GXX" = yes; then
12933           case $host_os in aix4.[012]|aix4.[012].*)
12934           # We only want to do this on AIX 4.2 and lower, the check
12935           # below for broken collect2 doesn't work under 4.3+
12936           collect2name=`${CC} -print-prog-name=collect2`
12937           if test -f "$collect2name" &&
12938              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12939           then
12940             # We have reworked collect2
12941             :
12942           else
12943             # We have old collect2
12944             hardcode_direct_CXX=unsupported
12945             # It fails to find uninstalled libraries when the uninstalled
12946             # path is not listed in the libpath.  Setting hardcode_minus_L
12947             # to unsupported forces relinking
12948             hardcode_minus_L_CXX=yes
12949             hardcode_libdir_flag_spec_CXX='-L$libdir'
12950             hardcode_libdir_separator_CXX=
12951           fi
12952           esac
12953           shared_flag='-shared'
12954           if test "$aix_use_runtimelinking" = yes; then
12955             shared_flag="$shared_flag "'${wl}-G'
12956           fi
12957         else
12958           # not using gcc
12959           if test "$host_cpu" = ia64; then
12960           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12961           # chokes on -Wl,-G. The following line is correct:
12962           shared_flag='-G'
12963           else
12964             if test "$aix_use_runtimelinking" = yes; then
12965               shared_flag='${wl}-G'
12966             else
12967               shared_flag='${wl}-bM:SRE'
12968             fi
12969           fi
12970         fi
12971
12972         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12973         # It seems that -bexpall does not export symbols beginning with
12974         # underscore (_), so it is better to generate a list of symbols to
12975         # export.
12976         always_export_symbols_CXX=yes
12977         if test "$aix_use_runtimelinking" = yes; then
12978           # Warning - without using the other runtime loading flags (-brtl),
12979           # -berok will link without error, but may produce a broken library.
12980           allow_undefined_flag_CXX='-berok'
12981           # Determine the default libpath from the value encoded in an empty
12982           # executable.
12983           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h.  */
12985
12986 int
12987 main ()
12988 {
12989
12990   ;
12991   return 0;
12992 }
12993 _ACEOF
12994 if ac_fn_cxx_try_link "$LINENO"; then :
12995
12996 lt_aix_libpath_sed='
12997     /Import File Strings/,/^$/ {
12998         /^0/ {
12999             s/^0  *\(.*\)$/\1/
13000             p
13001         }
13002     }'
13003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13004 # Check for a 64-bit object if we didn't find anything.
13005 if test -z "$aix_libpath"; then
13006   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13007 fi
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext \
13010     conftest$ac_exeext conftest.$ac_ext
13011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13012
13013           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13014
13015           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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13016         else
13017           if test "$host_cpu" = ia64; then
13018             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13019             allow_undefined_flag_CXX="-z nodefs"
13020             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"
13021           else
13022             # Determine the default libpath from the value encoded in an
13023             # empty executable.
13024             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h.  */
13026
13027 int
13028 main ()
13029 {
13030
13031   ;
13032   return 0;
13033 }
13034 _ACEOF
13035 if ac_fn_cxx_try_link "$LINENO"; then :
13036
13037 lt_aix_libpath_sed='
13038     /Import File Strings/,/^$/ {
13039         /^0/ {
13040             s/^0  *\(.*\)$/\1/
13041             p
13042         }
13043     }'
13044 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13045 # Check for a 64-bit object if we didn't find anything.
13046 if test -z "$aix_libpath"; then
13047   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13048 fi
13049 fi
13050 rm -f core conftest.err conftest.$ac_objext \
13051     conftest$ac_exeext conftest.$ac_ext
13052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13053
13054             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13055             # Warning - without using the other run time loading flags,
13056             # -berok will link without error, but may produce a broken library.
13057             no_undefined_flag_CXX=' ${wl}-bernotok'
13058             allow_undefined_flag_CXX=' ${wl}-berok'
13059             # Exported symbols can be pulled into shared objects from archives
13060             whole_archive_flag_spec_CXX='$convenience'
13061             archive_cmds_need_lc_CXX=yes
13062             # This is similar to how AIX traditionally builds its shared
13063             # libraries.
13064             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'
13065           fi
13066         fi
13067         ;;
13068
13069       beos*)
13070         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13071           allow_undefined_flag_CXX=unsupported
13072           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13073           # support --undefined.  This deserves some investigation.  FIXME
13074           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13075         else
13076           ld_shlibs_CXX=no
13077         fi
13078         ;;
13079
13080       chorus*)
13081         case $cc_basename in
13082           *)
13083           # FIXME: insert proper C++ library support
13084           ld_shlibs_CXX=no
13085           ;;
13086         esac
13087         ;;
13088
13089       cygwin* | mingw* | pw32* | cegcc*)
13090         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13091         # as there is no search path for DLLs.
13092         hardcode_libdir_flag_spec_CXX='-L$libdir'
13093         allow_undefined_flag_CXX=unsupported
13094         always_export_symbols_CXX=no
13095         enable_shared_with_static_runtimes_CXX=yes
13096
13097         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13098           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'
13099           # If the export-symbols file already is a .def file (1st line
13100           # is EXPORTS), use it as is; otherwise, prepend...
13101           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13102             cp $export_symbols $output_objdir/$soname.def;
13103           else
13104             echo EXPORTS > $output_objdir/$soname.def;
13105             cat $export_symbols >> $output_objdir/$soname.def;
13106           fi~
13107           $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'
13108         else
13109           ld_shlibs_CXX=no
13110         fi
13111         ;;
13112       darwin* | rhapsody*)
13113
13114
13115   archive_cmds_need_lc_CXX=no
13116   hardcode_direct_CXX=no
13117   hardcode_automatic_CXX=yes
13118   hardcode_shlibpath_var_CXX=unsupported
13119   whole_archive_flag_spec_CXX=''
13120   link_all_deplibs_CXX=yes
13121   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13122   case $cc_basename in
13123      ifort*) _lt_dar_can_shared=yes ;;
13124      *) _lt_dar_can_shared=$GCC ;;
13125   esac
13126   if test "$_lt_dar_can_shared" = "yes"; then
13127     output_verbose_link_cmd=echo
13128     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13129     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13130     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13131     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13132        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13133       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${_lt_dsymutil}"
13134       archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
13135     fi
13136
13137   else
13138   ld_shlibs_CXX=no
13139   fi
13140
13141         ;;
13142
13143       dgux*)
13144         case $cc_basename in
13145           ec++*)
13146             # FIXME: insert proper C++ library support
13147             ld_shlibs_CXX=no
13148             ;;
13149           ghcx*)
13150             # Green Hills C++ Compiler
13151             # FIXME: insert proper C++ library support
13152             ld_shlibs_CXX=no
13153             ;;
13154           *)
13155             # FIXME: insert proper C++ library support
13156             ld_shlibs_CXX=no
13157             ;;
13158         esac
13159         ;;
13160
13161       freebsd[12]*)
13162         # C++ shared libraries reported to be fairly broken before
13163         # switch to ELF
13164         ld_shlibs_CXX=no
13165         ;;
13166
13167       freebsd-elf*)
13168         archive_cmds_need_lc_CXX=no
13169         ;;
13170
13171       freebsd* | dragonfly*)
13172         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13173         # conventions
13174         ld_shlibs_CXX=yes
13175         ;;
13176
13177       gnu*)
13178         ;;
13179
13180       hpux9*)
13181         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13182         hardcode_libdir_separator_CXX=:
13183         export_dynamic_flag_spec_CXX='${wl}-E'
13184         hardcode_direct_CXX=yes
13185         hardcode_minus_L_CXX=yes # Not in the search PATH,
13186                                              # but as the default
13187                                              # location of the library.
13188
13189         case $cc_basename in
13190           CC*)
13191             # FIXME: insert proper C++ library support
13192             ld_shlibs_CXX=no
13193             ;;
13194           aCC*)
13195             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'
13196             # Commands to make compiler produce verbose output that lists
13197             # what "hidden" libraries, object files and flags are used when
13198             # linking a shared library.
13199             #
13200             # There doesn't appear to be a way to prevent this compiler from
13201             # explicitly linking system object files so we need to strip them
13202             # from the output so that they don't get included in the library
13203             # dependencies.
13204             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13205             ;;
13206           *)
13207             if test "$GXX" = yes; then
13208               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'
13209             else
13210               # FIXME: insert proper C++ library support
13211               ld_shlibs_CXX=no
13212             fi
13213             ;;
13214         esac
13215         ;;
13216
13217       hpux10*|hpux11*)
13218         if test $with_gnu_ld = no; then
13219           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13220           hardcode_libdir_separator_CXX=:
13221
13222           case $host_cpu in
13223             hppa*64*|ia64*)
13224               ;;
13225             *)
13226               export_dynamic_flag_spec_CXX='${wl}-E'
13227               ;;
13228           esac
13229         fi
13230         case $host_cpu in
13231           hppa*64*|ia64*)
13232             hardcode_direct_CXX=no
13233             hardcode_shlibpath_var_CXX=no
13234             ;;
13235           *)
13236             hardcode_direct_CXX=yes
13237             hardcode_direct_absolute_CXX=yes
13238             hardcode_minus_L_CXX=yes # Not in the search PATH,
13239                                                  # but as the default
13240                                                  # location of the library.
13241             ;;
13242         esac
13243
13244         case $cc_basename in
13245           CC*)
13246             # FIXME: insert proper C++ library support
13247             ld_shlibs_CXX=no
13248             ;;
13249           aCC*)
13250             case $host_cpu in
13251               hppa*64*)
13252                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13253                 ;;
13254               ia64*)
13255                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13256                 ;;
13257               *)
13258                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13259                 ;;
13260             esac
13261             # Commands to make compiler produce verbose output that lists
13262             # what "hidden" libraries, object files and flags are used when
13263             # linking a shared library.
13264             #
13265             # There doesn't appear to be a way to prevent this compiler from
13266             # explicitly linking system object files so we need to strip them
13267             # from the output so that they don't get included in the library
13268             # dependencies.
13269             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 "X$list" | $Xsed'
13270             ;;
13271           *)
13272             if test "$GXX" = yes; then
13273               if test $with_gnu_ld = no; then
13274                 case $host_cpu in
13275                   hppa*64*)
13276                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13277                     ;;
13278                   ia64*)
13279                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13280                     ;;
13281                   *)
13282                     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'
13283                     ;;
13284                 esac
13285               fi
13286             else
13287               # FIXME: insert proper C++ library support
13288               ld_shlibs_CXX=no
13289             fi
13290             ;;
13291         esac
13292         ;;
13293
13294       interix[3-9]*)
13295         hardcode_direct_CXX=no
13296         hardcode_shlibpath_var_CXX=no
13297         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13298         export_dynamic_flag_spec_CXX='${wl}-E'
13299         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13300         # Instead, shared libraries are loaded at an image base (0x10000000 by
13301         # default) and relocated if they conflict, which is a slow very memory
13302         # consuming and fragmenting process.  To avoid this, we pick a random,
13303         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13304         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13305         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'
13306         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'
13307         ;;
13308       irix5* | irix6*)
13309         case $cc_basename in
13310           CC*)
13311             # SGI C++
13312             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13313
13314             # Archives containing C++ object files must be created using
13315             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13316             # necessary to make sure instantiated templates are included
13317             # in the archive.
13318             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13319             ;;
13320           *)
13321             if test "$GXX" = yes; then
13322               if test "$with_gnu_ld" = no; then
13323                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13324               else
13325                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13326               fi
13327             fi
13328             link_all_deplibs_CXX=yes
13329             ;;
13330         esac
13331         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13332         hardcode_libdir_separator_CXX=:
13333         inherit_rpath_CXX=yes
13334         ;;
13335
13336       linux* | k*bsd*-gnu)
13337         case $cc_basename in
13338           KCC*)
13339             # Kuck and Associates, Inc. (KAI) C++ Compiler
13340
13341             # KCC will only create a shared library if the output file
13342             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13343             # to its proper name (with version) after linking.
13344             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'
13345             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'
13346             # Commands to make compiler produce verbose output that lists
13347             # what "hidden" libraries, object files and flags are used when
13348             # linking a shared library.
13349             #
13350             # There doesn't appear to be a way to prevent this compiler from
13351             # explicitly linking system object files so we need to strip them
13352             # from the output so that they don't get included in the library
13353             # dependencies.
13354             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 "X$list" | $Xsed'
13355
13356             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13357             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13358
13359             # Archives containing C++ object files must be created using
13360             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13361             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13362             ;;
13363           icpc* | ecpc* )
13364             # Intel C++
13365             with_gnu_ld=yes
13366             # version 8.0 and above of icpc choke on multiply defined symbols
13367             # if we add $predep_objects and $postdep_objects, however 7.1 and
13368             # earlier do not add the objects themselves.
13369             case `$CC -V 2>&1` in
13370               *"Version 7."*)
13371                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13372                 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'
13373                 ;;
13374               *)  # Version 8.0 or newer
13375                 tmp_idyn=
13376                 case $host_cpu in
13377                   ia64*) tmp_idyn=' -i_dynamic';;
13378                 esac
13379                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380                 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'
13381                 ;;
13382             esac
13383             archive_cmds_need_lc_CXX=no
13384             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13385             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13386             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13387             ;;
13388           pgCC* | pgcpp*)
13389             # Portland Group C++ compiler
13390             case `$CC -V` in
13391             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13392               prelink_cmds_CXX='tpldir=Template.dir~
13393                 rm -rf $tpldir~
13394                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13395                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13396               old_archive_cmds_CXX='tpldir=Template.dir~
13397                 rm -rf $tpldir~
13398                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13399                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13400                 $RANLIB $oldlib'
13401               archive_cmds_CXX='tpldir=Template.dir~
13402                 rm -rf $tpldir~
13403                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13404                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13405               archive_expsym_cmds_CXX='tpldir=Template.dir~
13406                 rm -rf $tpldir~
13407                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13408                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13409               ;;
13410             *) # Version 6 will use weak symbols
13411               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13412               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'
13413               ;;
13414             esac
13415
13416             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13417             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13418             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'
13419             ;;
13420           cxx*)
13421             # Compaq C++
13422             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13423             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'
13424
13425             runpath_var=LD_RUN_PATH
13426             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13427             hardcode_libdir_separator_CXX=:
13428
13429             # Commands to make compiler produce verbose output that lists
13430             # what "hidden" libraries, object files and flags are used when
13431             # linking a shared library.
13432             #
13433             # There doesn't appear to be a way to prevent this compiler from
13434             # explicitly linking system object files so we need to strip them
13435             # from the output so that they don't get included in the library
13436             # dependencies.
13437             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13438             ;;
13439           xl*)
13440             # IBM XL 8.0 on PPC, with GNU ld
13441             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13442             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13443             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444             if test "x$supports_anon_versioning" = xyes; then
13445               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13446                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13447                 echo "local: *; };" >> $output_objdir/$libname.ver~
13448                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13449             fi
13450             ;;
13451           *)
13452             case `$CC -V 2>&1 | sed 5q` in
13453             *Sun\ C*)
13454               # Sun C++ 5.9
13455               no_undefined_flag_CXX=' -zdefs'
13456               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13457               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'
13458               hardcode_libdir_flag_spec_CXX='-R$libdir'
13459               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'
13460               compiler_needs_object_CXX=yes
13461
13462               # Not sure whether something based on
13463               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13464               # would be better.
13465               output_verbose_link_cmd='echo'
13466
13467               # Archives containing C++ object files must be created using
13468               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13469               # necessary to make sure instantiated templates are included
13470               # in the archive.
13471               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13472               ;;
13473             esac
13474             ;;
13475         esac
13476         ;;
13477
13478       lynxos*)
13479         # FIXME: insert proper C++ library support
13480         ld_shlibs_CXX=no
13481         ;;
13482
13483       m88k*)
13484         # FIXME: insert proper C++ library support
13485         ld_shlibs_CXX=no
13486         ;;
13487
13488       mvs*)
13489         case $cc_basename in
13490           cxx*)
13491             # FIXME: insert proper C++ library support
13492             ld_shlibs_CXX=no
13493             ;;
13494           *)
13495             # FIXME: insert proper C++ library support
13496             ld_shlibs_CXX=no
13497             ;;
13498         esac
13499         ;;
13500
13501       netbsd*)
13502         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13503           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13504           wlarc=
13505           hardcode_libdir_flag_spec_CXX='-R$libdir'
13506           hardcode_direct_CXX=yes
13507           hardcode_shlibpath_var_CXX=no
13508         fi
13509         # Workaround some broken pre-1.5 toolchains
13510         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13511         ;;
13512
13513       *nto* | *qnx*)
13514         ld_shlibs_CXX=yes
13515         ;;
13516
13517       openbsd2*)
13518         # C++ shared libraries are fairly broken
13519         ld_shlibs_CXX=no
13520         ;;
13521
13522       openbsd*)
13523         if test -f /usr/libexec/ld.so; then
13524           hardcode_direct_CXX=yes
13525           hardcode_shlibpath_var_CXX=no
13526           hardcode_direct_absolute_CXX=yes
13527           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13528           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13529           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13530             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13531             export_dynamic_flag_spec_CXX='${wl}-E'
13532             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13533           fi
13534           output_verbose_link_cmd=echo
13535         else
13536           ld_shlibs_CXX=no
13537         fi
13538         ;;
13539
13540       osf3* | osf4* | osf5*)
13541         case $cc_basename in
13542           KCC*)
13543             # Kuck and Associates, Inc. (KAI) C++ Compiler
13544
13545             # KCC will only create a shared library if the output file
13546             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13547             # to its proper name (with version) after linking.
13548             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'
13549
13550             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13551             hardcode_libdir_separator_CXX=:
13552
13553             # Archives containing C++ object files must be created using
13554             # the KAI C++ compiler.
13555             case $host in
13556               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13557               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13558             esac
13559             ;;
13560           RCC*)
13561             # Rational C++ 2.4.1
13562             # FIXME: insert proper C++ library support
13563             ld_shlibs_CXX=no
13564             ;;
13565           cxx*)
13566             case $host in
13567               osf3*)
13568                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13569                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13570                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13571                 ;;
13572               *)
13573                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13574                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13575                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13576                   echo "-hidden">> $lib.exp~
13577                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13578                   $RM $lib.exp'
13579                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13580                 ;;
13581             esac
13582
13583             hardcode_libdir_separator_CXX=:
13584
13585             # Commands to make compiler produce verbose output that lists
13586             # what "hidden" libraries, object files and flags are used when
13587             # linking a shared library.
13588             #
13589             # There doesn't appear to be a way to prevent this compiler from
13590             # explicitly linking system object files so we need to strip them
13591             # from the output so that they don't get included in the library
13592             # dependencies.
13593             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13594             ;;
13595           *)
13596             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13597               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13598               case $host in
13599                 osf3*)
13600                   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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13601                   ;;
13602                 *)
13603                   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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13604                   ;;
13605               esac
13606
13607               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13608               hardcode_libdir_separator_CXX=:
13609
13610               # Commands to make compiler produce verbose output that lists
13611               # what "hidden" libraries, object files and flags are used when
13612               # linking a shared library.
13613               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13614
13615             else
13616               # FIXME: insert proper C++ library support
13617               ld_shlibs_CXX=no
13618             fi
13619             ;;
13620         esac
13621         ;;
13622
13623       psos*)
13624         # FIXME: insert proper C++ library support
13625         ld_shlibs_CXX=no
13626         ;;
13627
13628       sunos4*)
13629         case $cc_basename in
13630           CC*)
13631             # Sun C++ 4.x
13632             # FIXME: insert proper C++ library support
13633             ld_shlibs_CXX=no
13634             ;;
13635           lcc*)
13636             # Lucid
13637             # FIXME: insert proper C++ library support
13638             ld_shlibs_CXX=no
13639             ;;
13640           *)
13641             # FIXME: insert proper C++ library support
13642             ld_shlibs_CXX=no
13643             ;;
13644         esac
13645         ;;
13646
13647       solaris*)
13648         case $cc_basename in
13649           CC*)
13650             # Sun C++ 4.2, 5.x and Centerline C++
13651             archive_cmds_need_lc_CXX=yes
13652             no_undefined_flag_CXX=' -zdefs'
13653             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13654             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13655               $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'
13656
13657             hardcode_libdir_flag_spec_CXX='-R$libdir'
13658             hardcode_shlibpath_var_CXX=no
13659             case $host_os in
13660               solaris2.[0-5] | solaris2.[0-5].*) ;;
13661               *)
13662                 # The compiler driver will combine and reorder linker options,
13663                 # but understands `-z linker_flag'.
13664                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13665                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13666                 ;;
13667             esac
13668             link_all_deplibs_CXX=yes
13669
13670             output_verbose_link_cmd='echo'
13671
13672             # Archives containing C++ object files must be created using
13673             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13674             # necessary to make sure instantiated templates are included
13675             # in the archive.
13676             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13677             ;;
13678           gcx*)
13679             # Green Hills C++ Compiler
13680             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13681
13682             # The C++ compiler must be used to create the archive.
13683             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13684             ;;
13685           *)
13686             # GNU C++ compiler with Solaris linker
13687             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13688               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13689               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13690                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13691                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13692                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13693
13694                 # Commands to make compiler produce verbose output that lists
13695                 # what "hidden" libraries, object files and flags are used when
13696                 # linking a shared library.
13697                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13698               else
13699                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13700                 # platform.
13701                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13702                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13703                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13704
13705                 # Commands to make compiler produce verbose output that lists
13706                 # what "hidden" libraries, object files and flags are used when
13707                 # linking a shared library.
13708                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13709               fi
13710
13711               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13712               case $host_os in
13713                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13714                 *)
13715                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13716                   ;;
13717               esac
13718             fi
13719             ;;
13720         esac
13721         ;;
13722
13723     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13724       no_undefined_flag_CXX='${wl}-z,text'
13725       archive_cmds_need_lc_CXX=no
13726       hardcode_shlibpath_var_CXX=no
13727       runpath_var='LD_RUN_PATH'
13728
13729       case $cc_basename in
13730         CC*)
13731           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13732           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13733           ;;
13734         *)
13735           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737           ;;
13738       esac
13739       ;;
13740
13741       sysv5* | sco3.2v5* | sco5v6*)
13742         # Note: We can NOT use -z defs as we might desire, because we do not
13743         # link with -lc, and that would cause any symbols used from libc to
13744         # always be unresolved, which means just about no library would
13745         # ever link correctly.  If we're not using GNU ld we use -z text
13746         # though, which does catch some bad symbols but isn't as heavy-handed
13747         # as -z defs.
13748         no_undefined_flag_CXX='${wl}-z,text'
13749         allow_undefined_flag_CXX='${wl}-z,nodefs'
13750         archive_cmds_need_lc_CXX=no
13751         hardcode_shlibpath_var_CXX=no
13752         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13753         hardcode_libdir_separator_CXX=':'
13754         link_all_deplibs_CXX=yes
13755         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13756         runpath_var='LD_RUN_PATH'
13757
13758         case $cc_basename in
13759           CC*)
13760             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762             ;;
13763           *)
13764             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13766             ;;
13767         esac
13768       ;;
13769
13770       tandem*)
13771         case $cc_basename in
13772           NCC*)
13773             # NonStop-UX NCC 3.20
13774             # FIXME: insert proper C++ library support
13775             ld_shlibs_CXX=no
13776             ;;
13777           *)
13778             # FIXME: insert proper C++ library support
13779             ld_shlibs_CXX=no
13780             ;;
13781         esac
13782         ;;
13783
13784       vxworks*)
13785         # FIXME: insert proper C++ library support
13786         ld_shlibs_CXX=no
13787         ;;
13788
13789       *)
13790         # FIXME: insert proper C++ library support
13791         ld_shlibs_CXX=no
13792         ;;
13793     esac
13794
13795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13796 $as_echo "$ld_shlibs_CXX" >&6; }
13797     test "$ld_shlibs_CXX" = no && can_build_shared=no
13798
13799     GCC_CXX="$GXX"
13800     LD_CXX="$LD"
13801
13802     ## CAVEAT EMPTOR:
13803     ## There is no encapsulation within the following macros, do not change
13804     ## the running order or otherwise move them around unless you know exactly
13805     ## what you are doing...
13806     # Dependencies to place before and after the object being linked:
13807 predep_objects_CXX=
13808 postdep_objects_CXX=
13809 predeps_CXX=
13810 postdeps_CXX=
13811 compiler_lib_search_path_CXX=
13812
13813 cat > conftest.$ac_ext <<_LT_EOF
13814 class Foo
13815 {
13816 public:
13817   Foo (void) { a = 0; }
13818 private:
13819   int a;
13820 };
13821 _LT_EOF
13822
13823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13824   (eval $ac_compile) 2>&5
13825   ac_status=$?
13826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13827   test $ac_status = 0; }; then
13828   # Parse the compiler output and extract the necessary
13829   # objects, libraries and library flags.
13830
13831   # Sentinel used to keep track of whether or not we are before
13832   # the conftest object file.
13833   pre_test_object_deps_done=no
13834
13835   for p in `eval "$output_verbose_link_cmd"`; do
13836     case $p in
13837
13838     -L* | -R* | -l*)
13839        # Some compilers place space between "-{L,R}" and the path.
13840        # Remove the space.
13841        if test $p = "-L" ||
13842           test $p = "-R"; then
13843          prev=$p
13844          continue
13845        else
13846          prev=
13847        fi
13848
13849        if test "$pre_test_object_deps_done" = no; then
13850          case $p in
13851          -L* | -R*)
13852            # Internal compiler library paths should come after those
13853            # provided the user.  The postdeps already come after the
13854            # user supplied libs so there is no need to process them.
13855            if test -z "$compiler_lib_search_path_CXX"; then
13856              compiler_lib_search_path_CXX="${prev}${p}"
13857            else
13858              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13859            fi
13860            ;;
13861          # The "-l" case would never come before the object being
13862          # linked, so don't bother handling this case.
13863          esac
13864        else
13865          if test -z "$postdeps_CXX"; then
13866            postdeps_CXX="${prev}${p}"
13867          else
13868            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13869          fi
13870        fi
13871        ;;
13872
13873     *.$objext)
13874        # This assumes that the test object file only shows up
13875        # once in the compiler output.
13876        if test "$p" = "conftest.$objext"; then
13877          pre_test_object_deps_done=yes
13878          continue
13879        fi
13880
13881        if test "$pre_test_object_deps_done" = no; then
13882          if test -z "$predep_objects_CXX"; then
13883            predep_objects_CXX="$p"
13884          else
13885            predep_objects_CXX="$predep_objects_CXX $p"
13886          fi
13887        else
13888          if test -z "$postdep_objects_CXX"; then
13889            postdep_objects_CXX="$p"
13890          else
13891            postdep_objects_CXX="$postdep_objects_CXX $p"
13892          fi
13893        fi
13894        ;;
13895
13896     *) ;; # Ignore the rest.
13897
13898     esac
13899   done
13900
13901   # Clean up.
13902   rm -f a.out a.exe
13903 else
13904   echo "libtool.m4: error: problem compiling CXX test program"
13905 fi
13906
13907 $RM -f confest.$objext
13908
13909 # PORTME: override above test on systems where it is broken
13910 case $host_os in
13911 interix[3-9]*)
13912   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13913   # hack all around it, let's just trust "g++" to DTRT.
13914   predep_objects_CXX=
13915   postdep_objects_CXX=
13916   postdeps_CXX=
13917   ;;
13918
13919 linux*)
13920   case `$CC -V 2>&1 | sed 5q` in
13921   *Sun\ C*)
13922     # Sun C++ 5.9
13923
13924     # The more standards-conforming stlport4 library is
13925     # incompatible with the Cstd library. Avoid specifying
13926     # it if it's in CXXFLAGS. Ignore libCrun as
13927     # -library=stlport4 depends on it.
13928     case " $CXX $CXXFLAGS " in
13929     *" -library=stlport4 "*)
13930       solaris_use_stlport4=yes
13931       ;;
13932     esac
13933
13934     if test "$solaris_use_stlport4" != yes; then
13935       postdeps_CXX='-library=Cstd -library=Crun'
13936     fi
13937     ;;
13938   esac
13939   ;;
13940
13941 solaris*)
13942   case $cc_basename in
13943   CC*)
13944     # The more standards-conforming stlport4 library is
13945     # incompatible with the Cstd library. Avoid specifying
13946     # it if it's in CXXFLAGS. Ignore libCrun as
13947     # -library=stlport4 depends on it.
13948     case " $CXX $CXXFLAGS " in
13949     *" -library=stlport4 "*)
13950       solaris_use_stlport4=yes
13951       ;;
13952     esac
13953
13954     # Adding this requires a known-good setup of shared libraries for
13955     # Sun compiler versions before 5.6, else PIC objects from an old
13956     # archive will be linked into the output, leading to subtle bugs.
13957     if test "$solaris_use_stlport4" != yes; then
13958       postdeps_CXX='-library=Cstd -library=Crun'
13959     fi
13960     ;;
13961   esac
13962   ;;
13963 esac
13964
13965
13966 case " $postdeps_CXX " in
13967 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13968 esac
13969  compiler_lib_search_dirs_CXX=
13970 if test -n "${compiler_lib_search_path_CXX}"; then
13971  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13972 fi
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004     lt_prog_compiler_wl_CXX=
14005 lt_prog_compiler_pic_CXX=
14006 lt_prog_compiler_static_CXX=
14007
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14009 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14010
14011   # C++ specific cases for pic, static, wl, etc.
14012   if test "$GXX" = yes; then
14013     lt_prog_compiler_wl_CXX='-Wl,'
14014     lt_prog_compiler_static_CXX='-static'
14015
14016     case $host_os in
14017     aix*)
14018       # All AIX code is PIC.
14019       if test "$host_cpu" = ia64; then
14020         # AIX 5 now supports IA64 processor
14021         lt_prog_compiler_static_CXX='-Bstatic'
14022       fi
14023       ;;
14024
14025     amigaos*)
14026       case $host_cpu in
14027       powerpc)
14028             # see comment about AmigaOS4 .so support
14029             lt_prog_compiler_pic_CXX='-fPIC'
14030         ;;
14031       m68k)
14032             # FIXME: we need at least 68020 code to build shared libraries, but
14033             # adding the `-m68020' flag to GCC prevents building anything better,
14034             # like `-m68040'.
14035             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14036         ;;
14037       esac
14038       ;;
14039
14040     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14041       # PIC is the default for these OSes.
14042       ;;
14043     mingw* | cygwin* | os2* | pw32* | cegcc*)
14044       # This hack is so that the source file can tell whether it is being
14045       # built for inclusion in a dll (and should export symbols for example).
14046       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14047       # (--disable-auto-import) libraries
14048       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14049       ;;
14050     darwin* | rhapsody*)
14051       # PIC is the default on this platform
14052       # Common symbols not allowed in MH_DYLIB files
14053       lt_prog_compiler_pic_CXX='-fno-common'
14054       ;;
14055     *djgpp*)
14056       # DJGPP does not support shared libraries at all
14057       lt_prog_compiler_pic_CXX=
14058       ;;
14059     interix[3-9]*)
14060       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14061       # Instead, we relocate shared libraries at runtime.
14062       ;;
14063     sysv4*MP*)
14064       if test -d /usr/nec; then
14065         lt_prog_compiler_pic_CXX=-Kconform_pic
14066       fi
14067       ;;
14068     hpux*)
14069       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14070       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14071       # sets the default TLS model and affects inlining.
14072       case $host_cpu in
14073       hppa*64*)
14074         ;;
14075       *)
14076         lt_prog_compiler_pic_CXX='-fPIC'
14077         ;;
14078       esac
14079       ;;
14080     *qnx* | *nto*)
14081       # QNX uses GNU C++, but need to define -shared option too, otherwise
14082       # it will coredump.
14083       lt_prog_compiler_pic_CXX='-fPIC -shared'
14084       ;;
14085     *)
14086       lt_prog_compiler_pic_CXX='-fPIC'
14087       ;;
14088     esac
14089   else
14090     case $host_os in
14091       aix[4-9]*)
14092         # All AIX code is PIC.
14093         if test "$host_cpu" = ia64; then
14094           # AIX 5 now supports IA64 processor
14095           lt_prog_compiler_static_CXX='-Bstatic'
14096         else
14097           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14098         fi
14099         ;;
14100       chorus*)
14101         case $cc_basename in
14102         cxch68*)
14103           # Green Hills C++ Compiler
14104           # _LT_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"
14105           ;;
14106         esac
14107         ;;
14108       dgux*)
14109         case $cc_basename in
14110           ec++*)
14111             lt_prog_compiler_pic_CXX='-KPIC'
14112             ;;
14113           ghcx*)
14114             # Green Hills C++ Compiler
14115             lt_prog_compiler_pic_CXX='-pic'
14116             ;;
14117           *)
14118             ;;
14119         esac
14120         ;;
14121       freebsd* | dragonfly*)
14122         # FreeBSD uses GNU C++
14123         ;;
14124       hpux9* | hpux10* | hpux11*)
14125         case $cc_basename in
14126           CC*)
14127             lt_prog_compiler_wl_CXX='-Wl,'
14128             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14129             if test "$host_cpu" != ia64; then
14130               lt_prog_compiler_pic_CXX='+Z'
14131             fi
14132             ;;
14133           aCC*)
14134             lt_prog_compiler_wl_CXX='-Wl,'
14135             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14136             case $host_cpu in
14137             hppa*64*|ia64*)
14138               # +Z the default
14139               ;;
14140             *)
14141               lt_prog_compiler_pic_CXX='+Z'
14142               ;;
14143             esac
14144             ;;
14145           *)
14146             ;;
14147         esac
14148         ;;
14149       interix*)
14150         # This is c89, which is MS Visual C++ (no shared libs)
14151         # Anyone wants to do a port?
14152         ;;
14153       irix5* | irix6* | nonstopux*)
14154         case $cc_basename in
14155           CC*)
14156             lt_prog_compiler_wl_CXX='-Wl,'
14157             lt_prog_compiler_static_CXX='-non_shared'
14158             # CC pic flag -KPIC is the default.
14159             ;;
14160           *)
14161             ;;
14162         esac
14163         ;;
14164       linux* | k*bsd*-gnu)
14165         case $cc_basename in
14166           KCC*)
14167             # KAI C++ Compiler
14168             lt_prog_compiler_wl_CXX='--backend -Wl,'
14169             lt_prog_compiler_pic_CXX='-fPIC'
14170             ;;
14171           ecpc* )
14172             # old Intel C++ for x86_64 which still supported -KPIC.
14173             lt_prog_compiler_wl_CXX='-Wl,'
14174             lt_prog_compiler_pic_CXX='-KPIC'
14175             lt_prog_compiler_static_CXX='-static'
14176             ;;
14177           icpc* )
14178             # Intel C++, used to be incompatible with GCC.
14179             # ICC 10 doesn't accept -KPIC any more.
14180             lt_prog_compiler_wl_CXX='-Wl,'
14181             lt_prog_compiler_pic_CXX='-fPIC'
14182             lt_prog_compiler_static_CXX='-static'
14183             ;;
14184           pgCC* | pgcpp*)
14185             # Portland Group C++ compiler
14186             lt_prog_compiler_wl_CXX='-Wl,'
14187             lt_prog_compiler_pic_CXX='-fpic'
14188             lt_prog_compiler_static_CXX='-Bstatic'
14189             ;;
14190           cxx*)
14191             # Compaq C++
14192             # Make sure the PIC flag is empty.  It appears that all Alpha
14193             # Linux and Compaq Tru64 Unix objects are PIC.
14194             lt_prog_compiler_pic_CXX=
14195             lt_prog_compiler_static_CXX='-non_shared'
14196             ;;
14197           xlc* | xlC*)
14198             # IBM XL 8.0 on PPC
14199             lt_prog_compiler_wl_CXX='-Wl,'
14200             lt_prog_compiler_pic_CXX='-qpic'
14201             lt_prog_compiler_static_CXX='-qstaticlink'
14202             ;;
14203           *)
14204             case `$CC -V 2>&1 | sed 5q` in
14205             *Sun\ C*)
14206               # Sun C++ 5.9
14207               lt_prog_compiler_pic_CXX='-KPIC'
14208               lt_prog_compiler_static_CXX='-Bstatic'
14209               lt_prog_compiler_wl_CXX='-Qoption ld '
14210               ;;
14211             esac
14212             ;;
14213         esac
14214         ;;
14215       lynxos*)
14216         ;;
14217       m88k*)
14218         ;;
14219       mvs*)
14220         case $cc_basename in
14221           cxx*)
14222             lt_prog_compiler_pic_CXX='-W c,exportall'
14223             ;;
14224           *)
14225             ;;
14226         esac
14227         ;;
14228       netbsd*)
14229         ;;
14230       *qnx* | *nto*)
14231         # QNX uses GNU C++, but need to define -shared option too, otherwise
14232         # it will coredump.
14233         lt_prog_compiler_pic_CXX='-fPIC -shared'
14234         ;;
14235       osf3* | osf4* | osf5*)
14236         case $cc_basename in
14237           KCC*)
14238             lt_prog_compiler_wl_CXX='--backend -Wl,'
14239             ;;
14240           RCC*)
14241             # Rational C++ 2.4.1
14242             lt_prog_compiler_pic_CXX='-pic'
14243             ;;
14244           cxx*)
14245             # Digital/Compaq C++
14246             lt_prog_compiler_wl_CXX='-Wl,'
14247             # Make sure the PIC flag is empty.  It appears that all Alpha
14248             # Linux and Compaq Tru64 Unix objects are PIC.
14249             lt_prog_compiler_pic_CXX=
14250             lt_prog_compiler_static_CXX='-non_shared'
14251             ;;
14252           *)
14253             ;;
14254         esac
14255         ;;
14256       psos*)
14257         ;;
14258       solaris*)
14259         case $cc_basename in
14260           CC*)
14261             # Sun C++ 4.2, 5.x and Centerline C++
14262             lt_prog_compiler_pic_CXX='-KPIC'
14263             lt_prog_compiler_static_CXX='-Bstatic'
14264             lt_prog_compiler_wl_CXX='-Qoption ld '
14265             ;;
14266           gcx*)
14267             # Green Hills C++ Compiler
14268             lt_prog_compiler_pic_CXX='-PIC'
14269             ;;
14270           *)
14271             ;;
14272         esac
14273         ;;
14274       sunos4*)
14275         case $cc_basename in
14276           CC*)
14277             # Sun C++ 4.x
14278             lt_prog_compiler_pic_CXX='-pic'
14279             lt_prog_compiler_static_CXX='-Bstatic'
14280             ;;
14281           lcc*)
14282             # Lucid
14283             lt_prog_compiler_pic_CXX='-pic'
14284             ;;
14285           *)
14286             ;;
14287         esac
14288         ;;
14289       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14290         case $cc_basename in
14291           CC*)
14292             lt_prog_compiler_wl_CXX='-Wl,'
14293             lt_prog_compiler_pic_CXX='-KPIC'
14294             lt_prog_compiler_static_CXX='-Bstatic'
14295             ;;
14296         esac
14297         ;;
14298       tandem*)
14299         case $cc_basename in
14300           NCC*)
14301             # NonStop-UX NCC 3.20
14302             lt_prog_compiler_pic_CXX='-KPIC'
14303             ;;
14304           *)
14305             ;;
14306         esac
14307         ;;
14308       vxworks*)
14309         ;;
14310       *)
14311         lt_prog_compiler_can_build_shared_CXX=no
14312         ;;
14313     esac
14314   fi
14315
14316 case $host_os in
14317   # For platforms which do not support PIC, -DPIC is meaningless:
14318   *djgpp*)
14319     lt_prog_compiler_pic_CXX=
14320     ;;
14321   *)
14322     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14323     ;;
14324 esac
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14326 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14327
14328
14329
14330 #
14331 # Check to make sure the PIC flag actually works.
14332 #
14333 if test -n "$lt_prog_compiler_pic_CXX"; then
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14335 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14336 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14337   $as_echo_n "(cached) " >&6
14338 else
14339   lt_cv_prog_compiler_pic_works_CXX=no
14340    ac_outfile=conftest.$ac_objext
14341    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14342    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14343    # Insert the option either (1) after the last *FLAGS variable, or
14344    # (2) before a word containing "conftest.", or (3) at the end.
14345    # Note that $ac_compile itself does not contain backslashes and begins
14346    # with a dollar sign (not a hyphen), so the echo should work correctly.
14347    # The option is referenced via a variable to avoid confusing sed.
14348    lt_compile=`echo "$ac_compile" | $SED \
14349    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14350    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14351    -e 's:$: $lt_compiler_flag:'`
14352    (eval echo "\"\$as_me:14352: $lt_compile\"" >&5)
14353    (eval "$lt_compile" 2>conftest.err)
14354    ac_status=$?
14355    cat conftest.err >&5
14356    echo "$as_me:14356: \$? = $ac_status" >&5
14357    if (exit $ac_status) && test -s "$ac_outfile"; then
14358      # The compiler can only warn and ignore the option if not recognized
14359      # So say no if there are warnings other than the usual output.
14360      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14361      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14362      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14363        lt_cv_prog_compiler_pic_works_CXX=yes
14364      fi
14365    fi
14366    $RM conftest*
14367
14368 fi
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14370 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14371
14372 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14373     case $lt_prog_compiler_pic_CXX in
14374      "" | " "*) ;;
14375      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14376      esac
14377 else
14378     lt_prog_compiler_pic_CXX=
14379      lt_prog_compiler_can_build_shared_CXX=no
14380 fi
14381
14382 fi
14383
14384
14385
14386 #
14387 # Check to make sure the static flag actually works.
14388 #
14389 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14391 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14392 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14393   $as_echo_n "(cached) " >&6
14394 else
14395   lt_cv_prog_compiler_static_works_CXX=no
14396    save_LDFLAGS="$LDFLAGS"
14397    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14398    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14399    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14400      # The linker can only warn and ignore the option if not recognized
14401      # So say no if there are warnings
14402      if test -s conftest.err; then
14403        # Append any errors to the config.log.
14404        cat conftest.err 1>&5
14405        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14406        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14407        if diff conftest.exp conftest.er2 >/dev/null; then
14408          lt_cv_prog_compiler_static_works_CXX=yes
14409        fi
14410      else
14411        lt_cv_prog_compiler_static_works_CXX=yes
14412      fi
14413    fi
14414    $RM -r conftest*
14415    LDFLAGS="$save_LDFLAGS"
14416
14417 fi
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14419 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14420
14421 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14422     :
14423 else
14424     lt_prog_compiler_static_CXX=
14425 fi
14426
14427
14428
14429
14430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14431 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14432 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14433   $as_echo_n "(cached) " >&6
14434 else
14435   lt_cv_prog_compiler_c_o_CXX=no
14436    $RM -r conftest 2>/dev/null
14437    mkdir conftest
14438    cd conftest
14439    mkdir out
14440    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14441
14442    lt_compiler_flag="-o out/conftest2.$ac_objext"
14443    # Insert the option either (1) after the last *FLAGS variable, or
14444    # (2) before a word containing "conftest.", or (3) at the end.
14445    # Note that $ac_compile itself does not contain backslashes and begins
14446    # with a dollar sign (not a hyphen), so the echo should work correctly.
14447    lt_compile=`echo "$ac_compile" | $SED \
14448    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14449    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14450    -e 's:$: $lt_compiler_flag:'`
14451    (eval echo "\"\$as_me:14451: $lt_compile\"" >&5)
14452    (eval "$lt_compile" 2>out/conftest.err)
14453    ac_status=$?
14454    cat out/conftest.err >&5
14455    echo "$as_me:14455: \$? = $ac_status" >&5
14456    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14457    then
14458      # The compiler can only warn and ignore the option if not recognized
14459      # So say no if there are warnings
14460      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14461      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14462      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14463        lt_cv_prog_compiler_c_o_CXX=yes
14464      fi
14465    fi
14466    chmod u+w . 2>&5
14467    $RM conftest*
14468    # SGI C++ compiler will create directory out/ii_files/ for
14469    # template instantiation
14470    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14471    $RM out/* && rmdir out
14472    cd ..
14473    $RM -r conftest
14474    $RM conftest*
14475
14476 fi
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14478 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14479
14480
14481
14482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14483 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14484 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14485   $as_echo_n "(cached) " >&6
14486 else
14487   lt_cv_prog_compiler_c_o_CXX=no
14488    $RM -r conftest 2>/dev/null
14489    mkdir conftest
14490    cd conftest
14491    mkdir out
14492    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14493
14494    lt_compiler_flag="-o out/conftest2.$ac_objext"
14495    # Insert the option either (1) after the last *FLAGS variable, or
14496    # (2) before a word containing "conftest.", or (3) at the end.
14497    # Note that $ac_compile itself does not contain backslashes and begins
14498    # with a dollar sign (not a hyphen), so the echo should work correctly.
14499    lt_compile=`echo "$ac_compile" | $SED \
14500    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14501    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14502    -e 's:$: $lt_compiler_flag:'`
14503    (eval echo "\"\$as_me:14503: $lt_compile\"" >&5)
14504    (eval "$lt_compile" 2>out/conftest.err)
14505    ac_status=$?
14506    cat out/conftest.err >&5
14507    echo "$as_me:14507: \$? = $ac_status" >&5
14508    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14509    then
14510      # The compiler can only warn and ignore the option if not recognized
14511      # So say no if there are warnings
14512      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14513      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14514      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14515        lt_cv_prog_compiler_c_o_CXX=yes
14516      fi
14517    fi
14518    chmod u+w . 2>&5
14519    $RM conftest*
14520    # SGI C++ compiler will create directory out/ii_files/ for
14521    # template instantiation
14522    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14523    $RM out/* && rmdir out
14524    cd ..
14525    $RM -r conftest
14526    $RM conftest*
14527
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14530 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14531
14532
14533
14534
14535 hard_links="nottested"
14536 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14537   # do not overwrite the value of need_locks provided by the user
14538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14539 $as_echo_n "checking if we can lock with hard links... " >&6; }
14540   hard_links=yes
14541   $RM conftest*
14542   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14543   touch conftest.a
14544   ln conftest.a conftest.b 2>&5 || hard_links=no
14545   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14547 $as_echo "$hard_links" >&6; }
14548   if test "$hard_links" = no; then
14549     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14550 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14551     need_locks=warn
14552   fi
14553 else
14554   need_locks=no
14555 fi
14556
14557
14558
14559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14560 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14561
14562   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14563   case $host_os in
14564   aix[4-9]*)
14565     # If we're using GNU nm, then we don't want the "-C" option.
14566     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14567     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14568       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'
14569     else
14570       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'
14571     fi
14572     ;;
14573   pw32*)
14574     export_symbols_cmds_CXX="$ltdll_cmds"
14575   ;;
14576   cygwin* | mingw* | cegcc*)
14577     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'
14578   ;;
14579   *)
14580     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14581   ;;
14582   esac
14583   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14584
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14586 $as_echo "$ld_shlibs_CXX" >&6; }
14587 test "$ld_shlibs_CXX" = no && can_build_shared=no
14588
14589 with_gnu_ld_CXX=$with_gnu_ld
14590
14591
14592
14593
14594
14595
14596 #
14597 # Do we need to explicitly link libc?
14598 #
14599 case "x$archive_cmds_need_lc_CXX" in
14600 x|xyes)
14601   # Assume -lc should be added
14602   archive_cmds_need_lc_CXX=yes
14603
14604   if test "$enable_shared" = yes && test "$GCC" = yes; then
14605     case $archive_cmds_CXX in
14606     *'~'*)
14607       # FIXME: we may have to deal with multi-command sequences.
14608       ;;
14609     '$CC '*)
14610       # Test whether the compiler implicitly links with -lc since on some
14611       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14612       # to ld, don't add -lc before -lgcc.
14613       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14614 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14615       $RM conftest*
14616       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14617
14618       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14619   (eval $ac_compile) 2>&5
14620   ac_status=$?
14621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622   test $ac_status = 0; } 2>conftest.err; then
14623         soname=conftest
14624         lib=conftest
14625         libobjs=conftest.$ac_objext
14626         deplibs=
14627         wl=$lt_prog_compiler_wl_CXX
14628         pic_flag=$lt_prog_compiler_pic_CXX
14629         compiler_flags=-v
14630         linker_flags=-v
14631         verstring=
14632         output_objdir=.
14633         libname=conftest
14634         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14635         allow_undefined_flag_CXX=
14636         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14637   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14638   ac_status=$?
14639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14640   test $ac_status = 0; }
14641         then
14642           archive_cmds_need_lc_CXX=no
14643         else
14644           archive_cmds_need_lc_CXX=yes
14645         fi
14646         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14647       else
14648         cat conftest.err 1>&5
14649       fi
14650       $RM conftest*
14651       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14652 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14653       ;;
14654     esac
14655   fi
14656   ;;
14657 esac
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14723 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14724
14725 library_names_spec=
14726 libname_spec='lib$name'
14727 soname_spec=
14728 shrext_cmds=".so"
14729 postinstall_cmds=
14730 postuninstall_cmds=
14731 finish_cmds=
14732 finish_eval=
14733 shlibpath_var=
14734 shlibpath_overrides_runpath=unknown
14735 version_type=none
14736 dynamic_linker="$host_os ld.so"
14737 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14738 need_lib_prefix=unknown
14739 hardcode_into_libs=no
14740
14741 # when you set need_version to no, make sure it does not cause -set_version
14742 # flags to be left without arguments
14743 need_version=unknown
14744
14745 case $host_os in
14746 aix3*)
14747   version_type=linux
14748   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14749   shlibpath_var=LIBPATH
14750
14751   # AIX 3 has no versioning support, so we append a major version to the name.
14752   soname_spec='${libname}${release}${shared_ext}$major'
14753   ;;
14754
14755 aix[4-9]*)
14756   version_type=linux
14757   need_lib_prefix=no
14758   need_version=no
14759   hardcode_into_libs=yes
14760   if test "$host_cpu" = ia64; then
14761     # AIX 5 supports IA64
14762     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14763     shlibpath_var=LD_LIBRARY_PATH
14764   else
14765     # With GCC up to 2.95.x, collect2 would create an import file
14766     # for dependence libraries.  The import file would start with
14767     # the line `#! .'.  This would cause the generated library to
14768     # depend on `.', always an invalid library.  This was fixed in
14769     # development snapshots of GCC prior to 3.0.
14770     case $host_os in
14771       aix4 | aix4.[01] | aix4.[01].*)
14772       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14773            echo ' yes '
14774            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14775         :
14776       else
14777         can_build_shared=no
14778       fi
14779       ;;
14780     esac
14781     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14782     # soname into executable. Probably we can add versioning support to
14783     # collect2, so additional links can be useful in future.
14784     if test "$aix_use_runtimelinking" = yes; then
14785       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14786       # instead of lib<name>.a to let people know that these are not
14787       # typical AIX shared libraries.
14788       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789     else
14790       # We preserve .a as extension for shared libraries through AIX4.2
14791       # and later when we are not doing run time linking.
14792       library_names_spec='${libname}${release}.a $libname.a'
14793       soname_spec='${libname}${release}${shared_ext}$major'
14794     fi
14795     shlibpath_var=LIBPATH
14796   fi
14797   ;;
14798
14799 amigaos*)
14800   case $host_cpu in
14801   powerpc)
14802     # Since July 2007 AmigaOS4 officially supports .so libraries.
14803     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14804     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805     ;;
14806   m68k)
14807     library_names_spec='$libname.ixlibrary $libname.a'
14808     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14809     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'
14810     ;;
14811   esac
14812   ;;
14813
14814 beos*)
14815   library_names_spec='${libname}${shared_ext}'
14816   dynamic_linker="$host_os ld.so"
14817   shlibpath_var=LIBRARY_PATH
14818   ;;
14819
14820 bsdi[45]*)
14821   version_type=linux
14822   need_version=no
14823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824   soname_spec='${libname}${release}${shared_ext}$major'
14825   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14826   shlibpath_var=LD_LIBRARY_PATH
14827   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14828   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14829   # the default ld.so.conf also contains /usr/contrib/lib and
14830   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14831   # libtool to hard-code these into programs
14832   ;;
14833
14834 cygwin* | mingw* | pw32* | cegcc*)
14835   version_type=windows
14836   shrext_cmds=".dll"
14837   need_version=no
14838   need_lib_prefix=no
14839
14840   case $GCC,$host_os in
14841   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14842     library_names_spec='$libname.dll.a'
14843     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14844     postinstall_cmds='base_file=`basename \${file}`~
14845       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14846       dldir=$destdir/`dirname \$dlpath`~
14847       test -d \$dldir || mkdir -p \$dldir~
14848       $install_prog $dir/$dlname \$dldir/$dlname~
14849       chmod a+x \$dldir/$dlname~
14850       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14851         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14852       fi'
14853     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14854       dlpath=$dir/\$dldll~
14855        $RM \$dlpath'
14856     shlibpath_overrides_runpath=yes
14857
14858     case $host_os in
14859     cygwin*)
14860       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14861       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14862       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14863       ;;
14864     mingw* | cegcc*)
14865       # MinGW DLLs use traditional 'lib' prefix
14866       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14867       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14868       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14869         # It is most probably a Windows format PATH printed by
14870         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14871         # path with ; separators, and with drive letters. We can handle the
14872         # drive letters (cygwin fileutils understands them), so leave them,
14873         # especially as we might pass files found there to a mingw objdump,
14874         # which wouldn't understand a cygwinified path. Ahh.
14875         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14876       else
14877         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14878       fi
14879       ;;
14880     pw32*)
14881       # pw32 DLLs use 'pw' prefix rather than 'lib'
14882       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14883       ;;
14884     esac
14885     ;;
14886
14887   *)
14888     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14889     ;;
14890   esac
14891   dynamic_linker='Win32 ld.exe'
14892   # FIXME: first we should search . and the directory the executable is in
14893   shlibpath_var=PATH
14894   ;;
14895
14896 darwin* | rhapsody*)
14897   dynamic_linker="$host_os dyld"
14898   version_type=darwin
14899   need_lib_prefix=no
14900   need_version=no
14901   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14902   soname_spec='${libname}${release}${major}$shared_ext'
14903   shlibpath_overrides_runpath=yes
14904   shlibpath_var=DYLD_LIBRARY_PATH
14905   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14906
14907   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14908   ;;
14909
14910 dgux*)
14911   version_type=linux
14912   need_lib_prefix=no
14913   need_version=no
14914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14915   soname_spec='${libname}${release}${shared_ext}$major'
14916   shlibpath_var=LD_LIBRARY_PATH
14917   ;;
14918
14919 freebsd1*)
14920   dynamic_linker=no
14921   ;;
14922
14923 freebsd* | dragonfly*)
14924   # DragonFly does not have aout.  When/if they implement a new
14925   # versioning mechanism, adjust this.
14926   if test -x /usr/bin/objformat; then
14927     objformat=`/usr/bin/objformat`
14928   else
14929     case $host_os in
14930     freebsd[123]*) objformat=aout ;;
14931     *) objformat=elf ;;
14932     esac
14933   fi
14934   version_type=freebsd-$objformat
14935   case $version_type in
14936     freebsd-elf*)
14937       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14938       need_version=no
14939       need_lib_prefix=no
14940       ;;
14941     freebsd-*)
14942       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14943       need_version=yes
14944       ;;
14945   esac
14946   shlibpath_var=LD_LIBRARY_PATH
14947   case $host_os in
14948   freebsd2*)
14949     shlibpath_overrides_runpath=yes
14950     ;;
14951   freebsd3.[01]* | freebsdelf3.[01]*)
14952     shlibpath_overrides_runpath=yes
14953     hardcode_into_libs=yes
14954     ;;
14955   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14956   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14957     shlibpath_overrides_runpath=no
14958     hardcode_into_libs=yes
14959     ;;
14960   *) # from 4.6 on, and DragonFly
14961     shlibpath_overrides_runpath=yes
14962     hardcode_into_libs=yes
14963     ;;
14964   esac
14965   ;;
14966
14967 gnu*)
14968   version_type=linux
14969   need_lib_prefix=no
14970   need_version=no
14971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14972   soname_spec='${libname}${release}${shared_ext}$major'
14973   shlibpath_var=LD_LIBRARY_PATH
14974   hardcode_into_libs=yes
14975   ;;
14976
14977 hpux9* | hpux10* | hpux11*)
14978   # Give a soname corresponding to the major version so that dld.sl refuses to
14979   # link against other versions.
14980   version_type=sunos
14981   need_lib_prefix=no
14982   need_version=no
14983   case $host_cpu in
14984   ia64*)
14985     shrext_cmds='.so'
14986     hardcode_into_libs=yes
14987     dynamic_linker="$host_os dld.so"
14988     shlibpath_var=LD_LIBRARY_PATH
14989     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991     soname_spec='${libname}${release}${shared_ext}$major'
14992     if test "X$HPUX_IA64_MODE" = X32; then
14993       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14994     else
14995       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14996     fi
14997     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14998     ;;
14999   hppa*64*)
15000     shrext_cmds='.sl'
15001     hardcode_into_libs=yes
15002     dynamic_linker="$host_os dld.sl"
15003     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15004     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006     soname_spec='${libname}${release}${shared_ext}$major'
15007     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15008     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15009     ;;
15010   *)
15011     shrext_cmds='.sl'
15012     dynamic_linker="$host_os dld.sl"
15013     shlibpath_var=SHLIB_PATH
15014     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15015     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016     soname_spec='${libname}${release}${shared_ext}$major'
15017     ;;
15018   esac
15019   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15020   postinstall_cmds='chmod 555 $lib'
15021   ;;
15022
15023 interix[3-9]*)
15024   version_type=linux
15025   need_lib_prefix=no
15026   need_version=no
15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15028   soname_spec='${libname}${release}${shared_ext}$major'
15029   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15030   shlibpath_var=LD_LIBRARY_PATH
15031   shlibpath_overrides_runpath=no
15032   hardcode_into_libs=yes
15033   ;;
15034
15035 irix5* | irix6* | nonstopux*)
15036   case $host_os in
15037     nonstopux*) version_type=nonstopux ;;
15038     *)
15039         if test "$lt_cv_prog_gnu_ld" = yes; then
15040                 version_type=linux
15041         else
15042                 version_type=irix
15043         fi ;;
15044   esac
15045   need_lib_prefix=no
15046   need_version=no
15047   soname_spec='${libname}${release}${shared_ext}$major'
15048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15049   case $host_os in
15050   irix5* | nonstopux*)
15051     libsuff= shlibsuff=
15052     ;;
15053   *)
15054     case $LD in # libtool.m4 will add one of these switches to LD
15055     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15056       libsuff= shlibsuff= libmagic=32-bit;;
15057     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15058       libsuff=32 shlibsuff=N32 libmagic=N32;;
15059     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15060       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15061     *) libsuff= shlibsuff= libmagic=never-match;;
15062     esac
15063     ;;
15064   esac
15065   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15066   shlibpath_overrides_runpath=no
15067   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15068   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15069   hardcode_into_libs=yes
15070   ;;
15071
15072 # No shared lib support for Linux oldld, aout, or coff.
15073 linux*oldld* | linux*aout* | linux*coff*)
15074   dynamic_linker=no
15075   ;;
15076
15077 # This must be Linux ELF.
15078 linux* | k*bsd*-gnu)
15079   version_type=linux
15080   need_lib_prefix=no
15081   need_version=no
15082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083   soname_spec='${libname}${release}${shared_ext}$major'
15084   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15085   shlibpath_var=LD_LIBRARY_PATH
15086   shlibpath_overrides_runpath=no
15087   # Some binutils ld are patched to set DT_RUNPATH
15088   save_LDFLAGS=$LDFLAGS
15089   save_libdir=$libdir
15090   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15091        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h.  */
15094
15095 int
15096 main ()
15097 {
15098
15099   ;
15100   return 0;
15101 }
15102 _ACEOF
15103 if ac_fn_cxx_try_link "$LINENO"; then :
15104   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15105   shlibpath_overrides_runpath=yes
15106 fi
15107 fi
15108 rm -f core conftest.err conftest.$ac_objext \
15109     conftest$ac_exeext conftest.$ac_ext
15110   LDFLAGS=$save_LDFLAGS
15111   libdir=$save_libdir
15112
15113   # This implies no fast_install, which is unacceptable.
15114   # Some rework will be needed to allow for fast_install
15115   # before this can be enabled.
15116   hardcode_into_libs=yes
15117
15118   # Append ld.so.conf contents to the search path
15119   if test -f /etc/ld.so.conf; then
15120     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' ' '`
15121     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15122   fi
15123
15124   # We used to test for /lib/ld.so.1 and disable shared libraries on
15125   # powerpc, because MkLinux only supported shared libraries with the
15126   # GNU dynamic linker.  Since this was broken with cross compilers,
15127   # most powerpc-linux boxes support dynamic linking these days and
15128   # people can always --disable-shared, the test was removed, and we
15129   # assume the GNU/Linux dynamic linker is in use.
15130   dynamic_linker='GNU/Linux ld.so'
15131   ;;
15132
15133 netbsd*)
15134   version_type=sunos
15135   need_lib_prefix=no
15136   need_version=no
15137   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15139     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15140     dynamic_linker='NetBSD (a.out) ld.so'
15141   else
15142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15143     soname_spec='${libname}${release}${shared_ext}$major'
15144     dynamic_linker='NetBSD ld.elf_so'
15145   fi
15146   shlibpath_var=LD_LIBRARY_PATH
15147   shlibpath_overrides_runpath=yes
15148   hardcode_into_libs=yes
15149   ;;
15150
15151 newsos6)
15152   version_type=linux
15153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154   shlibpath_var=LD_LIBRARY_PATH
15155   shlibpath_overrides_runpath=yes
15156   ;;
15157
15158 *nto* | *qnx*)
15159   version_type=qnx
15160   need_lib_prefix=no
15161   need_version=no
15162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15163   soname_spec='${libname}${release}${shared_ext}$major'
15164   shlibpath_var=LD_LIBRARY_PATH
15165   shlibpath_overrides_runpath=no
15166   hardcode_into_libs=yes
15167   dynamic_linker='ldqnx.so'
15168   ;;
15169
15170 openbsd*)
15171   version_type=sunos
15172   sys_lib_dlsearch_path_spec="/usr/lib"
15173   need_lib_prefix=no
15174   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15175   case $host_os in
15176     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15177     *)                          need_version=no  ;;
15178   esac
15179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15180   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15181   shlibpath_var=LD_LIBRARY_PATH
15182   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15183     case $host_os in
15184       openbsd2.[89] | openbsd2.[89].*)
15185         shlibpath_overrides_runpath=no
15186         ;;
15187       *)
15188         shlibpath_overrides_runpath=yes
15189         ;;
15190       esac
15191   else
15192     shlibpath_overrides_runpath=yes
15193   fi
15194   ;;
15195
15196 os2*)
15197   libname_spec='$name'
15198   shrext_cmds=".dll"
15199   need_lib_prefix=no
15200   library_names_spec='$libname${shared_ext} $libname.a'
15201   dynamic_linker='OS/2 ld.exe'
15202   shlibpath_var=LIBPATH
15203   ;;
15204
15205 osf3* | osf4* | osf5*)
15206   version_type=osf
15207   need_lib_prefix=no
15208   need_version=no
15209   soname_spec='${libname}${release}${shared_ext}$major'
15210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211   shlibpath_var=LD_LIBRARY_PATH
15212   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15213   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15214   ;;
15215
15216 rdos*)
15217   dynamic_linker=no
15218   ;;
15219
15220 solaris*)
15221   version_type=linux
15222   need_lib_prefix=no
15223   need_version=no
15224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225   soname_spec='${libname}${release}${shared_ext}$major'
15226   shlibpath_var=LD_LIBRARY_PATH
15227   shlibpath_overrides_runpath=yes
15228   hardcode_into_libs=yes
15229   # ldd complains unless libraries are executable
15230   postinstall_cmds='chmod +x $lib'
15231   ;;
15232
15233 sunos4*)
15234   version_type=sunos
15235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15236   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15237   shlibpath_var=LD_LIBRARY_PATH
15238   shlibpath_overrides_runpath=yes
15239   if test "$with_gnu_ld" = yes; then
15240     need_lib_prefix=no
15241   fi
15242   need_version=yes
15243   ;;
15244
15245 sysv4 | sysv4.3*)
15246   version_type=linux
15247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248   soname_spec='${libname}${release}${shared_ext}$major'
15249   shlibpath_var=LD_LIBRARY_PATH
15250   case $host_vendor in
15251     sni)
15252       shlibpath_overrides_runpath=no
15253       need_lib_prefix=no
15254       runpath_var=LD_RUN_PATH
15255       ;;
15256     siemens)
15257       need_lib_prefix=no
15258       ;;
15259     motorola)
15260       need_lib_prefix=no
15261       need_version=no
15262       shlibpath_overrides_runpath=no
15263       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15264       ;;
15265   esac
15266   ;;
15267
15268 sysv4*MP*)
15269   if test -d /usr/nec ;then
15270     version_type=linux
15271     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15272     soname_spec='$libname${shared_ext}.$major'
15273     shlibpath_var=LD_LIBRARY_PATH
15274   fi
15275   ;;
15276
15277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15278   version_type=freebsd-elf
15279   need_lib_prefix=no
15280   need_version=no
15281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15282   soname_spec='${libname}${release}${shared_ext}$major'
15283   shlibpath_var=LD_LIBRARY_PATH
15284   shlibpath_overrides_runpath=yes
15285   hardcode_into_libs=yes
15286   if test "$with_gnu_ld" = yes; then
15287     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15288   else
15289     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15290     case $host_os in
15291       sco3.2v5*)
15292         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15293         ;;
15294     esac
15295   fi
15296   sys_lib_dlsearch_path_spec='/usr/lib'
15297   ;;
15298
15299 tpf*)
15300   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15301   version_type=linux
15302   need_lib_prefix=no
15303   need_version=no
15304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305   shlibpath_var=LD_LIBRARY_PATH
15306   shlibpath_overrides_runpath=no
15307   hardcode_into_libs=yes
15308   ;;
15309
15310 uts4*)
15311   version_type=linux
15312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313   soname_spec='${libname}${release}${shared_ext}$major'
15314   shlibpath_var=LD_LIBRARY_PATH
15315   ;;
15316
15317 *)
15318   dynamic_linker=no
15319   ;;
15320 esac
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15322 $as_echo "$dynamic_linker" >&6; }
15323 test "$dynamic_linker" = no && can_build_shared=no
15324
15325 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15326 if test "$GCC" = yes; then
15327   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15328 fi
15329
15330 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15331   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15332 fi
15333 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15334   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15335 fi
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15373 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15374 hardcode_action_CXX=
15375 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15376    test -n "$runpath_var_CXX" ||
15377    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15378
15379   # We can hardcode non-existent directories.
15380   if test "$hardcode_direct_CXX" != no &&
15381      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15382      # have to relink, otherwise we might link with an installed library
15383      # when we should be linking with a yet-to-be-installed one
15384      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15385      test "$hardcode_minus_L_CXX" != no; then
15386     # Linking always hardcodes the temporary library directory.
15387     hardcode_action_CXX=relink
15388   else
15389     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15390     hardcode_action_CXX=immediate
15391   fi
15392 else
15393   # We cannot hardcode anything, or else we can only hardcode existing
15394   # directories.
15395   hardcode_action_CXX=unsupported
15396 fi
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15398 $as_echo "$hardcode_action_CXX" >&6; }
15399
15400 if test "$hardcode_action_CXX" = relink ||
15401    test "$inherit_rpath_CXX" = yes; then
15402   # Fast installation is not supported
15403   enable_fast_install=no
15404 elif test "$shlibpath_overrides_runpath" = yes ||
15405      test "$enable_shared" = no; then
15406   # Fast installation is not necessary
15407   enable_fast_install=needless
15408 fi
15409
15410
15411
15412
15413
15414
15415
15416   fi # test -n "$compiler"
15417
15418   CC=$lt_save_CC
15419   LDCXX=$LD
15420   LD=$lt_save_LD
15421   GCC=$lt_save_GCC
15422   with_gnu_ld=$lt_save_with_gnu_ld
15423   lt_cv_path_LDCXX=$lt_cv_path_LD
15424   lt_cv_path_LD=$lt_save_path_LD
15425   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15426   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15427 fi # test "$_lt_caught_CXX_error" != yes
15428
15429 ac_ext=cpp
15430 ac_cpp='$CXXCPP $CPPFLAGS'
15431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447         ac_config_commands="$ac_config_commands libtool"
15448
15449
15450
15451
15452 # Only expand once:
15453
15454
15455
15456
15457 ######################################################################
15458 # the following interpret 'with' and 'enable' switches.
15459 # some of these switches trigger checks that can be found further
15460 # below in this configure script
15461
15462 # does the user want aggressive optimization?
15463 # Check whether --enable-debug was given.
15464 if test "${enable_debug+set}" = set; then :
15465   enableval=$enable_debug; enable_debug=$enableval
15466 else
15467   enable_debug=no
15468 fi
15469
15470
15471 # does the user want to have automatic guess of suitable optimization options
15472 # Check whether --enable-optimization was given.
15473 if test "${enable_optimization+set}" = set; then :
15474   enableval=$enable_optimization; enable_optimization=$enableval
15475 else
15476   enable_optimization=yes
15477 fi
15478
15479
15480 # does the user want to have SSE / SSE2 / SSE3 specified?
15481 # Check whether --enable-sse was given.
15482 if test "${enable_sse+set}" = set; then :
15483   enableval=$enable_sse; enable_sse=$enableval
15484 else
15485   enable_sse=auto
15486 fi
15487
15488
15489 # does the user want to build demo applications?
15490 # Check whether --enable-apps was given.
15491 if test "${enable_apps+set}" = set; then :
15492   enableval=$enable_apps; enable_apps=$enableval
15493 else
15494   enable_apps="yes"
15495 fi
15496
15497  if test x"$enable_apps" = x"yes"; then
15498   BUILD_APPS_TRUE=
15499   BUILD_APPS_FALSE='#'
15500 else
15501   BUILD_APPS_TRUE='#'
15502   BUILD_APPS_FALSE=
15503 fi
15504
15505
15506
15507 # the following checks reflect the dependencies of OpenCV on other
15508 # libraries that do the actual work for video I/O or windowing
15509 # subsystem. On some platforms there are ambiguities that a user
15510 # can influence. There is also additional logic to be found in code
15511 # later code lines that tries to do sensible decisions on what to use
15512
15513 # does the user want to compile python modules as well?
15514
15515 # Check whether --with-native-lapack was given.
15516 if test "${with_native_lapack+set}" = set; then :
15517   withval=$with_native_lapack; with_native_lapack=$withval
15518 else
15519   with_native_lapack=no
15520 fi
15521
15522
15523 # compile and link against OpenMP
15524 # because of this: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28482
15525 # we disable OpenMP by default. But one may enable it explicitly with --with-openmp
15526 #AC_ARG_WITH([openmp],
15527 #            [AS_HELP_STRING([--with-openmp],[use OpenMP threading [no]])],
15528 #            [with_openmp=$withval],
15529 #            [with_openmp=no])
15530
15531 # does the user want to compile python modules as well?
15532
15533 # Check whether --with-swig was given.
15534 if test "${with_swig+set}" = set; then :
15535   withval=$with_swig; with_swig=$withval
15536 else
15537   with_swig=no
15538 fi
15539
15540
15541 # does the user want to compile python modules as well?
15542
15543 # Check whether --with-python was given.
15544 if test "${with_python+set}" = set; then :
15545   withval=$with_python; with_python=$withval
15546 else
15547   with_python=yes
15548 fi
15549
15550
15551 # does the user want to compile octave modules as well?
15552
15553 # Check whether --with-octave was given.
15554 if test "${with_octave+set}" = set; then :
15555   withval=$with_octave; with_octave=$withval
15556 else
15557   with_octave=no
15558 fi
15559
15560
15561 # does the user want OpenCV to use xine video libraries?
15562
15563 # Check whether --with-xine was given.
15564 if test "${with_xine+set}" = set; then :
15565   withval=$with_xine; with_xine=$withval
15566 else
15567   with_xine=no
15568 fi
15569
15570
15571 # does the user want OpenCV to use the gstreamer multimedia framework?
15572
15573 # Check whether --with-gstreamer was given.
15574 if test "${with_gstreamer+set}" = set; then :
15575   withval=$with_gstreamer; with_gstreamer=$withval
15576 else
15577   with_gstreamer=no
15578 fi
15579
15580
15581 # does the user want OpenCV to use ffmpeg video libraries?
15582
15583 # Check whether --with-ffmpeg was given.
15584 if test "${with_ffmpeg+set}" = set; then :
15585   withval=$with_ffmpeg; with_ffmpeg=$withval
15586 else
15587   with_ffmpeg=auto
15588 fi
15589
15590
15591 # does the user want OpenCV to use libraw1394/libdc1394 for video input?
15592
15593 # Check whether --with-1394libs was given.
15594 if test "${with_1394libs+set}" = set; then :
15595   withval=$with_1394libs; with_1394libs=$withval
15596 else
15597   with_1394libs=auto
15598 fi
15599
15600
15601 # does the user want OpenCV to use the video4linux kernel module?
15602
15603 # Check whether --with-v4l was given.
15604 if test "${with_v4l+set}" = set; then :
15605   withval=$with_v4l; with_v4l=$withval
15606 else
15607   with_v4l=auto
15608 fi
15609
15610
15611 # does the user want OpenCV to use the unicap library?
15612
15613 # Check whether --with-unicap was given.
15614 if test "${with_unicap+set}" = set; then :
15615   withval=$with_unicap; with_unicap=$withval
15616 else
15617   with_unicap=no
15618 fi
15619
15620
15621 # does the user want OpenCV to use image libraries from OS X 10.4?
15622
15623 # Check whether --with-imageio was given.
15624 if test "${with_imageio+set}" = set; then :
15625   withval=$with_imageio; with_imageio=$withval
15626 else
15627   with_imageio=yes
15628 fi
15629
15630
15631 # does the user want OpenCV to use QuickTime video libraries?
15632
15633 # Check whether --with-quicktime was given.
15634 if test "${with_quicktime+set}" = set; then :
15635   withval=$with_quicktime; with_quicktime=$withval
15636 else
15637   with_quicktime=yes
15638 fi
15639
15640
15641 # does the user want OpenCV to use the Carbon GUI of Mac OS X?
15642
15643 # Check whether --with-carbon was given.
15644 if test "${with_carbon+set}" = set; then :
15645   withval=$with_carbon; with_carbon=$withval
15646 else
15647   with_carbon=yes
15648 fi
15649
15650
15651 # does the user want OpenCV to use GTK+ 2.0 for the GUI?
15652
15653 # Check whether --with-gtk was given.
15654 if test "${with_gtk+set}" = set; then :
15655   withval=$with_gtk; with_gtk=$withval
15656 else
15657   with_gtk=auto
15658 fi
15659
15660
15661 # does the user want OpenCV to use gthread for GTK+ threaded HighGUI?
15662
15663 # Check whether --with-gthread was given.
15664 if test "${with_gthread+set}" = set; then :
15665   withval=$with_gthread; with_gthread=$withval
15666 else
15667   with_gthread=auto
15668 fi
15669
15670
15671
15672 ######################################################################
15673 # Compiler options
15674
15675 # OpenMP support
15676 # macro calls AC_SUBST(OPENMP_CXXFLAGS)
15677 # and brings its own enable/disable switch ("--disable-openmp")
15678
15679   OPENMP_CXXFLAGS=
15680   # Check whether --enable-openmp was given.
15681 if test "${enable_openmp+set}" = set; then :
15682   enableval=$enable_openmp;
15683 fi
15684
15685   if test "$enable_openmp" != no; then
15686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
15687 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
15688 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
15689   $as_echo_n "(cached) " >&6
15690 else
15691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h.  */
15693
15694 #ifndef _OPENMP
15695  choke me
15696 #endif
15697 #include <omp.h>
15698 int main () { return omp_get_num_threads (); }
15699
15700 _ACEOF
15701 if ac_fn_cxx_try_link "$LINENO"; then :
15702   ac_cv_prog_cxx_openmp='none needed'
15703 else
15704   ac_cv_prog_cxx_openmp='unsupported'
15705                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
15706             ac_save_CXXFLAGS=$CXXFLAGS
15707             CXXFLAGS="$CXXFLAGS $ac_option"
15708             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h.  */
15710
15711 #ifndef _OPENMP
15712  choke me
15713 #endif
15714 #include <omp.h>
15715 int main () { return omp_get_num_threads (); }
15716
15717 _ACEOF
15718 if ac_fn_cxx_try_link "$LINENO"; then :
15719   ac_cv_prog_cxx_openmp=$ac_option
15720 fi
15721 rm -f core conftest.err conftest.$ac_objext \
15722     conftest$ac_exeext conftest.$ac_ext
15723             CXXFLAGS=$ac_save_CXXFLAGS
15724             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
15725               break
15726             fi
15727           done
15728 fi
15729 rm -f core conftest.err conftest.$ac_objext \
15730     conftest$ac_exeext conftest.$ac_ext
15731 fi
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
15733 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
15734     case $ac_cv_prog_cxx_openmp in #(
15735       "none needed" | unsupported)
15736         ;; #(
15737       *)
15738         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
15739     esac
15740   fi
15741
15742
15743
15744 # SSE/SSE2/SSE3 support
15745 if test x"$enable_sse" = "xauto"; then
15746   # This macro calls:
15747   #   AC_SUBST(SIMD_FLAGS)
15748   # And defines:
15749   #   HAVE_MMX / HAVE_SSE / HAVE_SSE2 / HAVE_SSE3 / HAVE_SSSE3
15750
15751 ac_ext=c
15752 ac_cpp='$CPP $CPPFLAGS'
15753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15756
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid  output" >&5
15758 $as_echo_n "checking for x86 cpuid  output... " >&6; }
15759 if test "${ax_cv_gcc_x86_cpuid_+set}" = set; then :
15760   $as_echo_n "(cached) " >&6
15761 else
15762   if test "$cross_compiling" = yes; then :
15763   ax_cv_gcc_x86_cpuid_=unknown
15764 else
15765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h.  */
15767 #include <stdio.h>
15768 int
15769 main ()
15770 {
15771
15772      int op = , eax, ebx, ecx, edx;
15773      FILE *f;
15774 #if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64)
15775      __asm__("push %%rbx\n\t"
15776              "cpuid\n\t"
15777              "pop %%rbx"
15778              : "=a" (eax), "=c" (ecx), "=d" (edx)
15779              : "a" (op));
15780      __asm__("push %%rbx\n\t"
15781              "cpuid\n\t"
15782              "mov %%rbx, %%rax\n\t"
15783              "pop %%rbx"
15784              : "=a" (ebx), "=c" (ecx), "=d" (edx)
15785              : "a" (op));
15786 #else
15787      __asm__("push %%ebx\n\t"
15788              "cpuid\n\t"
15789              "pop %%ebx"
15790              : "=a" (eax), "=c" (ecx), "=d" (edx)
15791              : "a" (op));
15792      __asm__("push %%ebx\n\t"
15793              "cpuid\n\t"
15794              "mov %%ebx, %%eax\n\t"
15795              "pop %%ebx"
15796              : "=a" (ebx), "=c" (ecx), "=d" (edx)
15797              : "a" (op));
15798 #endif
15799      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
15800      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
15801      fclose(f);
15802      return 0;
15803
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 if ac_fn_c_try_run "$LINENO"; then :
15809   ax_cv_gcc_x86_cpuid_=`cat conftest_cpuid`; rm -f conftest_cpuid
15810 else
15811   ax_cv_gcc_x86_cpuid_=unknown; rm -f conftest_cpuid
15812 fi
15813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15814   conftest.$ac_objext conftest.beam conftest.$ac_ext
15815 fi
15816
15817 fi
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_" >&5
15819 $as_echo "$ax_cv_gcc_x86_cpuid_" >&6; }
15820 ac_ext=cpp
15821 ac_cpp='$CXXCPP $CPPFLAGS'
15822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15825
15826
15827
15828
15829
15830
15831 ac_ext=c
15832 ac_cpp='$CPP $CPPFLAGS'
15833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15836
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x00000001 output" >&5
15838 $as_echo_n "checking for x86 cpuid 0x00000001 output... " >&6; }
15839 if test "${ax_cv_gcc_x86_cpuid_0x00000001+set}" = set; then :
15840   $as_echo_n "(cached) " >&6
15841 else
15842   if test "$cross_compiling" = yes; then :
15843   ax_cv_gcc_x86_cpuid_0x00000001=unknown
15844 else
15845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h.  */
15847 #include <stdio.h>
15848 int
15849 main ()
15850 {
15851
15852      int op = 0x00000001, eax, ebx, ecx, edx;
15853      FILE *f;
15854 #if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64)
15855      __asm__("push %%rbx\n\t"
15856              "cpuid\n\t"
15857              "pop %%rbx"
15858              : "=a" (eax), "=c" (ecx), "=d" (edx)
15859              : "a" (op));
15860      __asm__("push %%rbx\n\t"
15861              "cpuid\n\t"
15862              "mov %%rbx, %%rax\n\t"
15863              "pop %%rbx"
15864              : "=a" (ebx), "=c" (ecx), "=d" (edx)
15865              : "a" (op));
15866 #else
15867      __asm__("push %%ebx\n\t"
15868              "cpuid\n\t"
15869              "pop %%ebx"
15870              : "=a" (eax), "=c" (ecx), "=d" (edx)
15871              : "a" (op));
15872      __asm__("push %%ebx\n\t"
15873              "cpuid\n\t"
15874              "mov %%ebx, %%eax\n\t"
15875              "pop %%ebx"
15876              : "=a" (ebx), "=c" (ecx), "=d" (edx)
15877              : "a" (op));
15878 #endif
15879      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
15880      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
15881      fclose(f);
15882      return 0;
15883
15884   ;
15885   return 0;
15886 }
15887 _ACEOF
15888 if ac_fn_c_try_run "$LINENO"; then :
15889   ax_cv_gcc_x86_cpuid_0x00000001=`cat conftest_cpuid`; rm -f conftest_cpuid
15890 else
15891   ax_cv_gcc_x86_cpuid_0x00000001=unknown; rm -f conftest_cpuid
15892 fi
15893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15894   conftest.$ac_objext conftest.beam conftest.$ac_ext
15895 fi
15896
15897 fi
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x00000001" >&5
15899 $as_echo "$ax_cv_gcc_x86_cpuid_0x00000001" >&6; }
15900 ac_ext=cpp
15901 ac_cpp='$CXXCPP $CPPFLAGS'
15902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15905
15906
15907   if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
15908     ecx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3`
15909     edx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4`
15910   fi
15911
15912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmx is supported" >&5
15913 $as_echo_n "checking whether mmx is supported... " >&6; }
15914 if test "${ax_cv_have_mmx_ext+set}" = set; then :
15915   $as_echo_n "(cached) " >&6
15916 else
15917
15918     ax_cv_have_mmx_ext=no
15919     if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
15920       if test "$((0x$edx>>23&0x01))" = 1; then
15921         ax_cv_have_mmx_ext=yes
15922       fi
15923     fi
15924
15925 fi
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_mmx_ext" >&5
15927 $as_echo "$ax_cv_have_mmx_ext" >&6; }
15928
15929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse is supported" >&5
15930 $as_echo_n "checking whether sse is supported... " >&6; }
15931 if test "${ax_cv_have_sse_ext+set}" = set; then :
15932   $as_echo_n "(cached) " >&6
15933 else
15934
15935     ax_cv_have_sse_ext=no
15936     if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
15937       if test "$((0x$edx>>25&0x01))" = 1; then
15938         ax_cv_have_sse_ext=yes
15939       fi
15940     fi
15941
15942 fi
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse_ext" >&5
15944 $as_echo "$ax_cv_have_sse_ext" >&6; }
15945
15946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse2 is supported" >&5
15947 $as_echo_n "checking whether sse2 is supported... " >&6; }
15948 if test "${ax_cv_have_sse2_ext+set}" = set; then :
15949   $as_echo_n "(cached) " >&6
15950 else
15951
15952     ax_cv_have_sse2_ext=no
15953     if test "$((0x$edx>>26&0x01))" = 1; then
15954       ax_cv_have_sse2_ext=yes
15955     fi
15956
15957 fi
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse2_ext" >&5
15959 $as_echo "$ax_cv_have_sse2_ext" >&6; }
15960
15961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse3 is supported" >&5
15962 $as_echo_n "checking whether sse3 is supported... " >&6; }
15963 if test "${ax_cv_have_sse3_ext+set}" = set; then :
15964   $as_echo_n "(cached) " >&6
15965 else
15966
15967     ax_cv_have_sse3_ext=no
15968     if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
15969       if test "$((0x$ecx&0x01))" = 1; then
15970         ax_cv_have_sse3_ext=yes
15971       fi
15972     fi
15973
15974 fi
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse3_ext" >&5
15976 $as_echo "$ax_cv_have_sse3_ext" >&6; }
15977
15978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssse3 is supported" >&5
15979 $as_echo_n "checking whether ssse3 is supported... " >&6; }
15980 if test "${ax_cv_have_ssse3_ext+set}" = set; then :
15981   $as_echo_n "(cached) " >&6
15982 else
15983
15984     ax_cv_have_ssse3_ext=no
15985     if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
15986       if test "$((0x$ecx>>9&0x01))" = 1; then
15987         ax_cv_have_ssse3_ext=yes
15988       fi
15989     fi
15990
15991 fi
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_ssse3_ext" >&5
15993 $as_echo "$ax_cv_have_ssse3_ext" >&6; }
15994
15995   if test "$ax_cv_have_mmx_ext" = yes; then
15996
15997 $as_echo "#define HAVE_MMX /**/" >>confdefs.h
15998
15999      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -mmmx" >&5
16000 $as_echo_n "checking whether C++ compiler accepts -mmmx... " >&6; }
16001 if test "${ax_cv_cxx_flags__mmmx+set}" = set; then :
16002   $as_echo_n "(cached) " >&6
16003 else
16004
16005       ax_save_FLAGS=$CXXFLAGS
16006       CXXFLAGS="-mmmx"
16007       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h.  */
16009
16010 int
16011 main ()
16012 {
16013
16014   ;
16015   return 0;
16016 }
16017 _ACEOF
16018 if ac_fn_cxx_try_compile "$LINENO"; then :
16019   ax_cv_cxx_flags__mmmx=yes
16020 else
16021   ax_cv_cxx_flags__mmmx=no
16022 fi
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024       CXXFLAGS=$ax_save_FLAGS
16025 fi
16026
16027 eval ax_check_compiler_flags=$ax_cv_cxx_flags__mmmx
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
16029 $as_echo "$ax_check_compiler_flags" >&6; }
16030 if test "x$ax_check_compiler_flags" = xyes; then
16031         SIMD_FLAGS="$SIMD_FLAGS -mmmx"
16032 else
16033         :
16034 fi
16035
16036   fi
16037
16038   if test "$ax_cv_have_sse_ext" = yes; then
16039
16040 $as_echo "#define HAVE_SSE /**/" >>confdefs.h
16041
16042      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -msse" >&5
16043 $as_echo_n "checking whether C++ compiler accepts -msse... " >&6; }
16044 if test "${ax_cv_cxx_flags__msse+set}" = set; then :
16045   $as_echo_n "(cached) " >&6
16046 else
16047
16048       ax_save_FLAGS=$CXXFLAGS
16049       CXXFLAGS="-msse"
16050       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h.  */
16052
16053 int
16054 main ()
16055 {
16056
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 if ac_fn_cxx_try_compile "$LINENO"; then :
16062   ax_cv_cxx_flags__msse=yes
16063 else
16064   ax_cv_cxx_flags__msse=no
16065 fi
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067       CXXFLAGS=$ax_save_FLAGS
16068 fi
16069
16070 eval ax_check_compiler_flags=$ax_cv_cxx_flags__msse
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
16072 $as_echo "$ax_check_compiler_flags" >&6; }
16073 if test "x$ax_check_compiler_flags" = xyes; then
16074         SIMD_FLAGS="$SIMD_FLAGS -msse"
16075 else
16076         :
16077 fi
16078
16079   fi
16080
16081   if test "$ax_cv_have_sse2_ext" = yes; then
16082
16083 $as_echo "#define HAVE_SSE2 /**/" >>confdefs.h
16084
16085      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -msse2" >&5
16086 $as_echo_n "checking whether C++ compiler accepts -msse2... " >&6; }
16087 if test "${ax_cv_cxx_flags__msse2+set}" = set; then :
16088   $as_echo_n "(cached) " >&6
16089 else
16090
16091       ax_save_FLAGS=$CXXFLAGS
16092       CXXFLAGS="-msse2"
16093       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h.  */
16095
16096 int
16097 main ()
16098 {
16099
16100   ;
16101   return 0;
16102 }
16103 _ACEOF
16104 if ac_fn_cxx_try_compile "$LINENO"; then :
16105   ax_cv_cxx_flags__msse2=yes
16106 else
16107   ax_cv_cxx_flags__msse2=no
16108 fi
16109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110       CXXFLAGS=$ax_save_FLAGS
16111 fi
16112
16113 eval ax_check_compiler_flags=$ax_cv_cxx_flags__msse2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
16115 $as_echo "$ax_check_compiler_flags" >&6; }
16116 if test "x$ax_check_compiler_flags" = xyes; then
16117         SIMD_FLAGS="$SIMD_FLAGS -msse2"
16118 else
16119         :
16120 fi
16121
16122   fi
16123
16124   if test "$ax_cv_have_sse3_ext" = yes; then
16125
16126 $as_echo "#define HAVE_SSE3 /**/" >>confdefs.h
16127
16128      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -msse3" >&5
16129 $as_echo_n "checking whether C++ compiler accepts -msse3... " >&6; }
16130 if test "${ax_cv_cxx_flags__msse3+set}" = set; then :
16131   $as_echo_n "(cached) " >&6
16132 else
16133
16134       ax_save_FLAGS=$CXXFLAGS
16135       CXXFLAGS="-msse3"
16136       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h.  */
16138
16139 int
16140 main ()
16141 {
16142
16143   ;
16144   return 0;
16145 }
16146 _ACEOF
16147 if ac_fn_cxx_try_compile "$LINENO"; then :
16148   ax_cv_cxx_flags__msse3=yes
16149 else
16150   ax_cv_cxx_flags__msse3=no
16151 fi
16152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16153       CXXFLAGS=$ax_save_FLAGS
16154 fi
16155
16156 eval ax_check_compiler_flags=$ax_cv_cxx_flags__msse3
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
16158 $as_echo "$ax_check_compiler_flags" >&6; }
16159 if test "x$ax_check_compiler_flags" = xyes; then
16160         SIMD_FLAGS="$SIMD_FLAGS -msse3"
16161 else
16162         :
16163 fi
16164
16165   fi
16166
16167   if test "$ax_cv_have_ssse3_ext" = yes; then
16168
16169 $as_echo "#define HAVE_SSSE3 /**/" >>confdefs.h
16170
16171   fi
16172
16173
16174
16175 else
16176   if test x"$enable_sse" = "xyes"; then
16177
16178 $as_echo "#define HAVE_MMX /**/" >>confdefs.h
16179
16180
16181 $as_echo "#define HAVE_SSE /**/" >>confdefs.h
16182
16183
16184 $as_echo "#define HAVE_SSE2 /**/" >>confdefs.h
16185
16186     #AC_DEFINE(HAVE_SSE3,,[Support SSE3 (Streaming SIMD Extensions 3) instructions])
16187     #AC_DEFINE(HAVE_SSSE3,,[Support SSSE3 (Supplemental Streaming SIMD Extensions 3) instructions])
16188
16189     SIMD_FLAGS=" -mmmx -msse -msse2"
16190
16191   fi
16192 fi
16193
16194
16195 ## check whether to include debugging compiler flags
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug version" >&5
16197 $as_echo_n "checking whether to build debug version... " >&6; }
16198 DEBUG_CPPFLAGS=""
16199 DEBUG_CXXFLAGS=""
16200 if test x"$enable_debug" = "xyes"; then
16201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16202 $as_echo "yes" >&6; }
16203
16204   if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
16205     DEBUG_CXXFLAGS="-ggdb"
16206   fi
16207
16208   DEBUG_CPPFLAGS="-DDEBUG -D_DEBUG"
16209 else
16210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16211 $as_echo "no" >&6; }
16212 fi
16213
16214
16215
16216
16217 ## see if the user wants aggressive optimizations of the code
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable aggressive optimization flags" >&5
16219 $as_echo_n "checking whether to enable aggressive optimization flags... " >&6; }
16220 OPTIMIZATION_CPPFLAGS=""
16221 OPTIMIZATION_CXXFLAGS=""
16222 FLOAT_STORE_CFLAGS=""
16223 if test x"$enable_optimization" = "xyes"; then
16224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16225 $as_echo "yes" >&6; }
16226
16227   # cure annoying default arguments for CFLAGS and CXXFLAGS
16228   # that autoconf automatically sets in GNU environments if
16229   # no CFLAGS or CXXFLAGS were manually given
16230   #
16231   # this is a more or less a hack ...
16232   if test x"$CFLAGS" = x"-g -O2" ; then
16233     CFLAGS=""
16234   fi
16235   if test x"$CXXFLAGS" = x"-g -O2" ; then
16236     CXXFLAGS=""
16237   fi
16238
16239   if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
16240
16241     # special flag for gcc to work around excess precision bug in cLapack
16242     FLOAT_STORE_CFLAGS="-ffloat-store"
16243
16244     # Due to a misconception, until SVN revision r1713, the case statement
16245     # used the value of '--target', not of '--host'
16246     case $host in
16247     i386-apple-*)
16248       # all intel macs have at least prescott instruction set
16249       OPTIMIZATION_CXXFLAGS="-fast -g"
16250       ;;
16251     x86_64-apple-*)
16252       # all 64bit intel macs have at least nocona instruction set
16253       OPTIMIZATION_CXXFLAGS="-fast -g -march=nocona"
16254       ;;
16255     i?86-*-*)
16256       # okay, we use this default together with the specification of the target architecture
16257       # let us just assume, a Pentium 4 would be the minimum platform for OpenCV,
16258       # then SSE2 instruction set is available also
16259       OPTIMIZATION_CXXFLAGS="-O3 -g -march=pentium4 -ffast-math -fomit-frame-pointer"
16260       ;;
16261     amd64-*-* | x86_64-*-*)
16262       OPTIMIZATION_CXXFLAGS="-O3 -g -march=x86-64 -ffast-math -fomit-frame-pointer"
16263       ;;
16264     powerpc-apple-*)
16265       # Mac OS X 10.4 runs on CPUs >= G4 only
16266       OPTIMIZATION_CXXFLAGS="-O3 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 -falign-loops=16 -falign-jumps=16 -falign-functions=16 -ffast-math -fstrict-aliasing -funroll-loops -ftree-loop-linear -ftree-loop-memset -mcpu=G4 -mpowerpc-gpopt -mtune=G5 -fsched-interblock -fgcse-sm -g"
16267       ;;
16268     powerpc64-apple-*)
16269       # There are no 64bit Macs with a CPU that's not a G5
16270       OPTIMIZATION_CXXFLAGS="-O3 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 -falign-loops=16 -falign-jumps=16 -falign-functions=16 -ffast-math -fstrict-aliasing -funroll-loops -ftree-loop-linear -ftree-loop-memset -mcpu=G5 -mpowerpc-gpopt -fsched-interblock -fgcse-sm -m64 -g"
16271       ;;
16272     powerpc-*-*)
16273       # generic PowerPCs don't have Apple's 'fast' or 'fastf' switch
16274       OPTIMIZATION_CXXFLAGS="-O3 -g -mcpu=G3 -mtune=G4 -fomit-frame-pointer"
16275       ;;
16276     *-*-*)
16277       OPTIMIZATION_CXXFLAGS="-O2 -fomit-frame-pointer"
16278       ;;
16279     esac
16280   fi
16281
16282   OPTIMIZATION_CPPFLAGS="-DNDEBUG"
16283 else
16284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16285 $as_echo "no" >&6; }
16286 fi
16287
16288
16289
16290
16291 # basic libraries needed by OpenCV
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16293 $as_echo_n "checking for pow in -lm... " >&6; }
16294 if test "${ac_cv_lib_m_pow+set}" = set; then :
16295   $as_echo_n "(cached) " >&6
16296 else
16297   ac_check_lib_save_LIBS=$LIBS
16298 LIBS="-lm  $LIBS"
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h.  */
16301
16302 /* Override any GCC internal prototype to avoid an error.
16303    Use char because int might match the return type of a GCC
16304    builtin and then its argument prototype would still apply.  */
16305 #ifdef __cplusplus
16306 extern "C"
16307 #endif
16308 char pow ();
16309 int
16310 main ()
16311 {
16312 return pow ();
16313   ;
16314   return 0;
16315 }
16316 _ACEOF
16317 if ac_fn_cxx_try_link "$LINENO"; then :
16318   ac_cv_lib_m_pow=yes
16319 else
16320   ac_cv_lib_m_pow=no
16321 fi
16322 rm -f core conftest.err conftest.$ac_objext \
16323     conftest$ac_exeext conftest.$ac_ext
16324 LIBS=$ac_check_lib_save_LIBS
16325 fi
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16327 $as_echo "$ac_cv_lib_m_pow" >&6; }
16328 if test "x$ac_cv_lib_m_pow" = x""yes; then :
16329   cat >>confdefs.h <<_ACEOF
16330 #define HAVE_LIBM 1
16331 _ACEOF
16332
16333   LIBS="-lm $LIBS"
16334
16335 fi
16336
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16340   $as_echo_n "(cached) " >&6
16341 else
16342   ac_check_lib_save_LIBS=$LIBS
16343 LIBS="-ldl  $LIBS"
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h.  */
16346
16347 /* Override any GCC internal prototype to avoid an error.
16348    Use char because int might match the return type of a GCC
16349    builtin and then its argument prototype would still apply.  */
16350 #ifdef __cplusplus
16351 extern "C"
16352 #endif
16353 char dlopen ();
16354 int
16355 main ()
16356 {
16357 return dlopen ();
16358   ;
16359   return 0;
16360 }
16361 _ACEOF
16362 if ac_fn_cxx_try_link "$LINENO"; then :
16363   ac_cv_lib_dl_dlopen=yes
16364 else
16365   ac_cv_lib_dl_dlopen=no
16366 fi
16367 rm -f core conftest.err conftest.$ac_objext \
16368     conftest$ac_exeext conftest.$ac_ext
16369 LIBS=$ac_check_lib_save_LIBS
16370 fi
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16373 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16374   cat >>confdefs.h <<_ACEOF
16375 #define HAVE_LIBDL 1
16376 _ACEOF
16377
16378   LIBS="-ldl $LIBS"
16379
16380 fi
16381
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16383 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16384 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
16385   $as_echo_n "(cached) " >&6
16386 else
16387   ac_check_lib_save_LIBS=$LIBS
16388 LIBS="-lpthread  $LIBS"
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h.  */
16391
16392 /* Override any GCC internal prototype to avoid an error.
16393    Use char because int might match the return type of a GCC
16394    builtin and then its argument prototype would still apply.  */
16395 #ifdef __cplusplus
16396 extern "C"
16397 #endif
16398 char pthread_create ();
16399 int
16400 main ()
16401 {
16402 return pthread_create ();
16403   ;
16404   return 0;
16405 }
16406 _ACEOF
16407 if ac_fn_cxx_try_link "$LINENO"; then :
16408   ac_cv_lib_pthread_pthread_create=yes
16409 else
16410   ac_cv_lib_pthread_pthread_create=no
16411 fi
16412 rm -f core conftest.err conftest.$ac_objext \
16413     conftest$ac_exeext conftest.$ac_ext
16414 LIBS=$ac_check_lib_save_LIBS
16415 fi
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16417 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16418 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
16419   cat >>confdefs.h <<_ACEOF
16420 #define HAVE_LIBPTHREAD 1
16421 _ACEOF
16422
16423   LIBS="-lpthread $LIBS"
16424
16425 fi
16426
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzputs in -lz" >&5
16428 $as_echo_n "checking for gzputs in -lz... " >&6; }
16429 if test "${ac_cv_lib_z_gzputs+set}" = set; then :
16430   $as_echo_n "(cached) " >&6
16431 else
16432   ac_check_lib_save_LIBS=$LIBS
16433 LIBS="-lz  $LIBS"
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h.  */
16436
16437 /* Override any GCC internal prototype to avoid an error.
16438    Use char because int might match the return type of a GCC
16439    builtin and then its argument prototype would still apply.  */
16440 #ifdef __cplusplus
16441 extern "C"
16442 #endif
16443 char gzputs ();
16444 int
16445 main ()
16446 {
16447 return gzputs ();
16448   ;
16449   return 0;
16450 }
16451 _ACEOF
16452 if ac_fn_cxx_try_link "$LINENO"; then :
16453   ac_cv_lib_z_gzputs=yes
16454 else
16455   ac_cv_lib_z_gzputs=no
16456 fi
16457 rm -f core conftest.err conftest.$ac_objext \
16458     conftest$ac_exeext conftest.$ac_ext
16459 LIBS=$ac_check_lib_save_LIBS
16460 fi
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzputs" >&5
16462 $as_echo "$ac_cv_lib_z_gzputs" >&6; }
16463 if test "x$ac_cv_lib_z_gzputs" = x""yes; then :
16464   cat >>confdefs.h <<_ACEOF
16465 #define HAVE_LIBZ 1
16466 _ACEOF
16467
16468   LIBS="-lz $LIBS"
16469
16470 fi
16471
16472
16473 # check endianness
16474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16475 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16476 if test "${ac_cv_c_bigendian+set}" = set; then :
16477   $as_echo_n "(cached) " >&6
16478 else
16479   ac_cv_c_bigendian=unknown
16480     # See if we're dealing with a universal compiler.
16481     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h.  */
16483 #ifndef __APPLE_CC__
16484                not a universal capable compiler
16485              #endif
16486              typedef int dummy;
16487
16488 _ACEOF
16489 if ac_fn_cxx_try_compile "$LINENO"; then :
16490
16491         # Check for potential -arch flags.  It is not universal unless
16492         # there are at least two -arch flags with different values.
16493         ac_arch=
16494         ac_prev=
16495         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16496          if test -n "$ac_prev"; then
16497            case $ac_word in
16498              i?86 | x86_64 | ppc | ppc64)
16499                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16500                  ac_arch=$ac_word
16501                else
16502                  ac_cv_c_bigendian=universal
16503                  break
16504                fi
16505                ;;
16506            esac
16507            ac_prev=
16508          elif test "x$ac_word" = "x-arch"; then
16509            ac_prev=arch
16510          fi
16511        done
16512 fi
16513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514     if test $ac_cv_c_bigendian = unknown; then
16515       # See if sys/param.h defines the BYTE_ORDER macro.
16516       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h.  */
16518 #include <sys/types.h>
16519              #include <sys/param.h>
16520
16521 int
16522 main ()
16523 {
16524 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16525                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16526                      && LITTLE_ENDIAN)
16527               bogus endian macros
16528              #endif
16529
16530   ;
16531   return 0;
16532 }
16533 _ACEOF
16534 if ac_fn_cxx_try_compile "$LINENO"; then :
16535   # It does; now see whether it defined to BIG_ENDIAN or not.
16536          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h.  */
16538 #include <sys/types.h>
16539                 #include <sys/param.h>
16540
16541 int
16542 main ()
16543 {
16544 #if BYTE_ORDER != BIG_ENDIAN
16545                  not big endian
16546                 #endif
16547
16548   ;
16549   return 0;
16550 }
16551 _ACEOF
16552 if ac_fn_cxx_try_compile "$LINENO"; then :
16553   ac_cv_c_bigendian=yes
16554 else
16555   ac_cv_c_bigendian=no
16556 fi
16557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558 fi
16559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560     fi
16561     if test $ac_cv_c_bigendian = unknown; then
16562       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16563       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h.  */
16565 #include <limits.h>
16566
16567 int
16568 main ()
16569 {
16570 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16571               bogus endian macros
16572              #endif
16573
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 if ac_fn_cxx_try_compile "$LINENO"; then :
16579   # It does; now see whether it defined to _BIG_ENDIAN or not.
16580          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h.  */
16582 #include <limits.h>
16583
16584 int
16585 main ()
16586 {
16587 #ifndef _BIG_ENDIAN
16588                  not big endian
16589                 #endif
16590
16591   ;
16592   return 0;
16593 }
16594 _ACEOF
16595 if ac_fn_cxx_try_compile "$LINENO"; then :
16596   ac_cv_c_bigendian=yes
16597 else
16598   ac_cv_c_bigendian=no
16599 fi
16600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16601 fi
16602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603     fi
16604     if test $ac_cv_c_bigendian = unknown; then
16605       # Compile a test program.
16606       if test "$cross_compiling" = yes; then :
16607   # Try to guess by grepping values from an object file.
16608          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609 /* end confdefs.h.  */
16610 short int ascii_mm[] =
16611                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16612                 short int ascii_ii[] =
16613                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16614                 int use_ascii (int i) {
16615                   return ascii_mm[i] + ascii_ii[i];
16616                 }
16617                 short int ebcdic_ii[] =
16618                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16619                 short int ebcdic_mm[] =
16620                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16621                 int use_ebcdic (int i) {
16622                   return ebcdic_mm[i] + ebcdic_ii[i];
16623                 }
16624                 extern int foo;
16625
16626 int
16627 main ()
16628 {
16629 return use_ascii (foo) == use_ebcdic (foo);
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 if ac_fn_cxx_try_compile "$LINENO"; then :
16635   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16636               ac_cv_c_bigendian=yes
16637             fi
16638             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16639               if test "$ac_cv_c_bigendian" = unknown; then
16640                 ac_cv_c_bigendian=no
16641               else
16642                 # finding both strings is unlikely to happen, but who knows?
16643                 ac_cv_c_bigendian=unknown
16644               fi
16645             fi
16646 fi
16647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648 else
16649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h.  */
16651 $ac_includes_default
16652 int
16653 main ()
16654 {
16655
16656              /* Are we little or big endian?  From Harbison&Steele.  */
16657              union
16658              {
16659                long int l;
16660                char c[sizeof (long int)];
16661              } u;
16662              u.l = 1;
16663              return u.c[sizeof (long int) - 1] == 1;
16664
16665   ;
16666   return 0;
16667 }
16668 _ACEOF
16669 if ac_fn_cxx_try_run "$LINENO"; then :
16670   ac_cv_c_bigendian=no
16671 else
16672   ac_cv_c_bigendian=yes
16673 fi
16674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16675   conftest.$ac_objext conftest.beam conftest.$ac_ext
16676 fi
16677
16678     fi
16679 fi
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16681 $as_echo "$ac_cv_c_bigendian" >&6; }
16682  case $ac_cv_c_bigendian in #(
16683    yes)
16684      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16685 ;; #(
16686    no)
16687       ;; #(
16688    universal)
16689
16690 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16691
16692      ;; #(
16693    *)
16694      as_fn_error "unknown endianness
16695  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16696  esac
16697
16698
16699 # check for specific functions that might be missing from
16700 # certain standard library implementations
16701
16702 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16703 # for constant arguments.  Useless!
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16705 $as_echo_n "checking for working alloca.h... " >&6; }
16706 if test "${ac_cv_working_alloca_h+set}" = set; then :
16707   $as_echo_n "(cached) " >&6
16708 else
16709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h.  */
16711 #include <alloca.h>
16712 int
16713 main ()
16714 {
16715 char *p = (char *) alloca (2 * sizeof (int));
16716                           if (p) return 0;
16717   ;
16718   return 0;
16719 }
16720 _ACEOF
16721 if ac_fn_cxx_try_link "$LINENO"; then :
16722   ac_cv_working_alloca_h=yes
16723 else
16724   ac_cv_working_alloca_h=no
16725 fi
16726 rm -f core conftest.err conftest.$ac_objext \
16727     conftest$ac_exeext conftest.$ac_ext
16728 fi
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16730 $as_echo "$ac_cv_working_alloca_h" >&6; }
16731 if test $ac_cv_working_alloca_h = yes; then
16732
16733 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16734
16735 fi
16736
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16738 $as_echo_n "checking for alloca... " >&6; }
16739 if test "${ac_cv_func_alloca_works+set}" = set; then :
16740   $as_echo_n "(cached) " >&6
16741 else
16742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h.  */
16744 #ifdef __GNUC__
16745 # define alloca __builtin_alloca
16746 #else
16747 # ifdef _MSC_VER
16748 #  include <malloc.h>
16749 #  define alloca _alloca
16750 # else
16751 #  ifdef HAVE_ALLOCA_H
16752 #   include <alloca.h>
16753 #  else
16754 #   ifdef _AIX
16755  #pragma alloca
16756 #   else
16757 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16758 char *alloca ();
16759 #    endif
16760 #   endif
16761 #  endif
16762 # endif
16763 #endif
16764
16765 int
16766 main ()
16767 {
16768 char *p = (char *) alloca (1);
16769                                     if (p) return 0;
16770   ;
16771   return 0;
16772 }
16773 _ACEOF
16774 if ac_fn_cxx_try_link "$LINENO"; then :
16775   ac_cv_func_alloca_works=yes
16776 else
16777   ac_cv_func_alloca_works=no
16778 fi
16779 rm -f core conftest.err conftest.$ac_objext \
16780     conftest$ac_exeext conftest.$ac_ext
16781 fi
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16783 $as_echo "$ac_cv_func_alloca_works" >&6; }
16784
16785 if test $ac_cv_func_alloca_works = yes; then
16786
16787 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16788
16789 else
16790   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16791 # that cause trouble.  Some versions do not even contain alloca or
16792 # contain a buggy version.  If you still want to use their alloca,
16793 # use ar to extract alloca.o from them instead of compiling alloca.c.
16794
16795 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16796
16797 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16798
16799
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16801 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16802 if test "${ac_cv_os_cray+set}" = set; then :
16803   $as_echo_n "(cached) " >&6
16804 else
16805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806 /* end confdefs.h.  */
16807 #if defined CRAY && ! defined CRAY2
16808 webecray
16809 #else
16810 wenotbecray
16811 #endif
16812
16813 _ACEOF
16814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16815   $EGREP "webecray" >/dev/null 2>&1; then :
16816   ac_cv_os_cray=yes
16817 else
16818   ac_cv_os_cray=no
16819 fi
16820 rm -f conftest*
16821
16822 fi
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16824 $as_echo "$ac_cv_os_cray" >&6; }
16825 if test $ac_cv_os_cray = yes; then
16826   for ac_func in _getb67 GETB67 getb67; do
16827     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16829 eval as_val=\$$as_ac_var
16830    if test "x$as_val" = x""yes; then :
16831
16832 cat >>confdefs.h <<_ACEOF
16833 #define CRAY_STACKSEG_END $ac_func
16834 _ACEOF
16835
16836     break
16837 fi
16838
16839   done
16840 fi
16841
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16843 $as_echo_n "checking stack direction for C alloca... " >&6; }
16844 if test "${ac_cv_c_stack_direction+set}" = set; then :
16845   $as_echo_n "(cached) " >&6
16846 else
16847   if test "$cross_compiling" = yes; then :
16848   ac_cv_c_stack_direction=0
16849 else
16850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16851 /* end confdefs.h.  */
16852 $ac_includes_default
16853 int
16854 find_stack_direction ()
16855 {
16856   static char *addr = 0;
16857   auto char dummy;
16858   if (addr == 0)
16859     {
16860       addr = &dummy;
16861       return find_stack_direction ();
16862     }
16863   else
16864     return (&dummy > addr) ? 1 : -1;
16865 }
16866
16867 int
16868 main ()
16869 {
16870   return find_stack_direction () < 0;
16871 }
16872 _ACEOF
16873 if ac_fn_cxx_try_run "$LINENO"; then :
16874   ac_cv_c_stack_direction=1
16875 else
16876   ac_cv_c_stack_direction=-1
16877 fi
16878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16879   conftest.$ac_objext conftest.beam conftest.$ac_ext
16880 fi
16881
16882 fi
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16884 $as_echo "$ac_cv_c_stack_direction" >&6; }
16885 cat >>confdefs.h <<_ACEOF
16886 #define STACK_DIRECTION $ac_cv_c_stack_direction
16887 _ACEOF
16888
16889
16890 fi
16891
16892 for ac_header in malloc.h
16893 do :
16894   ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
16895 if test "x$ac_cv_header_malloc_h" = x""yes; then :
16896   cat >>confdefs.h <<_ACEOF
16897 #define HAVE_MALLOC_H 1
16898 _ACEOF
16899
16900 fi
16901
16902 done
16903
16904 for ac_header in assert.h
16905 do :
16906   ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
16907 if test "x$ac_cv_header_assert_h" = x""yes; then :
16908   cat >>confdefs.h <<_ACEOF
16909 #define HAVE_ASSERT_H 1
16910 _ACEOF
16911
16912 fi
16913
16914 done
16915
16916 for ac_func in lrint
16917 do :
16918   ac_fn_cxx_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
16919 if test "x$ac_cv_func_lrint" = x""yes; then :
16920   cat >>confdefs.h <<_ACEOF
16921 #define HAVE_LRINT 1
16922 _ACEOF
16923
16924 fi
16925 done
16926
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16928 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16929 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16930   $as_echo_n "(cached) " >&6
16931 else
16932   ac_func_search_save_LIBS=$LIBS
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h.  */
16935
16936 /* Override any GCC internal prototype to avoid an error.
16937    Use char because int might match the return type of a GCC
16938    builtin and then its argument prototype would still apply.  */
16939 #ifdef __cplusplus
16940 extern "C"
16941 #endif
16942 char clock_gettime ();
16943 int
16944 main ()
16945 {
16946 return clock_gettime ();
16947   ;
16948   return 0;
16949 }
16950 _ACEOF
16951 for ac_lib in '' rt; do
16952   if test -z "$ac_lib"; then
16953     ac_res="none required"
16954   else
16955     ac_res=-l$ac_lib
16956     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16957   fi
16958   if ac_fn_cxx_try_link "$LINENO"; then :
16959   ac_cv_search_clock_gettime=$ac_res
16960 fi
16961 rm -f core conftest.err conftest.$ac_objext \
16962     conftest$ac_exeext
16963   if test "${ac_cv_search_clock_gettime+set}" = set; then :
16964   break
16965 fi
16966 done
16967 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16968
16969 else
16970   ac_cv_search_clock_gettime=no
16971 fi
16972 rm conftest.$ac_ext
16973 LIBS=$ac_func_search_save_LIBS
16974 fi
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16976 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16977 ac_res=$ac_cv_search_clock_gettime
16978 if test "$ac_res" != no; then :
16979   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16980
16981 fi
16982
16983
16984 ######################################################################
16985 # BLAS and LAPACK
16986
16987 LAPACK_LIBS=""
16988 have_native_lapack=no
16989 if test x"$with_native_lapack" = "xyes"; then
16990   # check for Accellerate framework on Mac OS X
16991   #
16992   # As of Mac OS X 10.5 blas and lapack exist as standard shared
16993   # libraries, so this check could be replaced by separate checks for
16994   # those two libraries as it may be helpful for Linux/Unix variants
16995   # as well.
16996   ac_fn_cxx_check_header_mongrel "$LINENO" "vecLib/clapack.h" "ac_cv_header_vecLib_clapack_h" "$ac_includes_default"
16997 if test "x$ac_cv_header_vecLib_clapack_h" = x""yes; then :
16998
16999
17000 $as_echo "#define HAVE_VECLIB /**/" >>confdefs.h
17001
17002                   LAPACK_LIBS="-Xlinker -framework -Xlinker vecLib"
17003                   have_native_lapack=yes
17004
17005 else
17006
17007                   have_native_lapack=no
17008
17009 fi
17010
17011
17012 fi
17013
17014
17015  if test x"$have_native_lapack" = "xyes"; then
17016   NATIVE_LAPACK_TRUE=
17017   NATIVE_LAPACK_FALSE='#'
17018 else
17019   NATIVE_LAPACK_TRUE='#'
17020   NATIVE_LAPACK_FALSE=
17021 fi
17022
17023
17024
17025 ######################################################################
17026 # HighGUI dependencies for windowing system
17027
17028 # honor user selection,
17029 # if no selection given check for Carbon first
17030 CARBON_CFLAGS=""
17031 CARBON_LIBS=""
17032 if test x"$with_carbon" = "xyes"; then
17033
17034     # header presence and usability seem to be enough
17035     ac_fn_cxx_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
17036 if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
17037
17038
17039 $as_echo "#define HAVE_CARBON /**/" >>confdefs.h
17040
17041                       CARBON_LIBS="-Xlinker -framework -Xlinker Carbon"
17042                       have_carbon=yes
17043
17044 else
17045
17046                       have_carbon=no
17047                       with_carbon=no
17048
17049 fi
17050
17051
17052
17053     # sanity checks
17054     if test x"$have_carbon" = "xyes"; then
17055
17056         # if we asked for gtk, this is not ok
17057         if test x"$with_gtk" = "xyes"; then
17058             as_fn_error "You cannot specify --with-carbon and --with-gtk at the same time" "$LINENO" 5
17059         fi
17060
17061         # don't check alternatives if carbon was found
17062         if test x"$with_gtk" = "xauto"; then
17063             with_gtk=no
17064         fi
17065     fi
17066 else
17067     have_carbon=no
17068     if test ! x"$with_carbon" = "xno"; then
17069         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&5
17070 $as_echo "$as_me: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&2;}
17071     fi
17072 fi
17073
17074
17075  if test x"$have_carbon" = "xyes"; then
17076   BUILD_CARBON_TRUE=
17077   BUILD_CARBON_FALSE='#'
17078 else
17079   BUILD_CARBON_TRUE='#'
17080   BUILD_CARBON_FALSE=
17081 fi
17082
17083
17084 # use GTK+ 2.x (or later) for windowing
17085 # if carbon not present or not wanted (--without-carbon)
17086 GTK_CFLAGS=""
17087 GTK_LIBS=""
17088 GTHREAD_CFLAGS=""
17089 GTHREAD_LIBS=""
17090 if test x"$with_gtk" = "xno"; then
17091     have_gtk=no
17092 else
17093
17094     # check if ./configure arguments are valid
17095     if test x"$with_gtk" = "xauto"; then
17096        with_gtk=yes
17097     fi
17098     if test x"$with_gtk" = "xyes"; then
17099
17100         # pkg-config is needed for GTK+
17101         # Extract the first word of "pkg-config", so it can be a program name with args.
17102 set dummy pkg-config; ac_word=$2
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17104 $as_echo_n "checking for $ac_word... " >&6; }
17105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17106   $as_echo_n "(cached) " >&6
17107 else
17108   case $PKG_CONFIG in
17109   [\\/]* | ?:[\\/]*)
17110   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17111   ;;
17112   *)
17113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17114 for as_dir in $PATH
17115 do
17116   IFS=$as_save_IFS
17117   test -z "$as_dir" && as_dir=.
17118     for ac_exec_ext in '' $ac_executable_extensions; do
17119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17120     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17122     break 2
17123   fi
17124 done
17125   done
17126 IFS=$as_save_IFS
17127
17128   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17129   ;;
17130 esac
17131 fi
17132 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17133 if test -n "$PKG_CONFIG"; then
17134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17135 $as_echo "$PKG_CONFIG" >&6; }
17136 else
17137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138 $as_echo "no" >&6; }
17139 fi
17140
17141
17142         if test x"$PKG_CONFIG" = x"no"; then
17143             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have to install pkg-config to compile OpenCV with GTK+" >&5
17144 $as_echo "$as_me: WARNING: You have to install pkg-config to compile OpenCV with GTK+" >&2;}
17145         else
17146
17147   succeeded=no
17148
17149   if test -z "$PKG_CONFIG"; then
17150     # Extract the first word of "pkg-config", so it can be a program name with args.
17151 set dummy pkg-config; ac_word=$2
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17153 $as_echo_n "checking for $ac_word... " >&6; }
17154 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17155   $as_echo_n "(cached) " >&6
17156 else
17157   case $PKG_CONFIG in
17158   [\\/]* | ?:[\\/]*)
17159   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17160   ;;
17161   *)
17162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163 for as_dir in $PATH
17164 do
17165   IFS=$as_save_IFS
17166   test -z "$as_dir" && as_dir=.
17167     for ac_exec_ext in '' $ac_executable_extensions; do
17168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17169     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17171     break 2
17172   fi
17173 done
17174   done
17175 IFS=$as_save_IFS
17176
17177   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17178   ;;
17179 esac
17180 fi
17181 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17182 if test -n "$PKG_CONFIG"; then
17183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17184 $as_echo "$PKG_CONFIG" >&6; }
17185 else
17186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17188 fi
17189
17190
17191   fi
17192
17193   if test "$PKG_CONFIG" = "no" ; then
17194      echo "*** The pkg-config script could not be found. Make sure it is"
17195      echo "*** in your path, or set the PKG_CONFIG environment variable"
17196      echo "*** to the full path to pkg-config."
17197      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17198   else
17199      PKG_CONFIG_MIN_VERSION=0.9.0
17200      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"gtk+-2.0 gdk-pixbuf-2.0\"" >&5
17202 $as_echo_n "checking for \"gtk+-2.0 gdk-pixbuf-2.0\"... " >&6; }
17203
17204         if $PKG_CONFIG --exists ""gtk+-2.0 gdk-pixbuf-2.0"" ; then
17205             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17206 $as_echo "yes" >&6; }
17207             succeeded=yes
17208
17209             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
17210 $as_echo_n "checking GTK_CFLAGS... " >&6; }
17211             GTK_CFLAGS=`$PKG_CONFIG --cflags ""gtk+-2.0 gdk-pixbuf-2.0""`
17212             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
17213 $as_echo "$GTK_CFLAGS" >&6; }
17214
17215             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
17216 $as_echo_n "checking GTK_LIBS... " >&6; }
17217             GTK_LIBS=`$PKG_CONFIG --libs ""gtk+-2.0 gdk-pixbuf-2.0""`
17218             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
17219 $as_echo "$GTK_LIBS" >&6; }
17220         else
17221             GTK_CFLAGS=""
17222             GTK_LIBS=""
17223             ## If we have a custom action on failure, don't print errors, but
17224             ## do set a variable so people can do so.
17225             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gtk+-2.0 gdk-pixbuf-2.0""`
17226
17227         fi
17228
17229
17230
17231      else
17232         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17233         echo "*** See http://www.freedesktop.org/software/pkgconfig"
17234      fi
17235   fi
17236
17237   if test $succeeded = yes; then
17238
17239                                 have_gtk=yes
17240
17241 $as_echo "#define HAVE_GTK /**/" >>confdefs.h
17242
17243
17244   else
17245       have_gtk=no
17246   fi
17247
17248         fi
17249     else
17250         # if we get here then --with-gtk was not called with 'yes','no' or 'auto'
17251         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&5
17252 $as_echo "$as_me: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&2;}
17253         have_gtk=no
17254     fi
17255 fi
17256 if test x"$with_gthread" = "xno"; then
17257     have_gthread=no
17258 else
17259     if test x"$have_gtk" = "xyes"; then
17260         if test x"$with_gthread" = "xauto"; then
17261             with_gthread=yes
17262         fi
17263
17264         if test x"$with_gthread" = "xyes"; then
17265
17266   succeeded=no
17267
17268   if test -z "$PKG_CONFIG"; then
17269     # Extract the first word of "pkg-config", so it can be a program name with args.
17270 set dummy pkg-config; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17272 $as_echo_n "checking for $ac_word... " >&6; }
17273 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17274   $as_echo_n "(cached) " >&6
17275 else
17276   case $PKG_CONFIG in
17277   [\\/]* | ?:[\\/]*)
17278   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17279   ;;
17280   *)
17281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282 for as_dir in $PATH
17283 do
17284   IFS=$as_save_IFS
17285   test -z "$as_dir" && as_dir=.
17286     for ac_exec_ext in '' $ac_executable_extensions; do
17287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17288     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17290     break 2
17291   fi
17292 done
17293   done
17294 IFS=$as_save_IFS
17295
17296   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17297   ;;
17298 esac
17299 fi
17300 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17301 if test -n "$PKG_CONFIG"; then
17302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17303 $as_echo "$PKG_CONFIG" >&6; }
17304 else
17305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17306 $as_echo "no" >&6; }
17307 fi
17308
17309
17310   fi
17311
17312   if test "$PKG_CONFIG" = "no" ; then
17313      echo "*** The pkg-config script could not be found. Make sure it is"
17314      echo "*** in your path, or set the PKG_CONFIG environment variable"
17315      echo "*** to the full path to pkg-config."
17316      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17317   else
17318      PKG_CONFIG_MIN_VERSION=0.9.0
17319      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"gthread-2.0\"" >&5
17321 $as_echo_n "checking for \"gthread-2.0\"... " >&6; }
17322
17323         if $PKG_CONFIG --exists ""gthread-2.0"" ; then
17324             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17325 $as_echo "yes" >&6; }
17326             succeeded=yes
17327
17328             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTHREAD_CFLAGS" >&5
17329 $as_echo_n "checking GTHREAD_CFLAGS... " >&6; }
17330             GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0""`
17331             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTHREAD_CFLAGS" >&5
17332 $as_echo "$GTHREAD_CFLAGS" >&6; }
17333
17334             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTHREAD_LIBS" >&5
17335 $as_echo_n "checking GTHREAD_LIBS... " >&6; }
17336             GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0""`
17337             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTHREAD_LIBS" >&5
17338 $as_echo "$GTHREAD_LIBS" >&6; }
17339         else
17340             GTHREAD_CFLAGS=""
17341             GTHREAD_LIBS=""
17342             ## If we have a custom action on failure, don't print errors, but
17343             ## do set a variable so people can do so.
17344             GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gthread-2.0""`
17345
17346         fi
17347
17348
17349
17350      else
17351         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17352         echo "*** See http://www.freedesktop.org/software/pkgconfig"
17353      fi
17354   fi
17355
17356   if test $succeeded = yes; then
17357
17358                                 have_gthread=yes
17359
17360 $as_echo "#define HAVE_GTHREAD /**/" >>confdefs.h
17361
17362
17363   else
17364       have_gthread=no
17365   fi
17366
17367         else
17368             # if we get here then --with-gthread was not called with 'yes','no' or 'auto'
17369             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&5
17370 $as_echo "$as_me: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&2;}
17371             have_gthread=no
17372         fi
17373     else
17374         # if no gtk+ was detected, looking for gthread does not make any sense
17375         have_gthread=no
17376     fi
17377 fi
17378
17379
17380
17381
17382  if test x"$have_gtk" = "xyes"; then
17383   BUILD_GTK_TRUE=
17384   BUILD_GTK_FALSE='#'
17385 else
17386   BUILD_GTK_TRUE='#'
17387   BUILD_GTK_FALSE=
17388 fi
17389
17390
17391
17392 ######################################################################
17393 # HighGUI dependencies for video I/O
17394
17395 # if QuickTime is present, it will override everything else,
17396 # (unless '--without-quicktime' was given)
17397 if test x"$with_quicktime" = "xyes"; then
17398
17399     # check other ./configure flags
17400     if test x"$with_ffmpeg" = "xyes"; then
17401         as_fn_error "You cannot specify --with-quicktime and --with-ffmpeg at the same time" "$LINENO" 5
17402     fi
17403     if test x"$with_xine" = "xyes"; then
17404         as_fn_error "You cannot specify --with-quicktime and --with-xine at the same time" "$LINENO" 5
17405     fi
17406     if test x"$with_1394libs" = "xyes"; then
17407         as_fn_error "You cannot specify --with-quicktime and --with-1394libs at the same time" "$LINENO" 5
17408     fi
17409     if test x"$with_v4l" = "xyes"; then
17410         as_fn_error "You cannot specify --with-quicktime and --with-v4l at the same time" "$LINENO" 5
17411     fi
17412
17413     # header presence and usability seem to be enough
17414     ac_fn_cxx_check_header_mongrel "$LINENO" "QuickTime/QuickTime.h" "ac_cv_header_QuickTime_QuickTime_h" "$ac_includes_default"
17415 if test "x$ac_cv_header_QuickTime_QuickTime_h" = x""yes; then :
17416
17417
17418 $as_echo "#define HAVE_QUICKTIME /**/" >>confdefs.h
17419
17420                       have_quicktime=yes
17421
17422 else
17423    have_quicktime=no
17424 fi
17425
17426
17427
17428     # specify quicktime libraries
17429     if test x"$have_quicktime" = "xyes"; then
17430         QUICKTIME_LIBS="-Xlinker -framework -Xlinker QuickTime -Xlinker -framework -Xlinker QuartzCore"
17431
17432         # don't check alternatives if quicktime was found
17433         if test x"$with_ffmpeg" = "xauto"; then
17434             with_ffmpeg=no
17435         fi
17436         if test x"$with_xine" = "xauto"; then
17437             with_xine=no
17438         fi
17439         if test x"$with_1394libs" = "xauto"; then
17440             with_1394libs=no
17441         fi
17442         if test x"$with_v4l" = "xauto"; then
17443             with_v4l=no
17444         fi
17445     fi
17446 else
17447     # check if ./configure arguments are valid
17448     have_quicktime=no
17449     if test ! x"$with_quicktime" = "xno"; then
17450         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&5
17451 $as_echo "$as_me: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&2;}
17452     fi
17453 fi
17454
17455
17456  if test x"$have_quicktime" = "xyes"; then
17457   BUILD_QUICKTIME_TRUE=
17458   BUILD_QUICKTIME_FALSE='#'
17459 else
17460   BUILD_QUICKTIME_TRUE='#'
17461   BUILD_QUICKTIME_FALSE=
17462 fi
17463
17464
17465 # GStreamer seems to be a nice solution for both reading and writing
17466 # and even supports some cameras
17467 GSTREAMER_CFLAGS=""
17468 GSTREAMER_LIBS=""
17469 if test x"$with_gstreamer" = "xno"; then
17470     have_gstreamer=no
17471 else
17472
17473     if test x"$with_ffmpeg" = "xyes"; then
17474         as_fn_error "You cannot specify --with-gstreamer and --with-ffmpeg at the same time" "$LINENO" 5
17475     fi
17476
17477     # check if ./configure arguments are valid
17478     if test x"$with_gstreamer" = "xauto"; then
17479        with_gstreamer=yes
17480     fi
17481     if test x"$with_gstreamer" = "xyes"; then
17482
17483         # pkg-config is needed for GTK+
17484         # Extract the first word of "pkg-config", so it can be a program name with args.
17485 set dummy pkg-config; ac_word=$2
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17487 $as_echo_n "checking for $ac_word... " >&6; }
17488 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17489   $as_echo_n "(cached) " >&6
17490 else
17491   case $PKG_CONFIG in
17492   [\\/]* | ?:[\\/]*)
17493   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17494   ;;
17495   *)
17496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17497 for as_dir in $PATH
17498 do
17499   IFS=$as_save_IFS
17500   test -z "$as_dir" && as_dir=.
17501     for ac_exec_ext in '' $ac_executable_extensions; do
17502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17503     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17505     break 2
17506   fi
17507 done
17508   done
17509 IFS=$as_save_IFS
17510
17511   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17512   ;;
17513 esac
17514 fi
17515 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17516 if test -n "$PKG_CONFIG"; then
17517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17518 $as_echo "$PKG_CONFIG" >&6; }
17519 else
17520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17521 $as_echo "no" >&6; }
17522 fi
17523
17524
17525         if test x"$PKG_CONFIG" == "xno"; then
17526             as_fn_error "You have to install pkg-config to compile OpenCV with GStreamer" "$LINENO" 5
17527         fi
17528
17529
17530   succeeded=no
17531
17532   if test -z "$PKG_CONFIG"; then
17533     # Extract the first word of "pkg-config", so it can be a program name with args.
17534 set dummy pkg-config; ac_word=$2
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17536 $as_echo_n "checking for $ac_word... " >&6; }
17537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17538   $as_echo_n "(cached) " >&6
17539 else
17540   case $PKG_CONFIG in
17541   [\\/]* | ?:[\\/]*)
17542   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17543   ;;
17544   *)
17545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17546 for as_dir in $PATH
17547 do
17548   IFS=$as_save_IFS
17549   test -z "$as_dir" && as_dir=.
17550     for ac_exec_ext in '' $ac_executable_extensions; do
17551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17552     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17554     break 2
17555   fi
17556 done
17557   done
17558 IFS=$as_save_IFS
17559
17560   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17561   ;;
17562 esac
17563 fi
17564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17565 if test -n "$PKG_CONFIG"; then
17566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17567 $as_echo "$PKG_CONFIG" >&6; }
17568 else
17569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17570 $as_echo "no" >&6; }
17571 fi
17572
17573
17574   fi
17575
17576   if test "$PKG_CONFIG" = "no" ; then
17577      echo "*** The pkg-config script could not be found. Make sure it is"
17578      echo "*** in your path, or set the PKG_CONFIG environment variable"
17579      echo "*** to the full path to pkg-config."
17580      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17581   else
17582      PKG_CONFIG_MIN_VERSION=0.9.0
17583      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"gstreamer-0.10\"" >&5
17585 $as_echo_n "checking for \"gstreamer-0.10\"... " >&6; }
17586
17587         if $PKG_CONFIG --exists ""gstreamer-0.10"" ; then
17588             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17589 $as_echo "yes" >&6; }
17590             succeeded=yes
17591
17592             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
17593 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
17594             GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags ""gstreamer-0.10""`
17595             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
17596 $as_echo "$GSTREAMER_CFLAGS" >&6; }
17597
17598             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
17599 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
17600             GSTREAMER_LIBS=`$PKG_CONFIG --libs ""gstreamer-0.10""`
17601             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
17602 $as_echo "$GSTREAMER_LIBS" >&6; }
17603         else
17604             GSTREAMER_CFLAGS=""
17605             GSTREAMER_LIBS=""
17606             ## If we have a custom action on failure, don't print errors, but
17607             ## do set a variable so people can do so.
17608             GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gstreamer-0.10""`
17609
17610         fi
17611
17612
17613
17614      else
17615         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17616         echo "*** See http://www.freedesktop.org/software/pkgconfig"
17617      fi
17618   fi
17619
17620   if test $succeeded = yes; then
17621
17622                             have_gstreamer=yes
17623
17624 $as_echo "#define HAVE_GSTREAMER /**/" >>confdefs.h
17625
17626
17627   else
17628       have_gstreamer=no
17629   fi
17630
17631
17632         if test x"$have_gstreamer" = "xyes"; then
17633             GSTREAMER_LIBS="$GSTREAMER_LIBS -lgstbase-0.10"
17634             with_ffmpeg=no
17635         fi
17636     else
17637         # if we get here then --with-gstreamer was not called with 'yes','no' or 'auto'
17638         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-gstreamer, continuing assuming 'no'" >&5
17639 $as_echo "$as_me: WARNING: unexpected arguments for option --with-gstreamer, continuing assuming 'no'" >&2;}
17640         have_gstreamer=no
17641     fi
17642 fi
17643
17644
17645  if test x"$have_gstreamer" = "xyes"; then
17646   BUILD_GSTREAMER_TRUE=
17647   BUILD_GSTREAMER_FALSE='#'
17648 else
17649   BUILD_GSTREAMER_TRUE='#'
17650   BUILD_GSTREAMER_FALSE=
17651 fi
17652
17653
17654 # Check for the unicap library
17655 UNICAP_PACKAGE_LIBS=""
17656 UNICAP_PACKAGE_CFLAGS=""
17657 UCIL_PACKAGE_LIBS=""
17658 UCIL_PACKAGE_CFLAGS=""
17659 if test x"$with_unicap" = "xno"; then
17660     have_unicap=no
17661 else
17662
17663   succeeded=no
17664
17665   if test -z "$PKG_CONFIG"; then
17666     # Extract the first word of "pkg-config", so it can be a program name with args.
17667 set dummy pkg-config; ac_word=$2
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17669 $as_echo_n "checking for $ac_word... " >&6; }
17670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17671   $as_echo_n "(cached) " >&6
17672 else
17673   case $PKG_CONFIG in
17674   [\\/]* | ?:[\\/]*)
17675   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17676   ;;
17677   *)
17678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17679 for as_dir in $PATH
17680 do
17681   IFS=$as_save_IFS
17682   test -z "$as_dir" && as_dir=.
17683     for ac_exec_ext in '' $ac_executable_extensions; do
17684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17685     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17687     break 2
17688   fi
17689 done
17690   done
17691 IFS=$as_save_IFS
17692
17693   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17694   ;;
17695 esac
17696 fi
17697 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17698 if test -n "$PKG_CONFIG"; then
17699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17700 $as_echo "$PKG_CONFIG" >&6; }
17701 else
17702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703 $as_echo "no" >&6; }
17704 fi
17705
17706
17707   fi
17708
17709   if test "$PKG_CONFIG" = "no" ; then
17710      echo "*** The pkg-config script could not be found. Make sure it is"
17711      echo "*** in your path, or set the PKG_CONFIG environment variable"
17712      echo "*** to the full path to pkg-config."
17713      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17714   else
17715      PKG_CONFIG_MIN_VERSION=0.9.0
17716      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17717         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunicap" >&5
17718 $as_echo_n "checking for libunicap... " >&6; }
17719
17720         if $PKG_CONFIG --exists "libunicap" ; then
17721             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17722 $as_echo "yes" >&6; }
17723             succeeded=yes
17724
17725             { $as_echo "$as_me:${as_lineno-$LINENO}: checking UNICAP_PACKAGE_CFLAGS" >&5
17726 $as_echo_n "checking UNICAP_PACKAGE_CFLAGS... " >&6; }
17727             UNICAP_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "libunicap"`
17728             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNICAP_PACKAGE_CFLAGS" >&5
17729 $as_echo "$UNICAP_PACKAGE_CFLAGS" >&6; }
17730
17731             { $as_echo "$as_me:${as_lineno-$LINENO}: checking UNICAP_PACKAGE_LIBS" >&5
17732 $as_echo_n "checking UNICAP_PACKAGE_LIBS... " >&6; }
17733             UNICAP_PACKAGE_LIBS=`$PKG_CONFIG --libs "libunicap"`
17734             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNICAP_PACKAGE_LIBS" >&5
17735 $as_echo "$UNICAP_PACKAGE_LIBS" >&6; }
17736         else
17737             UNICAP_PACKAGE_CFLAGS=""
17738             UNICAP_PACKAGE_LIBS=""
17739             ## If we have a custom action on failure, don't print errors, but
17740             ## do set a variable so people can do so.
17741             UNICAP_PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libunicap"`
17742             echo $UNICAP_PACKAGE_PKG_ERRORS
17743         fi
17744
17745
17746
17747      else
17748         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17749         echo "*** See http://www.freedesktop.org/software/pkgconfig"
17750      fi
17751   fi
17752
17753   if test $succeeded = yes; then
17754      :
17755   else
17756      as_fn_error "Library requirements (libunicap) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
17757   fi
17758
17759
17760   succeeded=no
17761
17762   if test -z "$PKG_CONFIG"; then
17763     # Extract the first word of "pkg-config", so it can be a program name with args.
17764 set dummy pkg-config; ac_word=$2
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17766 $as_echo_n "checking for $ac_word... " >&6; }
17767 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17768   $as_echo_n "(cached) " >&6
17769 else
17770   case $PKG_CONFIG in
17771   [\\/]* | ?:[\\/]*)
17772   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17773   ;;
17774   *)
17775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17776 for as_dir in $PATH
17777 do
17778   IFS=$as_save_IFS
17779   test -z "$as_dir" && as_dir=.
17780     for ac_exec_ext in '' $ac_executable_extensions; do
17781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17782     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17784     break 2
17785   fi
17786 done
17787   done
17788 IFS=$as_save_IFS
17789
17790   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17791   ;;
17792 esac
17793 fi
17794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17795 if test -n "$PKG_CONFIG"; then
17796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17797 $as_echo "$PKG_CONFIG" >&6; }
17798 else
17799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17800 $as_echo "no" >&6; }
17801 fi
17802
17803
17804   fi
17805
17806   if test "$PKG_CONFIG" = "no" ; then
17807      echo "*** The pkg-config script could not be found. Make sure it is"
17808      echo "*** in your path, or set the PKG_CONFIG environment variable"
17809      echo "*** to the full path to pkg-config."
17810      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17811   else
17812      PKG_CONFIG_MIN_VERSION=0.9.0
17813      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17814         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libucil" >&5
17815 $as_echo_n "checking for libucil... " >&6; }
17816
17817         if $PKG_CONFIG --exists "libucil" ; then
17818             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17819 $as_echo "yes" >&6; }
17820             succeeded=yes
17821
17822             { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCIL_PACKAGE_CFLAGS" >&5
17823 $as_echo_n "checking UCIL_PACKAGE_CFLAGS... " >&6; }
17824             UCIL_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "libucil"`
17825             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCIL_PACKAGE_CFLAGS" >&5
17826 $as_echo "$UCIL_PACKAGE_CFLAGS" >&6; }
17827
17828             { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCIL_PACKAGE_LIBS" >&5
17829 $as_echo_n "checking UCIL_PACKAGE_LIBS... " >&6; }
17830             UCIL_PACKAGE_LIBS=`$PKG_CONFIG --libs "libucil"`
17831             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCIL_PACKAGE_LIBS" >&5
17832 $as_echo "$UCIL_PACKAGE_LIBS" >&6; }
17833         else
17834             UCIL_PACKAGE_CFLAGS=""
17835             UCIL_PACKAGE_LIBS=""
17836             ## If we have a custom action on failure, don't print errors, but
17837             ## do set a variable so people can do so.
17838             UCIL_PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libucil"`
17839             echo $UCIL_PACKAGE_PKG_ERRORS
17840         fi
17841
17842
17843
17844      else
17845         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17846         echo "*** See http://www.freedesktop.org/software/pkgconfig"
17847      fi
17848   fi
17849
17850   if test $succeeded = yes; then
17851      :
17852   else
17853      as_fn_error "Library requirements (libucil) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
17854   fi
17855
17856         have_unicap=yes
17857
17858 $as_echo "#define HAVE_UNICAP /**/" >>confdefs.h
17859
17860 fi
17861  if test x"$have_unicap" = "xyes"; then
17862   BUILD_UNICAP_TRUE=
17863   BUILD_UNICAP_FALSE='#'
17864 else
17865   BUILD_UNICAP_TRUE='#'
17866   BUILD_UNICAP_FALSE=
17867 fi
17868
17869
17870
17871
17872
17873
17874 # prefer XINE over FFMPEG for video reading because it is quick, has a cleaner API
17875 # and allows for easy seeking with some formats
17876 if test x"$with_xine" = "xno"; then
17877     have_xine=no
17878     # XINE_LIBS=""
17879 else
17880
17881     # check if ./configure arguments are valid
17882     if test x"$with_xine" = "xauto"; then
17883        with_xine=yes
17884     fi
17885     if test x"$with_xine" = "xyes"; then
17886         ac_fn_cxx_check_header_mongrel "$LINENO" "xine.h" "ac_cv_header_xine_h" "$ac_includes_default"
17887 if test "x$ac_cv_header_xine_h" = x""yes; then :
17888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xine_init in -lxine" >&5
17889 $as_echo_n "checking for xine_init in -lxine... " >&6; }
17890 if test "${ac_cv_lib_xine_xine_init+set}" = set; then :
17891   $as_echo_n "(cached) " >&6
17892 else
17893   ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-lxine  $LIBS"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h.  */
17897
17898 /* Override any GCC internal prototype to avoid an error.
17899    Use char because int might match the return type of a GCC
17900    builtin and then its argument prototype would still apply.  */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char xine_init ();
17905 int
17906 main ()
17907 {
17908 return xine_init ();
17909   ;
17910   return 0;
17911 }
17912 _ACEOF
17913 if ac_fn_cxx_try_link "$LINENO"; then :
17914   ac_cv_lib_xine_xine_init=yes
17915 else
17916   ac_cv_lib_xine_xine_init=no
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext \
17919     conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17921 fi
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xine_xine_init" >&5
17923 $as_echo "$ac_cv_lib_xine_xine_init" >&6; }
17924 if test "x$ac_cv_lib_xine_xine_init" = x""yes; then :
17925
17926                                       have_xine=yes
17927
17928 $as_echo "#define HAVE_XINE /**/" >>confdefs.h
17929
17930                                       XINE_LIBS="-lxine"
17931
17932 else
17933    have_xine=no
17934 fi
17935
17936 else
17937    have_xine=no
17938 fi
17939
17940
17941     else
17942         # if we get here then --with-xine was not called with 'yes','no' or 'auto'
17943         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&5
17944 $as_echo "$as_me: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&2;}
17945         have_xine=no
17946     fi
17947 fi
17948
17949  if test x"$have_xine" = "xyes"; then
17950   BUILD_XINE_TRUE=
17951   BUILD_XINE_FALSE='#'
17952 else
17953   BUILD_XINE_TRUE='#'
17954   BUILD_XINE_FALSE=
17955 fi
17956
17957
17958 # unfortunately, xine does not feature video writing,
17959 # so we have to resort to FFMPEG here
17960 if test x"$with_ffmpeg" = "xno"; then
17961     have_ffmpeg=no
17962     # FFMPEGLIBS=""
17963 else
17964
17965     have_ffmpeg=no
17966     have_avcodec=no
17967     have_avformat=no
17968
17969     # check if ./configure arguments are valid
17970     if test x"$with_ffmpeg" = "xauto"; then
17971        with_ffmpeg=yes
17972     fi
17973
17974     if test x"$with_ffmpeg" = "xyes"; then
17975         for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h
17976 do :
17977   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17978 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17979 eval as_val=\$$as_ac_Header
17980    if test "x$as_val" = x""yes; then :
17981   cat >>confdefs.h <<_ACEOF
17982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17983 _ACEOF
17984  have_avcodec=yes
17985 fi
17986
17987 done
17988
17989         for ac_header in ffmpeg/avformat.h libavformat/avformat.h
17990 do :
17991   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17992 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17993 eval as_val=\$$as_ac_Header
17994    if test "x$as_val" = x""yes; then :
17995   cat >>confdefs.h <<_ACEOF
17996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17997 _ACEOF
17998  have_avformat=yes
17999 fi
18000
18001 done
18002
18003
18004         if test x"$have_avcodec"x"$have_avformat" = "xyesxyes" ; then
18005             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avcodec_decode_video" >&5
18006 $as_echo_n "checking for library containing avcodec_decode_video... " >&6; }
18007 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then :
18008   $as_echo_n "(cached) " >&6
18009 else
18010   ac_func_search_save_LIBS=$LIBS
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h.  */
18013
18014 /* Override any GCC internal prototype to avoid an error.
18015    Use char because int might match the return type of a GCC
18016    builtin and then its argument prototype would still apply.  */
18017 #ifdef __cplusplus
18018 extern "C"
18019 #endif
18020 char avcodec_decode_video ();
18021 int
18022 main ()
18023 {
18024 return avcodec_decode_video ();
18025   ;
18026   return 0;
18027 }
18028 _ACEOF
18029 for ac_lib in '' avcodec_pic avcodec; do
18030   if test -z "$ac_lib"; then
18031     ac_res="none required"
18032   else
18033     ac_res=-l$ac_lib
18034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18035   fi
18036   if ac_fn_cxx_try_link "$LINENO"; then :
18037   ac_cv_search_avcodec_decode_video=$ac_res
18038 fi
18039 rm -f core conftest.err conftest.$ac_objext \
18040     conftest$ac_exeext
18041   if test "${ac_cv_search_avcodec_decode_video+set}" = set; then :
18042   break
18043 fi
18044 done
18045 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then :
18046
18047 else
18048   ac_cv_search_avcodec_decode_video=no
18049 fi
18050 rm conftest.$ac_ext
18051 LIBS=$ac_func_search_save_LIBS
18052 fi
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avcodec_decode_video" >&5
18054 $as_echo "$ac_cv_search_avcodec_decode_video" >&6; }
18055 ac_res=$ac_cv_search_avcodec_decode_video
18056 if test "$ac_res" != no; then :
18057   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18058
18059                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_open_input_file" >&5
18060 $as_echo_n "checking for library containing av_open_input_file... " >&6; }
18061 if test "${ac_cv_search_av_open_input_file+set}" = set; then :
18062   $as_echo_n "(cached) " >&6
18063 else
18064   ac_func_search_save_LIBS=$LIBS
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h.  */
18067
18068 /* Override any GCC internal prototype to avoid an error.
18069    Use char because int might match the return type of a GCC
18070    builtin and then its argument prototype would still apply.  */
18071 #ifdef __cplusplus
18072 extern "C"
18073 #endif
18074 char av_open_input_file ();
18075 int
18076 main ()
18077 {
18078 return av_open_input_file ();
18079   ;
18080   return 0;
18081 }
18082 _ACEOF
18083 for ac_lib in '' avformat_pic avformat; do
18084   if test -z "$ac_lib"; then
18085     ac_res="none required"
18086   else
18087     ac_res=-l$ac_lib
18088     LIBS="-l$ac_lib -lavcodec $ac_func_search_save_LIBS"
18089   fi
18090   if ac_fn_cxx_try_link "$LINENO"; then :
18091   ac_cv_search_av_open_input_file=$ac_res
18092 fi
18093 rm -f core conftest.err conftest.$ac_objext \
18094     conftest$ac_exeext
18095   if test "${ac_cv_search_av_open_input_file+set}" = set; then :
18096   break
18097 fi
18098 done
18099 if test "${ac_cv_search_av_open_input_file+set}" = set; then :
18100
18101 else
18102   ac_cv_search_av_open_input_file=no
18103 fi
18104 rm conftest.$ac_ext
18105 LIBS=$ac_func_search_save_LIBS
18106 fi
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_open_input_file" >&5
18108 $as_echo "$ac_cv_search_av_open_input_file" >&6; }
18109 ac_res=$ac_cv_search_av_open_input_file
18110 if test "$ac_res" != no; then :
18111   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18112   have_ffmpeg=yes
18113 fi
18114
18115 fi
18116
18117         fi
18118
18119         if test x"$have_ffmpeg" = "xyes" ; then
18120             # libswscale is not always necessary, but if it is there, we want to use it
18121             for ac_header in ffmpeg/swscale.h libswscale/swscale.h
18122 do :
18123   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18124 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18125 eval as_val=\$$as_ac_Header
18126    if test "x$as_val" = x""yes; then :
18127   cat >>confdefs.h <<_ACEOF
18128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18129 _ACEOF
18130
18131                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5
18132 $as_echo_n "checking for sws_getContext in -lswscale... " >&6; }
18133 if test "${ac_cv_lib_swscale_sws_getContext+set}" = set; then :
18134   $as_echo_n "(cached) " >&6
18135 else
18136   ac_check_lib_save_LIBS=$LIBS
18137 LIBS="-lswscale  $LIBS"
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h.  */
18140
18141 /* Override any GCC internal prototype to avoid an error.
18142    Use char because int might match the return type of a GCC
18143    builtin and then its argument prototype would still apply.  */
18144 #ifdef __cplusplus
18145 extern "C"
18146 #endif
18147 char sws_getContext ();
18148 int
18149 main ()
18150 {
18151 return sws_getContext ();
18152   ;
18153   return 0;
18154 }
18155 _ACEOF
18156 if ac_fn_cxx_try_link "$LINENO"; then :
18157   ac_cv_lib_swscale_sws_getContext=yes
18158 else
18159   ac_cv_lib_swscale_sws_getContext=no
18160 fi
18161 rm -f core conftest.err conftest.$ac_objext \
18162     conftest$ac_exeext conftest.$ac_ext
18163 LIBS=$ac_check_lib_save_LIBS
18164 fi
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5
18166 $as_echo "$ac_cv_lib_swscale_sws_getContext" >&6; }
18167 if test "x$ac_cv_lib_swscale_sws_getContext" = x""yes; then :
18168   FFMPEG_SWSCALE_LIBS="-lswscale"
18169
18170 $as_echo "#define HAVE_FFMPEG_SWSCALE /**/" >>confdefs.h
18171
18172 fi
18173
18174 fi
18175
18176 done
18177
18178
18179
18180 $as_echo "#define HAVE_FFMPEG /**/" >>confdefs.h
18181
18182             FFMPEGLIBS="-lavcodec -lavformat $FFMPEG_SWSCALE_LIBS"
18183         fi
18184     else
18185         # if we get here then --with-ffmpeg was not called with 'yes','no' or 'auto'
18186         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&5
18187 $as_echo "$as_me: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&2;}
18188         have_ffmpeg=no
18189     fi
18190 fi
18191
18192  if test x"$have_ffmpeg" = "xyes"; then
18193   BUILD_FFMPEG_TRUE=
18194   BUILD_FFMPEG_FALSE='#'
18195 else
18196   BUILD_FFMPEG_TRUE='#'
18197   BUILD_FFMPEG_FALSE=
18198 fi
18199
18200
18201 # IEEE1394 / FireWire video video i/o with libdc1394, libraw1394
18202 # (can be managed by QuickTime as well)
18203 if test x"$with_1394libs" = "xno"; then
18204     have_raw1394=no
18205     have_dc1394=no
18206     have_dc1394_2=no
18207     # IEEE1394LIBS=""
18208 else
18209
18210     # check if ./configure arguments are valid
18211     if test x"$with_1394libs" = "xauto"; then
18212        with_1394libs=yes
18213     fi
18214     if test x"$with_1394libs" = "xyes"; then
18215
18216         SAVELIBS="$LIBS"
18217         have_raw1394=no
18218         have_dc1394=no
18219         have_dc1394_2=no
18220
18221         ac_fn_cxx_check_header_mongrel "$LINENO" "libraw1394/raw1394.h" "ac_cv_header_libraw1394_raw1394_h" "$ac_includes_default"
18222 if test "x$ac_cv_header_libraw1394_raw1394_h" = x""yes; then :
18223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raw1394_new_handle in -lraw1394" >&5
18224 $as_echo_n "checking for raw1394_new_handle in -lraw1394... " >&6; }
18225 if test "${ac_cv_lib_raw1394_raw1394_new_handle+set}" = set; then :
18226   $as_echo_n "(cached) " >&6
18227 else
18228   ac_check_lib_save_LIBS=$LIBS
18229 LIBS="-lraw1394  $LIBS"
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h.  */
18232
18233 /* Override any GCC internal prototype to avoid an error.
18234    Use char because int might match the return type of a GCC
18235    builtin and then its argument prototype would still apply.  */
18236 #ifdef __cplusplus
18237 extern "C"
18238 #endif
18239 char raw1394_new_handle ();
18240 int
18241 main ()
18242 {
18243 return raw1394_new_handle ();
18244   ;
18245   return 0;
18246 }
18247 _ACEOF
18248 if ac_fn_cxx_try_link "$LINENO"; then :
18249   ac_cv_lib_raw1394_raw1394_new_handle=yes
18250 else
18251   ac_cv_lib_raw1394_raw1394_new_handle=no
18252 fi
18253 rm -f core conftest.err conftest.$ac_objext \
18254     conftest$ac_exeext conftest.$ac_ext
18255 LIBS=$ac_check_lib_save_LIBS
18256 fi
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_raw1394_new_handle" >&5
18258 $as_echo "$ac_cv_lib_raw1394_raw1394_new_handle" >&6; }
18259 if test "x$ac_cv_lib_raw1394_raw1394_new_handle" = x""yes; then :
18260
18261                                        have_raw1394=yes
18262                                        LIBS="-lraw1394 $LIBS"
18263
18264 fi
18265
18266 fi
18267
18268
18269
18270         if test x"$have_raw1394" = "xyes"; then
18271             ac_fn_cxx_check_header_mongrel "$LINENO" "dc1394/dc1394.h" "ac_cv_header_dc1394_dc1394_h" "$ac_includes_default"
18272 if test "x$ac_cv_header_dc1394_dc1394_h" = x""yes; then :
18273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dc1394_camera_enumerate in -ldc1394" >&5
18274 $as_echo_n "checking for dc1394_camera_enumerate in -ldc1394... " >&6; }
18275 if test "${ac_cv_lib_dc1394_dc1394_camera_enumerate+set}" = set; then :
18276   $as_echo_n "(cached) " >&6
18277 else
18278   ac_check_lib_save_LIBS=$LIBS
18279 LIBS="-ldc1394  $LIBS"
18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h.  */
18282
18283 /* Override any GCC internal prototype to avoid an error.
18284    Use char because int might match the return type of a GCC
18285    builtin and then its argument prototype would still apply.  */
18286 #ifdef __cplusplus
18287 extern "C"
18288 #endif
18289 char dc1394_camera_enumerate ();
18290 int
18291 main ()
18292 {
18293 return dc1394_camera_enumerate ();
18294   ;
18295   return 0;
18296 }
18297 _ACEOF
18298 if ac_fn_cxx_try_link "$LINENO"; then :
18299   ac_cv_lib_dc1394_dc1394_camera_enumerate=yes
18300 else
18301   ac_cv_lib_dc1394_dc1394_camera_enumerate=no
18302 fi
18303 rm -f core conftest.err conftest.$ac_objext \
18304     conftest$ac_exeext conftest.$ac_ext
18305 LIBS=$ac_check_lib_save_LIBS
18306 fi
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_dc1394_camera_enumerate" >&5
18308 $as_echo "$ac_cv_lib_dc1394_dc1394_camera_enumerate" >&6; }
18309 if test "x$ac_cv_lib_dc1394_dc1394_camera_enumerate" = x""yes; then :
18310
18311                                            have_dc1394_2=yes
18312
18313 $as_echo "#define HAVE_DC1394_2 /**/" >>confdefs.h
18314
18315                                            IEEE1394LIBS="-lraw1394 -ldc1394"
18316
18317 fi
18318
18319 fi
18320
18321
18322
18323             if test x"$have_dc1394_2" = "xno"; then
18324                 ac_fn_cxx_check_header_mongrel "$LINENO" "libdc1394/dc1394_control.h" "ac_cv_header_libdc1394_dc1394_control_h" "$ac_includes_default"
18325 if test "x$ac_cv_header_libdc1394_dc1394_control_h" = x""yes; then :
18326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dc1394_camera_on in -ldc1394_control" >&5
18327 $as_echo_n "checking for dc1394_camera_on in -ldc1394_control... " >&6; }
18328 if test "${ac_cv_lib_dc1394_control_dc1394_camera_on+set}" = set; then :
18329   $as_echo_n "(cached) " >&6
18330 else
18331   ac_check_lib_save_LIBS=$LIBS
18332 LIBS="-ldc1394_control  $LIBS"
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h.  */
18335
18336 /* Override any GCC internal prototype to avoid an error.
18337    Use char because int might match the return type of a GCC
18338    builtin and then its argument prototype would still apply.  */
18339 #ifdef __cplusplus
18340 extern "C"
18341 #endif
18342 char dc1394_camera_on ();
18343 int
18344 main ()
18345 {
18346 return dc1394_camera_on ();
18347   ;
18348   return 0;
18349 }
18350 _ACEOF
18351 if ac_fn_cxx_try_link "$LINENO"; then :
18352   ac_cv_lib_dc1394_control_dc1394_camera_on=yes
18353 else
18354   ac_cv_lib_dc1394_control_dc1394_camera_on=no
18355 fi
18356 rm -f core conftest.err conftest.$ac_objext \
18357     conftest$ac_exeext conftest.$ac_ext
18358 LIBS=$ac_check_lib_save_LIBS
18359 fi
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_control_dc1394_camera_on" >&5
18361 $as_echo "$ac_cv_lib_dc1394_control_dc1394_camera_on" >&6; }
18362 if test "x$ac_cv_lib_dc1394_control_dc1394_camera_on" = x""yes; then :
18363
18364                                                have_dc1394=yes
18365
18366 $as_echo "#define HAVE_DC1394 /**/" >>confdefs.h
18367
18368                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h.  */
18370 #include <libdc1394/dc1394_control.h>
18371
18372 _ACEOF
18373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18374   $EGREP "do_extra_buffering" >/dev/null 2>&1; then :
18375
18376 $as_echo "#define HAVE_DC1394_095 /**/" >>confdefs.h
18377
18378 fi
18379 rm -f conftest*
18380
18381                                                IEEE1394LIBS="-lraw1394 -ldc1394_control"
18382
18383 fi
18384
18385 fi
18386
18387
18388             fi
18389         fi
18390
18391         LIBS="$SAVELIBS"
18392     else
18393         # if we get here then --with-1394libs was not called with 'yes','no' or 'auto'
18394         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&5
18395 $as_echo "$as_me: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&2;}
18396         have_dc1394=no
18397     fi
18398 fi
18399
18400  if test x"$have_dc1394" = "xyes"; then
18401   BUILD_DC1394_TRUE=
18402   BUILD_DC1394_FALSE='#'
18403 else
18404   BUILD_DC1394_TRUE='#'
18405   BUILD_DC1394_FALSE=
18406 fi
18407
18408  if test x"$have_dc1394_2" = "xyes"; then
18409   BUILD_DC1394_2_TRUE=
18410   BUILD_DC1394_2_FALSE='#'
18411 else
18412   BUILD_DC1394_2_TRUE='#'
18413   BUILD_DC1394_2_FALSE=
18414 fi
18415
18416
18417 # Video for Linux (V4L)
18418 # we support version 1 and 2 currently
18419 if test x"$with_v4l" = "xno"; then
18420     have_v4l=no
18421     have_v4l2=no
18422     have_v4l1or2=no
18423 else
18424     # check if ./configure arguments are valid
18425     if test x"$with_v4l" = "xauto"; then
18426        with_v4l=yes
18427     fi
18428     if test x"$with_v4l" = "xyes"; then
18429         ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
18430 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
18431
18432
18433 $as_echo "#define HAVE_CAMV4L /**/" >>confdefs.h
18434
18435                           have_v4l=yes
18436                           have_v4l1or2=yes
18437
18438 else
18439
18440                           have_v4l=no
18441                           have_v4l1or2=no
18442
18443 fi
18444
18445
18446         ac_fn_cxx_check_header_compile "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "
18447                 #include <asm/types.h>
18448                 #include <sys/time.h>
18449
18450 "
18451 if test "x$ac_cv_header_linux_videodev2_h" = x""yes; then :
18452
18453
18454 $as_echo "#define HAVE_CAMV4L2 /**/" >>confdefs.h
18455
18456                           have_v4l2=yes
18457                           have_v4l1or2=yes
18458
18459 else
18460    have_v4l2=no
18461 fi
18462
18463
18464     else
18465         # if we get here then --with-v4l was not called with 'yes','no' or 'auto'
18466         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&5
18467 $as_echo "$as_me: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&2;}
18468         have_v4l=no
18469         have_v4l2=no
18470         have_v4l1or2=no
18471     fi
18472
18473 fi
18474  if test x"$have_v4l1or2" = "xyes"; then
18475   BUILD_V4L_TRUE=
18476   BUILD_V4L_FALSE='#'
18477 else
18478   BUILD_V4L_TRUE='#'
18479   BUILD_V4L_FALSE=
18480 fi
18481
18482
18483
18484 ######################################################################
18485 # HighGUI dependencies for image I/O
18486
18487 SAVELIBS="$LIBS"
18488 IMAGELIBS=""
18489
18490
18491
18492 have_imageio=no
18493 if test x"$with_imageio" = "xauto"; then
18494     with_imageio=yes
18495 fi
18496 if test x"$with_imageio" = "xyes"; then
18497     ac_fn_cxx_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
18498 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = x""yes; then :
18499
18500                       have_imageio=yes
18501
18502 $as_echo "#define HAVE_IMAGEIO /**/" >>confdefs.h
18503
18504                       IMAGELIBS="$IMAGELIBS -framework ApplicationServices"
18505                       LIBS="$LIBS -framework ApplicationServices"
18506
18507 else
18508    have_imageio=no
18509 fi
18510
18511
18512 fi
18513  if test x"$have_imageio" = "xyes"; then
18514   BUILD_IMAGEIO_TRUE=
18515   BUILD_IMAGEIO_FALSE='#'
18516 else
18517   BUILD_IMAGEIO_TRUE='#'
18518   BUILD_IMAGEIO_FALSE=
18519 fi
18520
18521
18522
18523 have_jpeg=no
18524 have_zlib=no
18525 have_png=no
18526 have_tiff=no
18527
18528 # there are problems with dependencies of ImageIO to libtiff, etc.
18529 # that we avoid by not linking them ourselves
18530 if test x"$have_imageio" = "xno" ; then
18531
18532   ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
18533 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
18534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
18535 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
18536 if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then :
18537   $as_echo_n "(cached) " >&6
18538 else
18539   ac_check_lib_save_LIBS=$LIBS
18540 LIBS="-ljpeg  $LIBS"
18541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18542 /* end confdefs.h.  */
18543
18544 /* Override any GCC internal prototype to avoid an error.
18545    Use char because int might match the return type of a GCC
18546    builtin and then its argument prototype would still apply.  */
18547 #ifdef __cplusplus
18548 extern "C"
18549 #endif
18550 char jpeg_destroy_decompress ();
18551 int
18552 main ()
18553 {
18554 return jpeg_destroy_decompress ();
18555   ;
18556   return 0;
18557 }
18558 _ACEOF
18559 if ac_fn_cxx_try_link "$LINENO"; then :
18560   ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
18561 else
18562   ac_cv_lib_jpeg_jpeg_destroy_decompress=no
18563 fi
18564 rm -f core conftest.err conftest.$ac_objext \
18565     conftest$ac_exeext conftest.$ac_ext
18566 LIBS=$ac_check_lib_save_LIBS
18567 fi
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
18569 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
18570 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = x""yes; then :
18571
18572                                  have_jpeg=yes
18573
18574 $as_echo "#define HAVE_JPEG /**/" >>confdefs.h
18575
18576                                  IMAGELIBS="$IMAGELIBS -ljpeg"
18577
18578 fi
18579
18580 fi
18581
18582
18583
18584   ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18585 if test "x$ac_cv_header_zlib_h" = x""yes; then :
18586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18587 $as_echo_n "checking for gzopen in -lz... " >&6; }
18588 if test "${ac_cv_lib_z_gzopen+set}" = set; then :
18589   $as_echo_n "(cached) " >&6
18590 else
18591   ac_check_lib_save_LIBS=$LIBS
18592 LIBS="-lz  $LIBS"
18593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18594 /* end confdefs.h.  */
18595
18596 /* Override any GCC internal prototype to avoid an error.
18597    Use char because int might match the return type of a GCC
18598    builtin and then its argument prototype would still apply.  */
18599 #ifdef __cplusplus
18600 extern "C"
18601 #endif
18602 char gzopen ();
18603 int
18604 main ()
18605 {
18606 return gzopen ();
18607   ;
18608   return 0;
18609 }
18610 _ACEOF
18611 if ac_fn_cxx_try_link "$LINENO"; then :
18612   ac_cv_lib_z_gzopen=yes
18613 else
18614   ac_cv_lib_z_gzopen=no
18615 fi
18616 rm -f core conftest.err conftest.$ac_objext \
18617     conftest$ac_exeext conftest.$ac_ext
18618 LIBS=$ac_check_lib_save_LIBS
18619 fi
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18621 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
18622 if test "x$ac_cv_lib_z_gzopen" = x""yes; then :
18623
18624                                  have_zlib=yes
18625
18626 $as_echo "#define HAVE_ZLIB /**/" >>confdefs.h
18627
18628                                  IMAGELIBS="$IMAGELIBS -lz"
18629                                  LIBS="$LIBS -lz"
18630
18631 fi
18632
18633 fi
18634
18635
18636
18637   ac_fn_cxx_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
18638 if test "x$ac_cv_header_png_h" = x""yes; then :
18639
18640
18641 $as_echo "#define HAVE_PNG_H /**/" >>confdefs.h
18642
18643                     have_png=yes
18644
18645 fi
18646
18647
18648   ac_fn_cxx_check_header_mongrel "$LINENO" "libpng/png.h" "ac_cv_header_libpng_png_h" "$ac_includes_default"
18649 if test "x$ac_cv_header_libpng_png_h" = x""yes; then :
18650
18651
18652 $as_echo "#define HAVE_LIBPNG_PNG_H /**/" >>confdefs.h
18653
18654                     have_png=yes
18655
18656 fi
18657
18658
18659
18660   if test x"$have_png" = "xyes"; then
18661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_image in -lpng12" >&5
18662 $as_echo_n "checking for png_read_image in -lpng12... " >&6; }
18663 if test "${ac_cv_lib_png12_png_read_image+set}" = set; then :
18664   $as_echo_n "(cached) " >&6
18665 else
18666   ac_check_lib_save_LIBS=$LIBS
18667 LIBS="-lpng12  $LIBS"
18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h.  */
18670
18671 /* Override any GCC internal prototype to avoid an error.
18672    Use char because int might match the return type of a GCC
18673    builtin and then its argument prototype would still apply.  */
18674 #ifdef __cplusplus
18675 extern "C"
18676 #endif
18677 char png_read_image ();
18678 int
18679 main ()
18680 {
18681 return png_read_image ();
18682   ;
18683   return 0;
18684 }
18685 _ACEOF
18686 if ac_fn_cxx_try_link "$LINENO"; then :
18687   ac_cv_lib_png12_png_read_image=yes
18688 else
18689   ac_cv_lib_png12_png_read_image=no
18690 fi
18691 rm -f core conftest.err conftest.$ac_objext \
18692     conftest$ac_exeext conftest.$ac_ext
18693 LIBS=$ac_check_lib_save_LIBS
18694 fi
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_read_image" >&5
18696 $as_echo "$ac_cv_lib_png12_png_read_image" >&6; }
18697 if test "x$ac_cv_lib_png12_png_read_image" = x""yes; then :
18698
18699                    have_png=yes
18700
18701 $as_echo "#define HAVE_PNG /**/" >>confdefs.h
18702
18703                    IMAGELIBS="-lpng12 $IMAGELIBS"
18704                    LIBS="-lpng12 $LIBS"
18705                    for ac_func in png_get_valid png_set_tRNS_to_alpha
18706 do :
18707   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18708 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
18709 eval as_val=\$$as_ac_var
18710    if test "x$as_val" = x""yes; then :
18711   cat >>confdefs.h <<_ACEOF
18712 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18713 _ACEOF
18714
18715 fi
18716 done
18717
18718
18719 else
18720    have_png=no
18721 fi
18722
18723   fi
18724
18725   ac_fn_cxx_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
18726 if test "x$ac_cv_header_tiff_h" = x""yes; then :
18727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
18728 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
18729 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
18730   $as_echo_n "(cached) " >&6
18731 else
18732   ac_check_lib_save_LIBS=$LIBS
18733 LIBS="-ltiff  $LIBS"
18734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18735 /* end confdefs.h.  */
18736
18737 /* Override any GCC internal prototype to avoid an error.
18738    Use char because int might match the return type of a GCC
18739    builtin and then its argument prototype would still apply.  */
18740 #ifdef __cplusplus
18741 extern "C"
18742 #endif
18743 char TIFFReadRGBAStrip ();
18744 int
18745 main ()
18746 {
18747 return TIFFReadRGBAStrip ();
18748   ;
18749   return 0;
18750 }
18751 _ACEOF
18752 if ac_fn_cxx_try_link "$LINENO"; then :
18753   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
18754 else
18755   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
18756 fi
18757 rm -f core conftest.err conftest.$ac_objext \
18758     conftest$ac_exeext conftest.$ac_ext
18759 LIBS=$ac_check_lib_save_LIBS
18760 fi
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
18762 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
18763 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
18764
18765                                  have_tiff=yes
18766
18767 $as_echo "#define HAVE_TIFF /**/" >>confdefs.h
18768
18769                                  IMAGELIBS="$IMAGELIBS -ltiff"
18770                                  LIBS="$LIBS -ltiff"
18771
18772 fi
18773
18774 fi
18775
18776
18777 fi
18778
18779 have_jasper=no
18780 ac_fn_cxx_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
18781 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
18782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_image_readcmpt in -ljasper" >&5
18783 $as_echo_n "checking for jas_image_readcmpt in -ljasper... " >&6; }
18784 if test "${ac_cv_lib_jasper_jas_image_readcmpt+set}" = set; then :
18785   $as_echo_n "(cached) " >&6
18786 else
18787   ac_check_lib_save_LIBS=$LIBS
18788 LIBS="-ljasper  $LIBS"
18789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18790 /* end confdefs.h.  */
18791
18792 /* Override any GCC internal prototype to avoid an error.
18793    Use char because int might match the return type of a GCC
18794    builtin and then its argument prototype would still apply.  */
18795 #ifdef __cplusplus
18796 extern "C"
18797 #endif
18798 char jas_image_readcmpt ();
18799 int
18800 main ()
18801 {
18802 return jas_image_readcmpt ();
18803   ;
18804   return 0;
18805 }
18806 _ACEOF
18807 if ac_fn_cxx_try_link "$LINENO"; then :
18808   ac_cv_lib_jasper_jas_image_readcmpt=yes
18809 else
18810   ac_cv_lib_jasper_jas_image_readcmpt=no
18811 fi
18812 rm -f core conftest.err conftest.$ac_objext \
18813     conftest$ac_exeext conftest.$ac_ext
18814 LIBS=$ac_check_lib_save_LIBS
18815 fi
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_image_readcmpt" >&5
18817 $as_echo "$ac_cv_lib_jasper_jas_image_readcmpt" >&6; }
18818 if test "x$ac_cv_lib_jasper_jas_image_readcmpt" = x""yes; then :
18819
18820                                have_jasper=yes
18821
18822 $as_echo "#define HAVE_JASPER /**/" >>confdefs.h
18823
18824                                IMAGELIBS="$IMAGELIBS -ljasper"
18825                                LIBS="$LIBS -ljasper"
18826
18827 fi
18828
18829 fi
18830
18831
18832
18833 have_ilmimf=no
18834 ac_fn_cxx_check_header_mongrel "$LINENO" "ImfCRgbaFile.h" "ac_cv_header_ImfCRgbaFile_h" "$ac_includes_default"
18835 if test "x$ac_cv_header_ImfCRgbaFile_h" = x""yes; then :
18836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImfInputReadPixels in -lIlmImf" >&5
18837 $as_echo_n "checking for ImfInputReadPixels in -lIlmImf... " >&6; }
18838 if test "${ac_cv_lib_IlmImf_ImfInputReadPixels+set}" = set; then :
18839   $as_echo_n "(cached) " >&6
18840 else
18841   ac_check_lib_save_LIBS=$LIBS
18842 LIBS="-lIlmImf  -lIex -lHalf  $LIBS"
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h.  */
18845
18846 /* Override any GCC internal prototype to avoid an error.
18847    Use char because int might match the return type of a GCC
18848    builtin and then its argument prototype would still apply.  */
18849 #ifdef __cplusplus
18850 extern "C"
18851 #endif
18852 char ImfInputReadPixels ();
18853 int
18854 main ()
18855 {
18856 return ImfInputReadPixels ();
18857   ;
18858   return 0;
18859 }
18860 _ACEOF
18861 if ac_fn_cxx_try_link "$LINENO"; then :
18862   ac_cv_lib_IlmImf_ImfInputReadPixels=yes
18863 else
18864   ac_cv_lib_IlmImf_ImfInputReadPixels=no
18865 fi
18866 rm -f core conftest.err conftest.$ac_objext \
18867     conftest$ac_exeext conftest.$ac_ext
18868 LIBS=$ac_check_lib_save_LIBS
18869 fi
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_IlmImf_ImfInputReadPixels" >&5
18871 $as_echo "$ac_cv_lib_IlmImf_ImfInputReadPixels" >&6; }
18872 if test "x$ac_cv_lib_IlmImf_ImfInputReadPixels" = x""yes; then :
18873
18874                                have_ilmimf=yes
18875
18876 $as_echo "#define HAVE_ILMIMF /**/" >>confdefs.h
18877
18878                                IMAGELIBS="$IMAGELIBS -lIlmImf -lIex -lHalf"
18879                                LIBS="$LIBS -lIlmImf -lIex -lHalf"
18880
18881 fi
18882
18883 fi
18884
18885
18886
18887 # Restore original LIBS settings...
18888 LIBS="$SAVELIBS"
18889
18890
18891
18892 ######################################################################
18893 # SWIG wrappers
18894
18895 # each language should have --with-LANGUAGE switch
18896
18897 # check for python
18898 if test x"$with_python" = "xyes"; then
18899     { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for necessary tools to build python wrappers" >&5
18900 $as_echo "$as_me: Checking for necessary tools to build python wrappers" >&6;}
18901
18902     # we need Python now
18903
18904
18905
18906
18907         # Find any Python interpreter.
18908     if test -z "$PYTHON"; then
18909       for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
18910 do
18911   # Extract the first word of "$ac_prog", so it can be a program name with args.
18912 set dummy $ac_prog; ac_word=$2
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18914 $as_echo_n "checking for $ac_word... " >&6; }
18915 if test "${ac_cv_path_PYTHON+set}" = set; then :
18916   $as_echo_n "(cached) " >&6
18917 else
18918   case $PYTHON in
18919   [\\/]* | ?:[\\/]*)
18920   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18921   ;;
18922   *)
18923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924 for as_dir in $PATH
18925 do
18926   IFS=$as_save_IFS
18927   test -z "$as_dir" && as_dir=.
18928     for ac_exec_ext in '' $ac_executable_extensions; do
18929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18930     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18932     break 2
18933   fi
18934 done
18935   done
18936 IFS=$as_save_IFS
18937
18938   ;;
18939 esac
18940 fi
18941 PYTHON=$ac_cv_path_PYTHON
18942 if test -n "$PYTHON"; then
18943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
18944 $as_echo "$PYTHON" >&6; }
18945 else
18946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18947 $as_echo "no" >&6; }
18948 fi
18949
18950
18951   test -n "$PYTHON" && break
18952 done
18953 test -n "$PYTHON" || PYTHON=":"
18954
18955     fi
18956     am_display_PYTHON=python
18957
18958
18959   if test "$PYTHON" = :; then
18960       as_fn_error "no suitable Python interpreter found" "$LINENO" 5
18961   else
18962
18963
18964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
18965 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
18966 if test "${am_cv_python_version+set}" = set; then :
18967   $as_echo_n "(cached) " >&6
18968 else
18969   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
18970 fi
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
18972 $as_echo "$am_cv_python_version" >&6; }
18973   PYTHON_VERSION=$am_cv_python_version
18974
18975
18976
18977   PYTHON_PREFIX='${prefix}'
18978
18979   PYTHON_EXEC_PREFIX='${exec_prefix}'
18980
18981
18982
18983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
18984 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
18985 if test "${am_cv_python_platform+set}" = set; then :
18986   $as_echo_n "(cached) " >&6
18987 else
18988   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
18989 fi
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
18991 $as_echo "$am_cv_python_platform" >&6; }
18992   PYTHON_PLATFORM=$am_cv_python_platform
18993
18994
18995
18996
18997                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
18998 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
18999 if test "${am_cv_python_pythondir+set}" = set; then :
19000   $as_echo_n "(cached) " >&6
19001 else
19002   if test "x$prefix" = xNONE
19003      then
19004        am_py_prefix=$ac_default_prefix
19005      else
19006        am_py_prefix=$prefix
19007      fi
19008      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
19009      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
19010      case $am_cv_python_pythondir in
19011      $am_py_prefix*)
19012        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19013        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19014        ;;
19015      esac
19016
19017 fi
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19019 $as_echo "$am_cv_python_pythondir" >&6; }
19020   pythondir=$am_cv_python_pythondir
19021
19022
19023
19024   pkgpythondir=\${pythondir}/$PACKAGE
19025
19026
19027             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19028 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19029 if test "${am_cv_python_pyexecdir+set}" = set; then :
19030   $as_echo_n "(cached) " >&6
19031 else
19032   if test "x$exec_prefix" = xNONE
19033      then
19034        am_py_exec_prefix=$am_py_prefix
19035      else
19036        am_py_exec_prefix=$exec_prefix
19037      fi
19038      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
19039      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
19040      case $am_cv_python_pyexecdir in
19041      $am_py_exec_prefix*)
19042        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19043        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19044        ;;
19045      esac
19046
19047 fi
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19049 $as_echo "$am_cv_python_pyexecdir" >&6; }
19050   pyexecdir=$am_cv_python_pyexecdir
19051
19052
19053
19054   pkgpyexecdir=\${pyexecdir}/$PACKAGE
19055
19056
19057
19058   fi
19059
19060
19061
19062     # get some info on how to compile and link python modules
19063
19064
19065     if test -n "$PYTHON"
19066     then
19067         az_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
19068         if test -z "$az_python_prefix"
19069         then
19070             as_fn_error "Python Prefix is not known" "$LINENO" 5
19071         fi
19072         az_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
19073         az_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
19074         az_python_includespec="-I${az_python_prefix}/include/python${az_python_version}"
19075         if test x"$python_prefix" != x"$python_execprefix"; then
19076             az_python_execspec="-I${az_python_execprefix}/include/python${az_python_version}"
19077             az_python_includespec="${az_python_includespec} $az_python_execspec"
19078         fi
19079         az_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"`
19080         az_python_cspec="${az_python_ccshared} ${az_python_includespec}"
19081         PYTHON_CSPEC=${az_python_cspec}
19082
19083         { $as_echo "$as_me:${as_lineno-$LINENO}: PYTHON_CSPEC=${az_python_cspec}" >&5
19084 $as_echo "$as_me: PYTHON_CSPEC=${az_python_cspec}" >&6;}
19085     fi
19086
19087
19088
19089     if test -n "$PYTHON"
19090     then
19091
19092
19093     if test -z "$PYTHON"
19094     then
19095         as_fn_error "Python Executable not found" "$LINENO" 5
19096     else
19097         cat >conftest.py <<_ACEOF
19098
19099 import sys
19100 import distutils.sysconfig
19101 strUseFrameWork = "--enable-framework"
19102 dictConfig = distutils.sysconfig.get_config_vars( )
19103 strConfigArgs = dictConfig.get("CONFIG_ARGS")
19104 strLinkSpec =  dictConfig.get('LDFLAGS')
19105 if -1 ==  strConfigArgs.find(strUseFrameWork):
19106     strLibPL = dictConfig.get("LIBPL")
19107     if strLibPL and (strLibPL != ""):
19108         strLinkSpec += " -L%s" % (strLibPL)
19109     strSys = dictConfig.get("SYSLIBS")
19110     if strSys and (strSys != ""):
19111         strLinkSpec += " %s" % (strSys)
19112     strSHL = dictConfig.get("SHLIBS")
19113     if strSHL and (strSHL != ""):
19114         strLinkSpec += " %s" % (strSHL)
19115     # Construct the Python Library Name.
19116     strTmplte = " -lpython%d.%d"
19117     if (sys.platform == "win32") or (sys.platform == "os2emx"):
19118         strTmplte = " -lpython%d%d"
19119     strWrk = strTmplte % ( (sys.hexversion >> 24),
19120                             ((sys.hexversion >> 16) & 0xff))
19121     strLinkSpec += strWrk
19122 else:
19123     # This is not ideal since it changes the search path
19124     # for Frameworks which could have side-effects on
19125     # other included Frameworks.  However, it is necessary
19126     # where someone has installed more than one frameworked
19127     # Python.  Frameworks are really only used in MacOSX.
19128     strLibFW = dictConfig.get("PYTHONFRAMEWORKPREFIX")
19129     if strLibFW and (strLibFW != ""):
19130         strLinkSpec += " -F%s" % (strLibFW)
19131     strLibPL = dictConfig.get("LIBPL")
19132     if strLibPL and (strLibPL != ""):
19133         strLinkSpec += " -L%s" % (strLibPL)
19134     # Construct the Python Library Name.
19135     strTmplte = " -lpython%d.%d"
19136     if (sys.platform == "win32") or (sys.platform == "os2emx"):
19137         strTmplte = " -lpython%d%d"
19138     strWrk = strTmplte % ( (sys.hexversion >> 24),
19139                             ((sys.hexversion >> 16) & 0xff))
19140     strLinkSpec += strWrk
19141 strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED'))
19142 print strLinkSpec
19143
19144 _ACEOF
19145         az_python_output=`$PYTHON conftest.py`
19146         az_python_cc=$?
19147         rm conftest.py
19148         if test -f "conftest.pyc"
19149         then
19150             rm conftest.pyc
19151         fi
19152     fi
19153
19154         PYTHON_LSPEC=${az_python_output}
19155
19156         { $as_echo "$as_me:${as_lineno-$LINENO}: PYTHON_LSPEC=${az_python_output}" >&5
19157 $as_echo "$as_me: PYTHON_LSPEC=${az_python_output}" >&6;}
19158     fi
19159
19160
19161     # if not explicitly forbidden, check for swig also
19162     if test x"$with_swig" = "xauto"; then
19163         with_swig=yes
19164     fi
19165
19166     ### almost ok... just need to check if we have the Python headers ###
19167
19168     # first, save the CPPFLAGS
19169     OLD_CPPFLAGS=$CPPFLAGS
19170
19171     # then add the PYTHON path founded previously
19172     CPPFLAGS="$CPPFLAGS $PYTHON_CSPEC"
19173
19174     # now, we can check
19175     ac_fn_cxx_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
19176 if test "x$ac_cv_header_Python_h" = x""yes; then :
19177   have_python=yes
19178 else
19179
19180           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python headers not found, disabling python wrappers" >&5
19181 $as_echo "$as_me: WARNING: Python headers not found, disabling python wrappers" >&2;}
19182           have_python=no
19183
19184 fi
19185
19186
19187
19188     # restore the old CPPFLAGS
19189     CPPFLAGS=$OLD_CPPFLAGS
19190
19191 else
19192     # check if ./configure arguments are valid
19193     if test x"$with_python" = "xno"; then
19194         have_python=no
19195     else
19196         # if we get here then --with-python was not called with 'yes','no' or 'auto'
19197         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&5
19198 $as_echo "$as_me: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&2;}
19199         have_python=no
19200     fi
19201 fi
19202  if test x"$have_python" = "xyes"; then
19203   BUILD_PYTHON_WRAPPERS_TRUE=
19204   BUILD_PYTHON_WRAPPERS_FALSE='#'
19205 else
19206   BUILD_PYTHON_WRAPPERS_TRUE='#'
19207   BUILD_PYTHON_WRAPPERS_FALSE=
19208 fi
19209
19210
19211 # check for octave
19212 if test x"$with_octave" = "xyes"; then
19213     { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for necessary tools to build octave wrappers" >&5
19214 $as_echo "$as_me: Checking for necessary tools to build octave wrappers" >&6;}
19215
19216     # find octave and mkoctfile
19217     # Extract the first word of "octave", so it can be a program name with args.
19218 set dummy octave; ac_word=$2
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19220 $as_echo_n "checking for $ac_word... " >&6; }
19221 if test "${ac_cv_path_OCTAVE+set}" = set; then :
19222   $as_echo_n "(cached) " >&6
19223 else
19224   case $OCTAVE in
19225   [\\/]* | ?:[\\/]*)
19226   ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path.
19227   ;;
19228   *)
19229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19230 for as_dir in $PATH
19231 do
19232   IFS=$as_save_IFS
19233   test -z "$as_dir" && as_dir=.
19234     for ac_exec_ext in '' $ac_executable_extensions; do
19235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19236     ac_cv_path_OCTAVE="$as_dir/$ac_word$ac_exec_ext"
19237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19238     break 2
19239   fi
19240 done
19241   done
19242 IFS=$as_save_IFS
19243
19244   ;;
19245 esac
19246 fi
19247 OCTAVE=$ac_cv_path_OCTAVE
19248 if test -n "$OCTAVE"; then
19249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
19250 $as_echo "$OCTAVE" >&6; }
19251 else
19252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19253 $as_echo "no" >&6; }
19254 fi
19255
19256
19257     # Extract the first word of "mkoctfile", so it can be a program name with args.
19258 set dummy mkoctfile; ac_word=$2
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19260 $as_echo_n "checking for $ac_word... " >&6; }
19261 if test "${ac_cv_path_MKOCTFILE+set}" = set; then :
19262   $as_echo_n "(cached) " >&6
19263 else
19264   case $MKOCTFILE in
19265   [\\/]* | ?:[\\/]*)
19266   ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.
19267   ;;
19268   *)
19269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19270 for as_dir in $PATH
19271 do
19272   IFS=$as_save_IFS
19273   test -z "$as_dir" && as_dir=.
19274     for ac_exec_ext in '' $ac_executable_extensions; do
19275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19276     ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext"
19277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19278     break 2
19279   fi
19280 done
19281   done
19282 IFS=$as_save_IFS
19283
19284   ;;
19285 esac
19286 fi
19287 MKOCTFILE=$ac_cv_path_MKOCTFILE
19288 if test -n "$MKOCTFILE"; then
19289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5
19290 $as_echo "$MKOCTFILE" >&6; }
19291 else
19292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19293 $as_echo "no" >&6; }
19294 fi
19295
19296
19297
19298     if test -z "$OCTAVE"; then
19299        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: octave not found, disabling octave wrappers" >&5
19300 $as_echo "$as_me: WARNING: octave not found, disabling octave wrappers" >&2;}
19301        with_octave=no
19302     fi
19303     if test -z "$MKOCTFILE"; then
19304        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mkoctfile not found, disabling octave wrappers" >&5
19305 $as_echo "$as_me: WARNING: mkoctfile not found, disabling octave wrappers" >&2;}
19306        with_octave=no
19307     fi
19308     OCTAVE_INCFLAGS=`$MKOCTFILE -p INCFLAGS`
19309     OCTAVE_INCFLAGS=$OCTAVE_INCFLAGS
19310
19311 fi
19312 if test x"$with_octave" = "xyes"; then
19313     # check that octave version is at least 2.9.12
19314     cat > conftest.m <<'EOF'
19315 [a,b,c]=sscanf([version()," "],"%i.%i.%i","C");
19316 exit(sum([a,b,c].*[1e5,1e3,1])<209012)
19317 EOF
19318     $OCTAVE --no-init-file conftest.m >& /dev/null || with_octave="no";
19319     rm -f conftest.m
19320
19321     if test x"$with_octave" = "xno"; then
19322        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version < 2.9.12, disabling octave wrappers" >&5
19323 $as_echo "$as_me: WARNING: Octave version < 2.9.12, disabling octave wrappers" >&2;}
19324     fi
19325 fi
19326 if test x"$with_octave" = "xyes"; then
19327     # if not explicitly forbidden, check for swig also
19328     if test x"$with_swig" = "xauto"; then
19329         with_swig=yes
19330     fi
19331
19332     # check that we have octave headers
19333     OLD_CPPFLAGS=$CPPFLAGS
19334     CPPFLAGS="$CPPFLAGS -x c++ $OCTAVE_INCFLAGS"
19335     ac_fn_cxx_check_header_mongrel "$LINENO" "octave/oct.h" "ac_cv_header_octave_oct_h" "$ac_includes_default"
19336 if test "x$ac_cv_header_octave_oct_h" = x""yes; then :
19337   have_octave=yes
19338 else
19339
19340           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave headers not found, disabling octave wrappers" >&5
19341 $as_echo "$as_me: WARNING: Octave headers not found, disabling octave wrappers" >&2;}
19342           have_octave=no
19343
19344 fi
19345
19346
19347
19348     # restore the old CPPFLAGS
19349     CPPFLAGS=$OLD_CPPFLAGS
19350
19351     # find Octave arch
19352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Octave arch" >&5
19353 $as_echo_n "checking for Octave arch... " >&6; }
19354     OCTAVE_ARCH=`$OCTAVE -q --eval 'strcat(octave_config_info("canonical_host_type"), "-", octave_config_info("api_version"))'|sed -e 's/ans = //'`
19355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_ARCH" >&5
19356 $as_echo "$OCTAVE_ARCH" >&6; }
19357     OCTAVE_ARCH=$OCTAVE_ARCH
19358
19359
19360 else
19361     # check if ./configure arguments are valid
19362     if test x"$with_octave" = "xno"; then
19363         have_octave=no
19364     else
19365         # if we get here then --with-octave was not called with 'yes','no' or 'auto'
19366         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-octave, continuing assuming 'no'" >&5
19367 $as_echo "$as_me: WARNING: unexpected arguments for option --with-octave, continuing assuming 'no'" >&2;}
19368         have_octave=no
19369     fi
19370 fi
19371  if test x"$have_octave" = "xyes"; then
19372   BUILD_OCTAVE_WRAPPERS_TRUE=
19373   BUILD_OCTAVE_WRAPPERS_FALSE='#'
19374 else
19375   BUILD_OCTAVE_WRAPPERS_TRUE='#'
19376   BUILD_OCTAVE_WRAPPERS_FALSE=
19377 fi
19378
19379
19380 # check for swig itself
19381 SWIG=""
19382 if test x"$with_swig" = "xyes"; then
19383     { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for SWIG" >&5
19384 $as_echo "$as_me: Checking for SWIG" >&6;}
19385
19386         # Python 2.5 requires SWIG >= 1.3.30
19387         prog="import sys
19388 # split strings by '.' and convert to numeric.  Append some zeros
19389 # because we need at least 4 digits for the hex conversion.
19390 # map returns an iterator in Python 3.0 and a list in 2.x
19391 minver = list(map(int, 'have_python25=yes'.split('.'))) + [0, 0, 0]
19392 minverhex = 0
19393 # xrange is not present in Python 3.0 and range returns an iterator
19394 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19395 sys.exit(sys.hexversion < minverhex)"
19396   if { echo "$as_me:$LINENO: 2.5 -c "$prog"" >&5
19397    (2.5 -c "$prog") >&5 2>&5
19398    ac_status=$?
19399    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400    (exit $ac_status); }; then :
19401   have_python25=no
19402 fi
19403         if test x"$have_python25" = "xyes" ; then
19404
19405   #
19406   # define SWIG as precious variable
19407
19408   #
19409   # check where to find the swig executable
19410   # Extract the first word of "swig", so it can be a program name with args.
19411 set dummy swig; ac_word=$2
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19413 $as_echo_n "checking for $ac_word... " >&6; }
19414 if test "${ac_cv_path_SWIG+set}" = set; then :
19415   $as_echo_n "(cached) " >&6
19416 else
19417   case $SWIG in
19418   [\\/]* | ?:[\\/]*)
19419   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19420   ;;
19421   *)
19422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19423 for as_dir in $PATH
19424 do
19425   IFS=$as_save_IFS
19426   test -z "$as_dir" && as_dir=.
19427     for ac_exec_ext in '' $ac_executable_extensions; do
19428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19429     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19431     break 2
19432   fi
19433 done
19434   done
19435 IFS=$as_save_IFS
19436
19437   ;;
19438 esac
19439 fi
19440 SWIG=$ac_cv_path_SWIG
19441 if test -n "$SWIG"; then
19442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19443 $as_echo "$SWIG" >&6; }
19444 else
19445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19446 $as_echo "no" >&6; }
19447 fi
19448
19449
19450   if test -n "$SWIG"; then
19451     #
19452     # inquire version number
19453     if test -n "$SWIG"; then
19454       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
19455 $as_echo_n "checking for SWIG version... " >&6; }
19456             SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
19457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION" >&5
19458 $as_echo "$SWIG_VERSION" >&6; }
19459     else
19460       SWIG_VERSION=""
19461     fi
19462     #
19463     # if a user requested a given number, check for that now
19464     if test -n "1.3.30"; then
19465       if test -n "$SWIG_VERSION"; then
19466         #
19467         # compare version strings
19468
19469   # check if both parameters were given
19470   if test -n "$SWIG_VERSION"; then
19471     if test -n "1.3.30"; then
19472       :
19473     else
19474       as_fn_error "no required-version supplied" "$LINENO" 5
19475     fi
19476   else
19477     as_fn_error "no given-version supplied" "$LINENO" 5
19478   fi
19479   #
19480   # recombine version strings
19481   tmp_both=`echo "1.3.30
19482 $SWIG_VERSION" | sed 's/\.0*/./g'`
19483   tmp_sorted=`
19484     echo "$tmp_both" | {
19485       # Use POSIX sort first, falling back on traditional sort.
19486       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
19487       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
19488     }
19489   `
19490   #
19491   # set result value
19492   if test "x$tmp_both" = "x$tmp_sorted"; then
19493     ac_version_at_least=yes
19494   else
19495     ac_version_at_least=no
19496   fi
19497
19498         if test x"$ac_version_at_least" = "xyes"; then
19499           # everything is perfect
19500           :
19501         else
19502           # version requirement not fulfilled
19503           # we could stop with an error, but instead we just pretend
19504           # that there is no swig installed
19505           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
19506 $as_echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
19507           SWIG=""
19508         fi
19509       else
19510         # there was no version number available from swig
19511         # and because the user has given requirements, we take
19512         # this for a version mismatch
19513         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
19514 $as_echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
19515         SWIG=""
19516       fi
19517     else
19518       # there was no version number available from swig
19519       # but because no requirement was given, just warn and go on
19520       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19521 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19522     fi
19523   fi
19524   #
19525   # just in case someone wants to link swig libraries,
19526   # we try to determine their path
19527   if test -n "$SWIG" ; then
19528     SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
19529     { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
19530 $as_echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
19531   fi
19532   #
19533 # AC_SUBST([SWIG])  -- already done by AC_PATH_PROG([SWIG],[swig])
19534
19535
19536
19537         else
19538
19539   #
19540   # define SWIG as precious variable
19541
19542   #
19543   # check where to find the swig executable
19544   # Extract the first word of "swig", so it can be a program name with args.
19545 set dummy swig; ac_word=$2
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19547 $as_echo_n "checking for $ac_word... " >&6; }
19548 if test "${ac_cv_path_SWIG+set}" = set; then :
19549   $as_echo_n "(cached) " >&6
19550 else
19551   case $SWIG in
19552   [\\/]* | ?:[\\/]*)
19553   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19554   ;;
19555   *)
19556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19557 for as_dir in $PATH
19558 do
19559   IFS=$as_save_IFS
19560   test -z "$as_dir" && as_dir=.
19561     for ac_exec_ext in '' $ac_executable_extensions; do
19562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19563     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19565     break 2
19566   fi
19567 done
19568   done
19569 IFS=$as_save_IFS
19570
19571   ;;
19572 esac
19573 fi
19574 SWIG=$ac_cv_path_SWIG
19575 if test -n "$SWIG"; then
19576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19577 $as_echo "$SWIG" >&6; }
19578 else
19579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19580 $as_echo "no" >&6; }
19581 fi
19582
19583
19584   if test -n "$SWIG"; then
19585     #
19586     # inquire version number
19587     if test -n "$SWIG"; then
19588       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
19589 $as_echo_n "checking for SWIG version... " >&6; }
19590             SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
19591       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION" >&5
19592 $as_echo "$SWIG_VERSION" >&6; }
19593     else
19594       SWIG_VERSION=""
19595     fi
19596     #
19597     # if a user requested a given number, check for that now
19598     if test -n "1.2.24"; then
19599       if test -n "$SWIG_VERSION"; then
19600         #
19601         # compare version strings
19602
19603   # check if both parameters were given
19604   if test -n "$SWIG_VERSION"; then
19605     if test -n "1.2.24"; then
19606       :
19607     else
19608       as_fn_error "no required-version supplied" "$LINENO" 5
19609     fi
19610   else
19611     as_fn_error "no given-version supplied" "$LINENO" 5
19612   fi
19613   #
19614   # recombine version strings
19615   tmp_both=`echo "1.2.24
19616 $SWIG_VERSION" | sed 's/\.0*/./g'`
19617   tmp_sorted=`
19618     echo "$tmp_both" | {
19619       # Use POSIX sort first, falling back on traditional sort.
19620       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
19621       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
19622     }
19623   `
19624   #
19625   # set result value
19626   if test "x$tmp_both" = "x$tmp_sorted"; then
19627     ac_version_at_least=yes
19628   else
19629     ac_version_at_least=no
19630   fi
19631
19632         if test x"$ac_version_at_least" = "xyes"; then
19633           # everything is perfect
19634           :
19635         else
19636           # version requirement not fulfilled
19637           # we could stop with an error, but instead we just pretend
19638           # that there is no swig installed
19639           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
19640 $as_echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
19641           SWIG=""
19642         fi
19643       else
19644         # there was no version number available from swig
19645         # and because the user has given requirements, we take
19646         # this for a version mismatch
19647         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
19648 $as_echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
19649         SWIG=""
19650       fi
19651     else
19652       # there was no version number available from swig
19653       # but because no requirement was given, just warn and go on
19654       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19655 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19656     fi
19657   fi
19658   #
19659   # just in case someone wants to link swig libraries,
19660   # we try to determine their path
19661   if test -n "$SWIG" ; then
19662     SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
19663     { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
19664 $as_echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
19665   fi
19666   #
19667 # AC_SUBST([SWIG])  -- already done by AC_PATH_PROG([SWIG],[swig])
19668
19669
19670
19671         fi
19672
19673
19674     if test -n "$SWIG"; then
19675
19676
19677
19678   if test -z "$SWIG" ; then
19679     as_fn_error "swig not found" "$LINENO" 5
19680   fi
19681   SWIG="$SWIG -c++"
19682
19683
19684
19685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swig multi module support" >&5
19686 $as_echo_n "checking for swig multi module support... " >&6; }
19687   #
19688   if test -n "$SWIG_VERSION"; then
19689     #
19690
19691   # check if both parameters were given
19692   if test -n "$SWIG_VERSION"; then
19693     if test -n "1.3.24"; then
19694       :
19695     else
19696       as_fn_error "no required-version supplied" "$LINENO" 5
19697     fi
19698   else
19699     as_fn_error "no given-version supplied" "$LINENO" 5
19700   fi
19701   #
19702   # recombine version strings
19703   tmp_both=`echo "1.3.24
19704 $SWIG_VERSION" | sed 's/\.0*/./g'`
19705   tmp_sorted=`
19706     echo "$tmp_both" | {
19707       # Use POSIX sort first, falling back on traditional sort.
19708       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
19709       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
19710     }
19711   `
19712   #
19713   # set result value
19714   if test "x$tmp_both" = "x$tmp_sorted"; then
19715     ac_version_at_least=yes
19716   else
19717     ac_version_at_least=no
19718   fi
19719
19720     if test x"$ac_version_at_least" = "xyes"; then
19721       # perfect!
19722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: always working (SWIG >= 1.3.24)" >&5
19723 $as_echo "always working (SWIG >= 1.3.24)" >&6; }
19724     else
19725       #
19726       # there were some older versions that need special treatment
19727       # in form of additional command line flags and/or library
19728       # dependencies
19729
19730   # check if both parameters were given
19731   if test -n "$SWIG_VERSION"; then
19732     if test -n "1.3.20"; then
19733       :
19734     else
19735       as_fn_error "no required-version supplied" "$LINENO" 5
19736     fi
19737   else
19738     as_fn_error "no given-version supplied" "$LINENO" 5
19739   fi
19740   #
19741   # recombine version strings
19742   tmp_both=`echo "1.3.20
19743 $SWIG_VERSION" | sed 's/\.0*/./g'`
19744   tmp_sorted=`
19745     echo "$tmp_both" | {
19746       # Use POSIX sort first, falling back on traditional sort.
19747       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
19748       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
19749     }
19750   `
19751   #
19752   # set result value
19753   if test "x$tmp_both" = "x$tmp_sorted"; then
19754     ac_version_at_least=yes
19755   else
19756     ac_version_at_least=no
19757   fi
19758
19759       if test x"$ac_version_at_least" = "xyes"; then
19760         SWIG="$SWIG -noruntime"
19761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&5
19762 $as_echo "interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&6; }
19763       else
19764         SWIG="$SWIG -c"
19765         { $as_echo "$as_me:${as_lineno-$LINENO}: result: old syntax (SWIG < 1.3.20)" >&5
19766 $as_echo "old syntax (SWIG < 1.3.20)" >&6; }
19767       fi
19768     fi
19769   else
19770     as_fn_error "SWIG version number unknown - cannot set flags for multi module support" "$LINENO" 5
19771   fi
19772 # AC_SUBST([SWIG]) -- already done by AC_PATH_SWIG()
19773
19774
19775         # if octave wrappers are enabled, check that swig supports octave
19776         if test x"$with_octave" = "xyes"; then
19777            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SWIG supports Octave" >&5
19778 $as_echo_n "checking if SWIG supports Octave... " >&6; }
19779 cat > conftest.i <<EOF
19780 %module conftest
19781 EOF
19782            $SWIG -c++ -octave conftest.i || as_fn_error "SWIG doesn't support Octave modules" "$LINENO" 5
19783            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19784 $as_echo "yes" >&6; }
19785            rm -f conftest.*
19786
19787         # specify the flags for swig
19788         SWIG_OCTAVE_OPT="-octave"
19789
19790
19791         fi
19792
19793         # check for swig python library
19794
19795
19796
19797   #
19798   test "x" != "xno" || swig_shadow=" -noproxy"
19799   #
19800   if test -n "$SWIG_VERSION"; then
19801
19802   # check if both parameters were given
19803   if test -n "$SWIG_VERSION"; then
19804     if test -n "1.3.24"; then
19805       :
19806     else
19807       as_fn_error "no required-version supplied" "$LINENO" 5
19808     fi
19809   else
19810     as_fn_error "no given-version supplied" "$LINENO" 5
19811   fi
19812   #
19813   # recombine version strings
19814   tmp_both=`echo "1.3.24
19815 $SWIG_VERSION" | sed 's/\.0*/./g'`
19816   tmp_sorted=`
19817     echo "$tmp_both" | {
19818       # Use POSIX sort first, falling back on traditional sort.
19819       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
19820       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
19821     }
19822   `
19823   #
19824   # set result value
19825   if test "x$tmp_both" = "x$tmp_sorted"; then
19826     ac_version_at_least=yes
19827   else
19828     ac_version_at_least=no
19829   fi
19830
19831     if test x"$ac_version_at_least" = "xyes"; then
19832       SWIG_PYTHON_LIBS=""
19833     else
19834       SWIG_PYTHON_LIBS="-L$SWIG_RUNTIME_LIBS_DIR -lswigpy"
19835     fi
19836   else
19837     as_fn_error "SWIG version number unknown - cannot set python libs" "$LINENO" 5
19838   fi
19839   #
19840   SWIG_PYTHON_OPT="-python$swig_shadow"
19841
19842
19843
19844         have_swig=yes
19845     else
19846                 if test x"$have_python25" = "xyes"; then
19847                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&5
19848 $as_echo "$as_me: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&2;}
19849                 fi
19850                 have_swig=no
19851     fi
19852 else
19853     if test x"$with_swig" = "xno"; then
19854         have_swig=no
19855     else
19856         if test x"$with_swig" = "xauto"; then
19857             # no (python) wrapper will be generated
19858             # we don't need to check for SWIG
19859             have_swig=no
19860         else
19861             # if we get here then --with-swig was not called with 'yes','no' or 'auto'
19862             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&5
19863 $as_echo "$as_me: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&2;}
19864             have_swig=no
19865         fi
19866     fi
19867 fi
19868  if test x"$have_swig" = "xyes"; then
19869   UPDATE_SWIG_WRAPPERS_TRUE=
19870   UPDATE_SWIG_WRAPPERS_FALSE='#'
19871 else
19872   UPDATE_SWIG_WRAPPERS_TRUE='#'
19873   UPDATE_SWIG_WRAPPERS_FALSE=
19874 fi
19875
19876
19877
19878
19879 ac_config_files="$ac_config_files Makefile opencv.pc opencv.spec data/Makefile include/Makefile 3rdparty/Makefile src/Makefile apps/Makefile interfaces/Makefile interfaces/swig/Makefile interfaces/swig/filtered/Makefile interfaces/swig/general/Makefile interfaces/swig/python/Makefile interfaces/swig/octave/Makefile tests/Makefile utils/Makefile samples/Makefile"
19880
19881
19882 cat >confcache <<\_ACEOF
19883 # This file is a shell script that caches the results of configure
19884 # tests run on this system so they can be shared between configure
19885 # scripts and configure runs, see configure's option --config-cache.
19886 # It is not useful on other systems.  If it contains results you don't
19887 # want to keep, you may remove or edit it.
19888 #
19889 # config.status only pays attention to the cache file if you give it
19890 # the --recheck option to rerun configure.
19891 #
19892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19894 # following values.
19895
19896 _ACEOF
19897
19898 # The following way of writing the cache mishandles newlines in values,
19899 # but we know of no workaround that is simple, portable, and efficient.
19900 # So, we kill variables containing newlines.
19901 # Ultrix sh set writes to stderr and can't be redirected directly,
19902 # and sets the high bit in the cache file unless we assign to the vars.
19903 (
19904   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19905     eval ac_val=\$$ac_var
19906     case $ac_val in #(
19907     *${as_nl}*)
19908       case $ac_var in #(
19909       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19910 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19911       esac
19912       case $ac_var in #(
19913       _ | IFS | as_nl) ;; #(
19914       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19915       *) { eval $ac_var=; unset $ac_var;} ;;
19916       esac ;;
19917     esac
19918   done
19919
19920   (set) 2>&1 |
19921     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19922     *${as_nl}ac_space=\ *)
19923       # `set' does not quote correctly, so add quotes: double-quote
19924       # substitution turns \\\\ into \\, and sed turns \\ into \.
19925       sed -n \
19926         "s/'/'\\\\''/g;
19927           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19928       ;; #(
19929     *)
19930       # `set' quotes correctly as required by POSIX, so do not add quotes.
19931       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19932       ;;
19933     esac |
19934     sort
19935 ) |
19936   sed '
19937      /^ac_cv_env_/b end
19938      t clear
19939      :clear
19940      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19941      t end
19942      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19943      :end' >>confcache
19944 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19945   if test -w "$cache_file"; then
19946     test "x$cache_file" != "x/dev/null" &&
19947       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19948 $as_echo "$as_me: updating cache $cache_file" >&6;}
19949     cat confcache >$cache_file
19950   else
19951     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19952 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19953   fi
19954 fi
19955 rm -f confcache
19956
19957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19958 # Let make expand exec_prefix.
19959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19960
19961 DEFS=-DHAVE_CONFIG_H
19962
19963 ac_libobjs=
19964 ac_ltlibobjs=
19965 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19966   # 1. Remove the extension, and $U if already installed.
19967   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19968   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19969   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19970   #    will be set to the directory where LIBOBJS objects are built.
19971   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19972   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19973 done
19974 LIBOBJS=$ac_libobjs
19975
19976 LTLIBOBJS=$ac_ltlibobjs
19977
19978
19979  if test -n "$EXEEXT"; then
19980   am__EXEEXT_TRUE=
19981   am__EXEEXT_FALSE='#'
19982 else
19983   am__EXEEXT_TRUE='#'
19984   am__EXEEXT_FALSE=
19985 fi
19986
19987 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19988   as_fn_error "conditional \"AMDEP\" was never defined.
19989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19990 fi
19991 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19992   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19994 fi
19995 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19996   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19998 fi
19999 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20000   as_fn_error "conditional \"am__fastdepCC\" was never defined.
20001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20002 fi
20003 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20004   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20006 fi
20007 if test -z "${BUILD_APPS_TRUE}" && test -z "${BUILD_APPS_FALSE}"; then
20008   as_fn_error "conditional \"BUILD_APPS\" was never defined.
20009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20010 fi
20011
20012 if test -z "${NATIVE_LAPACK_TRUE}" && test -z "${NATIVE_LAPACK_FALSE}"; then
20013   as_fn_error "conditional \"NATIVE_LAPACK\" was never defined.
20014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20015 fi
20016 if test -z "${BUILD_CARBON_TRUE}" && test -z "${BUILD_CARBON_FALSE}"; then
20017   as_fn_error "conditional \"BUILD_CARBON\" was never defined.
20018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20019 fi
20020 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
20021   as_fn_error "conditional \"BUILD_GTK\" was never defined.
20022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20023 fi
20024 if test -z "${BUILD_QUICKTIME_TRUE}" && test -z "${BUILD_QUICKTIME_FALSE}"; then
20025   as_fn_error "conditional \"BUILD_QUICKTIME\" was never defined.
20026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20027 fi
20028 if test -z "${BUILD_GSTREAMER_TRUE}" && test -z "${BUILD_GSTREAMER_FALSE}"; then
20029   as_fn_error "conditional \"BUILD_GSTREAMER\" was never defined.
20030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20031 fi
20032 if test -z "${BUILD_UNICAP_TRUE}" && test -z "${BUILD_UNICAP_FALSE}"; then
20033   as_fn_error "conditional \"BUILD_UNICAP\" was never defined.
20034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20035 fi
20036 if test -z "${BUILD_XINE_TRUE}" && test -z "${BUILD_XINE_FALSE}"; then
20037   as_fn_error "conditional \"BUILD_XINE\" was never defined.
20038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20039 fi
20040 if test -z "${BUILD_FFMPEG_TRUE}" && test -z "${BUILD_FFMPEG_FALSE}"; then
20041   as_fn_error "conditional \"BUILD_FFMPEG\" was never defined.
20042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20043 fi
20044 if test -z "${BUILD_DC1394_TRUE}" && test -z "${BUILD_DC1394_FALSE}"; then
20045   as_fn_error "conditional \"BUILD_DC1394\" was never defined.
20046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20047 fi
20048 if test -z "${BUILD_DC1394_2_TRUE}" && test -z "${BUILD_DC1394_2_FALSE}"; then
20049   as_fn_error "conditional \"BUILD_DC1394_2\" was never defined.
20050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20051 fi
20052 if test -z "${BUILD_V4L_TRUE}" && test -z "${BUILD_V4L_FALSE}"; then
20053   as_fn_error "conditional \"BUILD_V4L\" was never defined.
20054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20055 fi
20056 if test -z "${BUILD_IMAGEIO_TRUE}" && test -z "${BUILD_IMAGEIO_FALSE}"; then
20057   as_fn_error "conditional \"BUILD_IMAGEIO\" was never defined.
20058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20059 fi
20060 if test -z "${BUILD_PYTHON_WRAPPERS_TRUE}" && test -z "${BUILD_PYTHON_WRAPPERS_FALSE}"; then
20061   as_fn_error "conditional \"BUILD_PYTHON_WRAPPERS\" was never defined.
20062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20063 fi
20064 if test -z "${BUILD_OCTAVE_WRAPPERS_TRUE}" && test -z "${BUILD_OCTAVE_WRAPPERS_FALSE}"; then
20065   as_fn_error "conditional \"BUILD_OCTAVE_WRAPPERS\" was never defined.
20066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20067 fi
20068 if test -z "${UPDATE_SWIG_WRAPPERS_TRUE}" && test -z "${UPDATE_SWIG_WRAPPERS_FALSE}"; then
20069   as_fn_error "conditional \"UPDATE_SWIG_WRAPPERS\" was never defined.
20070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20071 fi
20072
20073 : ${CONFIG_STATUS=./config.status}
20074 ac_write_fail=0
20075 ac_clean_files_save=$ac_clean_files
20076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20078 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20079 as_write_fail=0
20080 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20081 #! $SHELL
20082 # Generated by $as_me.
20083 # Run this file to recreate the current configuration.
20084 # Compiler output produced by configure, useful for debugging
20085 # configure, is in config.log if it exists.
20086
20087 debug=false
20088 ac_cs_recheck=false
20089 ac_cs_silent=false
20090
20091 SHELL=\${CONFIG_SHELL-$SHELL}
20092 export SHELL
20093 _ASEOF
20094 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20095 ## -------------------- ##
20096 ## M4sh Initialization. ##
20097 ## -------------------- ##
20098
20099 # Be more Bourne compatible
20100 DUALCASE=1; export DUALCASE # for MKS sh
20101 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20102   emulate sh
20103   NULLCMD=:
20104   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20105   # is contrary to our usage.  Disable this feature.
20106   alias -g '${1+"$@"}'='"$@"'
20107   setopt NO_GLOB_SUBST
20108 else
20109   case `(set -o) 2>/dev/null` in #(
20110   *posix*) :
20111     set -o posix ;; #(
20112   *) :
20113      ;;
20114 esac
20115 fi
20116
20117
20118 as_nl='
20119 '
20120 export as_nl
20121 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20122 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20125 # Prefer a ksh shell builtin over an external printf program on Solaris,
20126 # but without wasting forks for bash or zsh.
20127 if test -z "$BASH_VERSION$ZSH_VERSION" \
20128     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20129   as_echo='print -r --'
20130   as_echo_n='print -rn --'
20131 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20132   as_echo='printf %s\n'
20133   as_echo_n='printf %s'
20134 else
20135   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20136     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20137     as_echo_n='/usr/ucb/echo -n'
20138   else
20139     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20140     as_echo_n_body='eval
20141       arg=$1;
20142       case $arg in #(
20143       *"$as_nl"*)
20144         expr "X$arg" : "X\\(.*\\)$as_nl";
20145         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20146       esac;
20147       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20148     '
20149     export as_echo_n_body
20150     as_echo_n='sh -c $as_echo_n_body as_echo'
20151   fi
20152   export as_echo_body
20153   as_echo='sh -c $as_echo_body as_echo'
20154 fi
20155
20156 # The user is always right.
20157 if test "${PATH_SEPARATOR+set}" != set; then
20158   PATH_SEPARATOR=:
20159   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20160     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20161       PATH_SEPARATOR=';'
20162   }
20163 fi
20164
20165
20166 # IFS
20167 # We need space, tab and new line, in precisely that order.  Quoting is
20168 # there to prevent editors from complaining about space-tab.
20169 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20170 # splitting by setting IFS to empty value.)
20171 IFS=" ""        $as_nl"
20172
20173 # Find who we are.  Look in the path if we contain no directory separator.
20174 case $0 in #((
20175   *[\\/]* ) as_myself=$0 ;;
20176   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 for as_dir in $PATH
20178 do
20179   IFS=$as_save_IFS
20180   test -z "$as_dir" && as_dir=.
20181     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20182   done
20183 IFS=$as_save_IFS
20184
20185      ;;
20186 esac
20187 # We did not find ourselves, most probably we were run as `sh COMMAND'
20188 # in which case we are not to be found in the path.
20189 if test "x$as_myself" = x; then
20190   as_myself=$0
20191 fi
20192 if test ! -f "$as_myself"; then
20193   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20194   exit 1
20195 fi
20196
20197 # Unset variables that we do not need and which cause bugs (e.g. in
20198 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20199 # suppresses any "Segmentation fault" message there.  '((' could
20200 # trigger a bug in pdksh 5.2.14.
20201 for as_var in BASH_ENV ENV MAIL MAILPATH
20202 do eval test x\${$as_var+set} = xset \
20203   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20204 done
20205 PS1='$ '
20206 PS2='> '
20207 PS4='+ '
20208
20209 # NLS nuisances.
20210 LC_ALL=C
20211 export LC_ALL
20212 LANGUAGE=C
20213 export LANGUAGE
20214
20215 # CDPATH.
20216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20217
20218
20219 # as_fn_error ERROR [LINENO LOG_FD]
20220 # ---------------------------------
20221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20223 # script with status $?, using 1 if that was 0.
20224 as_fn_error ()
20225 {
20226   as_status=$?; test $as_status -eq 0 && as_status=1
20227   if test "$3"; then
20228     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20229     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20230   fi
20231   $as_echo "$as_me: error: $1" >&2
20232   as_fn_exit $as_status
20233 } # as_fn_error
20234
20235
20236 # as_fn_set_status STATUS
20237 # -----------------------
20238 # Set $? to STATUS, without forking.
20239 as_fn_set_status ()
20240 {
20241   return $1
20242 } # as_fn_set_status
20243
20244 # as_fn_exit STATUS
20245 # -----------------
20246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20247 as_fn_exit ()
20248 {
20249   set +e
20250   as_fn_set_status $1
20251   exit $1
20252 } # as_fn_exit
20253
20254 # as_fn_unset VAR
20255 # ---------------
20256 # Portably unset VAR.
20257 as_fn_unset ()
20258 {
20259   { eval $1=; unset $1;}
20260 }
20261 as_unset=as_fn_unset
20262 # as_fn_append VAR VALUE
20263 # ----------------------
20264 # Append the text in VALUE to the end of the definition contained in VAR. Take
20265 # advantage of any shell optimizations that allow amortized linear growth over
20266 # repeated appends, instead of the typical quadratic growth present in naive
20267 # implementations.
20268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20269   eval 'as_fn_append ()
20270   {
20271     eval $1+=\$2
20272   }'
20273 else
20274   as_fn_append ()
20275   {
20276     eval $1=\$$1\$2
20277   }
20278 fi # as_fn_append
20279
20280 # as_fn_arith ARG...
20281 # ------------------
20282 # Perform arithmetic evaluation on the ARGs, and store the result in the
20283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20284 # must be portable across $(()) and expr.
20285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20286   eval 'as_fn_arith ()
20287   {
20288     as_val=$(( $* ))
20289   }'
20290 else
20291   as_fn_arith ()
20292   {
20293     as_val=`expr "$@" || test $? -eq 1`
20294   }
20295 fi # as_fn_arith
20296
20297
20298 if expr a : '\(a\)' >/dev/null 2>&1 &&
20299    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20300   as_expr=expr
20301 else
20302   as_expr=false
20303 fi
20304
20305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20306   as_basename=basename
20307 else
20308   as_basename=false
20309 fi
20310
20311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20312   as_dirname=dirname
20313 else
20314   as_dirname=false
20315 fi
20316
20317 as_me=`$as_basename -- "$0" ||
20318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20319          X"$0" : 'X\(//\)$' \| \
20320          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20321 $as_echo X/"$0" |
20322     sed '/^.*\/\([^/][^/]*\)\/*$/{
20323             s//\1/
20324             q
20325           }
20326           /^X\/\(\/\/\)$/{
20327             s//\1/
20328             q
20329           }
20330           /^X\/\(\/\).*/{
20331             s//\1/
20332             q
20333           }
20334           s/.*/./; q'`
20335
20336 # Avoid depending upon Character Ranges.
20337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20340 as_cr_digits='0123456789'
20341 as_cr_alnum=$as_cr_Letters$as_cr_digits
20342
20343 ECHO_C= ECHO_N= ECHO_T=
20344 case `echo -n x` in #(((((
20345 -n*)
20346   case `echo 'xy\c'` in
20347   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20348   xy)  ECHO_C='\c';;
20349   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20350        ECHO_T=' ';;
20351   esac;;
20352 *)
20353   ECHO_N='-n';;
20354 esac
20355
20356 rm -f conf$$ conf$$.exe conf$$.file
20357 if test -d conf$$.dir; then
20358   rm -f conf$$.dir/conf$$.file
20359 else
20360   rm -f conf$$.dir
20361   mkdir conf$$.dir 2>/dev/null
20362 fi
20363 if (echo >conf$$.file) 2>/dev/null; then
20364   if ln -s conf$$.file conf$$ 2>/dev/null; then
20365     as_ln_s='ln -s'
20366     # ... but there are two gotchas:
20367     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20368     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20369     # In both cases, we have to default to `cp -p'.
20370     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20371       as_ln_s='cp -p'
20372   elif ln conf$$.file conf$$ 2>/dev/null; then
20373     as_ln_s=ln
20374   else
20375     as_ln_s='cp -p'
20376   fi
20377 else
20378   as_ln_s='cp -p'
20379 fi
20380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20381 rmdir conf$$.dir 2>/dev/null
20382
20383
20384 # as_fn_mkdir_p
20385 # -------------
20386 # Create "$as_dir" as a directory, including parents if necessary.
20387 as_fn_mkdir_p ()
20388 {
20389
20390   case $as_dir in #(
20391   -*) as_dir=./$as_dir;;
20392   esac
20393   test -d "$as_dir" || eval $as_mkdir_p || {
20394     as_dirs=
20395     while :; do
20396       case $as_dir in #(
20397       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20398       *) as_qdir=$as_dir;;
20399       esac
20400       as_dirs="'$as_qdir' $as_dirs"
20401       as_dir=`$as_dirname -- "$as_dir" ||
20402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20403          X"$as_dir" : 'X\(//\)[^/]' \| \
20404          X"$as_dir" : 'X\(//\)$' \| \
20405          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20406 $as_echo X"$as_dir" |
20407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20408             s//\1/
20409             q
20410           }
20411           /^X\(\/\/\)[^/].*/{
20412             s//\1/
20413             q
20414           }
20415           /^X\(\/\/\)$/{
20416             s//\1/
20417             q
20418           }
20419           /^X\(\/\).*/{
20420             s//\1/
20421             q
20422           }
20423           s/.*/./; q'`
20424       test -d "$as_dir" && break
20425     done
20426     test -z "$as_dirs" || eval "mkdir $as_dirs"
20427   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20428
20429
20430 } # as_fn_mkdir_p
20431 if mkdir -p . 2>/dev/null; then
20432   as_mkdir_p='mkdir -p "$as_dir"'
20433 else
20434   test -d ./-p && rmdir ./-p
20435   as_mkdir_p=false
20436 fi
20437
20438 if test -x / >/dev/null 2>&1; then
20439   as_test_x='test -x'
20440 else
20441   if ls -dL / >/dev/null 2>&1; then
20442     as_ls_L_option=L
20443   else
20444     as_ls_L_option=
20445   fi
20446   as_test_x='
20447     eval sh -c '\''
20448       if test -d "$1"; then
20449         test -d "$1/.";
20450       else
20451         case $1 in #(
20452         -*)set "./$1";;
20453         esac;
20454         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20455         ???[sx]*):;;*)false;;esac;fi
20456     '\'' sh
20457   '
20458 fi
20459 as_executable_p=$as_test_x
20460
20461 # Sed expression to map a string onto a valid CPP name.
20462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20463
20464 # Sed expression to map a string onto a valid variable name.
20465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20466
20467
20468 exec 6>&1
20469 ## ----------------------------------- ##
20470 ## Main body of $CONFIG_STATUS script. ##
20471 ## ----------------------------------- ##
20472 _ASEOF
20473 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20474
20475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20476 # Save the log message, to keep $0 and so on meaningful, and to
20477 # report actual input values of CONFIG_FILES etc. instead of their
20478 # values after options handling.
20479 ac_log="
20480 This file was extended by opencv $as_me 2.0.0, which was
20481 generated by GNU Autoconf 2.64.  Invocation command line was
20482
20483   CONFIG_FILES    = $CONFIG_FILES
20484   CONFIG_HEADERS  = $CONFIG_HEADERS
20485   CONFIG_LINKS    = $CONFIG_LINKS
20486   CONFIG_COMMANDS = $CONFIG_COMMANDS
20487   $ $0 $@
20488
20489 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20490 "
20491
20492 _ACEOF
20493
20494 case $ac_config_files in *"
20495 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20496 esac
20497
20498 case $ac_config_headers in *"
20499 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20500 esac
20501
20502
20503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20504 # Files that config.status was made for.
20505 config_files="$ac_config_files"
20506 config_headers="$ac_config_headers"
20507 config_commands="$ac_config_commands"
20508
20509 _ACEOF
20510
20511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20512 ac_cs_usage="\
20513 \`$as_me' instantiates files and other configuration actions
20514 from templates according to the current configuration.  Unless the files
20515 and actions are specified as TAGs, all are instantiated by default.
20516
20517 Usage: $0 [OPTION]... [TAG]...
20518
20519   -h, --help       print this help, then exit
20520   -V, --version    print version number and configuration settings, then exit
20521   -q, --quiet, --silent
20522                    do not print progress messages
20523   -d, --debug      don't remove temporary files
20524       --recheck    update $as_me by reconfiguring in the same conditions
20525       --file=FILE[:TEMPLATE]
20526                    instantiate the configuration file FILE
20527       --header=FILE[:TEMPLATE]
20528                    instantiate the configuration header FILE
20529
20530 Configuration files:
20531 $config_files
20532
20533 Configuration headers:
20534 $config_headers
20535
20536 Configuration commands:
20537 $config_commands
20538
20539 Report bugs to <opencvlibrary-devel@lists.sourceforge.net>."
20540
20541 _ACEOF
20542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20543 ac_cs_version="\\
20544 opencv config.status 2.0.0
20545 configured by $0, generated by GNU Autoconf 2.64,
20546   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20547
20548 Copyright (C) 2009 Free Software Foundation, Inc.
20549 This config.status script is free software; the Free Software Foundation
20550 gives unlimited permission to copy, distribute and modify it."
20551
20552 ac_pwd='$ac_pwd'
20553 srcdir='$srcdir'
20554 INSTALL='$INSTALL'
20555 MKDIR_P='$MKDIR_P'
20556 AWK='$AWK'
20557 test -n "\$AWK" || AWK=awk
20558 _ACEOF
20559
20560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20561 # The default lists apply if the user does not specify any file.
20562 ac_need_defaults=:
20563 while test $# != 0
20564 do
20565   case $1 in
20566   --*=*)
20567     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20568     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20569     ac_shift=:
20570     ;;
20571   *)
20572     ac_option=$1
20573     ac_optarg=$2
20574     ac_shift=shift
20575     ;;
20576   esac
20577
20578   case $ac_option in
20579   # Handling of the options.
20580   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20581     ac_cs_recheck=: ;;
20582   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20583     $as_echo "$ac_cs_version"; exit ;;
20584   --debug | --debu | --deb | --de | --d | -d )
20585     debug=: ;;
20586   --file | --fil | --fi | --f )
20587     $ac_shift
20588     case $ac_optarg in
20589     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20590     esac
20591     as_fn_append CONFIG_FILES " '$ac_optarg'"
20592     ac_need_defaults=false;;
20593   --header | --heade | --head | --hea )
20594     $ac_shift
20595     case $ac_optarg in
20596     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20597     esac
20598     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20599     ac_need_defaults=false;;
20600   --he | --h)
20601     # Conflict between --help and --header
20602     as_fn_error "ambiguous option: \`$1'
20603 Try \`$0 --help' for more information.";;
20604   --help | --hel | -h )
20605     $as_echo "$ac_cs_usage"; exit ;;
20606   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20607   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20608     ac_cs_silent=: ;;
20609
20610   # This is an error.
20611   -*) as_fn_error "unrecognized option: \`$1'
20612 Try \`$0 --help' for more information." ;;
20613
20614   *) as_fn_append ac_config_targets " $1"
20615      ac_need_defaults=false ;;
20616
20617   esac
20618   shift
20619 done
20620
20621 ac_configure_extra_args=
20622
20623 if $ac_cs_silent; then
20624   exec 6>/dev/null
20625   ac_configure_extra_args="$ac_configure_extra_args --silent"
20626 fi
20627
20628 _ACEOF
20629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20630 if \$ac_cs_recheck; then
20631   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20632   shift
20633   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20634   CONFIG_SHELL='$SHELL'
20635   export CONFIG_SHELL
20636   exec "\$@"
20637 fi
20638
20639 _ACEOF
20640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20641 exec 5>>config.log
20642 {
20643   echo
20644   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20645 ## Running $as_me. ##
20646 _ASBOX
20647   $as_echo "$ac_log"
20648 } >&5
20649
20650 _ACEOF
20651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20652 #
20653 # INIT-COMMANDS
20654 #
20655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20656
20657
20658 # The HP-UX ksh and POSIX shell print the target directory to stdout
20659 # if CDPATH is set.
20660 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20661
20662 sed_quote_subst='$sed_quote_subst'
20663 double_quote_subst='$double_quote_subst'
20664 delay_variable_subst='$delay_variable_subst'
20665 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20666 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
20667 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20668 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20669 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20670 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20671 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20672 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20673 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20674 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20675 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20676 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20677 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20678 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20679 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20680 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20681 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20682 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20683 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20684 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20685 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20686 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20687 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20688 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20689 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20690 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20691 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20692 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20693 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20694 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20695 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20696 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20697 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20698 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20699 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20700 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20701 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20702 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20703 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20704 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20705 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20706 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20707 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20708 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20709 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20710 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20711 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20712 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20713 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20714 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20715 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20716 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20717 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20718 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20719 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20720 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20721 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20722 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20723 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20724 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20725 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20726 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20727 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20728 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20729 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20730 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20731 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20732 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20733 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20734 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20735 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20736 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20737 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20738 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20739 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20740 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20741 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20742 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20743 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20744 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20745 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20746 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20747 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20748 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20749 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20750 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20751 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20752 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20753 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20754 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20755 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20756 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20757 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20758 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20759 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20760 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20761 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20762 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20763 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20764 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20765 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20766 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20767 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20768 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20769 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20770 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20771 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20772 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20773 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20774 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20775 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20776 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20777 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20778 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20779 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20780 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20781 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20782 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20783 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20784 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20785 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20786 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20787 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20788 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20789 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20790 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20791 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20792 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20793 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20794 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20795 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20796 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20797 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20798 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20799 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20800 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20801 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20802 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20803 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20804 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20805 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20806 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20807 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20808 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20809 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20810 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20811 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20812 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20813 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20814 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20815 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20816 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20817 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20818 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20819 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20820 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20821 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20822 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20823 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20824 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20825 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20826 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20827 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20828 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20829 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20830 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20831 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20832 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20833 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20834 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20835 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20836 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20837 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20838
20839 LTCC='$LTCC'
20840 LTCFLAGS='$LTCFLAGS'
20841 compiler='$compiler_DEFAULT'
20842
20843 # Quote evaled strings.
20844 for var in SED \
20845 GREP \
20846 EGREP \
20847 FGREP \
20848 LD \
20849 NM \
20850 LN_S \
20851 lt_SP2NL \
20852 lt_NL2SP \
20853 reload_flag \
20854 deplibs_check_method \
20855 file_magic_cmd \
20856 AR \
20857 AR_FLAGS \
20858 STRIP \
20859 RANLIB \
20860 CC \
20861 CFLAGS \
20862 compiler \
20863 lt_cv_sys_global_symbol_pipe \
20864 lt_cv_sys_global_symbol_to_cdecl \
20865 lt_cv_sys_global_symbol_to_c_name_address \
20866 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20867 SHELL \
20868 ECHO \
20869 lt_prog_compiler_no_builtin_flag \
20870 lt_prog_compiler_wl \
20871 lt_prog_compiler_pic \
20872 lt_prog_compiler_static \
20873 lt_cv_prog_compiler_c_o \
20874 need_locks \
20875 DSYMUTIL \
20876 NMEDIT \
20877 LIPO \
20878 OTOOL \
20879 OTOOL64 \
20880 shrext_cmds \
20881 export_dynamic_flag_spec \
20882 whole_archive_flag_spec \
20883 compiler_needs_object \
20884 with_gnu_ld \
20885 allow_undefined_flag \
20886 no_undefined_flag \
20887 hardcode_libdir_flag_spec \
20888 hardcode_libdir_flag_spec_ld \
20889 hardcode_libdir_separator \
20890 fix_srcfile_path \
20891 exclude_expsyms \
20892 include_expsyms \
20893 file_list_spec \
20894 variables_saved_for_relink \
20895 libname_spec \
20896 library_names_spec \
20897 soname_spec \
20898 finish_eval \
20899 old_striplib \
20900 striplib \
20901 compiler_lib_search_dirs \
20902 predep_objects \
20903 postdep_objects \
20904 predeps \
20905 postdeps \
20906 compiler_lib_search_path \
20907 LD_CXX \
20908 compiler_CXX \
20909 lt_prog_compiler_no_builtin_flag_CXX \
20910 lt_prog_compiler_wl_CXX \
20911 lt_prog_compiler_pic_CXX \
20912 lt_prog_compiler_static_CXX \
20913 lt_cv_prog_compiler_c_o_CXX \
20914 export_dynamic_flag_spec_CXX \
20915 whole_archive_flag_spec_CXX \
20916 compiler_needs_object_CXX \
20917 with_gnu_ld_CXX \
20918 allow_undefined_flag_CXX \
20919 no_undefined_flag_CXX \
20920 hardcode_libdir_flag_spec_CXX \
20921 hardcode_libdir_flag_spec_ld_CXX \
20922 hardcode_libdir_separator_CXX \
20923 fix_srcfile_path_CXX \
20924 exclude_expsyms_CXX \
20925 include_expsyms_CXX \
20926 file_list_spec_CXX \
20927 compiler_lib_search_dirs_CXX \
20928 predep_objects_CXX \
20929 postdep_objects_CXX \
20930 predeps_CXX \
20931 postdeps_CXX \
20932 compiler_lib_search_path_CXX; do
20933     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20934     *[\\\\\\\`\\"\\\$]*)
20935       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20936       ;;
20937     *)
20938       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20939       ;;
20940     esac
20941 done
20942
20943 # Double-quote double-evaled strings.
20944 for var in reload_cmds \
20945 old_postinstall_cmds \
20946 old_postuninstall_cmds \
20947 old_archive_cmds \
20948 extract_expsyms_cmds \
20949 old_archive_from_new_cmds \
20950 old_archive_from_expsyms_cmds \
20951 archive_cmds \
20952 archive_expsym_cmds \
20953 module_cmds \
20954 module_expsym_cmds \
20955 export_symbols_cmds \
20956 prelink_cmds \
20957 postinstall_cmds \
20958 postuninstall_cmds \
20959 finish_cmds \
20960 sys_lib_search_path_spec \
20961 sys_lib_dlsearch_path_spec \
20962 old_archive_cmds_CXX \
20963 old_archive_from_new_cmds_CXX \
20964 old_archive_from_expsyms_cmds_CXX \
20965 archive_cmds_CXX \
20966 archive_expsym_cmds_CXX \
20967 module_cmds_CXX \
20968 module_expsym_cmds_CXX \
20969 export_symbols_cmds_CXX \
20970 prelink_cmds_CXX; do
20971     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20972     *[\\\\\\\`\\"\\\$]*)
20973       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20974       ;;
20975     *)
20976       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20977       ;;
20978     esac
20979 done
20980
20981 # Fix-up fallback echo if it was mangled by the above quoting rules.
20982 case \$lt_ECHO in
20983 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20984   ;;
20985 esac
20986
20987 ac_aux_dir='$ac_aux_dir'
20988 xsi_shell='$xsi_shell'
20989 lt_shell_append='$lt_shell_append'
20990
20991 # See if we are running on zsh, and set the options which allow our
20992 # commands through without removal of \ escapes INIT.
20993 if test -n "\${ZSH_VERSION+set}" ; then
20994    setopt NO_GLOB_SUBST
20995 fi
20996
20997
20998     PACKAGE='$PACKAGE'
20999     VERSION='$VERSION'
21000     TIMESTAMP='$TIMESTAMP'
21001     RM='$RM'
21002     ofile='$ofile'
21003
21004
21005
21006
21007
21008
21009 _ACEOF
21010
21011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21012
21013 # Handling of arguments.
21014 for ac_config_target in $ac_config_targets
21015 do
21016   case $ac_config_target in
21017     "cvconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS cvconfig.h" ;;
21018     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21019     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21020     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21021     "opencv.pc") CONFIG_FILES="$CONFIG_FILES opencv.pc" ;;
21022     "opencv.spec") CONFIG_FILES="$CONFIG_FILES opencv.spec" ;;
21023     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
21024     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21025     "3rdparty/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/Makefile" ;;
21026     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21027     "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
21028     "interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/Makefile" ;;
21029     "interfaces/swig/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/Makefile" ;;
21030     "interfaces/swig/filtered/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/filtered/Makefile" ;;
21031     "interfaces/swig/general/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/general/Makefile" ;;
21032     "interfaces/swig/python/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/python/Makefile" ;;
21033     "interfaces/swig/octave/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/octave/Makefile" ;;
21034     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21035     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21036     "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
21037
21038   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21039   esac
21040 done
21041
21042
21043 # If the user did not use the arguments to specify the items to instantiate,
21044 # then the envvar interface is used.  Set only those that are not.
21045 # We use the long form for the default assignment because of an extremely
21046 # bizarre bug on SunOS 4.1.3.
21047 if $ac_need_defaults; then
21048   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21049   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21050   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21051 fi
21052
21053 # Have a temporary directory for convenience.  Make it in the build tree
21054 # simply because there is no reason against having it here, and in addition,
21055 # creating and moving files from /tmp can sometimes cause problems.
21056 # Hook for its removal unless debugging.
21057 # Note that there is a small window in which the directory will not be cleaned:
21058 # after its creation but before its name has been assigned to `$tmp'.
21059 $debug ||
21060 {
21061   tmp=
21062   trap 'exit_status=$?
21063   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21064 ' 0
21065   trap 'as_fn_exit 1' 1 2 13 15
21066 }
21067 # Create a (secure) tmp directory for tmp files.
21068
21069 {
21070   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21071   test -n "$tmp" && test -d "$tmp"
21072 }  ||
21073 {
21074   tmp=./conf$$-$RANDOM
21075   (umask 077 && mkdir "$tmp")
21076 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21077
21078 # Set up the scripts for CONFIG_FILES section.
21079 # No need to generate them if there are no CONFIG_FILES.
21080 # This happens for instance with `./config.status config.h'.
21081 if test -n "$CONFIG_FILES"; then
21082
21083
21084 ac_cr=`echo X | tr X '\015'`
21085 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21086 # But we know of no other shell where ac_cr would be empty at this
21087 # point, so we can use a bashism as a fallback.
21088 if test "x$ac_cr" = x; then
21089   eval ac_cr=\$\'\\r\'
21090 fi
21091 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21092 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21093   ac_cs_awk_cr='\r'
21094 else
21095   ac_cs_awk_cr=$ac_cr
21096 fi
21097
21098 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21099 _ACEOF
21100
21101
21102 {
21103   echo "cat >conf$$subs.awk <<_ACEOF" &&
21104   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21105   echo "_ACEOF"
21106 } >conf$$subs.sh ||
21107   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21108 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21109 ac_delim='%!_!# '
21110 for ac_last_try in false false false false false :; do
21111   . ./conf$$subs.sh ||
21112     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21113
21114   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21115   if test $ac_delim_n = $ac_delim_num; then
21116     break
21117   elif $ac_last_try; then
21118     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21119   else
21120     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21121   fi
21122 done
21123 rm -f conf$$subs.sh
21124
21125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21126 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21127 _ACEOF
21128 sed -n '
21129 h
21130 s/^/S["/; s/!.*/"]=/
21131 p
21132 g
21133 s/^[^!]*!//
21134 :repl
21135 t repl
21136 s/'"$ac_delim"'$//
21137 t delim
21138 :nl
21139 h
21140 s/\(.\{148\}\).*/\1/
21141 t more1
21142 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21143 p
21144 n
21145 b repl
21146 :more1
21147 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21148 p
21149 g
21150 s/.\{148\}//
21151 t nl
21152 :delim
21153 h
21154 s/\(.\{148\}\).*/\1/
21155 t more2
21156 s/["\\]/\\&/g; s/^/"/; s/$/"/
21157 p
21158 b
21159 :more2
21160 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21161 p
21162 g
21163 s/.\{148\}//
21164 t delim
21165 ' <conf$$subs.awk | sed '
21166 /^[^""]/{
21167   N
21168   s/\n//
21169 }
21170 ' >>$CONFIG_STATUS || ac_write_fail=1
21171 rm -f conf$$subs.awk
21172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21173 _ACAWK
21174 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21175   for (key in S) S_is_set[key] = 1
21176   FS = "\a"
21177
21178 }
21179 {
21180   line = $ 0
21181   nfields = split(line, field, "@")
21182   substed = 0
21183   len = length(field[1])
21184   for (i = 2; i < nfields; i++) {
21185     key = field[i]
21186     keylen = length(key)
21187     if (S_is_set[key]) {
21188       value = S[key]
21189       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21190       len += length(value) + length(field[++i])
21191       substed = 1
21192     } else
21193       len += 1 + keylen
21194   }
21195
21196   print line
21197 }
21198
21199 _ACAWK
21200 _ACEOF
21201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21202 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21203   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21204 else
21205   cat
21206 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21207   || as_fn_error "could not setup config files machinery" "$LINENO" 5
21208 _ACEOF
21209
21210 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21211 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21212 # trailing colons and then remove the whole line if VPATH becomes empty
21213 # (actually we leave an empty line to preserve line numbers).
21214 if test "x$srcdir" = x.; then
21215   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21216 s/:*\$(srcdir):*/:/
21217 s/:*\${srcdir}:*/:/
21218 s/:*@srcdir@:*/:/
21219 s/^\([^=]*=[     ]*\):*/\1/
21220 s/:*$//
21221 s/^[^=]*=[       ]*$//
21222 }'
21223 fi
21224
21225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21226 fi # test -n "$CONFIG_FILES"
21227
21228 # Set up the scripts for CONFIG_HEADERS section.
21229 # No need to generate them if there are no CONFIG_HEADERS.
21230 # This happens for instance with `./config.status Makefile'.
21231 if test -n "$CONFIG_HEADERS"; then
21232 cat >"$tmp/defines.awk" <<\_ACAWK ||
21233 BEGIN {
21234 _ACEOF
21235
21236 # Transform confdefs.h into an awk script `defines.awk', embedded as
21237 # here-document in config.status, that substitutes the proper values into
21238 # config.h.in to produce config.h.
21239
21240 # Create a delimiter string that does not exist in confdefs.h, to ease
21241 # handling of long lines.
21242 ac_delim='%!_!# '
21243 for ac_last_try in false false :; do
21244   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21245   if test -z "$ac_t"; then
21246     break
21247   elif $ac_last_try; then
21248     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21249   else
21250     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21251   fi
21252 done
21253
21254 # For the awk script, D is an array of macro values keyed by name,
21255 # likewise P contains macro parameters if any.  Preserve backslash
21256 # newline sequences.
21257
21258 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21259 sed -n '
21260 s/.\{148\}/&'"$ac_delim"'/g
21261 t rset
21262 :rset
21263 s/^[     ]*#[    ]*define[       ][      ]*/ /
21264 t def
21265 d
21266 :def
21267 s/\\$//
21268 t bsnl
21269 s/["\\]/\\&/g
21270 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21271 D["\1"]=" \3"/p
21272 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21273 d
21274 :bsnl
21275 s/["\\]/\\&/g
21276 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21277 D["\1"]=" \3\\\\\\n"\\/p
21278 t cont
21279 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21280 t cont
21281 d
21282 :cont
21283 n
21284 s/.\{148\}/&'"$ac_delim"'/g
21285 t clear
21286 :clear
21287 s/\\$//
21288 t bsnlc
21289 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21290 d
21291 :bsnlc
21292 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21293 b cont
21294 ' <confdefs.h | sed '
21295 s/'"$ac_delim"'/"\\\
21296 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21297
21298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21299   for (key in D) D_is_set[key] = 1
21300   FS = "\a"
21301 }
21302 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21303   line = \$ 0
21304   split(line, arg, " ")
21305   if (arg[1] == "#") {
21306     defundef = arg[2]
21307     mac1 = arg[3]
21308   } else {
21309     defundef = substr(arg[1], 2)
21310     mac1 = arg[2]
21311   }
21312   split(mac1, mac2, "(") #)
21313   macro = mac2[1]
21314   prefix = substr(line, 1, index(line, defundef) - 1)
21315   if (D_is_set[macro]) {
21316     # Preserve the white space surrounding the "#".
21317     print prefix "define", macro P[macro] D[macro]
21318     next
21319   } else {
21320     # Replace #undef with comments.  This is necessary, for example,
21321     # in the case of _POSIX_SOURCE, which is predefined and required
21322     # on some systems where configure will not decide to define it.
21323     if (defundef == "undef") {
21324       print "/*", prefix defundef, macro, "*/"
21325       next
21326     }
21327   }
21328 }
21329 { print }
21330 _ACAWK
21331 _ACEOF
21332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21333   as_fn_error "could not setup config headers machinery" "$LINENO" 5
21334 fi # test -n "$CONFIG_HEADERS"
21335
21336
21337 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21338 shift
21339 for ac_tag
21340 do
21341   case $ac_tag in
21342   :[FHLC]) ac_mode=$ac_tag; continue;;
21343   esac
21344   case $ac_mode$ac_tag in
21345   :[FHL]*:*);;
21346   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21347   :[FH]-) ac_tag=-:-;;
21348   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21349   esac
21350   ac_save_IFS=$IFS
21351   IFS=:
21352   set x $ac_tag
21353   IFS=$ac_save_IFS
21354   shift
21355   ac_file=$1
21356   shift
21357
21358   case $ac_mode in
21359   :L) ac_source=$1;;
21360   :[FH])
21361     ac_file_inputs=
21362     for ac_f
21363     do
21364       case $ac_f in
21365       -) ac_f="$tmp/stdin";;
21366       *) # Look for the file first in the build tree, then in the source tree
21367          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21368          # because $ac_f cannot contain `:'.
21369          test -f "$ac_f" ||
21370            case $ac_f in
21371            [\\/$]*) false;;
21372            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21373            esac ||
21374            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21375       esac
21376       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21377       as_fn_append ac_file_inputs " '$ac_f'"
21378     done
21379
21380     # Let's still pretend it is `configure' which instantiates (i.e., don't
21381     # use $as_me), people would be surprised to read:
21382     #    /* config.h.  Generated by config.status.  */
21383     configure_input='Generated from '`
21384           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21385         `' by configure.'
21386     if test x"$ac_file" != x-; then
21387       configure_input="$ac_file.  $configure_input"
21388       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21389 $as_echo "$as_me: creating $ac_file" >&6;}
21390     fi
21391     # Neutralize special characters interpreted by sed in replacement strings.
21392     case $configure_input in #(
21393     *\&* | *\|* | *\\* )
21394        ac_sed_conf_input=`$as_echo "$configure_input" |
21395        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21396     *) ac_sed_conf_input=$configure_input;;
21397     esac
21398
21399     case $ac_tag in
21400     *:-:* | *:-) cat >"$tmp/stdin" \
21401       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21402     esac
21403     ;;
21404   esac
21405
21406   ac_dir=`$as_dirname -- "$ac_file" ||
21407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21408          X"$ac_file" : 'X\(//\)[^/]' \| \
21409          X"$ac_file" : 'X\(//\)$' \| \
21410          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21411 $as_echo X"$ac_file" |
21412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21413             s//\1/
21414             q
21415           }
21416           /^X\(\/\/\)[^/].*/{
21417             s//\1/
21418             q
21419           }
21420           /^X\(\/\/\)$/{
21421             s//\1/
21422             q
21423           }
21424           /^X\(\/\).*/{
21425             s//\1/
21426             q
21427           }
21428           s/.*/./; q'`
21429   as_dir="$ac_dir"; as_fn_mkdir_p
21430   ac_builddir=.
21431
21432 case "$ac_dir" in
21433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21434 *)
21435   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21436   # A ".." for each directory in $ac_dir_suffix.
21437   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21438   case $ac_top_builddir_sub in
21439   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21440   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21441   esac ;;
21442 esac
21443 ac_abs_top_builddir=$ac_pwd
21444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21445 # for backward compatibility:
21446 ac_top_builddir=$ac_top_build_prefix
21447
21448 case $srcdir in
21449   .)  # We are building in place.
21450     ac_srcdir=.
21451     ac_top_srcdir=$ac_top_builddir_sub
21452     ac_abs_top_srcdir=$ac_pwd ;;
21453   [\\/]* | ?:[\\/]* )  # Absolute name.
21454     ac_srcdir=$srcdir$ac_dir_suffix;
21455     ac_top_srcdir=$srcdir
21456     ac_abs_top_srcdir=$srcdir ;;
21457   *) # Relative name.
21458     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21459     ac_top_srcdir=$ac_top_build_prefix$srcdir
21460     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21461 esac
21462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21463
21464
21465   case $ac_mode in
21466   :F)
21467   #
21468   # CONFIG_FILE
21469   #
21470
21471   case $INSTALL in
21472   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21473   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21474   esac
21475   ac_MKDIR_P=$MKDIR_P
21476   case $MKDIR_P in
21477   [\\/$]* | ?:[\\/]* ) ;;
21478   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21479   esac
21480 _ACEOF
21481
21482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21483 # If the template does not know about datarootdir, expand it.
21484 # FIXME: This hack should be removed a few years after 2.60.
21485 ac_datarootdir_hack=; ac_datarootdir_seen=
21486 ac_sed_dataroot='
21487 /datarootdir/ {
21488   p
21489   q
21490 }
21491 /@datadir@/p
21492 /@docdir@/p
21493 /@infodir@/p
21494 /@localedir@/p
21495 /@mandir@/p'
21496 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21497 *datarootdir*) ac_datarootdir_seen=yes;;
21498 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21499   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21500 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21501 _ACEOF
21502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21503   ac_datarootdir_hack='
21504   s&@datadir@&$datadir&g
21505   s&@docdir@&$docdir&g
21506   s&@infodir@&$infodir&g
21507   s&@localedir@&$localedir&g
21508   s&@mandir@&$mandir&g
21509   s&\\\${datarootdir}&$datarootdir&g' ;;
21510 esac
21511 _ACEOF
21512
21513 # Neutralize VPATH when `$srcdir' = `.'.
21514 # Shell code in configure.ac might set extrasub.
21515 # FIXME: do we really want to maintain this feature?
21516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21517 ac_sed_extra="$ac_vpsub
21518 $extrasub
21519 _ACEOF
21520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21521 :t
21522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21523 s|@configure_input@|$ac_sed_conf_input|;t t
21524 s&@top_builddir@&$ac_top_builddir_sub&;t t
21525 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21526 s&@srcdir@&$ac_srcdir&;t t
21527 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21528 s&@top_srcdir@&$ac_top_srcdir&;t t
21529 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21530 s&@builddir@&$ac_builddir&;t t
21531 s&@abs_builddir@&$ac_abs_builddir&;t t
21532 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21533 s&@INSTALL@&$ac_INSTALL&;t t
21534 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21535 $ac_datarootdir_hack
21536 "
21537 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21538   || as_fn_error "could not create $ac_file" "$LINENO" 5
21539
21540 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21541   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21542   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21543   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21544 which seems to be undefined.  Please make sure it is defined." >&5
21545 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21546 which seems to be undefined.  Please make sure it is defined." >&2;}
21547
21548   rm -f "$tmp/stdin"
21549   case $ac_file in
21550   -) cat "$tmp/out" && rm -f "$tmp/out";;
21551   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21552   esac \
21553   || as_fn_error "could not create $ac_file" "$LINENO" 5
21554  ;;
21555   :H)
21556   #
21557   # CONFIG_HEADER
21558   #
21559   if test x"$ac_file" != x-; then
21560     {
21561       $as_echo "/* $configure_input  */" \
21562       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21563     } >"$tmp/config.h" \
21564       || as_fn_error "could not create $ac_file" "$LINENO" 5
21565     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21566       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21568     else
21569       rm -f "$ac_file"
21570       mv "$tmp/config.h" "$ac_file" \
21571         || as_fn_error "could not create $ac_file" "$LINENO" 5
21572     fi
21573   else
21574     $as_echo "/* $configure_input  */" \
21575       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21576       || as_fn_error "could not create -" "$LINENO" 5
21577   fi
21578 # Compute "$ac_file"'s index in $config_headers.
21579 _am_arg="$ac_file"
21580 _am_stamp_count=1
21581 for _am_header in $config_headers :; do
21582   case $_am_header in
21583     $_am_arg | $_am_arg:* )
21584       break ;;
21585     * )
21586       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21587   esac
21588 done
21589 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21590 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21591          X"$_am_arg" : 'X\(//\)[^/]' \| \
21592          X"$_am_arg" : 'X\(//\)$' \| \
21593          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21594 $as_echo X"$_am_arg" |
21595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21596             s//\1/
21597             q
21598           }
21599           /^X\(\/\/\)[^/].*/{
21600             s//\1/
21601             q
21602           }
21603           /^X\(\/\/\)$/{
21604             s//\1/
21605             q
21606           }
21607           /^X\(\/\).*/{
21608             s//\1/
21609             q
21610           }
21611           s/.*/./; q'`/stamp-h$_am_stamp_count
21612  ;;
21613
21614   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21615 $as_echo "$as_me: executing $ac_file commands" >&6;}
21616  ;;
21617   esac
21618
21619
21620   case $ac_file$ac_mode in
21621     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21622   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21623   # are listed without --file.  Let's play safe and only enable the eval
21624   # if we detect the quoting.
21625   case $CONFIG_FILES in
21626   *\'*) eval set x "$CONFIG_FILES" ;;
21627   *)   set x $CONFIG_FILES ;;
21628   esac
21629   shift
21630   for mf
21631   do
21632     # Strip MF so we end up with the name of the file.
21633     mf=`echo "$mf" | sed -e 's/:.*$//'`
21634     # Check whether this is an Automake generated Makefile or not.
21635     # We used to match only the files named `Makefile.in', but
21636     # some people rename them; so instead we look at the file content.
21637     # Grep'ing the first line is not enough: some people post-process
21638     # each Makefile.in and add a new line on top of each file to say so.
21639     # Grep'ing the whole file is not good either: AIX grep has a line
21640     # limit of 2048, but all sed's we know have understand at least 4000.
21641     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21642       dirpart=`$as_dirname -- "$mf" ||
21643 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21644          X"$mf" : 'X\(//\)[^/]' \| \
21645          X"$mf" : 'X\(//\)$' \| \
21646          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21647 $as_echo X"$mf" |
21648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21649             s//\1/
21650             q
21651           }
21652           /^X\(\/\/\)[^/].*/{
21653             s//\1/
21654             q
21655           }
21656           /^X\(\/\/\)$/{
21657             s//\1/
21658             q
21659           }
21660           /^X\(\/\).*/{
21661             s//\1/
21662             q
21663           }
21664           s/.*/./; q'`
21665     else
21666       continue
21667     fi
21668     # Extract the definition of DEPDIR, am__include, and am__quote
21669     # from the Makefile without running `make'.
21670     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21671     test -z "$DEPDIR" && continue
21672     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21673     test -z "am__include" && continue
21674     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21675     # When using ansi2knr, U may be empty or an underscore; expand it
21676     U=`sed -n 's/^U = //p' < "$mf"`
21677     # Find all dependency output files, they are included files with
21678     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21679     # simplest approach to changing $(DEPDIR) to its actual value in the
21680     # expansion.
21681     for file in `sed -n "
21682       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21683          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21684       # Make sure the directory exists.
21685       test -f "$dirpart/$file" && continue
21686       fdir=`$as_dirname -- "$file" ||
21687 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21688          X"$file" : 'X\(//\)[^/]' \| \
21689          X"$file" : 'X\(//\)$' \| \
21690          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21691 $as_echo X"$file" |
21692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21693             s//\1/
21694             q
21695           }
21696           /^X\(\/\/\)[^/].*/{
21697             s//\1/
21698             q
21699           }
21700           /^X\(\/\/\)$/{
21701             s//\1/
21702             q
21703           }
21704           /^X\(\/\).*/{
21705             s//\1/
21706             q
21707           }
21708           s/.*/./; q'`
21709       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21710       # echo "creating $dirpart/$file"
21711       echo '# dummy' > "$dirpart/$file"
21712     done
21713   done
21714 }
21715  ;;
21716     "libtool":C)
21717
21718     # See if we are running on zsh, and set the options which allow our
21719     # commands through without removal of \ escapes.
21720     if test -n "${ZSH_VERSION+set}" ; then
21721       setopt NO_GLOB_SUBST
21722     fi
21723
21724     cfgfile="${ofile}T"
21725     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21726     $RM "$cfgfile"
21727
21728     cat <<_LT_EOF >> "$cfgfile"
21729 #! $SHELL
21730
21731 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21732 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21733 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21734 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21735 #
21736 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21737 #                 2006, 2007, 2008 Free Software Foundation, Inc.
21738 #   Written by Gordon Matzigkeit, 1996
21739 #
21740 #   This file is part of GNU Libtool.
21741 #
21742 # GNU Libtool is free software; you can redistribute it and/or
21743 # modify it under the terms of the GNU General Public License as
21744 # published by the Free Software Foundation; either version 2 of
21745 # the License, or (at your option) any later version.
21746 #
21747 # As a special exception to the GNU General Public License,
21748 # if you distribute this file as part of a program or library that
21749 # is built using GNU Libtool, you may include this file under the
21750 # same distribution terms that you use for the rest of that program.
21751 #
21752 # GNU Libtool is distributed in the hope that it will be useful,
21753 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21754 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21755 # GNU General Public License for more details.
21756 #
21757 # You should have received a copy of the GNU General Public License
21758 # along with GNU Libtool; see the file COPYING.  If not, a copy
21759 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21760 # obtained by writing to the Free Software Foundation, Inc.,
21761 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21762
21763
21764 # The names of the tagged configurations supported by this script.
21765 available_tags="CXX "
21766
21767 # ### BEGIN LIBTOOL CONFIG
21768
21769 # Whether or not to build static libraries.
21770 build_old_libs=$enable_static
21771
21772 # Assembler program.
21773 AS=$AS
21774
21775 # DLL creation program.
21776 DLLTOOL=$DLLTOOL
21777
21778 # Object dumper program.
21779 OBJDUMP=$OBJDUMP
21780
21781 # Which release of libtool.m4 was used?
21782 macro_version=$macro_version
21783 macro_revision=$macro_revision
21784
21785 # Whether or not to build shared libraries.
21786 build_libtool_libs=$enable_shared
21787
21788 # What type of objects to build.
21789 pic_mode=$pic_mode
21790
21791 # Whether or not to optimize for fast installation.
21792 fast_install=$enable_fast_install
21793
21794 # The host system.
21795 host_alias=$host_alias
21796 host=$host
21797 host_os=$host_os
21798
21799 # The build system.
21800 build_alias=$build_alias
21801 build=$build
21802 build_os=$build_os
21803
21804 # A sed program that does not truncate output.
21805 SED=$lt_SED
21806
21807 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21808 Xsed="\$SED -e 1s/^X//"
21809
21810 # A grep program that handles long lines.
21811 GREP=$lt_GREP
21812
21813 # An ERE matcher.
21814 EGREP=$lt_EGREP
21815
21816 # A literal string matcher.
21817 FGREP=$lt_FGREP
21818
21819 # A BSD- or MS-compatible name lister.
21820 NM=$lt_NM
21821
21822 # Whether we need soft or hard links.
21823 LN_S=$lt_LN_S
21824
21825 # What is the maximum length of a command?
21826 max_cmd_len=$max_cmd_len
21827
21828 # Object file suffix (normally "o").
21829 objext=$ac_objext
21830
21831 # Executable file suffix (normally "").
21832 exeext=$exeext
21833
21834 # whether the shell understands "unset".
21835 lt_unset=$lt_unset
21836
21837 # turn spaces into newlines.
21838 SP2NL=$lt_lt_SP2NL
21839
21840 # turn newlines into spaces.
21841 NL2SP=$lt_lt_NL2SP
21842
21843 # How to create reloadable object files.
21844 reload_flag=$lt_reload_flag
21845 reload_cmds=$lt_reload_cmds
21846
21847 # Method to check whether dependent libraries are shared objects.
21848 deplibs_check_method=$lt_deplibs_check_method
21849
21850 # Command to use when deplibs_check_method == "file_magic".
21851 file_magic_cmd=$lt_file_magic_cmd
21852
21853 # The archiver.
21854 AR=$lt_AR
21855 AR_FLAGS=$lt_AR_FLAGS
21856
21857 # A symbol stripping program.
21858 STRIP=$lt_STRIP
21859
21860 # Commands used to install an old-style archive.
21861 RANLIB=$lt_RANLIB
21862 old_postinstall_cmds=$lt_old_postinstall_cmds
21863 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21864
21865 # A C compiler.
21866 LTCC=$lt_CC
21867
21868 # LTCC compiler flags.
21869 LTCFLAGS=$lt_CFLAGS
21870
21871 # Take the output of nm and produce a listing of raw symbols and C names.
21872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21873
21874 # Transform the output of nm in a proper C declaration.
21875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21876
21877 # Transform the output of nm in a C name address pair.
21878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21879
21880 # Transform the output of nm in a C name address pair when lib prefix is needed.
21881 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21882
21883 # The name of the directory that contains temporary libtool files.
21884 objdir=$objdir
21885
21886 # Shell to use when invoking shell scripts.
21887 SHELL=$lt_SHELL
21888
21889 # An echo program that does not interpret backslashes.
21890 ECHO=$lt_ECHO
21891
21892 # Used to examine libraries when file_magic_cmd begins with "file".
21893 MAGIC_CMD=$MAGIC_CMD
21894
21895 # Must we lock files when doing compilation?
21896 need_locks=$lt_need_locks
21897
21898 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21899 DSYMUTIL=$lt_DSYMUTIL
21900
21901 # Tool to change global to local symbols on Mac OS X.
21902 NMEDIT=$lt_NMEDIT
21903
21904 # Tool to manipulate fat objects and archives on Mac OS X.
21905 LIPO=$lt_LIPO
21906
21907 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21908 OTOOL=$lt_OTOOL
21909
21910 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21911 OTOOL64=$lt_OTOOL64
21912
21913 # Old archive suffix (normally "a").
21914 libext=$libext
21915
21916 # Shared library suffix (normally ".so").
21917 shrext_cmds=$lt_shrext_cmds
21918
21919 # The commands to extract the exported symbol list from a shared archive.
21920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21921
21922 # Variables whose values should be saved in libtool wrapper scripts and
21923 # restored at link time.
21924 variables_saved_for_relink=$lt_variables_saved_for_relink
21925
21926 # Do we need the "lib" prefix for modules?
21927 need_lib_prefix=$need_lib_prefix
21928
21929 # Do we need a version for libraries?
21930 need_version=$need_version
21931
21932 # Library versioning type.
21933 version_type=$version_type
21934
21935 # Shared library runtime path variable.
21936 runpath_var=$runpath_var
21937
21938 # Shared library path variable.
21939 shlibpath_var=$shlibpath_var
21940
21941 # Is shlibpath searched before the hard-coded library search path?
21942 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21943
21944 # Format of library name prefix.
21945 libname_spec=$lt_libname_spec
21946
21947 # List of archive names.  First name is the real one, the rest are links.
21948 # The last name is the one that the linker finds with -lNAME
21949 library_names_spec=$lt_library_names_spec
21950
21951 # The coded name of the library, if different from the real name.
21952 soname_spec=$lt_soname_spec
21953
21954 # Command to use after installation of a shared archive.
21955 postinstall_cmds=$lt_postinstall_cmds
21956
21957 # Command to use after uninstallation of a shared archive.
21958 postuninstall_cmds=$lt_postuninstall_cmds
21959
21960 # Commands used to finish a libtool library installation in a directory.
21961 finish_cmds=$lt_finish_cmds
21962
21963 # As "finish_cmds", except a single script fragment to be evaled but
21964 # not shown.
21965 finish_eval=$lt_finish_eval
21966
21967 # Whether we should hardcode library paths into libraries.
21968 hardcode_into_libs=$hardcode_into_libs
21969
21970 # Compile-time system search path for libraries.
21971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21972
21973 # Run-time system search path for libraries.
21974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21975
21976 # Whether dlopen is supported.
21977 dlopen_support=$enable_dlopen
21978
21979 # Whether dlopen of programs is supported.
21980 dlopen_self=$enable_dlopen_self
21981
21982 # Whether dlopen of statically linked programs is supported.
21983 dlopen_self_static=$enable_dlopen_self_static
21984
21985 # Commands to strip libraries.
21986 old_striplib=$lt_old_striplib
21987 striplib=$lt_striplib
21988
21989
21990 # The linker used to build libraries.
21991 LD=$lt_LD
21992
21993 # Commands used to build an old-style archive.
21994 old_archive_cmds=$lt_old_archive_cmds
21995
21996 # A language specific compiler.
21997 CC=$lt_compiler
21998
21999 # Is the compiler the GNU compiler?
22000 with_gcc=$GCC
22001
22002 # Compiler flag to turn off builtin functions.
22003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22004
22005 # How to pass a linker flag through the compiler.
22006 wl=$lt_lt_prog_compiler_wl
22007
22008 # Additional compiler flags for building library objects.
22009 pic_flag=$lt_lt_prog_compiler_pic
22010
22011 # Compiler flag to prevent dynamic linking.
22012 link_static_flag=$lt_lt_prog_compiler_static
22013
22014 # Does compiler simultaneously support -c and -o options?
22015 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22016
22017 # Whether or not to add -lc for building shared libraries.
22018 build_libtool_need_lc=$archive_cmds_need_lc
22019
22020 # Whether or not to disallow shared libs when runtime libs are static.
22021 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22022
22023 # Compiler flag to allow reflexive dlopens.
22024 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22025
22026 # Compiler flag to generate shared objects directly from archives.
22027 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22028
22029 # Whether the compiler copes with passing no objects directly.
22030 compiler_needs_object=$lt_compiler_needs_object
22031
22032 # Create an old-style archive from a shared archive.
22033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22034
22035 # Create a temporary old-style archive to link instead of a shared archive.
22036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22037
22038 # Commands used to build a shared archive.
22039 archive_cmds=$lt_archive_cmds
22040 archive_expsym_cmds=$lt_archive_expsym_cmds
22041
22042 # Commands used to build a loadable module if different from building
22043 # a shared archive.
22044 module_cmds=$lt_module_cmds
22045 module_expsym_cmds=$lt_module_expsym_cmds
22046
22047 # Whether we are building with GNU ld or not.
22048 with_gnu_ld=$lt_with_gnu_ld
22049
22050 # Flag that allows shared libraries with undefined symbols to be built.
22051 allow_undefined_flag=$lt_allow_undefined_flag
22052
22053 # Flag that enforces no undefined symbols.
22054 no_undefined_flag=$lt_no_undefined_flag
22055
22056 # Flag to hardcode \$libdir into a binary during linking.
22057 # This must work even if \$libdir does not exist
22058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22059
22060 # If ld is used when linking, flag to hardcode \$libdir into a binary
22061 # during linking.  This must work even if \$libdir does not exist.
22062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22063
22064 # Whether we need a single "-rpath" flag with a separated argument.
22065 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22066
22067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22068 # DIR into the resulting binary.
22069 hardcode_direct=$hardcode_direct
22070
22071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22072 # DIR into the resulting binary and the resulting library dependency is
22073 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22074 # library is relocated.
22075 hardcode_direct_absolute=$hardcode_direct_absolute
22076
22077 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22078 # into the resulting binary.
22079 hardcode_minus_L=$hardcode_minus_L
22080
22081 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22082 # into the resulting binary.
22083 hardcode_shlibpath_var=$hardcode_shlibpath_var
22084
22085 # Set to "yes" if building a shared library automatically hardcodes DIR
22086 # into the library and all subsequent libraries and executables linked
22087 # against it.
22088 hardcode_automatic=$hardcode_automatic
22089
22090 # Set to yes if linker adds runtime paths of dependent libraries
22091 # to runtime path list.
22092 inherit_rpath=$inherit_rpath
22093
22094 # Whether libtool must link a program against all its dependency libraries.
22095 link_all_deplibs=$link_all_deplibs
22096
22097 # Fix the shell variable \$srcfile for the compiler.
22098 fix_srcfile_path=$lt_fix_srcfile_path
22099
22100 # Set to "yes" if exported symbols are required.
22101 always_export_symbols=$always_export_symbols
22102
22103 # The commands to list exported symbols.
22104 export_symbols_cmds=$lt_export_symbols_cmds
22105
22106 # Symbols that should not be listed in the preloaded symbols.
22107 exclude_expsyms=$lt_exclude_expsyms
22108
22109 # Symbols that must always be exported.
22110 include_expsyms=$lt_include_expsyms
22111
22112 # Commands necessary for linking programs (against libraries) with templates.
22113 prelink_cmds=$lt_prelink_cmds
22114
22115 # Specify filename containing input files.
22116 file_list_spec=$lt_file_list_spec
22117
22118 # How to hardcode a shared library path into an executable.
22119 hardcode_action=$hardcode_action
22120
22121 # The directories searched by this compiler when creating a shared library.
22122 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22123
22124 # Dependencies to place before and after the objects being linked to
22125 # create a shared library.
22126 predep_objects=$lt_predep_objects
22127 postdep_objects=$lt_postdep_objects
22128 predeps=$lt_predeps
22129 postdeps=$lt_postdeps
22130
22131 # The library search path used internally by the compiler when linking
22132 # a shared library.
22133 compiler_lib_search_path=$lt_compiler_lib_search_path
22134
22135 # ### END LIBTOOL CONFIG
22136
22137 _LT_EOF
22138
22139   case $host_os in
22140   aix3*)
22141     cat <<\_LT_EOF >> "$cfgfile"
22142 # AIX sometimes has problems with the GCC collect2 program.  For some
22143 # reason, if we set the COLLECT_NAMES environment variable, the problems
22144 # vanish in a puff of smoke.
22145 if test "X${COLLECT_NAMES+set}" != Xset; then
22146   COLLECT_NAMES=
22147   export COLLECT_NAMES
22148 fi
22149 _LT_EOF
22150     ;;
22151   esac
22152
22153
22154 ltmain="$ac_aux_dir/ltmain.sh"
22155
22156
22157   # We use sed instead of cat because bash on DJGPP gets confused if
22158   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22159   # text mode, it properly converts lines to CR/LF.  This bash problem
22160   # is reportedly fixed, but why not run on old versions too?
22161   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22162     || (rm -f "$cfgfile"; exit 1)
22163
22164   case $xsi_shell in
22165   yes)
22166     cat << \_LT_EOF >> "$cfgfile"
22167
22168 # func_dirname file append nondir_replacement
22169 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22170 # otherwise set result to NONDIR_REPLACEMENT.
22171 func_dirname ()
22172 {
22173   case ${1} in
22174     */*) func_dirname_result="${1%/*}${2}" ;;
22175     *  ) func_dirname_result="${3}" ;;
22176   esac
22177 }
22178
22179 # func_basename file
22180 func_basename ()
22181 {
22182   func_basename_result="${1##*/}"
22183 }
22184
22185 # func_dirname_and_basename file append nondir_replacement
22186 # perform func_basename and func_dirname in a single function
22187 # call:
22188 #   dirname:  Compute the dirname of FILE.  If nonempty,
22189 #             add APPEND to the result, otherwise set result
22190 #             to NONDIR_REPLACEMENT.
22191 #             value returned in "$func_dirname_result"
22192 #   basename: Compute filename of FILE.
22193 #             value retuned in "$func_basename_result"
22194 # Implementation must be kept synchronized with func_dirname
22195 # and func_basename. For efficiency, we do not delegate to
22196 # those functions but instead duplicate the functionality here.
22197 func_dirname_and_basename ()
22198 {
22199   case ${1} in
22200     */*) func_dirname_result="${1%/*}${2}" ;;
22201     *  ) func_dirname_result="${3}" ;;
22202   esac
22203   func_basename_result="${1##*/}"
22204 }
22205
22206 # func_stripname prefix suffix name
22207 # strip PREFIX and SUFFIX off of NAME.
22208 # PREFIX and SUFFIX must not contain globbing or regex special
22209 # characters, hashes, percent signs, but SUFFIX may contain a leading
22210 # dot (in which case that matches only a dot).
22211 func_stripname ()
22212 {
22213   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22214   # positional parameters, so assign one to ordinary parameter first.
22215   func_stripname_result=${3}
22216   func_stripname_result=${func_stripname_result#"${1}"}
22217   func_stripname_result=${func_stripname_result%"${2}"}
22218 }
22219
22220 # func_opt_split
22221 func_opt_split ()
22222 {
22223   func_opt_split_opt=${1%%=*}
22224   func_opt_split_arg=${1#*=}
22225 }
22226
22227 # func_lo2o object
22228 func_lo2o ()
22229 {
22230   case ${1} in
22231     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22232     *)    func_lo2o_result=${1} ;;
22233   esac
22234 }
22235
22236 # func_xform libobj-or-source
22237 func_xform ()
22238 {
22239   func_xform_result=${1%.*}.lo
22240 }
22241
22242 # func_arith arithmetic-term...
22243 func_arith ()
22244 {
22245   func_arith_result=$(( $* ))
22246 }
22247
22248 # func_len string
22249 # STRING may not start with a hyphen.
22250 func_len ()
22251 {
22252   func_len_result=${#1}
22253 }
22254
22255 _LT_EOF
22256     ;;
22257   *) # Bourne compatible functions.
22258     cat << \_LT_EOF >> "$cfgfile"
22259
22260 # func_dirname file append nondir_replacement
22261 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22262 # otherwise set result to NONDIR_REPLACEMENT.
22263 func_dirname ()
22264 {
22265   # Extract subdirectory from the argument.
22266   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22267   if test "X$func_dirname_result" = "X${1}"; then
22268     func_dirname_result="${3}"
22269   else
22270     func_dirname_result="$func_dirname_result${2}"
22271   fi
22272 }
22273
22274 # func_basename file
22275 func_basename ()
22276 {
22277   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22278 }
22279
22280
22281 # func_stripname prefix suffix name
22282 # strip PREFIX and SUFFIX off of NAME.
22283 # PREFIX and SUFFIX must not contain globbing or regex special
22284 # characters, hashes, percent signs, but SUFFIX may contain a leading
22285 # dot (in which case that matches only a dot).
22286 # func_strip_suffix prefix name
22287 func_stripname ()
22288 {
22289   case ${2} in
22290     .*) func_stripname_result=`$ECHO "X${3}" \
22291            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22292     *)  func_stripname_result=`$ECHO "X${3}" \
22293            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22294   esac
22295 }
22296
22297 # sed scripts:
22298 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22299 my_sed_long_arg='1s/^-[^=]*=//'
22300
22301 # func_opt_split
22302 func_opt_split ()
22303 {
22304   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22305   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22306 }
22307
22308 # func_lo2o object
22309 func_lo2o ()
22310 {
22311   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22312 }
22313
22314 # func_xform libobj-or-source
22315 func_xform ()
22316 {
22317   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22318 }
22319
22320 # func_arith arithmetic-term...
22321 func_arith ()
22322 {
22323   func_arith_result=`expr "$@"`
22324 }
22325
22326 # func_len string
22327 # STRING may not start with a hyphen.
22328 func_len ()
22329 {
22330   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22331 }
22332
22333 _LT_EOF
22334 esac
22335
22336 case $lt_shell_append in
22337   yes)
22338     cat << \_LT_EOF >> "$cfgfile"
22339
22340 # func_append var value
22341 # Append VALUE to the end of shell variable VAR.
22342 func_append ()
22343 {
22344   eval "$1+=\$2"
22345 }
22346 _LT_EOF
22347     ;;
22348   *)
22349     cat << \_LT_EOF >> "$cfgfile"
22350
22351 # func_append var value
22352 # Append VALUE to the end of shell variable VAR.
22353 func_append ()
22354 {
22355   eval "$1=\$$1\$2"
22356 }
22357
22358 _LT_EOF
22359     ;;
22360   esac
22361
22362
22363   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22364     || (rm -f "$cfgfile"; exit 1)
22365
22366   mv -f "$cfgfile" "$ofile" ||
22367     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22368   chmod +x "$ofile"
22369
22370
22371     cat <<_LT_EOF >> "$ofile"
22372
22373 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22374
22375 # The linker used to build libraries.
22376 LD=$lt_LD_CXX
22377
22378 # Commands used to build an old-style archive.
22379 old_archive_cmds=$lt_old_archive_cmds_CXX
22380
22381 # A language specific compiler.
22382 CC=$lt_compiler_CXX
22383
22384 # Is the compiler the GNU compiler?
22385 with_gcc=$GCC_CXX
22386
22387 # Compiler flag to turn off builtin functions.
22388 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22389
22390 # How to pass a linker flag through the compiler.
22391 wl=$lt_lt_prog_compiler_wl_CXX
22392
22393 # Additional compiler flags for building library objects.
22394 pic_flag=$lt_lt_prog_compiler_pic_CXX
22395
22396 # Compiler flag to prevent dynamic linking.
22397 link_static_flag=$lt_lt_prog_compiler_static_CXX
22398
22399 # Does compiler simultaneously support -c and -o options?
22400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22401
22402 # Whether or not to add -lc for building shared libraries.
22403 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22404
22405 # Whether or not to disallow shared libs when runtime libs are static.
22406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22407
22408 # Compiler flag to allow reflexive dlopens.
22409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22410
22411 # Compiler flag to generate shared objects directly from archives.
22412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22413
22414 # Whether the compiler copes with passing no objects directly.
22415 compiler_needs_object=$lt_compiler_needs_object_CXX
22416
22417 # Create an old-style archive from a shared archive.
22418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22419
22420 # Create a temporary old-style archive to link instead of a shared archive.
22421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22422
22423 # Commands used to build a shared archive.
22424 archive_cmds=$lt_archive_cmds_CXX
22425 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22426
22427 # Commands used to build a loadable module if different from building
22428 # a shared archive.
22429 module_cmds=$lt_module_cmds_CXX
22430 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22431
22432 # Whether we are building with GNU ld or not.
22433 with_gnu_ld=$lt_with_gnu_ld_CXX
22434
22435 # Flag that allows shared libraries with undefined symbols to be built.
22436 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22437
22438 # Flag that enforces no undefined symbols.
22439 no_undefined_flag=$lt_no_undefined_flag_CXX
22440
22441 # Flag to hardcode \$libdir into a binary during linking.
22442 # This must work even if \$libdir does not exist
22443 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22444
22445 # If ld is used when linking, flag to hardcode \$libdir into a binary
22446 # during linking.  This must work even if \$libdir does not exist.
22447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22448
22449 # Whether we need a single "-rpath" flag with a separated argument.
22450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22451
22452 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22453 # DIR into the resulting binary.
22454 hardcode_direct=$hardcode_direct_CXX
22455
22456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22457 # DIR into the resulting binary and the resulting library dependency is
22458 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22459 # library is relocated.
22460 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22461
22462 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22463 # into the resulting binary.
22464 hardcode_minus_L=$hardcode_minus_L_CXX
22465
22466 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22467 # into the resulting binary.
22468 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22469
22470 # Set to "yes" if building a shared library automatically hardcodes DIR
22471 # into the library and all subsequent libraries and executables linked
22472 # against it.
22473 hardcode_automatic=$hardcode_automatic_CXX
22474
22475 # Set to yes if linker adds runtime paths of dependent libraries
22476 # to runtime path list.
22477 inherit_rpath=$inherit_rpath_CXX
22478
22479 # Whether libtool must link a program against all its dependency libraries.
22480 link_all_deplibs=$link_all_deplibs_CXX
22481
22482 # Fix the shell variable \$srcfile for the compiler.
22483 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22484
22485 # Set to "yes" if exported symbols are required.
22486 always_export_symbols=$always_export_symbols_CXX
22487
22488 # The commands to list exported symbols.
22489 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22490
22491 # Symbols that should not be listed in the preloaded symbols.
22492 exclude_expsyms=$lt_exclude_expsyms_CXX
22493
22494 # Symbols that must always be exported.
22495 include_expsyms=$lt_include_expsyms_CXX
22496
22497 # Commands necessary for linking programs (against libraries) with templates.
22498 prelink_cmds=$lt_prelink_cmds_CXX
22499
22500 # Specify filename containing input files.
22501 file_list_spec=$lt_file_list_spec_CXX
22502
22503 # How to hardcode a shared library path into an executable.
22504 hardcode_action=$hardcode_action_CXX
22505
22506 # The directories searched by this compiler when creating a shared library.
22507 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22508
22509 # Dependencies to place before and after the objects being linked to
22510 # create a shared library.
22511 predep_objects=$lt_predep_objects_CXX
22512 postdep_objects=$lt_postdep_objects_CXX
22513 predeps=$lt_predeps_CXX
22514 postdeps=$lt_postdeps_CXX
22515
22516 # The library search path used internally by the compiler when linking
22517 # a shared library.
22518 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22519
22520 # ### END LIBTOOL TAG CONFIG: CXX
22521 _LT_EOF
22522
22523  ;;
22524
22525   esac
22526 done # for ac_tag
22527
22528
22529 as_fn_exit 0
22530 _ACEOF
22531 ac_clean_files=$ac_clean_files_save
22532
22533 test $ac_write_fail = 0 ||
22534   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22535
22536
22537 # configure is writing to config.log, and then calls config.status.
22538 # config.status does its own redirection, appending to config.log.
22539 # Unfortunately, on DOS this fails, as config.log is still kept open
22540 # by configure, so config.status won't be able to write to it; its
22541 # output is simply discarded.  So we exec the FD to /dev/null,
22542 # effectively closing config.log, so it can be properly (re)opened and
22543 # appended to by config.status.  When coming back to configure, we
22544 # need to make the FD available again.
22545 if test "$no_create" != yes; then
22546   ac_cs_success=:
22547   ac_config_status_args=
22548   test "$silent" = yes &&
22549     ac_config_status_args="$ac_config_status_args --quiet"
22550   exec 5>/dev/null
22551   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22552   exec 5>>config.log
22553   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22554   # would make configure fail if this is the last instruction.
22555   $ac_cs_success || as_fn_exit $?
22556 fi
22557 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22558   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22559 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22560 fi
22561
22562
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22564 General configuration ================================================
22565
22566     CXX:                      ${CXX}
22567     CXXCPP:                   ${CXXCPP}
22568     CPPFLAGS:                 ${CPPFLAGS}
22569     CXXFLAGS:                 ${CXXFLAGS}
22570     LDFLAGS:                  ${LDFLAGS}
22571
22572     Install path:             ${prefix}
22573
22574     Debug flags               ${DEBUG_CPPFLAGS} ${DEBUG_CXXFLAGS}
22575     Optimization flags        ${OPTIMIZATION_CPPFLAGS} ${OPTIMIZATION_CXXFLAGS}
22576     MMX/SSE/SSE2/SSE3:        ${SIMD_FLAGS}
22577     OpenMP support:           ${OPENMP_CXXFLAGS}
22578     External BLAS & LAPACK:   ${have_native_lapack}
22579
22580 HighGUI configuration ================================================
22581
22582     Windowing system --------------
22583     Use Carbon / Mac OS X:    ${have_carbon}
22584     Use gtk+ 2.x:             ${have_gtk}
22585     Use gthread:              ${have_gthread}
22586
22587     Image I/O ---------------------
22588     Use ImageIO / Mac OS X:   ${have_imageio}
22589     Use libjpeg:              ${have_jpeg}
22590     Use zlib:                 ${have_zlib}
22591     Use libpng:               ${have_png}
22592     Use libtiff:              ${have_tiff}
22593     Use libjasper:            ${have_jasper}
22594     Use libIlmImf/OpenEXR:    ${have_ilmimf}
22595
22596     Video I/O ---------------------
22597     Use QuickTime / Mac OS X: ${have_quicktime}
22598     Use xine:                 ${have_xine}
22599     Use gstreamer:            ${have_gstreamer}
22600     Use ffmpeg:               ${have_ffmpeg}
22601     Use dc1394 & raw1394:     ${have_dc1394}
22602     Use dc1394_v2 & raw1394:  ${have_dc1394_2}
22603     Use v4l:                  ${have_v4l}
22604     Use v4l2:                 ${have_v4l2}
22605     Use unicap:               ${have_unicap}
22606
22607 Wrappers for other languages =========================================
22608
22609     SWIG                      ${SWIG}
22610     Python                    ${have_python}
22611     Octave                    ${have_octave}
22612
22613 Additional build settings ============================================
22614
22615     Build demo apps           ${enable_apps}
22616
22617 Now run make ...
22618 " >&5
22619 $as_echo "
22620 General configuration ================================================
22621
22622     CXX:                      ${CXX}
22623     CXXCPP:                   ${CXXCPP}
22624     CPPFLAGS:                 ${CPPFLAGS}
22625     CXXFLAGS:                 ${CXXFLAGS}
22626     LDFLAGS:                  ${LDFLAGS}
22627
22628     Install path:             ${prefix}
22629
22630     Debug flags               ${DEBUG_CPPFLAGS} ${DEBUG_CXXFLAGS}
22631     Optimization flags        ${OPTIMIZATION_CPPFLAGS} ${OPTIMIZATION_CXXFLAGS}
22632     MMX/SSE/SSE2/SSE3:        ${SIMD_FLAGS}
22633     OpenMP support:           ${OPENMP_CXXFLAGS}
22634     External BLAS & LAPACK:   ${have_native_lapack}
22635
22636 HighGUI configuration ================================================
22637
22638     Windowing system --------------
22639     Use Carbon / Mac OS X:    ${have_carbon}
22640     Use gtk+ 2.x:             ${have_gtk}
22641     Use gthread:              ${have_gthread}
22642
22643     Image I/O ---------------------
22644     Use ImageIO / Mac OS X:   ${have_imageio}
22645     Use libjpeg:              ${have_jpeg}
22646     Use zlib:                 ${have_zlib}
22647     Use libpng:               ${have_png}
22648     Use libtiff:              ${have_tiff}
22649     Use libjasper:            ${have_jasper}
22650     Use libIlmImf/OpenEXR:    ${have_ilmimf}
22651
22652     Video I/O ---------------------
22653     Use QuickTime / Mac OS X: ${have_quicktime}
22654     Use xine:                 ${have_xine}
22655     Use gstreamer:            ${have_gstreamer}
22656     Use ffmpeg:               ${have_ffmpeg}
22657     Use dc1394 & raw1394:     ${have_dc1394}
22658     Use dc1394_v2 & raw1394:  ${have_dc1394_2}
22659     Use v4l:                  ${have_v4l}
22660     Use v4l2:                 ${have_v4l2}
22661     Use unicap:               ${have_unicap}
22662
22663 Wrappers for other languages =========================================
22664
22665     SWIG                      ${SWIG}
22666     Python                    ${have_python}
22667     Octave                    ${have_octave}
22668
22669 Additional build settings ============================================
22670
22671     Build demo apps           ${enable_apps}
22672
22673 Now run make ...
22674 " >&6; }
22675
22676 if test x"$have_xine" = "xyes"; then
22677     { $as_echo "$as_me:${as_lineno-$LINENO}:
22678 ATTENTION: highgui will be built with xine support,
22679            thus it will be a subject to GNU Public License" >&5
22680 $as_echo "$as_me:
22681 ATTENTION: highgui will be built with xine support,
22682            thus it will be a subject to GNU Public License" >&6;}
22683 fi