a8c3962e72befc43d515627b7f607f7acf949b7b
[openjpeg.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for OpenJPEG 1.4.0.
4 #
5 # Report bugs to <http://code.google.com/p/openjpeg/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185   if (eval "$as_required") 2>/dev/null; then :
186   as_have_required=yes
187 else
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197   IFS=$as_save_IFS
198   test -z "$as_dir" && as_dir=.
199   as_found=:
200   case $as_dir in #(
201          /*)
202            for as_base in sh bash ksh sh5; do
203              # Try only shells that exist, to save several forks.
204              as_shell=$as_dir/$as_base
205              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   CONFIG_SHELL=$as_shell as_have_required=yes
208                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   break 2
210 fi
211 fi
212            done;;
213        esac
214   as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218   CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223       if test "x$CONFIG_SHELL" != x; then :
224   # We cannot yet assume a decent shell, so we have to provide a
225         # neutralization value for shells without unset; and this also
226         # works around shells that cannot unset nonexistent variables.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://code.google.com/p/openjpeg/ about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error ERROR [LINENO LOG_FD]
371 # ---------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with status $?, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$?; test $as_status -eq 0 && as_status=1
378   if test "$3"; then
379     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381   fi
382   $as_echo "$as_me: error: $1" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542 test -n "$DJDIR" || exec 7<&0 </dev/null
543 exec 6>&1
544
545 # Name of the host.
546 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550 #
551 # Initializations.
552 #
553 ac_default_prefix=/usr/local
554 ac_clean_files=
555 ac_config_libobj_dir=.
556 LIBOBJS=
557 cross_compiling=no
558 subdirs=
559 MFLAGS=
560 MAKEFLAGS=
561
562 # Identity of this package.
563 PACKAGE_NAME='OpenJPEG'
564 PACKAGE_TARNAME='openjpeg-1.4.0'
565 PACKAGE_VERSION='1.4.0'
566 PACKAGE_STRING='OpenJPEG 1.4.0'
567 PACKAGE_BUGREPORT='http://code.google.com/p/openjpeg/'
568 PACKAGE_URL='http://www.openjpeg.org/'
569
570 ac_unique_file="libopenjpeg/openjpeg.c"
571 # Factoring default headers for most tests.
572 ac_includes_default="\
573 #include <stdio.h>
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
576 #endif
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
579 #endif
580 #ifdef STDC_HEADERS
581 # include <stdlib.h>
582 # include <stddef.h>
583 #else
584 # ifdef HAVE_STDLIB_H
585 #  include <stdlib.h>
586 # endif
587 #endif
588 #ifdef HAVE_STRING_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #  include <memory.h>
591 # endif
592 # include <string.h>
593 #endif
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
596 #endif
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
599 #endif
600 #ifdef HAVE_STDINT_H
601 # include <stdint.h>
602 #endif
603 #ifdef HAVE_UNISTD_H
604 # include <unistd.h>
605 #endif"
606
607 ac_subst_vars='am__EXEEXT_FALSE
608 am__EXEEXT_TRUE
609 LTLIBOBJS
610 LIBOBJS
611 with_doxygen_FALSE
612 with_doxygen_TRUE
613 with_doxygen
614 jp3d_dir
615 with_sharedlibs_FALSE
616 with_sharedlibs_TRUE
617 jpwl_dir
618 with_libjpwl_FALSE
619 with_libjpwl_TRUE
620 lcms1libs
621 lcms1includes
622 with_liblcms1_FALSE
623 with_liblcms1_TRUE
624 lcms2libs
625 lcms2includes
626 with_liblcms2_FALSE
627 with_liblcms2_TRUE
628 tifflibs
629 tiffincludes
630 with_libtiff_FALSE
631 with_libtiff_TRUE
632 pnglibs
633 pngincludes
634 with_libpng_FALSE
635 with_libpng_TRUE
636 LIBPNG_CONFIG
637 PKGCONFIG
638 CXXCPP
639 CPP
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 RANLIB
646 AR
647 NM
648 ac_ct_DUMPBIN
649 DUMPBIN
650 LD
651 FGREP
652 EGREP
653 GREP
654 LIBTOOL
655 OBJDUMP
656 DLLTOOL
657 AS
658 SED
659 LN_S
660 am__fastdepCXX_FALSE
661 am__fastdepCXX_TRUE
662 CXXDEPMODE
663 ac_ct_CXX
664 CXXFLAGS
665 CXX
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 JP3D_BUILD_NR
683 JP3D_MINOR_NR
684 JP3D_MAJOR_NR
685 BUILD_NR
686 MINOR_NR
687 MAJOR_NR
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 AWK
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 target_os
712 target_vendor
713 target_cpu
714 target
715 host_os
716 host_vendor
717 host_cpu
718 host
719 build_os
720 build_vendor
721 build_cpu
722 build
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_dependency_tracking
765 enable_largefile
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 enable_libtool_lock
772 enable_png
773 with_png_includes
774 with_png_libraries
775 enable_tiff
776 with_tiff_includes
777 with_tiff_libraries
778 enable_lcms2
779 with_lcms2_includes
780 with_lcms2_libraries
781 enable_lcms1
782 with_lcms1_includes
783 with_lcms1_libraries
784 enable_jpwl
785 enable_jp3d
786 '
787       ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
795 CXX
796 CXXFLAGS
797 CCC
798 CPP
799 CXXCPP'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854   # If the previous option needs an argument, assign it.
855   if test -n "$ac_prev"; then
856     eval $ac_prev=\$ac_option
857     ac_prev=
858     continue
859   fi
860
861   case $ac_option in
862   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863   *)    ac_optarg=yes ;;
864   esac
865
866   # Accept the important Cygnus configure options, so we can diagnose typos.
867
868   case $ac_dashdash$ac_option in
869   --)
870     ac_dashdash=yes ;;
871
872   -bindir | --bindir | --bindi | --bind | --bin | --bi)
873     ac_prev=bindir ;;
874   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875     bindir=$ac_optarg ;;
876
877   -build | --build | --buil | --bui | --bu)
878     ac_prev=build_alias ;;
879   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880     build_alias=$ac_optarg ;;
881
882   -cache-file | --cache-file | --cache-fil | --cache-fi \
883   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884     ac_prev=cache_file ;;
885   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887     cache_file=$ac_optarg ;;
888
889   --config-cache | -C)
890     cache_file=config.cache ;;
891
892   -datadir | --datadir | --datadi | --datad)
893     ac_prev=datadir ;;
894   -datadir=* | --datadir=* | --datadi=* | --datad=*)
895     datadir=$ac_optarg ;;
896
897   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898   | --dataroo | --dataro | --datar)
899     ac_prev=datarootdir ;;
900   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902     datarootdir=$ac_optarg ;;
903
904   -disable-* | --disable-*)
905     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908       as_fn_error "invalid feature name: $ac_useropt"
909     ac_useropt_orig=$ac_useropt
910     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911     case $ac_user_opts in
912       *"
913 "enable_$ac_useropt"
914 "*) ;;
915       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916          ac_unrecognized_sep=', ';;
917     esac
918     eval enable_$ac_useropt=no ;;
919
920   -docdir | --docdir | --docdi | --doc | --do)
921     ac_prev=docdir ;;
922   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923     docdir=$ac_optarg ;;
924
925   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926     ac_prev=dvidir ;;
927   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928     dvidir=$ac_optarg ;;
929
930   -enable-* | --enable-*)
931     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934       as_fn_error "invalid feature name: $ac_useropt"
935     ac_useropt_orig=$ac_useropt
936     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937     case $ac_user_opts in
938       *"
939 "enable_$ac_useropt"
940 "*) ;;
941       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942          ac_unrecognized_sep=', ';;
943     esac
944     eval enable_$ac_useropt=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138       as_fn_error "invalid package name: $ac_useropt"
1139     ac_useropt_orig=$ac_useropt
1140     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141     case $ac_user_opts in
1142       *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146          ac_unrecognized_sep=', ';;
1147     esac
1148     eval with_$ac_useropt=\$ac_optarg ;;
1149
1150   -without-* | --without-*)
1151     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154       as_fn_error "invalid package name: $ac_useropt"
1155     ac_useropt_orig=$ac_useropt
1156     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157     case $ac_user_opts in
1158       *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162          ac_unrecognized_sep=', ';;
1163     esac
1164     eval with_$ac_useropt=no ;;
1165
1166   --x)
1167     # Obsolete; use --with-x.
1168     with_x=yes ;;
1169
1170   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171   | --x-incl | --x-inc | --x-in | --x-i)
1172     ac_prev=x_includes ;;
1173   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175     x_includes=$ac_optarg ;;
1176
1177   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179     ac_prev=x_libraries ;;
1180   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182     x_libraries=$ac_optarg ;;
1183
1184   -*) as_fn_error "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information."
1186     ;;
1187
1188   *=*)
1189     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190     # Reject names that are not valid shell variable names.
1191     case $ac_envvar in #(
1192       '' | [0-9]* | *[!_$as_cr_alnum]* )
1193       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1194     esac
1195     eval $ac_envvar=\$ac_optarg
1196     export $ac_envvar ;;
1197
1198   *)
1199     # FIXME: should be removed in autoconf 3.0.
1200     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204     ;;
1205
1206   esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211   as_fn_error "missing argument to $ac_option"
1212 fi
1213
1214 if test -n "$ac_unrecognized_opts"; then
1215   case $enable_option_checking in
1216     no) ;;
1217     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1218     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219   esac
1220 fi
1221
1222 # Check all directory arguments for consistency.
1223 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224                 datadir sysconfdir sharedstatedir localstatedir includedir \
1225                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226                 libdir localedir mandir
1227 do
1228   eval ac_val=\$$ac_var
1229   # Remove trailing slashes.
1230   case $ac_val in
1231     */ )
1232       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233       eval $ac_var=\$ac_val;;
1234   esac
1235   # Be sure to have absolute directory names.
1236   case $ac_val in
1237     [\\/$]* | ?:[\\/]* )  continue;;
1238     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239   esac
1240   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1242
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1249
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252   if test "x$build_alias" = x; then
1253     cross_compiling=maybe
1254     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1255     If a cross compiler is detected then cross compile mode will be used." >&2
1256   elif test "x$build_alias" != "x$host_alias"; then
1257     cross_compiling=yes
1258   fi
1259 fi
1260
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264 test "$silent" = yes && exec 6>/dev/null
1265
1266
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270   as_fn_error "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272   as_fn_error "pwd does not report name of working directory"
1273
1274
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277   ac_srcdir_defaulted=yes
1278   # Try the directory containing this script, then the parent directory.
1279   ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281          X"$as_myself" : 'X\(//\)[^/]' \| \
1282          X"$as_myself" : 'X\(//\)$' \| \
1283          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286             s//\1/
1287             q
1288           }
1289           /^X\(\/\/\)[^/].*/{
1290             s//\1/
1291             q
1292           }
1293           /^X\(\/\/\)$/{
1294             s//\1/
1295             q
1296           }
1297           /^X\(\/\).*/{
1298             s//\1/
1299             q
1300           }
1301           s/.*/./; q'`
1302   srcdir=$ac_confdir
1303   if test ! -r "$srcdir/$ac_unique_file"; then
1304     srcdir=..
1305   fi
1306 else
1307   ac_srcdir_defaulted=no
1308 fi
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1312 fi
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1316         pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319   srcdir=.
1320 fi
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329   eval ac_env_${ac_var}_value=\$${ac_var}
1330   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1333
1334 #
1335 # Report the --help message.
1336 #
1337 if test "$ac_init_help" = "long"; then
1338   # Omit some internal or obsolete options to make the list less imposing.
1339   # This message is too long to be a string in the A/UX 3.1 sh.
1340   cat <<_ACEOF
1341 \`configure' configures OpenJPEG 1.4.0 to adapt to many kinds of systems.
1342
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE.  See below for descriptions of some of the useful variables.
1347
1348 Defaults for the options are specified in brackets.
1349
1350 Configuration:
1351   -h, --help              display this help and exit
1352       --help=short        display options specific to this package
1353       --help=recursive    display the short help of all the included packages
1354   -V, --version           display version information and exit
1355   -q, --quiet, --silent   do not print \`checking...' messages
1356       --cache-file=FILE   cache test results in FILE [disabled]
1357   -C, --config-cache      alias for \`--cache-file=config.cache'
1358   -n, --no-create         do not create output files
1359       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1360
1361 Installation directories:
1362   --prefix=PREFIX         install architecture-independent files in PREFIX
1363                           [$ac_default_prefix]
1364   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1365                           [PREFIX]
1366
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1371
1372 For better control, use the options below.
1373
1374 Fine tuning of the installation directories:
1375   --bindir=DIR            user executables [EPREFIX/bin]
1376   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1377   --libexecdir=DIR        program executables [EPREFIX/libexec]
1378   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1379   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1380   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1381   --libdir=DIR            object code libraries [EPREFIX/lib]
1382   --includedir=DIR        C header files [PREFIX/include]
1383   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1384   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1385   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1386   --infodir=DIR           info documentation [DATAROOTDIR/info]
1387   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1388   --mandir=DIR            man documentation [DATAROOTDIR/man]
1389   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjpeg-1.4.0]
1390   --htmldir=DIR           html documentation [DOCDIR]
1391   --dvidir=DIR            dvi documentation [DOCDIR]
1392   --pdfdir=DIR            pdf documentation [DOCDIR]
1393   --psdir=DIR             ps documentation [DOCDIR]
1394 _ACEOF
1395
1396   cat <<\_ACEOF
1397
1398 Program names:
1399   --program-prefix=PREFIX            prepend PREFIX to installed program names
1400   --program-suffix=SUFFIX            append SUFFIX to installed program names
1401   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1402
1403 System types:
1404   --build=BUILD     configure for building on BUILD [guessed]
1405   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1406   --target=TARGET   configure for building compilers for TARGET [HOST]
1407 _ACEOF
1408 fi
1409
1410 if test -n "$ac_init_help"; then
1411   case $ac_init_help in
1412      short | recursive ) echo "Configuration of OpenJPEG 1.4.0:";;
1413    esac
1414   cat <<\_ACEOF
1415
1416 Optional Features:
1417   --disable-option-checking  ignore unrecognized --enable/--with options
1418   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1419   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1420   --disable-dependency-tracking  speeds up one-time build
1421   --enable-dependency-tracking   do not reject slow dependency extractors
1422   --disable-largefile     omit support for large files
1423   --enable-shared[=PKGS]  build shared libraries [default=yes]
1424   --enable-static[=PKGS]  build static libraries [default=yes]
1425   --enable-fast-install[=PKGS]
1426                           optimize for fast installation [default=yes]
1427   --disable-libtool-lock  avoid locking (might break parallel builds)
1428   --enable-png=[yes|no]          Build with PNG support  [default=yes]
1429   --enable-tiff=[yes|no]         Build with TIFF support  [default=yes]
1430   --enable-lcms2=[yes|no]        Build with LCMS-2 support  [default=yes]
1431   --enable-lcms1=[yes|no]        Build with LCMS-1 support  [default=yes]
1432   --enable-jpwl=[yes|no]         Build with JPWL support  [default=no]
1433   --enable-shared=[yes|no]       Build shared libs  [default=yes]
1434   --enable-jp3d=[yes|no]         Build jp3d libs  [default=no]
1435
1436 Optional Packages:
1437   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439   --with-pic              try to use only PIC/non-PIC objects [default=use
1440                           both]
1441   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1442   --with-png-includes=DIR         PNG includes in nonstandard DIR
1443   --with-png-libraries=DIR        PNG library in nonstandard DIR
1444   --with-tiff-includes=DIR        TIFF includes in nonstandard DIR
1445   --with-tiff-libraries=DIR       TIFF library in nonstandard DIR
1446   --with-lcms2-includes=DIR       LCMS-2 includes in nonstandard DIR
1447   --with-lcms2-libraries=DIR      LCMS-2 library in nonstandard DIR
1448   --with-lcms1-includes=DIR       LCMS-1 includes in nonstandard DIR
1449   --with-lcms1-libraries=DIR      LCMS-1 library in nonstandard DIR
1450
1451 Some influential environment variables:
1452   CC          C compiler command
1453   CFLAGS      C compiler flags
1454   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455               nonstandard directory <lib dir>
1456   LIBS        libraries to pass to the linker, e.g. -l<library>
1457   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458               you have headers in a nonstandard directory <include dir>
1459   CXX         C++ compiler command
1460   CXXFLAGS    C++ compiler flags
1461   CPP         C preprocessor
1462   CXXCPP      C++ preprocessor
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to <http://code.google.com/p/openjpeg/>.
1468 OpenJPEG home page: <http://www.openjpeg.org/>.
1469 _ACEOF
1470 ac_status=$?
1471 fi
1472
1473 if test "$ac_init_help" = "recursive"; then
1474   # If there are subdirs, report their specific --help.
1475   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476     test -d "$ac_dir" ||
1477       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478       continue
1479     ac_builddir=.
1480
1481 case "$ac_dir" in
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *)
1484   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1485   # A ".." for each directory in $ac_dir_suffix.
1486   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1487   case $ac_top_builddir_sub in
1488   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490   esac ;;
1491 esac
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1496
1497 case $srcdir in
1498   .)  # We are building in place.
1499     ac_srcdir=.
1500     ac_top_srcdir=$ac_top_builddir_sub
1501     ac_abs_top_srcdir=$ac_pwd ;;
1502   [\\/]* | ?:[\\/]* )  # Absolute name.
1503     ac_srcdir=$srcdir$ac_dir_suffix;
1504     ac_top_srcdir=$srcdir
1505     ac_abs_top_srcdir=$srcdir ;;
1506   *) # Relative name.
1507     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508     ac_top_srcdir=$ac_top_build_prefix$srcdir
1509     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 esac
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512
1513     cd "$ac_dir" || { ac_status=$?; continue; }
1514     # Check for guested configure.
1515     if test -f "$ac_srcdir/configure.gnu"; then
1516       echo &&
1517       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518     elif test -f "$ac_srcdir/configure"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure" --help=recursive
1521     else
1522       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523     fi || ac_status=$?
1524     cd "$ac_pwd" || { ac_status=$?; break; }
1525   done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530   cat <<\_ACEOF
1531 OpenJPEG configure 1.4.0
1532 generated by GNU Autoconf 2.65
1533
1534 Copyright (C) 2009 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538   exit
1539 fi
1540
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1544
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1549 {
1550   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551   rm -f conftest.$ac_objext
1552   if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555   *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559   (eval "$ac_compile") 2>conftest.err
1560   ac_status=$?
1561   if test -s conftest.err; then
1562     grep -v '^ *+' conftest.err >conftest.er1
1563     cat conftest.er1 >&5
1564     mv -f conftest.er1 conftest.err
1565   fi
1566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567   test $ac_status = 0; } && {
1568          test -z "$ac_c_werror_flag" ||
1569          test ! -s conftest.err
1570        } && test -s conftest.$ac_objext; then :
1571   ac_retval=0
1572 else
1573   $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1575
1576         ac_retval=1
1577 fi
1578   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579   as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_compile
1582
1583 # ac_fn_cxx_try_compile LINENO
1584 # ----------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_cxx_try_compile ()
1587 {
1588   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589   rm -f conftest.$ac_objext
1590   if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593   *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597   (eval "$ac_compile") 2>conftest.err
1598   ac_status=$?
1599   if test -s conftest.err; then
1600     grep -v '^ *+' conftest.err >conftest.er1
1601     cat conftest.er1 >&5
1602     mv -f conftest.er1 conftest.err
1603   fi
1604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605   test $ac_status = 0; } && {
1606          test -z "$ac_cxx_werror_flag" ||
1607          test ! -s conftest.err
1608        } && test -s conftest.$ac_objext; then :
1609   ac_retval=0
1610 else
1611   $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614         ac_retval=1
1615 fi
1616   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617   as_fn_set_status $ac_retval
1618
1619 } # ac_fn_cxx_try_compile
1620
1621 # ac_fn_c_try_link LINENO
1622 # -----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_link ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   rm -f conftest.$ac_objext conftest$ac_exeext
1628   if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631   *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635   (eval "$ac_link") 2>conftest.err
1636   ac_status=$?
1637   if test -s conftest.err; then
1638     grep -v '^ *+' conftest.err >conftest.er1
1639     cat conftest.er1 >&5
1640     mv -f conftest.er1 conftest.err
1641   fi
1642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643   test $ac_status = 0; } && {
1644          test -z "$ac_c_werror_flag" ||
1645          test ! -s conftest.err
1646        } && test -s conftest$ac_exeext && {
1647          test "$cross_compiling" = yes ||
1648          $as_test_x conftest$ac_exeext
1649        }; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655         ac_retval=1
1656 fi
1657   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1658   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1659   # interfere with the next link command; also delete a directory that is
1660   # left behind by Apple's compiler.  We do this before executing the actions.
1661   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663   as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_link
1666
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1672 {
1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1677   $as_echo_n "(cached) " >&6
1678 else
1679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h.  */
1681 $4
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685   eval "$3=yes"
1686 else
1687   eval "$3=no"
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 fi
1691 eval ac_res=\$$3
1692                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695
1696 } # ac_fn_c_check_header_compile
1697
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_c_try_cpp ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   if { { ac_try="$ac_cpp conftest.$ac_ext"
1705 case "(($ac_try" in
1706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707   *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712   ac_status=$?
1713   if test -s conftest.err; then
1714     grep -v '^ *+' conftest.err >conftest.er1
1715     cat conftest.er1 >&5
1716     mv -f conftest.er1 conftest.err
1717   fi
1718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719   test $ac_status = 0; } >/dev/null && {
1720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721          test ! -s conftest.err
1722        }; then :
1723   ac_retval=0
1724 else
1725   $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728     ac_retval=1
1729 fi
1730   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731   as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_cpp
1734
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1739 ac_fn_c_try_run ()
1740 {
1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742   if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745   *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749   (eval "$ac_link") 2>&5
1750   ac_status=$?
1751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753   { { case "(($ac_try" in
1754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755   *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759   (eval "$ac_try") 2>&5
1760   ac_status=$?
1761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762   test $ac_status = 0; }; }; then :
1763   ac_retval=0
1764 else
1765   $as_echo "$as_me: program exited with status $ac_status" >&5
1766        $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769        ac_retval=$ac_status
1770 fi
1771   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773   as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_run
1776
1777 # ac_fn_c_check_func LINENO FUNC VAR
1778 # ----------------------------------
1779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780 ac_fn_c_check_func ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786   $as_echo_n "(cached) " >&6
1787 else
1788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h.  */
1790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1792 #define $2 innocuous_$2
1793
1794 /* System header to define __stub macros and hopefully few prototypes,
1795     which can conflict with char $2 (); below.
1796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797     <limits.h> exists even on freestanding compilers.  */
1798
1799 #ifdef __STDC__
1800 # include <limits.h>
1801 #else
1802 # include <assert.h>
1803 #endif
1804
1805 #undef $2
1806
1807 /* Override any GCC internal prototype to avoid an error.
1808    Use char because int might match the return type of a GCC
1809    builtin and then its argument prototype would still apply.  */
1810 #ifdef __cplusplus
1811 extern "C"
1812 #endif
1813 char $2 ();
1814 /* The GNU C library defines this for functions which it implements
1815     to always fail with ENOSYS.  Some functions are actually named
1816     something starting with __ and the normal name is an alias.  */
1817 #if defined __stub_$2 || defined __stub___$2
1818 choke me
1819 #endif
1820
1821 int
1822 main ()
1823 {
1824 return $2 ();
1825   ;
1826   return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_link "$LINENO"; then :
1830   eval "$3=yes"
1831 else
1832   eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext \
1835     conftest$ac_exeext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841
1842 } # ac_fn_c_check_func
1843
1844 # ac_fn_cxx_try_cpp LINENO
1845 # ------------------------
1846 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_cxx_try_cpp ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   if { { ac_try="$ac_cpp conftest.$ac_ext"
1851 case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1858   ac_status=$?
1859   if test -s conftest.err; then
1860     grep -v '^ *+' conftest.err >conftest.er1
1861     cat conftest.er1 >&5
1862     mv -f conftest.er1 conftest.err
1863   fi
1864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865   test $ac_status = 0; } >/dev/null && {
1866          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1867          test ! -s conftest.err
1868        }; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874     ac_retval=1
1875 fi
1876   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877   as_fn_set_status $ac_retval
1878
1879 } # ac_fn_cxx_try_cpp
1880
1881 # ac_fn_cxx_try_link LINENO
1882 # -------------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_link ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   rm -f conftest.$ac_objext conftest$ac_exeext
1888   if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891   *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895   (eval "$ac_link") 2>conftest.err
1896   ac_status=$?
1897   if test -s conftest.err; then
1898     grep -v '^ *+' conftest.err >conftest.er1
1899     cat conftest.er1 >&5
1900     mv -f conftest.er1 conftest.err
1901   fi
1902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903   test $ac_status = 0; } && {
1904          test -z "$ac_cxx_werror_flag" ||
1905          test ! -s conftest.err
1906        } && test -s conftest$ac_exeext && {
1907          test "$cross_compiling" = yes ||
1908          $as_test_x conftest$ac_exeext
1909        }; then :
1910   ac_retval=0
1911 else
1912   $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915         ac_retval=1
1916 fi
1917   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919   # interfere with the next link command; also delete a directory that is
1920   # left behind by Apple's compiler.  We do this before executing the actions.
1921   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923   as_fn_set_status $ac_retval
1924
1925 } # ac_fn_cxx_try_link
1926
1927 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1930 # the include files in INCLUDES and setting the cache variable VAR
1931 # accordingly.
1932 ac_fn_c_check_header_mongrel ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939   $as_echo_n "(cached) " >&6
1940 fi
1941 eval ac_res=\$$3
1942                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 else
1945   # Is the header compilable?
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1947 $as_echo_n "checking $2 usability... " >&6; }
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h.  */
1950 $4
1951 #include <$2>
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954   ac_header_compiler=yes
1955 else
1956   ac_header_compiler=no
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1960 $as_echo "$ac_header_compiler" >&6; }
1961
1962 # Is the header present?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1964 $as_echo_n "checking $2 presence... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h.  */
1967 #include <$2>
1968 _ACEOF
1969 if ac_fn_c_try_cpp "$LINENO"; then :
1970   ac_header_preproc=yes
1971 else
1972   ac_header_preproc=no
1973 fi
1974 rm -f conftest.err conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1976 $as_echo "$ac_header_preproc" >&6; }
1977
1978 # So?  What about this header?
1979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1980   yes:no: )
1981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1982 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1983     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985     ;;
1986   no:yes:* )
1987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1988 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1989     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1990 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1992 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1994 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 ( cat <<\_ASBOX
1998 ## ------------------------------------------------- ##
1999 ## Report this to http://code.google.com/p/openjpeg/ ##
2000 ## ------------------------------------------------- ##
2001 _ASBOX
2002      ) | sed "s/^/$as_me: WARNING:     /" >&2
2003     ;;
2004 esac
2005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008   $as_echo_n "(cached) " >&6
2009 else
2010   eval "$3=\$ac_header_compiler"
2011 fi
2012 eval ac_res=\$$3
2013                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 fi
2016   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017
2018 } # ac_fn_c_check_header_mongrel
2019 cat >config.log <<_ACEOF
2020 This file contains any messages produced by compilers while
2021 running configure, to aid debugging if configure makes a mistake.
2022
2023 It was created by OpenJPEG $as_me 1.4.0, which was
2024 generated by GNU Autoconf 2.65.  Invocation command line was
2025
2026   $ $0 $@
2027
2028 _ACEOF
2029 exec 5>>config.log
2030 {
2031 cat <<_ASUNAME
2032 ## --------- ##
2033 ## Platform. ##
2034 ## --------- ##
2035
2036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2041
2042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2043 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2044
2045 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2046 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2048 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2049 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2050 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2051 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2052
2053 _ASUNAME
2054
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060     $as_echo "PATH: $as_dir"
2061   done
2062 IFS=$as_save_IFS
2063
2064 } >&5
2065
2066 cat >&5 <<_ACEOF
2067
2068
2069 ## ----------- ##
2070 ## Core tests. ##
2071 ## ----------- ##
2072
2073 _ACEOF
2074
2075
2076 # Keep a trace of the command line.
2077 # Strip out --no-create and --no-recursion so they do not pile up.
2078 # Strip out --silent because we don't want to record it for future runs.
2079 # Also quote any args containing shell meta-characters.
2080 # Make two passes to allow for proper duplicate-argument suppression.
2081 ac_configure_args=
2082 ac_configure_args0=
2083 ac_configure_args1=
2084 ac_must_keep_next=false
2085 for ac_pass in 1 2
2086 do
2087   for ac_arg
2088   do
2089     case $ac_arg in
2090     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2091     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2092     | -silent | --silent | --silen | --sile | --sil)
2093       continue ;;
2094     *\'*)
2095       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2096     esac
2097     case $ac_pass in
2098     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2099     2)
2100       as_fn_append ac_configure_args1 " '$ac_arg'"
2101       if test $ac_must_keep_next = true; then
2102         ac_must_keep_next=false # Got value, back to normal.
2103       else
2104         case $ac_arg in
2105           *=* | --config-cache | -C | -disable-* | --disable-* \
2106           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2107           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2108           | -with-* | --with-* | -without-* | --without-* | --x)
2109             case "$ac_configure_args0 " in
2110               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2111             esac
2112             ;;
2113           -* ) ac_must_keep_next=true ;;
2114         esac
2115       fi
2116       as_fn_append ac_configure_args " '$ac_arg'"
2117       ;;
2118     esac
2119   done
2120 done
2121 { ac_configure_args0=; unset ac_configure_args0;}
2122 { ac_configure_args1=; unset ac_configure_args1;}
2123
2124 # When interrupted or exit'd, cleanup temporary files, and complete
2125 # config.log.  We remove comments because anyway the quotes in there
2126 # would cause problems or look ugly.
2127 # WARNING: Use '\'' to represent an apostrophe within the trap.
2128 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2129 trap 'exit_status=$?
2130   # Save into config.log some information that might help in debugging.
2131   {
2132     echo
2133
2134     cat <<\_ASBOX
2135 ## ---------------- ##
2136 ## Cache variables. ##
2137 ## ---------------- ##
2138 _ASBOX
2139     echo
2140     # The following way of writing the cache mishandles newlines in values,
2141 (
2142   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2143     eval ac_val=\$$ac_var
2144     case $ac_val in #(
2145     *${as_nl}*)
2146       case $ac_var in #(
2147       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2148 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2149       esac
2150       case $ac_var in #(
2151       _ | IFS | as_nl) ;; #(
2152       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2153       *) { eval $ac_var=; unset $ac_var;} ;;
2154       esac ;;
2155     esac
2156   done
2157   (set) 2>&1 |
2158     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2159     *${as_nl}ac_space=\ *)
2160       sed -n \
2161         "s/'\''/'\''\\\\'\'''\''/g;
2162           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2163       ;; #(
2164     *)
2165       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2166       ;;
2167     esac |
2168     sort
2169 )
2170     echo
2171
2172     cat <<\_ASBOX
2173 ## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##
2176 _ASBOX
2177     echo
2178     for ac_var in $ac_subst_vars
2179     do
2180       eval ac_val=\$$ac_var
2181       case $ac_val in
2182       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2183       esac
2184       $as_echo "$ac_var='\''$ac_val'\''"
2185     done | sort
2186     echo
2187
2188     if test -n "$ac_subst_files"; then
2189       cat <<\_ASBOX
2190 ## ------------------- ##
2191 ## File substitutions. ##
2192 ## ------------------- ##
2193 _ASBOX
2194       echo
2195       for ac_var in $ac_subst_files
2196       do
2197         eval ac_val=\$$ac_var
2198         case $ac_val in
2199         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200         esac
2201         $as_echo "$ac_var='\''$ac_val'\''"
2202       done | sort
2203       echo
2204     fi
2205
2206     if test -s confdefs.h; then
2207       cat <<\_ASBOX
2208 ## ----------- ##
2209 ## confdefs.h. ##
2210 ## ----------- ##
2211 _ASBOX
2212       echo
2213       cat confdefs.h
2214       echo
2215     fi
2216     test "$ac_signal" != 0 &&
2217       $as_echo "$as_me: caught signal $ac_signal"
2218     $as_echo "$as_me: exit $exit_status"
2219   } >&5
2220   rm -f core *.core core.conftest.* &&
2221     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2222     exit $exit_status
2223 ' 0
2224 for ac_signal in 1 2 13 15; do
2225   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2226 done
2227 ac_signal=0
2228
2229 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2230 rm -f -r conftest* confdefs.h
2231
2232 $as_echo "/* confdefs.h */" > confdefs.h
2233
2234 # Predefined preprocessor variables.
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_NAME "$PACKAGE_NAME"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_STRING "$PACKAGE_STRING"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2254 _ACEOF
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_URL "$PACKAGE_URL"
2258 _ACEOF
2259
2260
2261 # Let the site file select an alternate cache file if it wants to.
2262 # Prefer an explicitly selected file to automatically selected ones.
2263 ac_site_file1=NONE
2264 ac_site_file2=NONE
2265 if test -n "$CONFIG_SITE"; then
2266   ac_site_file1=$CONFIG_SITE
2267 elif test "x$prefix" != xNONE; then
2268   ac_site_file1=$prefix/share/config.site
2269   ac_site_file2=$prefix/etc/config.site
2270 else
2271   ac_site_file1=$ac_default_prefix/share/config.site
2272   ac_site_file2=$ac_default_prefix/etc/config.site
2273 fi
2274 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2275 do
2276   test "x$ac_site_file" = xNONE && continue
2277   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2278     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2279 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2280     sed 's/^/| /' "$ac_site_file" >&5
2281     . "$ac_site_file"
2282   fi
2283 done
2284
2285 if test -r "$cache_file"; then
2286   # Some versions of bash will fail to source /dev/null (special files
2287   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2288   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2289     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2290 $as_echo "$as_me: loading cache $cache_file" >&6;}
2291     case $cache_file in
2292       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2293       *)                      . "./$cache_file";;
2294     esac
2295   fi
2296 else
2297   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2298 $as_echo "$as_me: creating cache $cache_file" >&6;}
2299   >$cache_file
2300 fi
2301
2302 # Check that the precious variables saved in the cache have kept the same
2303 # value.
2304 ac_cache_corrupted=false
2305 for ac_var in $ac_precious_vars; do
2306   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2307   eval ac_new_set=\$ac_env_${ac_var}_set
2308   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2309   eval ac_new_val=\$ac_env_${ac_var}_value
2310   case $ac_old_set,$ac_new_set in
2311     set,)
2312       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2313 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2314       ac_cache_corrupted=: ;;
2315     ,set)
2316       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2318       ac_cache_corrupted=: ;;
2319     ,);;
2320     *)
2321       if test "x$ac_old_val" != "x$ac_new_val"; then
2322         # differences in whitespace do not lead to failure.
2323         ac_old_val_w=`echo x $ac_old_val`
2324         ac_new_val_w=`echo x $ac_new_val`
2325         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2326           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2327 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328           ac_cache_corrupted=:
2329         else
2330           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2331 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2332           eval $ac_var=\$ac_old_val
2333         fi
2334         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2335 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2336         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2337 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2338       fi;;
2339   esac
2340   # Pass precious variables to config.status.
2341   if test "$ac_new_set" = set; then
2342     case $ac_new_val in
2343     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2344     *) ac_arg=$ac_var=$ac_new_val ;;
2345     esac
2346     case " $ac_configure_args " in
2347       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2348       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2349     esac
2350   fi
2351 done
2352 if $ac_cache_corrupted; then
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2356 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2357   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2358 fi
2359 ## -------------------- ##
2360 ## Main body of script. ##
2361 ## -------------------- ##
2362
2363 ac_ext=c
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368
2369
2370
2371 ac_config_headers="$ac_config_headers opj_config.h"
2372
2373 #
2374 ac_aux_dir=
2375 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2376   for ac_t in install-sh install.sh shtool; do
2377     if test -f "$ac_dir/$ac_t"; then
2378       ac_aux_dir=$ac_dir
2379       ac_install_sh="$ac_aux_dir/$ac_t -c"
2380       break 2
2381     fi
2382   done
2383 done
2384 if test -z "$ac_aux_dir"; then
2385   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2386 fi
2387
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2394 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2395
2396
2397 # Make sure we can run config.sub.
2398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2399   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2400
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402 $as_echo_n "checking build system type... " >&6; }
2403 if test "${ac_cv_build+set}" = set; then :
2404   $as_echo_n "(cached) " >&6
2405 else
2406   ac_build_alias=$build_alias
2407 test "x$ac_build_alias" = x &&
2408   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2409 test "x$ac_build_alias" = x &&
2410   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2413
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416 $as_echo "$ac_cv_build" >&6; }
2417 case $ac_cv_build in
2418 *-*-*) ;;
2419 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2420 esac
2421 build=$ac_cv_build
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_build
2424 shift
2425 build_cpu=$1
2426 build_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 build_os=$*
2431 IFS=$ac_save_IFS
2432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2433
2434
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2436 $as_echo_n "checking host system type... " >&6; }
2437 if test "${ac_cv_host+set}" = set; then :
2438   $as_echo_n "(cached) " >&6
2439 else
2440   if test "x$host_alias" = x; then
2441   ac_cv_host=$ac_cv_build
2442 else
2443   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2444     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445 fi
2446
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2449 $as_echo "$ac_cv_host" >&6; }
2450 case $ac_cv_host in
2451 *-*-*) ;;
2452 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2453 esac
2454 host=$ac_cv_host
2455 ac_save_IFS=$IFS; IFS='-'
2456 set x $ac_cv_host
2457 shift
2458 host_cpu=$1
2459 host_vendor=$2
2460 shift; shift
2461 # Remember, the first character of IFS is used to create $*,
2462 # except with old shells:
2463 host_os=$*
2464 IFS=$ac_save_IFS
2465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466
2467
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2469 $as_echo_n "checking target system type... " >&6; }
2470 if test "${ac_cv_target+set}" = set; then :
2471   $as_echo_n "(cached) " >&6
2472 else
2473   if test "x$target_alias" = x; then
2474   ac_cv_target=$ac_cv_host
2475 else
2476   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2477     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2478 fi
2479
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2482 $as_echo "$ac_cv_target" >&6; }
2483 case $ac_cv_target in
2484 *-*-*) ;;
2485 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2486 esac
2487 target=$ac_cv_target
2488 ac_save_IFS=$IFS; IFS='-'
2489 set x $ac_cv_target
2490 shift
2491 target_cpu=$1
2492 target_vendor=$2
2493 shift; shift
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2496 target_os=$*
2497 IFS=$ac_save_IFS
2498 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2499
2500
2501 # The aliases save the names the user supplied, while $host etc.
2502 # will get canonicalized.
2503 test -n "$target_alias" &&
2504   test "$program_prefix$program_suffix$program_transform_name" = \
2505     NONENONEs,x,x, &&
2506   program_prefix=${target_alias}-
2507
2508 #foreign:package will not follow the GNU Standards
2509 am__api_version='1.11'
2510
2511 # Find a good install program.  We prefer a C program (faster),
2512 # so one script is as good as another.  But avoid the broken or
2513 # incompatible versions:
2514 # SysV /etc/install, /usr/sbin/install
2515 # SunOS /usr/etc/install
2516 # IRIX /sbin/install
2517 # AIX /bin/install
2518 # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # OS/2's system install, which has a completely different semantic
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 # Reject install programs that cannot install multiple files.
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2527 if test -z "$INSTALL"; then
2528 if test "${ac_cv_path_install+set}" = set; then :
2529   $as_echo_n "(cached) " >&6
2530 else
2531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536     # Account for people who put trailing slashes in PATH elements.
2537 case $as_dir/ in #((
2538   ./ | .// | /[cC]/* | \
2539   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2540   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2541   /usr/ucb/* ) ;;
2542   *)
2543     # OSF1 and SCO ODT 3.0 have their own names for install.
2544     # Don't use installbsd from OSF since it installs stuff as root
2545     # by default.
2546     for ac_prog in ginstall scoinst install; do
2547       for ac_exec_ext in '' $ac_executable_extensions; do
2548         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2549           if test $ac_prog = install &&
2550             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551             # AIX install.  It has an incompatible calling convention.
2552             :
2553           elif test $ac_prog = install &&
2554             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555             # program-specific install script used by HP pwplus--don't use.
2556             :
2557           else
2558             rm -rf conftest.one conftest.two conftest.dir
2559             echo one > conftest.one
2560             echo two > conftest.two
2561             mkdir conftest.dir
2562             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2563               test -s conftest.one && test -s conftest.two &&
2564               test -s conftest.dir/conftest.one &&
2565               test -s conftest.dir/conftest.two
2566             then
2567               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2568               break 3
2569             fi
2570           fi
2571         fi
2572       done
2573     done
2574     ;;
2575 esac
2576
2577   done
2578 IFS=$as_save_IFS
2579
2580 rm -rf conftest.one conftest.two conftest.dir
2581
2582 fi
2583   if test "${ac_cv_path_install+set}" = set; then
2584     INSTALL=$ac_cv_path_install
2585   else
2586     # As a last resort, use the slow shell script.  Don't cache a
2587     # value for INSTALL within a source directory, because that will
2588     # break other packages using the cache if that directory is
2589     # removed, or if the value is a relative name.
2590     INSTALL=$ac_install_sh
2591   fi
2592 fi
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594 $as_echo "$INSTALL" >&6; }
2595
2596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597 # It thinks the first close brace ends the variable substitution.
2598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2599
2600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2601
2602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2605 $as_echo_n "checking whether build environment is sane... " >&6; }
2606 # Just in case
2607 sleep 1
2608 echo timestamp > conftest.file
2609 # Reject unsafe characters in $srcdir or the absolute working directory
2610 # name.  Accept space and tab only in the latter.
2611 am_lf='
2612 '
2613 case `pwd` in
2614   *[\\\"\#\$\&\'\`$am_lf]*)
2615     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2616 esac
2617 case $srcdir in
2618   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2619     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2620 esac
2621
2622 # Do `set' in a subshell so we don't clobber the current shell's
2623 # arguments.  Must try -L first in case configure is actually a
2624 # symlink; some systems play weird games with the mod time of symlinks
2625 # (eg FreeBSD returns the mod time of the symlink's containing
2626 # directory).
2627 if (
2628    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2629    if test "$*" = "X"; then
2630       # -L didn't work.
2631       set X `ls -t "$srcdir/configure" conftest.file`
2632    fi
2633    rm -f conftest.file
2634    if test "$*" != "X $srcdir/configure conftest.file" \
2635       && test "$*" != "X conftest.file $srcdir/configure"; then
2636
2637       # If neither matched, then we have a broken ls.  This can happen
2638       # if, for instance, CONFIG_SHELL is bash and it inherits a
2639       # broken ls alias from the environment.  This has actually
2640       # happened.  Such a system could not be considered "sane".
2641       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2642 alias in your environment" "$LINENO" 5
2643    fi
2644
2645    test "$2" = conftest.file
2646    )
2647 then
2648    # Ok.
2649    :
2650 else
2651    as_fn_error "newly created file is older than distributed files!
2652 Check your system clock" "$LINENO" 5
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2655 $as_echo "yes" >&6; }
2656 test "$program_prefix" != NONE &&
2657   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2658 # Use a double $ so make ignores it.
2659 test "$program_suffix" != NONE &&
2660   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2661 # Double any \ or $.
2662 # By default was `s,x,x', remove it if useless.
2663 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2664 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2665
2666 # expand $ac_aux_dir to an absolute path
2667 am_aux_dir=`cd $ac_aux_dir && pwd`
2668
2669 if test x"${MISSING+set}" != xset; then
2670   case $am_aux_dir in
2671   *\ * | *\     *)
2672     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2673   *)
2674     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2675   esac
2676 fi
2677 # Use eval to expand $SHELL
2678 if eval "$MISSING --run true"; then
2679   am_missing_run="$MISSING --run "
2680 else
2681   am_missing_run=
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2683 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2684 fi
2685
2686 if test x"${install_sh}" != xset; then
2687   case $am_aux_dir in
2688   *\ * | *\     *)
2689     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2690   *)
2691     install_sh="\${SHELL} $am_aux_dir/install-sh"
2692   esac
2693 fi
2694
2695 # Installed binaries are usually stripped using `strip' when the user
2696 # run `make install-strip'.  However `strip' might not be the right
2697 # tool to use in cross-compilation environments, therefore Automake
2698 # will honor the `STRIP' environment variable to overrule this program.
2699 if test "$cross_compiling" != no; then
2700   if test -n "$ac_tool_prefix"; then
2701   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}strip; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_STRIP+set}" = set; then :
2706   $as_echo_n "(cached) " >&6
2707 else
2708   if test -n "$STRIP"; then
2709   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714   IFS=$as_save_IFS
2715   test -z "$as_dir" && as_dir=.
2716     for ac_exec_ext in '' $ac_executable_extensions; do
2717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720     break 2
2721   fi
2722 done
2723   done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 STRIP=$ac_cv_prog_STRIP
2729 if test -n "$STRIP"; then
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2731 $as_echo "$STRIP" >&6; }
2732 else
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737
2738 fi
2739 if test -z "$ac_cv_prog_STRIP"; then
2740   ac_ct_STRIP=$STRIP
2741   # Extract the first word of "strip", so it can be a program name with args.
2742 set dummy strip; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2746   $as_echo_n "(cached) " >&6
2747 else
2748   if test -n "$ac_ct_STRIP"; then
2749   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756     for ac_exec_ext in '' $ac_executable_extensions; do
2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758     ac_cv_prog_ac_ct_STRIP="strip"
2759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763   done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2769 if test -n "$ac_ct_STRIP"; then
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2771 $as_echo "$ac_ct_STRIP" >&6; }
2772 else
2773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777   if test "x$ac_ct_STRIP" = x; then
2778     STRIP=":"
2779   else
2780     case $cross_compiling:$ac_tool_warned in
2781 yes:)
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784 ac_tool_warned=yes ;;
2785 esac
2786     STRIP=$ac_ct_STRIP
2787   fi
2788 else
2789   STRIP="$ac_cv_prog_STRIP"
2790 fi
2791
2792 fi
2793 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2794
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2796 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2797 if test -z "$MKDIR_P"; then
2798   if test "${ac_cv_path_mkdir+set}" = set; then :
2799   $as_echo_n "(cached) " >&6
2800 else
2801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806     for ac_prog in mkdir gmkdir; do
2807          for ac_exec_ext in '' $ac_executable_extensions; do
2808            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2809            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2810              'mkdir (GNU coreutils) '* | \
2811              'mkdir (coreutils) '* | \
2812              'mkdir (fileutils) '4.1*)
2813                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2814                break 3;;
2815            esac
2816          done
2817        done
2818   done
2819 IFS=$as_save_IFS
2820
2821 fi
2822
2823   test -d ./--version && rmdir ./--version
2824   if test "${ac_cv_path_mkdir+set}" = set; then
2825     MKDIR_P="$ac_cv_path_mkdir -p"
2826   else
2827     # As a last resort, use the slow shell script.  Don't cache a
2828     # value for MKDIR_P within a source directory, because that will
2829     # break other packages using the cache if that directory is
2830     # removed, or if the value is a relative name.
2831     MKDIR_P="$ac_install_sh -d"
2832   fi
2833 fi
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2835 $as_echo "$MKDIR_P" >&6; }
2836
2837 mkdir_p="$MKDIR_P"
2838 case $mkdir_p in
2839   [\\/$]* | ?:[\\/]*) ;;
2840   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2841 esac
2842
2843 for ac_prog in gawk mawk nawk awk
2844 do
2845   # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy $ac_prog; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_AWK+set}" = set; then :
2850   $as_echo_n "(cached) " >&6
2851 else
2852   if test -n "$AWK"; then
2853   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858   IFS=$as_save_IFS
2859   test -z "$as_dir" && as_dir=.
2860     for ac_exec_ext in '' $ac_executable_extensions; do
2861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862     ac_cv_prog_AWK="$ac_prog"
2863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864     break 2
2865   fi
2866 done
2867   done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 AWK=$ac_cv_prog_AWK
2873 if test -n "$AWK"; then
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2875 $as_echo "$AWK" >&6; }
2876 else
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882   test -n "$AWK" && break
2883 done
2884
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2886 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2887 set x ${MAKE-make}
2888 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2889 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2890   $as_echo_n "(cached) " >&6
2891 else
2892   cat >conftest.make <<\_ACEOF
2893 SHELL = /bin/sh
2894 all:
2895         @echo '@@@%%%=$(MAKE)=@@@%%%'
2896 _ACEOF
2897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2898 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2899   *@@@%%%=?*=@@@%%%*)
2900     eval ac_cv_prog_make_${ac_make}_set=yes;;
2901   *)
2902     eval ac_cv_prog_make_${ac_make}_set=no;;
2903 esac
2904 rm -f conftest.make
2905 fi
2906 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2908 $as_echo "yes" >&6; }
2909   SET_MAKE=
2910 else
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913   SET_MAKE="MAKE=${MAKE-make}"
2914 fi
2915
2916 rm -rf .tst 2>/dev/null
2917 mkdir .tst 2>/dev/null
2918 if test -d .tst; then
2919   am__leading_dot=.
2920 else
2921   am__leading_dot=_
2922 fi
2923 rmdir .tst 2>/dev/null
2924
2925 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2926   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2927   # is not polluted with repeated "-I."
2928   am__isrc=' -I$(srcdir)'
2929   # test to see if srcdir already configured
2930   if test -f $srcdir/config.status; then
2931     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2932   fi
2933 fi
2934
2935 # test whether we have cygpath
2936 if test -z "$CYGPATH_W"; then
2937   if (cygpath --version) >/dev/null 2>/dev/null; then
2938     CYGPATH_W='cygpath -w'
2939   else
2940     CYGPATH_W=echo
2941   fi
2942 fi
2943
2944
2945 # Define the identity of the package.
2946  PACKAGE='openjpeg-1.4.0'
2947  VERSION='1.4.0'
2948
2949
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE "$PACKAGE"
2952 _ACEOF
2953
2954
2955 cat >>confdefs.h <<_ACEOF
2956 #define VERSION "$VERSION"
2957 _ACEOF
2958
2959 # Some tools Automake needs.
2960
2961 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2962
2963
2964 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2965
2966
2967 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2968
2969
2970 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2971
2972
2973 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2974
2975 # We need awk for the "check" target.  The system "awk" is bad on
2976 # some platforms.
2977 # Always define AMTAR for backward compatibility.
2978
2979 AMTAR=${AMTAR-"${am_missing_run}tar"}
2980
2981 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2982
2983
2984
2985
2986
2987 #
2988 MAJOR_NR=1
2989 MINOR_NR=4
2990 BUILD_NR=0
2991
2992
2993
2994 #
2995 JP3D_MAJOR_NR=1
2996 JP3D_MINOR_NR=3
2997 JP3D_BUILD_NR=0
2998
2999
3000
3001 #
3002 # Checks for programs.
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 if test -n "$ac_tool_prefix"; then
3009   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then :
3014   $as_echo_n "(cached) " >&6
3015 else
3016   if test -n "$CC"; then
3017   ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022   IFS=$as_save_IFS
3023   test -z "$as_dir" && as_dir=.
3024     for ac_exec_ext in '' $ac_executable_extensions; do
3025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028     break 2
3029   fi
3030 done
3031   done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3040 else
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 fi
3044
3045
3046 fi
3047 if test -z "$ac_cv_prog_CC"; then
3048   ac_ct_CC=$CC
3049   # Extract the first word of "gcc", so it can be a program name with args.
3050 set dummy gcc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if test -n "$ac_ct_CC"; then
3057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     ac_cv_prog_ac_ct_CC="gcc"
3067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071   done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3079 $as_echo "$ac_ct_CC" >&6; }
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085   if test "x$ac_ct_CC" = x; then
3086     CC=""
3087   else
3088     case $cross_compiling:$ac_tool_warned in
3089 yes:)
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3092 ac_tool_warned=yes ;;
3093 esac
3094     CC=$ac_ct_CC
3095   fi
3096 else
3097   CC="$ac_cv_prog_CC"
3098 fi
3099
3100 if test -z "$CC"; then
3101           if test -n "$ac_tool_prefix"; then
3102     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}cc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if test "${ac_cv_prog_CC+set}" = set; then :
3107   $as_echo_n "(cached) " >&6
3108 else
3109   if test -n "$CC"; then
3110   ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117     for ac_exec_ext in '' $ac_executable_extensions; do
3118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119     ac_cv_prog_CC="${ac_tool_prefix}cc"
3120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121     break 2
3122   fi
3123 done
3124   done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139   fi
3140 fi
3141 if test -z "$CC"; then
3142   # Extract the first word of "cc", so it can be a program name with args.
3143 set dummy cc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then :
3147   $as_echo_n "(cached) " >&6
3148 else
3149   if test -n "$CC"; then
3150   ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152   ac_prog_rejected=no
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156   IFS=$as_save_IFS
3157   test -z "$as_dir" && as_dir=.
3158     for ac_exec_ext in '' $ac_executable_extensions; do
3159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161        ac_prog_rejected=yes
3162        continue
3163      fi
3164     ac_cv_prog_CC="cc"
3165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166     break 2
3167   fi
3168 done
3169   done
3170 IFS=$as_save_IFS
3171
3172 if test $ac_prog_rejected = yes; then
3173   # We found a bogon in the path, so make sure we never use it.
3174   set dummy $ac_cv_prog_CC
3175   shift
3176   if test $# != 0; then
3177     # We chose a different compiler from the bogus one.
3178     # However, it has the same basename, so the bogon will be chosen
3179     # first if we set CC to just the basename; use the full file name.
3180     shift
3181     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3182   fi
3183 fi
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 fi
3197 if test -z "$CC"; then
3198   if test -n "$ac_tool_prefix"; then
3199   for ac_prog in cl.exe
3200   do
3201     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_CC+set}" = set; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$CC"; then
3209   ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238     test -n "$CC" && break
3239   done
3240 fi
3241 if test -z "$CC"; then
3242   ac_ct_CC=$CC
3243   for ac_prog in cl.exe
3244 do
3245   # Extract the first word of "$ac_prog", so it can be a program name with args.
3246 set dummy $ac_prog; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3250   $as_echo_n "(cached) " >&6
3251 else
3252   if test -n "$ac_ct_CC"; then
3253   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258   IFS=$as_save_IFS
3259   test -z "$as_dir" && as_dir=.
3260     for ac_exec_ext in '' $ac_executable_extensions; do
3261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262     ac_cv_prog_ac_ct_CC="$ac_prog"
3263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264     break 2
3265   fi
3266 done
3267   done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then
3274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; }
3276 else
3277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281
3282   test -n "$ac_ct_CC" && break
3283 done
3284
3285   if test "x$ac_ct_CC" = x; then
3286     CC=""
3287   else
3288     case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3293 esac
3294     CC=$ac_ct_CC
3295   fi
3296 fi
3297
3298 fi
3299
3300
3301 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error "no acceptable C compiler found in \$PATH
3304 See \`config.log' for more details." "$LINENO" 5; }
3305
3306 # Provide some information about the compiler.
3307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3308 set X $ac_compile
3309 ac_compiler=$2
3310 for ac_option in --version -v -V -qversion; do
3311   { { ac_try="$ac_compiler $ac_option >&5"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3319   ac_status=$?
3320   if test -s conftest.err; then
3321     sed '10a\
3322 ... rest of stderr output deleted ...
3323          10q' conftest.err >conftest.er1
3324     cat conftest.er1 >&5
3325   fi
3326   rm -f conftest.er1 conftest.err
3327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328   test $ac_status = 0; }
3329 done
3330
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h.  */
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 ac_clean_files_save=$ac_clean_files
3343 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3344 # Try to create an executable without -o first, disregard a.out.
3345 # It will help us diagnose broken compilers, and finding out an intuition
3346 # of exeext.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3348 $as_echo_n "checking whether the C compiler works... " >&6; }
3349 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3350
3351 # The possible output files:
3352 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3353
3354 ac_rmfiles=
3355 for ac_file in $ac_files
3356 do
3357   case $ac_file in
3358     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3360   esac
3361 done
3362 rm -f $ac_rmfiles
3363
3364 if { { ac_try="$ac_link_default"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371   (eval "$ac_link_default") 2>&5
3372   ac_status=$?
3373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374   test $ac_status = 0; }; then :
3375   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3376 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3377 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3378 # so that the user can short-circuit this test for compilers unknown to
3379 # Autoconf.
3380 for ac_file in $ac_files ''
3381 do
3382   test -f "$ac_file" || continue
3383   case $ac_file in
3384     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3385         ;;
3386     [ab].out )
3387         # We found the default executable, but exeext='' is most
3388         # certainly right.
3389         break;;
3390     *.* )
3391         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3392         then :; else
3393            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394         fi
3395         # We set ac_cv_exeext here because the later test for it is not
3396         # safe: cross compilers may not add the suffix if given an `-o'
3397         # argument, so we may need to know it at that point already.
3398         # Even if this section looks crufty: it has the advantage of
3399         # actually working.
3400         break;;
3401     * )
3402         break;;
3403   esac
3404 done
3405 test "$ac_cv_exeext" = no && ac_cv_exeext=
3406
3407 else
3408   ac_file=''
3409 fi
3410 if test -z "$ac_file"; then :
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 { as_fn_set_status 77
3419 as_fn_error "C compiler cannot create executables
3420 See \`config.log' for more details." "$LINENO" 5; }; }
3421 else
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3423 $as_echo "yes" >&6; }
3424 fi
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3426 $as_echo_n "checking for C compiler default output file name... " >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3428 $as_echo "$ac_file" >&6; }
3429 ac_exeext=$ac_cv_exeext
3430
3431 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3432 ac_clean_files=$ac_clean_files_save
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3434 $as_echo_n "checking for suffix of executables... " >&6; }
3435 if { { ac_try="$ac_link"
3436 case "(($ac_try" in
3437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438   *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442   (eval "$ac_link") 2>&5
3443   ac_status=$?
3444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445   test $ac_status = 0; }; then :
3446   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3447 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3448 # work properly (i.e., refer to `conftest.exe'), while it won't with
3449 # `rm'.
3450 for ac_file in conftest.exe conftest conftest.*; do
3451   test -f "$ac_file" || continue
3452   case $ac_file in
3453     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3454     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3455           break;;
3456     * ) break;;
3457   esac
3458 done
3459 else
3460   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error "cannot compute suffix of executables: cannot compile and link
3463 See \`config.log' for more details." "$LINENO" 5; }
3464 fi
3465 rm -f conftest conftest$ac_cv_exeext
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3467 $as_echo "$ac_cv_exeext" >&6; }
3468
3469 rm -f conftest.$ac_ext
3470 EXEEXT=$ac_cv_exeext
3471 ac_exeext=$EXEEXT
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h.  */
3474 #include <stdio.h>
3475 int
3476 main ()
3477 {
3478 FILE *f = fopen ("conftest.out", "w");
3479  return ferror (f) || fclose (f) != 0;
3480
3481   ;
3482   return 0;
3483 }
3484 _ACEOF
3485 ac_clean_files="$ac_clean_files conftest.out"
3486 # Check that the compiler produces executables we can run.  If not, either
3487 # the compiler is broken, or we cross compile.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3489 $as_echo_n "checking whether we are cross compiling... " >&6; }
3490 if test "$cross_compiling" != yes; then
3491   { { ac_try="$ac_link"
3492 case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498   (eval "$ac_link") 2>&5
3499   ac_status=$?
3500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501   test $ac_status = 0; }
3502   if { ac_try='./conftest$ac_cv_exeext'
3503   { { case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509   (eval "$ac_try") 2>&5
3510   ac_status=$?
3511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512   test $ac_status = 0; }; }; then
3513     cross_compiling=no
3514   else
3515     if test "$cross_compiling" = maybe; then
3516         cross_compiling=yes
3517     else
3518         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error "cannot run C compiled programs.
3521 If you meant to cross compile, use \`--host'.
3522 See \`config.log' for more details." "$LINENO" 5; }
3523     fi
3524   fi
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3527 $as_echo "$cross_compiling" >&6; }
3528
3529 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3530 ac_clean_files=$ac_clean_files_save
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3532 $as_echo_n "checking for suffix of object files... " >&6; }
3533 if test "${ac_cv_objext+set}" = set; then :
3534   $as_echo_n "(cached) " >&6
3535 else
3536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h.  */
3538
3539 int
3540 main ()
3541 {
3542
3543   ;
3544   return 0;
3545 }
3546 _ACEOF
3547 rm -f conftest.o conftest.obj
3548 if { { ac_try="$ac_compile"
3549 case "(($ac_try" in
3550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551   *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555   (eval "$ac_compile") 2>&5
3556   ac_status=$?
3557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558   test $ac_status = 0; }; then :
3559   for ac_file in conftest.o conftest.obj conftest.*; do
3560   test -f "$ac_file" || continue;
3561   case $ac_file in
3562     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3563     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3564        break;;
3565   esac
3566 done
3567 else
3568   $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 as_fn_error "cannot compute suffix of object files: cannot compile
3574 See \`config.log' for more details." "$LINENO" 5; }
3575 fi
3576 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3579 $as_echo "$ac_cv_objext" >&6; }
3580 OBJEXT=$ac_cv_objext
3581 ac_objext=$OBJEXT
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3583 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3584 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3585   $as_echo_n "(cached) " >&6
3586 else
3587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h.  */
3589
3590 int
3591 main ()
3592 {
3593 #ifndef __GNUC__
3594        choke me
3595 #endif
3596
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602   ac_compiler_gnu=yes
3603 else
3604   ac_compiler_gnu=no
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3608
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3611 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3612 if test $ac_compiler_gnu = yes; then
3613   GCC=yes
3614 else
3615   GCC=
3616 fi
3617 ac_test_CFLAGS=${CFLAGS+set}
3618 ac_save_CFLAGS=$CFLAGS
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3620 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3621 if test "${ac_cv_prog_cc_g+set}" = set; then :
3622   $as_echo_n "(cached) " >&6
3623 else
3624   ac_save_c_werror_flag=$ac_c_werror_flag
3625    ac_c_werror_flag=yes
3626    ac_cv_prog_cc_g=no
3627    CFLAGS="-g"
3628    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h.  */
3630
3631 int
3632 main ()
3633 {
3634
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640   ac_cv_prog_cc_g=yes
3641 else
3642   CFLAGS=""
3643       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h.  */
3645
3646 int
3647 main ()
3648 {
3649
3650   ;
3651   return 0;
3652 }
3653 _ACEOF
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655
3656 else
3657   ac_c_werror_flag=$ac_save_c_werror_flag
3658          CFLAGS="-g"
3659          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h.  */
3661
3662 int
3663 main ()
3664 {
3665
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 if ac_fn_c_try_compile "$LINENO"; then :
3671   ac_cv_prog_cc_g=yes
3672 fi
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678    ac_c_werror_flag=$ac_save_c_werror_flag
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3681 $as_echo "$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683   CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685   if test "$GCC" = yes; then
3686     CFLAGS="-g -O2"
3687   else
3688     CFLAGS="-g"
3689   fi
3690 else
3691   if test "$GCC" = yes; then
3692     CFLAGS="-O2"
3693   else
3694     CFLAGS=
3695   fi
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3699 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   ac_cv_prog_cc_c89=no
3703 ac_save_CC=$CC
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h.  */
3706 #include <stdarg.h>
3707 #include <stdio.h>
3708 #include <sys/types.h>
3709 #include <sys/stat.h>
3710 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3711 struct buf { int x; };
3712 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3713 static char *e (p, i)
3714      char **p;
3715      int i;
3716 {
3717   return p[i];
3718 }
3719 static char *f (char * (*g) (char **, int), char **p, ...)
3720 {
3721   char *s;
3722   va_list v;
3723   va_start (v,p);
3724   s = g (p, va_arg (v,int));
3725   va_end (v);
3726   return s;
3727 }
3728
3729 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3730    function prototypes and stuff, but not '\xHH' hex character constants.
3731    These don't provoke an error unfortunately, instead are silently treated
3732    as 'x'.  The following induces an error, until -std is added to get
3733    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3734    array size at least.  It's necessary to write '\x00'==0 to get something
3735    that's true only with -std.  */
3736 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3737
3738 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3739    inside strings and character constants.  */
3740 #define FOO(x) 'x'
3741 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3742
3743 int test (int i, double x);
3744 struct s1 {int (*f) (int a);};
3745 struct s2 {int (*f) (double a);};
3746 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3747 int argc;
3748 char **argv;
3749 int
3750 main ()
3751 {
3752 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3753   ;
3754   return 0;
3755 }
3756 _ACEOF
3757 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3758         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3759 do
3760   CC="$ac_save_CC $ac_arg"
3761   if ac_fn_c_try_compile "$LINENO"; then :
3762   ac_cv_prog_cc_c89=$ac_arg
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext
3765   test "x$ac_cv_prog_cc_c89" != "xno" && break
3766 done
3767 rm -f conftest.$ac_ext
3768 CC=$ac_save_CC
3769
3770 fi
3771 # AC_CACHE_VAL
3772 case "x$ac_cv_prog_cc_c89" in
3773   x)
3774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3775 $as_echo "none needed" >&6; } ;;
3776   xno)
3777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3778 $as_echo "unsupported" >&6; } ;;
3779   *)
3780     CC="$CC $ac_cv_prog_cc_c89"
3781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3782 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3783 esac
3784 if test "x$ac_cv_prog_cc_c89" != xno; then :
3785
3786 fi
3787
3788 ac_ext=c
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 DEPDIR="${am__leading_dot}deps"
3794
3795 ac_config_commands="$ac_config_commands depfiles"
3796
3797
3798 am_make=${MAKE-make}
3799 cat > confinc << 'END'
3800 am__doit:
3801         @echo this is the am__doit target
3802 .PHONY: am__doit
3803 END
3804 # If we don't find an include directive, just comment out the code.
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3806 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3807 am__include="#"
3808 am__quote=
3809 _am_result=none
3810 # First try GNU make style include.
3811 echo "include confinc" > confmf
3812 # Ignore all kinds of additional output from `make'.
3813 case `$am_make -s -f confmf 2> /dev/null` in #(
3814 *the\ am__doit\ target*)
3815   am__include=include
3816   am__quote=
3817   _am_result=GNU
3818   ;;
3819 esac
3820 # Now try BSD make style include.
3821 if test "$am__include" = "#"; then
3822    echo '.include "confinc"' > confmf
3823    case `$am_make -s -f confmf 2> /dev/null` in #(
3824    *the\ am__doit\ target*)
3825      am__include=.include
3826      am__quote="\""
3827      _am_result=BSD
3828      ;;
3829    esac
3830 fi
3831
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3834 $as_echo "$_am_result" >&6; }
3835 rm -f confinc confmf
3836
3837 # Check whether --enable-dependency-tracking was given.
3838 if test "${enable_dependency_tracking+set}" = set; then :
3839   enableval=$enable_dependency_tracking;
3840 fi
3841
3842 if test "x$enable_dependency_tracking" != xno; then
3843   am_depcomp="$ac_aux_dir/depcomp"
3844   AMDEPBACKSLASH='\'
3845 fi
3846  if test "x$enable_dependency_tracking" != xno; then
3847   AMDEP_TRUE=
3848   AMDEP_FALSE='#'
3849 else
3850   AMDEP_TRUE='#'
3851   AMDEP_FALSE=
3852 fi
3853
3854
3855
3856 depcc="$CC"   am_compiler_list=
3857
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3859 $as_echo_n "checking dependency style of $depcc... " >&6; }
3860 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3861   $as_echo_n "(cached) " >&6
3862 else
3863   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3864   # We make a subdir and do the tests there.  Otherwise we can end up
3865   # making bogus files that we don't know about and never remove.  For
3866   # instance it was reported that on HP-UX the gcc test will end up
3867   # making a dummy file named `D' -- because `-MD' means `put the output
3868   # in D'.
3869   mkdir conftest.dir
3870   # Copy depcomp to subdir because otherwise we won't find it if we're
3871   # using a relative directory.
3872   cp "$am_depcomp" conftest.dir
3873   cd conftest.dir
3874   # We will build objects and dependencies in a subdirectory because
3875   # it helps to detect inapplicable dependency modes.  For instance
3876   # both Tru64's cc and ICC support -MD to output dependencies as a
3877   # side effect of compilation, but ICC will put the dependencies in
3878   # the current directory while Tru64 will put them in the object
3879   # directory.
3880   mkdir sub
3881
3882   am_cv_CC_dependencies_compiler_type=none
3883   if test "$am_compiler_list" = ""; then
3884      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3885   fi
3886   am__universal=false
3887   case " $depcc " in #(
3888      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3889      esac
3890
3891   for depmode in $am_compiler_list; do
3892     # Setup a source with many dependencies, because some compilers
3893     # like to wrap large dependency lists on column 80 (with \), and
3894     # we should not choose a depcomp mode which is confused by this.
3895     #
3896     # We need to recreate these files for each test, as the compiler may
3897     # overwrite some of them when testing with obscure command lines.
3898     # This happens at least with the AIX C compiler.
3899     : > sub/conftest.c
3900     for i in 1 2 3 4 5 6; do
3901       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3902       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3903       # Solaris 8's {/usr,}/bin/sh.
3904       touch sub/conftst$i.h
3905     done
3906     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3907
3908     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3909     # mode.  It turns out that the SunPro C++ compiler does not properly
3910     # handle `-M -o', and we need to detect this.  Also, some Intel
3911     # versions had trouble with output in subdirs
3912     am__obj=sub/conftest.${OBJEXT-o}
3913     am__minus_obj="-o $am__obj"
3914     case $depmode in
3915     gcc)
3916       # This depmode causes a compiler race in universal mode.
3917       test "$am__universal" = false || continue
3918       ;;
3919     nosideeffect)
3920       # after this tag, mechanisms are not by side-effect, so they'll
3921       # only be used when explicitly requested
3922       if test "x$enable_dependency_tracking" = xyes; then
3923         continue
3924       else
3925         break
3926       fi
3927       ;;
3928     msvisualcpp | msvcmsys)
3929       # This compiler won't grok `-c -o', but also, the minuso test has
3930       # not run yet.  These depmodes are late enough in the game, and
3931       # so weak that their functioning should not be impacted.
3932       am__obj=conftest.${OBJEXT-o}
3933       am__minus_obj=
3934       ;;
3935     none) break ;;
3936     esac
3937     if depmode=$depmode \
3938        source=sub/conftest.c object=$am__obj \
3939        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3940        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3941          >/dev/null 2>conftest.err &&
3942        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3943        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3944        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3945        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3946       # icc doesn't choke on unknown options, it will just issue warnings
3947       # or remarks (even with -Werror).  So we grep stderr for any message
3948       # that says an option was ignored or not supported.
3949       # When given -MP, icc 7.0 and 7.1 complain thusly:
3950       #   icc: Command line warning: ignoring option '-M'; no argument required
3951       # The diagnosis changed in icc 8.0:
3952       #   icc: Command line remark: option '-MP' not supported
3953       if (grep 'ignoring option' conftest.err ||
3954           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3955         am_cv_CC_dependencies_compiler_type=$depmode
3956         break
3957       fi
3958     fi
3959   done
3960
3961   cd ..
3962   rm -rf conftest.dir
3963 else
3964   am_cv_CC_dependencies_compiler_type=none
3965 fi
3966
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3969 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3970 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3971
3972  if
3973   test "x$enable_dependency_tracking" != xno \
3974   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3975   am__fastdepCC_TRUE=
3976   am__fastdepCC_FALSE='#'
3977 else
3978   am__fastdepCC_TRUE='#'
3979   am__fastdepCC_FALSE=
3980 fi
3981
3982
3983 ac_ext=cpp
3984 ac_cpp='$CXXCPP $CPPFLAGS'
3985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3988 if test -z "$CXX"; then
3989   if test -n "$CCC"; then
3990     CXX=$CCC
3991   else
3992     if test -n "$ac_tool_prefix"; then
3993   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3994   do
3995     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_CXX+set}" = set; then :
4000   $as_echo_n "(cached) " >&6
4001 else
4002   if test -n "$CXX"; then
4003   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010     for ac_exec_ext in '' $ac_executable_extensions; do
4011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014     break 2
4015   fi
4016 done
4017   done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 CXX=$ac_cv_prog_CXX
4023 if test -n "$CXX"; then
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4025 $as_echo "$CXX" >&6; }
4026 else
4027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4029 fi
4030
4031
4032     test -n "$CXX" && break
4033   done
4034 fi
4035 if test -z "$CXX"; then
4036   ac_ct_CXX=$CXX
4037   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4038 do
4039   # Extract the first word of "$ac_prog", so it can be a program name with args.
4040 set dummy $ac_prog; ac_word=$2
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 $as_echo_n "checking for $ac_word... " >&6; }
4043 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4044   $as_echo_n "(cached) " >&6
4045 else
4046   if test -n "$ac_ct_CXX"; then
4047   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4048 else
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052   IFS=$as_save_IFS
4053   test -z "$as_dir" && as_dir=.
4054     for ac_exec_ext in '' $ac_executable_extensions; do
4055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056     ac_cv_prog_ac_ct_CXX="$ac_prog"
4057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058     break 2
4059   fi
4060 done
4061   done
4062 IFS=$as_save_IFS
4063
4064 fi
4065 fi
4066 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4067 if test -n "$ac_ct_CXX"; then
4068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4069 $as_echo "$ac_ct_CXX" >&6; }
4070 else
4071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072 $as_echo "no" >&6; }
4073 fi
4074
4075
4076   test -n "$ac_ct_CXX" && break
4077 done
4078
4079   if test "x$ac_ct_CXX" = x; then
4080     CXX="g++"
4081   else
4082     case $cross_compiling:$ac_tool_warned in
4083 yes:)
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4086 ac_tool_warned=yes ;;
4087 esac
4088     CXX=$ac_ct_CXX
4089   fi
4090 fi
4091
4092   fi
4093 fi
4094 # Provide some information about the compiler.
4095 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4096 set X $ac_compile
4097 ac_compiler=$2
4098 for ac_option in --version -v -V -qversion; do
4099   { { ac_try="$ac_compiler $ac_option >&5"
4100 case "(($ac_try" in
4101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102   *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 $as_echo "$ac_try_echo"; } >&5
4106   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4107   ac_status=$?
4108   if test -s conftest.err; then
4109     sed '10a\
4110 ... rest of stderr output deleted ...
4111          10q' conftest.err >conftest.er1
4112     cat conftest.er1 >&5
4113   fi
4114   rm -f conftest.er1 conftest.err
4115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116   test $ac_status = 0; }
4117 done
4118
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4120 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4121 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4122   $as_echo_n "(cached) " >&6
4123 else
4124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h.  */
4126
4127 int
4128 main ()
4129 {
4130 #ifndef __GNUC__
4131        choke me
4132 #endif
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_cxx_try_compile "$LINENO"; then :
4139   ac_compiler_gnu=yes
4140 else
4141   ac_compiler_gnu=no
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4145
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4148 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4149 if test $ac_compiler_gnu = yes; then
4150   GXX=yes
4151 else
4152   GXX=
4153 fi
4154 ac_test_CXXFLAGS=${CXXFLAGS+set}
4155 ac_save_CXXFLAGS=$CXXFLAGS
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4157 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4158 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4159   $as_echo_n "(cached) " >&6
4160 else
4161   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4162    ac_cxx_werror_flag=yes
4163    ac_cv_prog_cxx_g=no
4164    CXXFLAGS="-g"
4165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h.  */
4167
4168 int
4169 main ()
4170 {
4171
4172   ;
4173   return 0;
4174 }
4175 _ACEOF
4176 if ac_fn_cxx_try_compile "$LINENO"; then :
4177   ac_cv_prog_cxx_g=yes
4178 else
4179   CXXFLAGS=""
4180       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h.  */
4182
4183 int
4184 main ()
4185 {
4186
4187   ;
4188   return 0;
4189 }
4190 _ACEOF
4191 if ac_fn_cxx_try_compile "$LINENO"; then :
4192
4193 else
4194   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4195          CXXFLAGS="-g"
4196          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h.  */
4198
4199 int
4200 main ()
4201 {
4202
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 if ac_fn_cxx_try_compile "$LINENO"; then :
4208   ac_cv_prog_cxx_g=yes
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4218 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4219 if test "$ac_test_CXXFLAGS" = set; then
4220   CXXFLAGS=$ac_save_CXXFLAGS
4221 elif test $ac_cv_prog_cxx_g = yes; then
4222   if test "$GXX" = yes; then
4223     CXXFLAGS="-g -O2"
4224   else
4225     CXXFLAGS="-g"
4226   fi
4227 else
4228   if test "$GXX" = yes; then
4229     CXXFLAGS="-O2"
4230   else
4231     CXXFLAGS=
4232   fi
4233 fi
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240 depcc="$CXX"  am_compiler_list=
4241
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4243 $as_echo_n "checking dependency style of $depcc... " >&6; }
4244 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4248   # We make a subdir and do the tests there.  Otherwise we can end up
4249   # making bogus files that we don't know about and never remove.  For
4250   # instance it was reported that on HP-UX the gcc test will end up
4251   # making a dummy file named `D' -- because `-MD' means `put the output
4252   # in D'.
4253   mkdir conftest.dir
4254   # Copy depcomp to subdir because otherwise we won't find it if we're
4255   # using a relative directory.
4256   cp "$am_depcomp" conftest.dir
4257   cd conftest.dir
4258   # We will build objects and dependencies in a subdirectory because
4259   # it helps to detect inapplicable dependency modes.  For instance
4260   # both Tru64's cc and ICC support -MD to output dependencies as a
4261   # side effect of compilation, but ICC will put the dependencies in
4262   # the current directory while Tru64 will put them in the object
4263   # directory.
4264   mkdir sub
4265
4266   am_cv_CXX_dependencies_compiler_type=none
4267   if test "$am_compiler_list" = ""; then
4268      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4269   fi
4270   am__universal=false
4271   case " $depcc " in #(
4272      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4273      esac
4274
4275   for depmode in $am_compiler_list; do
4276     # Setup a source with many dependencies, because some compilers
4277     # like to wrap large dependency lists on column 80 (with \), and
4278     # we should not choose a depcomp mode which is confused by this.
4279     #
4280     # We need to recreate these files for each test, as the compiler may
4281     # overwrite some of them when testing with obscure command lines.
4282     # This happens at least with the AIX C compiler.
4283     : > sub/conftest.c
4284     for i in 1 2 3 4 5 6; do
4285       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4286       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4287       # Solaris 8's {/usr,}/bin/sh.
4288       touch sub/conftst$i.h
4289     done
4290     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4291
4292     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4293     # mode.  It turns out that the SunPro C++ compiler does not properly
4294     # handle `-M -o', and we need to detect this.  Also, some Intel
4295     # versions had trouble with output in subdirs
4296     am__obj=sub/conftest.${OBJEXT-o}
4297     am__minus_obj="-o $am__obj"
4298     case $depmode in
4299     gcc)
4300       # This depmode causes a compiler race in universal mode.
4301       test "$am__universal" = false || continue
4302       ;;
4303     nosideeffect)
4304       # after this tag, mechanisms are not by side-effect, so they'll
4305       # only be used when explicitly requested
4306       if test "x$enable_dependency_tracking" = xyes; then
4307         continue
4308       else
4309         break
4310       fi
4311       ;;
4312     msvisualcpp | msvcmsys)
4313       # This compiler won't grok `-c -o', but also, the minuso test has
4314       # not run yet.  These depmodes are late enough in the game, and
4315       # so weak that their functioning should not be impacted.
4316       am__obj=conftest.${OBJEXT-o}
4317       am__minus_obj=
4318       ;;
4319     none) break ;;
4320     esac
4321     if depmode=$depmode \
4322        source=sub/conftest.c object=$am__obj \
4323        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4324        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4325          >/dev/null 2>conftest.err &&
4326        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4327        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4328        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4329        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4330       # icc doesn't choke on unknown options, it will just issue warnings
4331       # or remarks (even with -Werror).  So we grep stderr for any message
4332       # that says an option was ignored or not supported.
4333       # When given -MP, icc 7.0 and 7.1 complain thusly:
4334       #   icc: Command line warning: ignoring option '-M'; no argument required
4335       # The diagnosis changed in icc 8.0:
4336       #   icc: Command line remark: option '-MP' not supported
4337       if (grep 'ignoring option' conftest.err ||
4338           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4339         am_cv_CXX_dependencies_compiler_type=$depmode
4340         break
4341       fi
4342     fi
4343   done
4344
4345   cd ..
4346   rm -rf conftest.dir
4347 else
4348   am_cv_CXX_dependencies_compiler_type=none
4349 fi
4350
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4353 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4354 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4355
4356  if
4357   test "x$enable_dependency_tracking" != xno \
4358   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4359   am__fastdepCXX_TRUE=
4360   am__fastdepCXX_FALSE='#'
4361 else
4362   am__fastdepCXX_TRUE='#'
4363   am__fastdepCXX_FALSE=
4364 fi
4365
4366
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4369 $as_echo_n "checking whether ln -s works... " >&6; }
4370 LN_S=$as_ln_s
4371 if test "$LN_S" = "ln -s"; then
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4373 $as_echo "yes" >&6; }
4374 else
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4376 $as_echo "no, using $LN_S" >&6; }
4377 fi
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4380 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4381 if test "${ac_cv_path_SED+set}" = set; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4385      for ac_i in 1 2 3 4 5 6 7; do
4386        ac_script="$ac_script$as_nl$ac_script"
4387      done
4388      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4389      { ac_script=; unset ac_script;}
4390      if test -z "$SED"; then
4391   ac_path_SED_found=false
4392   # Loop through the user's path and test for each of PROGNAME-LIST
4393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398     for ac_prog in sed gsed; do
4399     for ac_exec_ext in '' $ac_executable_extensions; do
4400       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4401       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4402 # Check for GNU ac_path_SED and select it if it is found.
4403   # Check for GNU $ac_path_SED
4404 case `"$ac_path_SED" --version 2>&1` in
4405 *GNU*)
4406   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4407 *)
4408   ac_count=0
4409   $as_echo_n 0123456789 >"conftest.in"
4410   while :
4411   do
4412     cat "conftest.in" "conftest.in" >"conftest.tmp"
4413     mv "conftest.tmp" "conftest.in"
4414     cp "conftest.in" "conftest.nl"
4415     $as_echo '' >> "conftest.nl"
4416     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418     as_fn_arith $ac_count + 1 && ac_count=$as_val
4419     if test $ac_count -gt ${ac_path_SED_max-0}; then
4420       # Best one so far, save it but keep looking for a better one
4421       ac_cv_path_SED="$ac_path_SED"
4422       ac_path_SED_max=$ac_count
4423     fi
4424     # 10*(2^10) chars as input seems more than enough
4425     test $ac_count -gt 10 && break
4426   done
4427   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 esac
4429
4430       $ac_path_SED_found && break 3
4431     done
4432   done
4433   done
4434 IFS=$as_save_IFS
4435   if test -z "$ac_cv_path_SED"; then
4436     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4437   fi
4438 else
4439   ac_cv_path_SED=$SED
4440 fi
4441
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4444 $as_echo "$ac_cv_path_SED" >&6; }
4445  SED="$ac_cv_path_SED"
4446   rm -f conftest.sed
4447
4448
4449 # Check whether --enable-largefile was given.
4450 if test "${enable_largefile+set}" = set; then :
4451   enableval=$enable_largefile;
4452 fi
4453
4454 if test "$enable_largefile" != no; then
4455
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4457 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4458 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   ac_cv_sys_largefile_CC=no
4462      if test "$GCC" != yes; then
4463        ac_save_CC=$CC
4464        while :; do
4465          # IRIX 6.2 and later do not support large files by default,
4466          # so use the C compiler's -n32 option if that helps.
4467          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h.  */
4469 #include <sys/types.h>
4470  /* Check that off_t can represent 2**63 - 1 correctly.
4471     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4472     since some C++ compilers masquerading as C compilers
4473     incorrectly reject 9223372036854775807.  */
4474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4475   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4476                        && LARGE_OFF_T % 2147483647 == 1)
4477                       ? 1 : -1];
4478 int
4479 main ()
4480 {
4481
4482   ;
4483   return 0;
4484 }
4485 _ACEOF
4486          if ac_fn_c_try_compile "$LINENO"; then :
4487   break
4488 fi
4489 rm -f core conftest.err conftest.$ac_objext
4490          CC="$CC -n32"
4491          if ac_fn_c_try_compile "$LINENO"; then :
4492   ac_cv_sys_largefile_CC=' -n32'; break
4493 fi
4494 rm -f core conftest.err conftest.$ac_objext
4495          break
4496        done
4497        CC=$ac_save_CC
4498        rm -f conftest.$ac_ext
4499     fi
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4502 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4503   if test "$ac_cv_sys_largefile_CC" != no; then
4504     CC=$CC$ac_cv_sys_largefile_CC
4505   fi
4506
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4508 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4509 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512   while :; do
4513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h.  */
4515 #include <sys/types.h>
4516  /* Check that off_t can represent 2**63 - 1 correctly.
4517     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4518     since some C++ compilers masquerading as C compilers
4519     incorrectly reject 9223372036854775807.  */
4520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4521   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4522                        && LARGE_OFF_T % 2147483647 == 1)
4523                       ? 1 : -1];
4524 int
4525 main ()
4526 {
4527
4528   ;
4529   return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_c_try_compile "$LINENO"; then :
4533   ac_cv_sys_file_offset_bits=no; break
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h.  */
4538 #define _FILE_OFFSET_BITS 64
4539 #include <sys/types.h>
4540  /* Check that off_t can represent 2**63 - 1 correctly.
4541     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4542     since some C++ compilers masquerading as C compilers
4543     incorrectly reject 9223372036854775807.  */
4544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4545   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4546                        && LARGE_OFF_T % 2147483647 == 1)
4547                       ? 1 : -1];
4548 int
4549 main ()
4550 {
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 if ac_fn_c_try_compile "$LINENO"; then :
4557   ac_cv_sys_file_offset_bits=64; break
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560   ac_cv_sys_file_offset_bits=unknown
4561   break
4562 done
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4565 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4566 case $ac_cv_sys_file_offset_bits in #(
4567   no | unknown) ;;
4568   *)
4569 cat >>confdefs.h <<_ACEOF
4570 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4571 _ACEOF
4572 ;;
4573 esac
4574 rm -rf conftest*
4575   if test $ac_cv_sys_file_offset_bits = unknown; then
4576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4577 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4578 if test "${ac_cv_sys_large_files+set}" = set; then :
4579   $as_echo_n "(cached) " >&6
4580 else
4581   while :; do
4582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h.  */
4584 #include <sys/types.h>
4585  /* Check that off_t can represent 2**63 - 1 correctly.
4586     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4587     since some C++ compilers masquerading as C compilers
4588     incorrectly reject 9223372036854775807.  */
4589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4590   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4591                        && LARGE_OFF_T % 2147483647 == 1)
4592                       ? 1 : -1];
4593 int
4594 main ()
4595 {
4596
4597   ;
4598   return 0;
4599 }
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602   ac_cv_sys_large_files=no; break
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h.  */
4607 #define _LARGE_FILES 1
4608 #include <sys/types.h>
4609  /* Check that off_t can represent 2**63 - 1 correctly.
4610     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4611     since some C++ compilers masquerading as C compilers
4612     incorrectly reject 9223372036854775807.  */
4613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4614   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4615                        && LARGE_OFF_T % 2147483647 == 1)
4616                       ? 1 : -1];
4617 int
4618 main ()
4619 {
4620
4621   ;
4622   return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626   ac_cv_sys_large_files=1; break
4627 fi
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629   ac_cv_sys_large_files=unknown
4630   break
4631 done
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4634 $as_echo "$ac_cv_sys_large_files" >&6; }
4635 case $ac_cv_sys_large_files in #(
4636   no | unknown) ;;
4637   *)
4638 cat >>confdefs.h <<_ACEOF
4639 #define _LARGE_FILES $ac_cv_sys_large_files
4640 _ACEOF
4641 ;;
4642 esac
4643 rm -rf conftest*
4644   fi
4645 fi
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4648 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4649 if test "${ac_cv_sys_largefile_source+set}" = set; then :
4650   $as_echo_n "(cached) " >&6
4651 else
4652   while :; do
4653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h.  */
4655 #include <sys/types.h> /* for off_t */
4656      #include <stdio.h>
4657 int
4658 main ()
4659 {
4660 int (*fp) (FILE *, off_t, int) = fseeko;
4661      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4662   ;
4663   return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_c_try_link "$LINENO"; then :
4667   ac_cv_sys_largefile_source=no; break
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext \
4670     conftest$ac_exeext conftest.$ac_ext
4671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h.  */
4673 #define _LARGEFILE_SOURCE 1
4674 #include <sys/types.h> /* for off_t */
4675      #include <stdio.h>
4676 int
4677 main ()
4678 {
4679 int (*fp) (FILE *, off_t, int) = fseeko;
4680      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_link "$LINENO"; then :
4686   ac_cv_sys_largefile_source=1; break
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext \
4689     conftest$ac_exeext conftest.$ac_ext
4690   ac_cv_sys_largefile_source=unknown
4691   break
4692 done
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4695 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4696 case $ac_cv_sys_largefile_source in #(
4697   no | unknown) ;;
4698   *)
4699 cat >>confdefs.h <<_ACEOF
4700 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4701 _ACEOF
4702 ;;
4703 esac
4704 rm -rf conftest*
4705
4706 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4707 # in glibc 2.1.3, but that breaks too many other things.
4708 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4709 if test $ac_cv_sys_largefile_source != unknown; then
4710
4711 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4712
4713 fi
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4716 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4717 set x ${MAKE-make}
4718 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4719 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   cat >conftest.make <<\_ACEOF
4723 SHELL = /bin/sh
4724 all:
4725         @echo '@@@%%%=$(MAKE)=@@@%%%'
4726 _ACEOF
4727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4728 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4729   *@@@%%%=?*=@@@%%%*)
4730     eval ac_cv_prog_make_${ac_make}_set=yes;;
4731   *)
4732     eval ac_cv_prog_make_${ac_make}_set=no;;
4733 esac
4734 rm -f conftest.make
4735 fi
4736 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738 $as_echo "yes" >&6; }
4739   SET_MAKE=
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743   SET_MAKE="MAKE=${MAKE-make}"
4744 fi
4745
4746 #AC_HEADER_DIRENT
4747 #
4748 # Tests for Windows
4749 #
4750
4751
4752 #
4753 # Configure libtool
4754 # Check whether --enable-shared was given.
4755 if test "${enable_shared+set}" = set; then :
4756   enableval=$enable_shared; p=${PACKAGE-default}
4757     case $enableval in
4758     yes) enable_shared=yes ;;
4759     no) enable_shared=no ;;
4760     *)
4761       enable_shared=no
4762       # Look at the argument we got.  We use all the common list separators.
4763       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4764       for pkg in $enableval; do
4765         IFS="$lt_save_ifs"
4766         if test "X$pkg" = "X$p"; then
4767           enable_shared=yes
4768         fi
4769       done
4770       IFS="$lt_save_ifs"
4771       ;;
4772     esac
4773 else
4774   enable_shared=yes
4775 fi
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785 enable_win32_dll=yes
4786
4787 case $host in
4788 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4789   if test -n "$ac_tool_prefix"; then
4790   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4791 set dummy ${ac_tool_prefix}as; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_AS+set}" = set; then :
4795   $as_echo_n "(cached) " >&6
4796 else
4797   if test -n "$AS"; then
4798   ac_cv_prog_AS="$AS" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805     for ac_exec_ext in '' $ac_executable_extensions; do
4806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807     ac_cv_prog_AS="${ac_tool_prefix}as"
4808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809     break 2
4810   fi
4811 done
4812   done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 AS=$ac_cv_prog_AS
4818 if test -n "$AS"; then
4819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4820 $as_echo "$AS" >&6; }
4821 else
4822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4824 fi
4825
4826
4827 fi
4828 if test -z "$ac_cv_prog_AS"; then
4829   ac_ct_AS=$AS
4830   # Extract the first word of "as", so it can be a program name with args.
4831 set dummy as; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   if test -n "$ac_ct_AS"; then
4838   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843   IFS=$as_save_IFS
4844   test -z "$as_dir" && as_dir=.
4845     for ac_exec_ext in '' $ac_executable_extensions; do
4846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847     ac_cv_prog_ac_ct_AS="as"
4848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849     break 2
4850   fi
4851 done
4852   done
4853 IFS=$as_save_IFS
4854
4855 fi
4856 fi
4857 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4858 if test -n "$ac_ct_AS"; then
4859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4860 $as_echo "$ac_ct_AS" >&6; }
4861 else
4862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4864 fi
4865
4866   if test "x$ac_ct_AS" = x; then
4867     AS="false"
4868   else
4869     case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875     AS=$ac_ct_AS
4876   fi
4877 else
4878   AS="$ac_cv_prog_AS"
4879 fi
4880
4881   if test -n "$ac_tool_prefix"; then
4882   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4883 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4887   $as_echo_n "(cached) " >&6
4888 else
4889   if test -n "$DLLTOOL"; then
4890   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897     for ac_exec_ext in '' $ac_executable_extensions; do
4898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904   done
4905 IFS=$as_save_IFS
4906
4907 fi
4908 fi
4909 DLLTOOL=$ac_cv_prog_DLLTOOL
4910 if test -n "$DLLTOOL"; then
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4912 $as_echo "$DLLTOOL" >&6; }
4913 else
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4916 fi
4917
4918
4919 fi
4920 if test -z "$ac_cv_prog_DLLTOOL"; then
4921   ac_ct_DLLTOOL=$DLLTOOL
4922   # Extract the first word of "dlltool", so it can be a program name with args.
4923 set dummy dlltool; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   if test -n "$ac_ct_DLLTOOL"; then
4930   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937     for ac_exec_ext in '' $ac_executable_extensions; do
4938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944   done
4945 IFS=$as_save_IFS
4946
4947 fi
4948 fi
4949 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4950 if test -n "$ac_ct_DLLTOOL"; then
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4952 $as_echo "$ac_ct_DLLTOOL" >&6; }
4953 else
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957
4958   if test "x$ac_ct_DLLTOOL" = x; then
4959     DLLTOOL="false"
4960   else
4961     case $cross_compiling:$ac_tool_warned in
4962 yes:)
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4966 esac
4967     DLLTOOL=$ac_ct_DLLTOOL
4968   fi
4969 else
4970   DLLTOOL="$ac_cv_prog_DLLTOOL"
4971 fi
4972
4973   if test -n "$ac_tool_prefix"; then
4974   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4975 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   if test -n "$OBJDUMP"; then
4982   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989     for ac_exec_ext in '' $ac_executable_extensions; do
4990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996   done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 OBJDUMP=$ac_cv_prog_OBJDUMP
5002 if test -n "$OBJDUMP"; then
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5004 $as_echo "$OBJDUMP" >&6; }
5005 else
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5008 fi
5009
5010
5011 fi
5012 if test -z "$ac_cv_prog_OBJDUMP"; then
5013   ac_ct_OBJDUMP=$OBJDUMP
5014   # Extract the first word of "objdump", so it can be a program name with args.
5015 set dummy objdump; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   if test -n "$ac_ct_OBJDUMP"; then
5022   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027   IFS=$as_save_IFS
5028   test -z "$as_dir" && as_dir=.
5029     for ac_exec_ext in '' $ac_executable_extensions; do
5030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033     break 2
5034   fi
5035 done
5036   done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5042 if test -n "$ac_ct_OBJDUMP"; then
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5044 $as_echo "$ac_ct_OBJDUMP" >&6; }
5045 else
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049
5050   if test "x$ac_ct_OBJDUMP" = x; then
5051     OBJDUMP="false"
5052   else
5053     case $cross_compiling:$ac_tool_warned in
5054 yes:)
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057 ac_tool_warned=yes ;;
5058 esac
5059     OBJDUMP=$ac_ct_OBJDUMP
5060   fi
5061 else
5062   OBJDUMP="$ac_cv_prog_OBJDUMP"
5063 fi
5064
5065   ;;
5066 esac
5067
5068 test -z "$AS" && AS=as
5069
5070
5071
5072
5073
5074 test -z "$DLLTOOL" && DLLTOOL=dlltool
5075
5076
5077
5078
5079
5080 test -z "$OBJDUMP" && OBJDUMP=objdump
5081
5082
5083
5084
5085
5086
5087
5088
5089 case `pwd` in
5090   *\ * | *\     *)
5091     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5092 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5093 esac
5094
5095
5096
5097 macro_version='2.2.8'
5098 macro_revision='1.3169'
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112 ltmain="$ac_aux_dir/ltmain.sh"
5113
5114 # Backslashify metacharacters that are still active within
5115 # double-quoted strings.
5116 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5117
5118 # Same as above, but do not quote variable references.
5119 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5120
5121 # Sed substitution to delay expansion of an escaped shell variable in a
5122 # double_quote_subst'ed string.
5123 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5124
5125 # Sed substitution to delay expansion of an escaped single quote.
5126 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5127
5128 # Sed substitution to avoid accidental globbing in evaled expressions
5129 no_glob_subst='s/\*/\\\*/g'
5130
5131 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5132 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5133 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5134
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5136 $as_echo_n "checking how to print strings... " >&6; }
5137 # Test print first, because it will be a builtin if present.
5138 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5139    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5140   ECHO='print -r --'
5141 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5142   ECHO='printf %s\n'
5143 else
5144   # Use this function as a fallback that always works.
5145   func_fallback_echo ()
5146   {
5147     eval 'cat <<_LTECHO_EOF
5148 $1
5149 _LTECHO_EOF'
5150   }
5151   ECHO='func_fallback_echo'
5152 fi
5153
5154 # func_echo_all arg...
5155 # Invoke $ECHO with all args, space-separated.
5156 func_echo_all ()
5157 {
5158     $ECHO ""
5159 }
5160
5161 case "$ECHO" in
5162   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5163 $as_echo "printf" >&6; } ;;
5164   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5165 $as_echo "print -r" >&6; } ;;
5166   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5167 $as_echo "cat" >&6; } ;;
5168 esac
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5184 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5185 if test "${ac_cv_path_SED+set}" = set; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5189      for ac_i in 1 2 3 4 5 6 7; do
5190        ac_script="$ac_script$as_nl$ac_script"
5191      done
5192      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5193      { ac_script=; unset ac_script;}
5194      if test -z "$SED"; then
5195   ac_path_SED_found=false
5196   # Loop through the user's path and test for each of PROGNAME-LIST
5197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202     for ac_prog in sed gsed; do
5203     for ac_exec_ext in '' $ac_executable_extensions; do
5204       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5205       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5206 # Check for GNU ac_path_SED and select it if it is found.
5207   # Check for GNU $ac_path_SED
5208 case `"$ac_path_SED" --version 2>&1` in
5209 *GNU*)
5210   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5211 *)
5212   ac_count=0
5213   $as_echo_n 0123456789 >"conftest.in"
5214   while :
5215   do
5216     cat "conftest.in" "conftest.in" >"conftest.tmp"
5217     mv "conftest.tmp" "conftest.in"
5218     cp "conftest.in" "conftest.nl"
5219     $as_echo '' >> "conftest.nl"
5220     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5221     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5222     as_fn_arith $ac_count + 1 && ac_count=$as_val
5223     if test $ac_count -gt ${ac_path_SED_max-0}; then
5224       # Best one so far, save it but keep looking for a better one
5225       ac_cv_path_SED="$ac_path_SED"
5226       ac_path_SED_max=$ac_count
5227     fi
5228     # 10*(2^10) chars as input seems more than enough
5229     test $ac_count -gt 10 && break
5230   done
5231   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5232 esac
5233
5234       $ac_path_SED_found && break 3
5235     done
5236   done
5237   done
5238 IFS=$as_save_IFS
5239   if test -z "$ac_cv_path_SED"; then
5240     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5241   fi
5242 else
5243   ac_cv_path_SED=$SED
5244 fi
5245
5246 fi
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5248 $as_echo "$ac_cv_path_SED" >&6; }
5249  SED="$ac_cv_path_SED"
5250   rm -f conftest.sed
5251
5252 test -z "$SED" && SED=sed
5253 Xsed="$SED -e 1s/^X//"
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5266 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5267 if test "${ac_cv_path_GREP+set}" = set; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   if test -z "$GREP"; then
5271   ac_path_GREP_found=false
5272   # Loop through the user's path and test for each of PROGNAME-LIST
5273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5275 do
5276   IFS=$as_save_IFS
5277   test -z "$as_dir" && as_dir=.
5278     for ac_prog in grep ggrep; do
5279     for ac_exec_ext in '' $ac_executable_extensions; do
5280       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5281       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5282 # Check for GNU ac_path_GREP and select it if it is found.
5283   # Check for GNU $ac_path_GREP
5284 case `"$ac_path_GREP" --version 2>&1` in
5285 *GNU*)
5286   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5287 *)
5288   ac_count=0
5289   $as_echo_n 0123456789 >"conftest.in"
5290   while :
5291   do
5292     cat "conftest.in" "conftest.in" >"conftest.tmp"
5293     mv "conftest.tmp" "conftest.in"
5294     cp "conftest.in" "conftest.nl"
5295     $as_echo 'GREP' >> "conftest.nl"
5296     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5297     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5298     as_fn_arith $ac_count + 1 && ac_count=$as_val
5299     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5300       # Best one so far, save it but keep looking for a better one
5301       ac_cv_path_GREP="$ac_path_GREP"
5302       ac_path_GREP_max=$ac_count
5303     fi
5304     # 10*(2^10) chars as input seems more than enough
5305     test $ac_count -gt 10 && break
5306   done
5307   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5308 esac
5309
5310       $ac_path_GREP_found && break 3
5311     done
5312   done
5313   done
5314 IFS=$as_save_IFS
5315   if test -z "$ac_cv_path_GREP"; then
5316     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5317   fi
5318 else
5319   ac_cv_path_GREP=$GREP
5320 fi
5321
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5324 $as_echo "$ac_cv_path_GREP" >&6; }
5325  GREP="$ac_cv_path_GREP"
5326
5327
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5329 $as_echo_n "checking for egrep... " >&6; }
5330 if test "${ac_cv_path_EGREP+set}" = set; then :
5331   $as_echo_n "(cached) " >&6
5332 else
5333   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5334    then ac_cv_path_EGREP="$GREP -E"
5335    else
5336      if test -z "$EGREP"; then
5337   ac_path_EGREP_found=false
5338   # Loop through the user's path and test for each of PROGNAME-LIST
5339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5341 do
5342   IFS=$as_save_IFS
5343   test -z "$as_dir" && as_dir=.
5344     for ac_prog in egrep; do
5345     for ac_exec_ext in '' $ac_executable_extensions; do
5346       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5347       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5348 # Check for GNU ac_path_EGREP and select it if it is found.
5349   # Check for GNU $ac_path_EGREP
5350 case `"$ac_path_EGREP" --version 2>&1` in
5351 *GNU*)
5352   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5353 *)
5354   ac_count=0
5355   $as_echo_n 0123456789 >"conftest.in"
5356   while :
5357   do
5358     cat "conftest.in" "conftest.in" >"conftest.tmp"
5359     mv "conftest.tmp" "conftest.in"
5360     cp "conftest.in" "conftest.nl"
5361     $as_echo 'EGREP' >> "conftest.nl"
5362     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5363     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5364     as_fn_arith $ac_count + 1 && ac_count=$as_val
5365     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5366       # Best one so far, save it but keep looking for a better one
5367       ac_cv_path_EGREP="$ac_path_EGREP"
5368       ac_path_EGREP_max=$ac_count
5369     fi
5370     # 10*(2^10) chars as input seems more than enough
5371     test $ac_count -gt 10 && break
5372   done
5373   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5374 esac
5375
5376       $ac_path_EGREP_found && break 3
5377     done
5378   done
5379   done
5380 IFS=$as_save_IFS
5381   if test -z "$ac_cv_path_EGREP"; then
5382     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5383   fi
5384 else
5385   ac_cv_path_EGREP=$EGREP
5386 fi
5387
5388    fi
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5391 $as_echo "$ac_cv_path_EGREP" >&6; }
5392  EGREP="$ac_cv_path_EGREP"
5393
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5396 $as_echo_n "checking for fgrep... " >&6; }
5397 if test "${ac_cv_path_FGREP+set}" = set; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5401    then ac_cv_path_FGREP="$GREP -F"
5402    else
5403      if test -z "$FGREP"; then
5404   ac_path_FGREP_found=false
5405   # Loop through the user's path and test for each of PROGNAME-LIST
5406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5408 do
5409   IFS=$as_save_IFS
5410   test -z "$as_dir" && as_dir=.
5411     for ac_prog in fgrep; do
5412     for ac_exec_ext in '' $ac_executable_extensions; do
5413       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5414       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5415 # Check for GNU ac_path_FGREP and select it if it is found.
5416   # Check for GNU $ac_path_FGREP
5417 case `"$ac_path_FGREP" --version 2>&1` in
5418 *GNU*)
5419   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5420 *)
5421   ac_count=0
5422   $as_echo_n 0123456789 >"conftest.in"
5423   while :
5424   do
5425     cat "conftest.in" "conftest.in" >"conftest.tmp"
5426     mv "conftest.tmp" "conftest.in"
5427     cp "conftest.in" "conftest.nl"
5428     $as_echo 'FGREP' >> "conftest.nl"
5429     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5430     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5431     as_fn_arith $ac_count + 1 && ac_count=$as_val
5432     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5433       # Best one so far, save it but keep looking for a better one
5434       ac_cv_path_FGREP="$ac_path_FGREP"
5435       ac_path_FGREP_max=$ac_count
5436     fi
5437     # 10*(2^10) chars as input seems more than enough
5438     test $ac_count -gt 10 && break
5439   done
5440   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5441 esac
5442
5443       $ac_path_FGREP_found && break 3
5444     done
5445   done
5446   done
5447 IFS=$as_save_IFS
5448   if test -z "$ac_cv_path_FGREP"; then
5449     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450   fi
5451 else
5452   ac_cv_path_FGREP=$FGREP
5453 fi
5454
5455    fi
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5458 $as_echo "$ac_cv_path_FGREP" >&6; }
5459  FGREP="$ac_cv_path_FGREP"
5460
5461
5462 test -z "$GREP" && GREP=grep
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 # Check whether --with-gnu-ld was given.
5483 if test "${with_gnu_ld+set}" = set; then :
5484   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5485 else
5486   with_gnu_ld=no
5487 fi
5488
5489 ac_prog=ld
5490 if test "$GCC" = yes; then
5491   # Check if gcc -print-prog-name=ld gives a path.
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5493 $as_echo_n "checking for ld used by $CC... " >&6; }
5494   case $host in
5495   *-*-mingw*)
5496     # gcc leaves a trailing carriage return which upsets mingw
5497     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5498   *)
5499     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5500   esac
5501   case $ac_prog in
5502     # Accept absolute paths.
5503     [\\/]* | ?:[\\/]*)
5504       re_direlt='/[^/][^/]*/\.\./'
5505       # Canonicalize the pathname of ld
5506       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5507       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5508         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5509       done
5510       test -z "$LD" && LD="$ac_prog"
5511       ;;
5512   "")
5513     # If it fails, then pretend we aren't using GCC.
5514     ac_prog=ld
5515     ;;
5516   *)
5517     # If it is relative, then search for the first ld in PATH.
5518     with_gnu_ld=unknown
5519     ;;
5520   esac
5521 elif test "$with_gnu_ld" = yes; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5523 $as_echo_n "checking for GNU ld... " >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5526 $as_echo_n "checking for non-GNU ld... " >&6; }
5527 fi
5528 if test "${lt_cv_path_LD+set}" = set; then :
5529   $as_echo_n "(cached) " >&6
5530 else
5531   if test -z "$LD"; then
5532   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5533   for ac_dir in $PATH; do
5534     IFS="$lt_save_ifs"
5535     test -z "$ac_dir" && ac_dir=.
5536     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5537       lt_cv_path_LD="$ac_dir/$ac_prog"
5538       # Check to see if the program is GNU ld.  I'd rather use --version,
5539       # but apparently some variants of GNU ld only accept -v.
5540       # Break only if it was the GNU/non-GNU ld that we prefer.
5541       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5542       *GNU* | *'with BFD'*)
5543         test "$with_gnu_ld" != no && break
5544         ;;
5545       *)
5546         test "$with_gnu_ld" != yes && break
5547         ;;
5548       esac
5549     fi
5550   done
5551   IFS="$lt_save_ifs"
5552 else
5553   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5554 fi
5555 fi
5556
5557 LD="$lt_cv_path_LD"
5558 if test -n "$LD"; then
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5560 $as_echo "$LD" >&6; }
5561 else
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5567 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5568 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5572 case `$LD -v 2>&1 </dev/null` in
5573 *GNU* | *'with BFD'*)
5574   lt_cv_prog_gnu_ld=yes
5575   ;;
5576 *)
5577   lt_cv_prog_gnu_ld=no
5578   ;;
5579 esac
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5582 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5583 with_gnu_ld=$lt_cv_prog_gnu_ld
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5594 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5595 if test "${lt_cv_path_NM+set}" = set; then :
5596   $as_echo_n "(cached) " >&6
5597 else
5598   if test -n "$NM"; then
5599   # Let the user override the test.
5600   lt_cv_path_NM="$NM"
5601 else
5602   lt_nm_to_check="${ac_tool_prefix}nm"
5603   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5604     lt_nm_to_check="$lt_nm_to_check nm"
5605   fi
5606   for lt_tmp_nm in $lt_nm_to_check; do
5607     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5608     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5609       IFS="$lt_save_ifs"
5610       test -z "$ac_dir" && ac_dir=.
5611       tmp_nm="$ac_dir/$lt_tmp_nm"
5612       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5613         # Check to see if the nm accepts a BSD-compat flag.
5614         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5615         #   nm: unknown option "B" ignored
5616         # Tru64's nm complains that /dev/null is an invalid object file
5617         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5618         */dev/null* | *'Invalid file or object type'*)
5619           lt_cv_path_NM="$tmp_nm -B"
5620           break
5621           ;;
5622         *)
5623           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5624           */dev/null*)
5625             lt_cv_path_NM="$tmp_nm -p"
5626             break
5627             ;;
5628           *)
5629             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5630             continue # so that we can try to find one that supports BSD flags
5631             ;;
5632           esac
5633           ;;
5634         esac
5635       fi
5636     done
5637     IFS="$lt_save_ifs"
5638   done
5639   : ${lt_cv_path_NM=no}
5640 fi
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5643 $as_echo "$lt_cv_path_NM" >&6; }
5644 if test "$lt_cv_path_NM" != "no"; then
5645   NM="$lt_cv_path_NM"
5646 else
5647   # Didn't find any BSD compatible name lister, look for dumpbin.
5648   if test -n "$DUMPBIN"; then :
5649     # Let the user override the test.
5650   else
5651     if test -n "$ac_tool_prefix"; then
5652   for ac_prog in dumpbin "link -dump"
5653   do
5654     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661   if test -n "$DUMPBIN"; then
5662   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667   IFS=$as_save_IFS
5668   test -z "$as_dir" && as_dir=.
5669     for ac_exec_ext in '' $ac_executable_extensions; do
5670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5671     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673     break 2
5674   fi
5675 done
5676   done
5677 IFS=$as_save_IFS
5678
5679 fi
5680 fi
5681 DUMPBIN=$ac_cv_prog_DUMPBIN
5682 if test -n "$DUMPBIN"; then
5683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5684 $as_echo "$DUMPBIN" >&6; }
5685 else
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5688 fi
5689
5690
5691     test -n "$DUMPBIN" && break
5692   done
5693 fi
5694 if test -z "$DUMPBIN"; then
5695   ac_ct_DUMPBIN=$DUMPBIN
5696   for ac_prog in dumpbin "link -dump"
5697 do
5698   # Extract the first word of "$ac_prog", so it can be a program name with args.
5699 set dummy $ac_prog; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   if test -n "$ac_ct_DUMPBIN"; then
5706   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713     for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720   done
5721 IFS=$as_save_IFS
5722
5723 fi
5724 fi
5725 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5726 if test -n "$ac_ct_DUMPBIN"; then
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5728 $as_echo "$ac_ct_DUMPBIN" >&6; }
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5732 fi
5733
5734
5735   test -n "$ac_ct_DUMPBIN" && break
5736 done
5737
5738   if test "x$ac_ct_DUMPBIN" = x; then
5739     DUMPBIN=":"
5740   else
5741     case $cross_compiling:$ac_tool_warned in
5742 yes:)
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745 ac_tool_warned=yes ;;
5746 esac
5747     DUMPBIN=$ac_ct_DUMPBIN
5748   fi
5749 fi
5750
5751     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5752     *COFF*)
5753       DUMPBIN="$DUMPBIN -symbols"
5754       ;;
5755     *)
5756       DUMPBIN=:
5757       ;;
5758     esac
5759   fi
5760
5761   if test "$DUMPBIN" != ":"; then
5762     NM="$DUMPBIN"
5763   fi
5764 fi
5765 test -z "$NM" && NM=nm
5766
5767
5768
5769
5770
5771
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5773 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5774 if test "${lt_cv_nm_interface+set}" = set; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   lt_cv_nm_interface="BSD nm"
5778   echo "int some_variable = 0;" > conftest.$ac_ext
5779   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5780   (eval "$ac_compile" 2>conftest.err)
5781   cat conftest.err >&5
5782   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5783   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5784   cat conftest.err >&5
5785   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5786   cat conftest.out >&5
5787   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5788     lt_cv_nm_interface="MS dumpbin"
5789   fi
5790   rm -f conftest*
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5793 $as_echo "$lt_cv_nm_interface" >&6; }
5794
5795 # find the maximum length of command line arguments
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5797 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5798 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801     i=0
5802   teststring="ABCD"
5803
5804   case $build_os in
5805   msdosdjgpp*)
5806     # On DJGPP, this test can blow up pretty badly due to problems in libc
5807     # (any single argument exceeding 2000 bytes causes a buffer overrun
5808     # during glob expansion).  Even if it were fixed, the result of this
5809     # check would be larger than it should be.
5810     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5811     ;;
5812
5813   gnu*)
5814     # Under GNU Hurd, this test is not required because there is
5815     # no limit to the length of command line arguments.
5816     # Libtool will interpret -1 as no limit whatsoever
5817     lt_cv_sys_max_cmd_len=-1;
5818     ;;
5819
5820   cygwin* | mingw* | cegcc*)
5821     # On Win9x/ME, this test blows up -- it succeeds, but takes
5822     # about 5 minutes as the teststring grows exponentially.
5823     # Worse, since 9x/ME are not pre-emptively multitasking,
5824     # you end up with a "frozen" computer, even though with patience
5825     # the test eventually succeeds (with a max line length of 256k).
5826     # Instead, let's just punt: use the minimum linelength reported by
5827     # all of the supported platforms: 8192 (on NT/2K/XP).
5828     lt_cv_sys_max_cmd_len=8192;
5829     ;;
5830
5831   mint*)
5832     # On MiNT this can take a long time and run out of memory.
5833     lt_cv_sys_max_cmd_len=8192;
5834     ;;
5835
5836   amigaos*)
5837     # On AmigaOS with pdksh, this test takes hours, literally.
5838     # So we just punt and use a minimum line length of 8192.
5839     lt_cv_sys_max_cmd_len=8192;
5840     ;;
5841
5842   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5843     # This has been around since 386BSD, at least.  Likely further.
5844     if test -x /sbin/sysctl; then
5845       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5846     elif test -x /usr/sbin/sysctl; then
5847       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5848     else
5849       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5850     fi
5851     # And add a safety zone
5852     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5853     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5854     ;;
5855
5856   interix*)
5857     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5858     lt_cv_sys_max_cmd_len=196608
5859     ;;
5860
5861   osf*)
5862     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5863     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5864     # nice to cause kernel panics so lets avoid the loop below.
5865     # First set a reasonable default.
5866     lt_cv_sys_max_cmd_len=16384
5867     #
5868     if test -x /sbin/sysconfig; then
5869       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5870         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5871       esac
5872     fi
5873     ;;
5874   sco3.2v5*)
5875     lt_cv_sys_max_cmd_len=102400
5876     ;;
5877   sysv5* | sco5v6* | sysv4.2uw2*)
5878     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5879     if test -n "$kargmax"; then
5880       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5881     else
5882       lt_cv_sys_max_cmd_len=32768
5883     fi
5884     ;;
5885   *)
5886     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5887     if test -n "$lt_cv_sys_max_cmd_len"; then
5888       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5889       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5890     else
5891       # Make teststring a little bigger before we do anything with it.
5892       # a 1K string should be a reasonable start.
5893       for i in 1 2 3 4 5 6 7 8 ; do
5894         teststring=$teststring$teststring
5895       done
5896       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5897       # If test is not a shell built-in, we'll probably end up computing a
5898       # maximum length that is only half of the actual maximum length, but
5899       # we can't tell.
5900       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5901                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5902               test $i != 17 # 1/2 MB should be enough
5903       do
5904         i=`expr $i + 1`
5905         teststring=$teststring$teststring
5906       done
5907       # Only check the string length outside the loop.
5908       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5909       teststring=
5910       # Add a significant safety factor because C++ compilers can tack on
5911       # massive amounts of additional arguments before passing them to the
5912       # linker.  It appears as though 1/2 is a usable value.
5913       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5914     fi
5915     ;;
5916   esac
5917
5918 fi
5919
5920 if test -n $lt_cv_sys_max_cmd_len ; then
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5922 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5923 else
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5925 $as_echo "none" >&6; }
5926 fi
5927 max_cmd_len=$lt_cv_sys_max_cmd_len
5928
5929
5930
5931
5932
5933
5934 : ${CP="cp -f"}
5935 : ${MV="mv -f"}
5936 : ${RM="rm -f"}
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5939 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5940 # Try some XSI features
5941 xsi_shell=no
5942 ( _lt_dummy="a/b/c"
5943   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5944       = c,a/b,, \
5945     && eval 'test $(( 1 + 1 )) -eq 2 \
5946     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5947   && xsi_shell=yes
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5949 $as_echo "$xsi_shell" >&6; }
5950
5951
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5953 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5954 lt_shell_append=no
5955 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5956     >/dev/null 2>&1 \
5957   && lt_shell_append=yes
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5959 $as_echo "$lt_shell_append" >&6; }
5960
5961
5962 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5963   lt_unset=unset
5964 else
5965   lt_unset=false
5966 fi
5967
5968
5969
5970
5971
5972 # test EBCDIC or ASCII
5973 case `echo X|tr X '\101'` in
5974  A) # ASCII based system
5975     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5976   lt_SP2NL='tr \040 \012'
5977   lt_NL2SP='tr \015\012 \040\040'
5978   ;;
5979  *) # EBCDIC based system
5980   lt_SP2NL='tr \100 \n'
5981   lt_NL2SP='tr \r\n \100\100'
5982   ;;
5983 esac
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5994 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5995 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   lt_cv_ld_reload_flag='-r'
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6001 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6002 reload_flag=$lt_cv_ld_reload_flag
6003 case $reload_flag in
6004 "" | " "*) ;;
6005 *) reload_flag=" $reload_flag" ;;
6006 esac
6007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6008 case $host_os in
6009   darwin*)
6010     if test "$GCC" = yes; then
6011       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6012     else
6013       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6014     fi
6015     ;;
6016 esac
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026 if test -n "$ac_tool_prefix"; then
6027   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6028 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   if test -n "$OBJDUMP"; then
6035   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042     for ac_exec_ext in '' $ac_executable_extensions; do
6043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049   done
6050 IFS=$as_save_IFS
6051
6052 fi
6053 fi
6054 OBJDUMP=$ac_cv_prog_OBJDUMP
6055 if test -n "$OBJDUMP"; then
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6057 $as_echo "$OBJDUMP" >&6; }
6058 else
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6061 fi
6062
6063
6064 fi
6065 if test -z "$ac_cv_prog_OBJDUMP"; then
6066   ac_ct_OBJDUMP=$OBJDUMP
6067   # Extract the first word of "objdump", so it can be a program name with args.
6068 set dummy objdump; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074   if test -n "$ac_ct_OBJDUMP"; then
6075   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6076 else
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH
6079 do
6080   IFS=$as_save_IFS
6081   test -z "$as_dir" && as_dir=.
6082     for ac_exec_ext in '' $ac_executable_extensions; do
6083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6084     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086     break 2
6087   fi
6088 done
6089   done
6090 IFS=$as_save_IFS
6091
6092 fi
6093 fi
6094 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6095 if test -n "$ac_ct_OBJDUMP"; then
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6097 $as_echo "$ac_ct_OBJDUMP" >&6; }
6098 else
6099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101 fi
6102
6103   if test "x$ac_ct_OBJDUMP" = x; then
6104     OBJDUMP="false"
6105   else
6106     case $cross_compiling:$ac_tool_warned in
6107 yes:)
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6110 ac_tool_warned=yes ;;
6111 esac
6112     OBJDUMP=$ac_ct_OBJDUMP
6113   fi
6114 else
6115   OBJDUMP="$ac_cv_prog_OBJDUMP"
6116 fi
6117
6118 test -z "$OBJDUMP" && OBJDUMP=objdump
6119
6120
6121
6122
6123
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6126 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6127 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6128   $as_echo_n "(cached) " >&6
6129 else
6130   lt_cv_file_magic_cmd='$MAGIC_CMD'
6131 lt_cv_file_magic_test_file=
6132 lt_cv_deplibs_check_method='unknown'
6133 # Need to set the preceding variable on all platforms that support
6134 # interlibrary dependencies.
6135 # 'none' -- dependencies not supported.
6136 # `unknown' -- same as none, but documents that we really don't know.
6137 # 'pass_all' -- all dependencies passed with no checks.
6138 # 'test_compile' -- check by making test program.
6139 # 'file_magic [[regex]]' -- check by looking for files in library path
6140 # which responds to the $file_magic_cmd with a given extended regex.
6141 # If you have `file' or equivalent on your system and you're not sure
6142 # whether `pass_all' will *always* work, you probably want this one.
6143
6144 case $host_os in
6145 aix[4-9]*)
6146   lt_cv_deplibs_check_method=pass_all
6147   ;;
6148
6149 beos*)
6150   lt_cv_deplibs_check_method=pass_all
6151   ;;
6152
6153 bsdi[45]*)
6154   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6155   lt_cv_file_magic_cmd='/usr/bin/file -L'
6156   lt_cv_file_magic_test_file=/shlib/libc.so
6157   ;;
6158
6159 cygwin*)
6160   # func_win32_libid is a shell function defined in ltmain.sh
6161   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6162   lt_cv_file_magic_cmd='func_win32_libid'
6163   ;;
6164
6165 mingw* | pw32*)
6166   # Base MSYS/MinGW do not provide the 'file' command needed by
6167   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6168   # unless we find 'file', for example because we are cross-compiling.
6169   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6170   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6171     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6172     lt_cv_file_magic_cmd='func_win32_libid'
6173   else
6174     # Keep this pattern in sync with the one in func_win32_libid.
6175     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6176     lt_cv_file_magic_cmd='$OBJDUMP -f'
6177   fi
6178   ;;
6179
6180 cegcc*)
6181   # use the weaker test based on 'objdump'. See mingw*.
6182   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6183   lt_cv_file_magic_cmd='$OBJDUMP -f'
6184   ;;
6185
6186 darwin* | rhapsody*)
6187   lt_cv_deplibs_check_method=pass_all
6188   ;;
6189
6190 freebsd* | dragonfly*)
6191   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6192     case $host_cpu in
6193     i*86 )
6194       # Not sure whether the presence of OpenBSD here was a mistake.
6195       # Let's accept both of them until this is cleared up.
6196       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6197       lt_cv_file_magic_cmd=/usr/bin/file
6198       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6199       ;;
6200     esac
6201   else
6202     lt_cv_deplibs_check_method=pass_all
6203   fi
6204   ;;
6205
6206 gnu*)
6207   lt_cv_deplibs_check_method=pass_all
6208   ;;
6209
6210 haiku*)
6211   lt_cv_deplibs_check_method=pass_all
6212   ;;
6213
6214 hpux10.20* | hpux11*)
6215   lt_cv_file_magic_cmd=/usr/bin/file
6216   case $host_cpu in
6217   ia64*)
6218     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6219     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6220     ;;
6221   hppa*64*)
6222     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6223     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6224     ;;
6225   *)
6226     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6227     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6228     ;;
6229   esac
6230   ;;
6231
6232 interix[3-9]*)
6233   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6234   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6235   ;;
6236
6237 irix5* | irix6* | nonstopux*)
6238   case $LD in
6239   *-32|*"-32 ") libmagic=32-bit;;
6240   *-n32|*"-n32 ") libmagic=N32;;
6241   *-64|*"-64 ") libmagic=64-bit;;
6242   *) libmagic=never-match;;
6243   esac
6244   lt_cv_deplibs_check_method=pass_all
6245   ;;
6246
6247 # This must be Linux ELF.
6248 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6249   lt_cv_deplibs_check_method=pass_all
6250   ;;
6251
6252 netbsd*)
6253   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6254     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6255   else
6256     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6257   fi
6258   ;;
6259
6260 newos6*)
6261   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6262   lt_cv_file_magic_cmd=/usr/bin/file
6263   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6264   ;;
6265
6266 *nto* | *qnx*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269
6270 openbsd*)
6271   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6272     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6273   else
6274     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6275   fi
6276   ;;
6277
6278 osf3* | osf4* | osf5*)
6279   lt_cv_deplibs_check_method=pass_all
6280   ;;
6281
6282 rdos*)
6283   lt_cv_deplibs_check_method=pass_all
6284   ;;
6285
6286 solaris*)
6287   lt_cv_deplibs_check_method=pass_all
6288   ;;
6289
6290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6291   lt_cv_deplibs_check_method=pass_all
6292   ;;
6293
6294 sysv4 | sysv4.3*)
6295   case $host_vendor in
6296   motorola)
6297     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]'
6298     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6299     ;;
6300   ncr)
6301     lt_cv_deplibs_check_method=pass_all
6302     ;;
6303   sequent)
6304     lt_cv_file_magic_cmd='/bin/file'
6305     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6306     ;;
6307   sni)
6308     lt_cv_file_magic_cmd='/bin/file'
6309     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6310     lt_cv_file_magic_test_file=/lib/libc.so
6311     ;;
6312   siemens)
6313     lt_cv_deplibs_check_method=pass_all
6314     ;;
6315   pc)
6316     lt_cv_deplibs_check_method=pass_all
6317     ;;
6318   esac
6319   ;;
6320
6321 tpf*)
6322   lt_cv_deplibs_check_method=pass_all
6323   ;;
6324 esac
6325
6326 fi
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6328 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6329 file_magic_cmd=$lt_cv_file_magic_cmd
6330 deplibs_check_method=$lt_cv_deplibs_check_method
6331 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 if test -n "$ac_tool_prefix"; then
6345   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6346 set dummy ${ac_tool_prefix}ar; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_AR+set}" = set; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352   if test -n "$AR"; then
6353   ac_cv_prog_AR="$AR" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360     for ac_exec_ext in '' $ac_executable_extensions; do
6361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362     ac_cv_prog_AR="${ac_tool_prefix}ar"
6363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367   done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 AR=$ac_cv_prog_AR
6373 if test -n "$AR"; then
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6375 $as_echo "$AR" >&6; }
6376 else
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381
6382 fi
6383 if test -z "$ac_cv_prog_AR"; then
6384   ac_ct_AR=$AR
6385   # Extract the first word of "ar", so it can be a program name with args.
6386 set dummy ar; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6390   $as_echo_n "(cached) " >&6
6391 else
6392   if test -n "$ac_ct_AR"; then
6393   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398   IFS=$as_save_IFS
6399   test -z "$as_dir" && as_dir=.
6400     for ac_exec_ext in '' $ac_executable_extensions; do
6401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402     ac_cv_prog_ac_ct_AR="ar"
6403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407   done
6408 IFS=$as_save_IFS
6409
6410 fi
6411 fi
6412 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6413 if test -n "$ac_ct_AR"; then
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6415 $as_echo "$ac_ct_AR" >&6; }
6416 else
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6419 fi
6420
6421   if test "x$ac_ct_AR" = x; then
6422     AR="false"
6423   else
6424     case $cross_compiling:$ac_tool_warned in
6425 yes:)
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428 ac_tool_warned=yes ;;
6429 esac
6430     AR=$ac_ct_AR
6431   fi
6432 else
6433   AR="$ac_cv_prog_AR"
6434 fi
6435
6436 test -z "$AR" && AR=ar
6437 test -z "$AR_FLAGS" && AR_FLAGS=cru
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449 if test -n "$ac_tool_prefix"; then
6450   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6451 set dummy ${ac_tool_prefix}strip; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if test "${ac_cv_prog_STRIP+set}" = set; then :
6455   $as_echo_n "(cached) " >&6
6456 else
6457   if test -n "$STRIP"; then
6458   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463   IFS=$as_save_IFS
6464   test -z "$as_dir" && as_dir=.
6465     for ac_exec_ext in '' $ac_executable_extensions; do
6466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469     break 2
6470   fi
6471 done
6472   done
6473 IFS=$as_save_IFS
6474
6475 fi
6476 fi
6477 STRIP=$ac_cv_prog_STRIP
6478 if test -n "$STRIP"; then
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6480 $as_echo "$STRIP" >&6; }
6481 else
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6484 fi
6485
6486
6487 fi
6488 if test -z "$ac_cv_prog_STRIP"; then
6489   ac_ct_STRIP=$STRIP
6490   # Extract the first word of "strip", so it can be a program name with args.
6491 set dummy strip; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6495   $as_echo_n "(cached) " >&6
6496 else
6497   if test -n "$ac_ct_STRIP"; then
6498   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
6503   IFS=$as_save_IFS
6504   test -z "$as_dir" && as_dir=.
6505     for ac_exec_ext in '' $ac_executable_extensions; do
6506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507     ac_cv_prog_ac_ct_STRIP="strip"
6508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509     break 2
6510   fi
6511 done
6512   done
6513 IFS=$as_save_IFS
6514
6515 fi
6516 fi
6517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6518 if test -n "$ac_ct_STRIP"; then
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6520 $as_echo "$ac_ct_STRIP" >&6; }
6521 else
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6524 fi
6525
6526   if test "x$ac_ct_STRIP" = x; then
6527     STRIP=":"
6528   else
6529     case $cross_compiling:$ac_tool_warned in
6530 yes:)
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned=yes ;;
6534 esac
6535     STRIP=$ac_ct_STRIP
6536   fi
6537 else
6538   STRIP="$ac_cv_prog_STRIP"
6539 fi
6540
6541 test -z "$STRIP" && STRIP=:
6542
6543
6544
6545
6546
6547
6548 if test -n "$ac_tool_prefix"; then
6549   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6554   $as_echo_n "(cached) " >&6
6555 else
6556   if test -n "$RANLIB"; then
6557   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564     for ac_exec_ext in '' $ac_executable_extensions; do
6565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571   done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 RANLIB=$ac_cv_prog_RANLIB
6577 if test -n "$RANLIB"; then
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6579 $as_echo "$RANLIB" >&6; }
6580 else
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585
6586 fi
6587 if test -z "$ac_cv_prog_RANLIB"; then
6588   ac_ct_RANLIB=$RANLIB
6589   # Extract the first word of "ranlib", so it can be a program name with args.
6590 set dummy ranlib; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6594   $as_echo_n "(cached) " >&6
6595 else
6596   if test -n "$ac_ct_RANLIB"; then
6597   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   test -z "$as_dir" && as_dir=.
6604     for ac_exec_ext in '' $ac_executable_extensions; do
6605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606     ac_cv_prog_ac_ct_RANLIB="ranlib"
6607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608     break 2
6609   fi
6610 done
6611   done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6617 if test -n "$ac_ct_RANLIB"; then
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6619 $as_echo "$ac_ct_RANLIB" >&6; }
6620 else
6621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6623 fi
6624
6625   if test "x$ac_ct_RANLIB" = x; then
6626     RANLIB=":"
6627   else
6628     case $cross_compiling:$ac_tool_warned in
6629 yes:)
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6633 esac
6634     RANLIB=$ac_ct_RANLIB
6635   fi
6636 else
6637   RANLIB="$ac_cv_prog_RANLIB"
6638 fi
6639
6640 test -z "$RANLIB" && RANLIB=:
6641
6642
6643
6644
6645
6646
6647 # Determine commands to create old-style static archives.
6648 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6649 old_postinstall_cmds='chmod 644 $oldlib'
6650 old_postuninstall_cmds=
6651
6652 if test -n "$RANLIB"; then
6653   case $host_os in
6654   openbsd*)
6655     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6656     ;;
6657   *)
6658     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6659     ;;
6660   esac
6661   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6662 fi
6663
6664 case $host_os in
6665   darwin*)
6666     lock_old_archive_extraction=yes ;;
6667   *)
6668     lock_old_archive_extraction=no ;;
6669 esac
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709 # If no C compiler was specified, use CC.
6710 LTCC=${LTCC-"$CC"}
6711
6712 # If no C compiler flags were specified, use CFLAGS.
6713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6714
6715 # Allow CC to be a program name with arguments.
6716 compiler=$CC
6717
6718
6719 # Check for command to grab the raw symbol name followed by C symbol from nm.
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6721 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6722 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6723   $as_echo_n "(cached) " >&6
6724 else
6725
6726 # These are sane defaults that work on at least a few old systems.
6727 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6728
6729 # Character class describing NM global symbol codes.
6730 symcode='[BCDEGRST]'
6731
6732 # Regexp to match symbols that can be accessed directly from C.
6733 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6734
6735 # Define system-specific variables.
6736 case $host_os in
6737 aix*)
6738   symcode='[BCDT]'
6739   ;;
6740 cygwin* | mingw* | pw32* | cegcc*)
6741   symcode='[ABCDGISTW]'
6742   ;;
6743 hpux*)
6744   if test "$host_cpu" = ia64; then
6745     symcode='[ABCDEGRST]'
6746   fi
6747   ;;
6748 irix* | nonstopux*)
6749   symcode='[BCDEGRST]'
6750   ;;
6751 osf*)
6752   symcode='[BCDEGQRST]'
6753   ;;
6754 solaris*)
6755   symcode='[BDRT]'
6756   ;;
6757 sco3.2v5*)
6758   symcode='[DT]'
6759   ;;
6760 sysv4.2uw2*)
6761   symcode='[DT]'
6762   ;;
6763 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6764   symcode='[ABDT]'
6765   ;;
6766 sysv4)
6767   symcode='[DFNSTU]'
6768   ;;
6769 esac
6770
6771 # If we're using GNU nm, then use its standard symbol codes.
6772 case `$NM -V 2>&1` in
6773 *GNU* | *'with BFD'*)
6774   symcode='[ABCDGIRSTW]' ;;
6775 esac
6776
6777 # Transform an extracted symbol line into a proper C declaration.
6778 # Some systems (esp. on ia64) link data and code symbols differently,
6779 # so use this general approach.
6780 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6781
6782 # Transform an extracted symbol line into symbol name and symbol address
6783 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6784 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'"
6785
6786 # Handle CRLF in mingw tool chain
6787 opt_cr=
6788 case $build_os in
6789 mingw*)
6790   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6791   ;;
6792 esac
6793
6794 # Try without a prefix underscore, then with it.
6795 for ac_symprfx in "" "_"; do
6796
6797   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6798   symxfrm="\\1 $ac_symprfx\\2 \\2"
6799
6800   # Write the raw and C identifiers.
6801   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6802     # Fake it for dumpbin and say T for any non-static function
6803     # and D for any global variable.
6804     # Also find C++ and __fastcall symbols from MSVC++,
6805     # which start with @ or ?.
6806     lt_cv_sys_global_symbol_pipe="$AWK '"\
6807 "     {last_section=section; section=\$ 3};"\
6808 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6809 "     \$ 0!~/External *\|/{next};"\
6810 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6811 "     {if(hide[section]) next};"\
6812 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6813 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6814 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6815 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6816 "     ' prfx=^$ac_symprfx"
6817   else
6818     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6819   fi
6820
6821   # Check to see that the pipe works correctly.
6822   pipe_works=no
6823
6824   rm -f conftest*
6825   cat > conftest.$ac_ext <<_LT_EOF
6826 #ifdef __cplusplus
6827 extern "C" {
6828 #endif
6829 char nm_test_var;
6830 void nm_test_func(void);
6831 void nm_test_func(void){}
6832 #ifdef __cplusplus
6833 }
6834 #endif
6835 int main(){nm_test_var='a';nm_test_func();return(0);}
6836 _LT_EOF
6837
6838   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6839   (eval $ac_compile) 2>&5
6840   ac_status=$?
6841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842   test $ac_status = 0; }; then
6843     # Now try to grab the symbols.
6844     nlist=conftest.nm
6845     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6846   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6847   ac_status=$?
6848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849   test $ac_status = 0; } && test -s "$nlist"; then
6850       # Try sorting and uniquifying the output.
6851       if sort "$nlist" | uniq > "$nlist"T; then
6852         mv -f "$nlist"T "$nlist"
6853       else
6854         rm -f "$nlist"T
6855       fi
6856
6857       # Make sure that we snagged all the symbols we need.
6858       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6859         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6860           cat <<_LT_EOF > conftest.$ac_ext
6861 #ifdef __cplusplus
6862 extern "C" {
6863 #endif
6864
6865 _LT_EOF
6866           # Now generate the symbol file.
6867           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6868
6869           cat <<_LT_EOF >> conftest.$ac_ext
6870
6871 /* The mapping between symbol names and symbols.  */
6872 const struct {
6873   const char *name;
6874   void       *address;
6875 }
6876 lt__PROGRAM__LTX_preloaded_symbols[] =
6877 {
6878   { "@PROGRAM@", (void *) 0 },
6879 _LT_EOF
6880           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6881           cat <<\_LT_EOF >> conftest.$ac_ext
6882   {0, (void *) 0}
6883 };
6884
6885 /* This works around a problem in FreeBSD linker */
6886 #ifdef FREEBSD_WORKAROUND
6887 static const void *lt_preloaded_setup() {
6888   return lt__PROGRAM__LTX_preloaded_symbols;
6889 }
6890 #endif
6891
6892 #ifdef __cplusplus
6893 }
6894 #endif
6895 _LT_EOF
6896           # Now try linking the two files.
6897           mv conftest.$ac_objext conftstm.$ac_objext
6898           lt_save_LIBS="$LIBS"
6899           lt_save_CFLAGS="$CFLAGS"
6900           LIBS="conftstm.$ac_objext"
6901           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6902           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6903   (eval $ac_link) 2>&5
6904   ac_status=$?
6905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6906   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6907             pipe_works=yes
6908           fi
6909           LIBS="$lt_save_LIBS"
6910           CFLAGS="$lt_save_CFLAGS"
6911         else
6912           echo "cannot find nm_test_func in $nlist" >&5
6913         fi
6914       else
6915         echo "cannot find nm_test_var in $nlist" >&5
6916       fi
6917     else
6918       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6919     fi
6920   else
6921     echo "$progname: failed program was:" >&5
6922     cat conftest.$ac_ext >&5
6923   fi
6924   rm -rf conftest* conftst*
6925
6926   # Do not use the global_symbol_pipe unless it works.
6927   if test "$pipe_works" = yes; then
6928     break
6929   else
6930     lt_cv_sys_global_symbol_pipe=
6931   fi
6932 done
6933
6934 fi
6935
6936 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6937   lt_cv_sys_global_symbol_to_cdecl=
6938 fi
6939 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6941 $as_echo "failed" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6944 $as_echo "ok" >&6; }
6945 fi
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968 # Check whether --enable-libtool-lock was given.
6969 if test "${enable_libtool_lock+set}" = set; then :
6970   enableval=$enable_libtool_lock;
6971 fi
6972
6973 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6974
6975 # Some flags need to be propagated to the compiler or linker for good
6976 # libtool support.
6977 case $host in
6978 ia64-*-hpux*)
6979   # Find out which ABI we are using.
6980   echo 'int i;' > conftest.$ac_ext
6981   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6982   (eval $ac_compile) 2>&5
6983   ac_status=$?
6984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6985   test $ac_status = 0; }; then
6986     case `/usr/bin/file conftest.$ac_objext` in
6987       *ELF-32*)
6988         HPUX_IA64_MODE="32"
6989         ;;
6990       *ELF-64*)
6991         HPUX_IA64_MODE="64"
6992         ;;
6993     esac
6994   fi
6995   rm -rf conftest*
6996   ;;
6997 *-*-irix6*)
6998   # Find out which ABI we are using.
6999   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7000   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001   (eval $ac_compile) 2>&5
7002   ac_status=$?
7003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004   test $ac_status = 0; }; then
7005     if test "$lt_cv_prog_gnu_ld" = yes; then
7006       case `/usr/bin/file conftest.$ac_objext` in
7007         *32-bit*)
7008           LD="${LD-ld} -melf32bsmip"
7009           ;;
7010         *N32*)
7011           LD="${LD-ld} -melf32bmipn32"
7012           ;;
7013         *64-bit*)
7014           LD="${LD-ld} -melf64bmip"
7015         ;;
7016       esac
7017     else
7018       case `/usr/bin/file conftest.$ac_objext` in
7019         *32-bit*)
7020           LD="${LD-ld} -32"
7021           ;;
7022         *N32*)
7023           LD="${LD-ld} -n32"
7024           ;;
7025         *64-bit*)
7026           LD="${LD-ld} -64"
7027           ;;
7028       esac
7029     fi
7030   fi
7031   rm -rf conftest*
7032   ;;
7033
7034 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7035 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7036   # Find out which ABI we are using.
7037   echo 'int i;' > conftest.$ac_ext
7038   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7039   (eval $ac_compile) 2>&5
7040   ac_status=$?
7041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042   test $ac_status = 0; }; then
7043     case `/usr/bin/file conftest.o` in
7044       *32-bit*)
7045         case $host in
7046           x86_64-*kfreebsd*-gnu)
7047             LD="${LD-ld} -m elf_i386_fbsd"
7048             ;;
7049           x86_64-*linux*)
7050             LD="${LD-ld} -m elf_i386"
7051             ;;
7052           ppc64-*linux*|powerpc64-*linux*)
7053             LD="${LD-ld} -m elf32ppclinux"
7054             ;;
7055           s390x-*linux*)
7056             LD="${LD-ld} -m elf_s390"
7057             ;;
7058           sparc64-*linux*)
7059             LD="${LD-ld} -m elf32_sparc"
7060             ;;
7061         esac
7062         ;;
7063       *64-bit*)
7064         case $host in
7065           x86_64-*kfreebsd*-gnu)
7066             LD="${LD-ld} -m elf_x86_64_fbsd"
7067             ;;
7068           x86_64-*linux*)
7069             LD="${LD-ld} -m elf_x86_64"
7070             ;;
7071           ppc*-*linux*|powerpc*-*linux*)
7072             LD="${LD-ld} -m elf64ppc"
7073             ;;
7074           s390*-*linux*|s390*-*tpf*)
7075             LD="${LD-ld} -m elf64_s390"
7076             ;;
7077           sparc*-*linux*)
7078             LD="${LD-ld} -m elf64_sparc"
7079             ;;
7080         esac
7081         ;;
7082     esac
7083   fi
7084   rm -rf conftest*
7085   ;;
7086
7087 *-*-sco3.2v5*)
7088   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7089   SAVE_CFLAGS="$CFLAGS"
7090   CFLAGS="$CFLAGS -belf"
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7092 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7093 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7094   $as_echo_n "(cached) " >&6
7095 else
7096   ac_ext=c
7097 ac_cpp='$CPP $CPPFLAGS'
7098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7101
7102      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h.  */
7104
7105 int
7106 main ()
7107 {
7108
7109   ;
7110   return 0;
7111 }
7112 _ACEOF
7113 if ac_fn_c_try_link "$LINENO"; then :
7114   lt_cv_cc_needs_belf=yes
7115 else
7116   lt_cv_cc_needs_belf=no
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext \
7119     conftest$ac_exeext conftest.$ac_ext
7120      ac_ext=c
7121 ac_cpp='$CPP $CPPFLAGS'
7122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125
7126 fi
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7128 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7129   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7130     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7131     CFLAGS="$SAVE_CFLAGS"
7132   fi
7133   ;;
7134 sparc*-*solaris*)
7135   # Find out which ABI we are using.
7136   echo 'int i;' > conftest.$ac_ext
7137   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7138   (eval $ac_compile) 2>&5
7139   ac_status=$?
7140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141   test $ac_status = 0; }; then
7142     case `/usr/bin/file conftest.o` in
7143     *64-bit*)
7144       case $lt_cv_prog_gnu_ld in
7145       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7146       *)
7147         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7148           LD="${LD-ld} -64"
7149         fi
7150         ;;
7151       esac
7152       ;;
7153     esac
7154   fi
7155   rm -rf conftest*
7156   ;;
7157 esac
7158
7159 need_locks="$enable_libtool_lock"
7160
7161
7162   case $host_os in
7163     rhapsody* | darwin*)
7164     if test -n "$ac_tool_prefix"; then
7165   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7166 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7170   $as_echo_n "(cached) " >&6
7171 else
7172   if test -n "$DSYMUTIL"; then
7173   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180     for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187   done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7193 if test -n "$DSYMUTIL"; then
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7195 $as_echo "$DSYMUTIL" >&6; }
7196 else
7197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201
7202 fi
7203 if test -z "$ac_cv_prog_DSYMUTIL"; then
7204   ac_ct_DSYMUTIL=$DSYMUTIL
7205   # Extract the first word of "dsymutil", so it can be a program name with args.
7206 set dummy dsymutil; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7210   $as_echo_n "(cached) " >&6
7211 else
7212   if test -n "$ac_ct_DSYMUTIL"; then
7213   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220     for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227   done
7228 IFS=$as_save_IFS
7229
7230 fi
7231 fi
7232 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7233 if test -n "$ac_ct_DSYMUTIL"; then
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7235 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7236 else
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240
7241   if test "x$ac_ct_DSYMUTIL" = x; then
7242     DSYMUTIL=":"
7243   else
7244     case $cross_compiling:$ac_tool_warned in
7245 yes:)
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7248 ac_tool_warned=yes ;;
7249 esac
7250     DSYMUTIL=$ac_ct_DSYMUTIL
7251   fi
7252 else
7253   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7254 fi
7255
7256     if test -n "$ac_tool_prefix"; then
7257   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7258 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   if test -n "$NMEDIT"; then
7265   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 NMEDIT=$ac_cv_prog_NMEDIT
7285 if test -n "$NMEDIT"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7287 $as_echo "$NMEDIT" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293
7294 fi
7295 if test -z "$ac_cv_prog_NMEDIT"; then
7296   ac_ct_NMEDIT=$NMEDIT
7297   # Extract the first word of "nmedit", so it can be a program name with args.
7298 set dummy nmedit; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7302   $as_echo_n "(cached) " >&6
7303 else
7304   if test -n "$ac_ct_NMEDIT"; then
7305   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7306 else
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310   IFS=$as_save_IFS
7311   test -z "$as_dir" && as_dir=.
7312     for ac_exec_ext in '' $ac_executable_extensions; do
7313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7314     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316     break 2
7317   fi
7318 done
7319   done
7320 IFS=$as_save_IFS
7321
7322 fi
7323 fi
7324 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7325 if test -n "$ac_ct_NMEDIT"; then
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7327 $as_echo "$ac_ct_NMEDIT" >&6; }
7328 else
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331 fi
7332
7333   if test "x$ac_ct_NMEDIT" = x; then
7334     NMEDIT=":"
7335   else
7336     case $cross_compiling:$ac_tool_warned in
7337 yes:)
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7340 ac_tool_warned=yes ;;
7341 esac
7342     NMEDIT=$ac_ct_NMEDIT
7343   fi
7344 else
7345   NMEDIT="$ac_cv_prog_NMEDIT"
7346 fi
7347
7348     if test -n "$ac_tool_prefix"; then
7349   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if test "${ac_cv_prog_LIPO+set}" = set; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   if test -n "$LIPO"; then
7357   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 LIPO=$ac_cv_prog_LIPO
7377 if test -n "$LIPO"; then
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7379 $as_echo "$LIPO" >&6; }
7380 else
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385
7386 fi
7387 if test -z "$ac_cv_prog_LIPO"; then
7388   ac_ct_LIPO=$LIPO
7389   # Extract the first word of "lipo", so it can be a program name with args.
7390 set dummy lipo; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   if test -n "$ac_ct_LIPO"; then
7397   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404     for ac_exec_ext in '' $ac_executable_extensions; do
7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406     ac_cv_prog_ac_ct_LIPO="lipo"
7407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411   done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7417 if test -n "$ac_ct_LIPO"; then
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7419 $as_echo "$ac_ct_LIPO" >&6; }
7420 else
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424
7425   if test "x$ac_ct_LIPO" = x; then
7426     LIPO=":"
7427   else
7428     case $cross_compiling:$ac_tool_warned in
7429 yes:)
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7432 ac_tool_warned=yes ;;
7433 esac
7434     LIPO=$ac_ct_LIPO
7435   fi
7436 else
7437   LIPO="$ac_cv_prog_LIPO"
7438 fi
7439
7440     if test -n "$ac_tool_prefix"; then
7441   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7442 set dummy ${ac_tool_prefix}otool; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   if test -n "$OTOOL"; then
7449   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456     for ac_exec_ext in '' $ac_executable_extensions; do
7457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463   done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 OTOOL=$ac_cv_prog_OTOOL
7469 if test -n "$OTOOL"; then
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7471 $as_echo "$OTOOL" >&6; }
7472 else
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477
7478 fi
7479 if test -z "$ac_cv_prog_OTOOL"; then
7480   ac_ct_OTOOL=$OTOOL
7481   # Extract the first word of "otool", so it can be a program name with args.
7482 set dummy otool; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7486   $as_echo_n "(cached) " >&6
7487 else
7488   if test -n "$ac_ct_OTOOL"; then
7489   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496     for ac_exec_ext in '' $ac_executable_extensions; do
7497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498     ac_cv_prog_ac_ct_OTOOL="otool"
7499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503   done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7509 if test -n "$ac_ct_OTOOL"; then
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7511 $as_echo "$ac_ct_OTOOL" >&6; }
7512 else
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 fi
7516
7517   if test "x$ac_ct_OTOOL" = x; then
7518     OTOOL=":"
7519   else
7520     case $cross_compiling:$ac_tool_warned in
7521 yes:)
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned=yes ;;
7525 esac
7526     OTOOL=$ac_ct_OTOOL
7527   fi
7528 else
7529   OTOOL="$ac_cv_prog_OTOOL"
7530 fi
7531
7532     if test -n "$ac_tool_prefix"; then
7533   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   if test -n "$OTOOL64"; then
7541   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548     for ac_exec_ext in '' $ac_executable_extensions; do
7549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555   done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 OTOOL64=$ac_cv_prog_OTOOL64
7561 if test -n "$OTOOL64"; then
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7563 $as_echo "$OTOOL64" >&6; }
7564 else
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569
7570 fi
7571 if test -z "$ac_cv_prog_OTOOL64"; then
7572   ac_ct_OTOOL64=$OTOOL64
7573   # Extract the first word of "otool64", so it can be a program name with args.
7574 set dummy otool64; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580   if test -n "$ac_ct_OTOOL64"; then
7581   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586   IFS=$as_save_IFS
7587   test -z "$as_dir" && as_dir=.
7588     for ac_exec_ext in '' $ac_executable_extensions; do
7589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590     ac_cv_prog_ac_ct_OTOOL64="otool64"
7591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592     break 2
7593   fi
7594 done
7595   done
7596 IFS=$as_save_IFS
7597
7598 fi
7599 fi
7600 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7601 if test -n "$ac_ct_OTOOL64"; then
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7603 $as_echo "$ac_ct_OTOOL64" >&6; }
7604 else
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7607 fi
7608
7609   if test "x$ac_ct_OTOOL64" = x; then
7610     OTOOL64=":"
7611   else
7612     case $cross_compiling:$ac_tool_warned in
7613 yes:)
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616 ac_tool_warned=yes ;;
7617 esac
7618     OTOOL64=$ac_ct_OTOOL64
7619   fi
7620 else
7621   OTOOL64="$ac_cv_prog_OTOOL64"
7622 fi
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7651 $as_echo_n "checking for -single_module linker flag... " >&6; }
7652 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7653   $as_echo_n "(cached) " >&6
7654 else
7655   lt_cv_apple_cc_single_mod=no
7656       if test -z "${LT_MULTI_MODULE}"; then
7657         # By default we will add the -single_module flag. You can override
7658         # by either setting the environment variable LT_MULTI_MODULE
7659         # non-empty at configure time, or by adding -multi_module to the
7660         # link flags.
7661         rm -rf libconftest.dylib*
7662         echo "int foo(void){return 1;}" > conftest.c
7663         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7664 -dynamiclib -Wl,-single_module conftest.c" >&5
7665         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7666           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7667         _lt_result=$?
7668         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7669           lt_cv_apple_cc_single_mod=yes
7670         else
7671           cat conftest.err >&5
7672         fi
7673         rm -rf libconftest.dylib*
7674         rm -f conftest.*
7675       fi
7676 fi
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7678 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7680 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7681 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   lt_cv_ld_exported_symbols_list=no
7685       save_LDFLAGS=$LDFLAGS
7686       echo "_main" > conftest.sym
7687       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7688       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690
7691 int
7692 main ()
7693 {
7694
7695   ;
7696   return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_link "$LINENO"; then :
7700   lt_cv_ld_exported_symbols_list=yes
7701 else
7702   lt_cv_ld_exported_symbols_list=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext \
7705     conftest$ac_exeext conftest.$ac_ext
7706         LDFLAGS="$save_LDFLAGS"
7707
7708 fi
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7710 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7712 $as_echo_n "checking for -force_load linker flag... " >&6; }
7713 if test "${lt_cv_ld_force_load+set}" = set; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716   lt_cv_ld_force_load=no
7717       cat > conftest.c << _LT_EOF
7718 int forced_loaded() { return 2;}
7719 _LT_EOF
7720       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7721       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7722       echo "$AR cru libconftest.a conftest.o" >&5
7723       $AR cru libconftest.a conftest.o 2>&5
7724       echo "$RANLIB libconftest.a" >&5
7725       $RANLIB libconftest.a 2>&5
7726       cat > conftest.c << _LT_EOF
7727 int main() { return 0;}
7728 _LT_EOF
7729       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7730       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7731       _lt_result=$?
7732       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7733         lt_cv_ld_force_load=yes
7734       else
7735         cat conftest.err >&5
7736       fi
7737         rm -f conftest.err libconftest.a conftest conftest.c
7738         rm -rf conftest.dSYM
7739
7740 fi
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7742 $as_echo "$lt_cv_ld_force_load" >&6; }
7743     case $host_os in
7744     rhapsody* | darwin1.[012])
7745       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7746     darwin1.*)
7747       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7748     darwin*) # darwin 5.x on
7749       # if running on 10.5 or later, the deployment target defaults
7750       # to the OS version, if on x86, and 10.4, the deployment
7751       # target defaults to 10.4. Don't you love it?
7752       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7753         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7754           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7755         10.[012]*)
7756           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7757         10.*)
7758           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7759       esac
7760     ;;
7761   esac
7762     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7763       _lt_dar_single_mod='$single_module'
7764     fi
7765     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7766       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7767     else
7768       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7769     fi
7770     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7771       _lt_dsymutil='~$DSYMUTIL $lib || :'
7772     else
7773       _lt_dsymutil=
7774     fi
7775     ;;
7776   esac
7777
7778 ac_ext=c
7779 ac_cpp='$CPP $CPPFLAGS'
7780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7784 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7785 # On Suns, sometimes $CPP names a directory.
7786 if test -n "$CPP" && test -d "$CPP"; then
7787   CPP=
7788 fi
7789 if test -z "$CPP"; then
7790   if test "${ac_cv_prog_CPP+set}" = set; then :
7791   $as_echo_n "(cached) " >&6
7792 else
7793       # Double quotes because CPP needs to be expanded
7794     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7795     do
7796       ac_preproc_ok=false
7797 for ac_c_preproc_warn_flag in '' yes
7798 do
7799   # Use a header file that comes with gcc, so configuring glibc
7800   # with a fresh cross-compiler works.
7801   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802   # <limits.h> exists even on freestanding compilers.
7803   # On the NeXT, cc -E runs the code through the compiler's parser,
7804   # not just through cpp. "Syntax error" is here to catch this case.
7805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h.  */
7807 #ifdef __STDC__
7808 # include <limits.h>
7809 #else
7810 # include <assert.h>
7811 #endif
7812                      Syntax error
7813 _ACEOF
7814 if ac_fn_c_try_cpp "$LINENO"; then :
7815
7816 else
7817   # Broken: fails on valid input.
7818 continue
7819 fi
7820 rm -f conftest.err conftest.$ac_ext
7821
7822   # OK, works on sane cases.  Now check whether nonexistent headers
7823   # can be detected and how.
7824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h.  */
7826 #include <ac_nonexistent.h>
7827 _ACEOF
7828 if ac_fn_c_try_cpp "$LINENO"; then :
7829   # Broken: success on invalid input.
7830 continue
7831 else
7832   # Passes both tests.
7833 ac_preproc_ok=:
7834 break
7835 fi
7836 rm -f conftest.err conftest.$ac_ext
7837
7838 done
7839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7840 rm -f conftest.err conftest.$ac_ext
7841 if $ac_preproc_ok; then :
7842   break
7843 fi
7844
7845     done
7846     ac_cv_prog_CPP=$CPP
7847
7848 fi
7849   CPP=$ac_cv_prog_CPP
7850 else
7851   ac_cv_prog_CPP=$CPP
7852 fi
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7854 $as_echo "$CPP" >&6; }
7855 ac_preproc_ok=false
7856 for ac_c_preproc_warn_flag in '' yes
7857 do
7858   # Use a header file that comes with gcc, so configuring glibc
7859   # with a fresh cross-compiler works.
7860   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7861   # <limits.h> exists even on freestanding compilers.
7862   # On the NeXT, cc -E runs the code through the compiler's parser,
7863   # not just through cpp. "Syntax error" is here to catch this case.
7864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h.  */
7866 #ifdef __STDC__
7867 # include <limits.h>
7868 #else
7869 # include <assert.h>
7870 #endif
7871                      Syntax error
7872 _ACEOF
7873 if ac_fn_c_try_cpp "$LINENO"; then :
7874
7875 else
7876   # Broken: fails on valid input.
7877 continue
7878 fi
7879 rm -f conftest.err conftest.$ac_ext
7880
7881   # OK, works on sane cases.  Now check whether nonexistent headers
7882   # can be detected and how.
7883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h.  */
7885 #include <ac_nonexistent.h>
7886 _ACEOF
7887 if ac_fn_c_try_cpp "$LINENO"; then :
7888   # Broken: success on invalid input.
7889 continue
7890 else
7891   # Passes both tests.
7892 ac_preproc_ok=:
7893 break
7894 fi
7895 rm -f conftest.err conftest.$ac_ext
7896
7897 done
7898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7899 rm -f conftest.err conftest.$ac_ext
7900 if $ac_preproc_ok; then :
7901
7902 else
7903   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7905 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7906 See \`config.log' for more details." "$LINENO" 5; }
7907 fi
7908
7909 ac_ext=c
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7914
7915
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7917 $as_echo_n "checking for ANSI C header files... " >&6; }
7918 if test "${ac_cv_header_stdc+set}" = set; then :
7919   $as_echo_n "(cached) " >&6
7920 else
7921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h.  */
7923 #include <stdlib.h>
7924 #include <stdarg.h>
7925 #include <string.h>
7926 #include <float.h>
7927
7928 int
7929 main ()
7930 {
7931
7932   ;
7933   return 0;
7934 }
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937   ac_cv_header_stdc=yes
7938 else
7939   ac_cv_header_stdc=no
7940 fi
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942
7943 if test $ac_cv_header_stdc = yes; then
7944   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h.  */
7947 #include <string.h>
7948
7949 _ACEOF
7950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7951   $EGREP "memchr" >/dev/null 2>&1; then :
7952
7953 else
7954   ac_cv_header_stdc=no
7955 fi
7956 rm -f conftest*
7957
7958 fi
7959
7960 if test $ac_cv_header_stdc = yes; then
7961   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h.  */
7964 #include <stdlib.h>
7965
7966 _ACEOF
7967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7968   $EGREP "free" >/dev/null 2>&1; then :
7969
7970 else
7971   ac_cv_header_stdc=no
7972 fi
7973 rm -f conftest*
7974
7975 fi
7976
7977 if test $ac_cv_header_stdc = yes; then
7978   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7979   if test "$cross_compiling" = yes; then :
7980   :
7981 else
7982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h.  */
7984 #include <ctype.h>
7985 #include <stdlib.h>
7986 #if ((' ' & 0x0FF) == 0x020)
7987 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7988 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7989 #else
7990 # define ISLOWER(c) \
7991                    (('a' <= (c) && (c) <= 'i') \
7992                      || ('j' <= (c) && (c) <= 'r') \
7993                      || ('s' <= (c) && (c) <= 'z'))
7994 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7995 #endif
7996
7997 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7998 int
7999 main ()
8000 {
8001   int i;
8002   for (i = 0; i < 256; i++)
8003     if (XOR (islower (i), ISLOWER (i))
8004         || toupper (i) != TOUPPER (i))
8005       return 2;
8006   return 0;
8007 }
8008 _ACEOF
8009 if ac_fn_c_try_run "$LINENO"; then :
8010
8011 else
8012   ac_cv_header_stdc=no
8013 fi
8014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8015   conftest.$ac_objext conftest.beam conftest.$ac_ext
8016 fi
8017
8018 fi
8019 fi
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8021 $as_echo "$ac_cv_header_stdc" >&6; }
8022 if test $ac_cv_header_stdc = yes; then
8023
8024 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8025
8026 fi
8027
8028 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8029 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8030                   inttypes.h stdint.h unistd.h
8031 do :
8032   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8033 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8034 "
8035 eval as_val=\$$as_ac_Header
8036    if test "x$as_val" = x""yes; then :
8037   cat >>confdefs.h <<_ACEOF
8038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8039 _ACEOF
8040
8041 fi
8042
8043 done
8044
8045
8046 for ac_header in dlfcn.h
8047 do :
8048   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8049 "
8050 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8051   cat >>confdefs.h <<_ACEOF
8052 #define HAVE_DLFCN_H 1
8053 _ACEOF
8054
8055 fi
8056
8057 done
8058
8059
8060
8061
8062
8063
8064 # Set options
8065
8066
8067
8068         enable_dlopen=no
8069
8070
8071
8072
8073   # Check whether --enable-static was given.
8074 if test "${enable_static+set}" = set; then :
8075   enableval=$enable_static; p=${PACKAGE-default}
8076     case $enableval in
8077     yes) enable_static=yes ;;
8078     no) enable_static=no ;;
8079     *)
8080      enable_static=no
8081       # Look at the argument we got.  We use all the common list separators.
8082       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8083       for pkg in $enableval; do
8084         IFS="$lt_save_ifs"
8085         if test "X$pkg" = "X$p"; then
8086           enable_static=yes
8087         fi
8088       done
8089       IFS="$lt_save_ifs"
8090       ;;
8091     esac
8092 else
8093   enable_static=yes
8094 fi
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105 # Check whether --with-pic was given.
8106 if test "${with_pic+set}" = set; then :
8107   withval=$with_pic; pic_mode="$withval"
8108 else
8109   pic_mode=default
8110 fi
8111
8112
8113 test -z "$pic_mode" && pic_mode=default
8114
8115
8116
8117
8118
8119
8120
8121   # Check whether --enable-fast-install was given.
8122 if test "${enable_fast_install+set}" = set; then :
8123   enableval=$enable_fast_install; p=${PACKAGE-default}
8124     case $enableval in
8125     yes) enable_fast_install=yes ;;
8126     no) enable_fast_install=no ;;
8127     *)
8128       enable_fast_install=no
8129       # Look at the argument we got.  We use all the common list separators.
8130       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8131       for pkg in $enableval; do
8132         IFS="$lt_save_ifs"
8133         if test "X$pkg" = "X$p"; then
8134           enable_fast_install=yes
8135         fi
8136       done
8137       IFS="$lt_save_ifs"
8138       ;;
8139     esac
8140 else
8141   enable_fast_install=yes
8142 fi
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154 # This can be used to rebuild libtool when needed
8155 LIBTOOL_DEPS="$ltmain"
8156
8157 # Always use our own libtool.
8158 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185 test -z "$LN_S" && LN_S="ln -s"
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200 if test -n "${ZSH_VERSION+set}" ; then
8201    setopt NO_GLOB_SUBST
8202 fi
8203
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8205 $as_echo_n "checking for objdir... " >&6; }
8206 if test "${lt_cv_objdir+set}" = set; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   rm -f .libs 2>/dev/null
8210 mkdir .libs 2>/dev/null
8211 if test -d .libs; then
8212   lt_cv_objdir=.libs
8213 else
8214   # MS-DOS does not allow filenames that begin with a dot.
8215   lt_cv_objdir=_libs
8216 fi
8217 rmdir .libs 2>/dev/null
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8220 $as_echo "$lt_cv_objdir" >&6; }
8221 objdir=$lt_cv_objdir
8222
8223
8224
8225
8226
8227 cat >>confdefs.h <<_ACEOF
8228 #define LT_OBJDIR "$lt_cv_objdir/"
8229 _ACEOF
8230
8231
8232
8233
8234 case $host_os in
8235 aix3*)
8236   # AIX sometimes has problems with the GCC collect2 program.  For some
8237   # reason, if we set the COLLECT_NAMES environment variable, the problems
8238   # vanish in a puff of smoke.
8239   if test "X${COLLECT_NAMES+set}" != Xset; then
8240     COLLECT_NAMES=
8241     export COLLECT_NAMES
8242   fi
8243   ;;
8244 esac
8245
8246 # Global variables:
8247 ofile=libtool
8248 can_build_shared=yes
8249
8250 # All known linkers require a `.a' archive for static linking (except MSVC,
8251 # which needs '.lib').
8252 libext=a
8253
8254 with_gnu_ld="$lt_cv_prog_gnu_ld"
8255
8256 old_CC="$CC"
8257 old_CFLAGS="$CFLAGS"
8258
8259 # Set sane defaults for various variables
8260 test -z "$CC" && CC=cc
8261 test -z "$LTCC" && LTCC=$CC
8262 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8263 test -z "$LD" && LD=ld
8264 test -z "$ac_objext" && ac_objext=o
8265
8266 for cc_temp in $compiler""; do
8267   case $cc_temp in
8268     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8269     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8270     \-*) ;;
8271     *) break;;
8272   esac
8273 done
8274 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8275
8276
8277 # Only perform the check for file, if the check method requires it
8278 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8279 case $deplibs_check_method in
8280 file_magic*)
8281   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8283 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   case $MAGIC_CMD in
8288 [\\/*] |  ?:[\\/]*)
8289   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290   ;;
8291 *)
8292   lt_save_MAGIC_CMD="$MAGIC_CMD"
8293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8294   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8295   for ac_dir in $ac_dummy; do
8296     IFS="$lt_save_ifs"
8297     test -z "$ac_dir" && ac_dir=.
8298     if test -f $ac_dir/${ac_tool_prefix}file; then
8299       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8300       if test -n "$file_magic_test_file"; then
8301         case $deplibs_check_method in
8302         "file_magic "*)
8303           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8306             $EGREP "$file_magic_regex" > /dev/null; then
8307             :
8308           else
8309             cat <<_LT_EOF 1>&2
8310
8311 *** Warning: the command libtool uses to detect shared libraries,
8312 *** $file_magic_cmd, produces output that libtool cannot recognize.
8313 *** The result is that libtool may fail to recognize shared libraries
8314 *** as such.  This will affect the creation of libtool libraries that
8315 *** depend on shared libraries, but programs linked with such libtool
8316 *** libraries will work regardless of this problem.  Nevertheless, you
8317 *** may want to report the problem to your system manager and/or to
8318 *** bug-libtool@gnu.org
8319
8320 _LT_EOF
8321           fi ;;
8322         esac
8323       fi
8324       break
8325     fi
8326   done
8327   IFS="$lt_save_ifs"
8328   MAGIC_CMD="$lt_save_MAGIC_CMD"
8329   ;;
8330 esac
8331 fi
8332
8333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8334 if test -n "$MAGIC_CMD"; then
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8336 $as_echo "$MAGIC_CMD" >&6; }
8337 else
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342
8343
8344
8345
8346 if test -z "$lt_cv_path_MAGIC_CMD"; then
8347   if test -n "$ac_tool_prefix"; then
8348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8349 $as_echo_n "checking for file... " >&6; }
8350 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8351   $as_echo_n "(cached) " >&6
8352 else
8353   case $MAGIC_CMD in
8354 [\\/*] |  ?:[\\/]*)
8355   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8356   ;;
8357 *)
8358   lt_save_MAGIC_CMD="$MAGIC_CMD"
8359   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8360   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8361   for ac_dir in $ac_dummy; do
8362     IFS="$lt_save_ifs"
8363     test -z "$ac_dir" && ac_dir=.
8364     if test -f $ac_dir/file; then
8365       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8366       if test -n "$file_magic_test_file"; then
8367         case $deplibs_check_method in
8368         "file_magic "*)
8369           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8370           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8371           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8372             $EGREP "$file_magic_regex" > /dev/null; then
8373             :
8374           else
8375             cat <<_LT_EOF 1>&2
8376
8377 *** Warning: the command libtool uses to detect shared libraries,
8378 *** $file_magic_cmd, produces output that libtool cannot recognize.
8379 *** The result is that libtool may fail to recognize shared libraries
8380 *** as such.  This will affect the creation of libtool libraries that
8381 *** depend on shared libraries, but programs linked with such libtool
8382 *** libraries will work regardless of this problem.  Nevertheless, you
8383 *** may want to report the problem to your system manager and/or to
8384 *** bug-libtool@gnu.org
8385
8386 _LT_EOF
8387           fi ;;
8388         esac
8389       fi
8390       break
8391     fi
8392   done
8393   IFS="$lt_save_ifs"
8394   MAGIC_CMD="$lt_save_MAGIC_CMD"
8395   ;;
8396 esac
8397 fi
8398
8399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8400 if test -n "$MAGIC_CMD"; then
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8402 $as_echo "$MAGIC_CMD" >&6; }
8403 else
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408
8409   else
8410     MAGIC_CMD=:
8411   fi
8412 fi
8413
8414   fi
8415   ;;
8416 esac
8417
8418 # Use C for the default configuration in the libtool script
8419
8420 lt_save_CC="$CC"
8421 ac_ext=c
8422 ac_cpp='$CPP $CPPFLAGS'
8423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8426
8427
8428 # Source file extension for C test sources.
8429 ac_ext=c
8430
8431 # Object file extension for compiled C test sources.
8432 objext=o
8433 objext=$objext
8434
8435 # Code to be used in simple compile tests
8436 lt_simple_compile_test_code="int some_variable = 0;"
8437
8438 # Code to be used in simple link tests
8439 lt_simple_link_test_code='int main(){return(0);}'
8440
8441
8442
8443
8444
8445
8446
8447 # If no C compiler was specified, use CC.
8448 LTCC=${LTCC-"$CC"}
8449
8450 # If no C compiler flags were specified, use CFLAGS.
8451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8452
8453 # Allow CC to be a program name with arguments.
8454 compiler=$CC
8455
8456 # Save the default compiler, since it gets overwritten when the other
8457 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8458 compiler_DEFAULT=$CC
8459
8460 # save warnings/boilerplate of simple test code
8461 ac_outfile=conftest.$ac_objext
8462 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8463 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8464 _lt_compiler_boilerplate=`cat conftest.err`
8465 $RM conftest*
8466
8467 ac_outfile=conftest.$ac_objext
8468 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8469 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8470 _lt_linker_boilerplate=`cat conftest.err`
8471 $RM -r conftest*
8472
8473
8474 if test -n "$compiler"; then
8475
8476 lt_prog_compiler_no_builtin_flag=
8477
8478 if test "$GCC" = yes; then
8479   case $cc_basename in
8480   nvcc*)
8481     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8482   *)
8483     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8484   esac
8485
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8487 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8488 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   lt_cv_prog_compiler_rtti_exceptions=no
8492    ac_outfile=conftest.$ac_objext
8493    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8494    lt_compiler_flag="-fno-rtti -fno-exceptions"
8495    # Insert the option either (1) after the last *FLAGS variable, or
8496    # (2) before a word containing "conftest.", or (3) at the end.
8497    # Note that $ac_compile itself does not contain backslashes and begins
8498    # with a dollar sign (not a hyphen), so the echo should work correctly.
8499    # The option is referenced via a variable to avoid confusing sed.
8500    lt_compile=`echo "$ac_compile" | $SED \
8501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8503    -e 's:$: $lt_compiler_flag:'`
8504    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8505    (eval "$lt_compile" 2>conftest.err)
8506    ac_status=$?
8507    cat conftest.err >&5
8508    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509    if (exit $ac_status) && test -s "$ac_outfile"; then
8510      # The compiler can only warn and ignore the option if not recognized
8511      # So say no if there are warnings other than the usual output.
8512      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8513      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8514      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8515        lt_cv_prog_compiler_rtti_exceptions=yes
8516      fi
8517    fi
8518    $RM conftest*
8519
8520 fi
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8522 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8523
8524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8525     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8526 else
8527     :
8528 fi
8529
8530 fi
8531
8532
8533
8534
8535
8536
8537   lt_prog_compiler_wl=
8538 lt_prog_compiler_pic=
8539 lt_prog_compiler_static=
8540
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8542 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8543
8544   if test "$GCC" = yes; then
8545     lt_prog_compiler_wl='-Wl,'
8546     lt_prog_compiler_static='-static'
8547
8548     case $host_os in
8549       aix*)
8550       # All AIX code is PIC.
8551       if test "$host_cpu" = ia64; then
8552         # AIX 5 now supports IA64 processor
8553         lt_prog_compiler_static='-Bstatic'
8554       fi
8555       ;;
8556
8557     amigaos*)
8558       case $host_cpu in
8559       powerpc)
8560             # see comment about AmigaOS4 .so support
8561             lt_prog_compiler_pic='-fPIC'
8562         ;;
8563       m68k)
8564             # FIXME: we need at least 68020 code to build shared libraries, but
8565             # adding the `-m68020' flag to GCC prevents building anything better,
8566             # like `-m68040'.
8567             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8568         ;;
8569       esac
8570       ;;
8571
8572     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8573       # PIC is the default for these OSes.
8574       ;;
8575
8576     mingw* | cygwin* | pw32* | os2* | cegcc*)
8577       # This hack is so that the source file can tell whether it is being
8578       # built for inclusion in a dll (and should export symbols for example).
8579       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8580       # (--disable-auto-import) libraries
8581       lt_prog_compiler_pic='-DDLL_EXPORT'
8582       ;;
8583
8584     darwin* | rhapsody*)
8585       # PIC is the default on this platform
8586       # Common symbols not allowed in MH_DYLIB files
8587       lt_prog_compiler_pic='-fno-common'
8588       ;;
8589
8590     haiku*)
8591       # PIC is the default for Haiku.
8592       # The "-static" flag exists, but is broken.
8593       lt_prog_compiler_static=
8594       ;;
8595
8596     hpux*)
8597       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8598       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8599       # sets the default TLS model and affects inlining.
8600       case $host_cpu in
8601       hppa*64*)
8602         # +Z the default
8603         ;;
8604       *)
8605         lt_prog_compiler_pic='-fPIC'
8606         ;;
8607       esac
8608       ;;
8609
8610     interix[3-9]*)
8611       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8612       # Instead, we relocate shared libraries at runtime.
8613       ;;
8614
8615     msdosdjgpp*)
8616       # Just because we use GCC doesn't mean we suddenly get shared libraries
8617       # on systems that don't support them.
8618       lt_prog_compiler_can_build_shared=no
8619       enable_shared=no
8620       ;;
8621
8622     *nto* | *qnx*)
8623       # QNX uses GNU C++, but need to define -shared option too, otherwise
8624       # it will coredump.
8625       lt_prog_compiler_pic='-fPIC -shared'
8626       ;;
8627
8628     sysv4*MP*)
8629       if test -d /usr/nec; then
8630         lt_prog_compiler_pic=-Kconform_pic
8631       fi
8632       ;;
8633
8634     *)
8635       lt_prog_compiler_pic='-fPIC'
8636       ;;
8637     esac
8638
8639     case $cc_basename in
8640     nvcc*) # Cuda Compiler Driver 2.2
8641       lt_prog_compiler_wl='-Xlinker '
8642       lt_prog_compiler_pic='-Xcompiler -fPIC'
8643       ;;
8644     esac
8645   else
8646     # PORTME Check for flag to pass linker flags through the system compiler.
8647     case $host_os in
8648     aix*)
8649       lt_prog_compiler_wl='-Wl,'
8650       if test "$host_cpu" = ia64; then
8651         # AIX 5 now supports IA64 processor
8652         lt_prog_compiler_static='-Bstatic'
8653       else
8654         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8655       fi
8656       ;;
8657
8658     mingw* | cygwin* | pw32* | os2* | cegcc*)
8659       # This hack is so that the source file can tell whether it is being
8660       # built for inclusion in a dll (and should export symbols for example).
8661       lt_prog_compiler_pic='-DDLL_EXPORT'
8662       ;;
8663
8664     hpux9* | hpux10* | hpux11*)
8665       lt_prog_compiler_wl='-Wl,'
8666       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8667       # not for PA HP-UX.
8668       case $host_cpu in
8669       hppa*64*|ia64*)
8670         # +Z the default
8671         ;;
8672       *)
8673         lt_prog_compiler_pic='+Z'
8674         ;;
8675       esac
8676       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8677       lt_prog_compiler_static='${wl}-a ${wl}archive'
8678       ;;
8679
8680     irix5* | irix6* | nonstopux*)
8681       lt_prog_compiler_wl='-Wl,'
8682       # PIC (with -KPIC) is the default.
8683       lt_prog_compiler_static='-non_shared'
8684       ;;
8685
8686     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8687       case $cc_basename in
8688       # old Intel for x86_64 which still supported -KPIC.
8689       ecc*)
8690         lt_prog_compiler_wl='-Wl,'
8691         lt_prog_compiler_pic='-KPIC'
8692         lt_prog_compiler_static='-static'
8693         ;;
8694       # icc used to be incompatible with GCC.
8695       # ICC 10 doesn't accept -KPIC any more.
8696       icc* | ifort*)
8697         lt_prog_compiler_wl='-Wl,'
8698         lt_prog_compiler_pic='-fPIC'
8699         lt_prog_compiler_static='-static'
8700         ;;
8701       # Lahey Fortran 8.1.
8702       lf95*)
8703         lt_prog_compiler_wl='-Wl,'
8704         lt_prog_compiler_pic='--shared'
8705         lt_prog_compiler_static='--static'
8706         ;;
8707       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8708         # Portland Group compilers (*not* the Pentium gcc compiler,
8709         # which looks to be a dead project)
8710         lt_prog_compiler_wl='-Wl,'
8711         lt_prog_compiler_pic='-fpic'
8712         lt_prog_compiler_static='-Bstatic'
8713         ;;
8714       ccc*)
8715         lt_prog_compiler_wl='-Wl,'
8716         # All Alpha code is PIC.
8717         lt_prog_compiler_static='-non_shared'
8718         ;;
8719       xl* | bgxl* | bgf* | mpixl*)
8720         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8721         lt_prog_compiler_wl='-Wl,'
8722         lt_prog_compiler_pic='-qpic'
8723         lt_prog_compiler_static='-qstaticlink'
8724         ;;
8725       *)
8726         case `$CC -V 2>&1 | sed 5q` in
8727         *Sun\ F* | *Sun*Fortran*)
8728           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8729           lt_prog_compiler_pic='-KPIC'
8730           lt_prog_compiler_static='-Bstatic'
8731           lt_prog_compiler_wl=''
8732           ;;
8733         *Sun\ C*)
8734           # Sun C 5.9
8735           lt_prog_compiler_pic='-KPIC'
8736           lt_prog_compiler_static='-Bstatic'
8737           lt_prog_compiler_wl='-Wl,'
8738           ;;
8739         esac
8740         ;;
8741       esac
8742       ;;
8743
8744     newsos6)
8745       lt_prog_compiler_pic='-KPIC'
8746       lt_prog_compiler_static='-Bstatic'
8747       ;;
8748
8749     *nto* | *qnx*)
8750       # QNX uses GNU C++, but need to define -shared option too, otherwise
8751       # it will coredump.
8752       lt_prog_compiler_pic='-fPIC -shared'
8753       ;;
8754
8755     osf3* | osf4* | osf5*)
8756       lt_prog_compiler_wl='-Wl,'
8757       # All OSF/1 code is PIC.
8758       lt_prog_compiler_static='-non_shared'
8759       ;;
8760
8761     rdos*)
8762       lt_prog_compiler_static='-non_shared'
8763       ;;
8764
8765     solaris*)
8766       lt_prog_compiler_pic='-KPIC'
8767       lt_prog_compiler_static='-Bstatic'
8768       case $cc_basename in
8769       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8770         lt_prog_compiler_wl='-Qoption ld ';;
8771       *)
8772         lt_prog_compiler_wl='-Wl,';;
8773       esac
8774       ;;
8775
8776     sunos4*)
8777       lt_prog_compiler_wl='-Qoption ld '
8778       lt_prog_compiler_pic='-PIC'
8779       lt_prog_compiler_static='-Bstatic'
8780       ;;
8781
8782     sysv4 | sysv4.2uw2* | sysv4.3*)
8783       lt_prog_compiler_wl='-Wl,'
8784       lt_prog_compiler_pic='-KPIC'
8785       lt_prog_compiler_static='-Bstatic'
8786       ;;
8787
8788     sysv4*MP*)
8789       if test -d /usr/nec ;then
8790         lt_prog_compiler_pic='-Kconform_pic'
8791         lt_prog_compiler_static='-Bstatic'
8792       fi
8793       ;;
8794
8795     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8796       lt_prog_compiler_wl='-Wl,'
8797       lt_prog_compiler_pic='-KPIC'
8798       lt_prog_compiler_static='-Bstatic'
8799       ;;
8800
8801     unicos*)
8802       lt_prog_compiler_wl='-Wl,'
8803       lt_prog_compiler_can_build_shared=no
8804       ;;
8805
8806     uts4*)
8807       lt_prog_compiler_pic='-pic'
8808       lt_prog_compiler_static='-Bstatic'
8809       ;;
8810
8811     *)
8812       lt_prog_compiler_can_build_shared=no
8813       ;;
8814     esac
8815   fi
8816
8817 case $host_os in
8818   # For platforms which do not support PIC, -DPIC is meaningless:
8819   *djgpp*)
8820     lt_prog_compiler_pic=
8821     ;;
8822   *)
8823     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8824     ;;
8825 esac
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8827 $as_echo "$lt_prog_compiler_pic" >&6; }
8828
8829
8830
8831
8832
8833
8834 #
8835 # Check to make sure the PIC flag actually works.
8836 #
8837 if test -n "$lt_prog_compiler_pic"; then
8838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8839 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8840 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8841   $as_echo_n "(cached) " >&6
8842 else
8843   lt_cv_prog_compiler_pic_works=no
8844    ac_outfile=conftest.$ac_objext
8845    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8846    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8847    # Insert the option either (1) after the last *FLAGS variable, or
8848    # (2) before a word containing "conftest.", or (3) at the end.
8849    # Note that $ac_compile itself does not contain backslashes and begins
8850    # with a dollar sign (not a hyphen), so the echo should work correctly.
8851    # The option is referenced via a variable to avoid confusing sed.
8852    lt_compile=`echo "$ac_compile" | $SED \
8853    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855    -e 's:$: $lt_compiler_flag:'`
8856    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8857    (eval "$lt_compile" 2>conftest.err)
8858    ac_status=$?
8859    cat conftest.err >&5
8860    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861    if (exit $ac_status) && test -s "$ac_outfile"; then
8862      # The compiler can only warn and ignore the option if not recognized
8863      # So say no if there are warnings other than the usual output.
8864      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8865      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8866      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8867        lt_cv_prog_compiler_pic_works=yes
8868      fi
8869    fi
8870    $RM conftest*
8871
8872 fi
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8874 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8875
8876 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8877     case $lt_prog_compiler_pic in
8878      "" | " "*) ;;
8879      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8880      esac
8881 else
8882     lt_prog_compiler_pic=
8883      lt_prog_compiler_can_build_shared=no
8884 fi
8885
8886 fi
8887
8888
8889
8890
8891
8892
8893 #
8894 # Check to make sure the static flag actually works.
8895 #
8896 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8898 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8899 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   lt_cv_prog_compiler_static_works=no
8903    save_LDFLAGS="$LDFLAGS"
8904    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8905    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8906    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8907      # The linker can only warn and ignore the option if not recognized
8908      # So say no if there are warnings
8909      if test -s conftest.err; then
8910        # Append any errors to the config.log.
8911        cat conftest.err 1>&5
8912        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8913        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8914        if diff conftest.exp conftest.er2 >/dev/null; then
8915          lt_cv_prog_compiler_static_works=yes
8916        fi
8917      else
8918        lt_cv_prog_compiler_static_works=yes
8919      fi
8920    fi
8921    $RM -r conftest*
8922    LDFLAGS="$save_LDFLAGS"
8923
8924 fi
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8926 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8927
8928 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8929     :
8930 else
8931     lt_prog_compiler_static=
8932 fi
8933
8934
8935
8936
8937
8938
8939
8940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8942 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8943   $as_echo_n "(cached) " >&6
8944 else
8945   lt_cv_prog_compiler_c_o=no
8946    $RM -r conftest 2>/dev/null
8947    mkdir conftest
8948    cd conftest
8949    mkdir out
8950    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8951
8952    lt_compiler_flag="-o out/conftest2.$ac_objext"
8953    # Insert the option either (1) after the last *FLAGS variable, or
8954    # (2) before a word containing "conftest.", or (3) at the end.
8955    # Note that $ac_compile itself does not contain backslashes and begins
8956    # with a dollar sign (not a hyphen), so the echo should work correctly.
8957    lt_compile=`echo "$ac_compile" | $SED \
8958    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8959    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8960    -e 's:$: $lt_compiler_flag:'`
8961    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8962    (eval "$lt_compile" 2>out/conftest.err)
8963    ac_status=$?
8964    cat out/conftest.err >&5
8965    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8967    then
8968      # The compiler can only warn and ignore the option if not recognized
8969      # So say no if there are warnings
8970      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8971      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8972      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8973        lt_cv_prog_compiler_c_o=yes
8974      fi
8975    fi
8976    chmod u+w . 2>&5
8977    $RM conftest*
8978    # SGI C++ compiler will create directory out/ii_files/ for
8979    # template instantiation
8980    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8981    $RM out/* && rmdir out
8982    cd ..
8983    $RM -r conftest
8984    $RM conftest*
8985
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8988 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8989
8990
8991
8992
8993
8994
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8996 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8997 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8998   $as_echo_n "(cached) " >&6
8999 else
9000   lt_cv_prog_compiler_c_o=no
9001    $RM -r conftest 2>/dev/null
9002    mkdir conftest
9003    cd conftest
9004    mkdir out
9005    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9006
9007    lt_compiler_flag="-o out/conftest2.$ac_objext"
9008    # Insert the option either (1) after the last *FLAGS variable, or
9009    # (2) before a word containing "conftest.", or (3) at the end.
9010    # Note that $ac_compile itself does not contain backslashes and begins
9011    # with a dollar sign (not a hyphen), so the echo should work correctly.
9012    lt_compile=`echo "$ac_compile" | $SED \
9013    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9015    -e 's:$: $lt_compiler_flag:'`
9016    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9017    (eval "$lt_compile" 2>out/conftest.err)
9018    ac_status=$?
9019    cat out/conftest.err >&5
9020    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9022    then
9023      # The compiler can only warn and ignore the option if not recognized
9024      # So say no if there are warnings
9025      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9026      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9027      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9028        lt_cv_prog_compiler_c_o=yes
9029      fi
9030    fi
9031    chmod u+w . 2>&5
9032    $RM conftest*
9033    # SGI C++ compiler will create directory out/ii_files/ for
9034    # template instantiation
9035    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9036    $RM out/* && rmdir out
9037    cd ..
9038    $RM -r conftest
9039    $RM conftest*
9040
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9043 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9044
9045
9046
9047
9048 hard_links="nottested"
9049 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9050   # do not overwrite the value of need_locks provided by the user
9051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9052 $as_echo_n "checking if we can lock with hard links... " >&6; }
9053   hard_links=yes
9054   $RM conftest*
9055   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9056   touch conftest.a
9057   ln conftest.a conftest.b 2>&5 || hard_links=no
9058   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9060 $as_echo "$hard_links" >&6; }
9061   if test "$hard_links" = no; then
9062     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9063 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9064     need_locks=warn
9065   fi
9066 else
9067   need_locks=no
9068 fi
9069
9070
9071
9072
9073
9074
9075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9076 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9077
9078   runpath_var=
9079   allow_undefined_flag=
9080   always_export_symbols=no
9081   archive_cmds=
9082   archive_expsym_cmds=
9083   compiler_needs_object=no
9084   enable_shared_with_static_runtimes=no
9085   export_dynamic_flag_spec=
9086   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9087   hardcode_automatic=no
9088   hardcode_direct=no
9089   hardcode_direct_absolute=no
9090   hardcode_libdir_flag_spec=
9091   hardcode_libdir_flag_spec_ld=
9092   hardcode_libdir_separator=
9093   hardcode_minus_L=no
9094   hardcode_shlibpath_var=unsupported
9095   inherit_rpath=no
9096   link_all_deplibs=unknown
9097   module_cmds=
9098   module_expsym_cmds=
9099   old_archive_from_new_cmds=
9100   old_archive_from_expsyms_cmds=
9101   thread_safe_flag_spec=
9102   whole_archive_flag_spec=
9103   # include_expsyms should be a list of space-separated symbols to be *always*
9104   # included in the symbol list
9105   include_expsyms=
9106   # exclude_expsyms can be an extended regexp of symbols to exclude
9107   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9108   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9109   # as well as any symbol that contains `d'.
9110   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9111   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9112   # platforms (ab)use it in PIC code, but their linkers get confused if
9113   # the symbol is explicitly referenced.  Since portable code cannot
9114   # rely on this symbol name, it's probably fine to never include it in
9115   # preloaded symbol tables.
9116   # Exclude shared library initialization/finalization symbols.
9117   extract_expsyms_cmds=
9118
9119   case $host_os in
9120   cygwin* | mingw* | pw32* | cegcc*)
9121     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9122     # When not using gcc, we currently assume that we are using
9123     # Microsoft Visual C++.
9124     if test "$GCC" != yes; then
9125       with_gnu_ld=no
9126     fi
9127     ;;
9128   interix*)
9129     # we just hope/assume this is gcc and not c89 (= MSVC++)
9130     with_gnu_ld=yes
9131     ;;
9132   openbsd*)
9133     with_gnu_ld=no
9134     ;;
9135   esac
9136
9137   ld_shlibs=yes
9138
9139   # On some targets, GNU ld is compatible enough with the native linker
9140   # that we're better off using the native interface for both.
9141   lt_use_gnu_ld_interface=no
9142   if test "$with_gnu_ld" = yes; then
9143     case $host_os in
9144       aix*)
9145         # The AIX port of GNU ld has always aspired to compatibility
9146         # with the native linker.  However, as the warning in the GNU ld
9147         # block says, versions before 2.19.5* couldn't really create working
9148         # shared libraries, regardless of the interface used.
9149         case `$LD -v 2>&1` in
9150           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9151           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9152           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9153           *)
9154             lt_use_gnu_ld_interface=yes
9155             ;;
9156         esac
9157         ;;
9158       *)
9159         lt_use_gnu_ld_interface=yes
9160         ;;
9161     esac
9162   fi
9163
9164   if test "$lt_use_gnu_ld_interface" = yes; then
9165     # If archive_cmds runs LD, not CC, wlarc should be empty
9166     wlarc='${wl}'
9167
9168     # Set some defaults for GNU ld with shared library support. These
9169     # are reset later if shared libraries are not supported. Putting them
9170     # here allows them to be overridden if necessary.
9171     runpath_var=LD_RUN_PATH
9172     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173     export_dynamic_flag_spec='${wl}--export-dynamic'
9174     # ancient GNU ld didn't support --whole-archive et. al.
9175     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9176       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9177     else
9178       whole_archive_flag_spec=
9179     fi
9180     supports_anon_versioning=no
9181     case `$LD -v 2>&1` in
9182       *GNU\ gold*) supports_anon_versioning=yes ;;
9183       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9184       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9185       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9186       *\ 2.11.*) ;; # other 2.11 versions
9187       *) supports_anon_versioning=yes ;;
9188     esac
9189
9190     # See if GNU ld supports shared libraries.
9191     case $host_os in
9192     aix[3-9]*)
9193       # On AIX/PPC, the GNU linker is very broken
9194       if test "$host_cpu" != ia64; then
9195         ld_shlibs=no
9196         cat <<_LT_EOF 1>&2
9197
9198 *** Warning: the GNU linker, at least up to release 2.19, is reported
9199 *** to be unable to reliably create shared libraries on AIX.
9200 *** Therefore, libtool is disabling shared libraries support.  If you
9201 *** really care for shared libraries, you may want to install binutils
9202 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9203 *** You will then need to restart the configuration process.
9204
9205 _LT_EOF
9206       fi
9207       ;;
9208
9209     amigaos*)
9210       case $host_cpu in
9211       powerpc)
9212             # see comment about AmigaOS4 .so support
9213             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214             archive_expsym_cmds=''
9215         ;;
9216       m68k)
9217             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)'
9218             hardcode_libdir_flag_spec='-L$libdir'
9219             hardcode_minus_L=yes
9220         ;;
9221       esac
9222       ;;
9223
9224     beos*)
9225       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9226         allow_undefined_flag=unsupported
9227         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9228         # support --undefined.  This deserves some investigation.  FIXME
9229         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230       else
9231         ld_shlibs=no
9232       fi
9233       ;;
9234
9235     cygwin* | mingw* | pw32* | cegcc*)
9236       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9237       # as there is no search path for DLLs.
9238       hardcode_libdir_flag_spec='-L$libdir'
9239       export_dynamic_flag_spec='${wl}--export-all-symbols'
9240       allow_undefined_flag=unsupported
9241       always_export_symbols=no
9242       enable_shared_with_static_runtimes=yes
9243       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9244
9245       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9246         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9247         # If the export-symbols file already is a .def file (1st line
9248         # is EXPORTS), use it as is; otherwise, prepend...
9249         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9250           cp $export_symbols $output_objdir/$soname.def;
9251         else
9252           echo EXPORTS > $output_objdir/$soname.def;
9253           cat $export_symbols >> $output_objdir/$soname.def;
9254         fi~
9255         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9256       else
9257         ld_shlibs=no
9258       fi
9259       ;;
9260
9261     haiku*)
9262       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263       link_all_deplibs=yes
9264       ;;
9265
9266     interix[3-9]*)
9267       hardcode_direct=no
9268       hardcode_shlibpath_var=no
9269       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270       export_dynamic_flag_spec='${wl}-E'
9271       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9272       # Instead, shared libraries are loaded at an image base (0x10000000 by
9273       # default) and relocated if they conflict, which is a slow very memory
9274       # consuming and fragmenting process.  To avoid this, we pick a random,
9275       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9276       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9277       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9278       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'
9279       ;;
9280
9281     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9282       tmp_diet=no
9283       if test "$host_os" = linux-dietlibc; then
9284         case $cc_basename in
9285           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9286         esac
9287       fi
9288       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9289          && test "$tmp_diet" = no
9290       then
9291         tmp_addflag=
9292         tmp_sharedflag='-shared'
9293         case $cc_basename,$host_cpu in
9294         pgcc*)                          # Portland Group C compiler
9295           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9296           tmp_addflag=' $pic_flag'
9297           ;;
9298         pgf77* | pgf90* | pgf95* | pgfortran*)
9299                                         # Portland Group f77 and f90 compilers
9300           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9301           tmp_addflag=' $pic_flag -Mnomain' ;;
9302         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9303           tmp_addflag=' -i_dynamic' ;;
9304         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9305           tmp_addflag=' -i_dynamic -nofor_main' ;;
9306         ifc* | ifort*)                  # Intel Fortran compiler
9307           tmp_addflag=' -nofor_main' ;;
9308         lf95*)                          # Lahey Fortran 8.1
9309           whole_archive_flag_spec=
9310           tmp_sharedflag='--shared' ;;
9311         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9312           tmp_sharedflag='-qmkshrobj'
9313           tmp_addflag= ;;
9314         nvcc*)  # Cuda Compiler Driver 2.2
9315           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9316           compiler_needs_object=yes
9317           ;;
9318         esac
9319         case `$CC -V 2>&1 | sed 5q` in
9320         *Sun\ C*)                       # Sun C 5.9
9321           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9322           compiler_needs_object=yes
9323           tmp_sharedflag='-G' ;;
9324         *Sun\ F*)                       # Sun Fortran 8.3
9325           tmp_sharedflag='-G' ;;
9326         esac
9327         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9328
9329         if test "x$supports_anon_versioning" = xyes; then
9330           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9331             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9332             echo "local: *; };" >> $output_objdir/$libname.ver~
9333             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9334         fi
9335
9336         case $cc_basename in
9337         xlf* | bgf* | bgxlf* | mpixlf*)
9338           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9339           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9340           hardcode_libdir_flag_spec=
9341           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9342           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9343           if test "x$supports_anon_versioning" = xyes; then
9344             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9345               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9346               echo "local: *; };" >> $output_objdir/$libname.ver~
9347               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9348           fi
9349           ;;
9350         esac
9351       else
9352         ld_shlibs=no
9353       fi
9354       ;;
9355
9356     netbsd*)
9357       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9358         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9359         wlarc=
9360       else
9361         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9363       fi
9364       ;;
9365
9366     solaris*)
9367       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9368         ld_shlibs=no
9369         cat <<_LT_EOF 1>&2
9370
9371 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9372 *** create shared libraries on Solaris systems.  Therefore, libtool
9373 *** is disabling shared libraries support.  We urge you to upgrade GNU
9374 *** binutils to release 2.9.1 or newer.  Another option is to modify
9375 *** your PATH or compiler configuration so that the native linker is
9376 *** used, and then restart.
9377
9378 _LT_EOF
9379       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9380         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382       else
9383         ld_shlibs=no
9384       fi
9385       ;;
9386
9387     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9388       case `$LD -v 2>&1` in
9389         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9390         ld_shlibs=no
9391         cat <<_LT_EOF 1>&2
9392
9393 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9394 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9395 *** is disabling shared libraries support.  We urge you to upgrade GNU
9396 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9397 *** your PATH or compiler configuration so that the native linker is
9398 *** used, and then restart.
9399
9400 _LT_EOF
9401         ;;
9402         *)
9403           # For security reasons, it is highly recommended that you always
9404           # use absolute paths for naming shared libraries, and exclude the
9405           # DT_RUNPATH tag from executables and libraries.  But doing so
9406           # requires that you compile everything twice, which is a pain.
9407           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9408             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9411           else
9412             ld_shlibs=no
9413           fi
9414         ;;
9415       esac
9416       ;;
9417
9418     sunos4*)
9419       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9420       wlarc=
9421       hardcode_direct=yes
9422       hardcode_shlibpath_var=no
9423       ;;
9424
9425     *)
9426       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9427         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9429       else
9430         ld_shlibs=no
9431       fi
9432       ;;
9433     esac
9434
9435     if test "$ld_shlibs" = no; then
9436       runpath_var=
9437       hardcode_libdir_flag_spec=
9438       export_dynamic_flag_spec=
9439       whole_archive_flag_spec=
9440     fi
9441   else
9442     # PORTME fill in a description of your system's linker (not GNU ld)
9443     case $host_os in
9444     aix3*)
9445       allow_undefined_flag=unsupported
9446       always_export_symbols=yes
9447       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'
9448       # Note: this linker hardcodes the directories in LIBPATH if there
9449       # are no directories specified by -L.
9450       hardcode_minus_L=yes
9451       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9452         # Neither direct hardcoding nor static linking is supported with a
9453         # broken collect2.
9454         hardcode_direct=unsupported
9455       fi
9456       ;;
9457
9458     aix[4-9]*)
9459       if test "$host_cpu" = ia64; then
9460         # On IA64, the linker does run time linking by default, so we don't
9461         # have to do anything special.
9462         aix_use_runtimelinking=no
9463         exp_sym_flag='-Bexport'
9464         no_entry_flag=""
9465       else
9466         # If we're using GNU nm, then we don't want the "-C" option.
9467         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9468         # Also, AIX nm treats weak defined symbols like other global
9469         # defined symbols, whereas GNU nm marks them as "W".
9470         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9471           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9472         else
9473           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'
9474         fi
9475         aix_use_runtimelinking=no
9476
9477         # Test if we are trying to use run time linking or normal
9478         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9479         # need to do runtime linking.
9480         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9481           for ld_flag in $LDFLAGS; do
9482           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9483             aix_use_runtimelinking=yes
9484             break
9485           fi
9486           done
9487           ;;
9488         esac
9489
9490         exp_sym_flag='-bexport'
9491         no_entry_flag='-bnoentry'
9492       fi
9493
9494       # When large executables or shared objects are built, AIX ld can
9495       # have problems creating the table of contents.  If linking a library
9496       # or program results in "error TOC overflow" add -mminimal-toc to
9497       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9498       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9499
9500       archive_cmds=''
9501       hardcode_direct=yes
9502       hardcode_direct_absolute=yes
9503       hardcode_libdir_separator=':'
9504       link_all_deplibs=yes
9505       file_list_spec='${wl}-f,'
9506
9507       if test "$GCC" = yes; then
9508         case $host_os in aix4.[012]|aix4.[012].*)
9509         # We only want to do this on AIX 4.2 and lower, the check
9510         # below for broken collect2 doesn't work under 4.3+
9511           collect2name=`${CC} -print-prog-name=collect2`
9512           if test -f "$collect2name" &&
9513            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9514           then
9515           # We have reworked collect2
9516           :
9517           else
9518           # We have old collect2
9519           hardcode_direct=unsupported
9520           # It fails to find uninstalled libraries when the uninstalled
9521           # path is not listed in the libpath.  Setting hardcode_minus_L
9522           # to unsupported forces relinking
9523           hardcode_minus_L=yes
9524           hardcode_libdir_flag_spec='-L$libdir'
9525           hardcode_libdir_separator=
9526           fi
9527           ;;
9528         esac
9529         shared_flag='-shared'
9530         if test "$aix_use_runtimelinking" = yes; then
9531           shared_flag="$shared_flag "'${wl}-G'
9532         fi
9533       else
9534         # not using gcc
9535         if test "$host_cpu" = ia64; then
9536         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9537         # chokes on -Wl,-G. The following line is correct:
9538           shared_flag='-G'
9539         else
9540           if test "$aix_use_runtimelinking" = yes; then
9541             shared_flag='${wl}-G'
9542           else
9543             shared_flag='${wl}-bM:SRE'
9544           fi
9545         fi
9546       fi
9547
9548       export_dynamic_flag_spec='${wl}-bexpall'
9549       # It seems that -bexpall does not export symbols beginning with
9550       # underscore (_), so it is better to generate a list of symbols to export.
9551       always_export_symbols=yes
9552       if test "$aix_use_runtimelinking" = yes; then
9553         # Warning - without using the other runtime loading flags (-brtl),
9554         # -berok will link without error, but may produce a broken library.
9555         allow_undefined_flag='-berok'
9556         # Determine the default libpath from the value encoded in an
9557         # empty executable.
9558         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h.  */
9560
9561 int
9562 main ()
9563 {
9564
9565   ;
9566   return 0;
9567 }
9568 _ACEOF
9569 if ac_fn_c_try_link "$LINENO"; then :
9570
9571 lt_aix_libpath_sed='
9572     /Import File Strings/,/^$/ {
9573         /^0/ {
9574             s/^0  *\(.*\)$/\1/
9575             p
9576         }
9577     }'
9578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9579 # Check for a 64-bit object if we didn't find anything.
9580 if test -z "$aix_libpath"; then
9581   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9582 fi
9583 fi
9584 rm -f core conftest.err conftest.$ac_objext \
9585     conftest$ac_exeext conftest.$ac_ext
9586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9587
9588         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9589         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9590       else
9591         if test "$host_cpu" = ia64; then
9592           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9593           allow_undefined_flag="-z nodefs"
9594           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"
9595         else
9596          # Determine the default libpath from the value encoded in an
9597          # empty executable.
9598          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h.  */
9600
9601 int
9602 main ()
9603 {
9604
9605   ;
9606   return 0;
9607 }
9608 _ACEOF
9609 if ac_fn_c_try_link "$LINENO"; then :
9610
9611 lt_aix_libpath_sed='
9612     /Import File Strings/,/^$/ {
9613         /^0/ {
9614             s/^0  *\(.*\)$/\1/
9615             p
9616         }
9617     }'
9618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619 # Check for a 64-bit object if we didn't find anything.
9620 if test -z "$aix_libpath"; then
9621   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622 fi
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext \
9625     conftest$ac_exeext conftest.$ac_ext
9626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9627
9628          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9629           # Warning - without using the other run time loading flags,
9630           # -berok will link without error, but may produce a broken library.
9631           no_undefined_flag=' ${wl}-bernotok'
9632           allow_undefined_flag=' ${wl}-berok'
9633           if test "$with_gnu_ld" = yes; then
9634             # We only use this code for GNU lds that support --whole-archive.
9635             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9636           else
9637             # Exported symbols can be pulled into shared objects from archives
9638             whole_archive_flag_spec='$convenience'
9639           fi
9640           archive_cmds_need_lc=yes
9641           # This is similar to how AIX traditionally builds its shared libraries.
9642           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'
9643         fi
9644       fi
9645       ;;
9646
9647     amigaos*)
9648       case $host_cpu in
9649       powerpc)
9650             # see comment about AmigaOS4 .so support
9651             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652             archive_expsym_cmds=''
9653         ;;
9654       m68k)
9655             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)'
9656             hardcode_libdir_flag_spec='-L$libdir'
9657             hardcode_minus_L=yes
9658         ;;
9659       esac
9660       ;;
9661
9662     bsdi[45]*)
9663       export_dynamic_flag_spec=-rdynamic
9664       ;;
9665
9666     cygwin* | mingw* | pw32* | cegcc*)
9667       # When not using gcc, we currently assume that we are using
9668       # Microsoft Visual C++.
9669       # hardcode_libdir_flag_spec is actually meaningless, as there is
9670       # no search path for DLLs.
9671       hardcode_libdir_flag_spec=' '
9672       allow_undefined_flag=unsupported
9673       # Tell ltmain to make .lib files, not .a files.
9674       libext=lib
9675       # Tell ltmain to make .dll files, not .so files.
9676       shrext_cmds=".dll"
9677       # FIXME: Setting linknames here is a bad hack.
9678       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9679       # The linker will automatically build a .lib file if we build a DLL.
9680       old_archive_from_new_cmds='true'
9681       # FIXME: Should let the user specify the lib program.
9682       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9683       fix_srcfile_path='`cygpath -w "$srcfile"`'
9684       enable_shared_with_static_runtimes=yes
9685       ;;
9686
9687     darwin* | rhapsody*)
9688
9689
9690   archive_cmds_need_lc=no
9691   hardcode_direct=no
9692   hardcode_automatic=yes
9693   hardcode_shlibpath_var=unsupported
9694   if test "$lt_cv_ld_force_load" = "yes"; then
9695     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9696   else
9697     whole_archive_flag_spec=''
9698   fi
9699   link_all_deplibs=yes
9700   allow_undefined_flag="$_lt_dar_allow_undefined"
9701   case $cc_basename in
9702      ifort*) _lt_dar_can_shared=yes ;;
9703      *) _lt_dar_can_shared=$GCC ;;
9704   esac
9705   if test "$_lt_dar_can_shared" = "yes"; then
9706     output_verbose_link_cmd=func_echo_all
9707     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9708     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9709     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}"
9710     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}"
9711
9712   else
9713   ld_shlibs=no
9714   fi
9715
9716       ;;
9717
9718     dgux*)
9719       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720       hardcode_libdir_flag_spec='-L$libdir'
9721       hardcode_shlibpath_var=no
9722       ;;
9723
9724     freebsd1*)
9725       ld_shlibs=no
9726       ;;
9727
9728     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9729     # support.  Future versions do this automatically, but an explicit c++rt0.o
9730     # does not break anything, and helps significantly (at the cost of a little
9731     # extra space).
9732     freebsd2.2*)
9733       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9734       hardcode_libdir_flag_spec='-R$libdir'
9735       hardcode_direct=yes
9736       hardcode_shlibpath_var=no
9737       ;;
9738
9739     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9740     freebsd2*)
9741       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9742       hardcode_direct=yes
9743       hardcode_minus_L=yes
9744       hardcode_shlibpath_var=no
9745       ;;
9746
9747     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9748     freebsd* | dragonfly*)
9749       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9750       hardcode_libdir_flag_spec='-R$libdir'
9751       hardcode_direct=yes
9752       hardcode_shlibpath_var=no
9753       ;;
9754
9755     hpux9*)
9756       if test "$GCC" = yes; then
9757         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'
9758       else
9759         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'
9760       fi
9761       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9762       hardcode_libdir_separator=:
9763       hardcode_direct=yes
9764
9765       # hardcode_minus_L: Not really in the search PATH,
9766       # but as the default location of the library.
9767       hardcode_minus_L=yes
9768       export_dynamic_flag_spec='${wl}-E'
9769       ;;
9770
9771     hpux10*)
9772       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9773         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9774       else
9775         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9776       fi
9777       if test "$with_gnu_ld" = no; then
9778         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9779         hardcode_libdir_flag_spec_ld='+b $libdir'
9780         hardcode_libdir_separator=:
9781         hardcode_direct=yes
9782         hardcode_direct_absolute=yes
9783         export_dynamic_flag_spec='${wl}-E'
9784         # hardcode_minus_L: Not really in the search PATH,
9785         # but as the default location of the library.
9786         hardcode_minus_L=yes
9787       fi
9788       ;;
9789
9790     hpux11*)
9791       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9792         case $host_cpu in
9793         hppa*64*)
9794           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9795           ;;
9796         ia64*)
9797           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9798           ;;
9799         *)
9800           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9801           ;;
9802         esac
9803       else
9804         case $host_cpu in
9805         hppa*64*)
9806           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9807           ;;
9808         ia64*)
9809           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9810           ;;
9811         *)
9812
9813           # Older versions of the 11.00 compiler do not understand -b yet
9814           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9815           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9816 $as_echo_n "checking if $CC understands -b... " >&6; }
9817 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9818   $as_echo_n "(cached) " >&6
9819 else
9820   lt_cv_prog_compiler__b=no
9821    save_LDFLAGS="$LDFLAGS"
9822    LDFLAGS="$LDFLAGS -b"
9823    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9824    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9825      # The linker can only warn and ignore the option if not recognized
9826      # So say no if there are warnings
9827      if test -s conftest.err; then
9828        # Append any errors to the config.log.
9829        cat conftest.err 1>&5
9830        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9831        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9832        if diff conftest.exp conftest.er2 >/dev/null; then
9833          lt_cv_prog_compiler__b=yes
9834        fi
9835      else
9836        lt_cv_prog_compiler__b=yes
9837      fi
9838    fi
9839    $RM -r conftest*
9840    LDFLAGS="$save_LDFLAGS"
9841
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9844 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9845
9846 if test x"$lt_cv_prog_compiler__b" = xyes; then
9847     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9848 else
9849     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9850 fi
9851
9852           ;;
9853         esac
9854       fi
9855       if test "$with_gnu_ld" = no; then
9856         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9857         hardcode_libdir_separator=:
9858
9859         case $host_cpu in
9860         hppa*64*|ia64*)
9861           hardcode_direct=no
9862           hardcode_shlibpath_var=no
9863           ;;
9864         *)
9865           hardcode_direct=yes
9866           hardcode_direct_absolute=yes
9867           export_dynamic_flag_spec='${wl}-E'
9868
9869           # hardcode_minus_L: Not really in the search PATH,
9870           # but as the default location of the library.
9871           hardcode_minus_L=yes
9872           ;;
9873         esac
9874       fi
9875       ;;
9876
9877     irix5* | irix6* | nonstopux*)
9878       if test "$GCC" = yes; then
9879         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9880         # Try to use the -exported_symbol ld option, if it does not
9881         # work, assume that -exports_file does not work either and
9882         # implicitly export all symbols.
9883         save_LDFLAGS="$LDFLAGS"
9884         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9885         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h.  */
9887 int foo(void) {}
9888 _ACEOF
9889 if ac_fn_c_try_link "$LINENO"; then :
9890   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9891
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext \
9894     conftest$ac_exeext conftest.$ac_ext
9895         LDFLAGS="$save_LDFLAGS"
9896       else
9897         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9898         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9899       fi
9900       archive_cmds_need_lc='no'
9901       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9902       hardcode_libdir_separator=:
9903       inherit_rpath=yes
9904       link_all_deplibs=yes
9905       ;;
9906
9907     netbsd*)
9908       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9909         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9910       else
9911         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9912       fi
9913       hardcode_libdir_flag_spec='-R$libdir'
9914       hardcode_direct=yes
9915       hardcode_shlibpath_var=no
9916       ;;
9917
9918     newsos6)
9919       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9920       hardcode_direct=yes
9921       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9922       hardcode_libdir_separator=:
9923       hardcode_shlibpath_var=no
9924       ;;
9925
9926     *nto* | *qnx*)
9927       ;;
9928
9929     openbsd*)
9930       if test -f /usr/libexec/ld.so; then
9931         hardcode_direct=yes
9932         hardcode_shlibpath_var=no
9933         hardcode_direct_absolute=yes
9934         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9935           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9936           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9937           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9938           export_dynamic_flag_spec='${wl}-E'
9939         else
9940           case $host_os in
9941            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9942              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9943              hardcode_libdir_flag_spec='-R$libdir'
9944              ;;
9945            *)
9946              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9947              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9948              ;;
9949           esac
9950         fi
9951       else
9952         ld_shlibs=no
9953       fi
9954       ;;
9955
9956     os2*)
9957       hardcode_libdir_flag_spec='-L$libdir'
9958       hardcode_minus_L=yes
9959       allow_undefined_flag=unsupported
9960       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'
9961       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9962       ;;
9963
9964     osf3*)
9965       if test "$GCC" = yes; then
9966         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9967         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9968       else
9969         allow_undefined_flag=' -expect_unresolved \*'
9970         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9971       fi
9972       archive_cmds_need_lc='no'
9973       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974       hardcode_libdir_separator=:
9975       ;;
9976
9977     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9978       if test "$GCC" = yes; then
9979         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9980         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9981         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9982       else
9983         allow_undefined_flag=' -expect_unresolved \*'
9984         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9985         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~
9986         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9987
9988         # Both c and cxx compiler support -rpath directly
9989         hardcode_libdir_flag_spec='-rpath $libdir'
9990       fi
9991       archive_cmds_need_lc='no'
9992       hardcode_libdir_separator=:
9993       ;;
9994
9995     solaris*)
9996       no_undefined_flag=' -z defs'
9997       if test "$GCC" = yes; then
9998         wlarc='${wl}'
9999         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10000         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10001           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10002       else
10003         case `$CC -V 2>&1` in
10004         *"Compilers 5.0"*)
10005           wlarc=''
10006           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10008           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10009           ;;
10010         *)
10011           wlarc='${wl}'
10012           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10013           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10014           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10015           ;;
10016         esac
10017       fi
10018       hardcode_libdir_flag_spec='-R$libdir'
10019       hardcode_shlibpath_var=no
10020       case $host_os in
10021       solaris2.[0-5] | solaris2.[0-5].*) ;;
10022       *)
10023         # The compiler driver will combine and reorder linker options,
10024         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10025         # but is careful enough not to reorder.
10026         # Supported since Solaris 2.6 (maybe 2.5.1?)
10027         if test "$GCC" = yes; then
10028           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10029         else
10030           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10031         fi
10032         ;;
10033       esac
10034       link_all_deplibs=yes
10035       ;;
10036
10037     sunos4*)
10038       if test "x$host_vendor" = xsequent; then
10039         # Use $CC to link under sequent, because it throws in some extra .o
10040         # files that make .init and .fini sections work.
10041         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10042       else
10043         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10044       fi
10045       hardcode_libdir_flag_spec='-L$libdir'
10046       hardcode_direct=yes
10047       hardcode_minus_L=yes
10048       hardcode_shlibpath_var=no
10049       ;;
10050
10051     sysv4)
10052       case $host_vendor in
10053         sni)
10054           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055           hardcode_direct=yes # is this really true???
10056         ;;
10057         siemens)
10058           ## LD is ld it makes a PLAMLIB
10059           ## CC just makes a GrossModule.
10060           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10061           reload_cmds='$CC -r -o $output$reload_objs'
10062           hardcode_direct=no
10063         ;;
10064         motorola)
10065           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10067         ;;
10068       esac
10069       runpath_var='LD_RUN_PATH'
10070       hardcode_shlibpath_var=no
10071       ;;
10072
10073     sysv4.3*)
10074       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075       hardcode_shlibpath_var=no
10076       export_dynamic_flag_spec='-Bexport'
10077       ;;
10078
10079     sysv4*MP*)
10080       if test -d /usr/nec; then
10081         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082         hardcode_shlibpath_var=no
10083         runpath_var=LD_RUN_PATH
10084         hardcode_runpath_var=yes
10085         ld_shlibs=yes
10086       fi
10087       ;;
10088
10089     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10090       no_undefined_flag='${wl}-z,text'
10091       archive_cmds_need_lc=no
10092       hardcode_shlibpath_var=no
10093       runpath_var='LD_RUN_PATH'
10094
10095       if test "$GCC" = yes; then
10096         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098       else
10099         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101       fi
10102       ;;
10103
10104     sysv5* | sco3.2v5* | sco5v6*)
10105       # Note: We can NOT use -z defs as we might desire, because we do not
10106       # link with -lc, and that would cause any symbols used from libc to
10107       # always be unresolved, which means just about no library would
10108       # ever link correctly.  If we're not using GNU ld we use -z text
10109       # though, which does catch some bad symbols but isn't as heavy-handed
10110       # as -z defs.
10111       no_undefined_flag='${wl}-z,text'
10112       allow_undefined_flag='${wl}-z,nodefs'
10113       archive_cmds_need_lc=no
10114       hardcode_shlibpath_var=no
10115       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10116       hardcode_libdir_separator=':'
10117       link_all_deplibs=yes
10118       export_dynamic_flag_spec='${wl}-Bexport'
10119       runpath_var='LD_RUN_PATH'
10120
10121       if test "$GCC" = yes; then
10122         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124       else
10125         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127       fi
10128       ;;
10129
10130     uts4*)
10131       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132       hardcode_libdir_flag_spec='-L$libdir'
10133       hardcode_shlibpath_var=no
10134       ;;
10135
10136     *)
10137       ld_shlibs=no
10138       ;;
10139     esac
10140
10141     if test x$host_vendor = xsni; then
10142       case $host in
10143       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10144         export_dynamic_flag_spec='${wl}-Blargedynsym'
10145         ;;
10146       esac
10147     fi
10148   fi
10149
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10151 $as_echo "$ld_shlibs" >&6; }
10152 test "$ld_shlibs" = no && can_build_shared=no
10153
10154 with_gnu_ld=$with_gnu_ld
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170 #
10171 # Do we need to explicitly link libc?
10172 #
10173 case "x$archive_cmds_need_lc" in
10174 x|xyes)
10175   # Assume -lc should be added
10176   archive_cmds_need_lc=yes
10177
10178   if test "$enable_shared" = yes && test "$GCC" = yes; then
10179     case $archive_cmds in
10180     *'~'*)
10181       # FIXME: we may have to deal with multi-command sequences.
10182       ;;
10183     '$CC '*)
10184       # Test whether the compiler implicitly links with -lc since on some
10185       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10186       # to ld, don't add -lc before -lgcc.
10187       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10188 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10189 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10190   $as_echo_n "(cached) " >&6
10191 else
10192   $RM conftest*
10193         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10194
10195         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10196   (eval $ac_compile) 2>&5
10197   ac_status=$?
10198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199   test $ac_status = 0; } 2>conftest.err; then
10200           soname=conftest
10201           lib=conftest
10202           libobjs=conftest.$ac_objext
10203           deplibs=
10204           wl=$lt_prog_compiler_wl
10205           pic_flag=$lt_prog_compiler_pic
10206           compiler_flags=-v
10207           linker_flags=-v
10208           verstring=
10209           output_objdir=.
10210           libname=conftest
10211           lt_save_allow_undefined_flag=$allow_undefined_flag
10212           allow_undefined_flag=
10213           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10214   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10215   ac_status=$?
10216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10217   test $ac_status = 0; }
10218           then
10219             lt_cv_archive_cmds_need_lc=no
10220           else
10221             lt_cv_archive_cmds_need_lc=yes
10222           fi
10223           allow_undefined_flag=$lt_save_allow_undefined_flag
10224         else
10225           cat conftest.err 1>&5
10226         fi
10227         $RM conftest*
10228
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10231 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10232       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10233       ;;
10234     esac
10235   fi
10236   ;;
10237 esac
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10396 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10397
10398 if test "$GCC" = yes; then
10399   case $host_os in
10400     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10401     *) lt_awk_arg="/^libraries:/" ;;
10402   esac
10403   case $host_os in
10404     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10405     *) lt_sed_strip_eq="s,=/,/,g" ;;
10406   esac
10407   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10408   case $lt_search_path_spec in
10409   *\;*)
10410     # if the path contains ";" then we assume it to be the separator
10411     # otherwise default to the standard path separator (i.e. ":") - it is
10412     # assumed that no part of a normal pathname contains ";" but that should
10413     # okay in the real world where ";" in dirpaths is itself problematic.
10414     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10415     ;;
10416   *)
10417     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10418     ;;
10419   esac
10420   # Ok, now we have the path, separated by spaces, we can step through it
10421   # and add multilib dir if necessary.
10422   lt_tmp_lt_search_path_spec=
10423   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10424   for lt_sys_path in $lt_search_path_spec; do
10425     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10426       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10427     else
10428       test -d "$lt_sys_path" && \
10429         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10430     fi
10431   done
10432   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10433 BEGIN {RS=" "; FS="/|\n";} {
10434   lt_foo="";
10435   lt_count=0;
10436   for (lt_i = NF; lt_i > 0; lt_i--) {
10437     if ($lt_i != "" && $lt_i != ".") {
10438       if ($lt_i == "..") {
10439         lt_count++;
10440       } else {
10441         if (lt_count == 0) {
10442           lt_foo="/" $lt_i lt_foo;
10443         } else {
10444           lt_count--;
10445         }
10446       }
10447     }
10448   }
10449   if (lt_foo != "") { lt_freq[lt_foo]++; }
10450   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10451 }'`
10452   # AWK program above erroneously prepends '/' to C:/dos/paths
10453   # for these hosts.
10454   case $host_os in
10455     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10456       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10457   esac
10458   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10459 else
10460   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10461 fi
10462 library_names_spec=
10463 libname_spec='lib$name'
10464 soname_spec=
10465 shrext_cmds=".so"
10466 postinstall_cmds=
10467 postuninstall_cmds=
10468 finish_cmds=
10469 finish_eval=
10470 shlibpath_var=
10471 shlibpath_overrides_runpath=unknown
10472 version_type=none
10473 dynamic_linker="$host_os ld.so"
10474 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10475 need_lib_prefix=unknown
10476 hardcode_into_libs=no
10477
10478 # when you set need_version to no, make sure it does not cause -set_version
10479 # flags to be left without arguments
10480 need_version=unknown
10481
10482 case $host_os in
10483 aix3*)
10484   version_type=linux
10485   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10486   shlibpath_var=LIBPATH
10487
10488   # AIX 3 has no versioning support, so we append a major version to the name.
10489   soname_spec='${libname}${release}${shared_ext}$major'
10490   ;;
10491
10492 aix[4-9]*)
10493   version_type=linux
10494   need_lib_prefix=no
10495   need_version=no
10496   hardcode_into_libs=yes
10497   if test "$host_cpu" = ia64; then
10498     # AIX 5 supports IA64
10499     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10500     shlibpath_var=LD_LIBRARY_PATH
10501   else
10502     # With GCC up to 2.95.x, collect2 would create an import file
10503     # for dependence libraries.  The import file would start with
10504     # the line `#! .'.  This would cause the generated library to
10505     # depend on `.', always an invalid library.  This was fixed in
10506     # development snapshots of GCC prior to 3.0.
10507     case $host_os in
10508       aix4 | aix4.[01] | aix4.[01].*)
10509       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10510            echo ' yes '
10511            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10512         :
10513       else
10514         can_build_shared=no
10515       fi
10516       ;;
10517     esac
10518     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10519     # soname into executable. Probably we can add versioning support to
10520     # collect2, so additional links can be useful in future.
10521     if test "$aix_use_runtimelinking" = yes; then
10522       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10523       # instead of lib<name>.a to let people know that these are not
10524       # typical AIX shared libraries.
10525       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526     else
10527       # We preserve .a as extension for shared libraries through AIX4.2
10528       # and later when we are not doing run time linking.
10529       library_names_spec='${libname}${release}.a $libname.a'
10530       soname_spec='${libname}${release}${shared_ext}$major'
10531     fi
10532     shlibpath_var=LIBPATH
10533   fi
10534   ;;
10535
10536 amigaos*)
10537   case $host_cpu in
10538   powerpc)
10539     # Since July 2007 AmigaOS4 officially supports .so libraries.
10540     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542     ;;
10543   m68k)
10544     library_names_spec='$libname.ixlibrary $libname.a'
10545     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10546     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10547     ;;
10548   esac
10549   ;;
10550
10551 beos*)
10552   library_names_spec='${libname}${shared_ext}'
10553   dynamic_linker="$host_os ld.so"
10554   shlibpath_var=LIBRARY_PATH
10555   ;;
10556
10557 bsdi[45]*)
10558   version_type=linux
10559   need_version=no
10560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561   soname_spec='${libname}${release}${shared_ext}$major'
10562   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10563   shlibpath_var=LD_LIBRARY_PATH
10564   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10565   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10566   # the default ld.so.conf also contains /usr/contrib/lib and
10567   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10568   # libtool to hard-code these into programs
10569   ;;
10570
10571 cygwin* | mingw* | pw32* | cegcc*)
10572   version_type=windows
10573   shrext_cmds=".dll"
10574   need_version=no
10575   need_lib_prefix=no
10576
10577   case $GCC,$host_os in
10578   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10579     library_names_spec='$libname.dll.a'
10580     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10581     postinstall_cmds='base_file=`basename \${file}`~
10582       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10583       dldir=$destdir/`dirname \$dlpath`~
10584       test -d \$dldir || mkdir -p \$dldir~
10585       $install_prog $dir/$dlname \$dldir/$dlname~
10586       chmod a+x \$dldir/$dlname~
10587       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10588         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10589       fi'
10590     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10591       dlpath=$dir/\$dldll~
10592        $RM \$dlpath'
10593     shlibpath_overrides_runpath=yes
10594
10595     case $host_os in
10596     cygwin*)
10597       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10598       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10599
10600       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10601       ;;
10602     mingw* | cegcc*)
10603       # MinGW DLLs use traditional 'lib' prefix
10604       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10605       ;;
10606     pw32*)
10607       # pw32 DLLs use 'pw' prefix rather than 'lib'
10608       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10609       ;;
10610     esac
10611     ;;
10612
10613   *)
10614     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10615     ;;
10616   esac
10617   dynamic_linker='Win32 ld.exe'
10618   # FIXME: first we should search . and the directory the executable is in
10619   shlibpath_var=PATH
10620   ;;
10621
10622 darwin* | rhapsody*)
10623   dynamic_linker="$host_os dyld"
10624   version_type=darwin
10625   need_lib_prefix=no
10626   need_version=no
10627   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10628   soname_spec='${libname}${release}${major}$shared_ext'
10629   shlibpath_overrides_runpath=yes
10630   shlibpath_var=DYLD_LIBRARY_PATH
10631   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10632
10633   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10634   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10635   ;;
10636
10637 dgux*)
10638   version_type=linux
10639   need_lib_prefix=no
10640   need_version=no
10641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10642   soname_spec='${libname}${release}${shared_ext}$major'
10643   shlibpath_var=LD_LIBRARY_PATH
10644   ;;
10645
10646 freebsd1*)
10647   dynamic_linker=no
10648   ;;
10649
10650 freebsd* | dragonfly*)
10651   # DragonFly does not have aout.  When/if they implement a new
10652   # versioning mechanism, adjust this.
10653   if test -x /usr/bin/objformat; then
10654     objformat=`/usr/bin/objformat`
10655   else
10656     case $host_os in
10657     freebsd[123]*) objformat=aout ;;
10658     *) objformat=elf ;;
10659     esac
10660   fi
10661   version_type=freebsd-$objformat
10662   case $version_type in
10663     freebsd-elf*)
10664       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10665       need_version=no
10666       need_lib_prefix=no
10667       ;;
10668     freebsd-*)
10669       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10670       need_version=yes
10671       ;;
10672   esac
10673   shlibpath_var=LD_LIBRARY_PATH
10674   case $host_os in
10675   freebsd2*)
10676     shlibpath_overrides_runpath=yes
10677     ;;
10678   freebsd3.[01]* | freebsdelf3.[01]*)
10679     shlibpath_overrides_runpath=yes
10680     hardcode_into_libs=yes
10681     ;;
10682   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10683   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10684     shlibpath_overrides_runpath=no
10685     hardcode_into_libs=yes
10686     ;;
10687   *) # from 4.6 on, and DragonFly
10688     shlibpath_overrides_runpath=yes
10689     hardcode_into_libs=yes
10690     ;;
10691   esac
10692   ;;
10693
10694 gnu*)
10695   version_type=linux
10696   need_lib_prefix=no
10697   need_version=no
10698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10699   soname_spec='${libname}${release}${shared_ext}$major'
10700   shlibpath_var=LD_LIBRARY_PATH
10701   hardcode_into_libs=yes
10702   ;;
10703
10704 haiku*)
10705   version_type=linux
10706   need_lib_prefix=no
10707   need_version=no
10708   dynamic_linker="$host_os runtime_loader"
10709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10710   soname_spec='${libname}${release}${shared_ext}$major'
10711   shlibpath_var=LIBRARY_PATH
10712   shlibpath_overrides_runpath=yes
10713   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10714   hardcode_into_libs=yes
10715   ;;
10716
10717 hpux9* | hpux10* | hpux11*)
10718   # Give a soname corresponding to the major version so that dld.sl refuses to
10719   # link against other versions.
10720   version_type=sunos
10721   need_lib_prefix=no
10722   need_version=no
10723   case $host_cpu in
10724   ia64*)
10725     shrext_cmds='.so'
10726     hardcode_into_libs=yes
10727     dynamic_linker="$host_os dld.so"
10728     shlibpath_var=LD_LIBRARY_PATH
10729     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10730     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731     soname_spec='${libname}${release}${shared_ext}$major'
10732     if test "X$HPUX_IA64_MODE" = X32; then
10733       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10734     else
10735       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10736     fi
10737     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10738     ;;
10739   hppa*64*)
10740     shrext_cmds='.sl'
10741     hardcode_into_libs=yes
10742     dynamic_linker="$host_os dld.sl"
10743     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10744     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746     soname_spec='${libname}${release}${shared_ext}$major'
10747     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10749     ;;
10750   *)
10751     shrext_cmds='.sl'
10752     dynamic_linker="$host_os dld.sl"
10753     shlibpath_var=SHLIB_PATH
10754     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756     soname_spec='${libname}${release}${shared_ext}$major'
10757     ;;
10758   esac
10759   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10760   postinstall_cmds='chmod 555 $lib'
10761   # or fails outright, so override atomically:
10762   install_override_mode=555
10763   ;;
10764
10765 interix[3-9]*)
10766   version_type=linux
10767   need_lib_prefix=no
10768   need_version=no
10769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10770   soname_spec='${libname}${release}${shared_ext}$major'
10771   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10772   shlibpath_var=LD_LIBRARY_PATH
10773   shlibpath_overrides_runpath=no
10774   hardcode_into_libs=yes
10775   ;;
10776
10777 irix5* | irix6* | nonstopux*)
10778   case $host_os in
10779     nonstopux*) version_type=nonstopux ;;
10780     *)
10781         if test "$lt_cv_prog_gnu_ld" = yes; then
10782                 version_type=linux
10783         else
10784                 version_type=irix
10785         fi ;;
10786   esac
10787   need_lib_prefix=no
10788   need_version=no
10789   soname_spec='${libname}${release}${shared_ext}$major'
10790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10791   case $host_os in
10792   irix5* | nonstopux*)
10793     libsuff= shlibsuff=
10794     ;;
10795   *)
10796     case $LD in # libtool.m4 will add one of these switches to LD
10797     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10798       libsuff= shlibsuff= libmagic=32-bit;;
10799     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10800       libsuff=32 shlibsuff=N32 libmagic=N32;;
10801     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10802       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10803     *) libsuff= shlibsuff= libmagic=never-match;;
10804     esac
10805     ;;
10806   esac
10807   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10808   shlibpath_overrides_runpath=no
10809   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10810   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10811   hardcode_into_libs=yes
10812   ;;
10813
10814 # No shared lib support for Linux oldld, aout, or coff.
10815 linux*oldld* | linux*aout* | linux*coff*)
10816   dynamic_linker=no
10817   ;;
10818
10819 # This must be Linux ELF.
10820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10821   version_type=linux
10822   need_lib_prefix=no
10823   need_version=no
10824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825   soname_spec='${libname}${release}${shared_ext}$major'
10826   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10827   shlibpath_var=LD_LIBRARY_PATH
10828   shlibpath_overrides_runpath=no
10829
10830   # Some binutils ld are patched to set DT_RUNPATH
10831   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10832   $as_echo_n "(cached) " >&6
10833 else
10834   lt_cv_shlibpath_overrides_runpath=no
10835     save_LDFLAGS=$LDFLAGS
10836     save_libdir=$libdir
10837     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10838          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10839     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h.  */
10841
10842 int
10843 main ()
10844 {
10845
10846   ;
10847   return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10852   lt_cv_shlibpath_overrides_runpath=yes
10853 fi
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext \
10856     conftest$ac_exeext conftest.$ac_ext
10857     LDFLAGS=$save_LDFLAGS
10858     libdir=$save_libdir
10859
10860 fi
10861
10862   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10863
10864   # This implies no fast_install, which is unacceptable.
10865   # Some rework will be needed to allow for fast_install
10866   # before this can be enabled.
10867   hardcode_into_libs=yes
10868
10869   # Append ld.so.conf contents to the search path
10870   if test -f /etc/ld.so.conf; then
10871     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;s/"//g;/^$/d' | tr '\n' ' '`
10872     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10873   fi
10874
10875   # We used to test for /lib/ld.so.1 and disable shared libraries on
10876   # powerpc, because MkLinux only supported shared libraries with the
10877   # GNU dynamic linker.  Since this was broken with cross compilers,
10878   # most powerpc-linux boxes support dynamic linking these days and
10879   # people can always --disable-shared, the test was removed, and we
10880   # assume the GNU/Linux dynamic linker is in use.
10881   dynamic_linker='GNU/Linux ld.so'
10882   ;;
10883
10884 netbsd*)
10885   version_type=sunos
10886   need_lib_prefix=no
10887   need_version=no
10888   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10890     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10891     dynamic_linker='NetBSD (a.out) ld.so'
10892   else
10893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10894     soname_spec='${libname}${release}${shared_ext}$major'
10895     dynamic_linker='NetBSD ld.elf_so'
10896   fi
10897   shlibpath_var=LD_LIBRARY_PATH
10898   shlibpath_overrides_runpath=yes
10899   hardcode_into_libs=yes
10900   ;;
10901
10902 newsos6)
10903   version_type=linux
10904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905   shlibpath_var=LD_LIBRARY_PATH
10906   shlibpath_overrides_runpath=yes
10907   ;;
10908
10909 *nto* | *qnx*)
10910   version_type=qnx
10911   need_lib_prefix=no
10912   need_version=no
10913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914   soname_spec='${libname}${release}${shared_ext}$major'
10915   shlibpath_var=LD_LIBRARY_PATH
10916   shlibpath_overrides_runpath=no
10917   hardcode_into_libs=yes
10918   dynamic_linker='ldqnx.so'
10919   ;;
10920
10921 openbsd*)
10922   version_type=sunos
10923   sys_lib_dlsearch_path_spec="/usr/lib"
10924   need_lib_prefix=no
10925   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10926   case $host_os in
10927     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10928     *)                          need_version=no  ;;
10929   esac
10930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10931   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10932   shlibpath_var=LD_LIBRARY_PATH
10933   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10934     case $host_os in
10935       openbsd2.[89] | openbsd2.[89].*)
10936         shlibpath_overrides_runpath=no
10937         ;;
10938       *)
10939         shlibpath_overrides_runpath=yes
10940         ;;
10941       esac
10942   else
10943     shlibpath_overrides_runpath=yes
10944   fi
10945   ;;
10946
10947 os2*)
10948   libname_spec='$name'
10949   shrext_cmds=".dll"
10950   need_lib_prefix=no
10951   library_names_spec='$libname${shared_ext} $libname.a'
10952   dynamic_linker='OS/2 ld.exe'
10953   shlibpath_var=LIBPATH
10954   ;;
10955
10956 osf3* | osf4* | osf5*)
10957   version_type=osf
10958   need_lib_prefix=no
10959   need_version=no
10960   soname_spec='${libname}${release}${shared_ext}$major'
10961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962   shlibpath_var=LD_LIBRARY_PATH
10963   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10964   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10965   ;;
10966
10967 rdos*)
10968   dynamic_linker=no
10969   ;;
10970
10971 solaris*)
10972   version_type=linux
10973   need_lib_prefix=no
10974   need_version=no
10975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976   soname_spec='${libname}${release}${shared_ext}$major'
10977   shlibpath_var=LD_LIBRARY_PATH
10978   shlibpath_overrides_runpath=yes
10979   hardcode_into_libs=yes
10980   # ldd complains unless libraries are executable
10981   postinstall_cmds='chmod +x $lib'
10982   ;;
10983
10984 sunos4*)
10985   version_type=sunos
10986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10987   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10988   shlibpath_var=LD_LIBRARY_PATH
10989   shlibpath_overrides_runpath=yes
10990   if test "$with_gnu_ld" = yes; then
10991     need_lib_prefix=no
10992   fi
10993   need_version=yes
10994   ;;
10995
10996 sysv4 | sysv4.3*)
10997   version_type=linux
10998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10999   soname_spec='${libname}${release}${shared_ext}$major'
11000   shlibpath_var=LD_LIBRARY_PATH
11001   case $host_vendor in
11002     sni)
11003       shlibpath_overrides_runpath=no
11004       need_lib_prefix=no
11005       runpath_var=LD_RUN_PATH
11006       ;;
11007     siemens)
11008       need_lib_prefix=no
11009       ;;
11010     motorola)
11011       need_lib_prefix=no
11012       need_version=no
11013       shlibpath_overrides_runpath=no
11014       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11015       ;;
11016   esac
11017   ;;
11018
11019 sysv4*MP*)
11020   if test -d /usr/nec ;then
11021     version_type=linux
11022     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11023     soname_spec='$libname${shared_ext}.$major'
11024     shlibpath_var=LD_LIBRARY_PATH
11025   fi
11026   ;;
11027
11028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11029   version_type=freebsd-elf
11030   need_lib_prefix=no
11031   need_version=no
11032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11033   soname_spec='${libname}${release}${shared_ext}$major'
11034   shlibpath_var=LD_LIBRARY_PATH
11035   shlibpath_overrides_runpath=yes
11036   hardcode_into_libs=yes
11037   if test "$with_gnu_ld" = yes; then
11038     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11039   else
11040     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11041     case $host_os in
11042       sco3.2v5*)
11043         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11044         ;;
11045     esac
11046   fi
11047   sys_lib_dlsearch_path_spec='/usr/lib'
11048   ;;
11049
11050 tpf*)
11051   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11052   version_type=linux
11053   need_lib_prefix=no
11054   need_version=no
11055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056   shlibpath_var=LD_LIBRARY_PATH
11057   shlibpath_overrides_runpath=no
11058   hardcode_into_libs=yes
11059   ;;
11060
11061 uts4*)
11062   version_type=linux
11063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064   soname_spec='${libname}${release}${shared_ext}$major'
11065   shlibpath_var=LD_LIBRARY_PATH
11066   ;;
11067
11068 *)
11069   dynamic_linker=no
11070   ;;
11071 esac
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11073 $as_echo "$dynamic_linker" >&6; }
11074 test "$dynamic_linker" = no && can_build_shared=no
11075
11076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11077 if test "$GCC" = yes; then
11078   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11079 fi
11080
11081 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11082   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11083 fi
11084 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11085   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11086 fi
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11180 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11181 hardcode_action=
11182 if test -n "$hardcode_libdir_flag_spec" ||
11183    test -n "$runpath_var" ||
11184    test "X$hardcode_automatic" = "Xyes" ; then
11185
11186   # We can hardcode non-existent directories.
11187   if test "$hardcode_direct" != no &&
11188      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11189      # have to relink, otherwise we might link with an installed library
11190      # when we should be linking with a yet-to-be-installed one
11191      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11192      test "$hardcode_minus_L" != no; then
11193     # Linking always hardcodes the temporary library directory.
11194     hardcode_action=relink
11195   else
11196     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11197     hardcode_action=immediate
11198   fi
11199 else
11200   # We cannot hardcode anything, or else we can only hardcode existing
11201   # directories.
11202   hardcode_action=unsupported
11203 fi
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11205 $as_echo "$hardcode_action" >&6; }
11206
11207 if test "$hardcode_action" = relink ||
11208    test "$inherit_rpath" = yes; then
11209   # Fast installation is not supported
11210   enable_fast_install=no
11211 elif test "$shlibpath_overrides_runpath" = yes ||
11212      test "$enable_shared" = no; then
11213   # Fast installation is not necessary
11214   enable_fast_install=needless
11215 fi
11216
11217
11218
11219
11220
11221
11222   if test "x$enable_dlopen" != xyes; then
11223   enable_dlopen=unknown
11224   enable_dlopen_self=unknown
11225   enable_dlopen_self_static=unknown
11226 else
11227   lt_cv_dlopen=no
11228   lt_cv_dlopen_libs=
11229
11230   case $host_os in
11231   beos*)
11232     lt_cv_dlopen="load_add_on"
11233     lt_cv_dlopen_libs=
11234     lt_cv_dlopen_self=yes
11235     ;;
11236
11237   mingw* | pw32* | cegcc*)
11238     lt_cv_dlopen="LoadLibrary"
11239     lt_cv_dlopen_libs=
11240     ;;
11241
11242   cygwin*)
11243     lt_cv_dlopen="dlopen"
11244     lt_cv_dlopen_libs=
11245     ;;
11246
11247   darwin*)
11248   # if libdl is installed we need to link against it
11249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11250 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11251 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11252   $as_echo_n "(cached) " >&6
11253 else
11254   ac_check_lib_save_LIBS=$LIBS
11255 LIBS="-ldl  $LIBS"
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h.  */
11258
11259 /* Override any GCC internal prototype to avoid an error.
11260    Use char because int might match the return type of a GCC
11261    builtin and then its argument prototype would still apply.  */
11262 #ifdef __cplusplus
11263 extern "C"
11264 #endif
11265 char dlopen ();
11266 int
11267 main ()
11268 {
11269 return dlopen ();
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"; then :
11275   ac_cv_lib_dl_dlopen=yes
11276 else
11277   ac_cv_lib_dl_dlopen=no
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext \
11280     conftest$ac_exeext conftest.$ac_ext
11281 LIBS=$ac_check_lib_save_LIBS
11282 fi
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11285 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11286   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11287 else
11288
11289     lt_cv_dlopen="dyld"
11290     lt_cv_dlopen_libs=
11291     lt_cv_dlopen_self=yes
11292
11293 fi
11294
11295     ;;
11296
11297   *)
11298     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11299 if test "x$ac_cv_func_shl_load" = x""yes; then :
11300   lt_cv_dlopen="shl_load"
11301 else
11302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11303 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11304 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11305   $as_echo_n "(cached) " >&6
11306 else
11307   ac_check_lib_save_LIBS=$LIBS
11308 LIBS="-ldld  $LIBS"
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h.  */
11311
11312 /* Override any GCC internal prototype to avoid an error.
11313    Use char because int might match the return type of a GCC
11314    builtin and then its argument prototype would still apply.  */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 char shl_load ();
11319 int
11320 main ()
11321 {
11322 return shl_load ();
11323   ;
11324   return 0;
11325 }
11326 _ACEOF
11327 if ac_fn_c_try_link "$LINENO"; then :
11328   ac_cv_lib_dld_shl_load=yes
11329 else
11330   ac_cv_lib_dld_shl_load=no
11331 fi
11332 rm -f core conftest.err conftest.$ac_objext \
11333     conftest$ac_exeext conftest.$ac_ext
11334 LIBS=$ac_check_lib_save_LIBS
11335 fi
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11337 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11338 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11339   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11340 else
11341   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11342 if test "x$ac_cv_func_dlopen" = x""yes; then :
11343   lt_cv_dlopen="dlopen"
11344 else
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11346 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11347 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11348   $as_echo_n "(cached) " >&6
11349 else
11350   ac_check_lib_save_LIBS=$LIBS
11351 LIBS="-ldl  $LIBS"
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h.  */
11354
11355 /* Override any GCC internal prototype to avoid an error.
11356    Use char because int might match the return type of a GCC
11357    builtin and then its argument prototype would still apply.  */
11358 #ifdef __cplusplus
11359 extern "C"
11360 #endif
11361 char dlopen ();
11362 int
11363 main ()
11364 {
11365 return dlopen ();
11366   ;
11367   return 0;
11368 }
11369 _ACEOF
11370 if ac_fn_c_try_link "$LINENO"; then :
11371   ac_cv_lib_dl_dlopen=yes
11372 else
11373   ac_cv_lib_dl_dlopen=no
11374 fi
11375 rm -f core conftest.err conftest.$ac_objext \
11376     conftest$ac_exeext conftest.$ac_ext
11377 LIBS=$ac_check_lib_save_LIBS
11378 fi
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11380 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11381 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11382   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11383 else
11384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11385 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11386 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11387   $as_echo_n "(cached) " >&6
11388 else
11389   ac_check_lib_save_LIBS=$LIBS
11390 LIBS="-lsvld  $LIBS"
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h.  */
11393
11394 /* Override any GCC internal prototype to avoid an error.
11395    Use char because int might match the return type of a GCC
11396    builtin and then its argument prototype would still apply.  */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 char dlopen ();
11401 int
11402 main ()
11403 {
11404 return dlopen ();
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410   ac_cv_lib_svld_dlopen=yes
11411 else
11412   ac_cv_lib_svld_dlopen=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415     conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11419 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11420 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11421   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11422 else
11423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11424 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11425 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11426   $as_echo_n "(cached) " >&6
11427 else
11428   ac_check_lib_save_LIBS=$LIBS
11429 LIBS="-ldld  $LIBS"
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h.  */
11432
11433 /* Override any GCC internal prototype to avoid an error.
11434    Use char because int might match the return type of a GCC
11435    builtin and then its argument prototype would still apply.  */
11436 #ifdef __cplusplus
11437 extern "C"
11438 #endif
11439 char dld_link ();
11440 int
11441 main ()
11442 {
11443 return dld_link ();
11444   ;
11445   return 0;
11446 }
11447 _ACEOF
11448 if ac_fn_c_try_link "$LINENO"; then :
11449   ac_cv_lib_dld_dld_link=yes
11450 else
11451   ac_cv_lib_dld_dld_link=no
11452 fi
11453 rm -f core conftest.err conftest.$ac_objext \
11454     conftest$ac_exeext conftest.$ac_ext
11455 LIBS=$ac_check_lib_save_LIBS
11456 fi
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11458 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11459 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11460   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11461 fi
11462
11463
11464 fi
11465
11466
11467 fi
11468
11469
11470 fi
11471
11472
11473 fi
11474
11475
11476 fi
11477
11478     ;;
11479   esac
11480
11481   if test "x$lt_cv_dlopen" != xno; then
11482     enable_dlopen=yes
11483   else
11484     enable_dlopen=no
11485   fi
11486
11487   case $lt_cv_dlopen in
11488   dlopen)
11489     save_CPPFLAGS="$CPPFLAGS"
11490     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11491
11492     save_LDFLAGS="$LDFLAGS"
11493     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11494
11495     save_LIBS="$LIBS"
11496     LIBS="$lt_cv_dlopen_libs $LIBS"
11497
11498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11499 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11500 if test "${lt_cv_dlopen_self+set}" = set; then :
11501   $as_echo_n "(cached) " >&6
11502 else
11503           if test "$cross_compiling" = yes; then :
11504   lt_cv_dlopen_self=cross
11505 else
11506   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11507   lt_status=$lt_dlunknown
11508   cat > conftest.$ac_ext <<_LT_EOF
11509 #line $LINENO "configure"
11510 #include "confdefs.h"
11511
11512 #if HAVE_DLFCN_H
11513 #include <dlfcn.h>
11514 #endif
11515
11516 #include <stdio.h>
11517
11518 #ifdef RTLD_GLOBAL
11519 #  define LT_DLGLOBAL           RTLD_GLOBAL
11520 #else
11521 #  ifdef DL_GLOBAL
11522 #    define LT_DLGLOBAL         DL_GLOBAL
11523 #  else
11524 #    define LT_DLGLOBAL         0
11525 #  endif
11526 #endif
11527
11528 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11529    find out it does not work in some platform. */
11530 #ifndef LT_DLLAZY_OR_NOW
11531 #  ifdef RTLD_LAZY
11532 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11533 #  else
11534 #    ifdef DL_LAZY
11535 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11536 #    else
11537 #      ifdef RTLD_NOW
11538 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11539 #      else
11540 #        ifdef DL_NOW
11541 #          define LT_DLLAZY_OR_NOW      DL_NOW
11542 #        else
11543 #          define LT_DLLAZY_OR_NOW      0
11544 #        endif
11545 #      endif
11546 #    endif
11547 #  endif
11548 #endif
11549
11550 /* When -fvisbility=hidden is used, assume the code has been annotated
11551    correspondingly for the symbols needed.  */
11552 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11553 void fnord () __attribute__((visibility("default")));
11554 #endif
11555
11556 void fnord () { int i=42; }
11557 int main ()
11558 {
11559   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11560   int status = $lt_dlunknown;
11561
11562   if (self)
11563     {
11564       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11565       else
11566         {
11567           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11568           else puts (dlerror ());
11569         }
11570       /* dlclose (self); */
11571     }
11572   else
11573     puts (dlerror ());
11574
11575   return status;
11576 }
11577 _LT_EOF
11578   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11579   (eval $ac_link) 2>&5
11580   ac_status=$?
11581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11582   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11583     (./conftest; exit; ) >&5 2>/dev/null
11584     lt_status=$?
11585     case x$lt_status in
11586       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11587       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11588       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11589     esac
11590   else :
11591     # compilation failed
11592     lt_cv_dlopen_self=no
11593   fi
11594 fi
11595 rm -fr conftest*
11596
11597
11598 fi
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11600 $as_echo "$lt_cv_dlopen_self" >&6; }
11601
11602     if test "x$lt_cv_dlopen_self" = xyes; then
11603       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11604       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11605 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11606 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11607   $as_echo_n "(cached) " >&6
11608 else
11609           if test "$cross_compiling" = yes; then :
11610   lt_cv_dlopen_self_static=cross
11611 else
11612   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11613   lt_status=$lt_dlunknown
11614   cat > conftest.$ac_ext <<_LT_EOF
11615 #line $LINENO "configure"
11616 #include "confdefs.h"
11617
11618 #if HAVE_DLFCN_H
11619 #include <dlfcn.h>
11620 #endif
11621
11622 #include <stdio.h>
11623
11624 #ifdef RTLD_GLOBAL
11625 #  define LT_DLGLOBAL           RTLD_GLOBAL
11626 #else
11627 #  ifdef DL_GLOBAL
11628 #    define LT_DLGLOBAL         DL_GLOBAL
11629 #  else
11630 #    define LT_DLGLOBAL         0
11631 #  endif
11632 #endif
11633
11634 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11635    find out it does not work in some platform. */
11636 #ifndef LT_DLLAZY_OR_NOW
11637 #  ifdef RTLD_LAZY
11638 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11639 #  else
11640 #    ifdef DL_LAZY
11641 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11642 #    else
11643 #      ifdef RTLD_NOW
11644 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11645 #      else
11646 #        ifdef DL_NOW
11647 #          define LT_DLLAZY_OR_NOW      DL_NOW
11648 #        else
11649 #          define LT_DLLAZY_OR_NOW      0
11650 #        endif
11651 #      endif
11652 #    endif
11653 #  endif
11654 #endif
11655
11656 /* When -fvisbility=hidden is used, assume the code has been annotated
11657    correspondingly for the symbols needed.  */
11658 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11659 void fnord () __attribute__((visibility("default")));
11660 #endif
11661
11662 void fnord () { int i=42; }
11663 int main ()
11664 {
11665   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11666   int status = $lt_dlunknown;
11667
11668   if (self)
11669     {
11670       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11671       else
11672         {
11673           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11674           else puts (dlerror ());
11675         }
11676       /* dlclose (self); */
11677     }
11678   else
11679     puts (dlerror ());
11680
11681   return status;
11682 }
11683 _LT_EOF
11684   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11685   (eval $ac_link) 2>&5
11686   ac_status=$?
11687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11688   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11689     (./conftest; exit; ) >&5 2>/dev/null
11690     lt_status=$?
11691     case x$lt_status in
11692       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11693       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11694       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11695     esac
11696   else :
11697     # compilation failed
11698     lt_cv_dlopen_self_static=no
11699   fi
11700 fi
11701 rm -fr conftest*
11702
11703
11704 fi
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11706 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11707     fi
11708
11709     CPPFLAGS="$save_CPPFLAGS"
11710     LDFLAGS="$save_LDFLAGS"
11711     LIBS="$save_LIBS"
11712     ;;
11713   esac
11714
11715   case $lt_cv_dlopen_self in
11716   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11717   *) enable_dlopen_self=unknown ;;
11718   esac
11719
11720   case $lt_cv_dlopen_self_static in
11721   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11722   *) enable_dlopen_self_static=unknown ;;
11723   esac
11724 fi
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742 striplib=
11743 old_striplib=
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11745 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11746 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11747   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11748   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750 $as_echo "yes" >&6; }
11751 else
11752 # FIXME - insert some real tests, host_os isn't really good enough
11753   case $host_os in
11754   darwin*)
11755     if test -n "$STRIP" ; then
11756       striplib="$STRIP -x"
11757       old_striplib="$STRIP -S"
11758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11759 $as_echo "yes" >&6; }
11760     else
11761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11763     fi
11764     ;;
11765   *)
11766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11768     ;;
11769   esac
11770 fi
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783   # Report which library types will actually be built
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11785 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11787 $as_echo "$can_build_shared" >&6; }
11788
11789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11790 $as_echo_n "checking whether to build shared libraries... " >&6; }
11791   test "$can_build_shared" = "no" && enable_shared=no
11792
11793   # On AIX, shared libraries and static libraries use the same namespace, and
11794   # are all built from PIC.
11795   case $host_os in
11796   aix3*)
11797     test "$enable_shared" = yes && enable_static=no
11798     if test -n "$RANLIB"; then
11799       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11800       postinstall_cmds='$RANLIB $lib'
11801     fi
11802     ;;
11803
11804   aix[4-9]*)
11805     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11806       test "$enable_shared" = yes && enable_static=no
11807     fi
11808     ;;
11809   esac
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11811 $as_echo "$enable_shared" >&6; }
11812
11813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11814 $as_echo_n "checking whether to build static libraries... " >&6; }
11815   # Make sure either enable_shared or enable_static is yes.
11816   test "$enable_shared" = yes || enable_static=yes
11817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11818 $as_echo "$enable_static" >&6; }
11819
11820
11821
11822
11823 fi
11824 ac_ext=c
11825 ac_cpp='$CPP $CPPFLAGS'
11826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11829
11830 CC="$lt_save_CC"
11831
11832       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11833     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11834     (test "X$CXX" != "Xg++"))) ; then
11835   ac_ext=cpp
11836 ac_cpp='$CXXCPP $CPPFLAGS'
11837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11841 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11842 if test -z "$CXXCPP"; then
11843   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11844   $as_echo_n "(cached) " >&6
11845 else
11846       # Double quotes because CXXCPP needs to be expanded
11847     for CXXCPP in "$CXX -E" "/lib/cpp"
11848     do
11849       ac_preproc_ok=false
11850 for ac_cxx_preproc_warn_flag in '' yes
11851 do
11852   # Use a header file that comes with gcc, so configuring glibc
11853   # with a fresh cross-compiler works.
11854   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11855   # <limits.h> exists even on freestanding compilers.
11856   # On the NeXT, cc -E runs the code through the compiler's parser,
11857   # not just through cpp. "Syntax error" is here to catch this case.
11858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h.  */
11860 #ifdef __STDC__
11861 # include <limits.h>
11862 #else
11863 # include <assert.h>
11864 #endif
11865                      Syntax error
11866 _ACEOF
11867 if ac_fn_cxx_try_cpp "$LINENO"; then :
11868
11869 else
11870   # Broken: fails on valid input.
11871 continue
11872 fi
11873 rm -f conftest.err conftest.$ac_ext
11874
11875   # OK, works on sane cases.  Now check whether nonexistent headers
11876   # can be detected and how.
11877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h.  */
11879 #include <ac_nonexistent.h>
11880 _ACEOF
11881 if ac_fn_cxx_try_cpp "$LINENO"; then :
11882   # Broken: success on invalid input.
11883 continue
11884 else
11885   # Passes both tests.
11886 ac_preproc_ok=:
11887 break
11888 fi
11889 rm -f conftest.err conftest.$ac_ext
11890
11891 done
11892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11893 rm -f conftest.err conftest.$ac_ext
11894 if $ac_preproc_ok; then :
11895   break
11896 fi
11897
11898     done
11899     ac_cv_prog_CXXCPP=$CXXCPP
11900
11901 fi
11902   CXXCPP=$ac_cv_prog_CXXCPP
11903 else
11904   ac_cv_prog_CXXCPP=$CXXCPP
11905 fi
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11907 $as_echo "$CXXCPP" >&6; }
11908 ac_preproc_ok=false
11909 for ac_cxx_preproc_warn_flag in '' yes
11910 do
11911   # Use a header file that comes with gcc, so configuring glibc
11912   # with a fresh cross-compiler works.
11913   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914   # <limits.h> exists even on freestanding compilers.
11915   # On the NeXT, cc -E runs the code through the compiler's parser,
11916   # not just through cpp. "Syntax error" is here to catch this case.
11917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h.  */
11919 #ifdef __STDC__
11920 # include <limits.h>
11921 #else
11922 # include <assert.h>
11923 #endif
11924                      Syntax error
11925 _ACEOF
11926 if ac_fn_cxx_try_cpp "$LINENO"; then :
11927
11928 else
11929   # Broken: fails on valid input.
11930 continue
11931 fi
11932 rm -f conftest.err conftest.$ac_ext
11933
11934   # OK, works on sane cases.  Now check whether nonexistent headers
11935   # can be detected and how.
11936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h.  */
11938 #include <ac_nonexistent.h>
11939 _ACEOF
11940 if ac_fn_cxx_try_cpp "$LINENO"; then :
11941   # Broken: success on invalid input.
11942 continue
11943 else
11944   # Passes both tests.
11945 ac_preproc_ok=:
11946 break
11947 fi
11948 rm -f conftest.err conftest.$ac_ext
11949
11950 done
11951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11952 rm -f conftest.err conftest.$ac_ext
11953 if $ac_preproc_ok; then :
11954
11955 else
11956   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11958 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11959 See \`config.log' for more details." "$LINENO" 5; }
11960 fi
11961
11962 ac_ext=c
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967
11968 else
11969   _lt_caught_CXX_error=yes
11970 fi
11971
11972 ac_ext=cpp
11973 ac_cpp='$CXXCPP $CPPFLAGS'
11974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11977
11978 archive_cmds_need_lc_CXX=no
11979 allow_undefined_flag_CXX=
11980 always_export_symbols_CXX=no
11981 archive_expsym_cmds_CXX=
11982 compiler_needs_object_CXX=no
11983 export_dynamic_flag_spec_CXX=
11984 hardcode_direct_CXX=no
11985 hardcode_direct_absolute_CXX=no
11986 hardcode_libdir_flag_spec_CXX=
11987 hardcode_libdir_flag_spec_ld_CXX=
11988 hardcode_libdir_separator_CXX=
11989 hardcode_minus_L_CXX=no
11990 hardcode_shlibpath_var_CXX=unsupported
11991 hardcode_automatic_CXX=no
11992 inherit_rpath_CXX=no
11993 module_cmds_CXX=
11994 module_expsym_cmds_CXX=
11995 link_all_deplibs_CXX=unknown
11996 old_archive_cmds_CXX=$old_archive_cmds
11997 reload_flag_CXX=$reload_flag
11998 reload_cmds_CXX=$reload_cmds
11999 no_undefined_flag_CXX=
12000 whole_archive_flag_spec_CXX=
12001 enable_shared_with_static_runtimes_CXX=no
12002
12003 # Source file extension for C++ test sources.
12004 ac_ext=cpp
12005
12006 # Object file extension for compiled C++ test sources.
12007 objext=o
12008 objext_CXX=$objext
12009
12010 # No sense in running all these tests if we already determined that
12011 # the CXX compiler isn't working.  Some variables (like enable_shared)
12012 # are currently assumed to apply to all compilers on this platform,
12013 # and will be corrupted by setting them based on a non-working compiler.
12014 if test "$_lt_caught_CXX_error" != yes; then
12015   # Code to be used in simple compile tests
12016   lt_simple_compile_test_code="int some_variable = 0;"
12017
12018   # Code to be used in simple link tests
12019   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12020
12021   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12022
12023
12024
12025
12026
12027
12028 # If no C compiler was specified, use CC.
12029 LTCC=${LTCC-"$CC"}
12030
12031 # If no C compiler flags were specified, use CFLAGS.
12032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12033
12034 # Allow CC to be a program name with arguments.
12035 compiler=$CC
12036
12037
12038   # save warnings/boilerplate of simple test code
12039   ac_outfile=conftest.$ac_objext
12040 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12041 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12042 _lt_compiler_boilerplate=`cat conftest.err`
12043 $RM conftest*
12044
12045   ac_outfile=conftest.$ac_objext
12046 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12047 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12048 _lt_linker_boilerplate=`cat conftest.err`
12049 $RM -r conftest*
12050
12051
12052   # Allow CC to be a program name with arguments.
12053   lt_save_CC=$CC
12054   lt_save_LD=$LD
12055   lt_save_GCC=$GCC
12056   GCC=$GXX
12057   lt_save_with_gnu_ld=$with_gnu_ld
12058   lt_save_path_LD=$lt_cv_path_LD
12059   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12060     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12061   else
12062     $as_unset lt_cv_prog_gnu_ld
12063   fi
12064   if test -n "${lt_cv_path_LDCXX+set}"; then
12065     lt_cv_path_LD=$lt_cv_path_LDCXX
12066   else
12067     $as_unset lt_cv_path_LD
12068   fi
12069   test -z "${LDCXX+set}" || LD=$LDCXX
12070   CC=${CXX-"c++"}
12071   compiler=$CC
12072   compiler_CXX=$CC
12073   for cc_temp in $compiler""; do
12074   case $cc_temp in
12075     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12076     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12077     \-*) ;;
12078     *) break;;
12079   esac
12080 done
12081 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12082
12083
12084   if test -n "$compiler"; then
12085     # We don't want -fno-exception when compiling C++ code, so set the
12086     # no_builtin_flag separately
12087     if test "$GXX" = yes; then
12088       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12089     else
12090       lt_prog_compiler_no_builtin_flag_CXX=
12091     fi
12092
12093     if test "$GXX" = yes; then
12094       # Set up default GNU C++ configuration
12095
12096
12097
12098 # Check whether --with-gnu-ld was given.
12099 if test "${with_gnu_ld+set}" = set; then :
12100   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12101 else
12102   with_gnu_ld=no
12103 fi
12104
12105 ac_prog=ld
12106 if test "$GCC" = yes; then
12107   # Check if gcc -print-prog-name=ld gives a path.
12108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12109 $as_echo_n "checking for ld used by $CC... " >&6; }
12110   case $host in
12111   *-*-mingw*)
12112     # gcc leaves a trailing carriage return which upsets mingw
12113     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12114   *)
12115     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12116   esac
12117   case $ac_prog in
12118     # Accept absolute paths.
12119     [\\/]* | ?:[\\/]*)
12120       re_direlt='/[^/][^/]*/\.\./'
12121       # Canonicalize the pathname of ld
12122       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12123       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12124         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12125       done
12126       test -z "$LD" && LD="$ac_prog"
12127       ;;
12128   "")
12129     # If it fails, then pretend we aren't using GCC.
12130     ac_prog=ld
12131     ;;
12132   *)
12133     # If it is relative, then search for the first ld in PATH.
12134     with_gnu_ld=unknown
12135     ;;
12136   esac
12137 elif test "$with_gnu_ld" = yes; then
12138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12139 $as_echo_n "checking for GNU ld... " >&6; }
12140 else
12141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12142 $as_echo_n "checking for non-GNU ld... " >&6; }
12143 fi
12144 if test "${lt_cv_path_LD+set}" = set; then :
12145   $as_echo_n "(cached) " >&6
12146 else
12147   if test -z "$LD"; then
12148   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12149   for ac_dir in $PATH; do
12150     IFS="$lt_save_ifs"
12151     test -z "$ac_dir" && ac_dir=.
12152     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12153       lt_cv_path_LD="$ac_dir/$ac_prog"
12154       # Check to see if the program is GNU ld.  I'd rather use --version,
12155       # but apparently some variants of GNU ld only accept -v.
12156       # Break only if it was the GNU/non-GNU ld that we prefer.
12157       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12158       *GNU* | *'with BFD'*)
12159         test "$with_gnu_ld" != no && break
12160         ;;
12161       *)
12162         test "$with_gnu_ld" != yes && break
12163         ;;
12164       esac
12165     fi
12166   done
12167   IFS="$lt_save_ifs"
12168 else
12169   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12170 fi
12171 fi
12172
12173 LD="$lt_cv_path_LD"
12174 if test -n "$LD"; then
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12176 $as_echo "$LD" >&6; }
12177 else
12178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12180 fi
12181 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12183 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12184 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12185   $as_echo_n "(cached) " >&6
12186 else
12187   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12188 case `$LD -v 2>&1 </dev/null` in
12189 *GNU* | *'with BFD'*)
12190   lt_cv_prog_gnu_ld=yes
12191   ;;
12192 *)
12193   lt_cv_prog_gnu_ld=no
12194   ;;
12195 esac
12196 fi
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12198 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12199 with_gnu_ld=$lt_cv_prog_gnu_ld
12200
12201
12202
12203
12204
12205
12206
12207       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12208       # archiving commands below assume that GNU ld is being used.
12209       if test "$with_gnu_ld" = yes; then
12210         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12211         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'
12212
12213         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12214         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12215
12216         # If archive_cmds runs LD, not CC, wlarc should be empty
12217         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12218         #     investigate it a little bit more. (MM)
12219         wlarc='${wl}'
12220
12221         # ancient GNU ld didn't support --whole-archive et. al.
12222         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12223           $GREP 'no-whole-archive' > /dev/null; then
12224           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12225         else
12226           whole_archive_flag_spec_CXX=
12227         fi
12228       else
12229         with_gnu_ld=no
12230         wlarc=
12231
12232         # A generic and very simple default shared library creation
12233         # command for GNU C++ for the case where it uses the native
12234         # linker, instead of GNU ld.  If possible, this setting should
12235         # overridden to take advantage of the native linker features on
12236         # the platform it is being used on.
12237         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12238       fi
12239
12240       # Commands to make compiler produce verbose output that lists
12241       # what "hidden" libraries, object files and flags are used when
12242       # linking a shared library.
12243       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12244
12245     else
12246       GXX=no
12247       with_gnu_ld=no
12248       wlarc=
12249     fi
12250
12251     # PORTME: fill in a description of your system's C++ link characteristics
12252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12253 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12254     ld_shlibs_CXX=yes
12255     case $host_os in
12256       aix3*)
12257         # FIXME: insert proper C++ library support
12258         ld_shlibs_CXX=no
12259         ;;
12260       aix[4-9]*)
12261         if test "$host_cpu" = ia64; then
12262           # On IA64, the linker does run time linking by default, so we don't
12263           # have to do anything special.
12264           aix_use_runtimelinking=no
12265           exp_sym_flag='-Bexport'
12266           no_entry_flag=""
12267         else
12268           aix_use_runtimelinking=no
12269
12270           # Test if we are trying to use run time linking or normal
12271           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12272           # need to do runtime linking.
12273           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12274             for ld_flag in $LDFLAGS; do
12275               case $ld_flag in
12276               *-brtl*)
12277                 aix_use_runtimelinking=yes
12278                 break
12279                 ;;
12280               esac
12281             done
12282             ;;
12283           esac
12284
12285           exp_sym_flag='-bexport'
12286           no_entry_flag='-bnoentry'
12287         fi
12288
12289         # When large executables or shared objects are built, AIX ld can
12290         # have problems creating the table of contents.  If linking a library
12291         # or program results in "error TOC overflow" add -mminimal-toc to
12292         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12293         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12294
12295         archive_cmds_CXX=''
12296         hardcode_direct_CXX=yes
12297         hardcode_direct_absolute_CXX=yes
12298         hardcode_libdir_separator_CXX=':'
12299         link_all_deplibs_CXX=yes
12300         file_list_spec_CXX='${wl}-f,'
12301
12302         if test "$GXX" = yes; then
12303           case $host_os in aix4.[012]|aix4.[012].*)
12304           # We only want to do this on AIX 4.2 and lower, the check
12305           # below for broken collect2 doesn't work under 4.3+
12306           collect2name=`${CC} -print-prog-name=collect2`
12307           if test -f "$collect2name" &&
12308              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12309           then
12310             # We have reworked collect2
12311             :
12312           else
12313             # We have old collect2
12314             hardcode_direct_CXX=unsupported
12315             # It fails to find uninstalled libraries when the uninstalled
12316             # path is not listed in the libpath.  Setting hardcode_minus_L
12317             # to unsupported forces relinking
12318             hardcode_minus_L_CXX=yes
12319             hardcode_libdir_flag_spec_CXX='-L$libdir'
12320             hardcode_libdir_separator_CXX=
12321           fi
12322           esac
12323           shared_flag='-shared'
12324           if test "$aix_use_runtimelinking" = yes; then
12325             shared_flag="$shared_flag "'${wl}-G'
12326           fi
12327         else
12328           # not using gcc
12329           if test "$host_cpu" = ia64; then
12330           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12331           # chokes on -Wl,-G. The following line is correct:
12332           shared_flag='-G'
12333           else
12334             if test "$aix_use_runtimelinking" = yes; then
12335               shared_flag='${wl}-G'
12336             else
12337               shared_flag='${wl}-bM:SRE'
12338             fi
12339           fi
12340         fi
12341
12342         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12343         # It seems that -bexpall does not export symbols beginning with
12344         # underscore (_), so it is better to generate a list of symbols to
12345         # export.
12346         always_export_symbols_CXX=yes
12347         if test "$aix_use_runtimelinking" = yes; then
12348           # Warning - without using the other runtime loading flags (-brtl),
12349           # -berok will link without error, but may produce a broken library.
12350           allow_undefined_flag_CXX='-berok'
12351           # Determine the default libpath from the value encoded in an empty
12352           # executable.
12353           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h.  */
12355
12356 int
12357 main ()
12358 {
12359
12360   ;
12361   return 0;
12362 }
12363 _ACEOF
12364 if ac_fn_cxx_try_link "$LINENO"; then :
12365
12366 lt_aix_libpath_sed='
12367     /Import File Strings/,/^$/ {
12368         /^0/ {
12369             s/^0  *\(.*\)$/\1/
12370             p
12371         }
12372     }'
12373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12374 # Check for a 64-bit object if we didn't find anything.
12375 if test -z "$aix_libpath"; then
12376   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12377 fi
12378 fi
12379 rm -f core conftest.err conftest.$ac_objext \
12380     conftest$ac_exeext conftest.$ac_ext
12381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12382
12383           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12384
12385           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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12386         else
12387           if test "$host_cpu" = ia64; then
12388             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12389             allow_undefined_flag_CXX="-z nodefs"
12390             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"
12391           else
12392             # Determine the default libpath from the value encoded in an
12393             # empty executable.
12394             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h.  */
12396
12397 int
12398 main ()
12399 {
12400
12401   ;
12402   return 0;
12403 }
12404 _ACEOF
12405 if ac_fn_cxx_try_link "$LINENO"; then :
12406
12407 lt_aix_libpath_sed='
12408     /Import File Strings/,/^$/ {
12409         /^0/ {
12410             s/^0  *\(.*\)$/\1/
12411             p
12412         }
12413     }'
12414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12415 # Check for a 64-bit object if we didn't find anything.
12416 if test -z "$aix_libpath"; then
12417   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12418 fi
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext \
12421     conftest$ac_exeext conftest.$ac_ext
12422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12423
12424             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12425             # Warning - without using the other run time loading flags,
12426             # -berok will link without error, but may produce a broken library.
12427             no_undefined_flag_CXX=' ${wl}-bernotok'
12428             allow_undefined_flag_CXX=' ${wl}-berok'
12429             if test "$with_gnu_ld" = yes; then
12430               # We only use this code for GNU lds that support --whole-archive.
12431               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12432             else
12433               # Exported symbols can be pulled into shared objects from archives
12434               whole_archive_flag_spec_CXX='$convenience'
12435             fi
12436             archive_cmds_need_lc_CXX=yes
12437             # This is similar to how AIX traditionally builds its shared
12438             # libraries.
12439             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'
12440           fi
12441         fi
12442         ;;
12443
12444       beos*)
12445         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12446           allow_undefined_flag_CXX=unsupported
12447           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12448           # support --undefined.  This deserves some investigation.  FIXME
12449           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12450         else
12451           ld_shlibs_CXX=no
12452         fi
12453         ;;
12454
12455       chorus*)
12456         case $cc_basename in
12457           *)
12458           # FIXME: insert proper C++ library support
12459           ld_shlibs_CXX=no
12460           ;;
12461         esac
12462         ;;
12463
12464       cygwin* | mingw* | pw32* | cegcc*)
12465         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12466         # as there is no search path for DLLs.
12467         hardcode_libdir_flag_spec_CXX='-L$libdir'
12468         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12469         allow_undefined_flag_CXX=unsupported
12470         always_export_symbols_CXX=no
12471         enable_shared_with_static_runtimes_CXX=yes
12472
12473         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12474           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'
12475           # If the export-symbols file already is a .def file (1st line
12476           # is EXPORTS), use it as is; otherwise, prepend...
12477           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12478             cp $export_symbols $output_objdir/$soname.def;
12479           else
12480             echo EXPORTS > $output_objdir/$soname.def;
12481             cat $export_symbols >> $output_objdir/$soname.def;
12482           fi~
12483           $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'
12484         else
12485           ld_shlibs_CXX=no
12486         fi
12487         ;;
12488       darwin* | rhapsody*)
12489
12490
12491   archive_cmds_need_lc_CXX=no
12492   hardcode_direct_CXX=no
12493   hardcode_automatic_CXX=yes
12494   hardcode_shlibpath_var_CXX=unsupported
12495   if test "$lt_cv_ld_force_load" = "yes"; then
12496     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12497   else
12498     whole_archive_flag_spec_CXX=''
12499   fi
12500   link_all_deplibs_CXX=yes
12501   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12502   case $cc_basename in
12503      ifort*) _lt_dar_can_shared=yes ;;
12504      *) _lt_dar_can_shared=$GCC ;;
12505   esac
12506   if test "$_lt_dar_can_shared" = "yes"; then
12507     output_verbose_link_cmd=func_echo_all
12508     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}"
12509     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12510     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}"
12511     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}"
12512        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12513       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}"
12514       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}"
12515     fi
12516
12517   else
12518   ld_shlibs_CXX=no
12519   fi
12520
12521         ;;
12522
12523       dgux*)
12524         case $cc_basename in
12525           ec++*)
12526             # FIXME: insert proper C++ library support
12527             ld_shlibs_CXX=no
12528             ;;
12529           ghcx*)
12530             # Green Hills C++ Compiler
12531             # FIXME: insert proper C++ library support
12532             ld_shlibs_CXX=no
12533             ;;
12534           *)
12535             # FIXME: insert proper C++ library support
12536             ld_shlibs_CXX=no
12537             ;;
12538         esac
12539         ;;
12540
12541       freebsd[12]*)
12542         # C++ shared libraries reported to be fairly broken before
12543         # switch to ELF
12544         ld_shlibs_CXX=no
12545         ;;
12546
12547       freebsd-elf*)
12548         archive_cmds_need_lc_CXX=no
12549         ;;
12550
12551       freebsd* | dragonfly*)
12552         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12553         # conventions
12554         ld_shlibs_CXX=yes
12555         ;;
12556
12557       gnu*)
12558         ;;
12559
12560       haiku*)
12561         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12562         link_all_deplibs_CXX=yes
12563         ;;
12564
12565       hpux9*)
12566         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12567         hardcode_libdir_separator_CXX=:
12568         export_dynamic_flag_spec_CXX='${wl}-E'
12569         hardcode_direct_CXX=yes
12570         hardcode_minus_L_CXX=yes # Not in the search PATH,
12571                                              # but as the default
12572                                              # location of the library.
12573
12574         case $cc_basename in
12575           CC*)
12576             # FIXME: insert proper C++ library support
12577             ld_shlibs_CXX=no
12578             ;;
12579           aCC*)
12580             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'
12581             # Commands to make compiler produce verbose output that lists
12582             # what "hidden" libraries, object files and flags are used when
12583             # linking a shared library.
12584             #
12585             # There doesn't appear to be a way to prevent this compiler from
12586             # explicitly linking system object files so we need to strip them
12587             # from the output so that they don't get included in the library
12588             # dependencies.
12589             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; func_echo_all "$list"'
12590             ;;
12591           *)
12592             if test "$GXX" = yes; then
12593               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'
12594             else
12595               # FIXME: insert proper C++ library support
12596               ld_shlibs_CXX=no
12597             fi
12598             ;;
12599         esac
12600         ;;
12601
12602       hpux10*|hpux11*)
12603         if test $with_gnu_ld = no; then
12604           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12605           hardcode_libdir_separator_CXX=:
12606
12607           case $host_cpu in
12608             hppa*64*|ia64*)
12609               ;;
12610             *)
12611               export_dynamic_flag_spec_CXX='${wl}-E'
12612               ;;
12613           esac
12614         fi
12615         case $host_cpu in
12616           hppa*64*|ia64*)
12617             hardcode_direct_CXX=no
12618             hardcode_shlibpath_var_CXX=no
12619             ;;
12620           *)
12621             hardcode_direct_CXX=yes
12622             hardcode_direct_absolute_CXX=yes
12623             hardcode_minus_L_CXX=yes # Not in the search PATH,
12624                                                  # but as the default
12625                                                  # location of the library.
12626             ;;
12627         esac
12628
12629         case $cc_basename in
12630           CC*)
12631             # FIXME: insert proper C++ library support
12632             ld_shlibs_CXX=no
12633             ;;
12634           aCC*)
12635             case $host_cpu in
12636               hppa*64*)
12637                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12638                 ;;
12639               ia64*)
12640                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12641                 ;;
12642               *)
12643                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12644                 ;;
12645             esac
12646             # Commands to make compiler produce verbose output that lists
12647             # what "hidden" libraries, object files and flags are used when
12648             # linking a shared library.
12649             #
12650             # There doesn't appear to be a way to prevent this compiler from
12651             # explicitly linking system object files so we need to strip them
12652             # from the output so that they don't get included in the library
12653             # dependencies.
12654             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; func_echo_all "$list"'
12655             ;;
12656           *)
12657             if test "$GXX" = yes; then
12658               if test $with_gnu_ld = no; then
12659                 case $host_cpu in
12660                   hppa*64*)
12661                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12662                     ;;
12663                   ia64*)
12664                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12665                     ;;
12666                   *)
12667                     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'
12668                     ;;
12669                 esac
12670               fi
12671             else
12672               # FIXME: insert proper C++ library support
12673               ld_shlibs_CXX=no
12674             fi
12675             ;;
12676         esac
12677         ;;
12678
12679       interix[3-9]*)
12680         hardcode_direct_CXX=no
12681         hardcode_shlibpath_var_CXX=no
12682         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12683         export_dynamic_flag_spec_CXX='${wl}-E'
12684         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12685         # Instead, shared libraries are loaded at an image base (0x10000000 by
12686         # default) and relocated if they conflict, which is a slow very memory
12687         # consuming and fragmenting process.  To avoid this, we pick a random,
12688         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12689         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12690         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'
12691         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'
12692         ;;
12693       irix5* | irix6*)
12694         case $cc_basename in
12695           CC*)
12696             # SGI C++
12697             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12698
12699             # Archives containing C++ object files must be created using
12700             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12701             # necessary to make sure instantiated templates are included
12702             # in the archive.
12703             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12704             ;;
12705           *)
12706             if test "$GXX" = yes; then
12707               if test "$with_gnu_ld" = no; then
12708                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12709               else
12710                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12711               fi
12712             fi
12713             link_all_deplibs_CXX=yes
12714             ;;
12715         esac
12716         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12717         hardcode_libdir_separator_CXX=:
12718         inherit_rpath_CXX=yes
12719         ;;
12720
12721       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12722         case $cc_basename in
12723           KCC*)
12724             # Kuck and Associates, Inc. (KAI) C++ Compiler
12725
12726             # KCC will only create a shared library if the output file
12727             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12728             # to its proper name (with version) after linking.
12729             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'
12730             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'
12731             # Commands to make compiler produce verbose output that lists
12732             # what "hidden" libraries, object files and flags are used when
12733             # linking a shared library.
12734             #
12735             # There doesn't appear to be a way to prevent this compiler from
12736             # explicitly linking system object files so we need to strip them
12737             # from the output so that they don't get included in the library
12738             # dependencies.
12739             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; func_echo_all "$list"'
12740
12741             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12742             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12743
12744             # Archives containing C++ object files must be created using
12745             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12746             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12747             ;;
12748           icpc* | ecpc* )
12749             # Intel C++
12750             with_gnu_ld=yes
12751             # version 8.0 and above of icpc choke on multiply defined symbols
12752             # if we add $predep_objects and $postdep_objects, however 7.1 and
12753             # earlier do not add the objects themselves.
12754             case `$CC -V 2>&1` in
12755               *"Version 7."*)
12756                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12757                 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'
12758                 ;;
12759               *)  # Version 8.0 or newer
12760                 tmp_idyn=
12761                 case $host_cpu in
12762                   ia64*) tmp_idyn=' -i_dynamic';;
12763                 esac
12764                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12765                 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'
12766                 ;;
12767             esac
12768             archive_cmds_need_lc_CXX=no
12769             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12770             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12771             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12772             ;;
12773           pgCC* | pgcpp*)
12774             # Portland Group C++ compiler
12775             case `$CC -V` in
12776             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12777               prelink_cmds_CXX='tpldir=Template.dir~
12778                 rm -rf $tpldir~
12779                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12780                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12781               old_archive_cmds_CXX='tpldir=Template.dir~
12782                 rm -rf $tpldir~
12783                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12784                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12785                 $RANLIB $oldlib'
12786               archive_cmds_CXX='tpldir=Template.dir~
12787                 rm -rf $tpldir~
12788                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12789                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12790               archive_expsym_cmds_CXX='tpldir=Template.dir~
12791                 rm -rf $tpldir~
12792                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12793                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12794               ;;
12795             *) # Version 6 and above use weak symbols
12796               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12797               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'
12798               ;;
12799             esac
12800
12801             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12802             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12803             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12804             ;;
12805           cxx*)
12806             # Compaq C++
12807             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808             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'
12809
12810             runpath_var=LD_RUN_PATH
12811             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12812             hardcode_libdir_separator_CXX=:
12813
12814             # Commands to make compiler produce verbose output that lists
12815             # what "hidden" libraries, object files and flags are used when
12816             # linking a shared library.
12817             #
12818             # There doesn't appear to be a way to prevent this compiler from
12819             # explicitly linking system object files so we need to strip them
12820             # from the output so that they don't get included in the library
12821             # dependencies.
12822             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12823             ;;
12824           xl* | mpixl* | bgxl*)
12825             # IBM XL 8.0 on PPC, with GNU ld
12826             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12827             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12828             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12829             if test "x$supports_anon_versioning" = xyes; then
12830               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12831                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12832                 echo "local: *; };" >> $output_objdir/$libname.ver~
12833                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12834             fi
12835             ;;
12836           *)
12837             case `$CC -V 2>&1 | sed 5q` in
12838             *Sun\ C*)
12839               # Sun C++ 5.9
12840               no_undefined_flag_CXX=' -zdefs'
12841               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12842               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'
12843               hardcode_libdir_flag_spec_CXX='-R$libdir'
12844               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12845               compiler_needs_object_CXX=yes
12846
12847               # Not sure whether something based on
12848               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12849               # would be better.
12850               output_verbose_link_cmd='func_echo_all'
12851
12852               # Archives containing C++ object files must be created using
12853               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12854               # necessary to make sure instantiated templates are included
12855               # in the archive.
12856               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12857               ;;
12858             esac
12859             ;;
12860         esac
12861         ;;
12862
12863       lynxos*)
12864         # FIXME: insert proper C++ library support
12865         ld_shlibs_CXX=no
12866         ;;
12867
12868       m88k*)
12869         # FIXME: insert proper C++ library support
12870         ld_shlibs_CXX=no
12871         ;;
12872
12873       mvs*)
12874         case $cc_basename in
12875           cxx*)
12876             # FIXME: insert proper C++ library support
12877             ld_shlibs_CXX=no
12878             ;;
12879           *)
12880             # FIXME: insert proper C++ library support
12881             ld_shlibs_CXX=no
12882             ;;
12883         esac
12884         ;;
12885
12886       netbsd*)
12887         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12888           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12889           wlarc=
12890           hardcode_libdir_flag_spec_CXX='-R$libdir'
12891           hardcode_direct_CXX=yes
12892           hardcode_shlibpath_var_CXX=no
12893         fi
12894         # Workaround some broken pre-1.5 toolchains
12895         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12896         ;;
12897
12898       *nto* | *qnx*)
12899         ld_shlibs_CXX=yes
12900         ;;
12901
12902       openbsd2*)
12903         # C++ shared libraries are fairly broken
12904         ld_shlibs_CXX=no
12905         ;;
12906
12907       openbsd*)
12908         if test -f /usr/libexec/ld.so; then
12909           hardcode_direct_CXX=yes
12910           hardcode_shlibpath_var_CXX=no
12911           hardcode_direct_absolute_CXX=yes
12912           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12913           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12914           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12915             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12916             export_dynamic_flag_spec_CXX='${wl}-E'
12917             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12918           fi
12919           output_verbose_link_cmd=func_echo_all
12920         else
12921           ld_shlibs_CXX=no
12922         fi
12923         ;;
12924
12925       osf3* | osf4* | osf5*)
12926         case $cc_basename in
12927           KCC*)
12928             # Kuck and Associates, Inc. (KAI) C++ Compiler
12929
12930             # KCC will only create a shared library if the output file
12931             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12932             # to its proper name (with version) after linking.
12933             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'
12934
12935             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12936             hardcode_libdir_separator_CXX=:
12937
12938             # Archives containing C++ object files must be created using
12939             # the KAI C++ compiler.
12940             case $host in
12941               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12942               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12943             esac
12944             ;;
12945           RCC*)
12946             # Rational C++ 2.4.1
12947             # FIXME: insert proper C++ library support
12948             ld_shlibs_CXX=no
12949             ;;
12950           cxx*)
12951             case $host in
12952               osf3*)
12953                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12954                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12955                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12956                 ;;
12957               *)
12958                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12959                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12960                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12961                   echo "-hidden">> $lib.exp~
12962                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12963                   $RM $lib.exp'
12964                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12965                 ;;
12966             esac
12967
12968             hardcode_libdir_separator_CXX=:
12969
12970             # Commands to make compiler produce verbose output that lists
12971             # what "hidden" libraries, object files and flags are used when
12972             # linking a shared library.
12973             #
12974             # There doesn't appear to be a way to prevent this compiler from
12975             # explicitly linking system object files so we need to strip them
12976             # from the output so that they don't get included in the library
12977             # dependencies.
12978             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12979             ;;
12980           *)
12981             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12982               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12983               case $host in
12984                 osf3*)
12985                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12986                   ;;
12987                 *)
12988                   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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12989                   ;;
12990               esac
12991
12992               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12993               hardcode_libdir_separator_CXX=:
12994
12995               # Commands to make compiler produce verbose output that lists
12996               # what "hidden" libraries, object files and flags are used when
12997               # linking a shared library.
12998               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12999
13000             else
13001               # FIXME: insert proper C++ library support
13002               ld_shlibs_CXX=no
13003             fi
13004             ;;
13005         esac
13006         ;;
13007
13008       psos*)
13009         # FIXME: insert proper C++ library support
13010         ld_shlibs_CXX=no
13011         ;;
13012
13013       sunos4*)
13014         case $cc_basename in
13015           CC*)
13016             # Sun C++ 4.x
13017             # FIXME: insert proper C++ library support
13018             ld_shlibs_CXX=no
13019             ;;
13020           lcc*)
13021             # Lucid
13022             # FIXME: insert proper C++ library support
13023             ld_shlibs_CXX=no
13024             ;;
13025           *)
13026             # FIXME: insert proper C++ library support
13027             ld_shlibs_CXX=no
13028             ;;
13029         esac
13030         ;;
13031
13032       solaris*)
13033         case $cc_basename in
13034           CC* | sunCC*)
13035             # Sun C++ 4.2, 5.x and Centerline C++
13036             archive_cmds_need_lc_CXX=yes
13037             no_undefined_flag_CXX=' -zdefs'
13038             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13039             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13040               $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'
13041
13042             hardcode_libdir_flag_spec_CXX='-R$libdir'
13043             hardcode_shlibpath_var_CXX=no
13044             case $host_os in
13045               solaris2.[0-5] | solaris2.[0-5].*) ;;
13046               *)
13047                 # The compiler driver will combine and reorder linker options,
13048                 # but understands `-z linker_flag'.
13049                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13050                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13051                 ;;
13052             esac
13053             link_all_deplibs_CXX=yes
13054
13055             output_verbose_link_cmd='func_echo_all'
13056
13057             # Archives containing C++ object files must be created using
13058             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13059             # necessary to make sure instantiated templates are included
13060             # in the archive.
13061             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13062             ;;
13063           gcx*)
13064             # Green Hills C++ Compiler
13065             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13066
13067             # The C++ compiler must be used to create the archive.
13068             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13069             ;;
13070           *)
13071             # GNU C++ compiler with Solaris linker
13072             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13073               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13074               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13075                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13076                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13077                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13078
13079                 # Commands to make compiler produce verbose output that lists
13080                 # what "hidden" libraries, object files and flags are used when
13081                 # linking a shared library.
13082                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13083               else
13084                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13085                 # platform.
13086                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13087                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13088                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13089
13090                 # Commands to make compiler produce verbose output that lists
13091                 # what "hidden" libraries, object files and flags are used when
13092                 # linking a shared library.
13093                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13094               fi
13095
13096               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13097               case $host_os in
13098                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13099                 *)
13100                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13101                   ;;
13102               esac
13103             fi
13104             ;;
13105         esac
13106         ;;
13107
13108     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13109       no_undefined_flag_CXX='${wl}-z,text'
13110       archive_cmds_need_lc_CXX=no
13111       hardcode_shlibpath_var_CXX=no
13112       runpath_var='LD_RUN_PATH'
13113
13114       case $cc_basename in
13115         CC*)
13116           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13117           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13118           ;;
13119         *)
13120           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13121           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13122           ;;
13123       esac
13124       ;;
13125
13126       sysv5* | sco3.2v5* | sco5v6*)
13127         # Note: We can NOT use -z defs as we might desire, because we do not
13128         # link with -lc, and that would cause any symbols used from libc to
13129         # always be unresolved, which means just about no library would
13130         # ever link correctly.  If we're not using GNU ld we use -z text
13131         # though, which does catch some bad symbols but isn't as heavy-handed
13132         # as -z defs.
13133         no_undefined_flag_CXX='${wl}-z,text'
13134         allow_undefined_flag_CXX='${wl}-z,nodefs'
13135         archive_cmds_need_lc_CXX=no
13136         hardcode_shlibpath_var_CXX=no
13137         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13138         hardcode_libdir_separator_CXX=':'
13139         link_all_deplibs_CXX=yes
13140         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13141         runpath_var='LD_RUN_PATH'
13142
13143         case $cc_basename in
13144           CC*)
13145             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13146             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13147             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13148               '"$old_archive_cmds_CXX"
13149             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13150               '"$reload_cmds_CXX"
13151             ;;
13152           *)
13153             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13154             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13155             ;;
13156         esac
13157       ;;
13158
13159       tandem*)
13160         case $cc_basename in
13161           NCC*)
13162             # NonStop-UX NCC 3.20
13163             # FIXME: insert proper C++ library support
13164             ld_shlibs_CXX=no
13165             ;;
13166           *)
13167             # FIXME: insert proper C++ library support
13168             ld_shlibs_CXX=no
13169             ;;
13170         esac
13171         ;;
13172
13173       vxworks*)
13174         # FIXME: insert proper C++ library support
13175         ld_shlibs_CXX=no
13176         ;;
13177
13178       *)
13179         # FIXME: insert proper C++ library support
13180         ld_shlibs_CXX=no
13181         ;;
13182     esac
13183
13184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13185 $as_echo "$ld_shlibs_CXX" >&6; }
13186     test "$ld_shlibs_CXX" = no && can_build_shared=no
13187
13188     GCC_CXX="$GXX"
13189     LD_CXX="$LD"
13190
13191     ## CAVEAT EMPTOR:
13192     ## There is no encapsulation within the following macros, do not change
13193     ## the running order or otherwise move them around unless you know exactly
13194     ## what you are doing...
13195     # Dependencies to place before and after the object being linked:
13196 predep_objects_CXX=
13197 postdep_objects_CXX=
13198 predeps_CXX=
13199 postdeps_CXX=
13200 compiler_lib_search_path_CXX=
13201
13202 cat > conftest.$ac_ext <<_LT_EOF
13203 class Foo
13204 {
13205 public:
13206   Foo (void) { a = 0; }
13207 private:
13208   int a;
13209 };
13210 _LT_EOF
13211
13212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13213   (eval $ac_compile) 2>&5
13214   ac_status=$?
13215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13216   test $ac_status = 0; }; then
13217   # Parse the compiler output and extract the necessary
13218   # objects, libraries and library flags.
13219
13220   # Sentinel used to keep track of whether or not we are before
13221   # the conftest object file.
13222   pre_test_object_deps_done=no
13223
13224   for p in `eval "$output_verbose_link_cmd"`; do
13225     case $p in
13226
13227     -L* | -R* | -l*)
13228        # Some compilers place space between "-{L,R}" and the path.
13229        # Remove the space.
13230        if test $p = "-L" ||
13231           test $p = "-R"; then
13232          prev=$p
13233          continue
13234        else
13235          prev=
13236        fi
13237
13238        if test "$pre_test_object_deps_done" = no; then
13239          case $p in
13240          -L* | -R*)
13241            # Internal compiler library paths should come after those
13242            # provided the user.  The postdeps already come after the
13243            # user supplied libs so there is no need to process them.
13244            if test -z "$compiler_lib_search_path_CXX"; then
13245              compiler_lib_search_path_CXX="${prev}${p}"
13246            else
13247              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13248            fi
13249            ;;
13250          # The "-l" case would never come before the object being
13251          # linked, so don't bother handling this case.
13252          esac
13253        else
13254          if test -z "$postdeps_CXX"; then
13255            postdeps_CXX="${prev}${p}"
13256          else
13257            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13258          fi
13259        fi
13260        ;;
13261
13262     *.$objext)
13263        # This assumes that the test object file only shows up
13264        # once in the compiler output.
13265        if test "$p" = "conftest.$objext"; then
13266          pre_test_object_deps_done=yes
13267          continue
13268        fi
13269
13270        if test "$pre_test_object_deps_done" = no; then
13271          if test -z "$predep_objects_CXX"; then
13272            predep_objects_CXX="$p"
13273          else
13274            predep_objects_CXX="$predep_objects_CXX $p"
13275          fi
13276        else
13277          if test -z "$postdep_objects_CXX"; then
13278            postdep_objects_CXX="$p"
13279          else
13280            postdep_objects_CXX="$postdep_objects_CXX $p"
13281          fi
13282        fi
13283        ;;
13284
13285     *) ;; # Ignore the rest.
13286
13287     esac
13288   done
13289
13290   # Clean up.
13291   rm -f a.out a.exe
13292 else
13293   echo "libtool.m4: error: problem compiling CXX test program"
13294 fi
13295
13296 $RM -f confest.$objext
13297
13298 # PORTME: override above test on systems where it is broken
13299 case $host_os in
13300 interix[3-9]*)
13301   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13302   # hack all around it, let's just trust "g++" to DTRT.
13303   predep_objects_CXX=
13304   postdep_objects_CXX=
13305   postdeps_CXX=
13306   ;;
13307
13308 linux*)
13309   case `$CC -V 2>&1 | sed 5q` in
13310   *Sun\ C*)
13311     # Sun C++ 5.9
13312
13313     # The more standards-conforming stlport4 library is
13314     # incompatible with the Cstd library. Avoid specifying
13315     # it if it's in CXXFLAGS. Ignore libCrun as
13316     # -library=stlport4 depends on it.
13317     case " $CXX $CXXFLAGS " in
13318     *" -library=stlport4 "*)
13319       solaris_use_stlport4=yes
13320       ;;
13321     esac
13322
13323     if test "$solaris_use_stlport4" != yes; then
13324       postdeps_CXX='-library=Cstd -library=Crun'
13325     fi
13326     ;;
13327   esac
13328   ;;
13329
13330 solaris*)
13331   case $cc_basename in
13332   CC* | sunCC*)
13333     # The more standards-conforming stlport4 library is
13334     # incompatible with the Cstd library. Avoid specifying
13335     # it if it's in CXXFLAGS. Ignore libCrun as
13336     # -library=stlport4 depends on it.
13337     case " $CXX $CXXFLAGS " in
13338     *" -library=stlport4 "*)
13339       solaris_use_stlport4=yes
13340       ;;
13341     esac
13342
13343     # Adding this requires a known-good setup of shared libraries for
13344     # Sun compiler versions before 5.6, else PIC objects from an old
13345     # archive will be linked into the output, leading to subtle bugs.
13346     if test "$solaris_use_stlport4" != yes; then
13347       postdeps_CXX='-library=Cstd -library=Crun'
13348     fi
13349     ;;
13350   esac
13351   ;;
13352 esac
13353
13354
13355 case " $postdeps_CXX " in
13356 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13357 esac
13358  compiler_lib_search_dirs_CXX=
13359 if test -n "${compiler_lib_search_path_CXX}"; then
13360  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13361 fi
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393     lt_prog_compiler_wl_CXX=
13394 lt_prog_compiler_pic_CXX=
13395 lt_prog_compiler_static_CXX=
13396
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13398 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13399
13400   # C++ specific cases for pic, static, wl, etc.
13401   if test "$GXX" = yes; then
13402     lt_prog_compiler_wl_CXX='-Wl,'
13403     lt_prog_compiler_static_CXX='-static'
13404
13405     case $host_os in
13406     aix*)
13407       # All AIX code is PIC.
13408       if test "$host_cpu" = ia64; then
13409         # AIX 5 now supports IA64 processor
13410         lt_prog_compiler_static_CXX='-Bstatic'
13411       fi
13412       ;;
13413
13414     amigaos*)
13415       case $host_cpu in
13416       powerpc)
13417             # see comment about AmigaOS4 .so support
13418             lt_prog_compiler_pic_CXX='-fPIC'
13419         ;;
13420       m68k)
13421             # FIXME: we need at least 68020 code to build shared libraries, but
13422             # adding the `-m68020' flag to GCC prevents building anything better,
13423             # like `-m68040'.
13424             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13425         ;;
13426       esac
13427       ;;
13428
13429     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13430       # PIC is the default for these OSes.
13431       ;;
13432     mingw* | cygwin* | os2* | pw32* | cegcc*)
13433       # This hack is so that the source file can tell whether it is being
13434       # built for inclusion in a dll (and should export symbols for example).
13435       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13436       # (--disable-auto-import) libraries
13437       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13438       ;;
13439     darwin* | rhapsody*)
13440       # PIC is the default on this platform
13441       # Common symbols not allowed in MH_DYLIB files
13442       lt_prog_compiler_pic_CXX='-fno-common'
13443       ;;
13444     *djgpp*)
13445       # DJGPP does not support shared libraries at all
13446       lt_prog_compiler_pic_CXX=
13447       ;;
13448     haiku*)
13449       # PIC is the default for Haiku.
13450       # The "-static" flag exists, but is broken.
13451       lt_prog_compiler_static_CXX=
13452       ;;
13453     interix[3-9]*)
13454       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13455       # Instead, we relocate shared libraries at runtime.
13456       ;;
13457     sysv4*MP*)
13458       if test -d /usr/nec; then
13459         lt_prog_compiler_pic_CXX=-Kconform_pic
13460       fi
13461       ;;
13462     hpux*)
13463       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13464       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13465       # sets the default TLS model and affects inlining.
13466       case $host_cpu in
13467       hppa*64*)
13468         ;;
13469       *)
13470         lt_prog_compiler_pic_CXX='-fPIC'
13471         ;;
13472       esac
13473       ;;
13474     *qnx* | *nto*)
13475       # QNX uses GNU C++, but need to define -shared option too, otherwise
13476       # it will coredump.
13477       lt_prog_compiler_pic_CXX='-fPIC -shared'
13478       ;;
13479     *)
13480       lt_prog_compiler_pic_CXX='-fPIC'
13481       ;;
13482     esac
13483   else
13484     case $host_os in
13485       aix[4-9]*)
13486         # All AIX code is PIC.
13487         if test "$host_cpu" = ia64; then
13488           # AIX 5 now supports IA64 processor
13489           lt_prog_compiler_static_CXX='-Bstatic'
13490         else
13491           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13492         fi
13493         ;;
13494       chorus*)
13495         case $cc_basename in
13496         cxch68*)
13497           # Green Hills C++ Compiler
13498           # _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"
13499           ;;
13500         esac
13501         ;;
13502       dgux*)
13503         case $cc_basename in
13504           ec++*)
13505             lt_prog_compiler_pic_CXX='-KPIC'
13506             ;;
13507           ghcx*)
13508             # Green Hills C++ Compiler
13509             lt_prog_compiler_pic_CXX='-pic'
13510             ;;
13511           *)
13512             ;;
13513         esac
13514         ;;
13515       freebsd* | dragonfly*)
13516         # FreeBSD uses GNU C++
13517         ;;
13518       hpux9* | hpux10* | hpux11*)
13519         case $cc_basename in
13520           CC*)
13521             lt_prog_compiler_wl_CXX='-Wl,'
13522             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13523             if test "$host_cpu" != ia64; then
13524               lt_prog_compiler_pic_CXX='+Z'
13525             fi
13526             ;;
13527           aCC*)
13528             lt_prog_compiler_wl_CXX='-Wl,'
13529             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13530             case $host_cpu in
13531             hppa*64*|ia64*)
13532               # +Z the default
13533               ;;
13534             *)
13535               lt_prog_compiler_pic_CXX='+Z'
13536               ;;
13537             esac
13538             ;;
13539           *)
13540             ;;
13541         esac
13542         ;;
13543       interix*)
13544         # This is c89, which is MS Visual C++ (no shared libs)
13545         # Anyone wants to do a port?
13546         ;;
13547       irix5* | irix6* | nonstopux*)
13548         case $cc_basename in
13549           CC*)
13550             lt_prog_compiler_wl_CXX='-Wl,'
13551             lt_prog_compiler_static_CXX='-non_shared'
13552             # CC pic flag -KPIC is the default.
13553             ;;
13554           *)
13555             ;;
13556         esac
13557         ;;
13558       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13559         case $cc_basename in
13560           KCC*)
13561             # KAI C++ Compiler
13562             lt_prog_compiler_wl_CXX='--backend -Wl,'
13563             lt_prog_compiler_pic_CXX='-fPIC'
13564             ;;
13565           ecpc* )
13566             # old Intel C++ for x86_64 which still supported -KPIC.
13567             lt_prog_compiler_wl_CXX='-Wl,'
13568             lt_prog_compiler_pic_CXX='-KPIC'
13569             lt_prog_compiler_static_CXX='-static'
13570             ;;
13571           icpc* )
13572             # Intel C++, used to be incompatible with GCC.
13573             # ICC 10 doesn't accept -KPIC any more.
13574             lt_prog_compiler_wl_CXX='-Wl,'
13575             lt_prog_compiler_pic_CXX='-fPIC'
13576             lt_prog_compiler_static_CXX='-static'
13577             ;;
13578           pgCC* | pgcpp*)
13579             # Portland Group C++ compiler
13580             lt_prog_compiler_wl_CXX='-Wl,'
13581             lt_prog_compiler_pic_CXX='-fpic'
13582             lt_prog_compiler_static_CXX='-Bstatic'
13583             ;;
13584           cxx*)
13585             # Compaq C++
13586             # Make sure the PIC flag is empty.  It appears that all Alpha
13587             # Linux and Compaq Tru64 Unix objects are PIC.
13588             lt_prog_compiler_pic_CXX=
13589             lt_prog_compiler_static_CXX='-non_shared'
13590             ;;
13591           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13592             # IBM XL 8.0, 9.0 on PPC and BlueGene
13593             lt_prog_compiler_wl_CXX='-Wl,'
13594             lt_prog_compiler_pic_CXX='-qpic'
13595             lt_prog_compiler_static_CXX='-qstaticlink'
13596             ;;
13597           *)
13598             case `$CC -V 2>&1 | sed 5q` in
13599             *Sun\ C*)
13600               # Sun C++ 5.9
13601               lt_prog_compiler_pic_CXX='-KPIC'
13602               lt_prog_compiler_static_CXX='-Bstatic'
13603               lt_prog_compiler_wl_CXX='-Qoption ld '
13604               ;;
13605             esac
13606             ;;
13607         esac
13608         ;;
13609       lynxos*)
13610         ;;
13611       m88k*)
13612         ;;
13613       mvs*)
13614         case $cc_basename in
13615           cxx*)
13616             lt_prog_compiler_pic_CXX='-W c,exportall'
13617             ;;
13618           *)
13619             ;;
13620         esac
13621         ;;
13622       netbsd*)
13623         ;;
13624       *qnx* | *nto*)
13625         # QNX uses GNU C++, but need to define -shared option too, otherwise
13626         # it will coredump.
13627         lt_prog_compiler_pic_CXX='-fPIC -shared'
13628         ;;
13629       osf3* | osf4* | osf5*)
13630         case $cc_basename in
13631           KCC*)
13632             lt_prog_compiler_wl_CXX='--backend -Wl,'
13633             ;;
13634           RCC*)
13635             # Rational C++ 2.4.1
13636             lt_prog_compiler_pic_CXX='-pic'
13637             ;;
13638           cxx*)
13639             # Digital/Compaq C++
13640             lt_prog_compiler_wl_CXX='-Wl,'
13641             # Make sure the PIC flag is empty.  It appears that all Alpha
13642             # Linux and Compaq Tru64 Unix objects are PIC.
13643             lt_prog_compiler_pic_CXX=
13644             lt_prog_compiler_static_CXX='-non_shared'
13645             ;;
13646           *)
13647             ;;
13648         esac
13649         ;;
13650       psos*)
13651         ;;
13652       solaris*)
13653         case $cc_basename in
13654           CC* | sunCC*)
13655             # Sun C++ 4.2, 5.x and Centerline C++
13656             lt_prog_compiler_pic_CXX='-KPIC'
13657             lt_prog_compiler_static_CXX='-Bstatic'
13658             lt_prog_compiler_wl_CXX='-Qoption ld '
13659             ;;
13660           gcx*)
13661             # Green Hills C++ Compiler
13662             lt_prog_compiler_pic_CXX='-PIC'
13663             ;;
13664           *)
13665             ;;
13666         esac
13667         ;;
13668       sunos4*)
13669         case $cc_basename in
13670           CC*)
13671             # Sun C++ 4.x
13672             lt_prog_compiler_pic_CXX='-pic'
13673             lt_prog_compiler_static_CXX='-Bstatic'
13674             ;;
13675           lcc*)
13676             # Lucid
13677             lt_prog_compiler_pic_CXX='-pic'
13678             ;;
13679           *)
13680             ;;
13681         esac
13682         ;;
13683       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13684         case $cc_basename in
13685           CC*)
13686             lt_prog_compiler_wl_CXX='-Wl,'
13687             lt_prog_compiler_pic_CXX='-KPIC'
13688             lt_prog_compiler_static_CXX='-Bstatic'
13689             ;;
13690         esac
13691         ;;
13692       tandem*)
13693         case $cc_basename in
13694           NCC*)
13695             # NonStop-UX NCC 3.20
13696             lt_prog_compiler_pic_CXX='-KPIC'
13697             ;;
13698           *)
13699             ;;
13700         esac
13701         ;;
13702       vxworks*)
13703         ;;
13704       *)
13705         lt_prog_compiler_can_build_shared_CXX=no
13706         ;;
13707     esac
13708   fi
13709
13710 case $host_os in
13711   # For platforms which do not support PIC, -DPIC is meaningless:
13712   *djgpp*)
13713     lt_prog_compiler_pic_CXX=
13714     ;;
13715   *)
13716     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13717     ;;
13718 esac
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13720 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13721
13722
13723
13724 #
13725 # Check to make sure the PIC flag actually works.
13726 #
13727 if test -n "$lt_prog_compiler_pic_CXX"; then
13728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13729 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13730 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13731   $as_echo_n "(cached) " >&6
13732 else
13733   lt_cv_prog_compiler_pic_works_CXX=no
13734    ac_outfile=conftest.$ac_objext
13735    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13736    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13737    # Insert the option either (1) after the last *FLAGS variable, or
13738    # (2) before a word containing "conftest.", or (3) at the end.
13739    # Note that $ac_compile itself does not contain backslashes and begins
13740    # with a dollar sign (not a hyphen), so the echo should work correctly.
13741    # The option is referenced via a variable to avoid confusing sed.
13742    lt_compile=`echo "$ac_compile" | $SED \
13743    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13744    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13745    -e 's:$: $lt_compiler_flag:'`
13746    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13747    (eval "$lt_compile" 2>conftest.err)
13748    ac_status=$?
13749    cat conftest.err >&5
13750    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751    if (exit $ac_status) && test -s "$ac_outfile"; then
13752      # The compiler can only warn and ignore the option if not recognized
13753      # So say no if there are warnings other than the usual output.
13754      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13755      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13756      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13757        lt_cv_prog_compiler_pic_works_CXX=yes
13758      fi
13759    fi
13760    $RM conftest*
13761
13762 fi
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13764 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13765
13766 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13767     case $lt_prog_compiler_pic_CXX in
13768      "" | " "*) ;;
13769      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13770      esac
13771 else
13772     lt_prog_compiler_pic_CXX=
13773      lt_prog_compiler_can_build_shared_CXX=no
13774 fi
13775
13776 fi
13777
13778
13779
13780 #
13781 # Check to make sure the static flag actually works.
13782 #
13783 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13785 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13786 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13787   $as_echo_n "(cached) " >&6
13788 else
13789   lt_cv_prog_compiler_static_works_CXX=no
13790    save_LDFLAGS="$LDFLAGS"
13791    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13792    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13793    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13794      # The linker can only warn and ignore the option if not recognized
13795      # So say no if there are warnings
13796      if test -s conftest.err; then
13797        # Append any errors to the config.log.
13798        cat conftest.err 1>&5
13799        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13800        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13801        if diff conftest.exp conftest.er2 >/dev/null; then
13802          lt_cv_prog_compiler_static_works_CXX=yes
13803        fi
13804      else
13805        lt_cv_prog_compiler_static_works_CXX=yes
13806      fi
13807    fi
13808    $RM -r conftest*
13809    LDFLAGS="$save_LDFLAGS"
13810
13811 fi
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13813 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13814
13815 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13816     :
13817 else
13818     lt_prog_compiler_static_CXX=
13819 fi
13820
13821
13822
13823
13824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13825 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13826 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13827   $as_echo_n "(cached) " >&6
13828 else
13829   lt_cv_prog_compiler_c_o_CXX=no
13830    $RM -r conftest 2>/dev/null
13831    mkdir conftest
13832    cd conftest
13833    mkdir out
13834    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13835
13836    lt_compiler_flag="-o out/conftest2.$ac_objext"
13837    # Insert the option either (1) after the last *FLAGS variable, or
13838    # (2) before a word containing "conftest.", or (3) at the end.
13839    # Note that $ac_compile itself does not contain backslashes and begins
13840    # with a dollar sign (not a hyphen), so the echo should work correctly.
13841    lt_compile=`echo "$ac_compile" | $SED \
13842    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13843    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13844    -e 's:$: $lt_compiler_flag:'`
13845    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13846    (eval "$lt_compile" 2>out/conftest.err)
13847    ac_status=$?
13848    cat out/conftest.err >&5
13849    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13851    then
13852      # The compiler can only warn and ignore the option if not recognized
13853      # So say no if there are warnings
13854      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13855      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13856      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13857        lt_cv_prog_compiler_c_o_CXX=yes
13858      fi
13859    fi
13860    chmod u+w . 2>&5
13861    $RM conftest*
13862    # SGI C++ compiler will create directory out/ii_files/ for
13863    # template instantiation
13864    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13865    $RM out/* && rmdir out
13866    cd ..
13867    $RM -r conftest
13868    $RM conftest*
13869
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13872 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13873
13874
13875
13876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13877 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13878 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13879   $as_echo_n "(cached) " >&6
13880 else
13881   lt_cv_prog_compiler_c_o_CXX=no
13882    $RM -r conftest 2>/dev/null
13883    mkdir conftest
13884    cd conftest
13885    mkdir out
13886    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13887
13888    lt_compiler_flag="-o out/conftest2.$ac_objext"
13889    # Insert the option either (1) after the last *FLAGS variable, or
13890    # (2) before a word containing "conftest.", or (3) at the end.
13891    # Note that $ac_compile itself does not contain backslashes and begins
13892    # with a dollar sign (not a hyphen), so the echo should work correctly.
13893    lt_compile=`echo "$ac_compile" | $SED \
13894    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13896    -e 's:$: $lt_compiler_flag:'`
13897    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13898    (eval "$lt_compile" 2>out/conftest.err)
13899    ac_status=$?
13900    cat out/conftest.err >&5
13901    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13903    then
13904      # The compiler can only warn and ignore the option if not recognized
13905      # So say no if there are warnings
13906      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13907      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13908      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13909        lt_cv_prog_compiler_c_o_CXX=yes
13910      fi
13911    fi
13912    chmod u+w . 2>&5
13913    $RM conftest*
13914    # SGI C++ compiler will create directory out/ii_files/ for
13915    # template instantiation
13916    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13917    $RM out/* && rmdir out
13918    cd ..
13919    $RM -r conftest
13920    $RM conftest*
13921
13922 fi
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13924 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13925
13926
13927
13928
13929 hard_links="nottested"
13930 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13931   # do not overwrite the value of need_locks provided by the user
13932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13933 $as_echo_n "checking if we can lock with hard links... " >&6; }
13934   hard_links=yes
13935   $RM conftest*
13936   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13937   touch conftest.a
13938   ln conftest.a conftest.b 2>&5 || hard_links=no
13939   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13941 $as_echo "$hard_links" >&6; }
13942   if test "$hard_links" = no; then
13943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13944 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13945     need_locks=warn
13946   fi
13947 else
13948   need_locks=no
13949 fi
13950
13951
13952
13953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13954 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13955
13956   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13957   case $host_os in
13958   aix[4-9]*)
13959     # If we're using GNU nm, then we don't want the "-C" option.
13960     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13961     # Also, AIX nm treats weak defined symbols like other global defined
13962     # symbols, whereas GNU nm marks them as "W".
13963     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13964       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13965     else
13966       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'
13967     fi
13968     ;;
13969   pw32*)
13970     export_symbols_cmds_CXX="$ltdll_cmds"
13971   ;;
13972   cygwin* | mingw* | cegcc*)
13973     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'
13974   ;;
13975   *)
13976     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13977   ;;
13978   esac
13979   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13982 $as_echo "$ld_shlibs_CXX" >&6; }
13983 test "$ld_shlibs_CXX" = no && can_build_shared=no
13984
13985 with_gnu_ld_CXX=$with_gnu_ld
13986
13987
13988
13989
13990
13991
13992 #
13993 # Do we need to explicitly link libc?
13994 #
13995 case "x$archive_cmds_need_lc_CXX" in
13996 x|xyes)
13997   # Assume -lc should be added
13998   archive_cmds_need_lc_CXX=yes
13999
14000   if test "$enable_shared" = yes && test "$GCC" = yes; then
14001     case $archive_cmds_CXX in
14002     *'~'*)
14003       # FIXME: we may have to deal with multi-command sequences.
14004       ;;
14005     '$CC '*)
14006       # Test whether the compiler implicitly links with -lc since on some
14007       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14008       # to ld, don't add -lc before -lgcc.
14009       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14010 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14011 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14012   $as_echo_n "(cached) " >&6
14013 else
14014   $RM conftest*
14015         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14016
14017         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14018   (eval $ac_compile) 2>&5
14019   ac_status=$?
14020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14021   test $ac_status = 0; } 2>conftest.err; then
14022           soname=conftest
14023           lib=conftest
14024           libobjs=conftest.$ac_objext
14025           deplibs=
14026           wl=$lt_prog_compiler_wl_CXX
14027           pic_flag=$lt_prog_compiler_pic_CXX
14028           compiler_flags=-v
14029           linker_flags=-v
14030           verstring=
14031           output_objdir=.
14032           libname=conftest
14033           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14034           allow_undefined_flag_CXX=
14035           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14036   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14037   ac_status=$?
14038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14039   test $ac_status = 0; }
14040           then
14041             lt_cv_archive_cmds_need_lc_CXX=no
14042           else
14043             lt_cv_archive_cmds_need_lc_CXX=yes
14044           fi
14045           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14046         else
14047           cat conftest.err 1>&5
14048         fi
14049         $RM conftest*
14050
14051 fi
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14053 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14054       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14055       ;;
14056     esac
14057   fi
14058   ;;
14059 esac
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14125 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14126
14127 library_names_spec=
14128 libname_spec='lib$name'
14129 soname_spec=
14130 shrext_cmds=".so"
14131 postinstall_cmds=
14132 postuninstall_cmds=
14133 finish_cmds=
14134 finish_eval=
14135 shlibpath_var=
14136 shlibpath_overrides_runpath=unknown
14137 version_type=none
14138 dynamic_linker="$host_os ld.so"
14139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14140 need_lib_prefix=unknown
14141 hardcode_into_libs=no
14142
14143 # when you set need_version to no, make sure it does not cause -set_version
14144 # flags to be left without arguments
14145 need_version=unknown
14146
14147 case $host_os in
14148 aix3*)
14149   version_type=linux
14150   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14151   shlibpath_var=LIBPATH
14152
14153   # AIX 3 has no versioning support, so we append a major version to the name.
14154   soname_spec='${libname}${release}${shared_ext}$major'
14155   ;;
14156
14157 aix[4-9]*)
14158   version_type=linux
14159   need_lib_prefix=no
14160   need_version=no
14161   hardcode_into_libs=yes
14162   if test "$host_cpu" = ia64; then
14163     # AIX 5 supports IA64
14164     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14165     shlibpath_var=LD_LIBRARY_PATH
14166   else
14167     # With GCC up to 2.95.x, collect2 would create an import file
14168     # for dependence libraries.  The import file would start with
14169     # the line `#! .'.  This would cause the generated library to
14170     # depend on `.', always an invalid library.  This was fixed in
14171     # development snapshots of GCC prior to 3.0.
14172     case $host_os in
14173       aix4 | aix4.[01] | aix4.[01].*)
14174       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14175            echo ' yes '
14176            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14177         :
14178       else
14179         can_build_shared=no
14180       fi
14181       ;;
14182     esac
14183     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14184     # soname into executable. Probably we can add versioning support to
14185     # collect2, so additional links can be useful in future.
14186     if test "$aix_use_runtimelinking" = yes; then
14187       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14188       # instead of lib<name>.a to let people know that these are not
14189       # typical AIX shared libraries.
14190       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191     else
14192       # We preserve .a as extension for shared libraries through AIX4.2
14193       # and later when we are not doing run time linking.
14194       library_names_spec='${libname}${release}.a $libname.a'
14195       soname_spec='${libname}${release}${shared_ext}$major'
14196     fi
14197     shlibpath_var=LIBPATH
14198   fi
14199   ;;
14200
14201 amigaos*)
14202   case $host_cpu in
14203   powerpc)
14204     # Since July 2007 AmigaOS4 officially supports .so libraries.
14205     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14207     ;;
14208   m68k)
14209     library_names_spec='$libname.ixlibrary $libname.a'
14210     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14211     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14212     ;;
14213   esac
14214   ;;
14215
14216 beos*)
14217   library_names_spec='${libname}${shared_ext}'
14218   dynamic_linker="$host_os ld.so"
14219   shlibpath_var=LIBRARY_PATH
14220   ;;
14221
14222 bsdi[45]*)
14223   version_type=linux
14224   need_version=no
14225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14226   soname_spec='${libname}${release}${shared_ext}$major'
14227   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14228   shlibpath_var=LD_LIBRARY_PATH
14229   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14230   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14231   # the default ld.so.conf also contains /usr/contrib/lib and
14232   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14233   # libtool to hard-code these into programs
14234   ;;
14235
14236 cygwin* | mingw* | pw32* | cegcc*)
14237   version_type=windows
14238   shrext_cmds=".dll"
14239   need_version=no
14240   need_lib_prefix=no
14241
14242   case $GCC,$host_os in
14243   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14244     library_names_spec='$libname.dll.a'
14245     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14246     postinstall_cmds='base_file=`basename \${file}`~
14247       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14248       dldir=$destdir/`dirname \$dlpath`~
14249       test -d \$dldir || mkdir -p \$dldir~
14250       $install_prog $dir/$dlname \$dldir/$dlname~
14251       chmod a+x \$dldir/$dlname~
14252       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14253         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14254       fi'
14255     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14256       dlpath=$dir/\$dldll~
14257        $RM \$dlpath'
14258     shlibpath_overrides_runpath=yes
14259
14260     case $host_os in
14261     cygwin*)
14262       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14263       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14264
14265       ;;
14266     mingw* | cegcc*)
14267       # MinGW DLLs use traditional 'lib' prefix
14268       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14269       ;;
14270     pw32*)
14271       # pw32 DLLs use 'pw' prefix rather than 'lib'
14272       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14273       ;;
14274     esac
14275     ;;
14276
14277   *)
14278     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14279     ;;
14280   esac
14281   dynamic_linker='Win32 ld.exe'
14282   # FIXME: first we should search . and the directory the executable is in
14283   shlibpath_var=PATH
14284   ;;
14285
14286 darwin* | rhapsody*)
14287   dynamic_linker="$host_os dyld"
14288   version_type=darwin
14289   need_lib_prefix=no
14290   need_version=no
14291   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14292   soname_spec='${libname}${release}${major}$shared_ext'
14293   shlibpath_overrides_runpath=yes
14294   shlibpath_var=DYLD_LIBRARY_PATH
14295   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14296
14297   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14298   ;;
14299
14300 dgux*)
14301   version_type=linux
14302   need_lib_prefix=no
14303   need_version=no
14304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14305   soname_spec='${libname}${release}${shared_ext}$major'
14306   shlibpath_var=LD_LIBRARY_PATH
14307   ;;
14308
14309 freebsd1*)
14310   dynamic_linker=no
14311   ;;
14312
14313 freebsd* | dragonfly*)
14314   # DragonFly does not have aout.  When/if they implement a new
14315   # versioning mechanism, adjust this.
14316   if test -x /usr/bin/objformat; then
14317     objformat=`/usr/bin/objformat`
14318   else
14319     case $host_os in
14320     freebsd[123]*) objformat=aout ;;
14321     *) objformat=elf ;;
14322     esac
14323   fi
14324   version_type=freebsd-$objformat
14325   case $version_type in
14326     freebsd-elf*)
14327       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14328       need_version=no
14329       need_lib_prefix=no
14330       ;;
14331     freebsd-*)
14332       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14333       need_version=yes
14334       ;;
14335   esac
14336   shlibpath_var=LD_LIBRARY_PATH
14337   case $host_os in
14338   freebsd2*)
14339     shlibpath_overrides_runpath=yes
14340     ;;
14341   freebsd3.[01]* | freebsdelf3.[01]*)
14342     shlibpath_overrides_runpath=yes
14343     hardcode_into_libs=yes
14344     ;;
14345   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14346   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14347     shlibpath_overrides_runpath=no
14348     hardcode_into_libs=yes
14349     ;;
14350   *) # from 4.6 on, and DragonFly
14351     shlibpath_overrides_runpath=yes
14352     hardcode_into_libs=yes
14353     ;;
14354   esac
14355   ;;
14356
14357 gnu*)
14358   version_type=linux
14359   need_lib_prefix=no
14360   need_version=no
14361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14362   soname_spec='${libname}${release}${shared_ext}$major'
14363   shlibpath_var=LD_LIBRARY_PATH
14364   hardcode_into_libs=yes
14365   ;;
14366
14367 haiku*)
14368   version_type=linux
14369   need_lib_prefix=no
14370   need_version=no
14371   dynamic_linker="$host_os runtime_loader"
14372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14373   soname_spec='${libname}${release}${shared_ext}$major'
14374   shlibpath_var=LIBRARY_PATH
14375   shlibpath_overrides_runpath=yes
14376   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14377   hardcode_into_libs=yes
14378   ;;
14379
14380 hpux9* | hpux10* | hpux11*)
14381   # Give a soname corresponding to the major version so that dld.sl refuses to
14382   # link against other versions.
14383   version_type=sunos
14384   need_lib_prefix=no
14385   need_version=no
14386   case $host_cpu in
14387   ia64*)
14388     shrext_cmds='.so'
14389     hardcode_into_libs=yes
14390     dynamic_linker="$host_os dld.so"
14391     shlibpath_var=LD_LIBRARY_PATH
14392     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394     soname_spec='${libname}${release}${shared_ext}$major'
14395     if test "X$HPUX_IA64_MODE" = X32; then
14396       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14397     else
14398       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14399     fi
14400     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14401     ;;
14402   hppa*64*)
14403     shrext_cmds='.sl'
14404     hardcode_into_libs=yes
14405     dynamic_linker="$host_os dld.sl"
14406     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14407     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14409     soname_spec='${libname}${release}${shared_ext}$major'
14410     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14411     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14412     ;;
14413   *)
14414     shrext_cmds='.sl'
14415     dynamic_linker="$host_os dld.sl"
14416     shlibpath_var=SHLIB_PATH
14417     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419     soname_spec='${libname}${release}${shared_ext}$major'
14420     ;;
14421   esac
14422   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14423   postinstall_cmds='chmod 555 $lib'
14424   # or fails outright, so override atomically:
14425   install_override_mode=555
14426   ;;
14427
14428 interix[3-9]*)
14429   version_type=linux
14430   need_lib_prefix=no
14431   need_version=no
14432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14433   soname_spec='${libname}${release}${shared_ext}$major'
14434   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14435   shlibpath_var=LD_LIBRARY_PATH
14436   shlibpath_overrides_runpath=no
14437   hardcode_into_libs=yes
14438   ;;
14439
14440 irix5* | irix6* | nonstopux*)
14441   case $host_os in
14442     nonstopux*) version_type=nonstopux ;;
14443     *)
14444         if test "$lt_cv_prog_gnu_ld" = yes; then
14445                 version_type=linux
14446         else
14447                 version_type=irix
14448         fi ;;
14449   esac
14450   need_lib_prefix=no
14451   need_version=no
14452   soname_spec='${libname}${release}${shared_ext}$major'
14453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14454   case $host_os in
14455   irix5* | nonstopux*)
14456     libsuff= shlibsuff=
14457     ;;
14458   *)
14459     case $LD in # libtool.m4 will add one of these switches to LD
14460     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14461       libsuff= shlibsuff= libmagic=32-bit;;
14462     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14463       libsuff=32 shlibsuff=N32 libmagic=N32;;
14464     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14465       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14466     *) libsuff= shlibsuff= libmagic=never-match;;
14467     esac
14468     ;;
14469   esac
14470   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14471   shlibpath_overrides_runpath=no
14472   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14473   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14474   hardcode_into_libs=yes
14475   ;;
14476
14477 # No shared lib support for Linux oldld, aout, or coff.
14478 linux*oldld* | linux*aout* | linux*coff*)
14479   dynamic_linker=no
14480   ;;
14481
14482 # This must be Linux ELF.
14483 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14484   version_type=linux
14485   need_lib_prefix=no
14486   need_version=no
14487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488   soname_spec='${libname}${release}${shared_ext}$major'
14489   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14490   shlibpath_var=LD_LIBRARY_PATH
14491   shlibpath_overrides_runpath=no
14492
14493   # Some binutils ld are patched to set DT_RUNPATH
14494   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14495   $as_echo_n "(cached) " >&6
14496 else
14497   lt_cv_shlibpath_overrides_runpath=no
14498     save_LDFLAGS=$LDFLAGS
14499     save_libdir=$libdir
14500     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14501          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14502     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h.  */
14504
14505 int
14506 main ()
14507 {
14508
14509   ;
14510   return 0;
14511 }
14512 _ACEOF
14513 if ac_fn_cxx_try_link "$LINENO"; then :
14514   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14515   lt_cv_shlibpath_overrides_runpath=yes
14516 fi
14517 fi
14518 rm -f core conftest.err conftest.$ac_objext \
14519     conftest$ac_exeext conftest.$ac_ext
14520     LDFLAGS=$save_LDFLAGS
14521     libdir=$save_libdir
14522
14523 fi
14524
14525   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14526
14527   # This implies no fast_install, which is unacceptable.
14528   # Some rework will be needed to allow for fast_install
14529   # before this can be enabled.
14530   hardcode_into_libs=yes
14531
14532   # Append ld.so.conf contents to the search path
14533   if test -f /etc/ld.so.conf; then
14534     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;s/"//g;/^$/d' | tr '\n' ' '`
14535     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14536   fi
14537
14538   # We used to test for /lib/ld.so.1 and disable shared libraries on
14539   # powerpc, because MkLinux only supported shared libraries with the
14540   # GNU dynamic linker.  Since this was broken with cross compilers,
14541   # most powerpc-linux boxes support dynamic linking these days and
14542   # people can always --disable-shared, the test was removed, and we
14543   # assume the GNU/Linux dynamic linker is in use.
14544   dynamic_linker='GNU/Linux ld.so'
14545   ;;
14546
14547 netbsd*)
14548   version_type=sunos
14549   need_lib_prefix=no
14550   need_version=no
14551   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14553     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14554     dynamic_linker='NetBSD (a.out) ld.so'
14555   else
14556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14557     soname_spec='${libname}${release}${shared_ext}$major'
14558     dynamic_linker='NetBSD ld.elf_so'
14559   fi
14560   shlibpath_var=LD_LIBRARY_PATH
14561   shlibpath_overrides_runpath=yes
14562   hardcode_into_libs=yes
14563   ;;
14564
14565 newsos6)
14566   version_type=linux
14567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568   shlibpath_var=LD_LIBRARY_PATH
14569   shlibpath_overrides_runpath=yes
14570   ;;
14571
14572 *nto* | *qnx*)
14573   version_type=qnx
14574   need_lib_prefix=no
14575   need_version=no
14576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577   soname_spec='${libname}${release}${shared_ext}$major'
14578   shlibpath_var=LD_LIBRARY_PATH
14579   shlibpath_overrides_runpath=no
14580   hardcode_into_libs=yes
14581   dynamic_linker='ldqnx.so'
14582   ;;
14583
14584 openbsd*)
14585   version_type=sunos
14586   sys_lib_dlsearch_path_spec="/usr/lib"
14587   need_lib_prefix=no
14588   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14589   case $host_os in
14590     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14591     *)                          need_version=no  ;;
14592   esac
14593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14595   shlibpath_var=LD_LIBRARY_PATH
14596   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14597     case $host_os in
14598       openbsd2.[89] | openbsd2.[89].*)
14599         shlibpath_overrides_runpath=no
14600         ;;
14601       *)
14602         shlibpath_overrides_runpath=yes
14603         ;;
14604       esac
14605   else
14606     shlibpath_overrides_runpath=yes
14607   fi
14608   ;;
14609
14610 os2*)
14611   libname_spec='$name'
14612   shrext_cmds=".dll"
14613   need_lib_prefix=no
14614   library_names_spec='$libname${shared_ext} $libname.a'
14615   dynamic_linker='OS/2 ld.exe'
14616   shlibpath_var=LIBPATH
14617   ;;
14618
14619 osf3* | osf4* | osf5*)
14620   version_type=osf
14621   need_lib_prefix=no
14622   need_version=no
14623   soname_spec='${libname}${release}${shared_ext}$major'
14624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625   shlibpath_var=LD_LIBRARY_PATH
14626   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14627   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14628   ;;
14629
14630 rdos*)
14631   dynamic_linker=no
14632   ;;
14633
14634 solaris*)
14635   version_type=linux
14636   need_lib_prefix=no
14637   need_version=no
14638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639   soname_spec='${libname}${release}${shared_ext}$major'
14640   shlibpath_var=LD_LIBRARY_PATH
14641   shlibpath_overrides_runpath=yes
14642   hardcode_into_libs=yes
14643   # ldd complains unless libraries are executable
14644   postinstall_cmds='chmod +x $lib'
14645   ;;
14646
14647 sunos4*)
14648   version_type=sunos
14649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14650   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14651   shlibpath_var=LD_LIBRARY_PATH
14652   shlibpath_overrides_runpath=yes
14653   if test "$with_gnu_ld" = yes; then
14654     need_lib_prefix=no
14655   fi
14656   need_version=yes
14657   ;;
14658
14659 sysv4 | sysv4.3*)
14660   version_type=linux
14661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662   soname_spec='${libname}${release}${shared_ext}$major'
14663   shlibpath_var=LD_LIBRARY_PATH
14664   case $host_vendor in
14665     sni)
14666       shlibpath_overrides_runpath=no
14667       need_lib_prefix=no
14668       runpath_var=LD_RUN_PATH
14669       ;;
14670     siemens)
14671       need_lib_prefix=no
14672       ;;
14673     motorola)
14674       need_lib_prefix=no
14675       need_version=no
14676       shlibpath_overrides_runpath=no
14677       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14678       ;;
14679   esac
14680   ;;
14681
14682 sysv4*MP*)
14683   if test -d /usr/nec ;then
14684     version_type=linux
14685     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14686     soname_spec='$libname${shared_ext}.$major'
14687     shlibpath_var=LD_LIBRARY_PATH
14688   fi
14689   ;;
14690
14691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14692   version_type=freebsd-elf
14693   need_lib_prefix=no
14694   need_version=no
14695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14696   soname_spec='${libname}${release}${shared_ext}$major'
14697   shlibpath_var=LD_LIBRARY_PATH
14698   shlibpath_overrides_runpath=yes
14699   hardcode_into_libs=yes
14700   if test "$with_gnu_ld" = yes; then
14701     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14702   else
14703     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14704     case $host_os in
14705       sco3.2v5*)
14706         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14707         ;;
14708     esac
14709   fi
14710   sys_lib_dlsearch_path_spec='/usr/lib'
14711   ;;
14712
14713 tpf*)
14714   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14715   version_type=linux
14716   need_lib_prefix=no
14717   need_version=no
14718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719   shlibpath_var=LD_LIBRARY_PATH
14720   shlibpath_overrides_runpath=no
14721   hardcode_into_libs=yes
14722   ;;
14723
14724 uts4*)
14725   version_type=linux
14726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727   soname_spec='${libname}${release}${shared_ext}$major'
14728   shlibpath_var=LD_LIBRARY_PATH
14729   ;;
14730
14731 *)
14732   dynamic_linker=no
14733   ;;
14734 esac
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14736 $as_echo "$dynamic_linker" >&6; }
14737 test "$dynamic_linker" = no && can_build_shared=no
14738
14739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14740 if test "$GCC" = yes; then
14741   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14742 fi
14743
14744 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14745   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14746 fi
14747 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14748   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14749 fi
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14789 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14790 hardcode_action_CXX=
14791 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14792    test -n "$runpath_var_CXX" ||
14793    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14794
14795   # We can hardcode non-existent directories.
14796   if test "$hardcode_direct_CXX" != no &&
14797      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14798      # have to relink, otherwise we might link with an installed library
14799      # when we should be linking with a yet-to-be-installed one
14800      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14801      test "$hardcode_minus_L_CXX" != no; then
14802     # Linking always hardcodes the temporary library directory.
14803     hardcode_action_CXX=relink
14804   else
14805     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14806     hardcode_action_CXX=immediate
14807   fi
14808 else
14809   # We cannot hardcode anything, or else we can only hardcode existing
14810   # directories.
14811   hardcode_action_CXX=unsupported
14812 fi
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14814 $as_echo "$hardcode_action_CXX" >&6; }
14815
14816 if test "$hardcode_action_CXX" = relink ||
14817    test "$inherit_rpath_CXX" = yes; then
14818   # Fast installation is not supported
14819   enable_fast_install=no
14820 elif test "$shlibpath_overrides_runpath" = yes ||
14821      test "$enable_shared" = no; then
14822   # Fast installation is not necessary
14823   enable_fast_install=needless
14824 fi
14825
14826
14827
14828
14829
14830
14831
14832   fi # test -n "$compiler"
14833
14834   CC=$lt_save_CC
14835   LDCXX=$LD
14836   LD=$lt_save_LD
14837   GCC=$lt_save_GCC
14838   with_gnu_ld=$lt_save_with_gnu_ld
14839   lt_cv_path_LDCXX=$lt_cv_path_LD
14840   lt_cv_path_LD=$lt_save_path_LD
14841   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14842   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14843 fi # test "$_lt_caught_CXX_error" != yes
14844
14845 ac_ext=c
14846 ac_cpp='$CPP $CPPFLAGS'
14847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863         ac_config_commands="$ac_config_commands libtool"
14864
14865
14866
14867
14868 # Only expand once:
14869
14870
14871 #
14872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14873 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14874 if test "${ac_cv_c_bigendian+set}" = set; then :
14875   $as_echo_n "(cached) " >&6
14876 else
14877   ac_cv_c_bigendian=unknown
14878     # See if we're dealing with a universal compiler.
14879     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h.  */
14881 #ifndef __APPLE_CC__
14882                not a universal capable compiler
14883              #endif
14884              typedef int dummy;
14885
14886 _ACEOF
14887 if ac_fn_c_try_compile "$LINENO"; then :
14888
14889         # Check for potential -arch flags.  It is not universal unless
14890         # there are at least two -arch flags with different values.
14891         ac_arch=
14892         ac_prev=
14893         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14894          if test -n "$ac_prev"; then
14895            case $ac_word in
14896              i?86 | x86_64 | ppc | ppc64)
14897                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14898                  ac_arch=$ac_word
14899                else
14900                  ac_cv_c_bigendian=universal
14901                  break
14902                fi
14903                ;;
14904            esac
14905            ac_prev=
14906          elif test "x$ac_word" = "x-arch"; then
14907            ac_prev=arch
14908          fi
14909        done
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912     if test $ac_cv_c_bigendian = unknown; then
14913       # See if sys/param.h defines the BYTE_ORDER macro.
14914       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h.  */
14916 #include <sys/types.h>
14917              #include <sys/param.h>
14918
14919 int
14920 main ()
14921 {
14922 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14923                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14924                      && LITTLE_ENDIAN)
14925               bogus endian macros
14926              #endif
14927
14928   ;
14929   return 0;
14930 }
14931 _ACEOF
14932 if ac_fn_c_try_compile "$LINENO"; then :
14933   # It does; now see whether it defined to BIG_ENDIAN or not.
14934          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h.  */
14936 #include <sys/types.h>
14937                 #include <sys/param.h>
14938
14939 int
14940 main ()
14941 {
14942 #if BYTE_ORDER != BIG_ENDIAN
14943                  not big endian
14944                 #endif
14945
14946   ;
14947   return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_c_try_compile "$LINENO"; then :
14951   ac_cv_c_bigendian=yes
14952 else
14953   ac_cv_c_bigendian=no
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14956 fi
14957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14958     fi
14959     if test $ac_cv_c_bigendian = unknown; then
14960       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14961       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h.  */
14963 #include <limits.h>
14964
14965 int
14966 main ()
14967 {
14968 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14969               bogus endian macros
14970              #endif
14971
14972   ;
14973   return 0;
14974 }
14975 _ACEOF
14976 if ac_fn_c_try_compile "$LINENO"; then :
14977   # It does; now see whether it defined to _BIG_ENDIAN or not.
14978          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h.  */
14980 #include <limits.h>
14981
14982 int
14983 main ()
14984 {
14985 #ifndef _BIG_ENDIAN
14986                  not big endian
14987                 #endif
14988
14989   ;
14990   return 0;
14991 }
14992 _ACEOF
14993 if ac_fn_c_try_compile "$LINENO"; then :
14994   ac_cv_c_bigendian=yes
14995 else
14996   ac_cv_c_bigendian=no
14997 fi
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999 fi
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001     fi
15002     if test $ac_cv_c_bigendian = unknown; then
15003       # Compile a test program.
15004       if test "$cross_compiling" = yes; then :
15005   # Try to guess by grepping values from an object file.
15006          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h.  */
15008 short int ascii_mm[] =
15009                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15010                 short int ascii_ii[] =
15011                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15012                 int use_ascii (int i) {
15013                   return ascii_mm[i] + ascii_ii[i];
15014                 }
15015                 short int ebcdic_ii[] =
15016                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15017                 short int ebcdic_mm[] =
15018                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15019                 int use_ebcdic (int i) {
15020                   return ebcdic_mm[i] + ebcdic_ii[i];
15021                 }
15022                 extern int foo;
15023
15024 int
15025 main ()
15026 {
15027 return use_ascii (foo) == use_ebcdic (foo);
15028   ;
15029   return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15034               ac_cv_c_bigendian=yes
15035             fi
15036             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15037               if test "$ac_cv_c_bigendian" = unknown; then
15038                 ac_cv_c_bigendian=no
15039               else
15040                 # finding both strings is unlikely to happen, but who knows?
15041                 ac_cv_c_bigendian=unknown
15042               fi
15043             fi
15044 fi
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 else
15047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h.  */
15049 $ac_includes_default
15050 int
15051 main ()
15052 {
15053
15054              /* Are we little or big endian?  From Harbison&Steele.  */
15055              union
15056              {
15057                long int l;
15058                char c[sizeof (long int)];
15059              } u;
15060              u.l = 1;
15061              return u.c[sizeof (long int) - 1] == 1;
15062
15063   ;
15064   return 0;
15065 }
15066 _ACEOF
15067 if ac_fn_c_try_run "$LINENO"; then :
15068   ac_cv_c_bigendian=no
15069 else
15070   ac_cv_c_bigendian=yes
15071 fi
15072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15073   conftest.$ac_objext conftest.beam conftest.$ac_ext
15074 fi
15075
15076     fi
15077 fi
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15079 $as_echo "$ac_cv_c_bigendian" >&6; }
15080  case $ac_cv_c_bigendian in #(
15081    yes)
15082      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15083 ;; #(
15084    no)
15085       ;; #(
15086    universal)
15087
15088 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15089
15090      ;; #(
15091    *)
15092      as_fn_error "unknown endianness
15093  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15094  esac
15095
15096 #
15097 LIB_MATH=""
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15099 $as_echo_n "checking for sqrt in -lm... " >&6; }
15100 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
15101   $as_echo_n "(cached) " >&6
15102 else
15103   ac_check_lib_save_LIBS=$LIBS
15104 LIBS="-lm  $LIBS"
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h.  */
15107
15108 /* Override any GCC internal prototype to avoid an error.
15109    Use char because int might match the return type of a GCC
15110    builtin and then its argument prototype would still apply.  */
15111 #ifdef __cplusplus
15112 extern "C"
15113 #endif
15114 char sqrt ();
15115 int
15116 main ()
15117 {
15118 return sqrt ();
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 if ac_fn_c_try_link "$LINENO"; then :
15124   ac_cv_lib_m_sqrt=yes
15125 else
15126   ac_cv_lib_m_sqrt=no
15127 fi
15128 rm -f core conftest.err conftest.$ac_objext \
15129     conftest$ac_exeext conftest.$ac_ext
15130 LIBS=$ac_check_lib_save_LIBS
15131 fi
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15133 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15134 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
15135   LIB_MATH="-lm"
15136 fi
15137
15138 LIB_Z=""
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
15140 $as_echo_n "checking for inflate in -lz... " >&6; }
15141 if test "${ac_cv_lib_z_inflate+set}" = set; then :
15142   $as_echo_n "(cached) " >&6
15143 else
15144   ac_check_lib_save_LIBS=$LIBS
15145 LIBS="-lz  $LIBS"
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h.  */
15148
15149 /* Override any GCC internal prototype to avoid an error.
15150    Use char because int might match the return type of a GCC
15151    builtin and then its argument prototype would still apply.  */
15152 #ifdef __cplusplus
15153 extern "C"
15154 #endif
15155 char inflate ();
15156 int
15157 main ()
15158 {
15159 return inflate ();
15160   ;
15161   return 0;
15162 }
15163 _ACEOF
15164 if ac_fn_c_try_link "$LINENO"; then :
15165   ac_cv_lib_z_inflate=yes
15166 else
15167   ac_cv_lib_z_inflate=no
15168 fi
15169 rm -f core conftest.err conftest.$ac_objext \
15170     conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15172 fi
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
15174 $as_echo "$ac_cv_lib_z_inflate" >&6; }
15175 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
15176   LIB_Z="-lz"
15177 fi
15178
15179 #
15180 LIBS="$LIBS $LIB_MATH $LIB_Z"
15181 #
15182 # Extract the first word of "pkg-config", so it can be a program name with args.
15183 set dummy pkg-config; ac_word=$2
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15185 $as_echo_n "checking for $ac_word... " >&6; }
15186 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
15187   $as_echo_n "(cached) " >&6
15188 else
15189   case $PKGCONFIG in
15190   [\\/]* | ?:[\\/]*)
15191   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15192   ;;
15193   *)
15194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195 for as_dir in $PATH
15196 do
15197   IFS=$as_save_IFS
15198   test -z "$as_dir" && as_dir=.
15199     for ac_exec_ext in '' $ac_executable_extensions; do
15200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15201     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15203     break 2
15204   fi
15205 done
15206   done
15207 IFS=$as_save_IFS
15208
15209   ;;
15210 esac
15211 fi
15212 PKGCONFIG=$ac_cv_path_PKGCONFIG
15213 if test -n "$PKGCONFIG"; then
15214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
15215 $as_echo "$PKGCONFIG" >&6; }
15216 else
15217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15218 $as_echo "no" >&6; }
15219 fi
15220
15221
15222 #
15223 # ------------------------------
15224 # Test for PNG
15225 # ------------------------------
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
15227 $as_echo_n "checking whether to build with PNG support... " >&6; }
15228 pngincludes=""
15229 pnglibs=""
15230 png_header_found="no"
15231 with_libpng="yes"
15232 #
15233 # Check whether --enable-png was given.
15234 if test "${enable_png+set}" = set; then :
15235   enableval=$enable_png; test "$enable_png" = "no"  && with_libpng="no"
15236 fi
15237
15238 #
15239 if test "x$with_libpng" = xyes ; then
15240   with_libpng="no"
15241   # Extract the first word of "libpng-config", so it can be a program name with args.
15242 set dummy libpng-config; ac_word=$2
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15244 $as_echo_n "checking for $ac_word... " >&6; }
15245 if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then :
15246   $as_echo_n "(cached) " >&6
15247 else
15248   case $LIBPNG_CONFIG in
15249   [\\/]* | ?:[\\/]*)
15250   ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
15251   ;;
15252   *)
15253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $PATH
15255 do
15256   IFS=$as_save_IFS
15257   test -z "$as_dir" && as_dir=.
15258     for ac_exec_ext in '' $ac_executable_extensions; do
15259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15260     ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15262     break 2
15263   fi
15264 done
15265   done
15266 IFS=$as_save_IFS
15267
15268   ;;
15269 esac
15270 fi
15271 LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
15272 if test -n "$LIBPNG_CONFIG"; then
15273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
15274 $as_echo "$LIBPNG_CONFIG" >&6; }
15275 else
15276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15277 $as_echo "no" >&6; }
15278 fi
15279
15280
15281 #
15282   pngheader=""
15283
15284 # Check whether --with-png_includes was given.
15285 if test "${with_png_includes+set}" = set; then :
15286   withval=$with_png_includes;
15287 fi
15288
15289   if test -n "$with_png_includes" ; then
15290    pngheader="$with_png_includes"
15291    pngincludes="-I$with_png_includes"
15292   else
15293    if test -n "$PKGCONFIG" ; then
15294      pngincludes="`$PKGCONFIG --variable=includedir libpng`"
15295      if test -n "$pngincludes" ; then
15296       pngheader="$pngincludes"
15297       pngincludes="-I$pngincludes"
15298      fi
15299    else
15300      if test -n "$LIBPNG_CONFIG" ; then
15301       pngincludes="`$LIBPNG_CONFIG --I_opts`"
15302       pngheader="`$LIBPNG_CONFIG --I_opts | $SED 's/-I//'`"
15303      fi
15304    fi
15305   fi
15306   if test -n "$pngheader" ; then
15307    pngheader="$pngheader/png.h"
15308   else
15309    pngheader="png.h"
15310   fi
15311 #
15312   as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
15313 ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
15314 eval as_val=\$$as_ac_Header
15315    if test "x$as_val" = x""yes; then :
15316   png_header_found="yes"
15317 fi
15318
15319
15320 #
15321
15322 # Check whether --with-png_libraries was given.
15323 if test "${with_png_libraries+set}" = set; then :
15324   withval=$with_png_libraries;
15325 fi
15326
15327   if [ -n "$with_png_libraries" ] ; then
15328    pnglibs="-L$with_png_libraries -lpng"
15329   else
15330     if test -n "$LIBPNG_CONFIG" ; then
15331      pnglibs="`$LIBPNG_CONFIG --ldflags`"
15332     else
15333       if test -n "$PKGCONFIG" ; then
15334         pnglibs="`$PKGCONFIG --libs libpng`"
15335       fi
15336     fi
15337   fi
15338   savedLIBS="$LIBS"
15339   LIBS="$pnglibs $LIB_Z $LIB_MATH"
15340 #
15341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5
15342 $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
15343 if test "${ac_cv_lib_png_png_create_read_struct+set}" = set; then :
15344   $as_echo_n "(cached) " >&6
15345 else
15346   ac_check_lib_save_LIBS=$LIBS
15347 LIBS="-lpng  $LIBS"
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h.  */
15350
15351 /* Override any GCC internal prototype to avoid an error.
15352    Use char because int might match the return type of a GCC
15353    builtin and then its argument prototype would still apply.  */
15354 #ifdef __cplusplus
15355 extern "C"
15356 #endif
15357 char png_create_read_struct ();
15358 int
15359 main ()
15360 {
15361 return png_create_read_struct ();
15362   ;
15363   return 0;
15364 }
15365 _ACEOF
15366 if ac_fn_c_try_link "$LINENO"; then :
15367   ac_cv_lib_png_png_create_read_struct=yes
15368 else
15369   ac_cv_lib_png_png_create_read_struct=no
15370 fi
15371 rm -f core conftest.err conftest.$ac_objext \
15372     conftest$ac_exeext conftest.$ac_ext
15373 LIBS=$ac_check_lib_save_LIBS
15374 fi
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5
15376 $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
15377 if test "x$ac_cv_lib_png_png_create_read_struct" = x""yes; then :
15378   cat >>confdefs.h <<_ACEOF
15379 #define HAVE_LIBPNG 1
15380 _ACEOF
15381
15382   LIBS="-lpng $LIBS"
15383
15384 else
15385   pnglibs=""
15386 fi
15387
15388 #
15389   LIBS="$savedLIBS"
15390   if test -n "$pnglibs" ; then
15391     if test -n "$pngincludes" ; then
15392       with_libpng="yes"
15393       png_header_found="yes"
15394       LIBS="$LIBS $pnglibs"
15395
15396 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
15397
15398     fi
15399   fi
15400 fi
15401 #
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: png is usable:$with_libpng" >&5
15403 $as_echo "png is usable:$with_libpng" >&6; }
15404  if test x$with_libpng = xyes; then
15405   with_libpng_TRUE=
15406   with_libpng_FALSE='#'
15407 else
15408   with_libpng_TRUE='#'
15409   with_libpng_FALSE=
15410 fi
15411
15412
15413
15414 # -------------------------------
15415 # Test for TIFF
15416 # -------------------------------
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
15418 $as_echo_n "checking whether to build with TIFF support... " >&6; }
15419 tifflibs=""
15420 tiffincludes=""
15421 with_libtiff="yes"
15422 tiff_header_found="no"
15423 #
15424 # Check whether --enable-tiff was given.
15425 if test "${enable_tiff+set}" = set; then :
15426   enableval=$enable_tiff; test "$enable_tiff" = "no"  && with_libtiff="no"
15427 fi
15428
15429 #
15430 if test "x$with_libtiff" = xyes ; then
15431 #TIFF compiled with JPEG and JBIG support?
15432  libjpeg=""
15433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
15434 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
15435 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
15436   $as_echo_n "(cached) " >&6
15437 else
15438   ac_check_lib_save_LIBS=$LIBS
15439 LIBS="-ljpeg  $LIBS"
15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h.  */
15442
15443 /* Override any GCC internal prototype to avoid an error.
15444    Use char because int might match the return type of a GCC
15445    builtin and then its argument prototype would still apply.  */
15446 #ifdef __cplusplus
15447 extern "C"
15448 #endif
15449 char jpeg_read_header ();
15450 int
15451 main ()
15452 {
15453 return jpeg_read_header ();
15454   ;
15455   return 0;
15456 }
15457 _ACEOF
15458 if ac_fn_c_try_link "$LINENO"; then :
15459   ac_cv_lib_jpeg_jpeg_read_header=yes
15460 else
15461   ac_cv_lib_jpeg_jpeg_read_header=no
15462 fi
15463 rm -f core conftest.err conftest.$ac_objext \
15464     conftest$ac_exeext conftest.$ac_ext
15465 LIBS=$ac_check_lib_save_LIBS
15466 fi
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
15468 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
15469 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
15470   libjpeg=-ljpeg
15471 fi
15472
15473  libjbig=""
15474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_enc_init in -ljbig" >&5
15475 $as_echo_n "checking for jbg_enc_init in -ljbig... " >&6; }
15476 if test "${ac_cv_lib_jbig_jbg_enc_init+set}" = set; then :
15477   $as_echo_n "(cached) " >&6
15478 else
15479   ac_check_lib_save_LIBS=$LIBS
15480 LIBS="-ljbig  $LIBS"
15481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h.  */
15483
15484 /* Override any GCC internal prototype to avoid an error.
15485    Use char because int might match the return type of a GCC
15486    builtin and then its argument prototype would still apply.  */
15487 #ifdef __cplusplus
15488 extern "C"
15489 #endif
15490 char jbg_enc_init ();
15491 int
15492 main ()
15493 {
15494 return jbg_enc_init ();
15495   ;
15496   return 0;
15497 }
15498 _ACEOF
15499 if ac_fn_c_try_link "$LINENO"; then :
15500   ac_cv_lib_jbig_jbg_enc_init=yes
15501 else
15502   ac_cv_lib_jbig_jbg_enc_init=no
15503 fi
15504 rm -f core conftest.err conftest.$ac_objext \
15505     conftest$ac_exeext conftest.$ac_ext
15506 LIBS=$ac_check_lib_save_LIBS
15507 fi
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_enc_init" >&5
15509 $as_echo "$ac_cv_lib_jbig_jbg_enc_init" >&6; }
15510 if test "x$ac_cv_lib_jbig_jbg_enc_init" = x""yes; then :
15511   libjbig=-ljbig
15512 fi
15513
15514  libjbig85=""
15515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg85_enc_init in -ljbig85" >&5
15516 $as_echo_n "checking for jbg85_enc_init in -ljbig85... " >&6; }
15517 if test "${ac_cv_lib_jbig85_jbg85_enc_init+set}" = set; then :
15518   $as_echo_n "(cached) " >&6
15519 else
15520   ac_check_lib_save_LIBS=$LIBS
15521 LIBS="-ljbig85  $LIBS"
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h.  */
15524
15525 /* Override any GCC internal prototype to avoid an error.
15526    Use char because int might match the return type of a GCC
15527    builtin and then its argument prototype would still apply.  */
15528 #ifdef __cplusplus
15529 extern "C"
15530 #endif
15531 char jbg85_enc_init ();
15532 int
15533 main ()
15534 {
15535 return jbg85_enc_init ();
15536   ;
15537   return 0;
15538 }
15539 _ACEOF
15540 if ac_fn_c_try_link "$LINENO"; then :
15541   ac_cv_lib_jbig85_jbg85_enc_init=yes
15542 else
15543   ac_cv_lib_jbig85_jbg85_enc_init=no
15544 fi
15545 rm -f core conftest.err conftest.$ac_objext \
15546     conftest$ac_exeext conftest.$ac_ext
15547 LIBS=$ac_check_lib_save_LIBS
15548 fi
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig85_jbg85_enc_init" >&5
15550 $as_echo "$ac_cv_lib_jbig85_jbg85_enc_init" >&6; }
15551 if test "x$ac_cv_lib_jbig85_jbg85_enc_init" = x""yes; then :
15552   libjbig85=-ljbig85
15553 fi
15554
15555 #standard path
15556  with_libtiff="no"
15557  savedLIBS="$LIBS"
15558  LIBS="-ltiff $libjpeg $libjbig $libjbig85 $LIB_Z $LIB_MATH"
15559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15560 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15561 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15562   $as_echo_n "(cached) " >&6
15563 else
15564   ac_check_lib_save_LIBS=$LIBS
15565 LIBS="-ltiff  $LIBS"
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h.  */
15568
15569 /* Override any GCC internal prototype to avoid an error.
15570    Use char because int might match the return type of a GCC
15571    builtin and then its argument prototype would still apply.  */
15572 #ifdef __cplusplus
15573 extern "C"
15574 #endif
15575 char TIFFOpen ();
15576 int
15577 main ()
15578 {
15579 return TIFFOpen ();
15580   ;
15581   return 0;
15582 }
15583 _ACEOF
15584 if ac_fn_c_try_link "$LINENO"; then :
15585   ac_cv_lib_tiff_TIFFOpen=yes
15586 else
15587   ac_cv_lib_tiff_TIFFOpen=no
15588 fi
15589 rm -f core conftest.err conftest.$ac_objext \
15590     conftest$ac_exeext conftest.$ac_ext
15591 LIBS=$ac_check_lib_save_LIBS
15592 fi
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15594 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15595 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15596   tifflibs=-ltiff
15597 fi
15598
15599  LIBS="$savedLIBS"
15600  if test -n "$tifflibs" ; then
15601   ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
15602 if test "x$ac_cv_header_tiff_h" = x""yes; then :
15603   tiff_header_found="yes"
15604 fi
15605
15606
15607   if test "$tiff_header_found" = "yes" ; then
15608    with_libtiff="yes"
15609    LIBS="$LIBS -ltiff $libjpeg $libjbig $libjbig85"
15610
15611 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15612
15613   fi
15614  fi
15615 #
15616  if test "x$with_libtiff" = xno ; then
15617 #non-standard path
15618
15619 # Check whether --with-tiff_includes was given.
15620 if test "${with_tiff_includes+set}" = set; then :
15621   withval=$with_tiff_includes;
15622 fi
15623
15624   if test -n "$with_tiff_includes" ; then
15625    tiffheader="$with_tiff_includes/tiff.h"
15626    as_ac_Header=`$as_echo "ac_cv_header_$tiffheader" | $as_tr_sh`
15627 ac_fn_c_check_header_mongrel "$LINENO" "$tiffheader" "$as_ac_Header" "$ac_includes_default"
15628 eval as_val=\$$as_ac_Header
15629    if test "x$as_val" = x""yes; then :
15630   tiff_header_found="yes"
15631 fi
15632
15633
15634    if test "$tiff_header_found" = "yes" ; then
15635      tiffincludes="-I$with_tiff_includes"
15636    fi
15637   fi
15638
15639 # Check whether --with-tiff_libraries was given.
15640 if test "${with_tiff_libraries+set}" = set; then :
15641   withval=$with_tiff_libraries;
15642 fi
15643
15644   if test -n "$with_tiff_libraries" ; then
15645    tifflibs="-L$with_tiff_libraries"
15646   fi
15647   tifflibs="$tifflibs -ltiff"
15648   savedLIBS="$LIBS"
15649   LIBS="$tifflibs $libjpeg $libjbig $libjbig85 $LIB_Z $LIB_MATH"
15650   with_libtiff="no"
15651 #
15652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15653 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15654 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15655   $as_echo_n "(cached) " >&6
15656 else
15657   ac_check_lib_save_LIBS=$LIBS
15658 LIBS="-ltiff  $LIBS"
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h.  */
15661
15662 /* Override any GCC internal prototype to avoid an error.
15663    Use char because int might match the return type of a GCC
15664    builtin and then its argument prototype would still apply.  */
15665 #ifdef __cplusplus
15666 extern "C"
15667 #endif
15668 char TIFFOpen ();
15669 int
15670 main ()
15671 {
15672 return TIFFOpen ();
15673   ;
15674   return 0;
15675 }
15676 _ACEOF
15677 if ac_fn_c_try_link "$LINENO"; then :
15678   ac_cv_lib_tiff_TIFFOpen=yes
15679 else
15680   ac_cv_lib_tiff_TIFFOpen=no
15681 fi
15682 rm -f core conftest.err conftest.$ac_objext \
15683     conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15685 fi
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15687 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15688 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15689   cat >>confdefs.h <<_ACEOF
15690 #define HAVE_LIBTIFF 1
15691 _ACEOF
15692
15693   LIBS="-ltiff $LIBS"
15694
15695 else
15696   tifflibs=""
15697 fi
15698
15699 #
15700   if test -n "$tifflibs" ; then
15701    if test "$tiff_header_found" = "yes" ; then
15702     with_libtiff="yes"
15703
15704 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15705
15706    fi
15707   fi
15708   LIBS="$savedLIBS $tifflibs $libjpeg $libjbig $libjbig85"
15709  fi
15710 fi
15711 #
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tiff is usable:$with_libtiff" >&5
15713 $as_echo "tiff is usable:$with_libtiff" >&6; }
15714  if test x$with_libtiff = xyes; then
15715   with_libtiff_TRUE=
15716   with_libtiff_FALSE='#'
15717 else
15718   with_libtiff_TRUE='#'
15719   with_libtiff_FALSE=
15720 fi
15721
15722
15723
15724 # -------------------------------
15725 # Test for LCMS version 2.x
15726 # -------------------------------
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS support" >&5
15728 $as_echo_n "checking whether to build with LCMS support... " >&6; }
15729 lcms1includes=""
15730 lcms1libs=""
15731 lcms2includes=""
15732 lcms2libs=""
15733 with_liblcms1="no"
15734 lcms1_header_found="no"
15735 lcms2_header_found="no"
15736 have_lcms1_version=""
15737 have_lcms2_version=""
15738 with_liblcms2="yes"
15739 #
15740 # Check whether --enable-lcms2 was given.
15741 if test "${enable_lcms2+set}" = set; then :
15742   enableval=$enable_lcms2; test "$enable_lcms2" = "no"  && with_liblcms2="no"
15743 fi
15744
15745 #
15746 if test "x$with_liblcms2" = xyes ; then
15747   with_liblcms2="no"
15748   lcms2header=""
15749
15750 # Check whether --with-lcms2_includes was given.
15751 if test "${with_lcms2_includes+set}" = set; then :
15752   withval=$with_lcms2_includes;
15753 fi
15754
15755   if test -n "$with_lcms2_includes" ; then
15756    lcms2header="$with_lcms2_includes"
15757    lcms2includes="-I$with_lcms2_includes"
15758   else
15759    if test -n "$PKGCONFIG" ; then
15760      lcms2includes="`$PKGCONFIG --variable=prefix lcms2`"
15761    fi
15762    if test -n "$lcms2includes" ; then
15763     lcms2header="$lcms2_includes"
15764     lcms2includes="-I$lcms2includes/include"
15765    fi
15766   fi
15767   if test -n "$lcms2header" ; then
15768    lcms2header="$lcms2header/lcms2.h"
15769   else
15770    lcms2header="lcms2.h"
15771   fi
15772   as_ac_Header=`$as_echo "ac_cv_header_$lcms2header" | $as_tr_sh`
15773 ac_fn_c_check_header_mongrel "$LINENO" "$lcms2header" "$as_ac_Header" "$ac_includes_default"
15774 eval as_val=\$$as_ac_Header
15775    if test "x$as_val" = x""yes; then :
15776   lcms2_header_found="yes"
15777 fi
15778
15779
15780 #
15781
15782 # Check whether --with-lcms2_libraries was given.
15783 if test "${with_lcms2_libraries+set}" = set; then :
15784   withval=$with_lcms2_libraries;
15785 fi
15786
15787   if test -n "$with_lcms2_libraries" ; then
15788    lcms2libs="-L$with_lcms2_libraries -llcms2"
15789   else
15790    if test -n "$PKGCONFIG" ; then
15791      lcms2libs="`$PKGCONFIG --libs lcms2`"
15792    fi
15793    if test -z "$lcms2libs" ; then
15794     lcms2libs="-llcms2"
15795    fi
15796    lcms2libs="$lcms2libs"
15797   fi
15798   savedLIBS="$LIBS"
15799   LIBS="$lcms2libs $LIB_MATH"
15800   with_liblcms2="no"
15801 #
15802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
15803 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
15804 if test "${ac_cv_lib_lcms2_cmsOpenProfileFromFile+set}" = set; then :
15805   $as_echo_n "(cached) " >&6
15806 else
15807   ac_check_lib_save_LIBS=$LIBS
15808 LIBS="-llcms2  $LIBS"
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h.  */
15811
15812 /* Override any GCC internal prototype to avoid an error.
15813    Use char because int might match the return type of a GCC
15814    builtin and then its argument prototype would still apply.  */
15815 #ifdef __cplusplus
15816 extern "C"
15817 #endif
15818 char cmsOpenProfileFromFile ();
15819 int
15820 main ()
15821 {
15822 return cmsOpenProfileFromFile ();
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 if ac_fn_c_try_link "$LINENO"; then :
15828   ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
15829 else
15830   ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
15831 fi
15832 rm -f core conftest.err conftest.$ac_objext \
15833     conftest$ac_exeext conftest.$ac_ext
15834 LIBS=$ac_check_lib_save_LIBS
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
15837 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
15838 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = x""yes; then :
15839   cat >>confdefs.h <<_ACEOF
15840 #define HAVE_LIBLCMS2 1
15841 _ACEOF
15842
15843   LIBS="-llcms2 $LIBS"
15844
15845 else
15846   lcms2libs=""
15847 fi
15848
15849 #
15850   if test -n "$lcms2libs" ; then
15851    if test "$lcms2_header_found" = "yes" ; then
15852     with_liblcms2="yes"
15853
15854 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
15855
15856     if test -n "$PKGCONFIG" ; then
15857       have_lcms2_version="`$PKGCONFIG --modversion lcms2`"
15858     fi
15859    fi
15860   fi
15861   if test "$with_liblcms2" = "no" ; then
15862     lcms2libs=""
15863     lcms2includes=""
15864     lcms2libs=""
15865   fi
15866   LIBS="$savedLIBS $lcms2libs"
15867 fi
15868 #
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2 is usable:$with_liblcms2" >&5
15870 $as_echo "lcms2 is usable:$with_liblcms2" >&6; }
15871  if test x$with_liblcms2 = xyes; then
15872   with_liblcms2_TRUE=
15873   with_liblcms2_FALSE='#'
15874 else
15875   with_liblcms2_TRUE='#'
15876   with_liblcms2_FALSE=
15877 fi
15878
15879
15880
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2libs:$lcms2libs" >&5
15882 $as_echo "lcms2libs:$lcms2libs" >&6; }
15883 # ----------------------------
15884 # Test for LCMS version 1.x
15885 # ----------------------------
15886 if [ -z "$lcms2libs" ] ; then
15887  with_liblcms1="yes"
15888  # Check whether --enable-lcms1 was given.
15889 if test "${enable_lcms1+set}" = set; then :
15890   enableval=$enable_lcms1; test "$enable_lcms1" = "no"  && with_liblcms1="no"
15891 fi
15892
15893 #
15894  if test "x$with_liblcms1" = xyes ; then
15895    with_liblcms1="no"
15896    lcms1header=""
15897
15898 # Check whether --with-lcms1_includes was given.
15899 if test "${with_lcms1_includes+set}" = set; then :
15900   withval=$with_lcms1_includes;
15901 fi
15902
15903    if test -n "$with_lcms1_includes" ; then
15904     lcms1header="$with_lcms1_includes"
15905     lcms1includes="-I$with_lcms1_includes"
15906    else
15907     if test -n "$PKGCONFIG" ; then
15908       lcms1includes="`$PKGCONFIG --variable=includedir lcms`"
15909     fi
15910     if test -n "$lcms1includes" ; then
15911      lcms1header="$lcms1includes"
15912      lcms1includes="-I$lcms1includes"
15913     fi
15914    fi
15915    if test -n "$lcms1header" ; then
15916     lcms1header="$lcms1header/lcms.h"
15917    else
15918     lcms1header="lcms.h"
15919    fi
15920    as_ac_Header=`$as_echo "ac_cv_header_$lcms1header" | $as_tr_sh`
15921 ac_fn_c_check_header_mongrel "$LINENO" "$lcms1header" "$as_ac_Header" "$ac_includes_default"
15922 eval as_val=\$$as_ac_Header
15923    if test "x$as_val" = x""yes; then :
15924   lcms1_header_found="yes"
15925 fi
15926
15927
15928 #
15929
15930 # Check whether --with-lcms1_libraries was given.
15931 if test "${with_lcms1_libraries+set}" = set; then :
15932   withval=$with_lcms1_libraries;
15933 fi
15934
15935    if test -n "$with_lcms1_libraries" ; then
15936     lcms1libs="-L$with_lcms1_libraries -llcms"
15937    else
15938     if test -n "$PKGCONFIG" ; then
15939       lcms1libs="`$PKGCONFIG --libs lcms`"
15940     fi
15941     if test -z "$lcms1libs" ; then
15942      lcms1libs="-llcms"
15943     fi
15944     lcms1libs="$lcms1libs"
15945    fi
15946    savedLIBS="$LIBS"
15947    LIBS="$lcms1libs $LIB_MATH"
15948    with_liblcms1="no"
15949 #
15950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
15951 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
15952 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
15953   $as_echo_n "(cached) " >&6
15954 else
15955   ac_check_lib_save_LIBS=$LIBS
15956 LIBS="-llcms  $LIBS"
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h.  */
15959
15960 /* Override any GCC internal prototype to avoid an error.
15961    Use char because int might match the return type of a GCC
15962    builtin and then its argument prototype would still apply.  */
15963 #ifdef __cplusplus
15964 extern "C"
15965 #endif
15966 char cmsOpenProfileFromFile ();
15967 int
15968 main ()
15969 {
15970 return cmsOpenProfileFromFile ();
15971   ;
15972   return 0;
15973 }
15974 _ACEOF
15975 if ac_fn_c_try_link "$LINENO"; then :
15976   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
15977 else
15978   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
15979 fi
15980 rm -f core conftest.err conftest.$ac_objext \
15981     conftest$ac_exeext conftest.$ac_ext
15982 LIBS=$ac_check_lib_save_LIBS
15983 fi
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
15985 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
15986 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
15987   cat >>confdefs.h <<_ACEOF
15988 #define HAVE_LIBLCMS 1
15989 _ACEOF
15990
15991   LIBS="-llcms $LIBS"
15992
15993 else
15994   lcms1libs=""
15995 fi
15996
15997 #
15998    if test -n "$lcms1libs" ; then
15999     if test "$lcms1_header_found" = "yes" ; then
16000      with_liblcms1="yes"
16001
16002 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
16003
16004      if test -n "$PKGCONFIG" ; then
16005        have_lcms1_version="`$PKGCONFIG --modversion lcms`"
16006      fi
16007     fi
16008    fi
16009    if test "$with_liblcms1" = "no" ; then
16010      lcms1libs=""
16011      lcms1includes=""
16012      lcms1libs=""
16013    fi
16014    LIBS="$savedLIBS $lcms1libs"
16015  fi
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms is usable:$with_liblcms1" >&5
16017 $as_echo "lcms is usable:$with_liblcms1" >&6; }
16018 fi
16019 #
16020  if test x$with_liblcms1 = xyes; then
16021   with_liblcms1_TRUE=
16022   with_liblcms1_FALSE='#'
16023 else
16024   with_liblcms1_TRUE='#'
16025   with_liblcms1_FALSE=
16026 fi
16027
16028
16029
16030 #
16031 # -------------------------------
16032 # Test for USE_JPWL
16033 # -------------------------------
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with JPWL support" >&5
16035 $as_echo_n "checking whether to build with JPWL support... " >&6; }
16036 with_libjpwl="no"
16037 jpwl_dir=""
16038 # Check whether --enable-jpwl was given.
16039 if test "${enable_jpwl+set}" = set; then :
16040   enableval=$enable_jpwl; test "$enable_jpwl" = "yes" && with_libjpwl="yes"
16041 fi
16042
16043 #
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libjpwl" >&5
16045 $as_echo "$with_libjpwl" >&6; }
16046  if test x$with_libjpwl = xyes; then
16047   with_libjpwl_TRUE=
16048   with_libjpwl_FALSE='#'
16049 else
16050   with_libjpwl_TRUE='#'
16051   with_libjpwl_FALSE=
16052 fi
16053
16054 if test "$with_libjpwl" = "yes" ; then
16055  jpwl_dir="jpwl"
16056 fi
16057
16058 #
16059 # -------------------------------
16060 # Test for creating SHARED LIBS
16061 # wanted result: shared xor static
16062 # -------------------------------
16063 with_sharedlibs="yes"
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16065 $as_echo_n "checking whether to build shared libraries... " >&6; }
16066 # Check whether --enable-shared was given.
16067 if test "${enable_shared+set}" = set; then :
16068   enableval=$enable_shared; test "$enable_shared" = "no" && with_sharedlibs="no"
16069 fi
16070
16071 #
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sharedlibs" >&5
16073 $as_echo "$with_sharedlibs" >&6; }
16074  if test x$with_sharedlibs = xyes; then
16075   with_sharedlibs_TRUE=
16076   with_sharedlibs_FALSE='#'
16077 else
16078   with_sharedlibs_TRUE='#'
16079   with_sharedlibs_FALSE=
16080 fi
16081
16082 #
16083 # -------------------------------
16084 # Test for creating JP3D
16085 # -------------------------------
16086 with_jp3d="no"
16087 jp3d_dir=""
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JP3D library" >&5
16089 $as_echo_n "checking whether to build the JP3D library... " >&6; }
16090 # Check whether --enable-jp3d was given.
16091 if test "${enable_jp3d+set}" = set; then :
16092   enableval=$enable_jp3d; test "$enable_jp3d" = "yes" && with_jp3d="yes"
16093 fi
16094
16095 #
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jp3d" >&5
16097 $as_echo "$with_jp3d" >&6; }
16098 if test "$with_jp3d" = "yes" ; then
16099  jp3d_dir="jp3d"
16100 fi
16101
16102 #
16103 # Extract the first word of "doxygen", so it can be a program name with args.
16104 set dummy doxygen; ac_word=$2
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16106 $as_echo_n "checking for $ac_word... " >&6; }
16107 if test "${ac_cv_prog_with_doxygen+set}" = set; then :
16108   $as_echo_n "(cached) " >&6
16109 else
16110   if test -n "$with_doxygen"; then
16111   ac_cv_prog_with_doxygen="$with_doxygen" # Let the user override the test.
16112 else
16113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16114 for as_dir in $PATH
16115 do
16116   IFS=$as_save_IFS
16117   test -z "$as_dir" && as_dir=.
16118     for ac_exec_ext in '' $ac_executable_extensions; do
16119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16120     ac_cv_prog_with_doxygen="yes"
16121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16122     break 2
16123   fi
16124 done
16125   done
16126 IFS=$as_save_IFS
16127
16128   test -z "$ac_cv_prog_with_doxygen" && ac_cv_prog_with_doxygen="no"
16129 fi
16130 fi
16131 with_doxygen=$ac_cv_prog_with_doxygen
16132 if test -n "$with_doxygen"; then
16133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doxygen" >&5
16134 $as_echo "$with_doxygen" >&6; }
16135 else
16136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137 $as_echo "no" >&6; }
16138 fi
16139
16140
16141  if test x$with_doxygen = xyes; then
16142   with_doxygen_TRUE=
16143   with_doxygen_FALSE='#'
16144 else
16145   with_doxygen_TRUE='#'
16146   with_doxygen_FALSE=
16147 fi
16148
16149 #
16150 ac_config_files="$ac_config_files Makefile"
16151
16152 ac_config_files="$ac_config_files libopenjpeg.pc"
16153
16154 ac_config_files="$ac_config_files libopenjpeg/Makefile"
16155
16156 ac_config_files="$ac_config_files jpwl/Makefile"
16157
16158 ac_config_files="$ac_config_files codec/Makefile"
16159
16160 ac_config_files="$ac_config_files mj2/Makefile"
16161
16162 ac_config_files="$ac_config_files doc/Makefile"
16163
16164 ac_config_files="$ac_config_files jp3d/Makefile"
16165
16166 ac_config_files="$ac_config_files jp3d/libjp3dvm/Makefile"
16167
16168 ac_config_files="$ac_config_files jp3d/codec/Makefile"
16169
16170 cat >confcache <<\_ACEOF
16171 # This file is a shell script that caches the results of configure
16172 # tests run on this system so they can be shared between configure
16173 # scripts and configure runs, see configure's option --config-cache.
16174 # It is not useful on other systems.  If it contains results you don't
16175 # want to keep, you may remove or edit it.
16176 #
16177 # config.status only pays attention to the cache file if you give it
16178 # the --recheck option to rerun configure.
16179 #
16180 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16181 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16182 # following values.
16183
16184 _ACEOF
16185
16186 # The following way of writing the cache mishandles newlines in values,
16187 # but we know of no workaround that is simple, portable, and efficient.
16188 # So, we kill variables containing newlines.
16189 # Ultrix sh set writes to stderr and can't be redirected directly,
16190 # and sets the high bit in the cache file unless we assign to the vars.
16191 (
16192   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16193     eval ac_val=\$$ac_var
16194     case $ac_val in #(
16195     *${as_nl}*)
16196       case $ac_var in #(
16197       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16198 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16199       esac
16200       case $ac_var in #(
16201       _ | IFS | as_nl) ;; #(
16202       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16203       *) { eval $ac_var=; unset $ac_var;} ;;
16204       esac ;;
16205     esac
16206   done
16207
16208   (set) 2>&1 |
16209     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16210     *${as_nl}ac_space=\ *)
16211       # `set' does not quote correctly, so add quotes: double-quote
16212       # substitution turns \\\\ into \\, and sed turns \\ into \.
16213       sed -n \
16214         "s/'/'\\\\''/g;
16215           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16216       ;; #(
16217     *)
16218       # `set' quotes correctly as required by POSIX, so do not add quotes.
16219       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16220       ;;
16221     esac |
16222     sort
16223 ) |
16224   sed '
16225      /^ac_cv_env_/b end
16226      t clear
16227      :clear
16228      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16229      t end
16230      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16231      :end' >>confcache
16232 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16233   if test -w "$cache_file"; then
16234     test "x$cache_file" != "x/dev/null" &&
16235       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16236 $as_echo "$as_me: updating cache $cache_file" >&6;}
16237     cat confcache >$cache_file
16238   else
16239     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16240 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16241   fi
16242 fi
16243 rm -f confcache
16244
16245 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16246 # Let make expand exec_prefix.
16247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16248
16249 DEFS=-DHAVE_CONFIG_H
16250
16251 ac_libobjs=
16252 ac_ltlibobjs=
16253 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16254   # 1. Remove the extension, and $U if already installed.
16255   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16256   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16257   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16258   #    will be set to the directory where LIBOBJS objects are built.
16259   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16260   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16261 done
16262 LIBOBJS=$ac_libobjs
16263
16264 LTLIBOBJS=$ac_ltlibobjs
16265
16266
16267  if test -n "$EXEEXT"; then
16268   am__EXEEXT_TRUE=
16269   am__EXEEXT_FALSE='#'
16270 else
16271   am__EXEEXT_TRUE='#'
16272   am__EXEEXT_FALSE=
16273 fi
16274
16275 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16276   as_fn_error "conditional \"AMDEP\" was never defined.
16277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16278 fi
16279 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16280   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16282 fi
16283 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16284   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16286 fi
16287
16288 if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
16289   as_fn_error "conditional \"with_libpng\" was never defined.
16290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16291 fi
16292 if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
16293   as_fn_error "conditional \"with_libtiff\" was never defined.
16294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16295 fi
16296 if test -z "${with_liblcms2_TRUE}" && test -z "${with_liblcms2_FALSE}"; then
16297   as_fn_error "conditional \"with_liblcms2\" was never defined.
16298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16299 fi
16300 if test -z "${with_liblcms1_TRUE}" && test -z "${with_liblcms1_FALSE}"; then
16301   as_fn_error "conditional \"with_liblcms1\" was never defined.
16302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16303 fi
16304 if test -z "${with_libjpwl_TRUE}" && test -z "${with_libjpwl_FALSE}"; then
16305   as_fn_error "conditional \"with_libjpwl\" was never defined.
16306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16307 fi
16308 if test -z "${with_sharedlibs_TRUE}" && test -z "${with_sharedlibs_FALSE}"; then
16309   as_fn_error "conditional \"with_sharedlibs\" was never defined.
16310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16311 fi
16312 if test -z "${with_doxygen_TRUE}" && test -z "${with_doxygen_FALSE}"; then
16313   as_fn_error "conditional \"with_doxygen\" was never defined.
16314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16315 fi
16316
16317 : ${CONFIG_STATUS=./config.status}
16318 ac_write_fail=0
16319 ac_clean_files_save=$ac_clean_files
16320 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16322 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16323 as_write_fail=0
16324 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16325 #! $SHELL
16326 # Generated by $as_me.
16327 # Run this file to recreate the current configuration.
16328 # Compiler output produced by configure, useful for debugging
16329 # configure, is in config.log if it exists.
16330
16331 debug=false
16332 ac_cs_recheck=false
16333 ac_cs_silent=false
16334
16335 SHELL=\${CONFIG_SHELL-$SHELL}
16336 export SHELL
16337 _ASEOF
16338 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16339 ## -------------------- ##
16340 ## M4sh Initialization. ##
16341 ## -------------------- ##
16342
16343 # Be more Bourne compatible
16344 DUALCASE=1; export DUALCASE # for MKS sh
16345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16346   emulate sh
16347   NULLCMD=:
16348   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16349   # is contrary to our usage.  Disable this feature.
16350   alias -g '${1+"$@"}'='"$@"'
16351   setopt NO_GLOB_SUBST
16352 else
16353   case `(set -o) 2>/dev/null` in #(
16354   *posix*) :
16355     set -o posix ;; #(
16356   *) :
16357      ;;
16358 esac
16359 fi
16360
16361
16362 as_nl='
16363 '
16364 export as_nl
16365 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16366 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16367 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16368 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16369 # Prefer a ksh shell builtin over an external printf program on Solaris,
16370 # but without wasting forks for bash or zsh.
16371 if test -z "$BASH_VERSION$ZSH_VERSION" \
16372     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16373   as_echo='print -r --'
16374   as_echo_n='print -rn --'
16375 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16376   as_echo='printf %s\n'
16377   as_echo_n='printf %s'
16378 else
16379   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16380     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16381     as_echo_n='/usr/ucb/echo -n'
16382   else
16383     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16384     as_echo_n_body='eval
16385       arg=$1;
16386       case $arg in #(
16387       *"$as_nl"*)
16388         expr "X$arg" : "X\\(.*\\)$as_nl";
16389         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16390       esac;
16391       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16392     '
16393     export as_echo_n_body
16394     as_echo_n='sh -c $as_echo_n_body as_echo'
16395   fi
16396   export as_echo_body
16397   as_echo='sh -c $as_echo_body as_echo'
16398 fi
16399
16400 # The user is always right.
16401 if test "${PATH_SEPARATOR+set}" != set; then
16402   PATH_SEPARATOR=:
16403   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16404     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16405       PATH_SEPARATOR=';'
16406   }
16407 fi
16408
16409
16410 # IFS
16411 # We need space, tab and new line, in precisely that order.  Quoting is
16412 # there to prevent editors from complaining about space-tab.
16413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16414 # splitting by setting IFS to empty value.)
16415 IFS=" ""        $as_nl"
16416
16417 # Find who we are.  Look in the path if we contain no directory separator.
16418 case $0 in #((
16419   *[\\/]* ) as_myself=$0 ;;
16420   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16421 for as_dir in $PATH
16422 do
16423   IFS=$as_save_IFS
16424   test -z "$as_dir" && as_dir=.
16425     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16426   done
16427 IFS=$as_save_IFS
16428
16429      ;;
16430 esac
16431 # We did not find ourselves, most probably we were run as `sh COMMAND'
16432 # in which case we are not to be found in the path.
16433 if test "x$as_myself" = x; then
16434   as_myself=$0
16435 fi
16436 if test ! -f "$as_myself"; then
16437   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16438   exit 1
16439 fi
16440
16441 # Unset variables that we do not need and which cause bugs (e.g. in
16442 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16443 # suppresses any "Segmentation fault" message there.  '((' could
16444 # trigger a bug in pdksh 5.2.14.
16445 for as_var in BASH_ENV ENV MAIL MAILPATH
16446 do eval test x\${$as_var+set} = xset \
16447   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16448 done
16449 PS1='$ '
16450 PS2='> '
16451 PS4='+ '
16452
16453 # NLS nuisances.
16454 LC_ALL=C
16455 export LC_ALL
16456 LANGUAGE=C
16457 export LANGUAGE
16458
16459 # CDPATH.
16460 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16461
16462
16463 # as_fn_error ERROR [LINENO LOG_FD]
16464 # ---------------------------------
16465 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16466 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16467 # script with status $?, using 1 if that was 0.
16468 as_fn_error ()
16469 {
16470   as_status=$?; test $as_status -eq 0 && as_status=1
16471   if test "$3"; then
16472     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16473     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16474   fi
16475   $as_echo "$as_me: error: $1" >&2
16476   as_fn_exit $as_status
16477 } # as_fn_error
16478
16479
16480 # as_fn_set_status STATUS
16481 # -----------------------
16482 # Set $? to STATUS, without forking.
16483 as_fn_set_status ()
16484 {
16485   return $1
16486 } # as_fn_set_status
16487
16488 # as_fn_exit STATUS
16489 # -----------------
16490 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16491 as_fn_exit ()
16492 {
16493   set +e
16494   as_fn_set_status $1
16495   exit $1
16496 } # as_fn_exit
16497
16498 # as_fn_unset VAR
16499 # ---------------
16500 # Portably unset VAR.
16501 as_fn_unset ()
16502 {
16503   { eval $1=; unset $1;}
16504 }
16505 as_unset=as_fn_unset
16506 # as_fn_append VAR VALUE
16507 # ----------------------
16508 # Append the text in VALUE to the end of the definition contained in VAR. Take
16509 # advantage of any shell optimizations that allow amortized linear growth over
16510 # repeated appends, instead of the typical quadratic growth present in naive
16511 # implementations.
16512 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16513   eval 'as_fn_append ()
16514   {
16515     eval $1+=\$2
16516   }'
16517 else
16518   as_fn_append ()
16519   {
16520     eval $1=\$$1\$2
16521   }
16522 fi # as_fn_append
16523
16524 # as_fn_arith ARG...
16525 # ------------------
16526 # Perform arithmetic evaluation on the ARGs, and store the result in the
16527 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16528 # must be portable across $(()) and expr.
16529 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16530   eval 'as_fn_arith ()
16531   {
16532     as_val=$(( $* ))
16533   }'
16534 else
16535   as_fn_arith ()
16536   {
16537     as_val=`expr "$@" || test $? -eq 1`
16538   }
16539 fi # as_fn_arith
16540
16541
16542 if expr a : '\(a\)' >/dev/null 2>&1 &&
16543    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16544   as_expr=expr
16545 else
16546   as_expr=false
16547 fi
16548
16549 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16550   as_basename=basename
16551 else
16552   as_basename=false
16553 fi
16554
16555 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16556   as_dirname=dirname
16557 else
16558   as_dirname=false
16559 fi
16560
16561 as_me=`$as_basename -- "$0" ||
16562 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16563          X"$0" : 'X\(//\)$' \| \
16564          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16565 $as_echo X/"$0" |
16566     sed '/^.*\/\([^/][^/]*\)\/*$/{
16567             s//\1/
16568             q
16569           }
16570           /^X\/\(\/\/\)$/{
16571             s//\1/
16572             q
16573           }
16574           /^X\/\(\/\).*/{
16575             s//\1/
16576             q
16577           }
16578           s/.*/./; q'`
16579
16580 # Avoid depending upon Character Ranges.
16581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16584 as_cr_digits='0123456789'
16585 as_cr_alnum=$as_cr_Letters$as_cr_digits
16586
16587 ECHO_C= ECHO_N= ECHO_T=
16588 case `echo -n x` in #(((((
16589 -n*)
16590   case `echo 'xy\c'` in
16591   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16592   xy)  ECHO_C='\c';;
16593   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16594        ECHO_T=' ';;
16595   esac;;
16596 *)
16597   ECHO_N='-n';;
16598 esac
16599
16600 rm -f conf$$ conf$$.exe conf$$.file
16601 if test -d conf$$.dir; then
16602   rm -f conf$$.dir/conf$$.file
16603 else
16604   rm -f conf$$.dir
16605   mkdir conf$$.dir 2>/dev/null
16606 fi
16607 if (echo >conf$$.file) 2>/dev/null; then
16608   if ln -s conf$$.file conf$$ 2>/dev/null; then
16609     as_ln_s='ln -s'
16610     # ... but there are two gotchas:
16611     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16612     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16613     # In both cases, we have to default to `cp -p'.
16614     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16615       as_ln_s='cp -p'
16616   elif ln conf$$.file conf$$ 2>/dev/null; then
16617     as_ln_s=ln
16618   else
16619     as_ln_s='cp -p'
16620   fi
16621 else
16622   as_ln_s='cp -p'
16623 fi
16624 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16625 rmdir conf$$.dir 2>/dev/null
16626
16627
16628 # as_fn_mkdir_p
16629 # -------------
16630 # Create "$as_dir" as a directory, including parents if necessary.
16631 as_fn_mkdir_p ()
16632 {
16633
16634   case $as_dir in #(
16635   -*) as_dir=./$as_dir;;
16636   esac
16637   test -d "$as_dir" || eval $as_mkdir_p || {
16638     as_dirs=
16639     while :; do
16640       case $as_dir in #(
16641       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16642       *) as_qdir=$as_dir;;
16643       esac
16644       as_dirs="'$as_qdir' $as_dirs"
16645       as_dir=`$as_dirname -- "$as_dir" ||
16646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16647          X"$as_dir" : 'X\(//\)[^/]' \| \
16648          X"$as_dir" : 'X\(//\)$' \| \
16649          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16650 $as_echo X"$as_dir" |
16651     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16652             s//\1/
16653             q
16654           }
16655           /^X\(\/\/\)[^/].*/{
16656             s//\1/
16657             q
16658           }
16659           /^X\(\/\/\)$/{
16660             s//\1/
16661             q
16662           }
16663           /^X\(\/\).*/{
16664             s//\1/
16665             q
16666           }
16667           s/.*/./; q'`
16668       test -d "$as_dir" && break
16669     done
16670     test -z "$as_dirs" || eval "mkdir $as_dirs"
16671   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16672
16673
16674 } # as_fn_mkdir_p
16675 if mkdir -p . 2>/dev/null; then
16676   as_mkdir_p='mkdir -p "$as_dir"'
16677 else
16678   test -d ./-p && rmdir ./-p
16679   as_mkdir_p=false
16680 fi
16681
16682 if test -x / >/dev/null 2>&1; then
16683   as_test_x='test -x'
16684 else
16685   if ls -dL / >/dev/null 2>&1; then
16686     as_ls_L_option=L
16687   else
16688     as_ls_L_option=
16689   fi
16690   as_test_x='
16691     eval sh -c '\''
16692       if test -d "$1"; then
16693         test -d "$1/.";
16694       else
16695         case $1 in #(
16696         -*)set "./$1";;
16697         esac;
16698         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16699         ???[sx]*):;;*)false;;esac;fi
16700     '\'' sh
16701   '
16702 fi
16703 as_executable_p=$as_test_x
16704
16705 # Sed expression to map a string onto a valid CPP name.
16706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16707
16708 # Sed expression to map a string onto a valid variable name.
16709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16710
16711
16712 exec 6>&1
16713 ## ----------------------------------- ##
16714 ## Main body of $CONFIG_STATUS script. ##
16715 ## ----------------------------------- ##
16716 _ASEOF
16717 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16718
16719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16720 # Save the log message, to keep $0 and so on meaningful, and to
16721 # report actual input values of CONFIG_FILES etc. instead of their
16722 # values after options handling.
16723 ac_log="
16724 This file was extended by OpenJPEG $as_me 1.4.0, which was
16725 generated by GNU Autoconf 2.65.  Invocation command line was
16726
16727   CONFIG_FILES    = $CONFIG_FILES
16728   CONFIG_HEADERS  = $CONFIG_HEADERS
16729   CONFIG_LINKS    = $CONFIG_LINKS
16730   CONFIG_COMMANDS = $CONFIG_COMMANDS
16731   $ $0 $@
16732
16733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16734 "
16735
16736 _ACEOF
16737
16738 case $ac_config_files in *"
16739 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16740 esac
16741
16742 case $ac_config_headers in *"
16743 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16744 esac
16745
16746
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 # Files that config.status was made for.
16749 config_files="$ac_config_files"
16750 config_headers="$ac_config_headers"
16751 config_commands="$ac_config_commands"
16752
16753 _ACEOF
16754
16755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16756 ac_cs_usage="\
16757 \`$as_me' instantiates files and other configuration actions
16758 from templates according to the current configuration.  Unless the files
16759 and actions are specified as TAGs, all are instantiated by default.
16760
16761 Usage: $0 [OPTION]... [TAG]...
16762
16763   -h, --help       print this help, then exit
16764   -V, --version    print version number and configuration settings, then exit
16765       --config     print configuration, then exit
16766   -q, --quiet, --silent
16767                    do not print progress messages
16768   -d, --debug      don't remove temporary files
16769       --recheck    update $as_me by reconfiguring in the same conditions
16770       --file=FILE[:TEMPLATE]
16771                    instantiate the configuration file FILE
16772       --header=FILE[:TEMPLATE]
16773                    instantiate the configuration header FILE
16774
16775 Configuration files:
16776 $config_files
16777
16778 Configuration headers:
16779 $config_headers
16780
16781 Configuration commands:
16782 $config_commands
16783
16784 Report bugs to <http://code.google.com/p/openjpeg/>.
16785 OpenJPEG home page: <http://www.openjpeg.org/>."
16786
16787 _ACEOF
16788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16789 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16790 ac_cs_version="\\
16791 OpenJPEG config.status 1.4.0
16792 configured by $0, generated by GNU Autoconf 2.65,
16793   with options \\"\$ac_cs_config\\"
16794
16795 Copyright (C) 2009 Free Software Foundation, Inc.
16796 This config.status script is free software; the Free Software Foundation
16797 gives unlimited permission to copy, distribute and modify it."
16798
16799 ac_pwd='$ac_pwd'
16800 srcdir='$srcdir'
16801 INSTALL='$INSTALL'
16802 MKDIR_P='$MKDIR_P'
16803 AWK='$AWK'
16804 test -n "\$AWK" || AWK=awk
16805 _ACEOF
16806
16807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16808 # The default lists apply if the user does not specify any file.
16809 ac_need_defaults=:
16810 while test $# != 0
16811 do
16812   case $1 in
16813   --*=*)
16814     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16815     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16816     ac_shift=:
16817     ;;
16818   *)
16819     ac_option=$1
16820     ac_optarg=$2
16821     ac_shift=shift
16822     ;;
16823   esac
16824
16825   case $ac_option in
16826   # Handling of the options.
16827   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16828     ac_cs_recheck=: ;;
16829   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16830     $as_echo "$ac_cs_version"; exit ;;
16831   --config | --confi | --conf | --con | --co | --c )
16832     $as_echo "$ac_cs_config"; exit ;;
16833   --debug | --debu | --deb | --de | --d | -d )
16834     debug=: ;;
16835   --file | --fil | --fi | --f )
16836     $ac_shift
16837     case $ac_optarg in
16838     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16839     esac
16840     as_fn_append CONFIG_FILES " '$ac_optarg'"
16841     ac_need_defaults=false;;
16842   --header | --heade | --head | --hea )
16843     $ac_shift
16844     case $ac_optarg in
16845     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16846     esac
16847     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16848     ac_need_defaults=false;;
16849   --he | --h)
16850     # Conflict between --help and --header
16851     as_fn_error "ambiguous option: \`$1'
16852 Try \`$0 --help' for more information.";;
16853   --help | --hel | -h )
16854     $as_echo "$ac_cs_usage"; exit ;;
16855   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16856   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16857     ac_cs_silent=: ;;
16858
16859   # This is an error.
16860   -*) as_fn_error "unrecognized option: \`$1'
16861 Try \`$0 --help' for more information." ;;
16862
16863   *) as_fn_append ac_config_targets " $1"
16864      ac_need_defaults=false ;;
16865
16866   esac
16867   shift
16868 done
16869
16870 ac_configure_extra_args=
16871
16872 if $ac_cs_silent; then
16873   exec 6>/dev/null
16874   ac_configure_extra_args="$ac_configure_extra_args --silent"
16875 fi
16876
16877 _ACEOF
16878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16879 if \$ac_cs_recheck; then
16880   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16881   shift
16882   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16883   CONFIG_SHELL='$SHELL'
16884   export CONFIG_SHELL
16885   exec "\$@"
16886 fi
16887
16888 _ACEOF
16889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16890 exec 5>>config.log
16891 {
16892   echo
16893   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16894 ## Running $as_me. ##
16895 _ASBOX
16896   $as_echo "$ac_log"
16897 } >&5
16898
16899 _ACEOF
16900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16901 #
16902 # INIT-COMMANDS
16903 #
16904 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16905
16906
16907 # The HP-UX ksh and POSIX shell print the target directory to stdout
16908 # if CDPATH is set.
16909 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16910
16911 sed_quote_subst='$sed_quote_subst'
16912 double_quote_subst='$double_quote_subst'
16913 delay_variable_subst='$delay_variable_subst'
16914 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16915 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16916 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16917 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16918 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16919 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16920 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16921 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16922 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16923 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16924 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16925 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16926 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16927 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16928 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16929 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16930 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16931 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16932 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16933 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16934 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16935 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16936 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16937 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16938 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16939 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16940 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16941 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16942 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16943 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16944 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16945 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16946 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16947 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16948 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16949 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16950 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16951 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16952 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16953 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16954 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16955 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16956 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16957 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16958 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16959 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16960 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16961 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16962 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16963 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16964 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16965 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16966 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16967 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16968 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16969 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16970 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16971 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16972 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16973 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16974 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16975 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16976 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16977 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16978 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16979 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16980 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16981 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16982 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16983 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16984 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16985 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16986 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16987 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16988 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16989 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16990 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16991 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16992 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16993 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16994 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16995 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16996 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16997 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16998 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16999 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17000 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17001 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17002 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17003 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17004 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17005 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17006 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17007 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17008 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17009 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17010 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17011 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17012 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17013 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17014 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17015 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17016 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17017 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17018 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17019 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17020 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17021 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17022 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17023 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17024 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17025 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17026 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17027 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17028 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17029 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17030 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17031 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17032 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17033 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17034 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17035 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17036 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17037 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17038 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17039 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17040 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17041 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17042 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17043 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17044 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17045 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17046 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17047 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17048 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17049 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17050 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17051 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17052 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17053 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17054 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17055 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17056 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17057 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17058 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17059 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17060 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17061 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17062 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17063 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17064 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17065 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17066 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17067 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17068 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17069 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17070 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17071 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17072 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17073 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17074 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17075 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17076 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17077 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17078 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17079 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17080 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17081 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17082 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17083 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17084 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17085 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17086 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17087 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17088 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17089 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17090 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17091
17092 LTCC='$LTCC'
17093 LTCFLAGS='$LTCFLAGS'
17094 compiler='$compiler_DEFAULT'
17095
17096 # A function that is used when there is no print builtin or printf.
17097 func_fallback_echo ()
17098 {
17099   eval 'cat <<_LTECHO_EOF
17100 \$1
17101 _LTECHO_EOF'
17102 }
17103
17104 # Quote evaled strings.
17105 for var in AS \
17106 DLLTOOL \
17107 OBJDUMP \
17108 SHELL \
17109 ECHO \
17110 SED \
17111 GREP \
17112 EGREP \
17113 FGREP \
17114 LD \
17115 NM \
17116 LN_S \
17117 lt_SP2NL \
17118 lt_NL2SP \
17119 reload_flag \
17120 deplibs_check_method \
17121 file_magic_cmd \
17122 AR \
17123 AR_FLAGS \
17124 STRIP \
17125 RANLIB \
17126 CC \
17127 CFLAGS \
17128 compiler \
17129 lt_cv_sys_global_symbol_pipe \
17130 lt_cv_sys_global_symbol_to_cdecl \
17131 lt_cv_sys_global_symbol_to_c_name_address \
17132 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17133 lt_prog_compiler_no_builtin_flag \
17134 lt_prog_compiler_wl \
17135 lt_prog_compiler_pic \
17136 lt_prog_compiler_static \
17137 lt_cv_prog_compiler_c_o \
17138 need_locks \
17139 DSYMUTIL \
17140 NMEDIT \
17141 LIPO \
17142 OTOOL \
17143 OTOOL64 \
17144 shrext_cmds \
17145 export_dynamic_flag_spec \
17146 whole_archive_flag_spec \
17147 compiler_needs_object \
17148 with_gnu_ld \
17149 allow_undefined_flag \
17150 no_undefined_flag \
17151 hardcode_libdir_flag_spec \
17152 hardcode_libdir_flag_spec_ld \
17153 hardcode_libdir_separator \
17154 fix_srcfile_path \
17155 exclude_expsyms \
17156 include_expsyms \
17157 file_list_spec \
17158 variables_saved_for_relink \
17159 libname_spec \
17160 library_names_spec \
17161 soname_spec \
17162 install_override_mode \
17163 finish_eval \
17164 old_striplib \
17165 striplib \
17166 compiler_lib_search_dirs \
17167 predep_objects \
17168 postdep_objects \
17169 predeps \
17170 postdeps \
17171 compiler_lib_search_path \
17172 LD_CXX \
17173 reload_flag_CXX \
17174 compiler_CXX \
17175 lt_prog_compiler_no_builtin_flag_CXX \
17176 lt_prog_compiler_wl_CXX \
17177 lt_prog_compiler_pic_CXX \
17178 lt_prog_compiler_static_CXX \
17179 lt_cv_prog_compiler_c_o_CXX \
17180 export_dynamic_flag_spec_CXX \
17181 whole_archive_flag_spec_CXX \
17182 compiler_needs_object_CXX \
17183 with_gnu_ld_CXX \
17184 allow_undefined_flag_CXX \
17185 no_undefined_flag_CXX \
17186 hardcode_libdir_flag_spec_CXX \
17187 hardcode_libdir_flag_spec_ld_CXX \
17188 hardcode_libdir_separator_CXX \
17189 fix_srcfile_path_CXX \
17190 exclude_expsyms_CXX \
17191 include_expsyms_CXX \
17192 file_list_spec_CXX \
17193 compiler_lib_search_dirs_CXX \
17194 predep_objects_CXX \
17195 postdep_objects_CXX \
17196 predeps_CXX \
17197 postdeps_CXX \
17198 compiler_lib_search_path_CXX; do
17199     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17200     *[\\\\\\\`\\"\\\$]*)
17201       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17202       ;;
17203     *)
17204       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17205       ;;
17206     esac
17207 done
17208
17209 # Double-quote double-evaled strings.
17210 for var in reload_cmds \
17211 old_postinstall_cmds \
17212 old_postuninstall_cmds \
17213 old_archive_cmds \
17214 extract_expsyms_cmds \
17215 old_archive_from_new_cmds \
17216 old_archive_from_expsyms_cmds \
17217 archive_cmds \
17218 archive_expsym_cmds \
17219 module_cmds \
17220 module_expsym_cmds \
17221 export_symbols_cmds \
17222 prelink_cmds \
17223 postinstall_cmds \
17224 postuninstall_cmds \
17225 finish_cmds \
17226 sys_lib_search_path_spec \
17227 sys_lib_dlsearch_path_spec \
17228 reload_cmds_CXX \
17229 old_archive_cmds_CXX \
17230 old_archive_from_new_cmds_CXX \
17231 old_archive_from_expsyms_cmds_CXX \
17232 archive_cmds_CXX \
17233 archive_expsym_cmds_CXX \
17234 module_cmds_CXX \
17235 module_expsym_cmds_CXX \
17236 export_symbols_cmds_CXX \
17237 prelink_cmds_CXX; do
17238     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17239     *[\\\\\\\`\\"\\\$]*)
17240       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17241       ;;
17242     *)
17243       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17244       ;;
17245     esac
17246 done
17247
17248 ac_aux_dir='$ac_aux_dir'
17249 xsi_shell='$xsi_shell'
17250 lt_shell_append='$lt_shell_append'
17251
17252 # See if we are running on zsh, and set the options which allow our
17253 # commands through without removal of \ escapes INIT.
17254 if test -n "\${ZSH_VERSION+set}" ; then
17255    setopt NO_GLOB_SUBST
17256 fi
17257
17258
17259     PACKAGE='$PACKAGE'
17260     VERSION='$VERSION'
17261     TIMESTAMP='$TIMESTAMP'
17262     RM='$RM'
17263     ofile='$ofile'
17264
17265
17266
17267
17268
17269
17270 _ACEOF
17271
17272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17273
17274 # Handling of arguments.
17275 for ac_config_target in $ac_config_targets
17276 do
17277   case $ac_config_target in
17278     "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
17279     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17280     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17281     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17282     "libopenjpeg.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg.pc" ;;
17283     "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
17284     "jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES jpwl/Makefile" ;;
17285     "codec/Makefile") CONFIG_FILES="$CONFIG_FILES codec/Makefile" ;;
17286     "mj2/Makefile") CONFIG_FILES="$CONFIG_FILES mj2/Makefile" ;;
17287     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17288     "jp3d/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/Makefile" ;;
17289     "jp3d/libjp3dvm/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/libjp3dvm/Makefile" ;;
17290     "jp3d/codec/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/codec/Makefile" ;;
17291
17292   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17293   esac
17294 done
17295
17296
17297 # If the user did not use the arguments to specify the items to instantiate,
17298 # then the envvar interface is used.  Set only those that are not.
17299 # We use the long form for the default assignment because of an extremely
17300 # bizarre bug on SunOS 4.1.3.
17301 if $ac_need_defaults; then
17302   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17303   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17304   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17305 fi
17306
17307 # Have a temporary directory for convenience.  Make it in the build tree
17308 # simply because there is no reason against having it here, and in addition,
17309 # creating and moving files from /tmp can sometimes cause problems.
17310 # Hook for its removal unless debugging.
17311 # Note that there is a small window in which the directory will not be cleaned:
17312 # after its creation but before its name has been assigned to `$tmp'.
17313 $debug ||
17314 {
17315   tmp=
17316   trap 'exit_status=$?
17317   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17318 ' 0
17319   trap 'as_fn_exit 1' 1 2 13 15
17320 }
17321 # Create a (secure) tmp directory for tmp files.
17322
17323 {
17324   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17325   test -n "$tmp" && test -d "$tmp"
17326 }  ||
17327 {
17328   tmp=./conf$$-$RANDOM
17329   (umask 077 && mkdir "$tmp")
17330 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17331
17332 # Set up the scripts for CONFIG_FILES section.
17333 # No need to generate them if there are no CONFIG_FILES.
17334 # This happens for instance with `./config.status config.h'.
17335 if test -n "$CONFIG_FILES"; then
17336
17337
17338 ac_cr=`echo X | tr X '\015'`
17339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17340 # But we know of no other shell where ac_cr would be empty at this
17341 # point, so we can use a bashism as a fallback.
17342 if test "x$ac_cr" = x; then
17343   eval ac_cr=\$\'\\r\'
17344 fi
17345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17347   ac_cs_awk_cr='\r'
17348 else
17349   ac_cs_awk_cr=$ac_cr
17350 fi
17351
17352 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17353 _ACEOF
17354
17355
17356 {
17357   echo "cat >conf$$subs.awk <<_ACEOF" &&
17358   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17359   echo "_ACEOF"
17360 } >conf$$subs.sh ||
17361   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17362 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17363 ac_delim='%!_!# '
17364 for ac_last_try in false false false false false :; do
17365   . ./conf$$subs.sh ||
17366     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17367
17368   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17369   if test $ac_delim_n = $ac_delim_num; then
17370     break
17371   elif $ac_last_try; then
17372     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17373   else
17374     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17375   fi
17376 done
17377 rm -f conf$$subs.sh
17378
17379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17380 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17381 _ACEOF
17382 sed -n '
17383 h
17384 s/^/S["/; s/!.*/"]=/
17385 p
17386 g
17387 s/^[^!]*!//
17388 :repl
17389 t repl
17390 s/'"$ac_delim"'$//
17391 t delim
17392 :nl
17393 h
17394 s/\(.\{148\}\)..*/\1/
17395 t more1
17396 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17397 p
17398 n
17399 b repl
17400 :more1
17401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17402 p
17403 g
17404 s/.\{148\}//
17405 t nl
17406 :delim
17407 h
17408 s/\(.\{148\}\)..*/\1/
17409 t more2
17410 s/["\\]/\\&/g; s/^/"/; s/$/"/
17411 p
17412 b
17413 :more2
17414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17415 p
17416 g
17417 s/.\{148\}//
17418 t delim
17419 ' <conf$$subs.awk | sed '
17420 /^[^""]/{
17421   N
17422   s/\n//
17423 }
17424 ' >>$CONFIG_STATUS || ac_write_fail=1
17425 rm -f conf$$subs.awk
17426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17427 _ACAWK
17428 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17429   for (key in S) S_is_set[key] = 1
17430   FS = "\a"
17431
17432 }
17433 {
17434   line = $ 0
17435   nfields = split(line, field, "@")
17436   substed = 0
17437   len = length(field[1])
17438   for (i = 2; i < nfields; i++) {
17439     key = field[i]
17440     keylen = length(key)
17441     if (S_is_set[key]) {
17442       value = S[key]
17443       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17444       len += length(value) + length(field[++i])
17445       substed = 1
17446     } else
17447       len += 1 + keylen
17448   }
17449
17450   print line
17451 }
17452
17453 _ACAWK
17454 _ACEOF
17455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17456 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17457   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17458 else
17459   cat
17460 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17461   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17462 _ACEOF
17463
17464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17466 # trailing colons and then remove the whole line if VPATH becomes empty
17467 # (actually we leave an empty line to preserve line numbers).
17468 if test "x$srcdir" = x.; then
17469   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17470 s/:*\$(srcdir):*/:/
17471 s/:*\${srcdir}:*/:/
17472 s/:*@srcdir@:*/:/
17473 s/^\([^=]*=[     ]*\):*/\1/
17474 s/:*$//
17475 s/^[^=]*=[       ]*$//
17476 }'
17477 fi
17478
17479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17480 fi # test -n "$CONFIG_FILES"
17481
17482 # Set up the scripts for CONFIG_HEADERS section.
17483 # No need to generate them if there are no CONFIG_HEADERS.
17484 # This happens for instance with `./config.status Makefile'.
17485 if test -n "$CONFIG_HEADERS"; then
17486 cat >"$tmp/defines.awk" <<\_ACAWK ||
17487 BEGIN {
17488 _ACEOF
17489
17490 # Transform confdefs.h into an awk script `defines.awk', embedded as
17491 # here-document in config.status, that substitutes the proper values into
17492 # config.h.in to produce config.h.
17493
17494 # Create a delimiter string that does not exist in confdefs.h, to ease
17495 # handling of long lines.
17496 ac_delim='%!_!# '
17497 for ac_last_try in false false :; do
17498   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17499   if test -z "$ac_t"; then
17500     break
17501   elif $ac_last_try; then
17502     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17503   else
17504     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17505   fi
17506 done
17507
17508 # For the awk script, D is an array of macro values keyed by name,
17509 # likewise P contains macro parameters if any.  Preserve backslash
17510 # newline sequences.
17511
17512 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17513 sed -n '
17514 s/.\{148\}/&'"$ac_delim"'/g
17515 t rset
17516 :rset
17517 s/^[     ]*#[    ]*define[       ][      ]*/ /
17518 t def
17519 d
17520 :def
17521 s/\\$//
17522 t bsnl
17523 s/["\\]/\\&/g
17524 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17525 D["\1"]=" \3"/p
17526 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17527 d
17528 :bsnl
17529 s/["\\]/\\&/g
17530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17531 D["\1"]=" \3\\\\\\n"\\/p
17532 t cont
17533 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17534 t cont
17535 d
17536 :cont
17537 n
17538 s/.\{148\}/&'"$ac_delim"'/g
17539 t clear
17540 :clear
17541 s/\\$//
17542 t bsnlc
17543 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17544 d
17545 :bsnlc
17546 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17547 b cont
17548 ' <confdefs.h | sed '
17549 s/'"$ac_delim"'/"\\\
17550 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17551
17552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17553   for (key in D) D_is_set[key] = 1
17554   FS = "\a"
17555 }
17556 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17557   line = \$ 0
17558   split(line, arg, " ")
17559   if (arg[1] == "#") {
17560     defundef = arg[2]
17561     mac1 = arg[3]
17562   } else {
17563     defundef = substr(arg[1], 2)
17564     mac1 = arg[2]
17565   }
17566   split(mac1, mac2, "(") #)
17567   macro = mac2[1]
17568   prefix = substr(line, 1, index(line, defundef) - 1)
17569   if (D_is_set[macro]) {
17570     # Preserve the white space surrounding the "#".
17571     print prefix "define", macro P[macro] D[macro]
17572     next
17573   } else {
17574     # Replace #undef with comments.  This is necessary, for example,
17575     # in the case of _POSIX_SOURCE, which is predefined and required
17576     # on some systems where configure will not decide to define it.
17577     if (defundef == "undef") {
17578       print "/*", prefix defundef, macro, "*/"
17579       next
17580     }
17581   }
17582 }
17583 { print }
17584 _ACAWK
17585 _ACEOF
17586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17587   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17588 fi # test -n "$CONFIG_HEADERS"
17589
17590
17591 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17592 shift
17593 for ac_tag
17594 do
17595   case $ac_tag in
17596   :[FHLC]) ac_mode=$ac_tag; continue;;
17597   esac
17598   case $ac_mode$ac_tag in
17599   :[FHL]*:*);;
17600   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17601   :[FH]-) ac_tag=-:-;;
17602   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17603   esac
17604   ac_save_IFS=$IFS
17605   IFS=:
17606   set x $ac_tag
17607   IFS=$ac_save_IFS
17608   shift
17609   ac_file=$1
17610   shift
17611
17612   case $ac_mode in
17613   :L) ac_source=$1;;
17614   :[FH])
17615     ac_file_inputs=
17616     for ac_f
17617     do
17618       case $ac_f in
17619       -) ac_f="$tmp/stdin";;
17620       *) # Look for the file first in the build tree, then in the source tree
17621          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17622          # because $ac_f cannot contain `:'.
17623          test -f "$ac_f" ||
17624            case $ac_f in
17625            [\\/$]*) false;;
17626            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17627            esac ||
17628            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17629       esac
17630       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17631       as_fn_append ac_file_inputs " '$ac_f'"
17632     done
17633
17634     # Let's still pretend it is `configure' which instantiates (i.e., don't
17635     # use $as_me), people would be surprised to read:
17636     #    /* config.h.  Generated by config.status.  */
17637     configure_input='Generated from '`
17638           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17639         `' by configure.'
17640     if test x"$ac_file" != x-; then
17641       configure_input="$ac_file.  $configure_input"
17642       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17643 $as_echo "$as_me: creating $ac_file" >&6;}
17644     fi
17645     # Neutralize special characters interpreted by sed in replacement strings.
17646     case $configure_input in #(
17647     *\&* | *\|* | *\\* )
17648        ac_sed_conf_input=`$as_echo "$configure_input" |
17649        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17650     *) ac_sed_conf_input=$configure_input;;
17651     esac
17652
17653     case $ac_tag in
17654     *:-:* | *:-) cat >"$tmp/stdin" \
17655       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17656     esac
17657     ;;
17658   esac
17659
17660   ac_dir=`$as_dirname -- "$ac_file" ||
17661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17662          X"$ac_file" : 'X\(//\)[^/]' \| \
17663          X"$ac_file" : 'X\(//\)$' \| \
17664          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17665 $as_echo X"$ac_file" |
17666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17667             s//\1/
17668             q
17669           }
17670           /^X\(\/\/\)[^/].*/{
17671             s//\1/
17672             q
17673           }
17674           /^X\(\/\/\)$/{
17675             s//\1/
17676             q
17677           }
17678           /^X\(\/\).*/{
17679             s//\1/
17680             q
17681           }
17682           s/.*/./; q'`
17683   as_dir="$ac_dir"; as_fn_mkdir_p
17684   ac_builddir=.
17685
17686 case "$ac_dir" in
17687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17688 *)
17689   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17690   # A ".." for each directory in $ac_dir_suffix.
17691   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17692   case $ac_top_builddir_sub in
17693   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17694   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17695   esac ;;
17696 esac
17697 ac_abs_top_builddir=$ac_pwd
17698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17699 # for backward compatibility:
17700 ac_top_builddir=$ac_top_build_prefix
17701
17702 case $srcdir in
17703   .)  # We are building in place.
17704     ac_srcdir=.
17705     ac_top_srcdir=$ac_top_builddir_sub
17706     ac_abs_top_srcdir=$ac_pwd ;;
17707   [\\/]* | ?:[\\/]* )  # Absolute name.
17708     ac_srcdir=$srcdir$ac_dir_suffix;
17709     ac_top_srcdir=$srcdir
17710     ac_abs_top_srcdir=$srcdir ;;
17711   *) # Relative name.
17712     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17713     ac_top_srcdir=$ac_top_build_prefix$srcdir
17714     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17715 esac
17716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17717
17718
17719   case $ac_mode in
17720   :F)
17721   #
17722   # CONFIG_FILE
17723   #
17724
17725   case $INSTALL in
17726   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17727   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17728   esac
17729   ac_MKDIR_P=$MKDIR_P
17730   case $MKDIR_P in
17731   [\\/$]* | ?:[\\/]* ) ;;
17732   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17733   esac
17734 _ACEOF
17735
17736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17737 # If the template does not know about datarootdir, expand it.
17738 # FIXME: This hack should be removed a few years after 2.60.
17739 ac_datarootdir_hack=; ac_datarootdir_seen=
17740 ac_sed_dataroot='
17741 /datarootdir/ {
17742   p
17743   q
17744 }
17745 /@datadir@/p
17746 /@docdir@/p
17747 /@infodir@/p
17748 /@localedir@/p
17749 /@mandir@/p'
17750 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17751 *datarootdir*) ac_datarootdir_seen=yes;;
17752 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17753   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17754 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17755 _ACEOF
17756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17757   ac_datarootdir_hack='
17758   s&@datadir@&$datadir&g
17759   s&@docdir@&$docdir&g
17760   s&@infodir@&$infodir&g
17761   s&@localedir@&$localedir&g
17762   s&@mandir@&$mandir&g
17763   s&\\\${datarootdir}&$datarootdir&g' ;;
17764 esac
17765 _ACEOF
17766
17767 # Neutralize VPATH when `$srcdir' = `.'.
17768 # Shell code in configure.ac might set extrasub.
17769 # FIXME: do we really want to maintain this feature?
17770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17771 ac_sed_extra="$ac_vpsub
17772 $extrasub
17773 _ACEOF
17774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17775 :t
17776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17777 s|@configure_input@|$ac_sed_conf_input|;t t
17778 s&@top_builddir@&$ac_top_builddir_sub&;t t
17779 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17780 s&@srcdir@&$ac_srcdir&;t t
17781 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17782 s&@top_srcdir@&$ac_top_srcdir&;t t
17783 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17784 s&@builddir@&$ac_builddir&;t t
17785 s&@abs_builddir@&$ac_abs_builddir&;t t
17786 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17787 s&@INSTALL@&$ac_INSTALL&;t t
17788 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17789 $ac_datarootdir_hack
17790 "
17791 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17792   || as_fn_error "could not create $ac_file" "$LINENO" 5
17793
17794 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17795   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17796   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17797   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17798 which seems to be undefined.  Please make sure it is defined." >&5
17799 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17800 which seems to be undefined.  Please make sure it is defined." >&2;}
17801
17802   rm -f "$tmp/stdin"
17803   case $ac_file in
17804   -) cat "$tmp/out" && rm -f "$tmp/out";;
17805   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17806   esac \
17807   || as_fn_error "could not create $ac_file" "$LINENO" 5
17808  ;;
17809   :H)
17810   #
17811   # CONFIG_HEADER
17812   #
17813   if test x"$ac_file" != x-; then
17814     {
17815       $as_echo "/* $configure_input  */" \
17816       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17817     } >"$tmp/config.h" \
17818       || as_fn_error "could not create $ac_file" "$LINENO" 5
17819     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17820       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17821 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17822     else
17823       rm -f "$ac_file"
17824       mv "$tmp/config.h" "$ac_file" \
17825         || as_fn_error "could not create $ac_file" "$LINENO" 5
17826     fi
17827   else
17828     $as_echo "/* $configure_input  */" \
17829       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17830       || as_fn_error "could not create -" "$LINENO" 5
17831   fi
17832 # Compute "$ac_file"'s index in $config_headers.
17833 _am_arg="$ac_file"
17834 _am_stamp_count=1
17835 for _am_header in $config_headers :; do
17836   case $_am_header in
17837     $_am_arg | $_am_arg:* )
17838       break ;;
17839     * )
17840       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17841   esac
17842 done
17843 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17844 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17845          X"$_am_arg" : 'X\(//\)[^/]' \| \
17846          X"$_am_arg" : 'X\(//\)$' \| \
17847          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17848 $as_echo X"$_am_arg" |
17849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17850             s//\1/
17851             q
17852           }
17853           /^X\(\/\/\)[^/].*/{
17854             s//\1/
17855             q
17856           }
17857           /^X\(\/\/\)$/{
17858             s//\1/
17859             q
17860           }
17861           /^X\(\/\).*/{
17862             s//\1/
17863             q
17864           }
17865           s/.*/./; q'`/stamp-h$_am_stamp_count
17866  ;;
17867
17868   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17869 $as_echo "$as_me: executing $ac_file commands" >&6;}
17870  ;;
17871   esac
17872
17873
17874   case $ac_file$ac_mode in
17875     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17876   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17877   # are listed without --file.  Let's play safe and only enable the eval
17878   # if we detect the quoting.
17879   case $CONFIG_FILES in
17880   *\'*) eval set x "$CONFIG_FILES" ;;
17881   *)   set x $CONFIG_FILES ;;
17882   esac
17883   shift
17884   for mf
17885   do
17886     # Strip MF so we end up with the name of the file.
17887     mf=`echo "$mf" | sed -e 's/:.*$//'`
17888     # Check whether this is an Automake generated Makefile or not.
17889     # We used to match only the files named `Makefile.in', but
17890     # some people rename them; so instead we look at the file content.
17891     # Grep'ing the first line is not enough: some people post-process
17892     # each Makefile.in and add a new line on top of each file to say so.
17893     # Grep'ing the whole file is not good either: AIX grep has a line
17894     # limit of 2048, but all sed's we know have understand at least 4000.
17895     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17896       dirpart=`$as_dirname -- "$mf" ||
17897 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17898          X"$mf" : 'X\(//\)[^/]' \| \
17899          X"$mf" : 'X\(//\)$' \| \
17900          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17901 $as_echo X"$mf" |
17902     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17903             s//\1/
17904             q
17905           }
17906           /^X\(\/\/\)[^/].*/{
17907             s//\1/
17908             q
17909           }
17910           /^X\(\/\/\)$/{
17911             s//\1/
17912             q
17913           }
17914           /^X\(\/\).*/{
17915             s//\1/
17916             q
17917           }
17918           s/.*/./; q'`
17919     else
17920       continue
17921     fi
17922     # Extract the definition of DEPDIR, am__include, and am__quote
17923     # from the Makefile without running `make'.
17924     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17925     test -z "$DEPDIR" && continue
17926     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17927     test -z "am__include" && continue
17928     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17929     # When using ansi2knr, U may be empty or an underscore; expand it
17930     U=`sed -n 's/^U = //p' < "$mf"`
17931     # Find all dependency output files, they are included files with
17932     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17933     # simplest approach to changing $(DEPDIR) to its actual value in the
17934     # expansion.
17935     for file in `sed -n "
17936       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17937          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17938       # Make sure the directory exists.
17939       test -f "$dirpart/$file" && continue
17940       fdir=`$as_dirname -- "$file" ||
17941 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17942          X"$file" : 'X\(//\)[^/]' \| \
17943          X"$file" : 'X\(//\)$' \| \
17944          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17945 $as_echo X"$file" |
17946     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17947             s//\1/
17948             q
17949           }
17950           /^X\(\/\/\)[^/].*/{
17951             s//\1/
17952             q
17953           }
17954           /^X\(\/\/\)$/{
17955             s//\1/
17956             q
17957           }
17958           /^X\(\/\).*/{
17959             s//\1/
17960             q
17961           }
17962           s/.*/./; q'`
17963       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17964       # echo "creating $dirpart/$file"
17965       echo '# dummy' > "$dirpart/$file"
17966     done
17967   done
17968 }
17969  ;;
17970     "libtool":C)
17971
17972     # See if we are running on zsh, and set the options which allow our
17973     # commands through without removal of \ escapes.
17974     if test -n "${ZSH_VERSION+set}" ; then
17975       setopt NO_GLOB_SUBST
17976     fi
17977
17978     cfgfile="${ofile}T"
17979     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17980     $RM "$cfgfile"
17981
17982     cat <<_LT_EOF >> "$cfgfile"
17983 #! $SHELL
17984
17985 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17986 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17987 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17988 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17989 #
17990 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17991 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17992 #                 Inc.
17993 #   Written by Gordon Matzigkeit, 1996
17994 #
17995 #   This file is part of GNU Libtool.
17996 #
17997 # GNU Libtool is free software; you can redistribute it and/or
17998 # modify it under the terms of the GNU General Public License as
17999 # published by the Free Software Foundation; either version 2 of
18000 # the License, or (at your option) any later version.
18001 #
18002 # As a special exception to the GNU General Public License,
18003 # if you distribute this file as part of a program or library that
18004 # is built using GNU Libtool, you may include this file under the
18005 # same distribution terms that you use for the rest of that program.
18006 #
18007 # GNU Libtool is distributed in the hope that it will be useful,
18008 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18009 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18010 # GNU General Public License for more details.
18011 #
18012 # You should have received a copy of the GNU General Public License
18013 # along with GNU Libtool; see the file COPYING.  If not, a copy
18014 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18015 # obtained by writing to the Free Software Foundation, Inc.,
18016 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18017
18018
18019 # The names of the tagged configurations supported by this script.
18020 available_tags="CXX "
18021
18022 # ### BEGIN LIBTOOL CONFIG
18023
18024 # Whether or not to build shared libraries.
18025 build_libtool_libs=$enable_shared
18026
18027 # Assembler program.
18028 AS=$lt_AS
18029
18030 # DLL creation program.
18031 DLLTOOL=$lt_DLLTOOL
18032
18033 # Object dumper program.
18034 OBJDUMP=$lt_OBJDUMP
18035
18036 # Which release of libtool.m4 was used?
18037 macro_version=$macro_version
18038 macro_revision=$macro_revision
18039
18040 # Whether or not to build static libraries.
18041 build_old_libs=$enable_static
18042
18043 # What type of objects to build.
18044 pic_mode=$pic_mode
18045
18046 # Whether or not to optimize for fast installation.
18047 fast_install=$enable_fast_install
18048
18049 # Shell to use when invoking shell scripts.
18050 SHELL=$lt_SHELL
18051
18052 # An echo program that protects backslashes.
18053 ECHO=$lt_ECHO
18054
18055 # The host system.
18056 host_alias=$host_alias
18057 host=$host
18058 host_os=$host_os
18059
18060 # The build system.
18061 build_alias=$build_alias
18062 build=$build
18063 build_os=$build_os
18064
18065 # A sed program that does not truncate output.
18066 SED=$lt_SED
18067
18068 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18069 Xsed="\$SED -e 1s/^X//"
18070
18071 # A grep program that handles long lines.
18072 GREP=$lt_GREP
18073
18074 # An ERE matcher.
18075 EGREP=$lt_EGREP
18076
18077 # A literal string matcher.
18078 FGREP=$lt_FGREP
18079
18080 # A BSD- or MS-compatible name lister.
18081 NM=$lt_NM
18082
18083 # Whether we need soft or hard links.
18084 LN_S=$lt_LN_S
18085
18086 # What is the maximum length of a command?
18087 max_cmd_len=$max_cmd_len
18088
18089 # Object file suffix (normally "o").
18090 objext=$ac_objext
18091
18092 # Executable file suffix (normally "").
18093 exeext=$exeext
18094
18095 # whether the shell understands "unset".
18096 lt_unset=$lt_unset
18097
18098 # turn spaces into newlines.
18099 SP2NL=$lt_lt_SP2NL
18100
18101 # turn newlines into spaces.
18102 NL2SP=$lt_lt_NL2SP
18103
18104 # Method to check whether dependent libraries are shared objects.
18105 deplibs_check_method=$lt_deplibs_check_method
18106
18107 # Command to use when deplibs_check_method == "file_magic".
18108 file_magic_cmd=$lt_file_magic_cmd
18109
18110 # The archiver.
18111 AR=$lt_AR
18112 AR_FLAGS=$lt_AR_FLAGS
18113
18114 # A symbol stripping program.
18115 STRIP=$lt_STRIP
18116
18117 # Commands used to install an old-style archive.
18118 RANLIB=$lt_RANLIB
18119 old_postinstall_cmds=$lt_old_postinstall_cmds
18120 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18121
18122 # Whether to use a lock for old archive extraction.
18123 lock_old_archive_extraction=$lock_old_archive_extraction
18124
18125 # A C compiler.
18126 LTCC=$lt_CC
18127
18128 # LTCC compiler flags.
18129 LTCFLAGS=$lt_CFLAGS
18130
18131 # Take the output of nm and produce a listing of raw symbols and C names.
18132 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18133
18134 # Transform the output of nm in a proper C declaration.
18135 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18136
18137 # Transform the output of nm in a C name address pair.
18138 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18139
18140 # Transform the output of nm in a C name address pair when lib prefix is needed.
18141 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18142
18143 # The name of the directory that contains temporary libtool files.
18144 objdir=$objdir
18145
18146 # Used to examine libraries when file_magic_cmd begins with "file".
18147 MAGIC_CMD=$MAGIC_CMD
18148
18149 # Must we lock files when doing compilation?
18150 need_locks=$lt_need_locks
18151
18152 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18153 DSYMUTIL=$lt_DSYMUTIL
18154
18155 # Tool to change global to local symbols on Mac OS X.
18156 NMEDIT=$lt_NMEDIT
18157
18158 # Tool to manipulate fat objects and archives on Mac OS X.
18159 LIPO=$lt_LIPO
18160
18161 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18162 OTOOL=$lt_OTOOL
18163
18164 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18165 OTOOL64=$lt_OTOOL64
18166
18167 # Old archive suffix (normally "a").
18168 libext=$libext
18169
18170 # Shared library suffix (normally ".so").
18171 shrext_cmds=$lt_shrext_cmds
18172
18173 # The commands to extract the exported symbol list from a shared archive.
18174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18175
18176 # Variables whose values should be saved in libtool wrapper scripts and
18177 # restored at link time.
18178 variables_saved_for_relink=$lt_variables_saved_for_relink
18179
18180 # Do we need the "lib" prefix for modules?
18181 need_lib_prefix=$need_lib_prefix
18182
18183 # Do we need a version for libraries?
18184 need_version=$need_version
18185
18186 # Library versioning type.
18187 version_type=$version_type
18188
18189 # Shared library runtime path variable.
18190 runpath_var=$runpath_var
18191
18192 # Shared library path variable.
18193 shlibpath_var=$shlibpath_var
18194
18195 # Is shlibpath searched before the hard-coded library search path?
18196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18197
18198 # Format of library name prefix.
18199 libname_spec=$lt_libname_spec
18200
18201 # List of archive names.  First name is the real one, the rest are links.
18202 # The last name is the one that the linker finds with -lNAME
18203 library_names_spec=$lt_library_names_spec
18204
18205 # The coded name of the library, if different from the real name.
18206 soname_spec=$lt_soname_spec
18207
18208 # Permission mode override for installation of shared libraries.
18209 install_override_mode=$lt_install_override_mode
18210
18211 # Command to use after installation of a shared archive.
18212 postinstall_cmds=$lt_postinstall_cmds
18213
18214 # Command to use after uninstallation of a shared archive.
18215 postuninstall_cmds=$lt_postuninstall_cmds
18216
18217 # Commands used to finish a libtool library installation in a directory.
18218 finish_cmds=$lt_finish_cmds
18219
18220 # As "finish_cmds", except a single script fragment to be evaled but
18221 # not shown.
18222 finish_eval=$lt_finish_eval
18223
18224 # Whether we should hardcode library paths into libraries.
18225 hardcode_into_libs=$hardcode_into_libs
18226
18227 # Compile-time system search path for libraries.
18228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18229
18230 # Run-time system search path for libraries.
18231 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18232
18233 # Whether dlopen is supported.
18234 dlopen_support=$enable_dlopen
18235
18236 # Whether dlopen of programs is supported.
18237 dlopen_self=$enable_dlopen_self
18238
18239 # Whether dlopen of statically linked programs is supported.
18240 dlopen_self_static=$enable_dlopen_self_static
18241
18242 # Commands to strip libraries.
18243 old_striplib=$lt_old_striplib
18244 striplib=$lt_striplib
18245
18246
18247 # The linker used to build libraries.
18248 LD=$lt_LD
18249
18250 # How to create reloadable object files.
18251 reload_flag=$lt_reload_flag
18252 reload_cmds=$lt_reload_cmds
18253
18254 # Commands used to build an old-style archive.
18255 old_archive_cmds=$lt_old_archive_cmds
18256
18257 # A language specific compiler.
18258 CC=$lt_compiler
18259
18260 # Is the compiler the GNU compiler?
18261 with_gcc=$GCC
18262
18263 # Compiler flag to turn off builtin functions.
18264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18265
18266 # How to pass a linker flag through the compiler.
18267 wl=$lt_lt_prog_compiler_wl
18268
18269 # Additional compiler flags for building library objects.
18270 pic_flag=$lt_lt_prog_compiler_pic
18271
18272 # Compiler flag to prevent dynamic linking.
18273 link_static_flag=$lt_lt_prog_compiler_static
18274
18275 # Does compiler simultaneously support -c and -o options?
18276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18277
18278 # Whether or not to add -lc for building shared libraries.
18279 build_libtool_need_lc=$archive_cmds_need_lc
18280
18281 # Whether or not to disallow shared libs when runtime libs are static.
18282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18283
18284 # Compiler flag to allow reflexive dlopens.
18285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18286
18287 # Compiler flag to generate shared objects directly from archives.
18288 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18289
18290 # Whether the compiler copes with passing no objects directly.
18291 compiler_needs_object=$lt_compiler_needs_object
18292
18293 # Create an old-style archive from a shared archive.
18294 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18295
18296 # Create a temporary old-style archive to link instead of a shared archive.
18297 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18298
18299 # Commands used to build a shared archive.
18300 archive_cmds=$lt_archive_cmds
18301 archive_expsym_cmds=$lt_archive_expsym_cmds
18302
18303 # Commands used to build a loadable module if different from building
18304 # a shared archive.
18305 module_cmds=$lt_module_cmds
18306 module_expsym_cmds=$lt_module_expsym_cmds
18307
18308 # Whether we are building with GNU ld or not.
18309 with_gnu_ld=$lt_with_gnu_ld
18310
18311 # Flag that allows shared libraries with undefined symbols to be built.
18312 allow_undefined_flag=$lt_allow_undefined_flag
18313
18314 # Flag that enforces no undefined symbols.
18315 no_undefined_flag=$lt_no_undefined_flag
18316
18317 # Flag to hardcode \$libdir into a binary during linking.
18318 # This must work even if \$libdir does not exist
18319 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18320
18321 # If ld is used when linking, flag to hardcode \$libdir into a binary
18322 # during linking.  This must work even if \$libdir does not exist.
18323 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18324
18325 # Whether we need a single "-rpath" flag with a separated argument.
18326 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18327
18328 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18329 # DIR into the resulting binary.
18330 hardcode_direct=$hardcode_direct
18331
18332 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18333 # DIR into the resulting binary and the resulting library dependency is
18334 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18335 # library is relocated.
18336 hardcode_direct_absolute=$hardcode_direct_absolute
18337
18338 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18339 # into the resulting binary.
18340 hardcode_minus_L=$hardcode_minus_L
18341
18342 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18343 # into the resulting binary.
18344 hardcode_shlibpath_var=$hardcode_shlibpath_var
18345
18346 # Set to "yes" if building a shared library automatically hardcodes DIR
18347 # into the library and all subsequent libraries and executables linked
18348 # against it.
18349 hardcode_automatic=$hardcode_automatic
18350
18351 # Set to yes if linker adds runtime paths of dependent libraries
18352 # to runtime path list.
18353 inherit_rpath=$inherit_rpath
18354
18355 # Whether libtool must link a program against all its dependency libraries.
18356 link_all_deplibs=$link_all_deplibs
18357
18358 # Fix the shell variable \$srcfile for the compiler.
18359 fix_srcfile_path=$lt_fix_srcfile_path
18360
18361 # Set to "yes" if exported symbols are required.
18362 always_export_symbols=$always_export_symbols
18363
18364 # The commands to list exported symbols.
18365 export_symbols_cmds=$lt_export_symbols_cmds
18366
18367 # Symbols that should not be listed in the preloaded symbols.
18368 exclude_expsyms=$lt_exclude_expsyms
18369
18370 # Symbols that must always be exported.
18371 include_expsyms=$lt_include_expsyms
18372
18373 # Commands necessary for linking programs (against libraries) with templates.
18374 prelink_cmds=$lt_prelink_cmds
18375
18376 # Specify filename containing input files.
18377 file_list_spec=$lt_file_list_spec
18378
18379 # How to hardcode a shared library path into an executable.
18380 hardcode_action=$hardcode_action
18381
18382 # The directories searched by this compiler when creating a shared library.
18383 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18384
18385 # Dependencies to place before and after the objects being linked to
18386 # create a shared library.
18387 predep_objects=$lt_predep_objects
18388 postdep_objects=$lt_postdep_objects
18389 predeps=$lt_predeps
18390 postdeps=$lt_postdeps
18391
18392 # The library search path used internally by the compiler when linking
18393 # a shared library.
18394 compiler_lib_search_path=$lt_compiler_lib_search_path
18395
18396 # ### END LIBTOOL CONFIG
18397
18398 _LT_EOF
18399
18400   case $host_os in
18401   aix3*)
18402     cat <<\_LT_EOF >> "$cfgfile"
18403 # AIX sometimes has problems with the GCC collect2 program.  For some
18404 # reason, if we set the COLLECT_NAMES environment variable, the problems
18405 # vanish in a puff of smoke.
18406 if test "X${COLLECT_NAMES+set}" != Xset; then
18407   COLLECT_NAMES=
18408   export COLLECT_NAMES
18409 fi
18410 _LT_EOF
18411     ;;
18412   esac
18413
18414
18415 ltmain="$ac_aux_dir/ltmain.sh"
18416
18417
18418   # We use sed instead of cat because bash on DJGPP gets confused if
18419   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18420   # text mode, it properly converts lines to CR/LF.  This bash problem
18421   # is reportedly fixed, but why not run on old versions too?
18422   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18423     || (rm -f "$cfgfile"; exit 1)
18424
18425   case $xsi_shell in
18426   yes)
18427     cat << \_LT_EOF >> "$cfgfile"
18428
18429 # func_dirname file append nondir_replacement
18430 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18431 # otherwise set result to NONDIR_REPLACEMENT.
18432 func_dirname ()
18433 {
18434   case ${1} in
18435     */*) func_dirname_result="${1%/*}${2}" ;;
18436     *  ) func_dirname_result="${3}" ;;
18437   esac
18438 }
18439
18440 # func_basename file
18441 func_basename ()
18442 {
18443   func_basename_result="${1##*/}"
18444 }
18445
18446 # func_dirname_and_basename file append nondir_replacement
18447 # perform func_basename and func_dirname in a single function
18448 # call:
18449 #   dirname:  Compute the dirname of FILE.  If nonempty,
18450 #             add APPEND to the result, otherwise set result
18451 #             to NONDIR_REPLACEMENT.
18452 #             value returned in "$func_dirname_result"
18453 #   basename: Compute filename of FILE.
18454 #             value retuned in "$func_basename_result"
18455 # Implementation must be kept synchronized with func_dirname
18456 # and func_basename. For efficiency, we do not delegate to
18457 # those functions but instead duplicate the functionality here.
18458 func_dirname_and_basename ()
18459 {
18460   case ${1} in
18461     */*) func_dirname_result="${1%/*}${2}" ;;
18462     *  ) func_dirname_result="${3}" ;;
18463   esac
18464   func_basename_result="${1##*/}"
18465 }
18466
18467 # func_stripname prefix suffix name
18468 # strip PREFIX and SUFFIX off of NAME.
18469 # PREFIX and SUFFIX must not contain globbing or regex special
18470 # characters, hashes, percent signs, but SUFFIX may contain a leading
18471 # dot (in which case that matches only a dot).
18472 func_stripname ()
18473 {
18474   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18475   # positional parameters, so assign one to ordinary parameter first.
18476   func_stripname_result=${3}
18477   func_stripname_result=${func_stripname_result#"${1}"}
18478   func_stripname_result=${func_stripname_result%"${2}"}
18479 }
18480
18481 # func_opt_split
18482 func_opt_split ()
18483 {
18484   func_opt_split_opt=${1%%=*}
18485   func_opt_split_arg=${1#*=}
18486 }
18487
18488 # func_lo2o object
18489 func_lo2o ()
18490 {
18491   case ${1} in
18492     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18493     *)    func_lo2o_result=${1} ;;
18494   esac
18495 }
18496
18497 # func_xform libobj-or-source
18498 func_xform ()
18499 {
18500   func_xform_result=${1%.*}.lo
18501 }
18502
18503 # func_arith arithmetic-term...
18504 func_arith ()
18505 {
18506   func_arith_result=$(( $* ))
18507 }
18508
18509 # func_len string
18510 # STRING may not start with a hyphen.
18511 func_len ()
18512 {
18513   func_len_result=${#1}
18514 }
18515
18516 _LT_EOF
18517     ;;
18518   *) # Bourne compatible functions.
18519     cat << \_LT_EOF >> "$cfgfile"
18520
18521 # func_dirname file append nondir_replacement
18522 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18523 # otherwise set result to NONDIR_REPLACEMENT.
18524 func_dirname ()
18525 {
18526   # Extract subdirectory from the argument.
18527   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18528   if test "X$func_dirname_result" = "X${1}"; then
18529     func_dirname_result="${3}"
18530   else
18531     func_dirname_result="$func_dirname_result${2}"
18532   fi
18533 }
18534
18535 # func_basename file
18536 func_basename ()
18537 {
18538   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18539 }
18540
18541
18542 # func_stripname prefix suffix name
18543 # strip PREFIX and SUFFIX off of NAME.
18544 # PREFIX and SUFFIX must not contain globbing or regex special
18545 # characters, hashes, percent signs, but SUFFIX may contain a leading
18546 # dot (in which case that matches only a dot).
18547 # func_strip_suffix prefix name
18548 func_stripname ()
18549 {
18550   case ${2} in
18551     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18552     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18553   esac
18554 }
18555
18556 # sed scripts:
18557 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18558 my_sed_long_arg='1s/^-[^=]*=//'
18559
18560 # func_opt_split
18561 func_opt_split ()
18562 {
18563   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18564   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18565 }
18566
18567 # func_lo2o object
18568 func_lo2o ()
18569 {
18570   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18571 }
18572
18573 # func_xform libobj-or-source
18574 func_xform ()
18575 {
18576   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18577 }
18578
18579 # func_arith arithmetic-term...
18580 func_arith ()
18581 {
18582   func_arith_result=`expr "$@"`
18583 }
18584
18585 # func_len string
18586 # STRING may not start with a hyphen.
18587 func_len ()
18588 {
18589   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18590 }
18591
18592 _LT_EOF
18593 esac
18594
18595 case $lt_shell_append in
18596   yes)
18597     cat << \_LT_EOF >> "$cfgfile"
18598
18599 # func_append var value
18600 # Append VALUE to the end of shell variable VAR.
18601 func_append ()
18602 {
18603   eval "$1+=\$2"
18604 }
18605 _LT_EOF
18606     ;;
18607   *)
18608     cat << \_LT_EOF >> "$cfgfile"
18609
18610 # func_append var value
18611 # Append VALUE to the end of shell variable VAR.
18612 func_append ()
18613 {
18614   eval "$1=\$$1\$2"
18615 }
18616
18617 _LT_EOF
18618     ;;
18619   esac
18620
18621
18622   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18623     || (rm -f "$cfgfile"; exit 1)
18624
18625   mv -f "$cfgfile" "$ofile" ||
18626     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18627   chmod +x "$ofile"
18628
18629
18630     cat <<_LT_EOF >> "$ofile"
18631
18632 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18633
18634 # The linker used to build libraries.
18635 LD=$lt_LD_CXX
18636
18637 # How to create reloadable object files.
18638 reload_flag=$lt_reload_flag_CXX
18639 reload_cmds=$lt_reload_cmds_CXX
18640
18641 # Commands used to build an old-style archive.
18642 old_archive_cmds=$lt_old_archive_cmds_CXX
18643
18644 # A language specific compiler.
18645 CC=$lt_compiler_CXX
18646
18647 # Is the compiler the GNU compiler?
18648 with_gcc=$GCC_CXX
18649
18650 # Compiler flag to turn off builtin functions.
18651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18652
18653 # How to pass a linker flag through the compiler.
18654 wl=$lt_lt_prog_compiler_wl_CXX
18655
18656 # Additional compiler flags for building library objects.
18657 pic_flag=$lt_lt_prog_compiler_pic_CXX
18658
18659 # Compiler flag to prevent dynamic linking.
18660 link_static_flag=$lt_lt_prog_compiler_static_CXX
18661
18662 # Does compiler simultaneously support -c and -o options?
18663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18664
18665 # Whether or not to add -lc for building shared libraries.
18666 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18667
18668 # Whether or not to disallow shared libs when runtime libs are static.
18669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18670
18671 # Compiler flag to allow reflexive dlopens.
18672 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18673
18674 # Compiler flag to generate shared objects directly from archives.
18675 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18676
18677 # Whether the compiler copes with passing no objects directly.
18678 compiler_needs_object=$lt_compiler_needs_object_CXX
18679
18680 # Create an old-style archive from a shared archive.
18681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18682
18683 # Create a temporary old-style archive to link instead of a shared archive.
18684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18685
18686 # Commands used to build a shared archive.
18687 archive_cmds=$lt_archive_cmds_CXX
18688 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18689
18690 # Commands used to build a loadable module if different from building
18691 # a shared archive.
18692 module_cmds=$lt_module_cmds_CXX
18693 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18694
18695 # Whether we are building with GNU ld or not.
18696 with_gnu_ld=$lt_with_gnu_ld_CXX
18697
18698 # Flag that allows shared libraries with undefined symbols to be built.
18699 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18700
18701 # Flag that enforces no undefined symbols.
18702 no_undefined_flag=$lt_no_undefined_flag_CXX
18703
18704 # Flag to hardcode \$libdir into a binary during linking.
18705 # This must work even if \$libdir does not exist
18706 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18707
18708 # If ld is used when linking, flag to hardcode \$libdir into a binary
18709 # during linking.  This must work even if \$libdir does not exist.
18710 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18711
18712 # Whether we need a single "-rpath" flag with a separated argument.
18713 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18714
18715 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18716 # DIR into the resulting binary.
18717 hardcode_direct=$hardcode_direct_CXX
18718
18719 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18720 # DIR into the resulting binary and the resulting library dependency is
18721 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18722 # library is relocated.
18723 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18724
18725 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18726 # into the resulting binary.
18727 hardcode_minus_L=$hardcode_minus_L_CXX
18728
18729 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18730 # into the resulting binary.
18731 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18732
18733 # Set to "yes" if building a shared library automatically hardcodes DIR
18734 # into the library and all subsequent libraries and executables linked
18735 # against it.
18736 hardcode_automatic=$hardcode_automatic_CXX
18737
18738 # Set to yes if linker adds runtime paths of dependent libraries
18739 # to runtime path list.
18740 inherit_rpath=$inherit_rpath_CXX
18741
18742 # Whether libtool must link a program against all its dependency libraries.
18743 link_all_deplibs=$link_all_deplibs_CXX
18744
18745 # Fix the shell variable \$srcfile for the compiler.
18746 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18747
18748 # Set to "yes" if exported symbols are required.
18749 always_export_symbols=$always_export_symbols_CXX
18750
18751 # The commands to list exported symbols.
18752 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18753
18754 # Symbols that should not be listed in the preloaded symbols.
18755 exclude_expsyms=$lt_exclude_expsyms_CXX
18756
18757 # Symbols that must always be exported.
18758 include_expsyms=$lt_include_expsyms_CXX
18759
18760 # Commands necessary for linking programs (against libraries) with templates.
18761 prelink_cmds=$lt_prelink_cmds_CXX
18762
18763 # Specify filename containing input files.
18764 file_list_spec=$lt_file_list_spec_CXX
18765
18766 # How to hardcode a shared library path into an executable.
18767 hardcode_action=$hardcode_action_CXX
18768
18769 # The directories searched by this compiler when creating a shared library.
18770 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18771
18772 # Dependencies to place before and after the objects being linked to
18773 # create a shared library.
18774 predep_objects=$lt_predep_objects_CXX
18775 postdep_objects=$lt_postdep_objects_CXX
18776 predeps=$lt_predeps_CXX
18777 postdeps=$lt_postdeps_CXX
18778
18779 # The library search path used internally by the compiler when linking
18780 # a shared library.
18781 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18782
18783 # ### END LIBTOOL TAG CONFIG: CXX
18784 _LT_EOF
18785
18786  ;;
18787
18788   esac
18789 done # for ac_tag
18790
18791
18792 as_fn_exit 0
18793 _ACEOF
18794 ac_clean_files=$ac_clean_files_save
18795
18796 test $ac_write_fail = 0 ||
18797   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18798
18799
18800 # configure is writing to config.log, and then calls config.status.
18801 # config.status does its own redirection, appending to config.log.
18802 # Unfortunately, on DOS this fails, as config.log is still kept open
18803 # by configure, so config.status won't be able to write to it; its
18804 # output is simply discarded.  So we exec the FD to /dev/null,
18805 # effectively closing config.log, so it can be properly (re)opened and
18806 # appended to by config.status.  When coming back to configure, we
18807 # need to make the FD available again.
18808 if test "$no_create" != yes; then
18809   ac_cs_success=:
18810   ac_config_status_args=
18811   test "$silent" = yes &&
18812     ac_config_status_args="$ac_config_status_args --quiet"
18813   exec 5>/dev/null
18814   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18815   exec 5>>config.log
18816   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18817   # would make configure fail if this is the last instruction.
18818   $ac_cs_success || as_fn_exit $?
18819 fi
18820 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18821   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18822 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18823 fi
18824
18825 #
18826 echo "----------------------------------------------"
18827 echo "           your configuration"
18828 echo ""
18829 echo "--with-png-libraries: $with_libpng"
18830 echo "libpng header       : $png_header_found"
18831 echo "--enable-tiff       : $with_libtiff"
18832 echo "libtiff header      : $tiff_header_found"
18833 echo "--enable-lcms2      : $with_liblcms2"
18834 echo "lcms2 header        : $lcms2_header_found"
18835 echo "lcms2 version       : $have_lcms2_version"
18836 echo "--enable-lcms1      : $with_liblcms1"
18837 echo "lcms1 header        : $lcms1_header_found"
18838 echo "lcms1 version       : $have_lcms1_version"
18839 echo "--enable-jpwl       : $with_libjpwl"
18840 echo "--enable-jp3d       : $with_jp3d"
18841 echo "--enable-shared     : $with_sharedlibs"
18842 echo "----------------------------------------------"