Add necessary autotools stuff.
[openjpeg.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenJPEG 1.5.0.
4 #
5 # Report bugs to <openjpeg@googlegroups.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: openjpeg@googlegroups.com about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='OpenJPEG'
592 PACKAGE_TARNAME='openjpeg'
593 PACKAGE_VERSION='1.5.0'
594 PACKAGE_STRING='OpenJPEG 1.5.0'
595 PACKAGE_BUGREPORT='openjpeg@googlegroups.com'
596 PACKAGE_URL='http://www.openjpeg.org'
597
598 ac_unique_file="configure.ac"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 BUILD_STATIC_FALSE
640 BUILD_STATIC_TRUE
641 BUILD_SHARED_FALSE
642 BUILD_SHARED_TRUE
643 WANT_JPIP_CODE_FALSE
644 WANT_JPIP_CODE_TRUE
645 WANT_JPIP_SERVER_FALSE
646 WANT_JPIP_SERVER_TRUE
647 WANT_JPIP_FALSE
648 WANT_JPIP_TRUE
649 LIBCURL_LIBS
650 LIBCURL_CFLAGS
651 FCGI_LIBS
652 FCGI_CFLAGS
653 THREAD_LIBS
654 THREAD_CFLAGS
655 LCMS1_LIBS
656 LCMS1_CFLAGS
657 LCMS2_LIBS
658 LCMS2_CFLAGS
659 with_libtiff_FALSE
660 with_libtiff_TRUE
661 TIFF_LIBS
662 TIFF_CFLAGS
663 with_libpng_FALSE
664 with_libpng_TRUE
665 Z_LIBS
666 Z_CFLAGS
667 PNG_LIBS
668 PNG_CFLAGS
669 OPJ_BUILD_DOC_FALSE
670 OPJ_BUILD_DOC_TRUE
671 opj_doxygen
672 opj_have_doxygen
673 requirements
674 pkgconfig_requires_private
675 PKG_CONFIG_LIBDIR
676 PKG_CONFIG_PATH
677 PKG_CONFIG
678 WANT_JPWL_FALSE
679 WANT_JPWL_TRUE
680 WANT_MJ2_FALSE
681 WANT_MJ2_TRUE
682 HAVE_DARWIN_FALSE
683 HAVE_DARWIN_TRUE
684 HAVE_WIN32_FALSE
685 HAVE_WIN32_TRUE
686 lt_version
687 CPP
688 LT_SYS_LIBRARY_PATH
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 MANIFEST_TOOL
695 RANLIB
696 ac_ct_AR
697 AR
698 LN_S
699 NM
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LD
703 FGREP
704 EGREP
705 GREP
706 SED
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 am__nodep
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 LIBTOOL
725 OBJDUMP
726 DLLTOOL
727 AS
728 MICRO_NR
729 MINOR_NR
730 MAJOR_NR
731 AM_BACKSLASH
732 AM_DEFAULT_VERBOSITY
733 AM_DEFAULT_V
734 AM_V
735 am__untar
736 am__tar
737 AMTAR
738 am__leading_dot
739 SET_MAKE
740 AWK
741 mkdir_p
742 MKDIR_P
743 INSTALL_STRIP_PROGRAM
744 STRIP
745 install_sh
746 MAKEINFO
747 AUTOHEADER
748 AUTOMAKE
749 AUTOCONF
750 ACLOCAL
751 VERSION
752 PACKAGE
753 CYGPATH_W
754 am__isrc
755 INSTALL_DATA
756 INSTALL_SCRIPT
757 INSTALL_PROGRAM
758 target_os
759 target_vendor
760 target_cpu
761 target
762 host_os
763 host_vendor
764 host_cpu
765 host
766 build_os
767 build_vendor
768 build_cpu
769 build
770 target_alias
771 host_alias
772 build_alias
773 LIBS
774 ECHO_T
775 ECHO_N
776 ECHO_C
777 DEFS
778 mandir
779 localedir
780 libdir
781 psdir
782 pdfdir
783 dvidir
784 htmldir
785 infodir
786 docdir
787 oldincludedir
788 includedir
789 runstatedir
790 localstatedir
791 sharedstatedir
792 sysconfdir
793 datadir
794 datarootdir
795 libexecdir
796 sbindir
797 bindir
798 program_transform_name
799 prefix
800 exec_prefix
801 PACKAGE_URL
802 PACKAGE_BUGREPORT
803 PACKAGE_STRING
804 PACKAGE_VERSION
805 PACKAGE_TARNAME
806 PACKAGE_NAME
807 PATH_SEPARATOR
808 SHELL'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_silent_rules
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 enable_dependency_tracking
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 enable_debug
823 enable_mj2
824 enable_jpwl
825 enable_jpip
826 enable_jpip_server
827 enable_doc
828 with_doxygen
829 enable_png
830 enable_tiff
831 enable_lcms2
832 enable_lcms1
833 '
834       ac_precious_vars='build_alias
835 host_alias
836 target_alias
837 CC
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
842 LT_SYS_LIBRARY_PATH
843 CPP
844 PKG_CONFIG
845 PKG_CONFIG_PATH
846 PKG_CONFIG_LIBDIR
847 PNG_CFLAGS
848 PNG_LIBS
849 Z_CFLAGS
850 Z_LIBS
851 TIFF_CFLAGS
852 TIFF_LIBS
853 LCMS2_CFLAGS
854 LCMS2_LIBS
855 LCMS1_CFLAGS
856 LCMS1_LIBS
857 THREAD_CFLAGS
858 THREAD_LIBS
859 FCGI_CFLAGS
860 FCGI_LIBS
861 LIBCURL_CFLAGS
862 LIBCURL_LIBS'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918   # If the previous option needs an argument, assign it.
919   if test -n "$ac_prev"; then
920     eval $ac_prev=\$ac_option
921     ac_prev=
922     continue
923   fi
924
925   case $ac_option in
926   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927   *=)   ac_optarg= ;;
928   *)    ac_optarg=yes ;;
929   esac
930
931   # Accept the important Cygnus configure options, so we can diagnose typos.
932
933   case $ac_dashdash$ac_option in
934   --)
935     ac_dashdash=yes ;;
936
937   -bindir | --bindir | --bindi | --bind | --bin | --bi)
938     ac_prev=bindir ;;
939   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940     bindir=$ac_optarg ;;
941
942   -build | --build | --buil | --bui | --bu)
943     ac_prev=build_alias ;;
944   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945     build_alias=$ac_optarg ;;
946
947   -cache-file | --cache-file | --cache-fil | --cache-fi \
948   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949     ac_prev=cache_file ;;
950   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952     cache_file=$ac_optarg ;;
953
954   --config-cache | -C)
955     cache_file=config.cache ;;
956
957   -datadir | --datadir | --datadi | --datad)
958     ac_prev=datadir ;;
959   -datadir=* | --datadir=* | --datadi=* | --datad=*)
960     datadir=$ac_optarg ;;
961
962   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963   | --dataroo | --dataro | --datar)
964     ac_prev=datarootdir ;;
965   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967     datarootdir=$ac_optarg ;;
968
969   -disable-* | --disable-*)
970     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973       as_fn_error $? "invalid feature name: $ac_useropt"
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=no ;;
984
985   -docdir | --docdir | --docdi | --doc | --do)
986     ac_prev=docdir ;;
987   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988     docdir=$ac_optarg ;;
989
990   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991     ac_prev=dvidir ;;
992   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993     dvidir=$ac_optarg ;;
994
995   -enable-* | --enable-*)
996     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999       as_fn_error $? "invalid feature name: $ac_useropt"
1000     ac_useropt_orig=$ac_useropt
1001     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002     case $ac_user_opts in
1003       *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007          ac_unrecognized_sep=', ';;
1008     esac
1009     eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013   | --exec | --exe | --ex)
1014     ac_prev=exec_prefix ;;
1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017   | --exec=* | --exe=* | --ex=*)
1018     exec_prefix=$ac_optarg ;;
1019
1020   -gas | --gas | --ga | --g)
1021     # Obsolete; use --with-gas.
1022     with_gas=yes ;;
1023
1024   -help | --help | --hel | --he | -h)
1025     ac_init_help=long ;;
1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027     ac_init_help=recursive ;;
1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029     ac_init_help=short ;;
1030
1031   -host | --host | --hos | --ho)
1032     ac_prev=host_alias ;;
1033   -host=* | --host=* | --hos=* | --ho=*)
1034     host_alias=$ac_optarg ;;
1035
1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037     ac_prev=htmldir ;;
1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039   | --ht=*)
1040     htmldir=$ac_optarg ;;
1041
1042   -includedir | --includedir | --includedi | --included | --include \
1043   | --includ | --inclu | --incl | --inc)
1044     ac_prev=includedir ;;
1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
1047     includedir=$ac_optarg ;;
1048
1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
1050     ac_prev=infodir ;;
1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052     infodir=$ac_optarg ;;
1053
1054   -libdir | --libdir | --libdi | --libd)
1055     ac_prev=libdir ;;
1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057     libdir=$ac_optarg ;;
1058
1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060   | --libexe | --libex | --libe)
1061     ac_prev=libexecdir ;;
1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063   | --libexe=* | --libex=* | --libe=*)
1064     libexecdir=$ac_optarg ;;
1065
1066   -localedir | --localedir | --localedi | --localed | --locale)
1067     ac_prev=localedir ;;
1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069     localedir=$ac_optarg ;;
1070
1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
1072   | --localstate | --localstat | --localsta | --localst | --locals)
1073     ac_prev=localstatedir ;;
1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076     localstatedir=$ac_optarg ;;
1077
1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079     ac_prev=mandir ;;
1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081     mandir=$ac_optarg ;;
1082
1083   -nfp | --nfp | --nf)
1084     # Obsolete; use --without-fp.
1085     with_fp=no ;;
1086
1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088   | --no-cr | --no-c | -n)
1089     no_create=yes ;;
1090
1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093     no_recursion=yes ;;
1094
1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097   | --oldin | --oldi | --old | --ol | --o)
1098     ac_prev=oldincludedir ;;
1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102     oldincludedir=$ac_optarg ;;
1103
1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105     ac_prev=prefix ;;
1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107     prefix=$ac_optarg ;;
1108
1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110   | --program-pre | --program-pr | --program-p)
1111     ac_prev=program_prefix ;;
1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114     program_prefix=$ac_optarg ;;
1115
1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117   | --program-suf | --program-su | --program-s)
1118     ac_prev=program_suffix ;;
1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121     program_suffix=$ac_optarg ;;
1122
1123   -program-transform-name | --program-transform-name \
1124   | --program-transform-nam | --program-transform-na \
1125   | --program-transform-n | --program-transform- \
1126   | --program-transform | --program-transfor \
1127   | --program-transfo | --program-transf \
1128   | --program-trans | --program-tran \
1129   | --progr-tra | --program-tr | --program-t)
1130     ac_prev=program_transform_name ;;
1131   -program-transform-name=* | --program-transform-name=* \
1132   | --program-transform-nam=* | --program-transform-na=* \
1133   | --program-transform-n=* | --program-transform-=* \
1134   | --program-transform=* | --program-transfor=* \
1135   | --program-transfo=* | --program-transf=* \
1136   | --program-trans=* | --program-tran=* \
1137   | --progr-tra=* | --program-tr=* | --program-t=*)
1138     program_transform_name=$ac_optarg ;;
1139
1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141     ac_prev=pdfdir ;;
1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143     pdfdir=$ac_optarg ;;
1144
1145   -psdir | --psdir | --psdi | --psd | --ps)
1146     ac_prev=psdir ;;
1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148     psdir=$ac_optarg ;;
1149
1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151   | -silent | --silent | --silen | --sile | --sil)
1152     silent=yes ;;
1153
1154   -runstatedir | --runstatedir | --runstatedi | --runstated \
1155   | --runstate | --runstat | --runsta | --runst | --runs \
1156   | --run | --ru | --r)
1157     ac_prev=runstatedir ;;
1158   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1159   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1160   | --run=* | --ru=* | --r=*)
1161     runstatedir=$ac_optarg ;;
1162
1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164     ac_prev=sbindir ;;
1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166   | --sbi=* | --sb=*)
1167     sbindir=$ac_optarg ;;
1168
1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171   | --sharedst | --shareds | --shared | --share | --shar \
1172   | --sha | --sh)
1173     ac_prev=sharedstatedir ;;
1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177   | --sha=* | --sh=*)
1178     sharedstatedir=$ac_optarg ;;
1179
1180   -site | --site | --sit)
1181     ac_prev=site ;;
1182   -site=* | --site=* | --sit=*)
1183     site=$ac_optarg ;;
1184
1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186     ac_prev=srcdir ;;
1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188     srcdir=$ac_optarg ;;
1189
1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191   | --syscon | --sysco | --sysc | --sys | --sy)
1192     ac_prev=sysconfdir ;;
1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195     sysconfdir=$ac_optarg ;;
1196
1197   -target | --target | --targe | --targ | --tar | --ta | --t)
1198     ac_prev=target_alias ;;
1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200     target_alias=$ac_optarg ;;
1201
1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203     verbose=yes ;;
1204
1205   -version | --version | --versio | --versi | --vers | -V)
1206     ac_init_version=: ;;
1207
1208   -with-* | --with-*)
1209     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212       as_fn_error $? "invalid package name: $ac_useropt"
1213     ac_useropt_orig=$ac_useropt
1214     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215     case $ac_user_opts in
1216       *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220          ac_unrecognized_sep=', ';;
1221     esac
1222     eval with_$ac_useropt=\$ac_optarg ;;
1223
1224   -without-* | --without-*)
1225     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228       as_fn_error $? "invalid package name: $ac_useropt"
1229     ac_useropt_orig=$ac_useropt
1230     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231     case $ac_user_opts in
1232       *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236          ac_unrecognized_sep=', ';;
1237     esac
1238     eval with_$ac_useropt=no ;;
1239
1240   --x)
1241     # Obsolete; use --with-x.
1242     with_x=yes ;;
1243
1244   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245   | --x-incl | --x-inc | --x-in | --x-i)
1246     ac_prev=x_includes ;;
1247   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249     x_includes=$ac_optarg ;;
1250
1251   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253     ac_prev=x_libraries ;;
1254   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256     x_libraries=$ac_optarg ;;
1257
1258   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1260     ;;
1261
1262   *=*)
1263     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264     # Reject names that are not valid shell variable names.
1265     case $ac_envvar in #(
1266       '' | [0-9]* | *[!_$as_cr_alnum]* )
1267       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268     esac
1269     eval $ac_envvar=\$ac_optarg
1270     export $ac_envvar ;;
1271
1272   *)
1273     # FIXME: should be removed in autoconf 3.0.
1274     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278     ;;
1279
1280   esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285   as_fn_error $? "missing argument to $ac_option"
1286 fi
1287
1288 if test -n "$ac_unrecognized_opts"; then
1289   case $enable_option_checking in
1290     no) ;;
1291     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293   esac
1294 fi
1295
1296 # Check all directory arguments for consistency.
1297 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298                 datadir sysconfdir sharedstatedir localstatedir includedir \
1299                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300                 libdir localedir mandir runstatedir
1301 do
1302   eval ac_val=\$$ac_var
1303   # Remove trailing slashes.
1304   case $ac_val in
1305     */ )
1306       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307       eval $ac_var=\$ac_val;;
1308   esac
1309   # Be sure to have absolute directory names.
1310   case $ac_val in
1311     [\\/$]* | ?:[\\/]* )  continue;;
1312     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313   esac
1314   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326   if test "x$build_alias" = x; then
1327     cross_compiling=maybe
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$as_myself" : 'X\(//\)[^/]' \| \
1354          X"$as_myself" : 'X\(//\)$' \| \
1355          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures OpenJPEG 1.5.0 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking ...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1454   --libdir=DIR            object code libraries [EPREFIX/lib]
1455   --includedir=DIR        C header files [PREFIX/include]
1456   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1457   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1458   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1459   --infodir=DIR           info documentation [DATAROOTDIR/info]
1460   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1461   --mandir=DIR            man documentation [DATAROOTDIR/man]
1462   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjpeg]
1463   --htmldir=DIR           html documentation [DOCDIR]
1464   --dvidir=DIR            dvi documentation [DOCDIR]
1465   --pdfdir=DIR            pdf documentation [DOCDIR]
1466   --psdir=DIR             ps documentation [DOCDIR]
1467 _ACEOF
1468
1469   cat <<\_ACEOF
1470
1471 Program names:
1472   --program-prefix=PREFIX            prepend PREFIX to installed program names
1473   --program-suffix=SUFFIX            append SUFFIX to installed program names
1474   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1475
1476 System types:
1477   --build=BUILD     configure for building on BUILD [guessed]
1478   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1479   --target=TARGET   configure for building compilers for TARGET [HOST]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484   case $ac_init_help in
1485      short | recursive ) echo "Configuration of OpenJPEG 1.5.0:";;
1486    esac
1487   cat <<\_ACEOF
1488
1489 Optional Features:
1490   --disable-option-checking  ignore unrecognized --enable/--with options
1491   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493   --enable-silent-rules   less verbose build output (undo: "make V=1")
1494   --disable-silent-rules  verbose build output (undo: "make V=0")
1495   --enable-shared[=PKGS]  build shared libraries [default=yes]
1496   --enable-static[=PKGS]  build static libraries [default=yes]
1497   --enable-fast-install[=PKGS]
1498                           optimize for fast installation [default=yes]
1499   --enable-dependency-tracking
1500                           do not reject slow dependency extractors
1501   --disable-dependency-tracking
1502                           speeds up one-time build
1503   --disable-libtool-lock  avoid locking (might break parallel builds)
1504   --enable-debug          build with debug symbols [default=disabled]
1505   --enable-mj2            build mj2 binaries [default=disabled]
1506   --enable-jpwl           build JPWL library [default=disabled]
1507   --enable-jpip           build jpip library [default=disabled]
1508   --enable-jpip-server    build jpip server [default=disabled]
1509   --disable-doc           Disable documentation build [default=enabled]
1510   --disable-png           disable PNG support [default=enabled]
1511   --disable-tiff          disable TIFF support [default=enabled]
1512   --disable-lcms2         disable LCMS-2 support [default=enabled]
1513   --disable-lcms1         disable LCMS-1 support [default=enabled]
1514
1515 Optional Packages:
1516   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1517   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1518   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1519                           both]
1520   --with-aix-soname=aix|svr4|both
1521                           shared library versioning (aka "SONAME") variant to
1522                           provide on AIX, [default=aix].
1523   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1524   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1525                           compiler's sysroot if not specified).
1526   --with-doxygen=FILE     doxygen program to use [default=doxygen]
1527
1528 Some influential environment variables:
1529   CC          C compiler command
1530   CFLAGS      C compiler flags
1531   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1532               nonstandard directory <lib dir>
1533   LIBS        libraries to pass to the linker, e.g. -l<library>
1534   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535               you have headers in a nonstandard directory <include dir>
1536   LT_SYS_LIBRARY_PATH
1537               User-defined run-time library search path.
1538   CPP         C preprocessor
1539   PKG_CONFIG  path to pkg-config utility
1540   PKG_CONFIG_PATH
1541               directories to add to pkg-config's search path
1542   PKG_CONFIG_LIBDIR
1543               path overriding pkg-config's built-in search path
1544   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
1545   PNG_LIBS    linker flags for PNG, overriding pkg-config
1546   Z_CFLAGS    preprocessor flags for libz
1547   Z_LIBS      linker flags for libz
1548   TIFF_CFLAGS preprocessor flags for libtiff
1549   TIFF_LIBS   linker flags for libtiff
1550   LCMS2_CFLAGS
1551               C compiler flags for LCMS2, overriding pkg-config
1552   LCMS2_LIBS  linker flags for LCMS2, overriding pkg-config
1553   LCMS1_CFLAGS
1554               C compiler flags for LCMS1, overriding pkg-config
1555   LCMS1_LIBS  linker flags for LCMS1, overriding pkg-config
1556   THREAD_CFLAGS
1557               compiler flag for the thread library
1558   THREAD_LIBS linker flags for thread library
1559   FCGI_CFLAGS preprocessor flags for libfcgi
1560   FCGI_LIBS   linker flags for libfcgi
1561   LIBCURL_CFLAGS
1562               C compiler flags for LIBCURL, overriding pkg-config
1563   LIBCURL_LIBS
1564               linker flags for LIBCURL, overriding pkg-config
1565
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1568
1569 Report bugs to <openjpeg@googlegroups.com>.
1570 OpenJPEG home page: <http://www.openjpeg.org>.
1571 _ACEOF
1572 ac_status=$?
1573 fi
1574
1575 if test "$ac_init_help" = "recursive"; then
1576   # If there are subdirs, report their specific --help.
1577   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578     test -d "$ac_dir" ||
1579       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1580       continue
1581     ac_builddir=.
1582
1583 case "$ac_dir" in
1584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *)
1586   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1587   # A ".." for each directory in $ac_dir_suffix.
1588   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1589   case $ac_top_builddir_sub in
1590   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592   esac ;;
1593 esac
1594 ac_abs_top_builddir=$ac_pwd
1595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596 # for backward compatibility:
1597 ac_top_builddir=$ac_top_build_prefix
1598
1599 case $srcdir in
1600   .)  # We are building in place.
1601     ac_srcdir=.
1602     ac_top_srcdir=$ac_top_builddir_sub
1603     ac_abs_top_srcdir=$ac_pwd ;;
1604   [\\/]* | ?:[\\/]* )  # Absolute name.
1605     ac_srcdir=$srcdir$ac_dir_suffix;
1606     ac_top_srcdir=$srcdir
1607     ac_abs_top_srcdir=$srcdir ;;
1608   *) # Relative name.
1609     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610     ac_top_srcdir=$ac_top_build_prefix$srcdir
1611     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 esac
1613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614
1615     cd "$ac_dir" || { ac_status=$?; continue; }
1616     # Check for guested configure.
1617     if test -f "$ac_srcdir/configure.gnu"; then
1618       echo &&
1619       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620     elif test -f "$ac_srcdir/configure"; then
1621       echo &&
1622       $SHELL "$ac_srcdir/configure" --help=recursive
1623     else
1624       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625     fi || ac_status=$?
1626     cd "$ac_pwd" || { ac_status=$?; break; }
1627   done
1628 fi
1629
1630 test -n "$ac_init_help" && exit $ac_status
1631 if $ac_init_version; then
1632   cat <<\_ACEOF
1633 OpenJPEG configure 1.5.0
1634 generated by GNU Autoconf 2.69
1635
1636 Copyright (C) 2012 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1639 _ACEOF
1640   exit
1641 fi
1642
1643 ## ------------------------ ##
1644 ## Autoconf initialization. ##
1645 ## ------------------------ ##
1646
1647 # ac_fn_c_try_compile LINENO
1648 # --------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_compile ()
1651 {
1652   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653   rm -f conftest.$ac_objext
1654   if { { ac_try="$ac_compile"
1655 case "(($ac_try" in
1656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657   *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661   (eval "$ac_compile") 2>conftest.err
1662   ac_status=$?
1663   if test -s conftest.err; then
1664     grep -v '^ *+' conftest.err >conftest.er1
1665     cat conftest.er1 >&5
1666     mv -f conftest.er1 conftest.err
1667   fi
1668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669   test $ac_status = 0; } && {
1670          test -z "$ac_c_werror_flag" ||
1671          test ! -s conftest.err
1672        } && test -s conftest.$ac_objext; then :
1673   ac_retval=0
1674 else
1675   $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678         ac_retval=1
1679 fi
1680   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681   as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_compile
1684
1685 # ac_fn_c_try_link LINENO
1686 # -----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_link ()
1689 {
1690   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691   rm -f conftest.$ac_objext conftest$ac_exeext
1692   if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_link") 2>conftest.err
1700   ac_status=$?
1701   if test -s conftest.err; then
1702     grep -v '^ *+' conftest.err >conftest.er1
1703     cat conftest.er1 >&5
1704     mv -f conftest.er1 conftest.err
1705   fi
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; } && {
1708          test -z "$ac_c_werror_flag" ||
1709          test ! -s conftest.err
1710        } && test -s conftest$ac_exeext && {
1711          test "$cross_compiling" = yes ||
1712          test -x conftest$ac_exeext
1713        }; then :
1714   ac_retval=0
1715 else
1716   $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719         ac_retval=1
1720 fi
1721   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723   # interfere with the next link command; also delete a directory that is
1724   # left behind by Apple's compiler.  We do this before executing the actions.
1725   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727   as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_link
1730
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741   $as_echo_n "(cached) " >&6
1742 else
1743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h.  */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749   eval "$3=yes"
1750 else
1751   eval "$3=no"
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 fi
1755 eval ac_res=\$$3
1756                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760 } # ac_fn_c_check_header_compile
1761
1762 # ac_fn_c_try_cpp LINENO
1763 # ----------------------
1764 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_cpp ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   if { { ac_try="$ac_cpp conftest.$ac_ext"
1769 case "(($ac_try" in
1770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771   *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776   ac_status=$?
1777   if test -s conftest.err; then
1778     grep -v '^ *+' conftest.err >conftest.er1
1779     cat conftest.er1 >&5
1780     mv -f conftest.er1 conftest.err
1781   fi
1782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783   test $ac_status = 0; } > conftest.i && {
1784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785          test ! -s conftest.err
1786        }; then :
1787   ac_retval=0
1788 else
1789   $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792     ac_retval=1
1793 fi
1794   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795   as_fn_set_status $ac_retval
1796
1797 } # ac_fn_c_try_cpp
1798
1799 # ac_fn_c_try_run LINENO
1800 # ----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1802 # that executables *can* be run.
1803 ac_fn_c_try_run ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   if { { ac_try="$ac_link"
1807 case "(($ac_try" in
1808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809   *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813   (eval "$ac_link") 2>&5
1814   ac_status=$?
1815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1817   { { case "(($ac_try" in
1818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819   *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823   (eval "$ac_try") 2>&5
1824   ac_status=$?
1825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826   test $ac_status = 0; }; }; then :
1827   ac_retval=0
1828 else
1829   $as_echo "$as_me: program exited with status $ac_status" >&5
1830        $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833        ac_retval=$ac_status
1834 fi
1835   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837   as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_run
1840
1841 # ac_fn_c_check_func LINENO FUNC VAR
1842 # ----------------------------------
1843 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1844 ac_fn_c_check_func ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 else
1852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h.  */
1854 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1856 #define $2 innocuous_$2
1857
1858 /* System header to define __stub macros and hopefully few prototypes,
1859     which can conflict with char $2 (); below.
1860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1861     <limits.h> exists even on freestanding compilers.  */
1862
1863 #ifdef __STDC__
1864 # include <limits.h>
1865 #else
1866 # include <assert.h>
1867 #endif
1868
1869 #undef $2
1870
1871 /* Override any GCC internal prototype to avoid an error.
1872    Use char because int might match the return type of a GCC
1873    builtin and then its argument prototype would still apply.  */
1874 #ifdef __cplusplus
1875 extern "C"
1876 #endif
1877 char $2 ();
1878 /* The GNU C library defines this for functions which it implements
1879     to always fail with ENOSYS.  Some functions are actually named
1880     something starting with __ and the normal name is an alias.  */
1881 #if defined __stub_$2 || defined __stub___$2
1882 choke me
1883 #endif
1884
1885 int
1886 main ()
1887 {
1888 return $2 ();
1889   ;
1890   return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_link "$LINENO"; then :
1894   eval "$3=yes"
1895 else
1896   eval "$3=no"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext \
1899     conftest$ac_exeext conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$3
1902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906 } # ac_fn_c_check_func
1907 cat >config.log <<_ACEOF
1908 This file contains any messages produced by compilers while
1909 running configure, to aid debugging if configure makes a mistake.
1910
1911 It was created by OpenJPEG $as_me 1.5.0, which was
1912 generated by GNU Autoconf 2.69.  Invocation command line was
1913
1914   $ $0 $@
1915
1916 _ACEOF
1917 exec 5>>config.log
1918 {
1919 cat <<_ASUNAME
1920 ## --------- ##
1921 ## Platform. ##
1922 ## --------- ##
1923
1924 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929
1930 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1932
1933 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1934 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1935 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1936 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1937 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1938 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1939 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1940
1941 _ASUNAME
1942
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948     $as_echo "PATH: $as_dir"
1949   done
1950 IFS=$as_save_IFS
1951
1952 } >&5
1953
1954 cat >&5 <<_ACEOF
1955
1956
1957 ## ----------- ##
1958 ## Core tests. ##
1959 ## ----------- ##
1960
1961 _ACEOF
1962
1963
1964 # Keep a trace of the command line.
1965 # Strip out --no-create and --no-recursion so they do not pile up.
1966 # Strip out --silent because we don't want to record it for future runs.
1967 # Also quote any args containing shell meta-characters.
1968 # Make two passes to allow for proper duplicate-argument suppression.
1969 ac_configure_args=
1970 ac_configure_args0=
1971 ac_configure_args1=
1972 ac_must_keep_next=false
1973 for ac_pass in 1 2
1974 do
1975   for ac_arg
1976   do
1977     case $ac_arg in
1978     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980     | -silent | --silent | --silen | --sile | --sil)
1981       continue ;;
1982     *\'*)
1983       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1984     esac
1985     case $ac_pass in
1986     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987     2)
1988       as_fn_append ac_configure_args1 " '$ac_arg'"
1989       if test $ac_must_keep_next = true; then
1990         ac_must_keep_next=false # Got value, back to normal.
1991       else
1992         case $ac_arg in
1993           *=* | --config-cache | -C | -disable-* | --disable-* \
1994           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996           | -with-* | --with-* | -without-* | --without-* | --x)
1997             case "$ac_configure_args0 " in
1998               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999             esac
2000             ;;
2001           -* ) ac_must_keep_next=true ;;
2002         esac
2003       fi
2004       as_fn_append ac_configure_args " '$ac_arg'"
2005       ;;
2006     esac
2007   done
2008 done
2009 { ac_configure_args0=; unset ac_configure_args0;}
2010 { ac_configure_args1=; unset ac_configure_args1;}
2011
2012 # When interrupted or exit'd, cleanup temporary files, and complete
2013 # config.log.  We remove comments because anyway the quotes in there
2014 # would cause problems or look ugly.
2015 # WARNING: Use '\'' to represent an apostrophe within the trap.
2016 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017 trap 'exit_status=$?
2018   # Save into config.log some information that might help in debugging.
2019   {
2020     echo
2021
2022     $as_echo "## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##"
2025     echo
2026     # The following way of writing the cache mishandles newlines in values,
2027 (
2028   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2029     eval ac_val=\$$ac_var
2030     case $ac_val in #(
2031     *${as_nl}*)
2032       case $ac_var in #(
2033       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2035       esac
2036       case $ac_var in #(
2037       _ | IFS | as_nl) ;; #(
2038       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2039       *) { eval $ac_var=; unset $ac_var;} ;;
2040       esac ;;
2041     esac
2042   done
2043   (set) 2>&1 |
2044     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2045     *${as_nl}ac_space=\ *)
2046       sed -n \
2047         "s/'\''/'\''\\\\'\'''\''/g;
2048           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2049       ;; #(
2050     *)
2051       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052       ;;
2053     esac |
2054     sort
2055 )
2056     echo
2057
2058     $as_echo "## ----------------- ##
2059 ## Output variables. ##
2060 ## ----------------- ##"
2061     echo
2062     for ac_var in $ac_subst_vars
2063     do
2064       eval ac_val=\$$ac_var
2065       case $ac_val in
2066       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067       esac
2068       $as_echo "$ac_var='\''$ac_val'\''"
2069     done | sort
2070     echo
2071
2072     if test -n "$ac_subst_files"; then
2073       $as_echo "## ------------------- ##
2074 ## File substitutions. ##
2075 ## ------------------- ##"
2076       echo
2077       for ac_var in $ac_subst_files
2078       do
2079         eval ac_val=\$$ac_var
2080         case $ac_val in
2081         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082         esac
2083         $as_echo "$ac_var='\''$ac_val'\''"
2084       done | sort
2085       echo
2086     fi
2087
2088     if test -s confdefs.h; then
2089       $as_echo "## ----------- ##
2090 ## confdefs.h. ##
2091 ## ----------- ##"
2092       echo
2093       cat confdefs.h
2094       echo
2095     fi
2096     test "$ac_signal" != 0 &&
2097       $as_echo "$as_me: caught signal $ac_signal"
2098     $as_echo "$as_me: exit $exit_status"
2099   } >&5
2100   rm -f core *.core core.conftest.* &&
2101     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2102     exit $exit_status
2103 ' 0
2104 for ac_signal in 1 2 13 15; do
2105   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2106 done
2107 ac_signal=0
2108
2109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2110 rm -f -r conftest* confdefs.h
2111
2112 $as_echo "/* confdefs.h */" > confdefs.h
2113
2114 # Predefined preprocessor variables.
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_NAME "$PACKAGE_NAME"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_STRING "$PACKAGE_STRING"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_URL "$PACKAGE_URL"
2138 _ACEOF
2139
2140
2141 # Let the site file select an alternate cache file if it wants to.
2142 # Prefer an explicitly selected file to automatically selected ones.
2143 ac_site_file1=NONE
2144 ac_site_file2=NONE
2145 if test -n "$CONFIG_SITE"; then
2146   # We do not want a PATH search for config.site.
2147   case $CONFIG_SITE in #((
2148     -*)  ac_site_file1=./$CONFIG_SITE;;
2149     */*) ac_site_file1=$CONFIG_SITE;;
2150     *)   ac_site_file1=./$CONFIG_SITE;;
2151   esac
2152 elif test "x$prefix" != xNONE; then
2153   ac_site_file1=$prefix/share/config.site
2154   ac_site_file2=$prefix/etc/config.site
2155 else
2156   ac_site_file1=$ac_default_prefix/share/config.site
2157   ac_site_file2=$ac_default_prefix/etc/config.site
2158 fi
2159 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2160 do
2161   test "x$ac_site_file" = xNONE && continue
2162   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2163     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2165     sed 's/^/| /' "$ac_site_file" >&5
2166     . "$ac_site_file" \
2167       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169 as_fn_error $? "failed to load site script $ac_site_file
2170 See \`config.log' for more details" "$LINENO" 5; }
2171   fi
2172 done
2173
2174 if test -r "$cache_file"; then
2175   # Some versions of bash will fail to source /dev/null (special files
2176   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2177   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2178     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179 $as_echo "$as_me: loading cache $cache_file" >&6;}
2180     case $cache_file in
2181       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182       *)                      . "./$cache_file";;
2183     esac
2184   fi
2185 else
2186   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187 $as_echo "$as_me: creating cache $cache_file" >&6;}
2188   >$cache_file
2189 fi
2190
2191 # Check that the precious variables saved in the cache have kept the same
2192 # value.
2193 ac_cache_corrupted=false
2194 for ac_var in $ac_precious_vars; do
2195   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2196   eval ac_new_set=\$ac_env_${ac_var}_set
2197   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2198   eval ac_new_val=\$ac_env_${ac_var}_value
2199   case $ac_old_set,$ac_new_set in
2200     set,)
2201       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2203       ac_cache_corrupted=: ;;
2204     ,set)
2205       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2207       ac_cache_corrupted=: ;;
2208     ,);;
2209     *)
2210       if test "x$ac_old_val" != "x$ac_new_val"; then
2211         # differences in whitespace do not lead to failure.
2212         ac_old_val_w=`echo x $ac_old_val`
2213         ac_new_val_w=`echo x $ac_new_val`
2214         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2215           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2216 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2217           ac_cache_corrupted=:
2218         else
2219           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2220 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2221           eval $ac_var=\$ac_old_val
2222         fi
2223         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2224 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2225         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2226 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2227       fi;;
2228   esac
2229   # Pass precious variables to config.status.
2230   if test "$ac_new_set" = set; then
2231     case $ac_new_val in
2232     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2233     *) ac_arg=$ac_var=$ac_new_val ;;
2234     esac
2235     case " $ac_configure_args " in
2236       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2237       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2238     esac
2239   fi
2240 done
2241 if $ac_cache_corrupted; then
2242   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2245 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2246   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2247 fi
2248 ## -------------------- ##
2249 ## Main body of script. ##
2250 ## -------------------- ##
2251
2252 ac_ext=c
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257
2258
2259
2260
2261 ac_config_headers="$ac_config_headers opj_config.h"
2262
2263
2264 ac_aux_dir=
2265 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2266   if test -f "$ac_dir/install-sh"; then
2267     ac_aux_dir=$ac_dir
2268     ac_install_sh="$ac_aux_dir/install-sh -c"
2269     break
2270   elif test -f "$ac_dir/install.sh"; then
2271     ac_aux_dir=$ac_dir
2272     ac_install_sh="$ac_aux_dir/install.sh -c"
2273     break
2274   elif test -f "$ac_dir/shtool"; then
2275     ac_aux_dir=$ac_dir
2276     ac_install_sh="$ac_aux_dir/shtool install -c"
2277     break
2278   fi
2279 done
2280 if test -z "$ac_aux_dir"; then
2281   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2282 fi
2283
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2291
2292
2293 # Make sure we can run config.sub.
2294 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2296
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298 $as_echo_n "checking build system type... " >&6; }
2299 if ${ac_cv_build+:} false; then :
2300   $as_echo_n "(cached) " >&6
2301 else
2302   ac_build_alias=$build_alias
2303 test "x$ac_build_alias" = x &&
2304   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305 test "x$ac_build_alias" = x &&
2306   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2307 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2309
2310 fi
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312 $as_echo "$ac_cv_build" >&6; }
2313 case $ac_cv_build in
2314 *-*-*) ;;
2315 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2316 esac
2317 build=$ac_cv_build
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_build
2320 shift
2321 build_cpu=$1
2322 build_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 build_os=$*
2327 IFS=$ac_save_IFS
2328 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2329
2330
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332 $as_echo_n "checking host system type... " >&6; }
2333 if ${ac_cv_host+:} false; then :
2334   $as_echo_n "(cached) " >&6
2335 else
2336   if test "x$host_alias" = x; then
2337   ac_cv_host=$ac_cv_build
2338 else
2339   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2340     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2341 fi
2342
2343 fi
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2345 $as_echo "$ac_cv_host" >&6; }
2346 case $ac_cv_host in
2347 *-*-*) ;;
2348 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2349 esac
2350 host=$ac_cv_host
2351 ac_save_IFS=$IFS; IFS='-'
2352 set x $ac_cv_host
2353 shift
2354 host_cpu=$1
2355 host_vendor=$2
2356 shift; shift
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2359 host_os=$*
2360 IFS=$ac_save_IFS
2361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2362
2363
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2365 $as_echo_n "checking target system type... " >&6; }
2366 if ${ac_cv_target+:} false; then :
2367   $as_echo_n "(cached) " >&6
2368 else
2369   if test "x$target_alias" = x; then
2370   ac_cv_target=$ac_cv_host
2371 else
2372   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2373     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2374 fi
2375
2376 fi
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2378 $as_echo "$ac_cv_target" >&6; }
2379 case $ac_cv_target in
2380 *-*-*) ;;
2381 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2382 esac
2383 target=$ac_cv_target
2384 ac_save_IFS=$IFS; IFS='-'
2385 set x $ac_cv_target
2386 shift
2387 target_cpu=$1
2388 target_vendor=$2
2389 shift; shift
2390 # Remember, the first character of IFS is used to create $*,
2391 # except with old shells:
2392 target_os=$*
2393 IFS=$ac_save_IFS
2394 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2395
2396
2397 # The aliases save the names the user supplied, while $host etc.
2398 # will get canonicalized.
2399 test -n "$target_alias" &&
2400   test "$program_prefix$program_suffix$program_transform_name" = \
2401     NONENONEs,x,x, &&
2402   program_prefix=${target_alias}-
2403
2404
2405
2406 am__api_version='1.15'
2407
2408 # Find a good install program.  We prefer a C program (faster),
2409 # so one script is as good as another.  But avoid the broken or
2410 # incompatible versions:
2411 # SysV /etc/install, /usr/sbin/install
2412 # SunOS /usr/etc/install
2413 # IRIX /sbin/install
2414 # AIX /bin/install
2415 # AmigaOS /C/install, which installs bootblocks on floppy discs
2416 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2417 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2418 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2419 # OS/2's system install, which has a completely different semantic
2420 # ./install, which can be erroneously created by make from ./install.sh.
2421 # Reject install programs that cannot install multiple files.
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2423 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2424 if test -z "$INSTALL"; then
2425 if ${ac_cv_path_install+:} false; then :
2426   $as_echo_n "(cached) " >&6
2427 else
2428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431   IFS=$as_save_IFS
2432   test -z "$as_dir" && as_dir=.
2433     # Account for people who put trailing slashes in PATH elements.
2434 case $as_dir/ in #((
2435   ./ | .// | /[cC]/* | \
2436   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2437   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2438   /usr/ucb/* ) ;;
2439   *)
2440     # OSF1 and SCO ODT 3.0 have their own names for install.
2441     # Don't use installbsd from OSF since it installs stuff as root
2442     # by default.
2443     for ac_prog in ginstall scoinst install; do
2444       for ac_exec_ext in '' $ac_executable_extensions; do
2445         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2446           if test $ac_prog = install &&
2447             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448             # AIX install.  It has an incompatible calling convention.
2449             :
2450           elif test $ac_prog = install &&
2451             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452             # program-specific install script used by HP pwplus--don't use.
2453             :
2454           else
2455             rm -rf conftest.one conftest.two conftest.dir
2456             echo one > conftest.one
2457             echo two > conftest.two
2458             mkdir conftest.dir
2459             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2460               test -s conftest.one && test -s conftest.two &&
2461               test -s conftest.dir/conftest.one &&
2462               test -s conftest.dir/conftest.two
2463             then
2464               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2465               break 3
2466             fi
2467           fi
2468         fi
2469       done
2470     done
2471     ;;
2472 esac
2473
2474   done
2475 IFS=$as_save_IFS
2476
2477 rm -rf conftest.one conftest.two conftest.dir
2478
2479 fi
2480   if test "${ac_cv_path_install+set}" = set; then
2481     INSTALL=$ac_cv_path_install
2482   else
2483     # As a last resort, use the slow shell script.  Don't cache a
2484     # value for INSTALL within a source directory, because that will
2485     # break other packages using the cache if that directory is
2486     # removed, or if the value is a relative name.
2487     INSTALL=$ac_install_sh
2488   fi
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2491 $as_echo "$INSTALL" >&6; }
2492
2493 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2494 # It thinks the first close brace ends the variable substitution.
2495 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2496
2497 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2498
2499 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2500
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2502 $as_echo_n "checking whether build environment is sane... " >&6; }
2503 # Reject unsafe characters in $srcdir or the absolute working directory
2504 # name.  Accept space and tab only in the latter.
2505 am_lf='
2506 '
2507 case `pwd` in
2508   *[\\\"\#\$\&\'\`$am_lf]*)
2509     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2510 esac
2511 case $srcdir in
2512   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2513     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2514 esac
2515
2516 # Do 'set' in a subshell so we don't clobber the current shell's
2517 # arguments.  Must try -L first in case configure is actually a
2518 # symlink; some systems play weird games with the mod time of symlinks
2519 # (eg FreeBSD returns the mod time of the symlink's containing
2520 # directory).
2521 if (
2522    am_has_slept=no
2523    for am_try in 1 2; do
2524      echo "timestamp, slept: $am_has_slept" > conftest.file
2525      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2526      if test "$*" = "X"; then
2527         # -L didn't work.
2528         set X `ls -t "$srcdir/configure" conftest.file`
2529      fi
2530      if test "$*" != "X $srcdir/configure conftest.file" \
2531         && test "$*" != "X conftest.file $srcdir/configure"; then
2532
2533         # If neither matched, then we have a broken ls.  This can happen
2534         # if, for instance, CONFIG_SHELL is bash and it inherits a
2535         # broken ls alias from the environment.  This has actually
2536         # happened.  Such a system could not be considered "sane".
2537         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2538   alias in your environment" "$LINENO" 5
2539      fi
2540      if test "$2" = conftest.file || test $am_try -eq 2; then
2541        break
2542      fi
2543      # Just in case.
2544      sleep 1
2545      am_has_slept=yes
2546    done
2547    test "$2" = conftest.file
2548    )
2549 then
2550    # Ok.
2551    :
2552 else
2553    as_fn_error $? "newly created file is older than distributed files!
2554 Check your system clock" "$LINENO" 5
2555 fi
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557 $as_echo "yes" >&6; }
2558 # If we didn't sleep, we still need to ensure time stamps of config.status and
2559 # generated files are strictly newer.
2560 am_sleep_pid=
2561 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2562   ( sleep 1 ) &
2563   am_sleep_pid=$!
2564 fi
2565
2566 rm -f conftest.file
2567
2568 test "$program_prefix" != NONE &&
2569   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2570 # Use a double $ so make ignores it.
2571 test "$program_suffix" != NONE &&
2572   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2573 # Double any \ or $.
2574 # By default was `s,x,x', remove it if useless.
2575 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2576 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2577
2578 # Expand $ac_aux_dir to an absolute path.
2579 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2580
2581 if test x"${MISSING+set}" != xset; then
2582   case $am_aux_dir in
2583   *\ * | *\     *)
2584     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2585   *)
2586     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2587   esac
2588 fi
2589 # Use eval to expand $SHELL
2590 if eval "$MISSING --is-lightweight"; then
2591   am_missing_run="$MISSING "
2592 else
2593   am_missing_run=
2594   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2595 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2596 fi
2597
2598 if test x"${install_sh+set}" != xset; then
2599   case $am_aux_dir in
2600   *\ * | *\     *)
2601     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2602   *)
2603     install_sh="\${SHELL} $am_aux_dir/install-sh"
2604   esac
2605 fi
2606
2607 # Installed binaries are usually stripped using 'strip' when the user
2608 # run "make install-strip".  However 'strip' might not be the right
2609 # tool to use in cross-compilation environments, therefore Automake
2610 # will honor the 'STRIP' environment variable to overrule this program.
2611 if test "$cross_compiling" != no; then
2612   if test -n "$ac_tool_prefix"; then
2613   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}strip; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_STRIP+:} false; then :
2618   $as_echo_n "(cached) " >&6
2619 else
2620   if test -n "$STRIP"; then
2621   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628     for ac_exec_ext in '' $ac_executable_extensions; do
2629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632     break 2
2633   fi
2634 done
2635   done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 STRIP=$ac_cv_prog_STRIP
2641 if test -n "$STRIP"; then
2642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2643 $as_echo "$STRIP" >&6; }
2644 else
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649
2650 fi
2651 if test -z "$ac_cv_prog_STRIP"; then
2652   ac_ct_STRIP=$STRIP
2653   # Extract the first word of "strip", so it can be a program name with args.
2654 set dummy strip; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660   if test -n "$ac_ct_STRIP"; then
2661   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666   IFS=$as_save_IFS
2667   test -z "$as_dir" && as_dir=.
2668     for ac_exec_ext in '' $ac_executable_extensions; do
2669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670     ac_cv_prog_ac_ct_STRIP="strip"
2671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672     break 2
2673   fi
2674 done
2675   done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2681 if test -n "$ac_ct_STRIP"; then
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2683 $as_echo "$ac_ct_STRIP" >&6; }
2684 else
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689   if test "x$ac_ct_STRIP" = x; then
2690     STRIP=":"
2691   else
2692     case $cross_compiling:$ac_tool_warned in
2693 yes:)
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696 ac_tool_warned=yes ;;
2697 esac
2698     STRIP=$ac_ct_STRIP
2699   fi
2700 else
2701   STRIP="$ac_cv_prog_STRIP"
2702 fi
2703
2704 fi
2705 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2708 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2709 if test -z "$MKDIR_P"; then
2710   if ${ac_cv_path_mkdir+:} false; then :
2711   $as_echo_n "(cached) " >&6
2712 else
2713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2715 do
2716   IFS=$as_save_IFS
2717   test -z "$as_dir" && as_dir=.
2718     for ac_prog in mkdir gmkdir; do
2719          for ac_exec_ext in '' $ac_executable_extensions; do
2720            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2721            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2722              'mkdir (GNU coreutils) '* | \
2723              'mkdir (coreutils) '* | \
2724              'mkdir (fileutils) '4.1*)
2725                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2726                break 3;;
2727            esac
2728          done
2729        done
2730   done
2731 IFS=$as_save_IFS
2732
2733 fi
2734
2735   test -d ./--version && rmdir ./--version
2736   if test "${ac_cv_path_mkdir+set}" = set; then
2737     MKDIR_P="$ac_cv_path_mkdir -p"
2738   else
2739     # As a last resort, use the slow shell script.  Don't cache a
2740     # value for MKDIR_P within a source directory, because that will
2741     # break other packages using the cache if that directory is
2742     # removed, or if the value is a relative name.
2743     MKDIR_P="$ac_install_sh -d"
2744   fi
2745 fi
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2747 $as_echo "$MKDIR_P" >&6; }
2748
2749 for ac_prog in gawk mawk nawk awk
2750 do
2751   # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set dummy $ac_prog; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_AWK+:} false; then :
2756   $as_echo_n "(cached) " >&6
2757 else
2758   if test -n "$AWK"; then
2759   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764   IFS=$as_save_IFS
2765   test -z "$as_dir" && as_dir=.
2766     for ac_exec_ext in '' $ac_executable_extensions; do
2767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768     ac_cv_prog_AWK="$ac_prog"
2769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770     break 2
2771   fi
2772 done
2773   done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 AWK=$ac_cv_prog_AWK
2779 if test -n "$AWK"; then
2780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2781 $as_echo "$AWK" >&6; }
2782 else
2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2786
2787
2788   test -n "$AWK" && break
2789 done
2790
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2792 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2793 set x ${MAKE-make}
2794 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2795 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2796   $as_echo_n "(cached) " >&6
2797 else
2798   cat >conftest.make <<\_ACEOF
2799 SHELL = /bin/sh
2800 all:
2801         @echo '@@@%%%=$(MAKE)=@@@%%%'
2802 _ACEOF
2803 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2804 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2805   *@@@%%%=?*=@@@%%%*)
2806     eval ac_cv_prog_make_${ac_make}_set=yes;;
2807   *)
2808     eval ac_cv_prog_make_${ac_make}_set=no;;
2809 esac
2810 rm -f conftest.make
2811 fi
2812 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814 $as_echo "yes" >&6; }
2815   SET_MAKE=
2816 else
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819   SET_MAKE="MAKE=${MAKE-make}"
2820 fi
2821
2822 rm -rf .tst 2>/dev/null
2823 mkdir .tst 2>/dev/null
2824 if test -d .tst; then
2825   am__leading_dot=.
2826 else
2827   am__leading_dot=_
2828 fi
2829 rmdir .tst 2>/dev/null
2830
2831 # Check whether --enable-silent-rules was given.
2832 if test "${enable_silent_rules+set}" = set; then :
2833   enableval=$enable_silent_rules;
2834 fi
2835
2836 case $enable_silent_rules in # (((
2837   yes) AM_DEFAULT_VERBOSITY=0;;
2838    no) AM_DEFAULT_VERBOSITY=1;;
2839     *) AM_DEFAULT_VERBOSITY=1;;
2840 esac
2841 am_make=${MAKE-make}
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2843 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2844 if ${am_cv_make_support_nested_variables+:} false; then :
2845   $as_echo_n "(cached) " >&6
2846 else
2847   if $as_echo 'TRUE=$(BAR$(V))
2848 BAR0=false
2849 BAR1=true
2850 V=1
2851 am__doit:
2852         @$(TRUE)
2853 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2854   am_cv_make_support_nested_variables=yes
2855 else
2856   am_cv_make_support_nested_variables=no
2857 fi
2858 fi
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2860 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2861 if test $am_cv_make_support_nested_variables = yes; then
2862     AM_V='$(V)'
2863   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2864 else
2865   AM_V=$AM_DEFAULT_VERBOSITY
2866   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2867 fi
2868 AM_BACKSLASH='\'
2869
2870 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872   # is not polluted with repeated "-I."
2873   am__isrc=' -I$(srcdir)'
2874   # test to see if srcdir already configured
2875   if test -f $srcdir/config.status; then
2876     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2877   fi
2878 fi
2879
2880 # test whether we have cygpath
2881 if test -z "$CYGPATH_W"; then
2882   if (cygpath --version) >/dev/null 2>/dev/null; then
2883     CYGPATH_W='cygpath -w'
2884   else
2885     CYGPATH_W=echo
2886   fi
2887 fi
2888
2889
2890 # Define the identity of the package.
2891  PACKAGE='openjpeg'
2892  VERSION='1.5.0'
2893
2894
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE "$PACKAGE"
2897 _ACEOF
2898
2899
2900 cat >>confdefs.h <<_ACEOF
2901 #define VERSION "$VERSION"
2902 _ACEOF
2903
2904 # Some tools Automake needs.
2905
2906 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2907
2908
2909 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2910
2911
2912 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2913
2914
2915 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2916
2917
2918 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2919
2920 # For better backward compatibility.  To be removed once Automake 1.9.x
2921 # dies out for good.  For more background, see:
2922 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2923 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2924 mkdir_p='$(MKDIR_P)'
2925
2926 # We need awk for the "check" target (and possibly the TAP driver).  The
2927 # system "awk" is bad on some platforms.
2928 # Always define AMTAR for backward compatibility.  Yes, it's still used
2929 # in the wild :-(  We should find a proper way to deprecate it ...
2930 AMTAR='$${TAR-tar}'
2931
2932
2933 # We'll loop over all known methods to create a tar archive until one works.
2934 _am_tools='gnutar  pax cpio none'
2935
2936 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2937
2938
2939
2940
2941
2942
2943 # POSIX will say in a future version that running "rm -f" with no argument
2944 # is OK; and we want to be able to make that assumption in our Makefile
2945 # recipes.  So use an aggressive probe to check that the usage we want is
2946 # actually supported "in the wild" to an acceptable degree.
2947 # See automake bug#10828.
2948 # To make any issue more visible, cause the running configure to be aborted
2949 # by default if the 'rm' program in use doesn't match our expectations; the
2950 # user can still override this though.
2951 if rm -f && rm -fr && rm -rf; then : OK; else
2952   cat >&2 <<'END'
2953 Oops!
2954
2955 Your 'rm' program seems unable to run without file operands specified
2956 on the command line, even when the '-f' option is present.  This is contrary
2957 to the behaviour of most rm programs out there, and not conforming with
2958 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2959
2960 Please tell bug-automake@gnu.org about your system, including the value
2961 of your $PATH and any error possibly output before this message.  This
2962 can help us improve future automake versions.
2963
2964 END
2965   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2966     echo 'Configuration will proceed anyway, since you have set the' >&2
2967     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2968     echo >&2
2969   else
2970     cat >&2 <<'END'
2971 Aborting the configuration process, to ensure you take notice of the issue.
2972
2973 You can download and install GNU coreutils to get an 'rm' implementation
2974 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2975
2976 If you want to complete the configuration process using your problematic
2977 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2978 to "yes", and re-run configure.
2979
2980 END
2981     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2982   fi
2983 fi
2984
2985 # Check whether --enable-silent-rules was given.
2986 if test "${enable_silent_rules+set}" = set; then :
2987   enableval=$enable_silent_rules;
2988 fi
2989
2990 case $enable_silent_rules in # (((
2991   yes) AM_DEFAULT_VERBOSITY=0;;
2992    no) AM_DEFAULT_VERBOSITY=1;;
2993     *) AM_DEFAULT_VERBOSITY=0;;
2994 esac
2995 am_make=${MAKE-make}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2998 if ${am_cv_make_support_nested_variables+:} false; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   if $as_echo 'TRUE=$(BAR$(V))
3002 BAR0=false
3003 BAR1=true
3004 V=1
3005 am__doit:
3006         @$(TRUE)
3007 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3008   am_cv_make_support_nested_variables=yes
3009 else
3010   am_cv_make_support_nested_variables=no
3011 fi
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3015 if test $am_cv_make_support_nested_variables = yes; then
3016     AM_V='$(V)'
3017   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018 else
3019   AM_V=$AM_DEFAULT_VERBOSITY
3020   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021 fi
3022 AM_BACKSLASH='\'
3023
3024
3025 MAJOR_NR=1
3026 MINOR_NR=5
3027 MICRO_NR=0
3028
3029
3030
3031
3032
3033 case `pwd` in
3034   *\ * | *\     *)
3035     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3036 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3037 esac
3038
3039
3040
3041 macro_version='2.4.6'
3042 macro_revision='2.4.6'
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056 ltmain=$ac_aux_dir/ltmain.sh
3057
3058 # Backslashify metacharacters that are still active within
3059 # double-quoted strings.
3060 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3061
3062 # Same as above, but do not quote variable references.
3063 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3064
3065 # Sed substitution to delay expansion of an escaped shell variable in a
3066 # double_quote_subst'ed string.
3067 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3068
3069 # Sed substitution to delay expansion of an escaped single quote.
3070 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3071
3072 # Sed substitution to avoid accidental globbing in evaled expressions
3073 no_glob_subst='s/\*/\\\*/g'
3074
3075 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3076 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3078
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3080 $as_echo_n "checking how to print strings... " >&6; }
3081 # Test print first, because it will be a builtin if present.
3082 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3083    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3084   ECHO='print -r --'
3085 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3086   ECHO='printf %s\n'
3087 else
3088   # Use this function as a fallback that always works.
3089   func_fallback_echo ()
3090   {
3091     eval 'cat <<_LTECHO_EOF
3092 $1
3093 _LTECHO_EOF'
3094   }
3095   ECHO='func_fallback_echo'
3096 fi
3097
3098 # func_echo_all arg...
3099 # Invoke $ECHO with all args, space-separated.
3100 func_echo_all ()
3101 {
3102     $ECHO ""
3103 }
3104
3105 case $ECHO in
3106   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3107 $as_echo "printf" >&6; } ;;
3108   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3109 $as_echo "print -r" >&6; } ;;
3110   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3111 $as_echo "cat" >&6; } ;;
3112 esac
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127 DEPDIR="${am__leading_dot}deps"
3128
3129 ac_config_commands="$ac_config_commands depfiles"
3130
3131
3132 am_make=${MAKE-make}
3133 cat > confinc << 'END'
3134 am__doit:
3135         @echo this is the am__doit target
3136 .PHONY: am__doit
3137 END
3138 # If we don't find an include directive, just comment out the code.
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3140 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3141 am__include="#"
3142 am__quote=
3143 _am_result=none
3144 # First try GNU make style include.
3145 echo "include confinc" > confmf
3146 # Ignore all kinds of additional output from 'make'.
3147 case `$am_make -s -f confmf 2> /dev/null` in #(
3148 *the\ am__doit\ target*)
3149   am__include=include
3150   am__quote=
3151   _am_result=GNU
3152   ;;
3153 esac
3154 # Now try BSD make style include.
3155 if test "$am__include" = "#"; then
3156    echo '.include "confinc"' > confmf
3157    case `$am_make -s -f confmf 2> /dev/null` in #(
3158    *the\ am__doit\ target*)
3159      am__include=.include
3160      am__quote="\""
3161      _am_result=BSD
3162      ;;
3163    esac
3164 fi
3165
3166
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3168 $as_echo "$_am_result" >&6; }
3169 rm -f confinc confmf
3170
3171 # Check whether --enable-dependency-tracking was given.
3172 if test "${enable_dependency_tracking+set}" = set; then :
3173   enableval=$enable_dependency_tracking;
3174 fi
3175
3176 if test "x$enable_dependency_tracking" != xno; then
3177   am_depcomp="$ac_aux_dir/depcomp"
3178   AMDEPBACKSLASH='\'
3179   am__nodep='_no'
3180 fi
3181  if test "x$enable_dependency_tracking" != xno; then
3182   AMDEP_TRUE=
3183   AMDEP_FALSE='#'
3184 else
3185   AMDEP_TRUE='#'
3186   AMDEP_FALSE=
3187 fi
3188
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 if test -n "$ac_tool_prefix"; then
3196   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3197 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_CC+:} false; then :
3201   $as_echo_n "(cached) " >&6
3202 else
3203   if test -n "$CC"; then
3204   ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211     for ac_exec_ext in '' $ac_executable_extensions; do
3212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215     break 2
3216   fi
3217 done
3218   done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 CC=$ac_cv_prog_CC
3224 if test -n "$CC"; then
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3227 else
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233 fi
3234 if test -z "$ac_cv_prog_CC"; then
3235   ac_ct_CC=$CC
3236   # Extract the first word of "gcc", so it can be a program name with args.
3237 set dummy gcc; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241   $as_echo_n "(cached) " >&6
3242 else
3243   if test -n "$ac_ct_CC"; then
3244   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251     for ac_exec_ext in '' $ac_executable_extensions; do
3252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253     ac_cv_prog_ac_ct_CC="gcc"
3254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255     break 2
3256   fi
3257 done
3258   done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264 if test -n "$ac_ct_CC"; then
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266 $as_echo "$ac_ct_CC" >&6; }
3267 else
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272   if test "x$ac_ct_CC" = x; then
3273     CC=""
3274   else
3275     case $cross_compiling:$ac_tool_warned in
3276 yes:)
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3279 ac_tool_warned=yes ;;
3280 esac
3281     CC=$ac_ct_CC
3282   fi
3283 else
3284   CC="$ac_cv_prog_CC"
3285 fi
3286
3287 if test -z "$CC"; then
3288           if test -n "$ac_tool_prefix"; then
3289     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3290 set dummy ${ac_tool_prefix}cc; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if ${ac_cv_prog_CC+:} false; then :
3294   $as_echo_n "(cached) " >&6
3295 else
3296   if test -n "$CC"; then
3297   ac_cv_prog_CC="$CC" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302   IFS=$as_save_IFS
3303   test -z "$as_dir" && as_dir=.
3304     for ac_exec_ext in '' $ac_executable_extensions; do
3305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306     ac_cv_prog_CC="${ac_tool_prefix}cc"
3307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308     break 2
3309   fi
3310 done
3311   done
3312 IFS=$as_save_IFS
3313
3314 fi
3315 fi
3316 CC=$ac_cv_prog_CC
3317 if test -n "$CC"; then
3318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3320 else
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 fi
3324
3325
3326   fi
3327 fi
3328 if test -z "$CC"; then
3329   # Extract the first word of "cc", so it can be a program name with args.
3330 set dummy cc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   if test -n "$CC"; then
3337   ac_cv_prog_CC="$CC" # Let the user override the test.
3338 else
3339   ac_prog_rejected=no
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345     for ac_exec_ext in '' $ac_executable_extensions; do
3346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3348        ac_prog_rejected=yes
3349        continue
3350      fi
3351     ac_cv_prog_CC="cc"
3352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353     break 2
3354   fi
3355 done
3356   done
3357 IFS=$as_save_IFS
3358
3359 if test $ac_prog_rejected = yes; then
3360   # We found a bogon in the path, so make sure we never use it.
3361   set dummy $ac_cv_prog_CC
3362   shift
3363   if test $# != 0; then
3364     # We chose a different compiler from the bogus one.
3365     # However, it has the same basename, so the bogon will be chosen
3366     # first if we set CC to just the basename; use the full file name.
3367     shift
3368     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3369   fi
3370 fi
3371 fi
3372 fi
3373 CC=$ac_cv_prog_CC
3374 if test -n "$CC"; then
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376 $as_echo "$CC" >&6; }
3377 else
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 fi
3381
3382
3383 fi
3384 if test -z "$CC"; then
3385   if test -n "$ac_tool_prefix"; then
3386   for ac_prog in cl.exe
3387   do
3388     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_CC+:} false; then :
3393   $as_echo_n "(cached) " >&6
3394 else
3395   if test -n "$CC"; then
3396   ac_cv_prog_CC="$CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403     for ac_exec_ext in '' $ac_executable_extensions; do
3404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410   done
3411 IFS=$as_save_IFS
3412
3413 fi
3414 fi
3415 CC=$ac_cv_prog_CC
3416 if test -n "$CC"; then
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3419 else
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3422 fi
3423
3424
3425     test -n "$CC" && break
3426   done
3427 fi
3428 if test -z "$CC"; then
3429   ac_ct_CC=$CC
3430   for ac_prog in cl.exe
3431 do
3432   # Extract the first word of "$ac_prog", so it can be a program name with args.
3433 set dummy $ac_prog; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3437   $as_echo_n "(cached) " >&6
3438 else
3439   if test -n "$ac_ct_CC"; then
3440   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445   IFS=$as_save_IFS
3446   test -z "$as_dir" && as_dir=.
3447     for ac_exec_ext in '' $ac_executable_extensions; do
3448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449     ac_cv_prog_ac_ct_CC="$ac_prog"
3450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451     break 2
3452   fi
3453 done
3454   done
3455 IFS=$as_save_IFS
3456
3457 fi
3458 fi
3459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460 if test -n "$ac_ct_CC"; then
3461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462 $as_echo "$ac_ct_CC" >&6; }
3463 else
3464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466 fi
3467
3468
3469   test -n "$ac_ct_CC" && break
3470 done
3471
3472   if test "x$ac_ct_CC" = x; then
3473     CC=""
3474   else
3475     case $cross_compiling:$ac_tool_warned in
3476 yes:)
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479 ac_tool_warned=yes ;;
3480 esac
3481     CC=$ac_ct_CC
3482   fi
3483 fi
3484
3485 fi
3486
3487
3488 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "no acceptable C compiler found in \$PATH
3491 See \`config.log' for more details" "$LINENO" 5; }
3492
3493 # Provide some information about the compiler.
3494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3495 set X $ac_compile
3496 ac_compiler=$2
3497 for ac_option in --version -v -V -qversion; do
3498   { { ac_try="$ac_compiler $ac_option >&5"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3506   ac_status=$?
3507   if test -s conftest.err; then
3508     sed '10a\
3509 ... rest of stderr output deleted ...
3510          10q' conftest.err >conftest.er1
3511     cat conftest.er1 >&5
3512   fi
3513   rm -f conftest.er1 conftest.err
3514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515   test $ac_status = 0; }
3516 done
3517
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h.  */
3520
3521 int
3522 main ()
3523 {
3524
3525   ;
3526   return 0;
3527 }
3528 _ACEOF
3529 ac_clean_files_save=$ac_clean_files
3530 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3531 # Try to create an executable without -o first, disregard a.out.
3532 # It will help us diagnose broken compilers, and finding out an intuition
3533 # of exeext.
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3535 $as_echo_n "checking whether the C compiler works... " >&6; }
3536 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3537
3538 # The possible output files:
3539 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3540
3541 ac_rmfiles=
3542 for ac_file in $ac_files
3543 do
3544   case $ac_file in
3545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3546     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3547   esac
3548 done
3549 rm -f $ac_rmfiles
3550
3551 if { { ac_try="$ac_link_default"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558   (eval "$ac_link_default") 2>&5
3559   ac_status=$?
3560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561   test $ac_status = 0; }; then :
3562   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3563 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3564 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3565 # so that the user can short-circuit this test for compilers unknown to
3566 # Autoconf.
3567 for ac_file in $ac_files ''
3568 do
3569   test -f "$ac_file" || continue
3570   case $ac_file in
3571     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3572         ;;
3573     [ab].out )
3574         # We found the default executable, but exeext='' is most
3575         # certainly right.
3576         break;;
3577     *.* )
3578         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3579         then :; else
3580            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581         fi
3582         # We set ac_cv_exeext here because the later test for it is not
3583         # safe: cross compilers may not add the suffix if given an `-o'
3584         # argument, so we may need to know it at that point already.
3585         # Even if this section looks crufty: it has the advantage of
3586         # actually working.
3587         break;;
3588     * )
3589         break;;
3590   esac
3591 done
3592 test "$ac_cv_exeext" = no && ac_cv_exeext=
3593
3594 else
3595   ac_file=''
3596 fi
3597 if test -z "$ac_file"; then :
3598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3602
3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error 77 "C compiler cannot create executables
3606 See \`config.log' for more details" "$LINENO" 5; }
3607 else
3608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3609 $as_echo "yes" >&6; }
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3612 $as_echo_n "checking for C compiler default output file name... " >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3614 $as_echo "$ac_file" >&6; }
3615 ac_exeext=$ac_cv_exeext
3616
3617 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3618 ac_clean_files=$ac_clean_files_save
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3620 $as_echo_n "checking for suffix of executables... " >&6; }
3621 if { { ac_try="$ac_link"
3622 case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628   (eval "$ac_link") 2>&5
3629   ac_status=$?
3630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631   test $ac_status = 0; }; then :
3632   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3633 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3634 # work properly (i.e., refer to `conftest.exe'), while it won't with
3635 # `rm'.
3636 for ac_file in conftest.exe conftest conftest.*; do
3637   test -f "$ac_file" || continue
3638   case $ac_file in
3639     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3640     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3641           break;;
3642     * ) break;;
3643   esac
3644 done
3645 else
3646   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3649 See \`config.log' for more details" "$LINENO" 5; }
3650 fi
3651 rm -f conftest conftest$ac_cv_exeext
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3653 $as_echo "$ac_cv_exeext" >&6; }
3654
3655 rm -f conftest.$ac_ext
3656 EXEEXT=$ac_cv_exeext
3657 ac_exeext=$EXEEXT
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h.  */
3660 #include <stdio.h>
3661 int
3662 main ()
3663 {
3664 FILE *f = fopen ("conftest.out", "w");
3665  return ferror (f) || fclose (f) != 0;
3666
3667   ;
3668   return 0;
3669 }
3670 _ACEOF
3671 ac_clean_files="$ac_clean_files conftest.out"
3672 # Check that the compiler produces executables we can run.  If not, either
3673 # the compiler is broken, or we cross compile.
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3675 $as_echo_n "checking whether we are cross compiling... " >&6; }
3676 if test "$cross_compiling" != yes; then
3677   { { ac_try="$ac_link"
3678 case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684   (eval "$ac_link") 2>&5
3685   ac_status=$?
3686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687   test $ac_status = 0; }
3688   if { ac_try='./conftest$ac_cv_exeext'
3689   { { case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695   (eval "$ac_try") 2>&5
3696   ac_status=$?
3697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698   test $ac_status = 0; }; }; then
3699     cross_compiling=no
3700   else
3701     if test "$cross_compiling" = maybe; then
3702         cross_compiling=yes
3703     else
3704         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $? "cannot run C compiled programs.
3707 If you meant to cross compile, use \`--host'.
3708 See \`config.log' for more details" "$LINENO" 5; }
3709     fi
3710   fi
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3713 $as_echo "$cross_compiling" >&6; }
3714
3715 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3716 ac_clean_files=$ac_clean_files_save
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3718 $as_echo_n "checking for suffix of object files... " >&6; }
3719 if ${ac_cv_objext+:} false; then :
3720   $as_echo_n "(cached) " >&6
3721 else
3722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h.  */
3724
3725 int
3726 main ()
3727 {
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 rm -f conftest.o conftest.obj
3734 if { { ac_try="$ac_compile"
3735 case "(($ac_try" in
3736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737   *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741   (eval "$ac_compile") 2>&5
3742   ac_status=$?
3743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744   test $ac_status = 0; }; then :
3745   for ac_file in conftest.o conftest.obj conftest.*; do
3746   test -f "$ac_file" || continue;
3747   case $ac_file in
3748     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3749     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3750        break;;
3751   esac
3752 done
3753 else
3754   $as_echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error $? "cannot compute suffix of object files: cannot compile
3760 See \`config.log' for more details" "$LINENO" 5; }
3761 fi
3762 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3763 fi
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3765 $as_echo "$ac_cv_objext" >&6; }
3766 OBJEXT=$ac_cv_objext
3767 ac_objext=$OBJEXT
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3769 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3770 if ${ac_cv_c_compiler_gnu+:} false; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h.  */
3775
3776 int
3777 main ()
3778 {
3779 #ifndef __GNUC__
3780        choke me
3781 #endif
3782
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788   ac_compiler_gnu=yes
3789 else
3790   ac_compiler_gnu=no
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3794
3795 fi
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3797 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3798 if test $ac_compiler_gnu = yes; then
3799   GCC=yes
3800 else
3801   GCC=
3802 fi
3803 ac_test_CFLAGS=${CFLAGS+set}
3804 ac_save_CFLAGS=$CFLAGS
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3806 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3807 if ${ac_cv_prog_cc_g+:} false; then :
3808   $as_echo_n "(cached) " >&6
3809 else
3810   ac_save_c_werror_flag=$ac_c_werror_flag
3811    ac_c_werror_flag=yes
3812    ac_cv_prog_cc_g=no
3813    CFLAGS="-g"
3814    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h.  */
3816
3817 int
3818 main ()
3819 {
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826   ac_cv_prog_cc_g=yes
3827 else
3828   CFLAGS=""
3829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h.  */
3831
3832 int
3833 main ()
3834 {
3835
3836   ;
3837   return 0;
3838 }
3839 _ACEOF
3840 if ac_fn_c_try_compile "$LINENO"; then :
3841
3842 else
3843   ac_c_werror_flag=$ac_save_c_werror_flag
3844          CFLAGS="-g"
3845          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h.  */
3847
3848 int
3849 main ()
3850 {
3851
3852   ;
3853   return 0;
3854 }
3855 _ACEOF
3856 if ac_fn_c_try_compile "$LINENO"; then :
3857   ac_cv_prog_cc_g=yes
3858 fi
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 fi
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 fi
3863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864    ac_c_werror_flag=$ac_save_c_werror_flag
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3867 $as_echo "$ac_cv_prog_cc_g" >&6; }
3868 if test "$ac_test_CFLAGS" = set; then
3869   CFLAGS=$ac_save_CFLAGS
3870 elif test $ac_cv_prog_cc_g = yes; then
3871   if test "$GCC" = yes; then
3872     CFLAGS="-g -O2"
3873   else
3874     CFLAGS="-g"
3875   fi
3876 else
3877   if test "$GCC" = yes; then
3878     CFLAGS="-O2"
3879   else
3880     CFLAGS=
3881   fi
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3884 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3885 if ${ac_cv_prog_cc_c89+:} false; then :
3886   $as_echo_n "(cached) " >&6
3887 else
3888   ac_cv_prog_cc_c89=no
3889 ac_save_CC=$CC
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h.  */
3892 #include <stdarg.h>
3893 #include <stdio.h>
3894 struct stat;
3895 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3896 struct buf { int x; };
3897 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3898 static char *e (p, i)
3899      char **p;
3900      int i;
3901 {
3902   return p[i];
3903 }
3904 static char *f (char * (*g) (char **, int), char **p, ...)
3905 {
3906   char *s;
3907   va_list v;
3908   va_start (v,p);
3909   s = g (p, va_arg (v,int));
3910   va_end (v);
3911   return s;
3912 }
3913
3914 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3915    function prototypes and stuff, but not '\xHH' hex character constants.
3916    These don't provoke an error unfortunately, instead are silently treated
3917    as 'x'.  The following induces an error, until -std is added to get
3918    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3919    array size at least.  It's necessary to write '\x00'==0 to get something
3920    that's true only with -std.  */
3921 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3922
3923 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3924    inside strings and character constants.  */
3925 #define FOO(x) 'x'
3926 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3927
3928 int test (int i, double x);
3929 struct s1 {int (*f) (int a);};
3930 struct s2 {int (*f) (double a);};
3931 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3932 int argc;
3933 char **argv;
3934 int
3935 main ()
3936 {
3937 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3938   ;
3939   return 0;
3940 }
3941 _ACEOF
3942 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3943         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3944 do
3945   CC="$ac_save_CC $ac_arg"
3946   if ac_fn_c_try_compile "$LINENO"; then :
3947   ac_cv_prog_cc_c89=$ac_arg
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext
3950   test "x$ac_cv_prog_cc_c89" != "xno" && break
3951 done
3952 rm -f conftest.$ac_ext
3953 CC=$ac_save_CC
3954
3955 fi
3956 # AC_CACHE_VAL
3957 case "x$ac_cv_prog_cc_c89" in
3958   x)
3959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3960 $as_echo "none needed" >&6; } ;;
3961   xno)
3962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3963 $as_echo "unsupported" >&6; } ;;
3964   *)
3965     CC="$CC $ac_cv_prog_cc_c89"
3966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3967 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3968 esac
3969 if test "x$ac_cv_prog_cc_c89" != xno; then :
3970
3971 fi
3972
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978
3979 ac_ext=c
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3985 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3986 if ${am_cv_prog_cc_c_o+:} false; then :
3987   $as_echo_n "(cached) " >&6
3988 else
3989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h.  */
3991
3992 int
3993 main ()
3994 {
3995
3996   ;
3997   return 0;
3998 }
3999 _ACEOF
4000   # Make sure it works both with $CC and with simple cc.
4001   # Following AC_PROG_CC_C_O, we do the test twice because some
4002   # compilers refuse to overwrite an existing .o file with -o,
4003   # though they will create one.
4004   am_cv_prog_cc_c_o=yes
4005   for am_i in 1 2; do
4006     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4007    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4008    ac_status=$?
4009    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010    (exit $ac_status); } \
4011          && test -f conftest2.$ac_objext; then
4012       : OK
4013     else
4014       am_cv_prog_cc_c_o=no
4015       break
4016     fi
4017   done
4018   rm -f core conftest*
4019   unset am_i
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4022 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4023 if test "$am_cv_prog_cc_c_o" != yes; then
4024    # Losing compiler, so override with the script.
4025    # FIXME: It is wrong to rewrite CC.
4026    # But if we don't then we get into trouble of one sort or another.
4027    # A longer-term fix would be to have automake use am__CC in this case,
4028    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4029    CC="$am_aux_dir/compile $CC"
4030 fi
4031 ac_ext=c
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037
4038 depcc="$CC"   am_compiler_list=
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041 $as_echo_n "checking dependency style of $depcc... " >&6; }
4042 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046   # We make a subdir and do the tests there.  Otherwise we can end up
4047   # making bogus files that we don't know about and never remove.  For
4048   # instance it was reported that on HP-UX the gcc test will end up
4049   # making a dummy file named 'D' -- because '-MD' means "put the output
4050   # in D".
4051   rm -rf conftest.dir
4052   mkdir conftest.dir
4053   # Copy depcomp to subdir because otherwise we won't find it if we're
4054   # using a relative directory.
4055   cp "$am_depcomp" conftest.dir
4056   cd conftest.dir
4057   # We will build objects and dependencies in a subdirectory because
4058   # it helps to detect inapplicable dependency modes.  For instance
4059   # both Tru64's cc and ICC support -MD to output dependencies as a
4060   # side effect of compilation, but ICC will put the dependencies in
4061   # the current directory while Tru64 will put them in the object
4062   # directory.
4063   mkdir sub
4064
4065   am_cv_CC_dependencies_compiler_type=none
4066   if test "$am_compiler_list" = ""; then
4067      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068   fi
4069   am__universal=false
4070   case " $depcc " in #(
4071      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4072      esac
4073
4074   for depmode in $am_compiler_list; do
4075     # Setup a source with many dependencies, because some compilers
4076     # like to wrap large dependency lists on column 80 (with \), and
4077     # we should not choose a depcomp mode which is confused by this.
4078     #
4079     # We need to recreate these files for each test, as the compiler may
4080     # overwrite some of them when testing with obscure command lines.
4081     # This happens at least with the AIX C compiler.
4082     : > sub/conftest.c
4083     for i in 1 2 3 4 5 6; do
4084       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4085       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4086       # Solaris 10 /bin/sh.
4087       echo '/* dummy */' > sub/conftst$i.h
4088     done
4089     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4090
4091     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4092     # mode.  It turns out that the SunPro C++ compiler does not properly
4093     # handle '-M -o', and we need to detect this.  Also, some Intel
4094     # versions had trouble with output in subdirs.
4095     am__obj=sub/conftest.${OBJEXT-o}
4096     am__minus_obj="-o $am__obj"
4097     case $depmode in
4098     gcc)
4099       # This depmode causes a compiler race in universal mode.
4100       test "$am__universal" = false || continue
4101       ;;
4102     nosideeffect)
4103       # After this tag, mechanisms are not by side-effect, so they'll
4104       # only be used when explicitly requested.
4105       if test "x$enable_dependency_tracking" = xyes; then
4106         continue
4107       else
4108         break
4109       fi
4110       ;;
4111     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4112       # This compiler won't grok '-c -o', but also, the minuso test has
4113       # not run yet.  These depmodes are late enough in the game, and
4114       # so weak that their functioning should not be impacted.
4115       am__obj=conftest.${OBJEXT-o}
4116       am__minus_obj=
4117       ;;
4118     none) break ;;
4119     esac
4120     if depmode=$depmode \
4121        source=sub/conftest.c object=$am__obj \
4122        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4123        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4124          >/dev/null 2>conftest.err &&
4125        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4126        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4127        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4128        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4129       # icc doesn't choke on unknown options, it will just issue warnings
4130       # or remarks (even with -Werror).  So we grep stderr for any message
4131       # that says an option was ignored or not supported.
4132       # When given -MP, icc 7.0 and 7.1 complain thusly:
4133       #   icc: Command line warning: ignoring option '-M'; no argument required
4134       # The diagnosis changed in icc 8.0:
4135       #   icc: Command line remark: option '-MP' not supported
4136       if (grep 'ignoring option' conftest.err ||
4137           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4138         am_cv_CC_dependencies_compiler_type=$depmode
4139         break
4140       fi
4141     fi
4142   done
4143
4144   cd ..
4145   rm -rf conftest.dir
4146 else
4147   am_cv_CC_dependencies_compiler_type=none
4148 fi
4149
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4152 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4153 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4154
4155  if
4156   test "x$enable_dependency_tracking" != xno \
4157   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4158   am__fastdepCC_TRUE=
4159   am__fastdepCC_FALSE='#'
4160 else
4161   am__fastdepCC_TRUE='#'
4162   am__fastdepCC_FALSE=
4163 fi
4164
4165
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4167 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4168 if ${ac_cv_path_SED+:} false; then :
4169   $as_echo_n "(cached) " >&6
4170 else
4171             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4172      for ac_i in 1 2 3 4 5 6 7; do
4173        ac_script="$ac_script$as_nl$ac_script"
4174      done
4175      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4176      { ac_script=; unset ac_script;}
4177      if test -z "$SED"; then
4178   ac_path_SED_found=false
4179   # Loop through the user's path and test for each of PROGNAME-LIST
4180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185     for ac_prog in sed gsed; do
4186     for ac_exec_ext in '' $ac_executable_extensions; do
4187       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4188       as_fn_executable_p "$ac_path_SED" || continue
4189 # Check for GNU ac_path_SED and select it if it is found.
4190   # Check for GNU $ac_path_SED
4191 case `"$ac_path_SED" --version 2>&1` in
4192 *GNU*)
4193   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4194 *)
4195   ac_count=0
4196   $as_echo_n 0123456789 >"conftest.in"
4197   while :
4198   do
4199     cat "conftest.in" "conftest.in" >"conftest.tmp"
4200     mv "conftest.tmp" "conftest.in"
4201     cp "conftest.in" "conftest.nl"
4202     $as_echo '' >> "conftest.nl"
4203     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4204     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4205     as_fn_arith $ac_count + 1 && ac_count=$as_val
4206     if test $ac_count -gt ${ac_path_SED_max-0}; then
4207       # Best one so far, save it but keep looking for a better one
4208       ac_cv_path_SED="$ac_path_SED"
4209       ac_path_SED_max=$ac_count
4210     fi
4211     # 10*(2^10) chars as input seems more than enough
4212     test $ac_count -gt 10 && break
4213   done
4214   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4215 esac
4216
4217       $ac_path_SED_found && break 3
4218     done
4219   done
4220   done
4221 IFS=$as_save_IFS
4222   if test -z "$ac_cv_path_SED"; then
4223     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4224   fi
4225 else
4226   ac_cv_path_SED=$SED
4227 fi
4228
4229 fi
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4231 $as_echo "$ac_cv_path_SED" >&6; }
4232  SED="$ac_cv_path_SED"
4233   rm -f conftest.sed
4234
4235 test -z "$SED" && SED=sed
4236 Xsed="$SED -e 1s/^X//"
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4249 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4250 if ${ac_cv_path_GREP+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   if test -z "$GREP"; then
4254   ac_path_GREP_found=false
4255   # Loop through the user's path and test for each of PROGNAME-LIST
4256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261     for ac_prog in grep ggrep; do
4262     for ac_exec_ext in '' $ac_executable_extensions; do
4263       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4264       as_fn_executable_p "$ac_path_GREP" || continue
4265 # Check for GNU ac_path_GREP and select it if it is found.
4266   # Check for GNU $ac_path_GREP
4267 case `"$ac_path_GREP" --version 2>&1` in
4268 *GNU*)
4269   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4270 *)
4271   ac_count=0
4272   $as_echo_n 0123456789 >"conftest.in"
4273   while :
4274   do
4275     cat "conftest.in" "conftest.in" >"conftest.tmp"
4276     mv "conftest.tmp" "conftest.in"
4277     cp "conftest.in" "conftest.nl"
4278     $as_echo 'GREP' >> "conftest.nl"
4279     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281     as_fn_arith $ac_count + 1 && ac_count=$as_val
4282     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4283       # Best one so far, save it but keep looking for a better one
4284       ac_cv_path_GREP="$ac_path_GREP"
4285       ac_path_GREP_max=$ac_count
4286     fi
4287     # 10*(2^10) chars as input seems more than enough
4288     test $ac_count -gt 10 && break
4289   done
4290   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291 esac
4292
4293       $ac_path_GREP_found && break 3
4294     done
4295   done
4296   done
4297 IFS=$as_save_IFS
4298   if test -z "$ac_cv_path_GREP"; then
4299     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4300   fi
4301 else
4302   ac_cv_path_GREP=$GREP
4303 fi
4304
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4307 $as_echo "$ac_cv_path_GREP" >&6; }
4308  GREP="$ac_cv_path_GREP"
4309
4310
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4312 $as_echo_n "checking for egrep... " >&6; }
4313 if ${ac_cv_path_EGREP+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4317    then ac_cv_path_EGREP="$GREP -E"
4318    else
4319      if test -z "$EGREP"; then
4320   ac_path_EGREP_found=false
4321   # Loop through the user's path and test for each of PROGNAME-LIST
4322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327     for ac_prog in egrep; do
4328     for ac_exec_ext in '' $ac_executable_extensions; do
4329       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4330       as_fn_executable_p "$ac_path_EGREP" || continue
4331 # Check for GNU ac_path_EGREP and select it if it is found.
4332   # Check for GNU $ac_path_EGREP
4333 case `"$ac_path_EGREP" --version 2>&1` in
4334 *GNU*)
4335   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4336 *)
4337   ac_count=0
4338   $as_echo_n 0123456789 >"conftest.in"
4339   while :
4340   do
4341     cat "conftest.in" "conftest.in" >"conftest.tmp"
4342     mv "conftest.tmp" "conftest.in"
4343     cp "conftest.in" "conftest.nl"
4344     $as_echo 'EGREP' >> "conftest.nl"
4345     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347     as_fn_arith $ac_count + 1 && ac_count=$as_val
4348     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4349       # Best one so far, save it but keep looking for a better one
4350       ac_cv_path_EGREP="$ac_path_EGREP"
4351       ac_path_EGREP_max=$ac_count
4352     fi
4353     # 10*(2^10) chars as input seems more than enough
4354     test $ac_count -gt 10 && break
4355   done
4356   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4357 esac
4358
4359       $ac_path_EGREP_found && break 3
4360     done
4361   done
4362   done
4363 IFS=$as_save_IFS
4364   if test -z "$ac_cv_path_EGREP"; then
4365     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4366   fi
4367 else
4368   ac_cv_path_EGREP=$EGREP
4369 fi
4370
4371    fi
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4374 $as_echo "$ac_cv_path_EGREP" >&6; }
4375  EGREP="$ac_cv_path_EGREP"
4376
4377
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4379 $as_echo_n "checking for fgrep... " >&6; }
4380 if ${ac_cv_path_FGREP+:} false; then :
4381   $as_echo_n "(cached) " >&6
4382 else
4383   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4384    then ac_cv_path_FGREP="$GREP -F"
4385    else
4386      if test -z "$FGREP"; then
4387   ac_path_FGREP_found=false
4388   # Loop through the user's path and test for each of PROGNAME-LIST
4389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394     for ac_prog in fgrep; do
4395     for ac_exec_ext in '' $ac_executable_extensions; do
4396       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4397       as_fn_executable_p "$ac_path_FGREP" || continue
4398 # Check for GNU ac_path_FGREP and select it if it is found.
4399   # Check for GNU $ac_path_FGREP
4400 case `"$ac_path_FGREP" --version 2>&1` in
4401 *GNU*)
4402   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4403 *)
4404   ac_count=0
4405   $as_echo_n 0123456789 >"conftest.in"
4406   while :
4407   do
4408     cat "conftest.in" "conftest.in" >"conftest.tmp"
4409     mv "conftest.tmp" "conftest.in"
4410     cp "conftest.in" "conftest.nl"
4411     $as_echo 'FGREP' >> "conftest.nl"
4412     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4413     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4414     as_fn_arith $ac_count + 1 && ac_count=$as_val
4415     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4416       # Best one so far, save it but keep looking for a better one
4417       ac_cv_path_FGREP="$ac_path_FGREP"
4418       ac_path_FGREP_max=$ac_count
4419     fi
4420     # 10*(2^10) chars as input seems more than enough
4421     test $ac_count -gt 10 && break
4422   done
4423   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4424 esac
4425
4426       $ac_path_FGREP_found && break 3
4427     done
4428   done
4429   done
4430 IFS=$as_save_IFS
4431   if test -z "$ac_cv_path_FGREP"; then
4432     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4433   fi
4434 else
4435   ac_cv_path_FGREP=$FGREP
4436 fi
4437
4438    fi
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4441 $as_echo "$ac_cv_path_FGREP" >&6; }
4442  FGREP="$ac_cv_path_FGREP"
4443
4444
4445 test -z "$GREP" && GREP=grep
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465 # Check whether --with-gnu-ld was given.
4466 if test "${with_gnu_ld+set}" = set; then :
4467   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4468 else
4469   with_gnu_ld=no
4470 fi
4471
4472 ac_prog=ld
4473 if test yes = "$GCC"; then
4474   # Check if gcc -print-prog-name=ld gives a path.
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4476 $as_echo_n "checking for ld used by $CC... " >&6; }
4477   case $host in
4478   *-*-mingw*)
4479     # gcc leaves a trailing carriage return, which upsets mingw
4480     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4481   *)
4482     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4483   esac
4484   case $ac_prog in
4485     # Accept absolute paths.
4486     [\\/]* | ?:[\\/]*)
4487       re_direlt='/[^/][^/]*/\.\./'
4488       # Canonicalize the pathname of ld
4489       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4490       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4491         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4492       done
4493       test -z "$LD" && LD=$ac_prog
4494       ;;
4495   "")
4496     # If it fails, then pretend we aren't using GCC.
4497     ac_prog=ld
4498     ;;
4499   *)
4500     # If it is relative, then search for the first ld in PATH.
4501     with_gnu_ld=unknown
4502     ;;
4503   esac
4504 elif test yes = "$with_gnu_ld"; then
4505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4506 $as_echo_n "checking for GNU ld... " >&6; }
4507 else
4508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4509 $as_echo_n "checking for non-GNU ld... " >&6; }
4510 fi
4511 if ${lt_cv_path_LD+:} false; then :
4512   $as_echo_n "(cached) " >&6
4513 else
4514   if test -z "$LD"; then
4515   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4516   for ac_dir in $PATH; do
4517     IFS=$lt_save_ifs
4518     test -z "$ac_dir" && ac_dir=.
4519     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4520       lt_cv_path_LD=$ac_dir/$ac_prog
4521       # Check to see if the program is GNU ld.  I'd rather use --version,
4522       # but apparently some variants of GNU ld only accept -v.
4523       # Break only if it was the GNU/non-GNU ld that we prefer.
4524       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4525       *GNU* | *'with BFD'*)
4526         test no != "$with_gnu_ld" && break
4527         ;;
4528       *)
4529         test yes != "$with_gnu_ld" && break
4530         ;;
4531       esac
4532     fi
4533   done
4534   IFS=$lt_save_ifs
4535 else
4536   lt_cv_path_LD=$LD # Let the user override the test with a path.
4537 fi
4538 fi
4539
4540 LD=$lt_cv_path_LD
4541 if test -n "$LD"; then
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4543 $as_echo "$LD" >&6; }
4544 else
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4547 fi
4548 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4550 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4551 if ${lt_cv_prog_gnu_ld+:} false; then :
4552   $as_echo_n "(cached) " >&6
4553 else
4554   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4555 case `$LD -v 2>&1 </dev/null` in
4556 *GNU* | *'with BFD'*)
4557   lt_cv_prog_gnu_ld=yes
4558   ;;
4559 *)
4560   lt_cv_prog_gnu_ld=no
4561   ;;
4562 esac
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4565 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4566 with_gnu_ld=$lt_cv_prog_gnu_ld
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4577 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4578 if ${lt_cv_path_NM+:} false; then :
4579   $as_echo_n "(cached) " >&6
4580 else
4581   if test -n "$NM"; then
4582   # Let the user override the test.
4583   lt_cv_path_NM=$NM
4584 else
4585   lt_nm_to_check=${ac_tool_prefix}nm
4586   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4587     lt_nm_to_check="$lt_nm_to_check nm"
4588   fi
4589   for lt_tmp_nm in $lt_nm_to_check; do
4590     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4591     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4592       IFS=$lt_save_ifs
4593       test -z "$ac_dir" && ac_dir=.
4594       tmp_nm=$ac_dir/$lt_tmp_nm
4595       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4596         # Check to see if the nm accepts a BSD-compat flag.
4597         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4598         #   nm: unknown option "B" ignored
4599         # Tru64's nm complains that /dev/null is an invalid object file
4600         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4601         case $build_os in
4602         mingw*) lt_bad_file=conftest.nm/nofile ;;
4603         *) lt_bad_file=/dev/null ;;
4604         esac
4605         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4606         *$lt_bad_file* | *'Invalid file or object type'*)
4607           lt_cv_path_NM="$tmp_nm -B"
4608           break 2
4609           ;;
4610         *)
4611           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4612           */dev/null*)
4613             lt_cv_path_NM="$tmp_nm -p"
4614             break 2
4615             ;;
4616           *)
4617             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4618             continue # so that we can try to find one that supports BSD flags
4619             ;;
4620           esac
4621           ;;
4622         esac
4623       fi
4624     done
4625     IFS=$lt_save_ifs
4626   done
4627   : ${lt_cv_path_NM=no}
4628 fi
4629 fi
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4631 $as_echo "$lt_cv_path_NM" >&6; }
4632 if test no != "$lt_cv_path_NM"; then
4633   NM=$lt_cv_path_NM
4634 else
4635   # Didn't find any BSD compatible name lister, look for dumpbin.
4636   if test -n "$DUMPBIN"; then :
4637     # Let the user override the test.
4638   else
4639     if test -n "$ac_tool_prefix"; then
4640   for ac_prog in dumpbin "link -dump"
4641   do
4642     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_DUMPBIN+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   if test -n "$DUMPBIN"; then
4650   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657     for ac_exec_ext in '' $ac_executable_extensions; do
4658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664   done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 DUMPBIN=$ac_cv_prog_DUMPBIN
4670 if test -n "$DUMPBIN"; then
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4672 $as_echo "$DUMPBIN" >&6; }
4673 else
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679     test -n "$DUMPBIN" && break
4680   done
4681 fi
4682 if test -z "$DUMPBIN"; then
4683   ac_ct_DUMPBIN=$DUMPBIN
4684   for ac_prog in dumpbin "link -dump"
4685 do
4686   # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   if test -n "$ac_ct_DUMPBIN"; then
4694   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701     for ac_exec_ext in '' $ac_executable_extensions; do
4702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705     break 2
4706   fi
4707 done
4708   done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4714 if test -n "$ac_ct_DUMPBIN"; then
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4716 $as_echo "$ac_ct_DUMPBIN" >&6; }
4717 else
4718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723   test -n "$ac_ct_DUMPBIN" && break
4724 done
4725
4726   if test "x$ac_ct_DUMPBIN" = x; then
4727     DUMPBIN=":"
4728   else
4729     case $cross_compiling:$ac_tool_warned in
4730 yes:)
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4734 esac
4735     DUMPBIN=$ac_ct_DUMPBIN
4736   fi
4737 fi
4738
4739     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4740     *COFF*)
4741       DUMPBIN="$DUMPBIN -symbols -headers"
4742       ;;
4743     *)
4744       DUMPBIN=:
4745       ;;
4746     esac
4747   fi
4748
4749   if test : != "$DUMPBIN"; then
4750     NM=$DUMPBIN
4751   fi
4752 fi
4753 test -z "$NM" && NM=nm
4754
4755
4756
4757
4758
4759
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4761 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4762 if ${lt_cv_nm_interface+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   lt_cv_nm_interface="BSD nm"
4766   echo "int some_variable = 0;" > conftest.$ac_ext
4767   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4768   (eval "$ac_compile" 2>conftest.err)
4769   cat conftest.err >&5
4770   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4771   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4772   cat conftest.err >&5
4773   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4774   cat conftest.out >&5
4775   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4776     lt_cv_nm_interface="MS dumpbin"
4777   fi
4778   rm -f conftest*
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4781 $as_echo "$lt_cv_nm_interface" >&6; }
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4784 $as_echo_n "checking whether ln -s works... " >&6; }
4785 LN_S=$as_ln_s
4786 if test "$LN_S" = "ln -s"; then
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4788 $as_echo "yes" >&6; }
4789 else
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4791 $as_echo "no, using $LN_S" >&6; }
4792 fi
4793
4794 # find the maximum length of command line arguments
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4796 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4797 if ${lt_cv_sys_max_cmd_len+:} false; then :
4798   $as_echo_n "(cached) " >&6
4799 else
4800     i=0
4801   teststring=ABCD
4802
4803   case $build_os in
4804   msdosdjgpp*)
4805     # On DJGPP, this test can blow up pretty badly due to problems in libc
4806     # (any single argument exceeding 2000 bytes causes a buffer overrun
4807     # during glob expansion).  Even if it were fixed, the result of this
4808     # check would be larger than it should be.
4809     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4810     ;;
4811
4812   gnu*)
4813     # Under GNU Hurd, this test is not required because there is
4814     # no limit to the length of command line arguments.
4815     # Libtool will interpret -1 as no limit whatsoever
4816     lt_cv_sys_max_cmd_len=-1;
4817     ;;
4818
4819   cygwin* | mingw* | cegcc*)
4820     # On Win9x/ME, this test blows up -- it succeeds, but takes
4821     # about 5 minutes as the teststring grows exponentially.
4822     # Worse, since 9x/ME are not pre-emptively multitasking,
4823     # you end up with a "frozen" computer, even though with patience
4824     # the test eventually succeeds (with a max line length of 256k).
4825     # Instead, let's just punt: use the minimum linelength reported by
4826     # all of the supported platforms: 8192 (on NT/2K/XP).
4827     lt_cv_sys_max_cmd_len=8192;
4828     ;;
4829
4830   mint*)
4831     # On MiNT this can take a long time and run out of memory.
4832     lt_cv_sys_max_cmd_len=8192;
4833     ;;
4834
4835   amigaos*)
4836     # On AmigaOS with pdksh, this test takes hours, literally.
4837     # So we just punt and use a minimum line length of 8192.
4838     lt_cv_sys_max_cmd_len=8192;
4839     ;;
4840
4841   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4842     # This has been around since 386BSD, at least.  Likely further.
4843     if test -x /sbin/sysctl; then
4844       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4845     elif test -x /usr/sbin/sysctl; then
4846       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4847     else
4848       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4849     fi
4850     # And add a safety zone
4851     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4852     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4853     ;;
4854
4855   interix*)
4856     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4857     lt_cv_sys_max_cmd_len=196608
4858     ;;
4859
4860   os2*)
4861     # The test takes a long time on OS/2.
4862     lt_cv_sys_max_cmd_len=8192
4863     ;;
4864
4865   osf*)
4866     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4867     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4868     # nice to cause kernel panics so lets avoid the loop below.
4869     # First set a reasonable default.
4870     lt_cv_sys_max_cmd_len=16384
4871     #
4872     if test -x /sbin/sysconfig; then
4873       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4874         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4875       esac
4876     fi
4877     ;;
4878   sco3.2v5*)
4879     lt_cv_sys_max_cmd_len=102400
4880     ;;
4881   sysv5* | sco5v6* | sysv4.2uw2*)
4882     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4883     if test -n "$kargmax"; then
4884       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4885     else
4886       lt_cv_sys_max_cmd_len=32768
4887     fi
4888     ;;
4889   *)
4890     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4891     if test -n "$lt_cv_sys_max_cmd_len" && \
4892        test undefined != "$lt_cv_sys_max_cmd_len"; then
4893       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4894       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4895     else
4896       # Make teststring a little bigger before we do anything with it.
4897       # a 1K string should be a reasonable start.
4898       for i in 1 2 3 4 5 6 7 8; do
4899         teststring=$teststring$teststring
4900       done
4901       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4902       # If test is not a shell built-in, we'll probably end up computing a
4903       # maximum length that is only half of the actual maximum length, but
4904       # we can't tell.
4905       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4906                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4907               test 17 != "$i" # 1/2 MB should be enough
4908       do
4909         i=`expr $i + 1`
4910         teststring=$teststring$teststring
4911       done
4912       # Only check the string length outside the loop.
4913       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4914       teststring=
4915       # Add a significant safety factor because C++ compilers can tack on
4916       # massive amounts of additional arguments before passing them to the
4917       # linker.  It appears as though 1/2 is a usable value.
4918       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4919     fi
4920     ;;
4921   esac
4922
4923 fi
4924
4925 if test -n "$lt_cv_sys_max_cmd_len"; then
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4927 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4928 else
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4930 $as_echo "none" >&6; }
4931 fi
4932 max_cmd_len=$lt_cv_sys_max_cmd_len
4933
4934
4935
4936
4937
4938
4939 : ${CP="cp -f"}
4940 : ${MV="mv -f"}
4941 : ${RM="rm -f"}
4942
4943 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4944   lt_unset=unset
4945 else
4946   lt_unset=false
4947 fi
4948
4949
4950
4951
4952
4953 # test EBCDIC or ASCII
4954 case `echo X|tr X '\101'` in
4955  A) # ASCII based system
4956     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4957   lt_SP2NL='tr \040 \012'
4958   lt_NL2SP='tr \015\012 \040\040'
4959   ;;
4960  *) # EBCDIC based system
4961   lt_SP2NL='tr \100 \n'
4962   lt_NL2SP='tr \r\n \100\100'
4963   ;;
4964 esac
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4975 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4976 if ${lt_cv_to_host_file_cmd+:} false; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979   case $host in
4980   *-*-mingw* )
4981     case $build in
4982       *-*-mingw* ) # actually msys
4983         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4984         ;;
4985       *-*-cygwin* )
4986         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4987         ;;
4988       * ) # otherwise, assume *nix
4989         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4990         ;;
4991     esac
4992     ;;
4993   *-*-cygwin* )
4994     case $build in
4995       *-*-mingw* ) # actually msys
4996         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4997         ;;
4998       *-*-cygwin* )
4999         lt_cv_to_host_file_cmd=func_convert_file_noop
5000         ;;
5001       * ) # otherwise, assume *nix
5002         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5003         ;;
5004     esac
5005     ;;
5006   * ) # unhandled hosts (and "normal" native builds)
5007     lt_cv_to_host_file_cmd=func_convert_file_noop
5008     ;;
5009 esac
5010
5011 fi
5012
5013 to_host_file_cmd=$lt_cv_to_host_file_cmd
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5015 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5016
5017
5018
5019
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5022 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5023 if ${lt_cv_to_tool_file_cmd+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   #assume ordinary cross tools, or native build.
5027 lt_cv_to_tool_file_cmd=func_convert_file_noop
5028 case $host in
5029   *-*-mingw* )
5030     case $build in
5031       *-*-mingw* ) # actually msys
5032         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5033         ;;
5034     esac
5035     ;;
5036 esac
5037
5038 fi
5039
5040 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5042 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5043
5044
5045
5046
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5049 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5050 if ${lt_cv_ld_reload_flag+:} false; then :
5051   $as_echo_n "(cached) " >&6
5052 else
5053   lt_cv_ld_reload_flag='-r'
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5056 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5057 reload_flag=$lt_cv_ld_reload_flag
5058 case $reload_flag in
5059 "" | " "*) ;;
5060 *) reload_flag=" $reload_flag" ;;
5061 esac
5062 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5063 case $host_os in
5064   cygwin* | mingw* | pw32* | cegcc*)
5065     if test yes != "$GCC"; then
5066       reload_cmds=false
5067     fi
5068     ;;
5069   darwin*)
5070     if test yes = "$GCC"; then
5071       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5072     else
5073       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5074     fi
5075     ;;
5076 esac
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086 if test -n "$ac_tool_prefix"; then
5087   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_OBJDUMP+:} false; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094   if test -n "$OBJDUMP"; then
5095   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102     for ac_exec_ext in '' $ac_executable_extensions; do
5103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109   done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 OBJDUMP=$ac_cv_prog_OBJDUMP
5115 if test -n "$OBJDUMP"; then
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5117 $as_echo "$OBJDUMP" >&6; }
5118 else
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123
5124 fi
5125 if test -z "$ac_cv_prog_OBJDUMP"; then
5126   ac_ct_OBJDUMP=$OBJDUMP
5127   # Extract the first word of "objdump", so it can be a program name with args.
5128 set dummy objdump; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5132   $as_echo_n "(cached) " >&6
5133 else
5134   if test -n "$ac_ct_OBJDUMP"; then
5135   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142     for ac_exec_ext in '' $ac_executable_extensions; do
5143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149   done
5150 IFS=$as_save_IFS
5151
5152 fi
5153 fi
5154 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5155 if test -n "$ac_ct_OBJDUMP"; then
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5157 $as_echo "$ac_ct_OBJDUMP" >&6; }
5158 else
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163   if test "x$ac_ct_OBJDUMP" = x; then
5164     OBJDUMP="false"
5165   else
5166     case $cross_compiling:$ac_tool_warned in
5167 yes:)
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170 ac_tool_warned=yes ;;
5171 esac
5172     OBJDUMP=$ac_ct_OBJDUMP
5173   fi
5174 else
5175   OBJDUMP="$ac_cv_prog_OBJDUMP"
5176 fi
5177
5178 test -z "$OBJDUMP" && OBJDUMP=objdump
5179
5180
5181
5182
5183
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5186 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5187 if ${lt_cv_deplibs_check_method+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   lt_cv_file_magic_cmd='$MAGIC_CMD'
5191 lt_cv_file_magic_test_file=
5192 lt_cv_deplibs_check_method='unknown'
5193 # Need to set the preceding variable on all platforms that support
5194 # interlibrary dependencies.
5195 # 'none' -- dependencies not supported.
5196 # 'unknown' -- same as none, but documents that we really don't know.
5197 # 'pass_all' -- all dependencies passed with no checks.
5198 # 'test_compile' -- check by making test program.
5199 # 'file_magic [[regex]]' -- check by looking for files in library path
5200 # that responds to the $file_magic_cmd with a given extended regex.
5201 # If you have 'file' or equivalent on your system and you're not sure
5202 # whether 'pass_all' will *always* work, you probably want this one.
5203
5204 case $host_os in
5205 aix[4-9]*)
5206   lt_cv_deplibs_check_method=pass_all
5207   ;;
5208
5209 beos*)
5210   lt_cv_deplibs_check_method=pass_all
5211   ;;
5212
5213 bsdi[45]*)
5214   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5215   lt_cv_file_magic_cmd='/usr/bin/file -L'
5216   lt_cv_file_magic_test_file=/shlib/libc.so
5217   ;;
5218
5219 cygwin*)
5220   # func_win32_libid is a shell function defined in ltmain.sh
5221   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5222   lt_cv_file_magic_cmd='func_win32_libid'
5223   ;;
5224
5225 mingw* | pw32*)
5226   # Base MSYS/MinGW do not provide the 'file' command needed by
5227   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5228   # unless we find 'file', for example because we are cross-compiling.
5229   if ( file / ) >/dev/null 2>&1; then
5230     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5231     lt_cv_file_magic_cmd='func_win32_libid'
5232   else
5233     # Keep this pattern in sync with the one in func_win32_libid.
5234     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5235     lt_cv_file_magic_cmd='$OBJDUMP -f'
5236   fi
5237   ;;
5238
5239 cegcc*)
5240   # use the weaker test based on 'objdump'. See mingw*.
5241   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5242   lt_cv_file_magic_cmd='$OBJDUMP -f'
5243   ;;
5244
5245 darwin* | rhapsody*)
5246   lt_cv_deplibs_check_method=pass_all
5247   ;;
5248
5249 freebsd* | dragonfly*)
5250   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5251     case $host_cpu in
5252     i*86 )
5253       # Not sure whether the presence of OpenBSD here was a mistake.
5254       # Let's accept both of them until this is cleared up.
5255       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5256       lt_cv_file_magic_cmd=/usr/bin/file
5257       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5258       ;;
5259     esac
5260   else
5261     lt_cv_deplibs_check_method=pass_all
5262   fi
5263   ;;
5264
5265 haiku*)
5266   lt_cv_deplibs_check_method=pass_all
5267   ;;
5268
5269 hpux10.20* | hpux11*)
5270   lt_cv_file_magic_cmd=/usr/bin/file
5271   case $host_cpu in
5272   ia64*)
5273     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5274     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5275     ;;
5276   hppa*64*)
5277     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]'
5278     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5279     ;;
5280   *)
5281     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5282     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5283     ;;
5284   esac
5285   ;;
5286
5287 interix[3-9]*)
5288   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5289   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5290   ;;
5291
5292 irix5* | irix6* | nonstopux*)
5293   case $LD in
5294   *-32|*"-32 ") libmagic=32-bit;;
5295   *-n32|*"-n32 ") libmagic=N32;;
5296   *-64|*"-64 ") libmagic=64-bit;;
5297   *) libmagic=never-match;;
5298   esac
5299   lt_cv_deplibs_check_method=pass_all
5300   ;;
5301
5302 # This must be glibc/ELF.
5303 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5304   lt_cv_deplibs_check_method=pass_all
5305   ;;
5306
5307 netbsd* | netbsdelf*-gnu)
5308   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5309     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5310   else
5311     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5312   fi
5313   ;;
5314
5315 newos6*)
5316   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5317   lt_cv_file_magic_cmd=/usr/bin/file
5318   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5319   ;;
5320
5321 *nto* | *qnx*)
5322   lt_cv_deplibs_check_method=pass_all
5323   ;;
5324
5325 openbsd* | bitrig*)
5326   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5327     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5328   else
5329     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5330   fi
5331   ;;
5332
5333 osf3* | osf4* | osf5*)
5334   lt_cv_deplibs_check_method=pass_all
5335   ;;
5336
5337 rdos*)
5338   lt_cv_deplibs_check_method=pass_all
5339   ;;
5340
5341 solaris*)
5342   lt_cv_deplibs_check_method=pass_all
5343   ;;
5344
5345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5346   lt_cv_deplibs_check_method=pass_all
5347   ;;
5348
5349 sysv4 | sysv4.3*)
5350   case $host_vendor in
5351   motorola)
5352     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]'
5353     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5354     ;;
5355   ncr)
5356     lt_cv_deplibs_check_method=pass_all
5357     ;;
5358   sequent)
5359     lt_cv_file_magic_cmd='/bin/file'
5360     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5361     ;;
5362   sni)
5363     lt_cv_file_magic_cmd='/bin/file'
5364     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5365     lt_cv_file_magic_test_file=/lib/libc.so
5366     ;;
5367   siemens)
5368     lt_cv_deplibs_check_method=pass_all
5369     ;;
5370   pc)
5371     lt_cv_deplibs_check_method=pass_all
5372     ;;
5373   esac
5374   ;;
5375
5376 tpf*)
5377   lt_cv_deplibs_check_method=pass_all
5378   ;;
5379 os2*)
5380   lt_cv_deplibs_check_method=pass_all
5381   ;;
5382 esac
5383
5384 fi
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5386 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5387
5388 file_magic_glob=
5389 want_nocaseglob=no
5390 if test "$build" = "$host"; then
5391   case $host_os in
5392   mingw* | pw32*)
5393     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5394       want_nocaseglob=yes
5395     else
5396       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5397     fi
5398     ;;
5399   esac
5400 fi
5401
5402 file_magic_cmd=$lt_cv_file_magic_cmd
5403 deplibs_check_method=$lt_cv_deplibs_check_method
5404 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 if test -n "$ac_tool_prefix"; then
5428   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5429 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_prog_DLLTOOL+:} false; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   if test -n "$DLLTOOL"; then
5436   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443     for ac_exec_ext in '' $ac_executable_extensions; do
5444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450   done
5451 IFS=$as_save_IFS
5452
5453 fi
5454 fi
5455 DLLTOOL=$ac_cv_prog_DLLTOOL
5456 if test -n "$DLLTOOL"; then
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5458 $as_echo "$DLLTOOL" >&6; }
5459 else
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5462 fi
5463
5464
5465 fi
5466 if test -z "$ac_cv_prog_DLLTOOL"; then
5467   ac_ct_DLLTOOL=$DLLTOOL
5468   # Extract the first word of "dlltool", so it can be a program name with args.
5469 set dummy dlltool; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   if test -n "$ac_ct_DLLTOOL"; then
5476   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481   IFS=$as_save_IFS
5482   test -z "$as_dir" && as_dir=.
5483     for ac_exec_ext in '' $ac_executable_extensions; do
5484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487     break 2
5488   fi
5489 done
5490   done
5491 IFS=$as_save_IFS
5492
5493 fi
5494 fi
5495 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5496 if test -n "$ac_ct_DLLTOOL"; then
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5498 $as_echo "$ac_ct_DLLTOOL" >&6; }
5499 else
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5502 fi
5503
5504   if test "x$ac_ct_DLLTOOL" = x; then
5505     DLLTOOL="false"
5506   else
5507     case $cross_compiling:$ac_tool_warned in
5508 yes:)
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511 ac_tool_warned=yes ;;
5512 esac
5513     DLLTOOL=$ac_ct_DLLTOOL
5514   fi
5515 else
5516   DLLTOOL="$ac_cv_prog_DLLTOOL"
5517 fi
5518
5519 test -z "$DLLTOOL" && DLLTOOL=dlltool
5520
5521
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5528 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5529 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5530   $as_echo_n "(cached) " >&6
5531 else
5532   lt_cv_sharedlib_from_linklib_cmd='unknown'
5533
5534 case $host_os in
5535 cygwin* | mingw* | pw32* | cegcc*)
5536   # two different shell functions defined in ltmain.sh;
5537   # decide which one to use based on capabilities of $DLLTOOL
5538   case `$DLLTOOL --help 2>&1` in
5539   *--identify-strict*)
5540     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5541     ;;
5542   *)
5543     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5544     ;;
5545   esac
5546   ;;
5547 *)
5548   # fallback: assume linklib IS sharedlib
5549   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5550   ;;
5551 esac
5552
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5555 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5556 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5557 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5558
5559
5560
5561
5562
5563
5564
5565
5566 if test -n "$ac_tool_prefix"; then
5567   for ac_prog in ar
5568   do
5569     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_AR+:} false; then :
5574   $as_echo_n "(cached) " >&6
5575 else
5576   if test -n "$AR"; then
5577   ac_cv_prog_AR="$AR" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582   IFS=$as_save_IFS
5583   test -z "$as_dir" && as_dir=.
5584     for ac_exec_ext in '' $ac_executable_extensions; do
5585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588     break 2
5589   fi
5590 done
5591   done
5592 IFS=$as_save_IFS
5593
5594 fi
5595 fi
5596 AR=$ac_cv_prog_AR
5597 if test -n "$AR"; then
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5599 $as_echo "$AR" >&6; }
5600 else
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606     test -n "$AR" && break
5607   done
5608 fi
5609 if test -z "$AR"; then
5610   ac_ct_AR=$AR
5611   for ac_prog in ar
5612 do
5613   # Extract the first word of "$ac_prog", so it can be a program name with args.
5614 set dummy $ac_prog; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   if test -n "$ac_ct_AR"; then
5621   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626   IFS=$as_save_IFS
5627   test -z "$as_dir" && as_dir=.
5628     for ac_exec_ext in '' $ac_executable_extensions; do
5629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630     ac_cv_prog_ac_ct_AR="$ac_prog"
5631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632     break 2
5633   fi
5634 done
5635   done
5636 IFS=$as_save_IFS
5637
5638 fi
5639 fi
5640 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5641 if test -n "$ac_ct_AR"; then
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5643 $as_echo "$ac_ct_AR" >&6; }
5644 else
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 fi
5648
5649
5650   test -n "$ac_ct_AR" && break
5651 done
5652
5653   if test "x$ac_ct_AR" = x; then
5654     AR="false"
5655   else
5656     case $cross_compiling:$ac_tool_warned in
5657 yes:)
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660 ac_tool_warned=yes ;;
5661 esac
5662     AR=$ac_ct_AR
5663   fi
5664 fi
5665
5666 : ${AR=ar}
5667 : ${AR_FLAGS=cru}
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5680 $as_echo_n "checking for archiver @FILE support... " >&6; }
5681 if ${lt_cv_ar_at_file+:} false; then :
5682   $as_echo_n "(cached) " >&6
5683 else
5684   lt_cv_ar_at_file=no
5685    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h.  */
5687
5688 int
5689 main ()
5690 {
5691
5692   ;
5693   return 0;
5694 }
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697   echo conftest.$ac_objext > conftest.lst
5698       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5699       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5700   (eval $lt_ar_try) 2>&5
5701   ac_status=$?
5702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5703   test $ac_status = 0; }
5704       if test 0 -eq "$ac_status"; then
5705         # Ensure the archiver fails upon bogus file names.
5706         rm -f conftest.$ac_objext libconftest.a
5707         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5708   (eval $lt_ar_try) 2>&5
5709   ac_status=$?
5710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711   test $ac_status = 0; }
5712         if test 0 -ne "$ac_status"; then
5713           lt_cv_ar_at_file=@
5714         fi
5715       fi
5716       rm -f conftest.* libconftest.a
5717
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720
5721 fi
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5723 $as_echo "$lt_cv_ar_at_file" >&6; }
5724
5725 if test no = "$lt_cv_ar_at_file"; then
5726   archiver_list_spec=
5727 else
5728   archiver_list_spec=$lt_cv_ar_at_file
5729 fi
5730
5731
5732
5733
5734
5735
5736
5737 if test -n "$ac_tool_prefix"; then
5738   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5739 set dummy ${ac_tool_prefix}strip; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_STRIP+:} false; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745   if test -n "$STRIP"; then
5746   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760   done
5761 IFS=$as_save_IFS
5762
5763 fi
5764 fi
5765 STRIP=$ac_cv_prog_STRIP
5766 if test -n "$STRIP"; then
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5768 $as_echo "$STRIP" >&6; }
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772 fi
5773
5774
5775 fi
5776 if test -z "$ac_cv_prog_STRIP"; then
5777   ac_ct_STRIP=$STRIP
5778   # Extract the first word of "strip", so it can be a program name with args.
5779 set dummy strip; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   if test -n "$ac_ct_STRIP"; then
5786   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791   IFS=$as_save_IFS
5792   test -z "$as_dir" && as_dir=.
5793     for ac_exec_ext in '' $ac_executable_extensions; do
5794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795     ac_cv_prog_ac_ct_STRIP="strip"
5796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797     break 2
5798   fi
5799 done
5800   done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5806 if test -n "$ac_ct_STRIP"; then
5807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5808 $as_echo "$ac_ct_STRIP" >&6; }
5809 else
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813
5814   if test "x$ac_ct_STRIP" = x; then
5815     STRIP=":"
5816   else
5817     case $cross_compiling:$ac_tool_warned in
5818 yes:)
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821 ac_tool_warned=yes ;;
5822 esac
5823     STRIP=$ac_ct_STRIP
5824   fi
5825 else
5826   STRIP="$ac_cv_prog_STRIP"
5827 fi
5828
5829 test -z "$STRIP" && STRIP=:
5830
5831
5832
5833
5834
5835
5836 if test -n "$ac_tool_prefix"; then
5837   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_RANLIB+:} false; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   if test -n "$RANLIB"; then
5845   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852     for ac_exec_ext in '' $ac_executable_extensions; do
5853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856     break 2
5857   fi
5858 done
5859   done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 RANLIB=$ac_cv_prog_RANLIB
5865 if test -n "$RANLIB"; then
5866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5867 $as_echo "$RANLIB" >&6; }
5868 else
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 fi
5875 if test -z "$ac_cv_prog_RANLIB"; then
5876   ac_ct_RANLIB=$RANLIB
5877   # Extract the first word of "ranlib", so it can be a program name with args.
5878 set dummy ranlib; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884   if test -n "$ac_ct_RANLIB"; then
5885   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892     for ac_exec_ext in '' $ac_executable_extensions; do
5893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894     ac_cv_prog_ac_ct_RANLIB="ranlib"
5895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899   done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5905 if test -n "$ac_ct_RANLIB"; then
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5907 $as_echo "$ac_ct_RANLIB" >&6; }
5908 else
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913   if test "x$ac_ct_RANLIB" = x; then
5914     RANLIB=":"
5915   else
5916     case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922     RANLIB=$ac_ct_RANLIB
5923   fi
5924 else
5925   RANLIB="$ac_cv_prog_RANLIB"
5926 fi
5927
5928 test -z "$RANLIB" && RANLIB=:
5929
5930
5931
5932
5933
5934
5935 # Determine commands to create old-style static archives.
5936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5937 old_postinstall_cmds='chmod 644 $oldlib'
5938 old_postuninstall_cmds=
5939
5940 if test -n "$RANLIB"; then
5941   case $host_os in
5942   bitrig* | openbsd*)
5943     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5944     ;;
5945   *)
5946     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5947     ;;
5948   esac
5949   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5950 fi
5951
5952 case $host_os in
5953   darwin*)
5954     lock_old_archive_extraction=yes ;;
5955   *)
5956     lock_old_archive_extraction=no ;;
5957 esac
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997 # If no C compiler was specified, use CC.
5998 LTCC=${LTCC-"$CC"}
5999
6000 # If no C compiler flags were specified, use CFLAGS.
6001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6002
6003 # Allow CC to be a program name with arguments.
6004 compiler=$CC
6005
6006
6007 # Check for command to grab the raw symbol name followed by C symbol from nm.
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6009 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6010 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6011   $as_echo_n "(cached) " >&6
6012 else
6013
6014 # These are sane defaults that work on at least a few old systems.
6015 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6016
6017 # Character class describing NM global symbol codes.
6018 symcode='[BCDEGRST]'
6019
6020 # Regexp to match symbols that can be accessed directly from C.
6021 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6022
6023 # Define system-specific variables.
6024 case $host_os in
6025 aix*)
6026   symcode='[BCDT]'
6027   ;;
6028 cygwin* | mingw* | pw32* | cegcc*)
6029   symcode='[ABCDGISTW]'
6030   ;;
6031 hpux*)
6032   if test ia64 = "$host_cpu"; then
6033     symcode='[ABCDEGRST]'
6034   fi
6035   ;;
6036 irix* | nonstopux*)
6037   symcode='[BCDEGRST]'
6038   ;;
6039 osf*)
6040   symcode='[BCDEGQRST]'
6041   ;;
6042 solaris*)
6043   symcode='[BDRT]'
6044   ;;
6045 sco3.2v5*)
6046   symcode='[DT]'
6047   ;;
6048 sysv4.2uw2*)
6049   symcode='[DT]'
6050   ;;
6051 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6052   symcode='[ABDT]'
6053   ;;
6054 sysv4)
6055   symcode='[DFNSTU]'
6056   ;;
6057 esac
6058
6059 # If we're using GNU nm, then use its standard symbol codes.
6060 case `$NM -V 2>&1` in
6061 *GNU* | *'with BFD'*)
6062   symcode='[ABCDGIRSTW]' ;;
6063 esac
6064
6065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6066   # Gets list of data symbols to import.
6067   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6068   # Adjust the below global symbol transforms to fixup imported variables.
6069   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6070   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6071   lt_c_name_lib_hook="\
6072   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6073   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6074 else
6075   # Disable hooks by default.
6076   lt_cv_sys_global_symbol_to_import=
6077   lt_cdecl_hook=
6078   lt_c_name_hook=
6079   lt_c_name_lib_hook=
6080 fi
6081
6082 # Transform an extracted symbol line into a proper C declaration.
6083 # Some systems (esp. on ia64) link data and code symbols differently,
6084 # so use this general approach.
6085 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6086 $lt_cdecl_hook\
6087 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6088 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6089
6090 # Transform an extracted symbol line into symbol name and symbol address
6091 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6092 $lt_c_name_hook\
6093 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6094 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6095
6096 # Transform an extracted symbol line into symbol name with lib prefix and
6097 # symbol address.
6098 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6099 $lt_c_name_lib_hook\
6100 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6101 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6102 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6103
6104 # Handle CRLF in mingw tool chain
6105 opt_cr=
6106 case $build_os in
6107 mingw*)
6108   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6109   ;;
6110 esac
6111
6112 # Try without a prefix underscore, then with it.
6113 for ac_symprfx in "" "_"; do
6114
6115   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6116   symxfrm="\\1 $ac_symprfx\\2 \\2"
6117
6118   # Write the raw and C identifiers.
6119   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6120     # Fake it for dumpbin and say T for any non-static function,
6121     # D for any global variable and I for any imported variable.
6122     # Also find C++ and __fastcall symbols from MSVC++,
6123     # which start with @ or ?.
6124     lt_cv_sys_global_symbol_pipe="$AWK '"\
6125 "     {last_section=section; section=\$ 3};"\
6126 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6127 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6128 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6129 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6130 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6131 "     \$ 0!~/External *\|/{next};"\
6132 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6133 "     {if(hide[section]) next};"\
6134 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6135 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6136 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6137 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6138 "     ' prfx=^$ac_symprfx"
6139   else
6140     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6141   fi
6142   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6143
6144   # Check to see that the pipe works correctly.
6145   pipe_works=no
6146
6147   rm -f conftest*
6148   cat > conftest.$ac_ext <<_LT_EOF
6149 #ifdef __cplusplus
6150 extern "C" {
6151 #endif
6152 char nm_test_var;
6153 void nm_test_func(void);
6154 void nm_test_func(void){}
6155 #ifdef __cplusplus
6156 }
6157 #endif
6158 int main(){nm_test_var='a';nm_test_func();return(0);}
6159 _LT_EOF
6160
6161   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6162   (eval $ac_compile) 2>&5
6163   ac_status=$?
6164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165   test $ac_status = 0; }; then
6166     # Now try to grab the symbols.
6167     nlist=conftest.nm
6168     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6169   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6170   ac_status=$?
6171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172   test $ac_status = 0; } && test -s "$nlist"; then
6173       # Try sorting and uniquifying the output.
6174       if sort "$nlist" | uniq > "$nlist"T; then
6175         mv -f "$nlist"T "$nlist"
6176       else
6177         rm -f "$nlist"T
6178       fi
6179
6180       # Make sure that we snagged all the symbols we need.
6181       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6182         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6183           cat <<_LT_EOF > conftest.$ac_ext
6184 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6185 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6186 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6187    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6188 # define LT_DLSYM_CONST
6189 #elif defined __osf__
6190 /* This system does not cope well with relocations in const data.  */
6191 # define LT_DLSYM_CONST
6192 #else
6193 # define LT_DLSYM_CONST const
6194 #endif
6195
6196 #ifdef __cplusplus
6197 extern "C" {
6198 #endif
6199
6200 _LT_EOF
6201           # Now generate the symbol file.
6202           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6203
6204           cat <<_LT_EOF >> conftest.$ac_ext
6205
6206 /* The mapping between symbol names and symbols.  */
6207 LT_DLSYM_CONST struct {
6208   const char *name;
6209   void       *address;
6210 }
6211 lt__PROGRAM__LTX_preloaded_symbols[] =
6212 {
6213   { "@PROGRAM@", (void *) 0 },
6214 _LT_EOF
6215           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6216           cat <<\_LT_EOF >> conftest.$ac_ext
6217   {0, (void *) 0}
6218 };
6219
6220 /* This works around a problem in FreeBSD linker */
6221 #ifdef FREEBSD_WORKAROUND
6222 static const void *lt_preloaded_setup() {
6223   return lt__PROGRAM__LTX_preloaded_symbols;
6224 }
6225 #endif
6226
6227 #ifdef __cplusplus
6228 }
6229 #endif
6230 _LT_EOF
6231           # Now try linking the two files.
6232           mv conftest.$ac_objext conftstm.$ac_objext
6233           lt_globsym_save_LIBS=$LIBS
6234           lt_globsym_save_CFLAGS=$CFLAGS
6235           LIBS=conftstm.$ac_objext
6236           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6237           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6238   (eval $ac_link) 2>&5
6239   ac_status=$?
6240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6241   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6242             pipe_works=yes
6243           fi
6244           LIBS=$lt_globsym_save_LIBS
6245           CFLAGS=$lt_globsym_save_CFLAGS
6246         else
6247           echo "cannot find nm_test_func in $nlist" >&5
6248         fi
6249       else
6250         echo "cannot find nm_test_var in $nlist" >&5
6251       fi
6252     else
6253       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6254     fi
6255   else
6256     echo "$progname: failed program was:" >&5
6257     cat conftest.$ac_ext >&5
6258   fi
6259   rm -rf conftest* conftst*
6260
6261   # Do not use the global_symbol_pipe unless it works.
6262   if test yes = "$pipe_works"; then
6263     break
6264   else
6265     lt_cv_sys_global_symbol_pipe=
6266   fi
6267 done
6268
6269 fi
6270
6271 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6272   lt_cv_sys_global_symbol_to_cdecl=
6273 fi
6274 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6276 $as_echo "failed" >&6; }
6277 else
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6279 $as_echo "ok" >&6; }
6280 fi
6281
6282 # Response file support.
6283 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6284   nm_file_list_spec='@'
6285 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6286   nm_file_list_spec='@'
6287 fi
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6326 $as_echo_n "checking for sysroot... " >&6; }
6327
6328 # Check whether --with-sysroot was given.
6329 if test "${with_sysroot+set}" = set; then :
6330   withval=$with_sysroot;
6331 else
6332   with_sysroot=no
6333 fi
6334
6335
6336 lt_sysroot=
6337 case $with_sysroot in #(
6338  yes)
6339    if test yes = "$GCC"; then
6340      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6341    fi
6342    ;; #(
6343  /*)
6344    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6345    ;; #(
6346  no|'')
6347    ;; #(
6348  *)
6349    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6350 $as_echo "$with_sysroot" >&6; }
6351    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6352    ;;
6353 esac
6354
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6356 $as_echo "${lt_sysroot:-no}" >&6; }
6357
6358
6359
6360
6361
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6363 $as_echo_n "checking for a working dd... " >&6; }
6364 if ${ac_cv_path_lt_DD+:} false; then :
6365   $as_echo_n "(cached) " >&6
6366 else
6367   printf 0123456789abcdef0123456789abcdef >conftest.i
6368 cat conftest.i conftest.i >conftest2.i
6369 : ${lt_DD:=$DD}
6370 if test -z "$lt_DD"; then
6371   ac_path_lt_DD_found=false
6372   # Loop through the user's path and test for each of PROGNAME-LIST
6373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376   IFS=$as_save_IFS
6377   test -z "$as_dir" && as_dir=.
6378     for ac_prog in dd; do
6379     for ac_exec_ext in '' $ac_executable_extensions; do
6380       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6381       as_fn_executable_p "$ac_path_lt_DD" || continue
6382 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6383   cmp -s conftest.i conftest.out \
6384   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6385 fi
6386       $ac_path_lt_DD_found && break 3
6387     done
6388   done
6389   done
6390 IFS=$as_save_IFS
6391   if test -z "$ac_cv_path_lt_DD"; then
6392     :
6393   fi
6394 else
6395   ac_cv_path_lt_DD=$lt_DD
6396 fi
6397
6398 rm -f conftest.i conftest2.i conftest.out
6399 fi
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6401 $as_echo "$ac_cv_path_lt_DD" >&6; }
6402
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6405 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6406 if ${lt_cv_truncate_bin+:} false; then :
6407   $as_echo_n "(cached) " >&6
6408 else
6409   printf 0123456789abcdef0123456789abcdef >conftest.i
6410 cat conftest.i conftest.i >conftest2.i
6411 lt_cv_truncate_bin=
6412 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6413   cmp -s conftest.i conftest.out \
6414   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6415 fi
6416 rm -f conftest.i conftest2.i conftest.out
6417 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6418 fi
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6420 $as_echo "$lt_cv_truncate_bin" >&6; }
6421
6422
6423
6424
6425
6426
6427
6428 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6429 func_cc_basename ()
6430 {
6431     for cc_temp in $*""; do
6432       case $cc_temp in
6433         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6434         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6435         \-*) ;;
6436         *) break;;
6437       esac
6438     done
6439     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6440 }
6441
6442 # Check whether --enable-libtool-lock was given.
6443 if test "${enable_libtool_lock+set}" = set; then :
6444   enableval=$enable_libtool_lock;
6445 fi
6446
6447 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6448
6449 # Some flags need to be propagated to the compiler or linker for good
6450 # libtool support.
6451 case $host in
6452 ia64-*-hpux*)
6453   # Find out what ABI is being produced by ac_compile, and set mode
6454   # options accordingly.
6455   echo 'int i;' > conftest.$ac_ext
6456   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6457   (eval $ac_compile) 2>&5
6458   ac_status=$?
6459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460   test $ac_status = 0; }; then
6461     case `/usr/bin/file conftest.$ac_objext` in
6462       *ELF-32*)
6463         HPUX_IA64_MODE=32
6464         ;;
6465       *ELF-64*)
6466         HPUX_IA64_MODE=64
6467         ;;
6468     esac
6469   fi
6470   rm -rf conftest*
6471   ;;
6472 *-*-irix6*)
6473   # Find out what ABI is being produced by ac_compile, and set linker
6474   # options accordingly.
6475   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6476   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6477   (eval $ac_compile) 2>&5
6478   ac_status=$?
6479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480   test $ac_status = 0; }; then
6481     if test yes = "$lt_cv_prog_gnu_ld"; then
6482       case `/usr/bin/file conftest.$ac_objext` in
6483         *32-bit*)
6484           LD="${LD-ld} -melf32bsmip"
6485           ;;
6486         *N32*)
6487           LD="${LD-ld} -melf32bmipn32"
6488           ;;
6489         *64-bit*)
6490           LD="${LD-ld} -melf64bmip"
6491         ;;
6492       esac
6493     else
6494       case `/usr/bin/file conftest.$ac_objext` in
6495         *32-bit*)
6496           LD="${LD-ld} -32"
6497           ;;
6498         *N32*)
6499           LD="${LD-ld} -n32"
6500           ;;
6501         *64-bit*)
6502           LD="${LD-ld} -64"
6503           ;;
6504       esac
6505     fi
6506   fi
6507   rm -rf conftest*
6508   ;;
6509
6510 mips64*-*linux*)
6511   # Find out what ABI is being produced by ac_compile, and set linker
6512   # options accordingly.
6513   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6514   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6515   (eval $ac_compile) 2>&5
6516   ac_status=$?
6517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6518   test $ac_status = 0; }; then
6519     emul=elf
6520     case `/usr/bin/file conftest.$ac_objext` in
6521       *32-bit*)
6522         emul="${emul}32"
6523         ;;
6524       *64-bit*)
6525         emul="${emul}64"
6526         ;;
6527     esac
6528     case `/usr/bin/file conftest.$ac_objext` in
6529       *MSB*)
6530         emul="${emul}btsmip"
6531         ;;
6532       *LSB*)
6533         emul="${emul}ltsmip"
6534         ;;
6535     esac
6536     case `/usr/bin/file conftest.$ac_objext` in
6537       *N32*)
6538         emul="${emul}n32"
6539         ;;
6540     esac
6541     LD="${LD-ld} -m $emul"
6542   fi
6543   rm -rf conftest*
6544   ;;
6545
6546 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6547 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6548   # Find out what ABI is being produced by ac_compile, and set linker
6549   # options accordingly.  Note that the listed cases only cover the
6550   # situations where additional linker options are needed (such as when
6551   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6552   # vice versa); the common cases where no linker options are needed do
6553   # not appear in the list.
6554   echo 'int i;' > conftest.$ac_ext
6555   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6556   (eval $ac_compile) 2>&5
6557   ac_status=$?
6558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559   test $ac_status = 0; }; then
6560     case `/usr/bin/file conftest.o` in
6561       *32-bit*)
6562         case $host in
6563           x86_64-*kfreebsd*-gnu)
6564             LD="${LD-ld} -m elf_i386_fbsd"
6565             ;;
6566           x86_64-*linux*)
6567             case `/usr/bin/file conftest.o` in
6568               *x86-64*)
6569                 LD="${LD-ld} -m elf32_x86_64"
6570                 ;;
6571               *)
6572                 LD="${LD-ld} -m elf_i386"
6573                 ;;
6574             esac
6575             ;;
6576           powerpc64le-*linux*)
6577             LD="${LD-ld} -m elf32lppclinux"
6578             ;;
6579           powerpc64-*linux*)
6580             LD="${LD-ld} -m elf32ppclinux"
6581             ;;
6582           s390x-*linux*)
6583             LD="${LD-ld} -m elf_s390"
6584             ;;
6585           sparc64-*linux*)
6586             LD="${LD-ld} -m elf32_sparc"
6587             ;;
6588         esac
6589         ;;
6590       *64-bit*)
6591         case $host in
6592           x86_64-*kfreebsd*-gnu)
6593             LD="${LD-ld} -m elf_x86_64_fbsd"
6594             ;;
6595           x86_64-*linux*)
6596             LD="${LD-ld} -m elf_x86_64"
6597             ;;
6598           powerpcle-*linux*)
6599             LD="${LD-ld} -m elf64lppc"
6600             ;;
6601           powerpc-*linux*)
6602             LD="${LD-ld} -m elf64ppc"
6603             ;;
6604           s390*-*linux*|s390*-*tpf*)
6605             LD="${LD-ld} -m elf64_s390"
6606             ;;
6607           sparc*-*linux*)
6608             LD="${LD-ld} -m elf64_sparc"
6609             ;;
6610         esac
6611         ;;
6612     esac
6613   fi
6614   rm -rf conftest*
6615   ;;
6616
6617 *-*-sco3.2v5*)
6618   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6619   SAVE_CFLAGS=$CFLAGS
6620   CFLAGS="$CFLAGS -belf"
6621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6622 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6623 if ${lt_cv_cc_needs_belf+:} false; then :
6624   $as_echo_n "(cached) " >&6
6625 else
6626   ac_ext=c
6627 ac_cpp='$CPP $CPPFLAGS'
6628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6631
6632      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h.  */
6634
6635 int
6636 main ()
6637 {
6638
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 if ac_fn_c_try_link "$LINENO"; then :
6644   lt_cv_cc_needs_belf=yes
6645 else
6646   lt_cv_cc_needs_belf=no
6647 fi
6648 rm -f core conftest.err conftest.$ac_objext \
6649     conftest$ac_exeext conftest.$ac_ext
6650      ac_ext=c
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6655
6656 fi
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6658 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6659   if test yes != "$lt_cv_cc_needs_belf"; then
6660     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6661     CFLAGS=$SAVE_CFLAGS
6662   fi
6663   ;;
6664 *-*solaris*)
6665   # Find out what ABI is being produced by ac_compile, and set linker
6666   # options accordingly.
6667   echo 'int i;' > conftest.$ac_ext
6668   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6669   (eval $ac_compile) 2>&5
6670   ac_status=$?
6671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672   test $ac_status = 0; }; then
6673     case `/usr/bin/file conftest.o` in
6674     *64-bit*)
6675       case $lt_cv_prog_gnu_ld in
6676       yes*)
6677         case $host in
6678         i?86-*-solaris*|x86_64-*-solaris*)
6679           LD="${LD-ld} -m elf_x86_64"
6680           ;;
6681         sparc*-*-solaris*)
6682           LD="${LD-ld} -m elf64_sparc"
6683           ;;
6684         esac
6685         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6686         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6687           LD=${LD-ld}_sol2
6688         fi
6689         ;;
6690       *)
6691         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6692           LD="${LD-ld} -64"
6693         fi
6694         ;;
6695       esac
6696       ;;
6697     esac
6698   fi
6699   rm -rf conftest*
6700   ;;
6701 esac
6702
6703 need_locks=$enable_libtool_lock
6704
6705 if test -n "$ac_tool_prefix"; then
6706   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}mt; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   if test -n "$MANIFEST_TOOL"; then
6714   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721     for ac_exec_ext in '' $ac_executable_extensions; do
6722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728   done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6734 if test -n "$MANIFEST_TOOL"; then
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6736 $as_echo "$MANIFEST_TOOL" >&6; }
6737 else
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742
6743 fi
6744 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6745   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6746   # Extract the first word of "mt", so it can be a program name with args.
6747 set dummy mt; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   if test -n "$ac_ct_MANIFEST_TOOL"; then
6754   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761     for ac_exec_ext in '' $ac_executable_extensions; do
6762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768   done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6774 if test -n "$ac_ct_MANIFEST_TOOL"; then
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6776 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6777 else
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6783     MANIFEST_TOOL=":"
6784   else
6785     case $cross_compiling:$ac_tool_warned in
6786 yes:)
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789 ac_tool_warned=yes ;;
6790 esac
6791     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6792   fi
6793 else
6794   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6795 fi
6796
6797 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6799 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6800 if ${lt_cv_path_mainfest_tool+:} false; then :
6801   $as_echo_n "(cached) " >&6
6802 else
6803   lt_cv_path_mainfest_tool=no
6804   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6805   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6806   cat conftest.err >&5
6807   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6808     lt_cv_path_mainfest_tool=yes
6809   fi
6810   rm -f conftest*
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6813 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6814 if test yes != "$lt_cv_path_mainfest_tool"; then
6815   MANIFEST_TOOL=:
6816 fi
6817
6818
6819
6820
6821
6822
6823   case $host_os in
6824     rhapsody* | darwin*)
6825     if test -n "$ac_tool_prefix"; then
6826   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6827 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   if test -n "$DSYMUTIL"; then
6834   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841     for ac_exec_ext in '' $ac_executable_extensions; do
6842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848   done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6854 if test -n "$DSYMUTIL"; then
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6856 $as_echo "$DSYMUTIL" >&6; }
6857 else
6858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6860 fi
6861
6862
6863 fi
6864 if test -z "$ac_cv_prog_DSYMUTIL"; then
6865   ac_ct_DSYMUTIL=$DSYMUTIL
6866   # Extract the first word of "dsymutil", so it can be a program name with args.
6867 set dummy dsymutil; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6871   $as_echo_n "(cached) " >&6
6872 else
6873   if test -n "$ac_ct_DSYMUTIL"; then
6874   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881     for ac_exec_ext in '' $ac_executable_extensions; do
6882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888   done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6894 if test -n "$ac_ct_DSYMUTIL"; then
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6896 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6897 else
6898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902   if test "x$ac_ct_DSYMUTIL" = x; then
6903     DSYMUTIL=":"
6904   else
6905     case $cross_compiling:$ac_tool_warned in
6906 yes:)
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6910 esac
6911     DSYMUTIL=$ac_ct_DSYMUTIL
6912   fi
6913 else
6914   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6915 fi
6916
6917     if test -n "$ac_tool_prefix"; then
6918   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_NMEDIT+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   if test -n "$NMEDIT"; then
6926   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933     for ac_exec_ext in '' $ac_executable_extensions; do
6934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940   done
6941 IFS=$as_save_IFS
6942
6943 fi
6944 fi
6945 NMEDIT=$ac_cv_prog_NMEDIT
6946 if test -n "$NMEDIT"; then
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6948 $as_echo "$NMEDIT" >&6; }
6949 else
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952 fi
6953
6954
6955 fi
6956 if test -z "$ac_cv_prog_NMEDIT"; then
6957   ac_ct_NMEDIT=$NMEDIT
6958   # Extract the first word of "nmedit", so it can be a program name with args.
6959 set dummy nmedit; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   if test -n "$ac_ct_NMEDIT"; then
6966   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971   IFS=$as_save_IFS
6972   test -z "$as_dir" && as_dir=.
6973     for ac_exec_ext in '' $ac_executable_extensions; do
6974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977     break 2
6978   fi
6979 done
6980   done
6981 IFS=$as_save_IFS
6982
6983 fi
6984 fi
6985 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6986 if test -n "$ac_ct_NMEDIT"; then
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6988 $as_echo "$ac_ct_NMEDIT" >&6; }
6989 else
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 fi
6993
6994   if test "x$ac_ct_NMEDIT" = x; then
6995     NMEDIT=":"
6996   else
6997     case $cross_compiling:$ac_tool_warned in
6998 yes:)
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7002 esac
7003     NMEDIT=$ac_ct_NMEDIT
7004   fi
7005 else
7006   NMEDIT="$ac_cv_prog_NMEDIT"
7007 fi
7008
7009     if test -n "$ac_tool_prefix"; then
7010   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7011 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_LIPO+:} false; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   if test -n "$LIPO"; then
7018   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023   IFS=$as_save_IFS
7024   test -z "$as_dir" && as_dir=.
7025     for ac_exec_ext in '' $ac_executable_extensions; do
7026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029     break 2
7030   fi
7031 done
7032   done
7033 IFS=$as_save_IFS
7034
7035 fi
7036 fi
7037 LIPO=$ac_cv_prog_LIPO
7038 if test -n "$LIPO"; then
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7040 $as_echo "$LIPO" >&6; }
7041 else
7042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045
7046
7047 fi
7048 if test -z "$ac_cv_prog_LIPO"; then
7049   ac_ct_LIPO=$LIPO
7050   # Extract the first word of "lipo", so it can be a program name with args.
7051 set dummy lipo; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7055   $as_echo_n "(cached) " >&6
7056 else
7057   if test -n "$ac_ct_LIPO"; then
7058   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063   IFS=$as_save_IFS
7064   test -z "$as_dir" && as_dir=.
7065     for ac_exec_ext in '' $ac_executable_extensions; do
7066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7067     ac_cv_prog_ac_ct_LIPO="lipo"
7068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069     break 2
7070   fi
7071 done
7072   done
7073 IFS=$as_save_IFS
7074
7075 fi
7076 fi
7077 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7078 if test -n "$ac_ct_LIPO"; then
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7080 $as_echo "$ac_ct_LIPO" >&6; }
7081 else
7082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086   if test "x$ac_ct_LIPO" = x; then
7087     LIPO=":"
7088   else
7089     case $cross_compiling:$ac_tool_warned in
7090 yes:)
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned=yes ;;
7094 esac
7095     LIPO=$ac_ct_LIPO
7096   fi
7097 else
7098   LIPO="$ac_cv_prog_LIPO"
7099 fi
7100
7101     if test -n "$ac_tool_prefix"; then
7102   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7103 set dummy ${ac_tool_prefix}otool; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_OTOOL+:} false; then :
7107   $as_echo_n "(cached) " >&6
7108 else
7109   if test -n "$OTOOL"; then
7110   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115   IFS=$as_save_IFS
7116   test -z "$as_dir" && as_dir=.
7117     for ac_exec_ext in '' $ac_executable_extensions; do
7118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121     break 2
7122   fi
7123 done
7124   done
7125 IFS=$as_save_IFS
7126
7127 fi
7128 fi
7129 OTOOL=$ac_cv_prog_OTOOL
7130 if test -n "$OTOOL"; then
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7132 $as_echo "$OTOOL" >&6; }
7133 else
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137
7138
7139 fi
7140 if test -z "$ac_cv_prog_OTOOL"; then
7141   ac_ct_OTOOL=$OTOOL
7142   # Extract the first word of "otool", so it can be a program name with args.
7143 set dummy otool; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7147   $as_echo_n "(cached) " >&6
7148 else
7149   if test -n "$ac_ct_OTOOL"; then
7150   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7151 else
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155   IFS=$as_save_IFS
7156   test -z "$as_dir" && as_dir=.
7157     for ac_exec_ext in '' $ac_executable_extensions; do
7158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159     ac_cv_prog_ac_ct_OTOOL="otool"
7160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161     break 2
7162   fi
7163 done
7164   done
7165 IFS=$as_save_IFS
7166
7167 fi
7168 fi
7169 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7170 if test -n "$ac_ct_OTOOL"; then
7171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7172 $as_echo "$ac_ct_OTOOL" >&6; }
7173 else
7174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7176 fi
7177
7178   if test "x$ac_ct_OTOOL" = x; then
7179     OTOOL=":"
7180   else
7181     case $cross_compiling:$ac_tool_warned in
7182 yes:)
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185 ac_tool_warned=yes ;;
7186 esac
7187     OTOOL=$ac_ct_OTOOL
7188   fi
7189 else
7190   OTOOL="$ac_cv_prog_OTOOL"
7191 fi
7192
7193     if test -n "$ac_tool_prefix"; then
7194   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if ${ac_cv_prog_OTOOL64+:} false; then :
7199   $as_echo_n "(cached) " >&6
7200 else
7201   if test -n "$OTOOL64"; then
7202   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207   IFS=$as_save_IFS
7208   test -z "$as_dir" && as_dir=.
7209     for ac_exec_ext in '' $ac_executable_extensions; do
7210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213     break 2
7214   fi
7215 done
7216   done
7217 IFS=$as_save_IFS
7218
7219 fi
7220 fi
7221 OTOOL64=$ac_cv_prog_OTOOL64
7222 if test -n "$OTOOL64"; then
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7224 $as_echo "$OTOOL64" >&6; }
7225 else
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7228 fi
7229
7230
7231 fi
7232 if test -z "$ac_cv_prog_OTOOL64"; then
7233   ac_ct_OTOOL64=$OTOOL64
7234   # Extract the first word of "otool64", so it can be a program name with args.
7235 set dummy otool64; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7239   $as_echo_n "(cached) " >&6
7240 else
7241   if test -n "$ac_ct_OTOOL64"; then
7242   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249     for ac_exec_ext in '' $ac_executable_extensions; do
7250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251     ac_cv_prog_ac_ct_OTOOL64="otool64"
7252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253     break 2
7254   fi
7255 done
7256   done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7262 if test -n "$ac_ct_OTOOL64"; then
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7264 $as_echo "$ac_ct_OTOOL64" >&6; }
7265 else
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270   if test "x$ac_ct_OTOOL64" = x; then
7271     OTOOL64=":"
7272   else
7273     case $cross_compiling:$ac_tool_warned in
7274 yes:)
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279     OTOOL64=$ac_ct_OTOOL64
7280   fi
7281 else
7282   OTOOL64="$ac_cv_prog_OTOOL64"
7283 fi
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7312 $as_echo_n "checking for -single_module linker flag... " >&6; }
7313 if ${lt_cv_apple_cc_single_mod+:} false; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316   lt_cv_apple_cc_single_mod=no
7317       if test -z "$LT_MULTI_MODULE"; then
7318         # By default we will add the -single_module flag. You can override
7319         # by either setting the environment variable LT_MULTI_MODULE
7320         # non-empty at configure time, or by adding -multi_module to the
7321         # link flags.
7322         rm -rf libconftest.dylib*
7323         echo "int foo(void){return 1;}" > conftest.c
7324         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7325 -dynamiclib -Wl,-single_module conftest.c" >&5
7326         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7327           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7328         _lt_result=$?
7329         # If there is a non-empty error log, and "single_module"
7330         # appears in it, assume the flag caused a linker warning
7331         if test -s conftest.err && $GREP single_module conftest.err; then
7332           cat conftest.err >&5
7333         # Otherwise, if the output was created with a 0 exit code from
7334         # the compiler, it worked.
7335         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7336           lt_cv_apple_cc_single_mod=yes
7337         else
7338           cat conftest.err >&5
7339         fi
7340         rm -rf libconftest.dylib*
7341         rm -f conftest.*
7342       fi
7343 fi
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7345 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7346
7347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7348 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7349 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   lt_cv_ld_exported_symbols_list=no
7353       save_LDFLAGS=$LDFLAGS
7354       echo "_main" > conftest.sym
7355       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7356       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h.  */
7358
7359 int
7360 main ()
7361 {
7362
7363   ;
7364   return 0;
7365 }
7366 _ACEOF
7367 if ac_fn_c_try_link "$LINENO"; then :
7368   lt_cv_ld_exported_symbols_list=yes
7369 else
7370   lt_cv_ld_exported_symbols_list=no
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext \
7373     conftest$ac_exeext conftest.$ac_ext
7374         LDFLAGS=$save_LDFLAGS
7375
7376 fi
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7378 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7379
7380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7381 $as_echo_n "checking for -force_load linker flag... " >&6; }
7382 if ${lt_cv_ld_force_load+:} false; then :
7383   $as_echo_n "(cached) " >&6
7384 else
7385   lt_cv_ld_force_load=no
7386       cat > conftest.c << _LT_EOF
7387 int forced_loaded() { return 2;}
7388 _LT_EOF
7389       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7390       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7391       echo "$AR cru libconftest.a conftest.o" >&5
7392       $AR cru libconftest.a conftest.o 2>&5
7393       echo "$RANLIB libconftest.a" >&5
7394       $RANLIB libconftest.a 2>&5
7395       cat > conftest.c << _LT_EOF
7396 int main() { return 0;}
7397 _LT_EOF
7398       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7399       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7400       _lt_result=$?
7401       if test -s conftest.err && $GREP force_load conftest.err; then
7402         cat conftest.err >&5
7403       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7404         lt_cv_ld_force_load=yes
7405       else
7406         cat conftest.err >&5
7407       fi
7408         rm -f conftest.err libconftest.a conftest conftest.c
7409         rm -rf conftest.dSYM
7410
7411 fi
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7413 $as_echo "$lt_cv_ld_force_load" >&6; }
7414     case $host_os in
7415     rhapsody* | darwin1.[012])
7416       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7417     darwin1.*)
7418       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7419     darwin*) # darwin 5.x on
7420       # if running on 10.5 or later, the deployment target defaults
7421       # to the OS version, if on x86, and 10.4, the deployment
7422       # target defaults to 10.4. Don't you love it?
7423       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7424         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7425           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7426         10.[012][,.]*)
7427           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7428         10.*)
7429           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7430       esac
7431     ;;
7432   esac
7433     if test yes = "$lt_cv_apple_cc_single_mod"; then
7434       _lt_dar_single_mod='$single_module'
7435     fi
7436     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7437       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7438     else
7439       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7440     fi
7441     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7442       _lt_dsymutil='~$DSYMUTIL $lib || :'
7443     else
7444       _lt_dsymutil=
7445     fi
7446     ;;
7447   esac
7448
7449 # func_munge_path_list VARIABLE PATH
7450 # -----------------------------------
7451 # VARIABLE is name of variable containing _space_ separated list of
7452 # directories to be munged by the contents of PATH, which is string
7453 # having a format:
7454 # "DIR[:DIR]:"
7455 #       string "DIR[ DIR]" will be prepended to VARIABLE
7456 # ":DIR[:DIR]"
7457 #       string "DIR[ DIR]" will be appended to VARIABLE
7458 # "DIRP[:DIRP]::[DIRA:]DIRA"
7459 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7460 #       "DIRA[ DIRA]" will be appended to VARIABLE
7461 # "DIR[:DIR]"
7462 #       VARIABLE will be replaced by "DIR[ DIR]"
7463 func_munge_path_list ()
7464 {
7465     case x$2 in
7466     x)
7467         ;;
7468     *:)
7469         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7470         ;;
7471     x:*)
7472         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7473         ;;
7474     *::*)
7475         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7476         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7477         ;;
7478     *)
7479         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7480         ;;
7481     esac
7482 }
7483
7484 ac_ext=c
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7490 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7491 # On Suns, sometimes $CPP names a directory.
7492 if test -n "$CPP" && test -d "$CPP"; then
7493   CPP=
7494 fi
7495 if test -z "$CPP"; then
7496   if ${ac_cv_prog_CPP+:} false; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499       # Double quotes because CPP needs to be expanded
7500     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7501     do
7502       ac_preproc_ok=false
7503 for ac_c_preproc_warn_flag in '' yes
7504 do
7505   # Use a header file that comes with gcc, so configuring glibc
7506   # with a fresh cross-compiler works.
7507   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7508   # <limits.h> exists even on freestanding compilers.
7509   # On the NeXT, cc -E runs the code through the compiler's parser,
7510   # not just through cpp. "Syntax error" is here to catch this case.
7511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h.  */
7513 #ifdef __STDC__
7514 # include <limits.h>
7515 #else
7516 # include <assert.h>
7517 #endif
7518                      Syntax error
7519 _ACEOF
7520 if ac_fn_c_try_cpp "$LINENO"; then :
7521
7522 else
7523   # Broken: fails on valid input.
7524 continue
7525 fi
7526 rm -f conftest.err conftest.i conftest.$ac_ext
7527
7528   # OK, works on sane cases.  Now check whether nonexistent headers
7529   # can be detected and how.
7530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h.  */
7532 #include <ac_nonexistent.h>
7533 _ACEOF
7534 if ac_fn_c_try_cpp "$LINENO"; then :
7535   # Broken: success on invalid input.
7536 continue
7537 else
7538   # Passes both tests.
7539 ac_preproc_ok=:
7540 break
7541 fi
7542 rm -f conftest.err conftest.i conftest.$ac_ext
7543
7544 done
7545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7546 rm -f conftest.i conftest.err conftest.$ac_ext
7547 if $ac_preproc_ok; then :
7548   break
7549 fi
7550
7551     done
7552     ac_cv_prog_CPP=$CPP
7553
7554 fi
7555   CPP=$ac_cv_prog_CPP
7556 else
7557   ac_cv_prog_CPP=$CPP
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7560 $as_echo "$CPP" >&6; }
7561 ac_preproc_ok=false
7562 for ac_c_preproc_warn_flag in '' yes
7563 do
7564   # Use a header file that comes with gcc, so configuring glibc
7565   # with a fresh cross-compiler works.
7566   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7567   # <limits.h> exists even on freestanding compilers.
7568   # On the NeXT, cc -E runs the code through the compiler's parser,
7569   # not just through cpp. "Syntax error" is here to catch this case.
7570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h.  */
7572 #ifdef __STDC__
7573 # include <limits.h>
7574 #else
7575 # include <assert.h>
7576 #endif
7577                      Syntax error
7578 _ACEOF
7579 if ac_fn_c_try_cpp "$LINENO"; then :
7580
7581 else
7582   # Broken: fails on valid input.
7583 continue
7584 fi
7585 rm -f conftest.err conftest.i conftest.$ac_ext
7586
7587   # OK, works on sane cases.  Now check whether nonexistent headers
7588   # can be detected and how.
7589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h.  */
7591 #include <ac_nonexistent.h>
7592 _ACEOF
7593 if ac_fn_c_try_cpp "$LINENO"; then :
7594   # Broken: success on invalid input.
7595 continue
7596 else
7597   # Passes both tests.
7598 ac_preproc_ok=:
7599 break
7600 fi
7601 rm -f conftest.err conftest.i conftest.$ac_ext
7602
7603 done
7604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7605 rm -f conftest.i conftest.err conftest.$ac_ext
7606 if $ac_preproc_ok; then :
7607
7608 else
7609   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7611 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7612 See \`config.log' for more details" "$LINENO" 5; }
7613 fi
7614
7615 ac_ext=c
7616 ac_cpp='$CPP $CPPFLAGS'
7617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7620
7621
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7623 $as_echo_n "checking for ANSI C header files... " >&6; }
7624 if ${ac_cv_header_stdc+:} false; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h.  */
7629 #include <stdlib.h>
7630 #include <stdarg.h>
7631 #include <string.h>
7632 #include <float.h>
7633
7634 int
7635 main ()
7636 {
7637
7638   ;
7639   return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643   ac_cv_header_stdc=yes
7644 else
7645   ac_cv_header_stdc=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648
7649 if test $ac_cv_header_stdc = yes; then
7650   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h.  */
7653 #include <string.h>
7654
7655 _ACEOF
7656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7657   $EGREP "memchr" >/dev/null 2>&1; then :
7658
7659 else
7660   ac_cv_header_stdc=no
7661 fi
7662 rm -f conftest*
7663
7664 fi
7665
7666 if test $ac_cv_header_stdc = yes; then
7667   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h.  */
7670 #include <stdlib.h>
7671
7672 _ACEOF
7673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7674   $EGREP "free" >/dev/null 2>&1; then :
7675
7676 else
7677   ac_cv_header_stdc=no
7678 fi
7679 rm -f conftest*
7680
7681 fi
7682
7683 if test $ac_cv_header_stdc = yes; then
7684   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7685   if test "$cross_compiling" = yes; then :
7686   :
7687 else
7688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690 #include <ctype.h>
7691 #include <stdlib.h>
7692 #if ((' ' & 0x0FF) == 0x020)
7693 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7694 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7695 #else
7696 # define ISLOWER(c) \
7697                    (('a' <= (c) && (c) <= 'i') \
7698                      || ('j' <= (c) && (c) <= 'r') \
7699                      || ('s' <= (c) && (c) <= 'z'))
7700 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7701 #endif
7702
7703 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7704 int
7705 main ()
7706 {
7707   int i;
7708   for (i = 0; i < 256; i++)
7709     if (XOR (islower (i), ISLOWER (i))
7710         || toupper (i) != TOUPPER (i))
7711       return 2;
7712   return 0;
7713 }
7714 _ACEOF
7715 if ac_fn_c_try_run "$LINENO"; then :
7716
7717 else
7718   ac_cv_header_stdc=no
7719 fi
7720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7721   conftest.$ac_objext conftest.beam conftest.$ac_ext
7722 fi
7723
7724 fi
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7727 $as_echo "$ac_cv_header_stdc" >&6; }
7728 if test $ac_cv_header_stdc = yes; then
7729
7730 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7731
7732 fi
7733
7734 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7735 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7736                   inttypes.h stdint.h unistd.h
7737 do :
7738   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7740 "
7741 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7742   cat >>confdefs.h <<_ACEOF
7743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7744 _ACEOF
7745
7746 fi
7747
7748 done
7749
7750
7751 for ac_header in dlfcn.h
7752 do :
7753   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7754 "
7755 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7756   cat >>confdefs.h <<_ACEOF
7757 #define HAVE_DLFCN_H 1
7758 _ACEOF
7759
7760 fi
7761
7762 done
7763
7764
7765
7766
7767
7768 # Set options
7769 enable_win32_dll=yes
7770
7771 case $host in
7772 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7773   if test -n "$ac_tool_prefix"; then
7774   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7775 set dummy ${ac_tool_prefix}as; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if ${ac_cv_prog_AS+:} false; then :
7779   $as_echo_n "(cached) " >&6
7780 else
7781   if test -n "$AS"; then
7782   ac_cv_prog_AS="$AS" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789     for ac_exec_ext in '' $ac_executable_extensions; do
7790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791     ac_cv_prog_AS="${ac_tool_prefix}as"
7792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796   done
7797 IFS=$as_save_IFS
7798
7799 fi
7800 fi
7801 AS=$ac_cv_prog_AS
7802 if test -n "$AS"; then
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7804 $as_echo "$AS" >&6; }
7805 else
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810
7811 fi
7812 if test -z "$ac_cv_prog_AS"; then
7813   ac_ct_AS=$AS
7814   # Extract the first word of "as", so it can be a program name with args.
7815 set dummy as; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821   if test -n "$ac_ct_AS"; then
7822   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   test -z "$as_dir" && as_dir=.
7829     for ac_exec_ext in '' $ac_executable_extensions; do
7830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831     ac_cv_prog_ac_ct_AS="as"
7832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833     break 2
7834   fi
7835 done
7836   done
7837 IFS=$as_save_IFS
7838
7839 fi
7840 fi
7841 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7842 if test -n "$ac_ct_AS"; then
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7844 $as_echo "$ac_ct_AS" >&6; }
7845 else
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848 fi
7849
7850   if test "x$ac_ct_AS" = x; then
7851     AS="false"
7852   else
7853     case $cross_compiling:$ac_tool_warned in
7854 yes:)
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857 ac_tool_warned=yes ;;
7858 esac
7859     AS=$ac_ct_AS
7860   fi
7861 else
7862   AS="$ac_cv_prog_AS"
7863 fi
7864
7865   if test -n "$ac_tool_prefix"; then
7866   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7867 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if ${ac_cv_prog_DLLTOOL+:} false; then :
7871   $as_echo_n "(cached) " >&6
7872 else
7873   if test -n "$DLLTOOL"; then
7874   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879   IFS=$as_save_IFS
7880   test -z "$as_dir" && as_dir=.
7881     for ac_exec_ext in '' $ac_executable_extensions; do
7882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885     break 2
7886   fi
7887 done
7888   done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 DLLTOOL=$ac_cv_prog_DLLTOOL
7894 if test -n "$DLLTOOL"; then
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7896 $as_echo "$DLLTOOL" >&6; }
7897 else
7898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900 fi
7901
7902
7903 fi
7904 if test -z "$ac_cv_prog_DLLTOOL"; then
7905   ac_ct_DLLTOOL=$DLLTOOL
7906   # Extract the first word of "dlltool", so it can be a program name with args.
7907 set dummy dlltool; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   if test -n "$ac_ct_DLLTOOL"; then
7914   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7934 if test -n "$ac_ct_DLLTOOL"; then
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7936 $as_echo "$ac_ct_DLLTOOL" >&6; }
7937 else
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942   if test "x$ac_ct_DLLTOOL" = x; then
7943     DLLTOOL="false"
7944   else
7945     case $cross_compiling:$ac_tool_warned in
7946 yes:)
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7949 ac_tool_warned=yes ;;
7950 esac
7951     DLLTOOL=$ac_ct_DLLTOOL
7952   fi
7953 else
7954   DLLTOOL="$ac_cv_prog_DLLTOOL"
7955 fi
7956
7957   if test -n "$ac_tool_prefix"; then
7958   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7959 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_OBJDUMP+:} false; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   if test -n "$OBJDUMP"; then
7966   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971   IFS=$as_save_IFS
7972   test -z "$as_dir" && as_dir=.
7973     for ac_exec_ext in '' $ac_executable_extensions; do
7974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977     break 2
7978   fi
7979 done
7980   done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 OBJDUMP=$ac_cv_prog_OBJDUMP
7986 if test -n "$OBJDUMP"; then
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7988 $as_echo "$OBJDUMP" >&6; }
7989 else
7990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993
7994
7995 fi
7996 if test -z "$ac_cv_prog_OBJDUMP"; then
7997   ac_ct_OBJDUMP=$OBJDUMP
7998   # Extract the first word of "objdump", so it can be a program name with args.
7999 set dummy objdump; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8003   $as_echo_n "(cached) " >&6
8004 else
8005   if test -n "$ac_ct_OBJDUMP"; then
8006   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011   IFS=$as_save_IFS
8012   test -z "$as_dir" && as_dir=.
8013     for ac_exec_ext in '' $ac_executable_extensions; do
8014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017     break 2
8018   fi
8019 done
8020   done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8026 if test -n "$ac_ct_OBJDUMP"; then
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8028 $as_echo "$ac_ct_OBJDUMP" >&6; }
8029 else
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034   if test "x$ac_ct_OBJDUMP" = x; then
8035     OBJDUMP="false"
8036   else
8037     case $cross_compiling:$ac_tool_warned in
8038 yes:)
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned=yes ;;
8042 esac
8043     OBJDUMP=$ac_ct_OBJDUMP
8044   fi
8045 else
8046   OBJDUMP="$ac_cv_prog_OBJDUMP"
8047 fi
8048
8049   ;;
8050 esac
8051
8052 test -z "$AS" && AS=as
8053
8054
8055
8056
8057
8058 test -z "$DLLTOOL" && DLLTOOL=dlltool
8059
8060
8061
8062
8063
8064 test -z "$OBJDUMP" && OBJDUMP=objdump
8065
8066
8067
8068
8069
8070
8071
8072         enable_dlopen=no
8073
8074
8075
8076             # Check whether --enable-shared was given.
8077 if test "${enable_shared+set}" = set; then :
8078   enableval=$enable_shared; p=${PACKAGE-default}
8079     case $enableval in
8080     yes) enable_shared=yes ;;
8081     no) enable_shared=no ;;
8082     *)
8083       enable_shared=no
8084       # Look at the argument we got.  We use all the common list separators.
8085       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8086       for pkg in $enableval; do
8087         IFS=$lt_save_ifs
8088         if test "X$pkg" = "X$p"; then
8089           enable_shared=yes
8090         fi
8091       done
8092       IFS=$lt_save_ifs
8093       ;;
8094     esac
8095 else
8096   enable_shared=yes
8097 fi
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107   # Check whether --enable-static was given.
8108 if test "${enable_static+set}" = set; then :
8109   enableval=$enable_static; p=${PACKAGE-default}
8110     case $enableval in
8111     yes) enable_static=yes ;;
8112     no) enable_static=no ;;
8113     *)
8114      enable_static=no
8115       # Look at the argument we got.  We use all the common list separators.
8116       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8117       for pkg in $enableval; do
8118         IFS=$lt_save_ifs
8119         if test "X$pkg" = "X$p"; then
8120           enable_static=yes
8121         fi
8122       done
8123       IFS=$lt_save_ifs
8124       ;;
8125     esac
8126 else
8127   enable_static=yes
8128 fi
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139 # Check whether --with-pic was given.
8140 if test "${with_pic+set}" = set; then :
8141   withval=$with_pic; lt_p=${PACKAGE-default}
8142     case $withval in
8143     yes|no) pic_mode=$withval ;;
8144     *)
8145       pic_mode=default
8146       # Look at the argument we got.  We use all the common list separators.
8147       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8148       for lt_pkg in $withval; do
8149         IFS=$lt_save_ifs
8150         if test "X$lt_pkg" = "X$lt_p"; then
8151           pic_mode=yes
8152         fi
8153       done
8154       IFS=$lt_save_ifs
8155       ;;
8156     esac
8157 else
8158   pic_mode=default
8159 fi
8160
8161
8162
8163
8164
8165
8166
8167
8168   # Check whether --enable-fast-install was given.
8169 if test "${enable_fast_install+set}" = set; then :
8170   enableval=$enable_fast_install; p=${PACKAGE-default}
8171     case $enableval in
8172     yes) enable_fast_install=yes ;;
8173     no) enable_fast_install=no ;;
8174     *)
8175       enable_fast_install=no
8176       # Look at the argument we got.  We use all the common list separators.
8177       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8178       for pkg in $enableval; do
8179         IFS=$lt_save_ifs
8180         if test "X$pkg" = "X$p"; then
8181           enable_fast_install=yes
8182         fi
8183       done
8184       IFS=$lt_save_ifs
8185       ;;
8186     esac
8187 else
8188   enable_fast_install=yes
8189 fi
8190
8191
8192
8193
8194
8195
8196
8197
8198   shared_archive_member_spec=
8199 case $host,$enable_shared in
8200 power*-*-aix[5-9]*,yes)
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8202 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8203
8204 # Check whether --with-aix-soname was given.
8205 if test "${with_aix_soname+set}" = set; then :
8206   withval=$with_aix_soname; case $withval in
8207     aix|svr4|both)
8208       ;;
8209     *)
8210       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8211       ;;
8212     esac
8213     lt_cv_with_aix_soname=$with_aix_soname
8214 else
8215   if ${lt_cv_with_aix_soname+:} false; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   lt_cv_with_aix_soname=aix
8219 fi
8220
8221     with_aix_soname=$lt_cv_with_aix_soname
8222 fi
8223
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8225 $as_echo "$with_aix_soname" >&6; }
8226   if test aix != "$with_aix_soname"; then
8227     # For the AIX way of multilib, we name the shared archive member
8228     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8229     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8230     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8231     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8232     if test 64 = "${OBJECT_MODE-32}"; then
8233       shared_archive_member_spec=shr_64
8234     else
8235       shared_archive_member_spec=shr
8236     fi
8237   fi
8238   ;;
8239 *)
8240   with_aix_soname=aix
8241   ;;
8242 esac
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 # This can be used to rebuild libtool when needed
8254 LIBTOOL_DEPS=$ltmain
8255
8256 # Always use our own libtool.
8257 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288 test -z "$LN_S" && LN_S="ln -s"
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303 if test -n "${ZSH_VERSION+set}"; then
8304    setopt NO_GLOB_SUBST
8305 fi
8306
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8308 $as_echo_n "checking for objdir... " >&6; }
8309 if ${lt_cv_objdir+:} false; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   rm -f .libs 2>/dev/null
8313 mkdir .libs 2>/dev/null
8314 if test -d .libs; then
8315   lt_cv_objdir=.libs
8316 else
8317   # MS-DOS does not allow filenames that begin with a dot.
8318   lt_cv_objdir=_libs
8319 fi
8320 rmdir .libs 2>/dev/null
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8323 $as_echo "$lt_cv_objdir" >&6; }
8324 objdir=$lt_cv_objdir
8325
8326
8327
8328
8329
8330 cat >>confdefs.h <<_ACEOF
8331 #define LT_OBJDIR "$lt_cv_objdir/"
8332 _ACEOF
8333
8334
8335
8336
8337 case $host_os in
8338 aix3*)
8339   # AIX sometimes has problems with the GCC collect2 program.  For some
8340   # reason, if we set the COLLECT_NAMES environment variable, the problems
8341   # vanish in a puff of smoke.
8342   if test set != "${COLLECT_NAMES+set}"; then
8343     COLLECT_NAMES=
8344     export COLLECT_NAMES
8345   fi
8346   ;;
8347 esac
8348
8349 # Global variables:
8350 ofile=libtool
8351 can_build_shared=yes
8352
8353 # All known linkers require a '.a' archive for static linking (except MSVC,
8354 # which needs '.lib').
8355 libext=a
8356
8357 with_gnu_ld=$lt_cv_prog_gnu_ld
8358
8359 old_CC=$CC
8360 old_CFLAGS=$CFLAGS
8361
8362 # Set sane defaults for various variables
8363 test -z "$CC" && CC=cc
8364 test -z "$LTCC" && LTCC=$CC
8365 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8366 test -z "$LD" && LD=ld
8367 test -z "$ac_objext" && ac_objext=o
8368
8369 func_cc_basename $compiler
8370 cc_basename=$func_cc_basename_result
8371
8372
8373 # Only perform the check for file, if the check method requires it
8374 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8375 case $deplibs_check_method in
8376 file_magic*)
8377   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8379 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8380 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8381   $as_echo_n "(cached) " >&6
8382 else
8383   case $MAGIC_CMD in
8384 [\\/*] |  ?:[\\/]*)
8385   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8386   ;;
8387 *)
8388   lt_save_MAGIC_CMD=$MAGIC_CMD
8389   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8390   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8391   for ac_dir in $ac_dummy; do
8392     IFS=$lt_save_ifs
8393     test -z "$ac_dir" && ac_dir=.
8394     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8395       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8396       if test -n "$file_magic_test_file"; then
8397         case $deplibs_check_method in
8398         "file_magic "*)
8399           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8400           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8401           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8402             $EGREP "$file_magic_regex" > /dev/null; then
8403             :
8404           else
8405             cat <<_LT_EOF 1>&2
8406
8407 *** Warning: the command libtool uses to detect shared libraries,
8408 *** $file_magic_cmd, produces output that libtool cannot recognize.
8409 *** The result is that libtool may fail to recognize shared libraries
8410 *** as such.  This will affect the creation of libtool libraries that
8411 *** depend on shared libraries, but programs linked with such libtool
8412 *** libraries will work regardless of this problem.  Nevertheless, you
8413 *** may want to report the problem to your system manager and/or to
8414 *** bug-libtool@gnu.org
8415
8416 _LT_EOF
8417           fi ;;
8418         esac
8419       fi
8420       break
8421     fi
8422   done
8423   IFS=$lt_save_ifs
8424   MAGIC_CMD=$lt_save_MAGIC_CMD
8425   ;;
8426 esac
8427 fi
8428
8429 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8430 if test -n "$MAGIC_CMD"; then
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8432 $as_echo "$MAGIC_CMD" >&6; }
8433 else
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436 fi
8437
8438
8439
8440
8441
8442 if test -z "$lt_cv_path_MAGIC_CMD"; then
8443   if test -n "$ac_tool_prefix"; then
8444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8445 $as_echo_n "checking for file... " >&6; }
8446 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8447   $as_echo_n "(cached) " >&6
8448 else
8449   case $MAGIC_CMD in
8450 [\\/*] |  ?:[\\/]*)
8451   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8452   ;;
8453 *)
8454   lt_save_MAGIC_CMD=$MAGIC_CMD
8455   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8456   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8457   for ac_dir in $ac_dummy; do
8458     IFS=$lt_save_ifs
8459     test -z "$ac_dir" && ac_dir=.
8460     if test -f "$ac_dir/file"; then
8461       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8462       if test -n "$file_magic_test_file"; then
8463         case $deplibs_check_method in
8464         "file_magic "*)
8465           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8466           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8467           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8468             $EGREP "$file_magic_regex" > /dev/null; then
8469             :
8470           else
8471             cat <<_LT_EOF 1>&2
8472
8473 *** Warning: the command libtool uses to detect shared libraries,
8474 *** $file_magic_cmd, produces output that libtool cannot recognize.
8475 *** The result is that libtool may fail to recognize shared libraries
8476 *** as such.  This will affect the creation of libtool libraries that
8477 *** depend on shared libraries, but programs linked with such libtool
8478 *** libraries will work regardless of this problem.  Nevertheless, you
8479 *** may want to report the problem to your system manager and/or to
8480 *** bug-libtool@gnu.org
8481
8482 _LT_EOF
8483           fi ;;
8484         esac
8485       fi
8486       break
8487     fi
8488   done
8489   IFS=$lt_save_ifs
8490   MAGIC_CMD=$lt_save_MAGIC_CMD
8491   ;;
8492 esac
8493 fi
8494
8495 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8496 if test -n "$MAGIC_CMD"; then
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8498 $as_echo "$MAGIC_CMD" >&6; }
8499 else
8500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8502 fi
8503
8504
8505   else
8506     MAGIC_CMD=:
8507   fi
8508 fi
8509
8510   fi
8511   ;;
8512 esac
8513
8514 # Use C for the default configuration in the libtool script
8515
8516 lt_save_CC=$CC
8517 ac_ext=c
8518 ac_cpp='$CPP $CPPFLAGS'
8519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522
8523
8524 # Source file extension for C test sources.
8525 ac_ext=c
8526
8527 # Object file extension for compiled C test sources.
8528 objext=o
8529 objext=$objext
8530
8531 # Code to be used in simple compile tests
8532 lt_simple_compile_test_code="int some_variable = 0;"
8533
8534 # Code to be used in simple link tests
8535 lt_simple_link_test_code='int main(){return(0);}'
8536
8537
8538
8539
8540
8541
8542
8543 # If no C compiler was specified, use CC.
8544 LTCC=${LTCC-"$CC"}
8545
8546 # If no C compiler flags were specified, use CFLAGS.
8547 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8548
8549 # Allow CC to be a program name with arguments.
8550 compiler=$CC
8551
8552 # Save the default compiler, since it gets overwritten when the other
8553 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8554 compiler_DEFAULT=$CC
8555
8556 # save warnings/boilerplate of simple test code
8557 ac_outfile=conftest.$ac_objext
8558 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8559 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8560 _lt_compiler_boilerplate=`cat conftest.err`
8561 $RM conftest*
8562
8563 ac_outfile=conftest.$ac_objext
8564 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8565 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8566 _lt_linker_boilerplate=`cat conftest.err`
8567 $RM -r conftest*
8568
8569
8570 ## CAVEAT EMPTOR:
8571 ## There is no encapsulation within the following macros, do not change
8572 ## the running order or otherwise move them around unless you know exactly
8573 ## what you are doing...
8574 if test -n "$compiler"; then
8575
8576 lt_prog_compiler_no_builtin_flag=
8577
8578 if test yes = "$GCC"; then
8579   case $cc_basename in
8580   nvcc*)
8581     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8582   *)
8583     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8584   esac
8585
8586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8587 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8588 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   lt_cv_prog_compiler_rtti_exceptions=no
8592    ac_outfile=conftest.$ac_objext
8593    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8594    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8595    # Insert the option either (1) after the last *FLAGS variable, or
8596    # (2) before a word containing "conftest.", or (3) at the end.
8597    # Note that $ac_compile itself does not contain backslashes and begins
8598    # with a dollar sign (not a hyphen), so the echo should work correctly.
8599    # The option is referenced via a variable to avoid confusing sed.
8600    lt_compile=`echo "$ac_compile" | $SED \
8601    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603    -e 's:$: $lt_compiler_flag:'`
8604    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8605    (eval "$lt_compile" 2>conftest.err)
8606    ac_status=$?
8607    cat conftest.err >&5
8608    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609    if (exit $ac_status) && test -s "$ac_outfile"; then
8610      # The compiler can only warn and ignore the option if not recognized
8611      # So say no if there are warnings other than the usual output.
8612      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8613      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8614      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8615        lt_cv_prog_compiler_rtti_exceptions=yes
8616      fi
8617    fi
8618    $RM conftest*
8619
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8622 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8623
8624 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8625     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8626 else
8627     :
8628 fi
8629
8630 fi
8631
8632
8633
8634
8635
8636
8637   lt_prog_compiler_wl=
8638 lt_prog_compiler_pic=
8639 lt_prog_compiler_static=
8640
8641
8642   if test yes = "$GCC"; then
8643     lt_prog_compiler_wl='-Wl,'
8644     lt_prog_compiler_static='-static'
8645
8646     case $host_os in
8647       aix*)
8648       # All AIX code is PIC.
8649       if test ia64 = "$host_cpu"; then
8650         # AIX 5 now supports IA64 processor
8651         lt_prog_compiler_static='-Bstatic'
8652       fi
8653       lt_prog_compiler_pic='-fPIC'
8654       ;;
8655
8656     amigaos*)
8657       case $host_cpu in
8658       powerpc)
8659             # see comment about AmigaOS4 .so support
8660             lt_prog_compiler_pic='-fPIC'
8661         ;;
8662       m68k)
8663             # FIXME: we need at least 68020 code to build shared libraries, but
8664             # adding the '-m68020' flag to GCC prevents building anything better,
8665             # like '-m68040'.
8666             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8667         ;;
8668       esac
8669       ;;
8670
8671     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8672       # PIC is the default for these OSes.
8673       ;;
8674
8675     mingw* | cygwin* | pw32* | os2* | cegcc*)
8676       # This hack is so that the source file can tell whether it is being
8677       # built for inclusion in a dll (and should export symbols for example).
8678       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8679       # (--disable-auto-import) libraries
8680       lt_prog_compiler_pic='-DDLL_EXPORT'
8681       case $host_os in
8682       os2*)
8683         lt_prog_compiler_static='$wl-static'
8684         ;;
8685       esac
8686       ;;
8687
8688     darwin* | rhapsody*)
8689       # PIC is the default on this platform
8690       # Common symbols not allowed in MH_DYLIB files
8691       lt_prog_compiler_pic='-fno-common'
8692       ;;
8693
8694     haiku*)
8695       # PIC is the default for Haiku.
8696       # The "-static" flag exists, but is broken.
8697       lt_prog_compiler_static=
8698       ;;
8699
8700     hpux*)
8701       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8702       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8703       # sets the default TLS model and affects inlining.
8704       case $host_cpu in
8705       hppa*64*)
8706         # +Z the default
8707         ;;
8708       *)
8709         lt_prog_compiler_pic='-fPIC'
8710         ;;
8711       esac
8712       ;;
8713
8714     interix[3-9]*)
8715       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8716       # Instead, we relocate shared libraries at runtime.
8717       ;;
8718
8719     msdosdjgpp*)
8720       # Just because we use GCC doesn't mean we suddenly get shared libraries
8721       # on systems that don't support them.
8722       lt_prog_compiler_can_build_shared=no
8723       enable_shared=no
8724       ;;
8725
8726     *nto* | *qnx*)
8727       # QNX uses GNU C++, but need to define -shared option too, otherwise
8728       # it will coredump.
8729       lt_prog_compiler_pic='-fPIC -shared'
8730       ;;
8731
8732     sysv4*MP*)
8733       if test -d /usr/nec; then
8734         lt_prog_compiler_pic=-Kconform_pic
8735       fi
8736       ;;
8737
8738     *)
8739       lt_prog_compiler_pic='-fPIC'
8740       ;;
8741     esac
8742
8743     case $cc_basename in
8744     nvcc*) # Cuda Compiler Driver 2.2
8745       lt_prog_compiler_wl='-Xlinker '
8746       if test -n "$lt_prog_compiler_pic"; then
8747         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8748       fi
8749       ;;
8750     esac
8751   else
8752     # PORTME Check for flag to pass linker flags through the system compiler.
8753     case $host_os in
8754     aix*)
8755       lt_prog_compiler_wl='-Wl,'
8756       if test ia64 = "$host_cpu"; then
8757         # AIX 5 now supports IA64 processor
8758         lt_prog_compiler_static='-Bstatic'
8759       else
8760         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8761       fi
8762       ;;
8763
8764     darwin* | rhapsody*)
8765       # PIC is the default on this platform
8766       # Common symbols not allowed in MH_DYLIB files
8767       lt_prog_compiler_pic='-fno-common'
8768       case $cc_basename in
8769       nagfor*)
8770         # NAG Fortran compiler
8771         lt_prog_compiler_wl='-Wl,-Wl,,'
8772         lt_prog_compiler_pic='-PIC'
8773         lt_prog_compiler_static='-Bstatic'
8774         ;;
8775       esac
8776       ;;
8777
8778     mingw* | cygwin* | pw32* | os2* | cegcc*)
8779       # This hack is so that the source file can tell whether it is being
8780       # built for inclusion in a dll (and should export symbols for example).
8781       lt_prog_compiler_pic='-DDLL_EXPORT'
8782       case $host_os in
8783       os2*)
8784         lt_prog_compiler_static='$wl-static'
8785         ;;
8786       esac
8787       ;;
8788
8789     hpux9* | hpux10* | hpux11*)
8790       lt_prog_compiler_wl='-Wl,'
8791       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8792       # not for PA HP-UX.
8793       case $host_cpu in
8794       hppa*64*|ia64*)
8795         # +Z the default
8796         ;;
8797       *)
8798         lt_prog_compiler_pic='+Z'
8799         ;;
8800       esac
8801       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8802       lt_prog_compiler_static='$wl-a ${wl}archive'
8803       ;;
8804
8805     irix5* | irix6* | nonstopux*)
8806       lt_prog_compiler_wl='-Wl,'
8807       # PIC (with -KPIC) is the default.
8808       lt_prog_compiler_static='-non_shared'
8809       ;;
8810
8811     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8812       case $cc_basename in
8813       # old Intel for x86_64, which still supported -KPIC.
8814       ecc*)
8815         lt_prog_compiler_wl='-Wl,'
8816         lt_prog_compiler_pic='-KPIC'
8817         lt_prog_compiler_static='-static'
8818         ;;
8819       # icc used to be incompatible with GCC.
8820       # ICC 10 doesn't accept -KPIC any more.
8821       icc* | ifort*)
8822         lt_prog_compiler_wl='-Wl,'
8823         lt_prog_compiler_pic='-fPIC'
8824         lt_prog_compiler_static='-static'
8825         ;;
8826       # Lahey Fortran 8.1.
8827       lf95*)
8828         lt_prog_compiler_wl='-Wl,'
8829         lt_prog_compiler_pic='--shared'
8830         lt_prog_compiler_static='--static'
8831         ;;
8832       nagfor*)
8833         # NAG Fortran compiler
8834         lt_prog_compiler_wl='-Wl,-Wl,,'
8835         lt_prog_compiler_pic='-PIC'
8836         lt_prog_compiler_static='-Bstatic'
8837         ;;
8838       tcc*)
8839         # Fabrice Bellard et al's Tiny C Compiler
8840         lt_prog_compiler_wl='-Wl,'
8841         lt_prog_compiler_pic='-fPIC'
8842         lt_prog_compiler_static='-static'
8843         ;;
8844       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8845         # Portland Group compilers (*not* the Pentium gcc compiler,
8846         # which looks to be a dead project)
8847         lt_prog_compiler_wl='-Wl,'
8848         lt_prog_compiler_pic='-fpic'
8849         lt_prog_compiler_static='-Bstatic'
8850         ;;
8851       ccc*)
8852         lt_prog_compiler_wl='-Wl,'
8853         # All Alpha code is PIC.
8854         lt_prog_compiler_static='-non_shared'
8855         ;;
8856       xl* | bgxl* | bgf* | mpixl*)
8857         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8858         lt_prog_compiler_wl='-Wl,'
8859         lt_prog_compiler_pic='-qpic'
8860         lt_prog_compiler_static='-qstaticlink'
8861         ;;
8862       *)
8863         case `$CC -V 2>&1 | sed 5q` in
8864         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8865           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8866           lt_prog_compiler_pic='-KPIC'
8867           lt_prog_compiler_static='-Bstatic'
8868           lt_prog_compiler_wl=''
8869           ;;
8870         *Sun\ F* | *Sun*Fortran*)
8871           lt_prog_compiler_pic='-KPIC'
8872           lt_prog_compiler_static='-Bstatic'
8873           lt_prog_compiler_wl='-Qoption ld '
8874           ;;
8875         *Sun\ C*)
8876           # Sun C 5.9
8877           lt_prog_compiler_pic='-KPIC'
8878           lt_prog_compiler_static='-Bstatic'
8879           lt_prog_compiler_wl='-Wl,'
8880           ;;
8881         *Intel*\ [CF]*Compiler*)
8882           lt_prog_compiler_wl='-Wl,'
8883           lt_prog_compiler_pic='-fPIC'
8884           lt_prog_compiler_static='-static'
8885           ;;
8886         *Portland\ Group*)
8887           lt_prog_compiler_wl='-Wl,'
8888           lt_prog_compiler_pic='-fpic'
8889           lt_prog_compiler_static='-Bstatic'
8890           ;;
8891         esac
8892         ;;
8893       esac
8894       ;;
8895
8896     newsos6)
8897       lt_prog_compiler_pic='-KPIC'
8898       lt_prog_compiler_static='-Bstatic'
8899       ;;
8900
8901     *nto* | *qnx*)
8902       # QNX uses GNU C++, but need to define -shared option too, otherwise
8903       # it will coredump.
8904       lt_prog_compiler_pic='-fPIC -shared'
8905       ;;
8906
8907     osf3* | osf4* | osf5*)
8908       lt_prog_compiler_wl='-Wl,'
8909       # All OSF/1 code is PIC.
8910       lt_prog_compiler_static='-non_shared'
8911       ;;
8912
8913     rdos*)
8914       lt_prog_compiler_static='-non_shared'
8915       ;;
8916
8917     solaris*)
8918       lt_prog_compiler_pic='-KPIC'
8919       lt_prog_compiler_static='-Bstatic'
8920       case $cc_basename in
8921       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8922         lt_prog_compiler_wl='-Qoption ld ';;
8923       *)
8924         lt_prog_compiler_wl='-Wl,';;
8925       esac
8926       ;;
8927
8928     sunos4*)
8929       lt_prog_compiler_wl='-Qoption ld '
8930       lt_prog_compiler_pic='-PIC'
8931       lt_prog_compiler_static='-Bstatic'
8932       ;;
8933
8934     sysv4 | sysv4.2uw2* | sysv4.3*)
8935       lt_prog_compiler_wl='-Wl,'
8936       lt_prog_compiler_pic='-KPIC'
8937       lt_prog_compiler_static='-Bstatic'
8938       ;;
8939
8940     sysv4*MP*)
8941       if test -d /usr/nec; then
8942         lt_prog_compiler_pic='-Kconform_pic'
8943         lt_prog_compiler_static='-Bstatic'
8944       fi
8945       ;;
8946
8947     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8948       lt_prog_compiler_wl='-Wl,'
8949       lt_prog_compiler_pic='-KPIC'
8950       lt_prog_compiler_static='-Bstatic'
8951       ;;
8952
8953     unicos*)
8954       lt_prog_compiler_wl='-Wl,'
8955       lt_prog_compiler_can_build_shared=no
8956       ;;
8957
8958     uts4*)
8959       lt_prog_compiler_pic='-pic'
8960       lt_prog_compiler_static='-Bstatic'
8961       ;;
8962
8963     *)
8964       lt_prog_compiler_can_build_shared=no
8965       ;;
8966     esac
8967   fi
8968
8969 case $host_os in
8970   # For platforms that do not support PIC, -DPIC is meaningless:
8971   *djgpp*)
8972     lt_prog_compiler_pic=
8973     ;;
8974   *)
8975     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8976     ;;
8977 esac
8978
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8980 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8981 if ${lt_cv_prog_compiler_pic+:} false; then :
8982   $as_echo_n "(cached) " >&6
8983 else
8984   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8985 fi
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8987 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8988 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8989
8990 #
8991 # Check to make sure the PIC flag actually works.
8992 #
8993 if test -n "$lt_prog_compiler_pic"; then
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8995 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8996 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   lt_cv_prog_compiler_pic_works=no
9000    ac_outfile=conftest.$ac_objext
9001    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9002    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9003    # Insert the option either (1) after the last *FLAGS variable, or
9004    # (2) before a word containing "conftest.", or (3) at the end.
9005    # Note that $ac_compile itself does not contain backslashes and begins
9006    # with a dollar sign (not a hyphen), so the echo should work correctly.
9007    # The option is referenced via a variable to avoid confusing sed.
9008    lt_compile=`echo "$ac_compile" | $SED \
9009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9011    -e 's:$: $lt_compiler_flag:'`
9012    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9013    (eval "$lt_compile" 2>conftest.err)
9014    ac_status=$?
9015    cat conftest.err >&5
9016    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017    if (exit $ac_status) && test -s "$ac_outfile"; then
9018      # The compiler can only warn and ignore the option if not recognized
9019      # So say no if there are warnings other than the usual output.
9020      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9021      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9022      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9023        lt_cv_prog_compiler_pic_works=yes
9024      fi
9025    fi
9026    $RM conftest*
9027
9028 fi
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9030 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9031
9032 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9033     case $lt_prog_compiler_pic in
9034      "" | " "*) ;;
9035      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9036      esac
9037 else
9038     lt_prog_compiler_pic=
9039      lt_prog_compiler_can_build_shared=no
9040 fi
9041
9042 fi
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054 #
9055 # Check to make sure the static flag actually works.
9056 #
9057 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9059 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9060 if ${lt_cv_prog_compiler_static_works+:} false; then :
9061   $as_echo_n "(cached) " >&6
9062 else
9063   lt_cv_prog_compiler_static_works=no
9064    save_LDFLAGS=$LDFLAGS
9065    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9066    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9067    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9068      # The linker can only warn and ignore the option if not recognized
9069      # So say no if there are warnings
9070      if test -s conftest.err; then
9071        # Append any errors to the config.log.
9072        cat conftest.err 1>&5
9073        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9074        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075        if diff conftest.exp conftest.er2 >/dev/null; then
9076          lt_cv_prog_compiler_static_works=yes
9077        fi
9078      else
9079        lt_cv_prog_compiler_static_works=yes
9080      fi
9081    fi
9082    $RM -r conftest*
9083    LDFLAGS=$save_LDFLAGS
9084
9085 fi
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9087 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9088
9089 if test yes = "$lt_cv_prog_compiler_static_works"; then
9090     :
9091 else
9092     lt_prog_compiler_static=
9093 fi
9094
9095
9096
9097
9098
9099
9100
9101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9102 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9103 if ${lt_cv_prog_compiler_c_o+:} false; then :
9104   $as_echo_n "(cached) " >&6
9105 else
9106   lt_cv_prog_compiler_c_o=no
9107    $RM -r conftest 2>/dev/null
9108    mkdir conftest
9109    cd conftest
9110    mkdir out
9111    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9112
9113    lt_compiler_flag="-o out/conftest2.$ac_objext"
9114    # Insert the option either (1) after the last *FLAGS variable, or
9115    # (2) before a word containing "conftest.", or (3) at the end.
9116    # Note that $ac_compile itself does not contain backslashes and begins
9117    # with a dollar sign (not a hyphen), so the echo should work correctly.
9118    lt_compile=`echo "$ac_compile" | $SED \
9119    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9121    -e 's:$: $lt_compiler_flag:'`
9122    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9123    (eval "$lt_compile" 2>out/conftest.err)
9124    ac_status=$?
9125    cat out/conftest.err >&5
9126    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9128    then
9129      # The compiler can only warn and ignore the option if not recognized
9130      # So say no if there are warnings
9131      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9132      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9133      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9134        lt_cv_prog_compiler_c_o=yes
9135      fi
9136    fi
9137    chmod u+w . 2>&5
9138    $RM conftest*
9139    # SGI C++ compiler will create directory out/ii_files/ for
9140    # template instantiation
9141    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9142    $RM out/* && rmdir out
9143    cd ..
9144    $RM -r conftest
9145    $RM conftest*
9146
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9149 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9150
9151
9152
9153
9154
9155
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9157 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9158 if ${lt_cv_prog_compiler_c_o+:} false; then :
9159   $as_echo_n "(cached) " >&6
9160 else
9161   lt_cv_prog_compiler_c_o=no
9162    $RM -r conftest 2>/dev/null
9163    mkdir conftest
9164    cd conftest
9165    mkdir out
9166    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9167
9168    lt_compiler_flag="-o out/conftest2.$ac_objext"
9169    # Insert the option either (1) after the last *FLAGS variable, or
9170    # (2) before a word containing "conftest.", or (3) at the end.
9171    # Note that $ac_compile itself does not contain backslashes and begins
9172    # with a dollar sign (not a hyphen), so the echo should work correctly.
9173    lt_compile=`echo "$ac_compile" | $SED \
9174    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9175    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9176    -e 's:$: $lt_compiler_flag:'`
9177    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9178    (eval "$lt_compile" 2>out/conftest.err)
9179    ac_status=$?
9180    cat out/conftest.err >&5
9181    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9183    then
9184      # The compiler can only warn and ignore the option if not recognized
9185      # So say no if there are warnings
9186      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9187      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9188      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9189        lt_cv_prog_compiler_c_o=yes
9190      fi
9191    fi
9192    chmod u+w . 2>&5
9193    $RM conftest*
9194    # SGI C++ compiler will create directory out/ii_files/ for
9195    # template instantiation
9196    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9197    $RM out/* && rmdir out
9198    cd ..
9199    $RM -r conftest
9200    $RM conftest*
9201
9202 fi
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9204 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9205
9206
9207
9208
9209 hard_links=nottested
9210 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9211   # do not overwrite the value of need_locks provided by the user
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9213 $as_echo_n "checking if we can lock with hard links... " >&6; }
9214   hard_links=yes
9215   $RM conftest*
9216   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9217   touch conftest.a
9218   ln conftest.a conftest.b 2>&5 || hard_links=no
9219   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9221 $as_echo "$hard_links" >&6; }
9222   if test no = "$hard_links"; then
9223     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9224 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9225     need_locks=warn
9226   fi
9227 else
9228   need_locks=no
9229 fi
9230
9231
9232
9233
9234
9235
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9237 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9238
9239   runpath_var=
9240   allow_undefined_flag=
9241   always_export_symbols=no
9242   archive_cmds=
9243   archive_expsym_cmds=
9244   compiler_needs_object=no
9245   enable_shared_with_static_runtimes=no
9246   export_dynamic_flag_spec=
9247   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9248   hardcode_automatic=no
9249   hardcode_direct=no
9250   hardcode_direct_absolute=no
9251   hardcode_libdir_flag_spec=
9252   hardcode_libdir_separator=
9253   hardcode_minus_L=no
9254   hardcode_shlibpath_var=unsupported
9255   inherit_rpath=no
9256   link_all_deplibs=unknown
9257   module_cmds=
9258   module_expsym_cmds=
9259   old_archive_from_new_cmds=
9260   old_archive_from_expsyms_cmds=
9261   thread_safe_flag_spec=
9262   whole_archive_flag_spec=
9263   # include_expsyms should be a list of space-separated symbols to be *always*
9264   # included in the symbol list
9265   include_expsyms=
9266   # exclude_expsyms can be an extended regexp of symbols to exclude
9267   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9268   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9269   # as well as any symbol that contains 'd'.
9270   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9271   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9272   # platforms (ab)use it in PIC code, but their linkers get confused if
9273   # the symbol is explicitly referenced.  Since portable code cannot
9274   # rely on this symbol name, it's probably fine to never include it in
9275   # preloaded symbol tables.
9276   # Exclude shared library initialization/finalization symbols.
9277   extract_expsyms_cmds=
9278
9279   case $host_os in
9280   cygwin* | mingw* | pw32* | cegcc*)
9281     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9282     # When not using gcc, we currently assume that we are using
9283     # Microsoft Visual C++.
9284     if test yes != "$GCC"; then
9285       with_gnu_ld=no
9286     fi
9287     ;;
9288   interix*)
9289     # we just hope/assume this is gcc and not c89 (= MSVC++)
9290     with_gnu_ld=yes
9291     ;;
9292   openbsd* | bitrig*)
9293     with_gnu_ld=no
9294     ;;
9295   linux* | k*bsd*-gnu | gnu*)
9296     link_all_deplibs=no
9297     ;;
9298   esac
9299
9300   ld_shlibs=yes
9301
9302   # On some targets, GNU ld is compatible enough with the native linker
9303   # that we're better off using the native interface for both.
9304   lt_use_gnu_ld_interface=no
9305   if test yes = "$with_gnu_ld"; then
9306     case $host_os in
9307       aix*)
9308         # The AIX port of GNU ld has always aspired to compatibility
9309         # with the native linker.  However, as the warning in the GNU ld
9310         # block says, versions before 2.19.5* couldn't really create working
9311         # shared libraries, regardless of the interface used.
9312         case `$LD -v 2>&1` in
9313           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9314           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9315           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9316           *)
9317             lt_use_gnu_ld_interface=yes
9318             ;;
9319         esac
9320         ;;
9321       *)
9322         lt_use_gnu_ld_interface=yes
9323         ;;
9324     esac
9325   fi
9326
9327   if test yes = "$lt_use_gnu_ld_interface"; then
9328     # If archive_cmds runs LD, not CC, wlarc should be empty
9329     wlarc='$wl'
9330
9331     # Set some defaults for GNU ld with shared library support. These
9332     # are reset later if shared libraries are not supported. Putting them
9333     # here allows them to be overridden if necessary.
9334     runpath_var=LD_RUN_PATH
9335     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9336     export_dynamic_flag_spec='$wl--export-dynamic'
9337     # ancient GNU ld didn't support --whole-archive et. al.
9338     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9339       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9340     else
9341       whole_archive_flag_spec=
9342     fi
9343     supports_anon_versioning=no
9344     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9345       *GNU\ gold*) supports_anon_versioning=yes ;;
9346       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9347       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9348       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9349       *\ 2.11.*) ;; # other 2.11 versions
9350       *) supports_anon_versioning=yes ;;
9351     esac
9352
9353     # See if GNU ld supports shared libraries.
9354     case $host_os in
9355     aix[3-9]*)
9356       # On AIX/PPC, the GNU linker is very broken
9357       if test ia64 != "$host_cpu"; then
9358         ld_shlibs=no
9359         cat <<_LT_EOF 1>&2
9360
9361 *** Warning: the GNU linker, at least up to release 2.19, is reported
9362 *** to be unable to reliably create shared libraries on AIX.
9363 *** Therefore, libtool is disabling shared libraries support.  If you
9364 *** really care for shared libraries, you may want to install binutils
9365 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9366 *** You will then need to restart the configuration process.
9367
9368 _LT_EOF
9369       fi
9370       ;;
9371
9372     amigaos*)
9373       case $host_cpu in
9374       powerpc)
9375             # see comment about AmigaOS4 .so support
9376             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9377             archive_expsym_cmds=''
9378         ;;
9379       m68k)
9380             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)'
9381             hardcode_libdir_flag_spec='-L$libdir'
9382             hardcode_minus_L=yes
9383         ;;
9384       esac
9385       ;;
9386
9387     beos*)
9388       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9389         allow_undefined_flag=unsupported
9390         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9391         # support --undefined.  This deserves some investigation.  FIXME
9392         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9393       else
9394         ld_shlibs=no
9395       fi
9396       ;;
9397
9398     cygwin* | mingw* | pw32* | cegcc*)
9399       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9400       # as there is no search path for DLLs.
9401       hardcode_libdir_flag_spec='-L$libdir'
9402       export_dynamic_flag_spec='$wl--export-all-symbols'
9403       allow_undefined_flag=unsupported
9404       always_export_symbols=no
9405       enable_shared_with_static_runtimes=yes
9406       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9407       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9408
9409       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9410         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9411         # If the export-symbols file already is a .def file, use it as
9412         # is; otherwise, prepend EXPORTS...
9413         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9414           cp $export_symbols $output_objdir/$soname.def;
9415         else
9416           echo EXPORTS > $output_objdir/$soname.def;
9417           cat $export_symbols >> $output_objdir/$soname.def;
9418         fi~
9419         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9420       else
9421         ld_shlibs=no
9422       fi
9423       ;;
9424
9425     haiku*)
9426       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9427       link_all_deplibs=yes
9428       ;;
9429
9430     os2*)
9431       hardcode_libdir_flag_spec='-L$libdir'
9432       hardcode_minus_L=yes
9433       allow_undefined_flag=unsupported
9434       shrext_cmds=.dll
9435       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9436         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9437         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9438         $ECHO EXPORTS >> $output_objdir/$libname.def~
9439         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9440         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9441         emximp -o $lib $output_objdir/$libname.def'
9442       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9443         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9444         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9445         $ECHO EXPORTS >> $output_objdir/$libname.def~
9446         prefix_cmds="$SED"~
9447         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9448           prefix_cmds="$prefix_cmds -e 1d";
9449         fi~
9450         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9451         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9452         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9453         emximp -o $lib $output_objdir/$libname.def'
9454       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9455       enable_shared_with_static_runtimes=yes
9456       ;;
9457
9458     interix[3-9]*)
9459       hardcode_direct=no
9460       hardcode_shlibpath_var=no
9461       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9462       export_dynamic_flag_spec='$wl-E'
9463       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9464       # Instead, shared libraries are loaded at an image base (0x10000000 by
9465       # default) and relocated if they conflict, which is a slow very memory
9466       # consuming and fragmenting process.  To avoid this, we pick a random,
9467       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9468       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9469       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9470       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'
9471       ;;
9472
9473     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9474       tmp_diet=no
9475       if test linux-dietlibc = "$host_os"; then
9476         case $cc_basename in
9477           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9478         esac
9479       fi
9480       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9481          && test no = "$tmp_diet"
9482       then
9483         tmp_addflag=' $pic_flag'
9484         tmp_sharedflag='-shared'
9485         case $cc_basename,$host_cpu in
9486         pgcc*)                          # Portland Group C compiler
9487           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'
9488           tmp_addflag=' $pic_flag'
9489           ;;
9490         pgf77* | pgf90* | pgf95* | pgfortran*)
9491                                         # Portland Group f77 and f90 compilers
9492           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'
9493           tmp_addflag=' $pic_flag -Mnomain' ;;
9494         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9495           tmp_addflag=' -i_dynamic' ;;
9496         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9497           tmp_addflag=' -i_dynamic -nofor_main' ;;
9498         ifc* | ifort*)                  # Intel Fortran compiler
9499           tmp_addflag=' -nofor_main' ;;
9500         lf95*)                          # Lahey Fortran 8.1
9501           whole_archive_flag_spec=
9502           tmp_sharedflag='--shared' ;;
9503         nagfor*)                        # NAGFOR 5.3
9504           tmp_sharedflag='-Wl,-shared' ;;
9505         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9506           tmp_sharedflag='-qmkshrobj'
9507           tmp_addflag= ;;
9508         nvcc*)  # Cuda Compiler Driver 2.2
9509           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'
9510           compiler_needs_object=yes
9511           ;;
9512         esac
9513         case `$CC -V 2>&1 | sed 5q` in
9514         *Sun\ C*)                       # Sun C 5.9
9515           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'
9516           compiler_needs_object=yes
9517           tmp_sharedflag='-G' ;;
9518         *Sun\ F*)                       # Sun Fortran 8.3
9519           tmp_sharedflag='-G' ;;
9520         esac
9521         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9522
9523         if test yes = "$supports_anon_versioning"; then
9524           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9525             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9526             echo "local: *; };" >> $output_objdir/$libname.ver~
9527             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9528         fi
9529
9530         case $cc_basename in
9531         tcc*)
9532           export_dynamic_flag_spec='-rdynamic'
9533           ;;
9534         xlf* | bgf* | bgxlf* | mpixlf*)
9535           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9536           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9537           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9538           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9539           if test yes = "$supports_anon_versioning"; then
9540             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9541               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9542               echo "local: *; };" >> $output_objdir/$libname.ver~
9543               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9544           fi
9545           ;;
9546         esac
9547       else
9548         ld_shlibs=no
9549       fi
9550       ;;
9551
9552     netbsd* | netbsdelf*-gnu)
9553       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9554         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9555         wlarc=
9556       else
9557         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9558         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9559       fi
9560       ;;
9561
9562     solaris*)
9563       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9564         ld_shlibs=no
9565         cat <<_LT_EOF 1>&2
9566
9567 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9568 *** create shared libraries on Solaris systems.  Therefore, libtool
9569 *** is disabling shared libraries support.  We urge you to upgrade GNU
9570 *** binutils to release 2.9.1 or newer.  Another option is to modify
9571 *** your PATH or compiler configuration so that the native linker is
9572 *** used, and then restart.
9573
9574 _LT_EOF
9575       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9576         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9577         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9578       else
9579         ld_shlibs=no
9580       fi
9581       ;;
9582
9583     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9584       case `$LD -v 2>&1` in
9585         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9586         ld_shlibs=no
9587         cat <<_LT_EOF 1>&2
9588
9589 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9590 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9591 *** is disabling shared libraries support.  We urge you to upgrade GNU
9592 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9593 *** your PATH or compiler configuration so that the native linker is
9594 *** used, and then restart.
9595
9596 _LT_EOF
9597         ;;
9598         *)
9599           # For security reasons, it is highly recommended that you always
9600           # use absolute paths for naming shared libraries, and exclude the
9601           # DT_RUNPATH tag from executables and libraries.  But doing so
9602           # requires that you compile everything twice, which is a pain.
9603           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9604             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9605             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9606             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9607           else
9608             ld_shlibs=no
9609           fi
9610         ;;
9611       esac
9612       ;;
9613
9614     sunos4*)
9615       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9616       wlarc=
9617       hardcode_direct=yes
9618       hardcode_shlibpath_var=no
9619       ;;
9620
9621     *)
9622       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9623         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9624         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9625       else
9626         ld_shlibs=no
9627       fi
9628       ;;
9629     esac
9630
9631     if test no = "$ld_shlibs"; then
9632       runpath_var=
9633       hardcode_libdir_flag_spec=
9634       export_dynamic_flag_spec=
9635       whole_archive_flag_spec=
9636     fi
9637   else
9638     # PORTME fill in a description of your system's linker (not GNU ld)
9639     case $host_os in
9640     aix3*)
9641       allow_undefined_flag=unsupported
9642       always_export_symbols=yes
9643       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'
9644       # Note: this linker hardcodes the directories in LIBPATH if there
9645       # are no directories specified by -L.
9646       hardcode_minus_L=yes
9647       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9648         # Neither direct hardcoding nor static linking is supported with a
9649         # broken collect2.
9650         hardcode_direct=unsupported
9651       fi
9652       ;;
9653
9654     aix[4-9]*)
9655       if test ia64 = "$host_cpu"; then
9656         # On IA64, the linker does run time linking by default, so we don't
9657         # have to do anything special.
9658         aix_use_runtimelinking=no
9659         exp_sym_flag='-Bexport'
9660         no_entry_flag=
9661       else
9662         # If we're using GNU nm, then we don't want the "-C" option.
9663         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9664         # Without the "-l" option, or with the "-B" option, AIX nm treats
9665         # weak defined symbols like other global defined symbols, whereas
9666         # GNU nm marks them as "W".
9667         # While the 'weak' keyword is ignored in the Export File, we need
9668         # it in the Import File for the 'aix-soname' feature, so we have
9669         # to replace the "-B" option with "-P" for AIX nm.
9670         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9671           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9672         else
9673           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9674         fi
9675         aix_use_runtimelinking=no
9676
9677         # Test if we are trying to use run time linking or normal
9678         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9679         # have runtime linking enabled, and use it for executables.
9680         # For shared libraries, we enable/disable runtime linking
9681         # depending on the kind of the shared library created -
9682         # when "with_aix_soname,aix_use_runtimelinking" is:
9683         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9684         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9685         #            lib.a           static archive
9686         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9687         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9688         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9689         #            lib.a(lib.so.V) shared, rtl:no
9690         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9691         #            lib.a           static archive
9692         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9693           for ld_flag in $LDFLAGS; do
9694           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9695             aix_use_runtimelinking=yes
9696             break
9697           fi
9698           done
9699           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9700             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9701             # so we don't have lib.a shared libs to link our executables.
9702             # We have to force runtime linking in this case.
9703             aix_use_runtimelinking=yes
9704             LDFLAGS="$LDFLAGS -Wl,-brtl"
9705           fi
9706           ;;
9707         esac
9708
9709         exp_sym_flag='-bexport'
9710         no_entry_flag='-bnoentry'
9711       fi
9712
9713       # When large executables or shared objects are built, AIX ld can
9714       # have problems creating the table of contents.  If linking a library
9715       # or program results in "error TOC overflow" add -mminimal-toc to
9716       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9717       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9718
9719       archive_cmds=''
9720       hardcode_direct=yes
9721       hardcode_direct_absolute=yes
9722       hardcode_libdir_separator=':'
9723       link_all_deplibs=yes
9724       file_list_spec='$wl-f,'
9725       case $with_aix_soname,$aix_use_runtimelinking in
9726       aix,*) ;; # traditional, no import file
9727       svr4,* | *,yes) # use import file
9728         # The Import File defines what to hardcode.
9729         hardcode_direct=no
9730         hardcode_direct_absolute=no
9731         ;;
9732       esac
9733
9734       if test yes = "$GCC"; then
9735         case $host_os in aix4.[012]|aix4.[012].*)
9736         # We only want to do this on AIX 4.2 and lower, the check
9737         # below for broken collect2 doesn't work under 4.3+
9738           collect2name=`$CC -print-prog-name=collect2`
9739           if test -f "$collect2name" &&
9740            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9741           then
9742           # We have reworked collect2
9743           :
9744           else
9745           # We have old collect2
9746           hardcode_direct=unsupported
9747           # It fails to find uninstalled libraries when the uninstalled
9748           # path is not listed in the libpath.  Setting hardcode_minus_L
9749           # to unsupported forces relinking
9750           hardcode_minus_L=yes
9751           hardcode_libdir_flag_spec='-L$libdir'
9752           hardcode_libdir_separator=
9753           fi
9754           ;;
9755         esac
9756         shared_flag='-shared'
9757         if test yes = "$aix_use_runtimelinking"; then
9758           shared_flag="$shared_flag "'$wl-G'
9759         fi
9760         # Need to ensure runtime linking is disabled for the traditional
9761         # shared library, or the linker may eventually find shared libraries
9762         # /with/ Import File - we do not want to mix them.
9763         shared_flag_aix='-shared'
9764         shared_flag_svr4='-shared $wl-G'
9765       else
9766         # not using gcc
9767         if test ia64 = "$host_cpu"; then
9768         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9769         # chokes on -Wl,-G. The following line is correct:
9770           shared_flag='-G'
9771         else
9772           if test yes = "$aix_use_runtimelinking"; then
9773             shared_flag='$wl-G'
9774           else
9775             shared_flag='$wl-bM:SRE'
9776           fi
9777           shared_flag_aix='$wl-bM:SRE'
9778           shared_flag_svr4='$wl-G'
9779         fi
9780       fi
9781
9782       export_dynamic_flag_spec='$wl-bexpall'
9783       # It seems that -bexpall does not export symbols beginning with
9784       # underscore (_), so it is better to generate a list of symbols to export.
9785       always_export_symbols=yes
9786       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9787         # Warning - without using the other runtime loading flags (-brtl),
9788         # -berok will link without error, but may produce a broken library.
9789         allow_undefined_flag='-berok'
9790         # Determine the default libpath from the value encoded in an
9791         # empty executable.
9792         if test set = "${lt_cv_aix_libpath+set}"; then
9793   aix_libpath=$lt_cv_aix_libpath
9794 else
9795   if ${lt_cv_aix_libpath_+:} false; then :
9796   $as_echo_n "(cached) " >&6
9797 else
9798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h.  */
9800
9801 int
9802 main ()
9803 {
9804
9805   ;
9806   return 0;
9807 }
9808 _ACEOF
9809 if ac_fn_c_try_link "$LINENO"; then :
9810
9811   lt_aix_libpath_sed='
9812       /Import File Strings/,/^$/ {
9813           /^0/ {
9814               s/^0  *\([^ ]*\) *$/\1/
9815               p
9816           }
9817       }'
9818   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9819   # Check for a 64-bit object if we didn't find anything.
9820   if test -z "$lt_cv_aix_libpath_"; then
9821     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9822   fi
9823 fi
9824 rm -f core conftest.err conftest.$ac_objext \
9825     conftest$ac_exeext conftest.$ac_ext
9826   if test -z "$lt_cv_aix_libpath_"; then
9827     lt_cv_aix_libpath_=/usr/lib:/lib
9828   fi
9829
9830 fi
9831
9832   aix_libpath=$lt_cv_aix_libpath_
9833 fi
9834
9835         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9836         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9837       else
9838         if test ia64 = "$host_cpu"; then
9839           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9840           allow_undefined_flag="-z nodefs"
9841           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"
9842         else
9843          # Determine the default libpath from the value encoded in an
9844          # empty executable.
9845          if test set = "${lt_cv_aix_libpath+set}"; then
9846   aix_libpath=$lt_cv_aix_libpath
9847 else
9848   if ${lt_cv_aix_libpath_+:} false; then :
9849   $as_echo_n "(cached) " >&6
9850 else
9851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h.  */
9853
9854 int
9855 main ()
9856 {
9857
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 if ac_fn_c_try_link "$LINENO"; then :
9863
9864   lt_aix_libpath_sed='
9865       /Import File Strings/,/^$/ {
9866           /^0/ {
9867               s/^0  *\([^ ]*\) *$/\1/
9868               p
9869           }
9870       }'
9871   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9872   # Check for a 64-bit object if we didn't find anything.
9873   if test -z "$lt_cv_aix_libpath_"; then
9874     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9875   fi
9876 fi
9877 rm -f core conftest.err conftest.$ac_objext \
9878     conftest$ac_exeext conftest.$ac_ext
9879   if test -z "$lt_cv_aix_libpath_"; then
9880     lt_cv_aix_libpath_=/usr/lib:/lib
9881   fi
9882
9883 fi
9884
9885   aix_libpath=$lt_cv_aix_libpath_
9886 fi
9887
9888          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9889           # Warning - without using the other run time loading flags,
9890           # -berok will link without error, but may produce a broken library.
9891           no_undefined_flag=' $wl-bernotok'
9892           allow_undefined_flag=' $wl-berok'
9893           if test yes = "$with_gnu_ld"; then
9894             # We only use this code for GNU lds that support --whole-archive.
9895             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9896           else
9897             # Exported symbols can be pulled into shared objects from archives
9898             whole_archive_flag_spec='$convenience'
9899           fi
9900           archive_cmds_need_lc=yes
9901           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9902           # -brtl affects multiple linker settings, -berok does not and is overridden later
9903           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9904           if test svr4 != "$with_aix_soname"; then
9905             # This is similar to how AIX traditionally builds its shared libraries.
9906             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9907           fi
9908           if test aix != "$with_aix_soname"; then
9909             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9910           else
9911             # used by -dlpreopen to get the symbols
9912             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9913           fi
9914           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9915         fi
9916       fi
9917       ;;
9918
9919     amigaos*)
9920       case $host_cpu in
9921       powerpc)
9922             # see comment about AmigaOS4 .so support
9923             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9924             archive_expsym_cmds=''
9925         ;;
9926       m68k)
9927             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)'
9928             hardcode_libdir_flag_spec='-L$libdir'
9929             hardcode_minus_L=yes
9930         ;;
9931       esac
9932       ;;
9933
9934     bsdi[45]*)
9935       export_dynamic_flag_spec=-rdynamic
9936       ;;
9937
9938     cygwin* | mingw* | pw32* | cegcc*)
9939       # When not using gcc, we currently assume that we are using
9940       # Microsoft Visual C++.
9941       # hardcode_libdir_flag_spec is actually meaningless, as there is
9942       # no search path for DLLs.
9943       case $cc_basename in
9944       cl*)
9945         # Native MSVC
9946         hardcode_libdir_flag_spec=' '
9947         allow_undefined_flag=unsupported
9948         always_export_symbols=yes
9949         file_list_spec='@'
9950         # Tell ltmain to make .lib files, not .a files.
9951         libext=lib
9952         # Tell ltmain to make .dll files, not .so files.
9953         shrext_cmds=.dll
9954         # FIXME: Setting linknames here is a bad hack.
9955         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9956         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9957             cp "$export_symbols" "$output_objdir/$soname.def";
9958             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9959           else
9960             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9961           fi~
9962           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9963           linknames='
9964         # The linker will not automatically build a static lib if we build a DLL.
9965         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9966         enable_shared_with_static_runtimes=yes
9967         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9968         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9969         # Don't use ranlib
9970         old_postinstall_cmds='chmod 644 $oldlib'
9971         postlink_cmds='lt_outputfile="@OUTPUT@"~
9972           lt_tool_outputfile="@TOOL_OUTPUT@"~
9973           case $lt_outputfile in
9974             *.exe|*.EXE) ;;
9975             *)
9976               lt_outputfile=$lt_outputfile.exe
9977               lt_tool_outputfile=$lt_tool_outputfile.exe
9978               ;;
9979           esac~
9980           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9981             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9982             $RM "$lt_outputfile.manifest";
9983           fi'
9984         ;;
9985       *)
9986         # Assume MSVC wrapper
9987         hardcode_libdir_flag_spec=' '
9988         allow_undefined_flag=unsupported
9989         # Tell ltmain to make .lib files, not .a files.
9990         libext=lib
9991         # Tell ltmain to make .dll files, not .so files.
9992         shrext_cmds=.dll
9993         # FIXME: Setting linknames here is a bad hack.
9994         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9995         # The linker will automatically build a .lib file if we build a DLL.
9996         old_archive_from_new_cmds='true'
9997         # FIXME: Should let the user specify the lib program.
9998         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9999         enable_shared_with_static_runtimes=yes
10000         ;;
10001       esac
10002       ;;
10003
10004     darwin* | rhapsody*)
10005
10006
10007   archive_cmds_need_lc=no
10008   hardcode_direct=no
10009   hardcode_automatic=yes
10010   hardcode_shlibpath_var=unsupported
10011   if test yes = "$lt_cv_ld_force_load"; then
10012     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\"`'
10013
10014   else
10015     whole_archive_flag_spec=''
10016   fi
10017   link_all_deplibs=yes
10018   allow_undefined_flag=$_lt_dar_allow_undefined
10019   case $cc_basename in
10020      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10021      *) _lt_dar_can_shared=$GCC ;;
10022   esac
10023   if test yes = "$_lt_dar_can_shared"; then
10024     output_verbose_link_cmd=func_echo_all
10025     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10026     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10027     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"
10028     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"
10029
10030   else
10031   ld_shlibs=no
10032   fi
10033
10034       ;;
10035
10036     dgux*)
10037       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038       hardcode_libdir_flag_spec='-L$libdir'
10039       hardcode_shlibpath_var=no
10040       ;;
10041
10042     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10043     # support.  Future versions do this automatically, but an explicit c++rt0.o
10044     # does not break anything, and helps significantly (at the cost of a little
10045     # extra space).
10046     freebsd2.2*)
10047       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10048       hardcode_libdir_flag_spec='-R$libdir'
10049       hardcode_direct=yes
10050       hardcode_shlibpath_var=no
10051       ;;
10052
10053     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10054     freebsd2.*)
10055       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10056       hardcode_direct=yes
10057       hardcode_minus_L=yes
10058       hardcode_shlibpath_var=no
10059       ;;
10060
10061     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10062     freebsd* | dragonfly*)
10063       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10064       hardcode_libdir_flag_spec='-R$libdir'
10065       hardcode_direct=yes
10066       hardcode_shlibpath_var=no
10067       ;;
10068
10069     hpux9*)
10070       if test yes = "$GCC"; then
10071         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10072       else
10073         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10074       fi
10075       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10076       hardcode_libdir_separator=:
10077       hardcode_direct=yes
10078
10079       # hardcode_minus_L: Not really in the search PATH,
10080       # but as the default location of the library.
10081       hardcode_minus_L=yes
10082       export_dynamic_flag_spec='$wl-E'
10083       ;;
10084
10085     hpux10*)
10086       if test yes,no = "$GCC,$with_gnu_ld"; then
10087         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10088       else
10089         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10090       fi
10091       if test no = "$with_gnu_ld"; then
10092         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10093         hardcode_libdir_separator=:
10094         hardcode_direct=yes
10095         hardcode_direct_absolute=yes
10096         export_dynamic_flag_spec='$wl-E'
10097         # hardcode_minus_L: Not really in the search PATH,
10098         # but as the default location of the library.
10099         hardcode_minus_L=yes
10100       fi
10101       ;;
10102
10103     hpux11*)
10104       if test yes,no = "$GCC,$with_gnu_ld"; then
10105         case $host_cpu in
10106         hppa*64*)
10107           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10108           ;;
10109         ia64*)
10110           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10111           ;;
10112         *)
10113           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10114           ;;
10115         esac
10116       else
10117         case $host_cpu in
10118         hppa*64*)
10119           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10120           ;;
10121         ia64*)
10122           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10123           ;;
10124         *)
10125
10126           # Older versions of the 11.00 compiler do not understand -b yet
10127           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10128           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10129 $as_echo_n "checking if $CC understands -b... " >&6; }
10130 if ${lt_cv_prog_compiler__b+:} false; then :
10131   $as_echo_n "(cached) " >&6
10132 else
10133   lt_cv_prog_compiler__b=no
10134    save_LDFLAGS=$LDFLAGS
10135    LDFLAGS="$LDFLAGS -b"
10136    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10137    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10138      # The linker can only warn and ignore the option if not recognized
10139      # So say no if there are warnings
10140      if test -s conftest.err; then
10141        # Append any errors to the config.log.
10142        cat conftest.err 1>&5
10143        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10144        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10145        if diff conftest.exp conftest.er2 >/dev/null; then
10146          lt_cv_prog_compiler__b=yes
10147        fi
10148      else
10149        lt_cv_prog_compiler__b=yes
10150      fi
10151    fi
10152    $RM -r conftest*
10153    LDFLAGS=$save_LDFLAGS
10154
10155 fi
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10157 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10158
10159 if test yes = "$lt_cv_prog_compiler__b"; then
10160     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10161 else
10162     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10163 fi
10164
10165           ;;
10166         esac
10167       fi
10168       if test no = "$with_gnu_ld"; then
10169         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10170         hardcode_libdir_separator=:
10171
10172         case $host_cpu in
10173         hppa*64*|ia64*)
10174           hardcode_direct=no
10175           hardcode_shlibpath_var=no
10176           ;;
10177         *)
10178           hardcode_direct=yes
10179           hardcode_direct_absolute=yes
10180           export_dynamic_flag_spec='$wl-E'
10181
10182           # hardcode_minus_L: Not really in the search PATH,
10183           # but as the default location of the library.
10184           hardcode_minus_L=yes
10185           ;;
10186         esac
10187       fi
10188       ;;
10189
10190     irix5* | irix6* | nonstopux*)
10191       if test yes = "$GCC"; then
10192         archive_cmds='$CC -shared $pic_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'
10193         # Try to use the -exported_symbol ld option, if it does not
10194         # work, assume that -exports_file does not work either and
10195         # implicitly export all symbols.
10196         # This should be the same for all languages, so no per-tag cache variable.
10197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10198 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10199 if ${lt_cv_irix_exported_symbol+:} false; then :
10200   $as_echo_n "(cached) " >&6
10201 else
10202   save_LDFLAGS=$LDFLAGS
10203            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10204            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h.  */
10206 int foo (void) { return 0; }
10207 _ACEOF
10208 if ac_fn_c_try_link "$LINENO"; then :
10209   lt_cv_irix_exported_symbol=yes
10210 else
10211   lt_cv_irix_exported_symbol=no
10212 fi
10213 rm -f core conftest.err conftest.$ac_objext \
10214     conftest$ac_exeext conftest.$ac_ext
10215            LDFLAGS=$save_LDFLAGS
10216 fi
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10218 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10219         if test yes = "$lt_cv_irix_exported_symbol"; then
10220           archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
10221         fi
10222         link_all_deplibs=no
10223       else
10224         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'
10225         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'
10226       fi
10227       archive_cmds_need_lc='no'
10228       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10229       hardcode_libdir_separator=:
10230       inherit_rpath=yes
10231       link_all_deplibs=yes
10232       ;;
10233
10234     linux*)
10235       case $cc_basename in
10236       tcc*)
10237         # Fabrice Bellard et al's Tiny C Compiler
10238         ld_shlibs=yes
10239         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10240         ;;
10241       esac
10242       ;;
10243
10244     netbsd* | netbsdelf*-gnu)
10245       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10246         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10247       else
10248         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10249       fi
10250       hardcode_libdir_flag_spec='-R$libdir'
10251       hardcode_direct=yes
10252       hardcode_shlibpath_var=no
10253       ;;
10254
10255     newsos6)
10256       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257       hardcode_direct=yes
10258       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10259       hardcode_libdir_separator=:
10260       hardcode_shlibpath_var=no
10261       ;;
10262
10263     *nto* | *qnx*)
10264       ;;
10265
10266     openbsd* | bitrig*)
10267       if test -f /usr/libexec/ld.so; then
10268         hardcode_direct=yes
10269         hardcode_shlibpath_var=no
10270         hardcode_direct_absolute=yes
10271         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10272           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10273           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10274           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10275           export_dynamic_flag_spec='$wl-E'
10276         else
10277           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10278           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10279         fi
10280       else
10281         ld_shlibs=no
10282       fi
10283       ;;
10284
10285     os2*)
10286       hardcode_libdir_flag_spec='-L$libdir'
10287       hardcode_minus_L=yes
10288       allow_undefined_flag=unsupported
10289       shrext_cmds=.dll
10290       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10291         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10292         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10293         $ECHO EXPORTS >> $output_objdir/$libname.def~
10294         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10295         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10296         emximp -o $lib $output_objdir/$libname.def'
10297       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10298         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10299         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10300         $ECHO EXPORTS >> $output_objdir/$libname.def~
10301         prefix_cmds="$SED"~
10302         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10303           prefix_cmds="$prefix_cmds -e 1d";
10304         fi~
10305         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10306         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10307         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10308         emximp -o $lib $output_objdir/$libname.def'
10309       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10310       enable_shared_with_static_runtimes=yes
10311       ;;
10312
10313     osf3*)
10314       if test yes = "$GCC"; then
10315         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10316         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'
10317       else
10318         allow_undefined_flag=' -expect_unresolved \*'
10319         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'
10320       fi
10321       archive_cmds_need_lc='no'
10322       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10323       hardcode_libdir_separator=:
10324       ;;
10325
10326     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10327       if test yes = "$GCC"; then
10328         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10329         archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
10330         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10331       else
10332         allow_undefined_flag=' -expect_unresolved \*'
10333         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'
10334         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~
10335           $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'
10336
10337         # Both c and cxx compiler support -rpath directly
10338         hardcode_libdir_flag_spec='-rpath $libdir'
10339       fi
10340       archive_cmds_need_lc='no'
10341       hardcode_libdir_separator=:
10342       ;;
10343
10344     solaris*)
10345       no_undefined_flag=' -z defs'
10346       if test yes = "$GCC"; then
10347         wlarc='$wl'
10348         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10349         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10350           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10351       else
10352         case `$CC -V 2>&1` in
10353         *"Compilers 5.0"*)
10354           wlarc=''
10355           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10356           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10357             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10358           ;;
10359         *)
10360           wlarc='$wl'
10361           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10362           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10363             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10364           ;;
10365         esac
10366       fi
10367       hardcode_libdir_flag_spec='-R$libdir'
10368       hardcode_shlibpath_var=no
10369       case $host_os in
10370       solaris2.[0-5] | solaris2.[0-5].*) ;;
10371       *)
10372         # The compiler driver will combine and reorder linker options,
10373         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10374         # but is careful enough not to reorder.
10375         # Supported since Solaris 2.6 (maybe 2.5.1?)
10376         if test yes = "$GCC"; then
10377           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10378         else
10379           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10380         fi
10381         ;;
10382       esac
10383       link_all_deplibs=yes
10384       ;;
10385
10386     sunos4*)
10387       if test sequent = "$host_vendor"; then
10388         # Use $CC to link under sequent, because it throws in some extra .o
10389         # files that make .init and .fini sections work.
10390         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10391       else
10392         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10393       fi
10394       hardcode_libdir_flag_spec='-L$libdir'
10395       hardcode_direct=yes
10396       hardcode_minus_L=yes
10397       hardcode_shlibpath_var=no
10398       ;;
10399
10400     sysv4)
10401       case $host_vendor in
10402         sni)
10403           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10404           hardcode_direct=yes # is this really true???
10405         ;;
10406         siemens)
10407           ## LD is ld it makes a PLAMLIB
10408           ## CC just makes a GrossModule.
10409           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10410           reload_cmds='$CC -r -o $output$reload_objs'
10411           hardcode_direct=no
10412         ;;
10413         motorola)
10414           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10416         ;;
10417       esac
10418       runpath_var='LD_RUN_PATH'
10419       hardcode_shlibpath_var=no
10420       ;;
10421
10422     sysv4.3*)
10423       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424       hardcode_shlibpath_var=no
10425       export_dynamic_flag_spec='-Bexport'
10426       ;;
10427
10428     sysv4*MP*)
10429       if test -d /usr/nec; then
10430         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10431         hardcode_shlibpath_var=no
10432         runpath_var=LD_RUN_PATH
10433         hardcode_runpath_var=yes
10434         ld_shlibs=yes
10435       fi
10436       ;;
10437
10438     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10439       no_undefined_flag='$wl-z,text'
10440       archive_cmds_need_lc=no
10441       hardcode_shlibpath_var=no
10442       runpath_var='LD_RUN_PATH'
10443
10444       if test yes = "$GCC"; then
10445         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447       else
10448         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450       fi
10451       ;;
10452
10453     sysv5* | sco3.2v5* | sco5v6*)
10454       # Note: We CANNOT use -z defs as we might desire, because we do not
10455       # link with -lc, and that would cause any symbols used from libc to
10456       # always be unresolved, which means just about no library would
10457       # ever link correctly.  If we're not using GNU ld we use -z text
10458       # though, which does catch some bad symbols but isn't as heavy-handed
10459       # as -z defs.
10460       no_undefined_flag='$wl-z,text'
10461       allow_undefined_flag='$wl-z,nodefs'
10462       archive_cmds_need_lc=no
10463       hardcode_shlibpath_var=no
10464       hardcode_libdir_flag_spec='$wl-R,$libdir'
10465       hardcode_libdir_separator=':'
10466       link_all_deplibs=yes
10467       export_dynamic_flag_spec='$wl-Bexport'
10468       runpath_var='LD_RUN_PATH'
10469
10470       if test yes = "$GCC"; then
10471         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10473       else
10474         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10475         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10476       fi
10477       ;;
10478
10479     uts4*)
10480       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481       hardcode_libdir_flag_spec='-L$libdir'
10482       hardcode_shlibpath_var=no
10483       ;;
10484
10485     *)
10486       ld_shlibs=no
10487       ;;
10488     esac
10489
10490     if test sni = "$host_vendor"; then
10491       case $host in
10492       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10493         export_dynamic_flag_spec='$wl-Blargedynsym'
10494         ;;
10495       esac
10496     fi
10497   fi
10498
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10500 $as_echo "$ld_shlibs" >&6; }
10501 test no = "$ld_shlibs" && can_build_shared=no
10502
10503 with_gnu_ld=$with_gnu_ld
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519 #
10520 # Do we need to explicitly link libc?
10521 #
10522 case "x$archive_cmds_need_lc" in
10523 x|xyes)
10524   # Assume -lc should be added
10525   archive_cmds_need_lc=yes
10526
10527   if test yes,yes = "$GCC,$enable_shared"; then
10528     case $archive_cmds in
10529     *'~'*)
10530       # FIXME: we may have to deal with multi-command sequences.
10531       ;;
10532     '$CC '*)
10533       # Test whether the compiler implicitly links with -lc since on some
10534       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10535       # to ld, don't add -lc before -lgcc.
10536       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10537 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10538 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10539   $as_echo_n "(cached) " >&6
10540 else
10541   $RM conftest*
10542         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10543
10544         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10545   (eval $ac_compile) 2>&5
10546   ac_status=$?
10547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10548   test $ac_status = 0; } 2>conftest.err; then
10549           soname=conftest
10550           lib=conftest
10551           libobjs=conftest.$ac_objext
10552           deplibs=
10553           wl=$lt_prog_compiler_wl
10554           pic_flag=$lt_prog_compiler_pic
10555           compiler_flags=-v
10556           linker_flags=-v
10557           verstring=
10558           output_objdir=.
10559           libname=conftest
10560           lt_save_allow_undefined_flag=$allow_undefined_flag
10561           allow_undefined_flag=
10562           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10563   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10564   ac_status=$?
10565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10566   test $ac_status = 0; }
10567           then
10568             lt_cv_archive_cmds_need_lc=no
10569           else
10570             lt_cv_archive_cmds_need_lc=yes
10571           fi
10572           allow_undefined_flag=$lt_save_allow_undefined_flag
10573         else
10574           cat conftest.err 1>&5
10575         fi
10576         $RM conftest*
10577
10578 fi
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10580 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10581       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10582       ;;
10583     esac
10584   fi
10585   ;;
10586 esac
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10740 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10741
10742 if test yes = "$GCC"; then
10743   case $host_os in
10744     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10745     *) lt_awk_arg='/^libraries:/' ;;
10746   esac
10747   case $host_os in
10748     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10749     *) lt_sed_strip_eq='s|=/|/|g' ;;
10750   esac
10751   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10752   case $lt_search_path_spec in
10753   *\;*)
10754     # if the path contains ";" then we assume it to be the separator
10755     # otherwise default to the standard path separator (i.e. ":") - it is
10756     # assumed that no part of a normal pathname contains ";" but that should
10757     # okay in the real world where ";" in dirpaths is itself problematic.
10758     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10759     ;;
10760   *)
10761     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10762     ;;
10763   esac
10764   # Ok, now we have the path, separated by spaces, we can step through it
10765   # and add multilib dir if necessary...
10766   lt_tmp_lt_search_path_spec=
10767   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10768   # ...but if some path component already ends with the multilib dir we assume
10769   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10770   case "$lt_multi_os_dir; $lt_search_path_spec " in
10771   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10772     lt_multi_os_dir=
10773     ;;
10774   esac
10775   for lt_sys_path in $lt_search_path_spec; do
10776     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10777       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10778     elif test -n "$lt_multi_os_dir"; then
10779       test -d "$lt_sys_path" && \
10780         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10781     fi
10782   done
10783   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10784 BEGIN {RS = " "; FS = "/|\n";} {
10785   lt_foo = "";
10786   lt_count = 0;
10787   for (lt_i = NF; lt_i > 0; lt_i--) {
10788     if ($lt_i != "" && $lt_i != ".") {
10789       if ($lt_i == "..") {
10790         lt_count++;
10791       } else {
10792         if (lt_count == 0) {
10793           lt_foo = "/" $lt_i lt_foo;
10794         } else {
10795           lt_count--;
10796         }
10797       }
10798     }
10799   }
10800   if (lt_foo != "") { lt_freq[lt_foo]++; }
10801   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10802 }'`
10803   # AWK program above erroneously prepends '/' to C:/dos/paths
10804   # for these hosts.
10805   case $host_os in
10806     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10807       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10808   esac
10809   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10810 else
10811   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10812 fi
10813 library_names_spec=
10814 libname_spec='lib$name'
10815 soname_spec=
10816 shrext_cmds=.so
10817 postinstall_cmds=
10818 postuninstall_cmds=
10819 finish_cmds=
10820 finish_eval=
10821 shlibpath_var=
10822 shlibpath_overrides_runpath=unknown
10823 version_type=none
10824 dynamic_linker="$host_os ld.so"
10825 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10826 need_lib_prefix=unknown
10827 hardcode_into_libs=no
10828
10829 # when you set need_version to no, make sure it does not cause -set_version
10830 # flags to be left without arguments
10831 need_version=unknown
10832
10833
10834
10835 case $host_os in
10836 aix3*)
10837   version_type=linux # correct to gnu/linux during the next big refactor
10838   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10839   shlibpath_var=LIBPATH
10840
10841   # AIX 3 has no versioning support, so we append a major version to the name.
10842   soname_spec='$libname$release$shared_ext$major'
10843   ;;
10844
10845 aix[4-9]*)
10846   version_type=linux # correct to gnu/linux during the next big refactor
10847   need_lib_prefix=no
10848   need_version=no
10849   hardcode_into_libs=yes
10850   if test ia64 = "$host_cpu"; then
10851     # AIX 5 supports IA64
10852     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10853     shlibpath_var=LD_LIBRARY_PATH
10854   else
10855     # With GCC up to 2.95.x, collect2 would create an import file
10856     # for dependence libraries.  The import file would start with
10857     # the line '#! .'.  This would cause the generated library to
10858     # depend on '.', always an invalid library.  This was fixed in
10859     # development snapshots of GCC prior to 3.0.
10860     case $host_os in
10861       aix4 | aix4.[01] | aix4.[01].*)
10862       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10863            echo ' yes '
10864            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10865         :
10866       else
10867         can_build_shared=no
10868       fi
10869       ;;
10870     esac
10871     # Using Import Files as archive members, it is possible to support
10872     # filename-based versioning of shared library archives on AIX. While
10873     # this would work for both with and without runtime linking, it will
10874     # prevent static linking of such archives. So we do filename-based
10875     # shared library versioning with .so extension only, which is used
10876     # when both runtime linking and shared linking is enabled.
10877     # Unfortunately, runtime linking may impact performance, so we do
10878     # not want this to be the default eventually. Also, we use the
10879     # versioned .so libs for executables only if there is the -brtl
10880     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10881     # To allow for filename-based versioning support, we need to create
10882     # libNAME.so.V as an archive file, containing:
10883     # *) an Import File, referring to the versioned filename of the
10884     #    archive as well as the shared archive member, telling the
10885     #    bitwidth (32 or 64) of that shared object, and providing the
10886     #    list of exported symbols of that shared object, eventually
10887     #    decorated with the 'weak' keyword
10888     # *) the shared object with the F_LOADONLY flag set, to really avoid
10889     #    it being seen by the linker.
10890     # At run time we better use the real file rather than another symlink,
10891     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10892
10893     case $with_aix_soname,$aix_use_runtimelinking in
10894     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10895     # soname into executable. Probably we can add versioning support to
10896     # collect2, so additional links can be useful in future.
10897     aix,yes) # traditional libtool
10898       dynamic_linker='AIX unversionable lib.so'
10899       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10900       # instead of lib<name>.a to let people know that these are not
10901       # typical AIX shared libraries.
10902       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10903       ;;
10904     aix,no) # traditional AIX only
10905       dynamic_linker='AIX lib.a(lib.so.V)'
10906       # We preserve .a as extension for shared libraries through AIX4.2
10907       # and later when we are not doing run time linking.
10908       library_names_spec='$libname$release.a $libname.a'
10909       soname_spec='$libname$release$shared_ext$major'
10910       ;;
10911     svr4,*) # full svr4 only
10912       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10913       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10914       # We do not specify a path in Import Files, so LIBPATH fires.
10915       shlibpath_overrides_runpath=yes
10916       ;;
10917     *,yes) # both, prefer svr4
10918       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10919       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10920       # unpreferred sharedlib libNAME.a needs extra handling
10921       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10922       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10923       # We do not specify a path in Import Files, so LIBPATH fires.
10924       shlibpath_overrides_runpath=yes
10925       ;;
10926     *,no) # both, prefer aix
10927       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10928       library_names_spec='$libname$release.a $libname.a'
10929       soname_spec='$libname$release$shared_ext$major'
10930       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10931       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10932       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10933       ;;
10934     esac
10935     shlibpath_var=LIBPATH
10936   fi
10937   ;;
10938
10939 amigaos*)
10940   case $host_cpu in
10941   powerpc)
10942     # Since July 2007 AmigaOS4 officially supports .so libraries.
10943     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10944     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10945     ;;
10946   m68k)
10947     library_names_spec='$libname.ixlibrary $libname.a'
10948     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10949     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10950     ;;
10951   esac
10952   ;;
10953
10954 beos*)
10955   library_names_spec='$libname$shared_ext'
10956   dynamic_linker="$host_os ld.so"
10957   shlibpath_var=LIBRARY_PATH
10958   ;;
10959
10960 bsdi[45]*)
10961   version_type=linux # correct to gnu/linux during the next big refactor
10962   need_version=no
10963   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10964   soname_spec='$libname$release$shared_ext$major'
10965   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10966   shlibpath_var=LD_LIBRARY_PATH
10967   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10968   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10969   # the default ld.so.conf also contains /usr/contrib/lib and
10970   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10971   # libtool to hard-code these into programs
10972   ;;
10973
10974 cygwin* | mingw* | pw32* | cegcc*)
10975   version_type=windows
10976   shrext_cmds=.dll
10977   need_version=no
10978   need_lib_prefix=no
10979
10980   case $GCC,$cc_basename in
10981   yes,*)
10982     # gcc
10983     library_names_spec='$libname.dll.a'
10984     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10985     postinstall_cmds='base_file=`basename \$file`~
10986       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10987       dldir=$destdir/`dirname \$dlpath`~
10988       test -d \$dldir || mkdir -p \$dldir~
10989       $install_prog $dir/$dlname \$dldir/$dlname~
10990       chmod a+x \$dldir/$dlname~
10991       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10992         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10993       fi'
10994     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10995       dlpath=$dir/\$dldll~
10996        $RM \$dlpath'
10997     shlibpath_overrides_runpath=yes
10998
10999     case $host_os in
11000     cygwin*)
11001       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11002       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11003
11004       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11005       ;;
11006     mingw* | cegcc*)
11007       # MinGW DLLs use traditional 'lib' prefix
11008       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11009       ;;
11010     pw32*)
11011       # pw32 DLLs use 'pw' prefix rather than 'lib'
11012       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11013       ;;
11014     esac
11015     dynamic_linker='Win32 ld.exe'
11016     ;;
11017
11018   *,cl*)
11019     # Native MSVC
11020     libname_spec='$name'
11021     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11022     library_names_spec='$libname.dll.lib'
11023
11024     case $build_os in
11025     mingw*)
11026       sys_lib_search_path_spec=
11027       lt_save_ifs=$IFS
11028       IFS=';'
11029       for lt_path in $LIB
11030       do
11031         IFS=$lt_save_ifs
11032         # Let DOS variable expansion print the short 8.3 style file name.
11033         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11034         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11035       done
11036       IFS=$lt_save_ifs
11037       # Convert to MSYS style.
11038       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11039       ;;
11040     cygwin*)
11041       # Convert to unix form, then to dos form, then back to unix form
11042       # but this time dos style (no spaces!) so that the unix form looks
11043       # like /cygdrive/c/PROGRA~1:/cygdr...
11044       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11045       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11046       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11047       ;;
11048     *)
11049       sys_lib_search_path_spec=$LIB
11050       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11051         # It is most probably a Windows format PATH.
11052         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11053       else
11054         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11055       fi
11056       # FIXME: find the short name or the path components, as spaces are
11057       # common. (e.g. "Program Files" -> "PROGRA~1")
11058       ;;
11059     esac
11060
11061     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11062     postinstall_cmds='base_file=`basename \$file`~
11063       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11064       dldir=$destdir/`dirname \$dlpath`~
11065       test -d \$dldir || mkdir -p \$dldir~
11066       $install_prog $dir/$dlname \$dldir/$dlname'
11067     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11068       dlpath=$dir/\$dldll~
11069        $RM \$dlpath'
11070     shlibpath_overrides_runpath=yes
11071     dynamic_linker='Win32 link.exe'
11072     ;;
11073
11074   *)
11075     # Assume MSVC wrapper
11076     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11077     dynamic_linker='Win32 ld.exe'
11078     ;;
11079   esac
11080   # FIXME: first we should search . and the directory the executable is in
11081   shlibpath_var=PATH
11082   ;;
11083
11084 darwin* | rhapsody*)
11085   dynamic_linker="$host_os dyld"
11086   version_type=darwin
11087   need_lib_prefix=no
11088   need_version=no
11089   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11090   soname_spec='$libname$release$major$shared_ext'
11091   shlibpath_overrides_runpath=yes
11092   shlibpath_var=DYLD_LIBRARY_PATH
11093   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11094
11095   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11096   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11097   ;;
11098
11099 dgux*)
11100   version_type=linux # correct to gnu/linux during the next big refactor
11101   need_lib_prefix=no
11102   need_version=no
11103   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11104   soname_spec='$libname$release$shared_ext$major'
11105   shlibpath_var=LD_LIBRARY_PATH
11106   ;;
11107
11108 freebsd* | dragonfly*)
11109   # DragonFly does not have aout.  When/if they implement a new
11110   # versioning mechanism, adjust this.
11111   if test -x /usr/bin/objformat; then
11112     objformat=`/usr/bin/objformat`
11113   else
11114     case $host_os in
11115     freebsd[23].*) objformat=aout ;;
11116     *) objformat=elf ;;
11117     esac
11118   fi
11119   version_type=freebsd-$objformat
11120   case $version_type in
11121     freebsd-elf*)
11122       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123       soname_spec='$libname$release$shared_ext$major'
11124       need_version=no
11125       need_lib_prefix=no
11126       ;;
11127     freebsd-*)
11128       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11129       need_version=yes
11130       ;;
11131   esac
11132   shlibpath_var=LD_LIBRARY_PATH
11133   case $host_os in
11134   freebsd2.*)
11135     shlibpath_overrides_runpath=yes
11136     ;;
11137   freebsd3.[01]* | freebsdelf3.[01]*)
11138     shlibpath_overrides_runpath=yes
11139     hardcode_into_libs=yes
11140     ;;
11141   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11142   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11143     shlibpath_overrides_runpath=no
11144     hardcode_into_libs=yes
11145     ;;
11146   *) # from 4.6 on, and DragonFly
11147     shlibpath_overrides_runpath=yes
11148     hardcode_into_libs=yes
11149     ;;
11150   esac
11151   ;;
11152
11153 haiku*)
11154   version_type=linux # correct to gnu/linux during the next big refactor
11155   need_lib_prefix=no
11156   need_version=no
11157   dynamic_linker="$host_os runtime_loader"
11158   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11159   soname_spec='$libname$release$shared_ext$major'
11160   shlibpath_var=LIBRARY_PATH
11161   shlibpath_overrides_runpath=no
11162   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11163   hardcode_into_libs=yes
11164   ;;
11165
11166 hpux9* | hpux10* | hpux11*)
11167   # Give a soname corresponding to the major version so that dld.sl refuses to
11168   # link against other versions.
11169   version_type=sunos
11170   need_lib_prefix=no
11171   need_version=no
11172   case $host_cpu in
11173   ia64*)
11174     shrext_cmds='.so'
11175     hardcode_into_libs=yes
11176     dynamic_linker="$host_os dld.so"
11177     shlibpath_var=LD_LIBRARY_PATH
11178     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11179     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11180     soname_spec='$libname$release$shared_ext$major'
11181     if test 32 = "$HPUX_IA64_MODE"; then
11182       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11183       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11184     else
11185       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11186       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11187     fi
11188     ;;
11189   hppa*64*)
11190     shrext_cmds='.sl'
11191     hardcode_into_libs=yes
11192     dynamic_linker="$host_os dld.sl"
11193     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11194     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11195     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11196     soname_spec='$libname$release$shared_ext$major'
11197     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11198     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11199     ;;
11200   *)
11201     shrext_cmds='.sl'
11202     dynamic_linker="$host_os dld.sl"
11203     shlibpath_var=SHLIB_PATH
11204     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11205     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206     soname_spec='$libname$release$shared_ext$major'
11207     ;;
11208   esac
11209   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11210   postinstall_cmds='chmod 555 $lib'
11211   # or fails outright, so override atomically:
11212   install_override_mode=555
11213   ;;
11214
11215 interix[3-9]*)
11216   version_type=linux # correct to gnu/linux during the next big refactor
11217   need_lib_prefix=no
11218   need_version=no
11219   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220   soname_spec='$libname$release$shared_ext$major'
11221   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11222   shlibpath_var=LD_LIBRARY_PATH
11223   shlibpath_overrides_runpath=no
11224   hardcode_into_libs=yes
11225   ;;
11226
11227 irix5* | irix6* | nonstopux*)
11228   case $host_os in
11229     nonstopux*) version_type=nonstopux ;;
11230     *)
11231         if test yes = "$lt_cv_prog_gnu_ld"; then
11232                 version_type=linux # correct to gnu/linux during the next big refactor
11233         else
11234                 version_type=irix
11235         fi ;;
11236   esac
11237   need_lib_prefix=no
11238   need_version=no
11239   soname_spec='$libname$release$shared_ext$major'
11240   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11241   case $host_os in
11242   irix5* | nonstopux*)
11243     libsuff= shlibsuff=
11244     ;;
11245   *)
11246     case $LD in # libtool.m4 will add one of these switches to LD
11247     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11248       libsuff= shlibsuff= libmagic=32-bit;;
11249     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11250       libsuff=32 shlibsuff=N32 libmagic=N32;;
11251     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11252       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11253     *) libsuff= shlibsuff= libmagic=never-match;;
11254     esac
11255     ;;
11256   esac
11257   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11258   shlibpath_overrides_runpath=no
11259   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11260   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11261   hardcode_into_libs=yes
11262   ;;
11263
11264 # No shared lib support for Linux oldld, aout, or coff.
11265 linux*oldld* | linux*aout* | linux*coff*)
11266   dynamic_linker=no
11267   ;;
11268
11269 linux*android*)
11270   version_type=none # Android doesn't support versioned libraries.
11271   need_lib_prefix=no
11272   need_version=no
11273   library_names_spec='$libname$release$shared_ext'
11274   soname_spec='$libname$release$shared_ext'
11275   finish_cmds=
11276   shlibpath_var=LD_LIBRARY_PATH
11277   shlibpath_overrides_runpath=yes
11278
11279   # This implies no fast_install, which is unacceptable.
11280   # Some rework will be needed to allow for fast_install
11281   # before this can be enabled.
11282   hardcode_into_libs=yes
11283
11284   dynamic_linker='Android linker'
11285   # Don't embed -rpath directories since the linker doesn't support them.
11286   hardcode_libdir_flag_spec='-L$libdir'
11287   ;;
11288
11289 # This must be glibc/ELF.
11290 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11291   version_type=linux # correct to gnu/linux during the next big refactor
11292   need_lib_prefix=no
11293   need_version=no
11294   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11295   soname_spec='$libname$release$shared_ext$major'
11296   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11297   shlibpath_var=LD_LIBRARY_PATH
11298   shlibpath_overrides_runpath=no
11299
11300   # Some binutils ld are patched to set DT_RUNPATH
11301   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11302   $as_echo_n "(cached) " >&6
11303 else
11304   lt_cv_shlibpath_overrides_runpath=no
11305     save_LDFLAGS=$LDFLAGS
11306     save_libdir=$libdir
11307     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11308          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h.  */
11311
11312 int
11313 main ()
11314 {
11315
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11322   lt_cv_shlibpath_overrides_runpath=yes
11323 fi
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326     conftest$ac_exeext conftest.$ac_ext
11327     LDFLAGS=$save_LDFLAGS
11328     libdir=$save_libdir
11329
11330 fi
11331
11332   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11333
11334   # This implies no fast_install, which is unacceptable.
11335   # Some rework will be needed to allow for fast_install
11336   # before this can be enabled.
11337   hardcode_into_libs=yes
11338
11339   # Ideally, we could use ldconfig to report *all* directores which are
11340   # searched for libraries, however this is still not possible.  Aside from not
11341   # being certain /sbin/ldconfig is available, command
11342   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11343   # even though it is searched at run-time.  Try to do the best guess by
11344   # appending ld.so.conf contents (and includes) to the search path.
11345   if test -f /etc/ld.so.conf; then
11346     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' ' '`
11347     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11348   fi
11349
11350   # We used to test for /lib/ld.so.1 and disable shared libraries on
11351   # powerpc, because MkLinux only supported shared libraries with the
11352   # GNU dynamic linker.  Since this was broken with cross compilers,
11353   # most powerpc-linux boxes support dynamic linking these days and
11354   # people can always --disable-shared, the test was removed, and we
11355   # assume the GNU/Linux dynamic linker is in use.
11356   dynamic_linker='GNU/Linux ld.so'
11357   ;;
11358
11359 netbsdelf*-gnu)
11360   version_type=linux
11361   need_lib_prefix=no
11362   need_version=no
11363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11364   soname_spec='${libname}${release}${shared_ext}$major'
11365   shlibpath_var=LD_LIBRARY_PATH
11366   shlibpath_overrides_runpath=no
11367   hardcode_into_libs=yes
11368   dynamic_linker='NetBSD ld.elf_so'
11369   ;;
11370
11371 netbsd*)
11372   version_type=sunos
11373   need_lib_prefix=no
11374   need_version=no
11375   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11376     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11377     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11378     dynamic_linker='NetBSD (a.out) ld.so'
11379   else
11380     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381     soname_spec='$libname$release$shared_ext$major'
11382     dynamic_linker='NetBSD ld.elf_so'
11383   fi
11384   shlibpath_var=LD_LIBRARY_PATH
11385   shlibpath_overrides_runpath=yes
11386   hardcode_into_libs=yes
11387   ;;
11388
11389 newsos6)
11390   version_type=linux # correct to gnu/linux during the next big refactor
11391   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11392   shlibpath_var=LD_LIBRARY_PATH
11393   shlibpath_overrides_runpath=yes
11394   ;;
11395
11396 *nto* | *qnx*)
11397   version_type=qnx
11398   need_lib_prefix=no
11399   need_version=no
11400   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11401   soname_spec='$libname$release$shared_ext$major'
11402   shlibpath_var=LD_LIBRARY_PATH
11403   shlibpath_overrides_runpath=no
11404   hardcode_into_libs=yes
11405   dynamic_linker='ldqnx.so'
11406   ;;
11407
11408 openbsd* | bitrig*)
11409   version_type=sunos
11410   sys_lib_dlsearch_path_spec=/usr/lib
11411   need_lib_prefix=no
11412   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11413     need_version=no
11414   else
11415     need_version=yes
11416   fi
11417   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11418   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11419   shlibpath_var=LD_LIBRARY_PATH
11420   shlibpath_overrides_runpath=yes
11421   ;;
11422
11423 os2*)
11424   libname_spec='$name'
11425   version_type=windows
11426   shrext_cmds=.dll
11427   need_version=no
11428   need_lib_prefix=no
11429   # OS/2 can only load a DLL with a base name of 8 characters or less.
11430   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11431     v=$($ECHO $release$versuffix | tr -d .-);
11432     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11433     $ECHO $n$v`$shared_ext'
11434   library_names_spec='${libname}_dll.$libext'
11435   dynamic_linker='OS/2 ld.exe'
11436   shlibpath_var=BEGINLIBPATH
11437   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11438   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11439   postinstall_cmds='base_file=`basename \$file`~
11440     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11441     dldir=$destdir/`dirname \$dlpath`~
11442     test -d \$dldir || mkdir -p \$dldir~
11443     $install_prog $dir/$dlname \$dldir/$dlname~
11444     chmod a+x \$dldir/$dlname~
11445     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11446       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11447     fi'
11448   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11449     dlpath=$dir/\$dldll~
11450     $RM \$dlpath'
11451   ;;
11452
11453 osf3* | osf4* | osf5*)
11454   version_type=osf
11455   need_lib_prefix=no
11456   need_version=no
11457   soname_spec='$libname$release$shared_ext$major'
11458   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11459   shlibpath_var=LD_LIBRARY_PATH
11460   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11461   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11462   ;;
11463
11464 rdos*)
11465   dynamic_linker=no
11466   ;;
11467
11468 solaris*)
11469   version_type=linux # correct to gnu/linux during the next big refactor
11470   need_lib_prefix=no
11471   need_version=no
11472   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11473   soname_spec='$libname$release$shared_ext$major'
11474   shlibpath_var=LD_LIBRARY_PATH
11475   shlibpath_overrides_runpath=yes
11476   hardcode_into_libs=yes
11477   # ldd complains unless libraries are executable
11478   postinstall_cmds='chmod +x $lib'
11479   ;;
11480
11481 sunos4*)
11482   version_type=sunos
11483   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11484   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11485   shlibpath_var=LD_LIBRARY_PATH
11486   shlibpath_overrides_runpath=yes
11487   if test yes = "$with_gnu_ld"; then
11488     need_lib_prefix=no
11489   fi
11490   need_version=yes
11491   ;;
11492
11493 sysv4 | sysv4.3*)
11494   version_type=linux # correct to gnu/linux during the next big refactor
11495   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11496   soname_spec='$libname$release$shared_ext$major'
11497   shlibpath_var=LD_LIBRARY_PATH
11498   case $host_vendor in
11499     sni)
11500       shlibpath_overrides_runpath=no
11501       need_lib_prefix=no
11502       runpath_var=LD_RUN_PATH
11503       ;;
11504     siemens)
11505       need_lib_prefix=no
11506       ;;
11507     motorola)
11508       need_lib_prefix=no
11509       need_version=no
11510       shlibpath_overrides_runpath=no
11511       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11512       ;;
11513   esac
11514   ;;
11515
11516 sysv4*MP*)
11517   if test -d /usr/nec; then
11518     version_type=linux # correct to gnu/linux during the next big refactor
11519     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11520     soname_spec='$libname$shared_ext.$major'
11521     shlibpath_var=LD_LIBRARY_PATH
11522   fi
11523   ;;
11524
11525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11526   version_type=sco
11527   need_lib_prefix=no
11528   need_version=no
11529   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11530   soname_spec='$libname$release$shared_ext$major'
11531   shlibpath_var=LD_LIBRARY_PATH
11532   shlibpath_overrides_runpath=yes
11533   hardcode_into_libs=yes
11534   if test yes = "$with_gnu_ld"; then
11535     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11536   else
11537     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11538     case $host_os in
11539       sco3.2v5*)
11540         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11541         ;;
11542     esac
11543   fi
11544   sys_lib_dlsearch_path_spec='/usr/lib'
11545   ;;
11546
11547 tpf*)
11548   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11549   version_type=linux # correct to gnu/linux during the next big refactor
11550   need_lib_prefix=no
11551   need_version=no
11552   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553   shlibpath_var=LD_LIBRARY_PATH
11554   shlibpath_overrides_runpath=no
11555   hardcode_into_libs=yes
11556   ;;
11557
11558 uts4*)
11559   version_type=linux # correct to gnu/linux during the next big refactor
11560   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11561   soname_spec='$libname$release$shared_ext$major'
11562   shlibpath_var=LD_LIBRARY_PATH
11563   ;;
11564
11565 *)
11566   dynamic_linker=no
11567   ;;
11568 esac
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11570 $as_echo "$dynamic_linker" >&6; }
11571 test no = "$dynamic_linker" && can_build_shared=no
11572
11573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11574 if test yes = "$GCC"; then
11575   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11576 fi
11577
11578 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11579   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11580 fi
11581
11582 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11583   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11584 fi
11585
11586 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11587 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11588
11589 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11590 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11591
11592 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11593 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11692 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11693 hardcode_action=
11694 if test -n "$hardcode_libdir_flag_spec" ||
11695    test -n "$runpath_var" ||
11696    test yes = "$hardcode_automatic"; then
11697
11698   # We can hardcode non-existent directories.
11699   if test no != "$hardcode_direct" &&
11700      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11701      # have to relink, otherwise we might link with an installed library
11702      # when we should be linking with a yet-to-be-installed one
11703      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11704      test no != "$hardcode_minus_L"; then
11705     # Linking always hardcodes the temporary library directory.
11706     hardcode_action=relink
11707   else
11708     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11709     hardcode_action=immediate
11710   fi
11711 else
11712   # We cannot hardcode anything, or else we can only hardcode existing
11713   # directories.
11714   hardcode_action=unsupported
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11717 $as_echo "$hardcode_action" >&6; }
11718
11719 if test relink = "$hardcode_action" ||
11720    test yes = "$inherit_rpath"; then
11721   # Fast installation is not supported
11722   enable_fast_install=no
11723 elif test yes = "$shlibpath_overrides_runpath" ||
11724      test no = "$enable_shared"; then
11725   # Fast installation is not necessary
11726   enable_fast_install=needless
11727 fi
11728
11729
11730
11731
11732
11733
11734   if test yes != "$enable_dlopen"; then
11735   enable_dlopen=unknown
11736   enable_dlopen_self=unknown
11737   enable_dlopen_self_static=unknown
11738 else
11739   lt_cv_dlopen=no
11740   lt_cv_dlopen_libs=
11741
11742   case $host_os in
11743   beos*)
11744     lt_cv_dlopen=load_add_on
11745     lt_cv_dlopen_libs=
11746     lt_cv_dlopen_self=yes
11747     ;;
11748
11749   mingw* | pw32* | cegcc*)
11750     lt_cv_dlopen=LoadLibrary
11751     lt_cv_dlopen_libs=
11752     ;;
11753
11754   cygwin*)
11755     lt_cv_dlopen=dlopen
11756     lt_cv_dlopen_libs=
11757     ;;
11758
11759   darwin*)
11760     # if libdl is installed we need to link against it
11761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11762 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11763 if ${ac_cv_lib_dl_dlopen+:} false; then :
11764   $as_echo_n "(cached) " >&6
11765 else
11766   ac_check_lib_save_LIBS=$LIBS
11767 LIBS="-ldl  $LIBS"
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h.  */
11770
11771 /* Override any GCC internal prototype to avoid an error.
11772    Use char because int might match the return type of a GCC
11773    builtin and then its argument prototype would still apply.  */
11774 #ifdef __cplusplus
11775 extern "C"
11776 #endif
11777 char dlopen ();
11778 int
11779 main ()
11780 {
11781 return dlopen ();
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 if ac_fn_c_try_link "$LINENO"; then :
11787   ac_cv_lib_dl_dlopen=yes
11788 else
11789   ac_cv_lib_dl_dlopen=no
11790 fi
11791 rm -f core conftest.err conftest.$ac_objext \
11792     conftest$ac_exeext conftest.$ac_ext
11793 LIBS=$ac_check_lib_save_LIBS
11794 fi
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11796 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11797 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11798   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11799 else
11800
11801     lt_cv_dlopen=dyld
11802     lt_cv_dlopen_libs=
11803     lt_cv_dlopen_self=yes
11804
11805 fi
11806
11807     ;;
11808
11809   tpf*)
11810     # Don't try to run any link tests for TPF.  We know it's impossible
11811     # because TPF is a cross-compiler, and we know how we open DSOs.
11812     lt_cv_dlopen=dlopen
11813     lt_cv_dlopen_libs=
11814     lt_cv_dlopen_self=no
11815     ;;
11816
11817   *)
11818     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11819 if test "x$ac_cv_func_shl_load" = xyes; then :
11820   lt_cv_dlopen=shl_load
11821 else
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11823 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11824 if ${ac_cv_lib_dld_shl_load+:} false; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827   ac_check_lib_save_LIBS=$LIBS
11828 LIBS="-ldld  $LIBS"
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h.  */
11831
11832 /* Override any GCC internal prototype to avoid an error.
11833    Use char because int might match the return type of a GCC
11834    builtin and then its argument prototype would still apply.  */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 char shl_load ();
11839 int
11840 main ()
11841 {
11842 return shl_load ();
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 if ac_fn_c_try_link "$LINENO"; then :
11848   ac_cv_lib_dld_shl_load=yes
11849 else
11850   ac_cv_lib_dld_shl_load=no
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext \
11853     conftest$ac_exeext conftest.$ac_ext
11854 LIBS=$ac_check_lib_save_LIBS
11855 fi
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11857 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11858 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11859   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11860 else
11861   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11862 if test "x$ac_cv_func_dlopen" = xyes; then :
11863   lt_cv_dlopen=dlopen
11864 else
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11866 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11867 if ${ac_cv_lib_dl_dlopen+:} false; then :
11868   $as_echo_n "(cached) " >&6
11869 else
11870   ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-ldl  $LIBS"
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h.  */
11874
11875 /* Override any GCC internal prototype to avoid an error.
11876    Use char because int might match the return type of a GCC
11877    builtin and then its argument prototype would still apply.  */
11878 #ifdef __cplusplus
11879 extern "C"
11880 #endif
11881 char dlopen ();
11882 int
11883 main ()
11884 {
11885 return dlopen ();
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_c_try_link "$LINENO"; then :
11891   ac_cv_lib_dl_dlopen=yes
11892 else
11893   ac_cv_lib_dl_dlopen=no
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext \
11896     conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11900 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11901 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11902   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11903 else
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11905 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11906 if ${ac_cv_lib_svld_dlopen+:} false; then :
11907   $as_echo_n "(cached) " >&6
11908 else
11909   ac_check_lib_save_LIBS=$LIBS
11910 LIBS="-lsvld  $LIBS"
11911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h.  */
11913
11914 /* Override any GCC internal prototype to avoid an error.
11915    Use char because int might match the return type of a GCC
11916    builtin and then its argument prototype would still apply.  */
11917 #ifdef __cplusplus
11918 extern "C"
11919 #endif
11920 char dlopen ();
11921 int
11922 main ()
11923 {
11924 return dlopen ();
11925   ;
11926   return 0;
11927 }
11928 _ACEOF
11929 if ac_fn_c_try_link "$LINENO"; then :
11930   ac_cv_lib_svld_dlopen=yes
11931 else
11932   ac_cv_lib_svld_dlopen=no
11933 fi
11934 rm -f core conftest.err conftest.$ac_objext \
11935     conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11937 fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11939 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11940 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11941   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11942 else
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11944 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11945 if ${ac_cv_lib_dld_dld_link+:} false; then :
11946   $as_echo_n "(cached) " >&6
11947 else
11948   ac_check_lib_save_LIBS=$LIBS
11949 LIBS="-ldld  $LIBS"
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h.  */
11952
11953 /* Override any GCC internal prototype to avoid an error.
11954    Use char because int might match the return type of a GCC
11955    builtin and then its argument prototype would still apply.  */
11956 #ifdef __cplusplus
11957 extern "C"
11958 #endif
11959 char dld_link ();
11960 int
11961 main ()
11962 {
11963 return dld_link ();
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 if ac_fn_c_try_link "$LINENO"; then :
11969   ac_cv_lib_dld_dld_link=yes
11970 else
11971   ac_cv_lib_dld_dld_link=no
11972 fi
11973 rm -f core conftest.err conftest.$ac_objext \
11974     conftest$ac_exeext conftest.$ac_ext
11975 LIBS=$ac_check_lib_save_LIBS
11976 fi
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11978 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11979 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11980   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11981 fi
11982
11983
11984 fi
11985
11986
11987 fi
11988
11989
11990 fi
11991
11992
11993 fi
11994
11995
11996 fi
11997
11998     ;;
11999   esac
12000
12001   if test no = "$lt_cv_dlopen"; then
12002     enable_dlopen=no
12003   else
12004     enable_dlopen=yes
12005   fi
12006
12007   case $lt_cv_dlopen in
12008   dlopen)
12009     save_CPPFLAGS=$CPPFLAGS
12010     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12011
12012     save_LDFLAGS=$LDFLAGS
12013     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12014
12015     save_LIBS=$LIBS
12016     LIBS="$lt_cv_dlopen_libs $LIBS"
12017
12018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12019 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12020 if ${lt_cv_dlopen_self+:} false; then :
12021   $as_echo_n "(cached) " >&6
12022 else
12023           if test yes = "$cross_compiling"; then :
12024   lt_cv_dlopen_self=cross
12025 else
12026   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12027   lt_status=$lt_dlunknown
12028   cat > conftest.$ac_ext <<_LT_EOF
12029 #line $LINENO "configure"
12030 #include "confdefs.h"
12031
12032 #if HAVE_DLFCN_H
12033 #include <dlfcn.h>
12034 #endif
12035
12036 #include <stdio.h>
12037
12038 #ifdef RTLD_GLOBAL
12039 #  define LT_DLGLOBAL           RTLD_GLOBAL
12040 #else
12041 #  ifdef DL_GLOBAL
12042 #    define LT_DLGLOBAL         DL_GLOBAL
12043 #  else
12044 #    define LT_DLGLOBAL         0
12045 #  endif
12046 #endif
12047
12048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12049    find out it does not work in some platform. */
12050 #ifndef LT_DLLAZY_OR_NOW
12051 #  ifdef RTLD_LAZY
12052 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12053 #  else
12054 #    ifdef DL_LAZY
12055 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12056 #    else
12057 #      ifdef RTLD_NOW
12058 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12059 #      else
12060 #        ifdef DL_NOW
12061 #          define LT_DLLAZY_OR_NOW      DL_NOW
12062 #        else
12063 #          define LT_DLLAZY_OR_NOW      0
12064 #        endif
12065 #      endif
12066 #    endif
12067 #  endif
12068 #endif
12069
12070 /* When -fvisibility=hidden is used, assume the code has been annotated
12071    correspondingly for the symbols needed.  */
12072 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12073 int fnord () __attribute__((visibility("default")));
12074 #endif
12075
12076 int fnord () { return 42; }
12077 int main ()
12078 {
12079   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12080   int status = $lt_dlunknown;
12081
12082   if (self)
12083     {
12084       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12085       else
12086         {
12087           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12088           else puts (dlerror ());
12089         }
12090       /* dlclose (self); */
12091     }
12092   else
12093     puts (dlerror ());
12094
12095   return status;
12096 }
12097 _LT_EOF
12098   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12099   (eval $ac_link) 2>&5
12100   ac_status=$?
12101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12102   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12103     (./conftest; exit; ) >&5 2>/dev/null
12104     lt_status=$?
12105     case x$lt_status in
12106       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12107       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12108       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12109     esac
12110   else :
12111     # compilation failed
12112     lt_cv_dlopen_self=no
12113   fi
12114 fi
12115 rm -fr conftest*
12116
12117
12118 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12120 $as_echo "$lt_cv_dlopen_self" >&6; }
12121
12122     if test yes = "$lt_cv_dlopen_self"; then
12123       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12124       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12125 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12126 if ${lt_cv_dlopen_self_static+:} false; then :
12127   $as_echo_n "(cached) " >&6
12128 else
12129           if test yes = "$cross_compiling"; then :
12130   lt_cv_dlopen_self_static=cross
12131 else
12132   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12133   lt_status=$lt_dlunknown
12134   cat > conftest.$ac_ext <<_LT_EOF
12135 #line $LINENO "configure"
12136 #include "confdefs.h"
12137
12138 #if HAVE_DLFCN_H
12139 #include <dlfcn.h>
12140 #endif
12141
12142 #include <stdio.h>
12143
12144 #ifdef RTLD_GLOBAL
12145 #  define LT_DLGLOBAL           RTLD_GLOBAL
12146 #else
12147 #  ifdef DL_GLOBAL
12148 #    define LT_DLGLOBAL         DL_GLOBAL
12149 #  else
12150 #    define LT_DLGLOBAL         0
12151 #  endif
12152 #endif
12153
12154 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12155    find out it does not work in some platform. */
12156 #ifndef LT_DLLAZY_OR_NOW
12157 #  ifdef RTLD_LAZY
12158 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12159 #  else
12160 #    ifdef DL_LAZY
12161 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12162 #    else
12163 #      ifdef RTLD_NOW
12164 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12165 #      else
12166 #        ifdef DL_NOW
12167 #          define LT_DLLAZY_OR_NOW      DL_NOW
12168 #        else
12169 #          define LT_DLLAZY_OR_NOW      0
12170 #        endif
12171 #      endif
12172 #    endif
12173 #  endif
12174 #endif
12175
12176 /* When -fvisibility=hidden is used, assume the code has been annotated
12177    correspondingly for the symbols needed.  */
12178 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12179 int fnord () __attribute__((visibility("default")));
12180 #endif
12181
12182 int fnord () { return 42; }
12183 int main ()
12184 {
12185   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12186   int status = $lt_dlunknown;
12187
12188   if (self)
12189     {
12190       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12191       else
12192         {
12193           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12194           else puts (dlerror ());
12195         }
12196       /* dlclose (self); */
12197     }
12198   else
12199     puts (dlerror ());
12200
12201   return status;
12202 }
12203 _LT_EOF
12204   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12205   (eval $ac_link) 2>&5
12206   ac_status=$?
12207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12208   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12209     (./conftest; exit; ) >&5 2>/dev/null
12210     lt_status=$?
12211     case x$lt_status in
12212       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12213       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12214       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12215     esac
12216   else :
12217     # compilation failed
12218     lt_cv_dlopen_self_static=no
12219   fi
12220 fi
12221 rm -fr conftest*
12222
12223
12224 fi
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12226 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12227     fi
12228
12229     CPPFLAGS=$save_CPPFLAGS
12230     LDFLAGS=$save_LDFLAGS
12231     LIBS=$save_LIBS
12232     ;;
12233   esac
12234
12235   case $lt_cv_dlopen_self in
12236   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12237   *) enable_dlopen_self=unknown ;;
12238   esac
12239
12240   case $lt_cv_dlopen_self_static in
12241   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12242   *) enable_dlopen_self_static=unknown ;;
12243   esac
12244 fi
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262 striplib=
12263 old_striplib=
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12265 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12266 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12267   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12268   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12270 $as_echo "yes" >&6; }
12271 else
12272 # FIXME - insert some real tests, host_os isn't really good enough
12273   case $host_os in
12274   darwin*)
12275     if test -n "$STRIP"; then
12276       striplib="$STRIP -x"
12277       old_striplib="$STRIP -S"
12278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12279 $as_echo "yes" >&6; }
12280     else
12281       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12283     fi
12284     ;;
12285   *)
12286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12288     ;;
12289   esac
12290 fi
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303   # Report what library types will actually be built
12304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12305 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12307 $as_echo "$can_build_shared" >&6; }
12308
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12310 $as_echo_n "checking whether to build shared libraries... " >&6; }
12311   test no = "$can_build_shared" && enable_shared=no
12312
12313   # On AIX, shared libraries and static libraries use the same namespace, and
12314   # are all built from PIC.
12315   case $host_os in
12316   aix3*)
12317     test yes = "$enable_shared" && enable_static=no
12318     if test -n "$RANLIB"; then
12319       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12320       postinstall_cmds='$RANLIB $lib'
12321     fi
12322     ;;
12323
12324   aix[4-9]*)
12325     if test ia64 != "$host_cpu"; then
12326       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12327       yes,aix,yes) ;;                   # shared object as lib.so file only
12328       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12329       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12330       esac
12331     fi
12332     ;;
12333   esac
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12335 $as_echo "$enable_shared" >&6; }
12336
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12338 $as_echo_n "checking whether to build static libraries... " >&6; }
12339   # Make sure either enable_shared or enable_static is yes.
12340   test yes = "$enable_shared" || enable_static=yes
12341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12342 $as_echo "$enable_static" >&6; }
12343
12344
12345
12346
12347 fi
12348 ac_ext=c
12349 ac_cpp='$CPP $CPPFLAGS'
12350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12353
12354 CC=$lt_save_CC
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370         ac_config_commands="$ac_config_commands libtool"
12371
12372
12373
12374
12375 # Only expand once:
12376
12377
12378
12379 lt_version=6:0:5
12380
12381
12382
12383 ### Needed information
12384
12385 have_win32=no
12386 have_darwin="no"
12387 case "$host_os" in
12388    mingw*)
12389       have_win32="yes"
12390       ;;
12391    darwin*)
12392       have_darwin="yes"
12393       ;;
12394 esac
12395
12396  if test "x${have_win32}" = "xyes"; then
12397   HAVE_WIN32_TRUE=
12398   HAVE_WIN32_FALSE='#'
12399 else
12400   HAVE_WIN32_TRUE='#'
12401   HAVE_WIN32_FALSE=
12402 fi
12403
12404  if test "x${have_darwin}" = "xyes"; then
12405   HAVE_DARWIN_TRUE=
12406   HAVE_DARWIN_FALSE='#'
12407 else
12408   HAVE_DARWIN_TRUE='#'
12409   HAVE_DARWIN_FALSE=
12410 fi
12411
12412
12413
12414 ### Additional options to configure
12415
12416 # debug
12417
12418 # Check whether --enable-debug was given.
12419 if test "${enable_debug+set}" = set; then :
12420   enableval=$enable_debug;
12421     if test "x${enableval}" = "xyes" ; then
12422        want_debug="yes"
12423     else
12424        want_debug="no"
12425     fi
12426
12427 else
12428   want_debug="no"
12429 fi
12430
12431
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build in debug mode" >&5
12433 $as_echo_n "checking whether to build in debug mode... " >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_debug}" >&5
12435 $as_echo "${want_debug}" >&6; }
12436
12437 # MJ2
12438
12439 # Check whether --enable-mj2 was given.
12440 if test "${enable_mj2+set}" = set; then :
12441   enableval=$enable_mj2;
12442     if test "x${enableval}" = "xyes" ; then
12443        want_mj2="yes"
12444     else
12445        want_mj2="no"
12446     fi
12447
12448 else
12449   want_mj2="no"
12450 fi
12451
12452
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the MJ2 binaries" >&5
12454 $as_echo_n "checking whether to build the MJ2 binaries... " >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_mj2}" >&5
12456 $as_echo "${want_mj2}" >&6; }
12457
12458 if test "x${want_mj2}" = "xyes" ; then
12459
12460 $as_echo "#define USE_MJ2 1" >>confdefs.h
12461
12462 fi
12463
12464  if test "x${want_mj2}" = "xyes"; then
12465   WANT_MJ2_TRUE=
12466   WANT_MJ2_FALSE='#'
12467 else
12468   WANT_MJ2_TRUE='#'
12469   WANT_MJ2_FALSE=
12470 fi
12471
12472
12473 # JPWL
12474
12475 # Check whether --enable-jpwl was given.
12476 if test "${enable_jpwl+set}" = set; then :
12477   enableval=$enable_jpwl;
12478     if test "x${enableval}" = "xyes" ; then
12479        want_jpwl="yes"
12480     else
12481        want_jpwl="no"
12482     fi
12483
12484 else
12485   want_jpwl="no"
12486 fi
12487
12488
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPWL library" >&5
12490 $as_echo_n "checking whether to build the JPWL library... " >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpwl}" >&5
12492 $as_echo "${want_jpwl}" >&6; }
12493
12494  if test "x${want_jpwl}" = "xyes"; then
12495   WANT_JPWL_TRUE=
12496   WANT_JPWL_FALSE='#'
12497 else
12498   WANT_JPWL_TRUE='#'
12499   WANT_JPWL_FALSE=
12500 fi
12501
12502
12503 # JPIP
12504
12505 # Check whether --enable-jpip was given.
12506 if test "${enable_jpip+set}" = set; then :
12507   enableval=$enable_jpip;
12508     if test "x${enableval}" = "xyes" ; then
12509        want_jpip="yes"
12510     else
12511        want_jpip="no"
12512     fi
12513
12514 else
12515   want_jpip="no"
12516 fi
12517
12518
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPIP library" >&5
12520 $as_echo_n "checking whether to build the JPIP library... " >&6; }
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpip}" >&5
12522 $as_echo "${want_jpip}" >&6; }
12523
12524 # Check whether --enable-jpip-server was given.
12525 if test "${enable_jpip_server+set}" = set; then :
12526   enableval=$enable_jpip_server;
12527     if test "x${enableval}" = "xyes" ; then
12528        want_jpip_server="yes"
12529     else
12530        want_jpip_server="no"
12531     fi
12532
12533 else
12534   want_jpip_server="no"
12535 fi
12536
12537
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPIP server" >&5
12539 $as_echo_n "checking whether to build the JPIP server... " >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpip_server}" >&5
12541 $as_echo "${want_jpip_server}" >&6; }
12542
12543
12544 ### Checks for programs
12545
12546 ac_ext=c
12547 ac_cpp='$CPP $CPPFLAGS'
12548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12551 if test -n "$ac_tool_prefix"; then
12552   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12553 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if ${ac_cv_prog_CC+:} false; then :
12557   $as_echo_n "(cached) " >&6
12558 else
12559   if test -n "$CC"; then
12560   ac_cv_prog_CC="$CC" # Let the user override the test.
12561 else
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12564 do
12565   IFS=$as_save_IFS
12566   test -z "$as_dir" && as_dir=.
12567     for ac_exec_ext in '' $ac_executable_extensions; do
12568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571     break 2
12572   fi
12573 done
12574   done
12575 IFS=$as_save_IFS
12576
12577 fi
12578 fi
12579 CC=$ac_cv_prog_CC
12580 if test -n "$CC"; then
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12582 $as_echo "$CC" >&6; }
12583 else
12584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12586 fi
12587
12588
12589 fi
12590 if test -z "$ac_cv_prog_CC"; then
12591   ac_ct_CC=$CC
12592   # Extract the first word of "gcc", so it can be a program name with args.
12593 set dummy gcc; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12597   $as_echo_n "(cached) " >&6
12598 else
12599   if test -n "$ac_ct_CC"; then
12600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12601 else
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12604 do
12605   IFS=$as_save_IFS
12606   test -z "$as_dir" && as_dir=.
12607     for ac_exec_ext in '' $ac_executable_extensions; do
12608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609     ac_cv_prog_ac_ct_CC="gcc"
12610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611     break 2
12612   fi
12613 done
12614   done
12615 IFS=$as_save_IFS
12616
12617 fi
12618 fi
12619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12620 if test -n "$ac_ct_CC"; then
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12622 $as_echo "$ac_ct_CC" >&6; }
12623 else
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626 fi
12627
12628   if test "x$ac_ct_CC" = x; then
12629     CC=""
12630   else
12631     case $cross_compiling:$ac_tool_warned in
12632 yes:)
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12635 ac_tool_warned=yes ;;
12636 esac
12637     CC=$ac_ct_CC
12638   fi
12639 else
12640   CC="$ac_cv_prog_CC"
12641 fi
12642
12643 if test -z "$CC"; then
12644           if test -n "$ac_tool_prefix"; then
12645     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12646 set dummy ${ac_tool_prefix}cc; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if ${ac_cv_prog_CC+:} false; then :
12650   $as_echo_n "(cached) " >&6
12651 else
12652   if test -n "$CC"; then
12653   ac_cv_prog_CC="$CC" # Let the user override the test.
12654 else
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12657 do
12658   IFS=$as_save_IFS
12659   test -z "$as_dir" && as_dir=.
12660     for ac_exec_ext in '' $ac_executable_extensions; do
12661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662     ac_cv_prog_CC="${ac_tool_prefix}cc"
12663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664     break 2
12665   fi
12666 done
12667   done
12668 IFS=$as_save_IFS
12669
12670 fi
12671 fi
12672 CC=$ac_cv_prog_CC
12673 if test -n "$CC"; then
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12675 $as_echo "$CC" >&6; }
12676 else
12677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12679 fi
12680
12681
12682   fi
12683 fi
12684 if test -z "$CC"; then
12685   # Extract the first word of "cc", so it can be a program name with args.
12686 set dummy cc; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if ${ac_cv_prog_CC+:} false; then :
12690   $as_echo_n "(cached) " >&6
12691 else
12692   if test -n "$CC"; then
12693   ac_cv_prog_CC="$CC" # Let the user override the test.
12694 else
12695   ac_prog_rejected=no
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in $PATH
12698 do
12699   IFS=$as_save_IFS
12700   test -z "$as_dir" && as_dir=.
12701     for ac_exec_ext in '' $ac_executable_extensions; do
12702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12704        ac_prog_rejected=yes
12705        continue
12706      fi
12707     ac_cv_prog_CC="cc"
12708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709     break 2
12710   fi
12711 done
12712   done
12713 IFS=$as_save_IFS
12714
12715 if test $ac_prog_rejected = yes; then
12716   # We found a bogon in the path, so make sure we never use it.
12717   set dummy $ac_cv_prog_CC
12718   shift
12719   if test $# != 0; then
12720     # We chose a different compiler from the bogus one.
12721     # However, it has the same basename, so the bogon will be chosen
12722     # first if we set CC to just the basename; use the full file name.
12723     shift
12724     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12725   fi
12726 fi
12727 fi
12728 fi
12729 CC=$ac_cv_prog_CC
12730 if test -n "$CC"; then
12731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12732 $as_echo "$CC" >&6; }
12733 else
12734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12736 fi
12737
12738
12739 fi
12740 if test -z "$CC"; then
12741   if test -n "$ac_tool_prefix"; then
12742   for ac_prog in cl.exe
12743   do
12744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if ${ac_cv_prog_CC+:} false; then :
12749   $as_echo_n "(cached) " >&6
12750 else
12751   if test -n "$CC"; then
12752   ac_cv_prog_CC="$CC" # Let the user override the test.
12753 else
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12756 do
12757   IFS=$as_save_IFS
12758   test -z "$as_dir" && as_dir=.
12759     for ac_exec_ext in '' $ac_executable_extensions; do
12760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12761     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763     break 2
12764   fi
12765 done
12766   done
12767 IFS=$as_save_IFS
12768
12769 fi
12770 fi
12771 CC=$ac_cv_prog_CC
12772 if test -n "$CC"; then
12773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12774 $as_echo "$CC" >&6; }
12775 else
12776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778 fi
12779
12780
12781     test -n "$CC" && break
12782   done
12783 fi
12784 if test -z "$CC"; then
12785   ac_ct_CC=$CC
12786   for ac_prog in cl.exe
12787 do
12788   # Extract the first word of "$ac_prog", so it can be a program name with args.
12789 set dummy $ac_prog; ac_word=$2
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791 $as_echo_n "checking for $ac_word... " >&6; }
12792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12793   $as_echo_n "(cached) " >&6
12794 else
12795   if test -n "$ac_ct_CC"; then
12796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12797 else
12798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799 for as_dir in $PATH
12800 do
12801   IFS=$as_save_IFS
12802   test -z "$as_dir" && as_dir=.
12803     for ac_exec_ext in '' $ac_executable_extensions; do
12804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12805     ac_cv_prog_ac_ct_CC="$ac_prog"
12806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12807     break 2
12808   fi
12809 done
12810   done
12811 IFS=$as_save_IFS
12812
12813 fi
12814 fi
12815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12816 if test -n "$ac_ct_CC"; then
12817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12818 $as_echo "$ac_ct_CC" >&6; }
12819 else
12820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821 $as_echo "no" >&6; }
12822 fi
12823
12824
12825   test -n "$ac_ct_CC" && break
12826 done
12827
12828   if test "x$ac_ct_CC" = x; then
12829     CC=""
12830   else
12831     case $cross_compiling:$ac_tool_warned in
12832 yes:)
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12835 ac_tool_warned=yes ;;
12836 esac
12837     CC=$ac_ct_CC
12838   fi
12839 fi
12840
12841 fi
12842
12843
12844 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12846 as_fn_error $? "no acceptable C compiler found in \$PATH
12847 See \`config.log' for more details" "$LINENO" 5; }
12848
12849 # Provide some information about the compiler.
12850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12851 set X $ac_compile
12852 ac_compiler=$2
12853 for ac_option in --version -v -V -qversion; do
12854   { { ac_try="$ac_compiler $ac_option >&5"
12855 case "(($ac_try" in
12856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857   *) ac_try_echo=$ac_try;;
12858 esac
12859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12860 $as_echo "$ac_try_echo"; } >&5
12861   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12862   ac_status=$?
12863   if test -s conftest.err; then
12864     sed '10a\
12865 ... rest of stderr output deleted ...
12866          10q' conftest.err >conftest.er1
12867     cat conftest.er1 >&5
12868   fi
12869   rm -f conftest.er1 conftest.err
12870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12871   test $ac_status = 0; }
12872 done
12873
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12876 if ${ac_cv_c_compiler_gnu+:} false; then :
12877   $as_echo_n "(cached) " >&6
12878 else
12879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h.  */
12881
12882 int
12883 main ()
12884 {
12885 #ifndef __GNUC__
12886        choke me
12887 #endif
12888
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 if ac_fn_c_try_compile "$LINENO"; then :
12894   ac_compiler_gnu=yes
12895 else
12896   ac_compiler_gnu=no
12897 fi
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12900
12901 fi
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12904 if test $ac_compiler_gnu = yes; then
12905   GCC=yes
12906 else
12907   GCC=
12908 fi
12909 ac_test_CFLAGS=${CFLAGS+set}
12910 ac_save_CFLAGS=$CFLAGS
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12913 if ${ac_cv_prog_cc_g+:} false; then :
12914   $as_echo_n "(cached) " >&6
12915 else
12916   ac_save_c_werror_flag=$ac_c_werror_flag
12917    ac_c_werror_flag=yes
12918    ac_cv_prog_cc_g=no
12919    CFLAGS="-g"
12920    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h.  */
12922
12923 int
12924 main ()
12925 {
12926
12927   ;
12928   return 0;
12929 }
12930 _ACEOF
12931 if ac_fn_c_try_compile "$LINENO"; then :
12932   ac_cv_prog_cc_g=yes
12933 else
12934   CFLAGS=""
12935       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h.  */
12937
12938 int
12939 main ()
12940 {
12941
12942   ;
12943   return 0;
12944 }
12945 _ACEOF
12946 if ac_fn_c_try_compile "$LINENO"; then :
12947
12948 else
12949   ac_c_werror_flag=$ac_save_c_werror_flag
12950          CFLAGS="-g"
12951          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h.  */
12953
12954 int
12955 main ()
12956 {
12957
12958   ;
12959   return 0;
12960 }
12961 _ACEOF
12962 if ac_fn_c_try_compile "$LINENO"; then :
12963   ac_cv_prog_cc_g=yes
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966 fi
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12968 fi
12969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12970    ac_c_werror_flag=$ac_save_c_werror_flag
12971 fi
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12973 $as_echo "$ac_cv_prog_cc_g" >&6; }
12974 if test "$ac_test_CFLAGS" = set; then
12975   CFLAGS=$ac_save_CFLAGS
12976 elif test $ac_cv_prog_cc_g = yes; then
12977   if test "$GCC" = yes; then
12978     CFLAGS="-g -O2"
12979   else
12980     CFLAGS="-g"
12981   fi
12982 else
12983   if test "$GCC" = yes; then
12984     CFLAGS="-O2"
12985   else
12986     CFLAGS=
12987   fi
12988 fi
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12991 if ${ac_cv_prog_cc_c89+:} false; then :
12992   $as_echo_n "(cached) " >&6
12993 else
12994   ac_cv_prog_cc_c89=no
12995 ac_save_CC=$CC
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h.  */
12998 #include <stdarg.h>
12999 #include <stdio.h>
13000 struct stat;
13001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13002 struct buf { int x; };
13003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13004 static char *e (p, i)
13005      char **p;
13006      int i;
13007 {
13008   return p[i];
13009 }
13010 static char *f (char * (*g) (char **, int), char **p, ...)
13011 {
13012   char *s;
13013   va_list v;
13014   va_start (v,p);
13015   s = g (p, va_arg (v,int));
13016   va_end (v);
13017   return s;
13018 }
13019
13020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13021    function prototypes and stuff, but not '\xHH' hex character constants.
13022    These don't provoke an error unfortunately, instead are silently treated
13023    as 'x'.  The following induces an error, until -std is added to get
13024    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13025    array size at least.  It's necessary to write '\x00'==0 to get something
13026    that's true only with -std.  */
13027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13028
13029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13030    inside strings and character constants.  */
13031 #define FOO(x) 'x'
13032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13033
13034 int test (int i, double x);
13035 struct s1 {int (*f) (int a);};
13036 struct s2 {int (*f) (double a);};
13037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13038 int argc;
13039 char **argv;
13040 int
13041 main ()
13042 {
13043 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13044   ;
13045   return 0;
13046 }
13047 _ACEOF
13048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13049         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13050 do
13051   CC="$ac_save_CC $ac_arg"
13052   if ac_fn_c_try_compile "$LINENO"; then :
13053   ac_cv_prog_cc_c89=$ac_arg
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext
13056   test "x$ac_cv_prog_cc_c89" != "xno" && break
13057 done
13058 rm -f conftest.$ac_ext
13059 CC=$ac_save_CC
13060
13061 fi
13062 # AC_CACHE_VAL
13063 case "x$ac_cv_prog_cc_c89" in
13064   x)
13065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13066 $as_echo "none needed" >&6; } ;;
13067   xno)
13068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13069 $as_echo "unsupported" >&6; } ;;
13070   *)
13071     CC="$CC $ac_cv_prog_cc_c89"
13072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13074 esac
13075 if test "x$ac_cv_prog_cc_c89" != xno; then :
13076
13077 fi
13078
13079 ac_ext=c
13080 ac_cpp='$CPP $CPPFLAGS'
13081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13084
13085 ac_ext=c
13086 ac_cpp='$CPP $CPPFLAGS'
13087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13091 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13092 if ${am_cv_prog_cc_c_o+:} false; then :
13093   $as_echo_n "(cached) " >&6
13094 else
13095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h.  */
13097
13098 int
13099 main ()
13100 {
13101
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106   # Make sure it works both with $CC and with simple cc.
13107   # Following AC_PROG_CC_C_O, we do the test twice because some
13108   # compilers refuse to overwrite an existing .o file with -o,
13109   # though they will create one.
13110   am_cv_prog_cc_c_o=yes
13111   for am_i in 1 2; do
13112     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13113    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13114    ac_status=$?
13115    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116    (exit $ac_status); } \
13117          && test -f conftest2.$ac_objext; then
13118       : OK
13119     else
13120       am_cv_prog_cc_c_o=no
13121       break
13122     fi
13123   done
13124   rm -f core conftest*
13125   unset am_i
13126 fi
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13128 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13129 if test "$am_cv_prog_cc_c_o" != yes; then
13130    # Losing compiler, so override with the script.
13131    # FIXME: It is wrong to rewrite CC.
13132    # But if we don't then we get into trouble of one sort or another.
13133    # A longer-term fix would be to have automake use am__CC in this case,
13134    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13135    CC="$am_aux_dir/compile $CC"
13136 fi
13137 ac_ext=c
13138 ac_cpp='$CPP $CPPFLAGS'
13139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13142
13143
13144 depcc="$CC"   am_compiler_list=
13145
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13147 $as_echo_n "checking dependency style of $depcc... " >&6; }
13148 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13149   $as_echo_n "(cached) " >&6
13150 else
13151   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13152   # We make a subdir and do the tests there.  Otherwise we can end up
13153   # making bogus files that we don't know about and never remove.  For
13154   # instance it was reported that on HP-UX the gcc test will end up
13155   # making a dummy file named 'D' -- because '-MD' means "put the output
13156   # in D".
13157   rm -rf conftest.dir
13158   mkdir conftest.dir
13159   # Copy depcomp to subdir because otherwise we won't find it if we're
13160   # using a relative directory.
13161   cp "$am_depcomp" conftest.dir
13162   cd conftest.dir
13163   # We will build objects and dependencies in a subdirectory because
13164   # it helps to detect inapplicable dependency modes.  For instance
13165   # both Tru64's cc and ICC support -MD to output dependencies as a
13166   # side effect of compilation, but ICC will put the dependencies in
13167   # the current directory while Tru64 will put them in the object
13168   # directory.
13169   mkdir sub
13170
13171   am_cv_CC_dependencies_compiler_type=none
13172   if test "$am_compiler_list" = ""; then
13173      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13174   fi
13175   am__universal=false
13176   case " $depcc " in #(
13177      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13178      esac
13179
13180   for depmode in $am_compiler_list; do
13181     # Setup a source with many dependencies, because some compilers
13182     # like to wrap large dependency lists on column 80 (with \), and
13183     # we should not choose a depcomp mode which is confused by this.
13184     #
13185     # We need to recreate these files for each test, as the compiler may
13186     # overwrite some of them when testing with obscure command lines.
13187     # This happens at least with the AIX C compiler.
13188     : > sub/conftest.c
13189     for i in 1 2 3 4 5 6; do
13190       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13191       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13192       # Solaris 10 /bin/sh.
13193       echo '/* dummy */' > sub/conftst$i.h
13194     done
13195     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13196
13197     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13198     # mode.  It turns out that the SunPro C++ compiler does not properly
13199     # handle '-M -o', and we need to detect this.  Also, some Intel
13200     # versions had trouble with output in subdirs.
13201     am__obj=sub/conftest.${OBJEXT-o}
13202     am__minus_obj="-o $am__obj"
13203     case $depmode in
13204     gcc)
13205       # This depmode causes a compiler race in universal mode.
13206       test "$am__universal" = false || continue
13207       ;;
13208     nosideeffect)
13209       # After this tag, mechanisms are not by side-effect, so they'll
13210       # only be used when explicitly requested.
13211       if test "x$enable_dependency_tracking" = xyes; then
13212         continue
13213       else
13214         break
13215       fi
13216       ;;
13217     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13218       # This compiler won't grok '-c -o', but also, the minuso test has
13219       # not run yet.  These depmodes are late enough in the game, and
13220       # so weak that their functioning should not be impacted.
13221       am__obj=conftest.${OBJEXT-o}
13222       am__minus_obj=
13223       ;;
13224     none) break ;;
13225     esac
13226     if depmode=$depmode \
13227        source=sub/conftest.c object=$am__obj \
13228        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13229        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13230          >/dev/null 2>conftest.err &&
13231        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13232        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13233        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13234        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13235       # icc doesn't choke on unknown options, it will just issue warnings
13236       # or remarks (even with -Werror).  So we grep stderr for any message
13237       # that says an option was ignored or not supported.
13238       # When given -MP, icc 7.0 and 7.1 complain thusly:
13239       #   icc: Command line warning: ignoring option '-M'; no argument required
13240       # The diagnosis changed in icc 8.0:
13241       #   icc: Command line remark: option '-MP' not supported
13242       if (grep 'ignoring option' conftest.err ||
13243           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13244         am_cv_CC_dependencies_compiler_type=$depmode
13245         break
13246       fi
13247     fi
13248   done
13249
13250   cd ..
13251   rm -rf conftest.dir
13252 else
13253   am_cv_CC_dependencies_compiler_type=none
13254 fi
13255
13256 fi
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13258 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13260
13261  if
13262   test "x$enable_dependency_tracking" != xno \
13263   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13264   am__fastdepCC_TRUE=
13265   am__fastdepCC_FALSE='#'
13266 else
13267   am__fastdepCC_TRUE='#'
13268   am__fastdepCC_FALSE=
13269 fi
13270
13271
13272
13273 # pkg-config
13274
13275
13276
13277
13278
13279
13280
13281 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13282         if test -n "$ac_tool_prefix"; then
13283   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13284 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286 $as_echo_n "checking for $ac_word... " >&6; }
13287 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13288   $as_echo_n "(cached) " >&6
13289 else
13290   case $PKG_CONFIG in
13291   [\\/]* | ?:[\\/]*)
13292   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13293   ;;
13294   *)
13295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13297 do
13298   IFS=$as_save_IFS
13299   test -z "$as_dir" && as_dir=.
13300     for ac_exec_ext in '' $ac_executable_extensions; do
13301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304     break 2
13305   fi
13306 done
13307   done
13308 IFS=$as_save_IFS
13309
13310   ;;
13311 esac
13312 fi
13313 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13314 if test -n "$PKG_CONFIG"; then
13315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13316 $as_echo "$PKG_CONFIG" >&6; }
13317 else
13318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13320 fi
13321
13322
13323 fi
13324 if test -z "$ac_cv_path_PKG_CONFIG"; then
13325   ac_pt_PKG_CONFIG=$PKG_CONFIG
13326   # Extract the first word of "pkg-config", so it can be a program name with args.
13327 set dummy pkg-config; ac_word=$2
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13329 $as_echo_n "checking for $ac_word... " >&6; }
13330 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13331   $as_echo_n "(cached) " >&6
13332 else
13333   case $ac_pt_PKG_CONFIG in
13334   [\\/]* | ?:[\\/]*)
13335   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13336   ;;
13337   *)
13338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13340 do
13341   IFS=$as_save_IFS
13342   test -z "$as_dir" && as_dir=.
13343     for ac_exec_ext in '' $ac_executable_extensions; do
13344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13345     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347     break 2
13348   fi
13349 done
13350   done
13351 IFS=$as_save_IFS
13352
13353   ;;
13354 esac
13355 fi
13356 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13357 if test -n "$ac_pt_PKG_CONFIG"; then
13358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13359 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13360 else
13361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362 $as_echo "no" >&6; }
13363 fi
13364
13365   if test "x$ac_pt_PKG_CONFIG" = x; then
13366     PKG_CONFIG=""
13367   else
13368     case $cross_compiling:$ac_tool_warned in
13369 yes:)
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13372 ac_tool_warned=yes ;;
13373 esac
13374     PKG_CONFIG=$ac_pt_PKG_CONFIG
13375   fi
13376 else
13377   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13378 fi
13379
13380 fi
13381 if test -n "$PKG_CONFIG"; then
13382         _pkg_min_version=0.9.0
13383         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13384 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13385         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13386                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13387 $as_echo "yes" >&6; }
13388         else
13389                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 $as_echo "no" >&6; }
13391                 PKG_CONFIG=""
13392         fi
13393 fi
13394
13395 # Check whether pkg-config supports Requires.private
13396 if $PKG_CONFIG --atleast-pkgconfig-version 0.22 ; then
13397    pkgconfig_requires_private="Requires.private"
13398 else
13399    pkgconfig_requires_private="Requires"
13400 fi
13401
13402
13403
13404 # doxygen
13405
13406
13407
13408 # Check whether --enable-doc was given.
13409 if test "${enable_doc+set}" = set; then :
13410   enableval=$enable_doc;
13411     if test "x${enableval}" = "xyes" ; then
13412        opj_enable_doc="yes"
13413     else
13414        opj_enable_doc="no"
13415     fi
13416
13417 else
13418   opj_enable_doc="yes"
13419 fi
13420
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
13423 $as_echo_n "checking whether to build documentation... " >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${opj_enable_doc}" >&5
13425 $as_echo "${opj_enable_doc}" >&6; }
13426
13427 if test "x${opj_enable_doc}" = "xyes" ; then
13428
13429
13430    opj_doxygen="doxygen"
13431
13432
13433 # Check whether --with-doxygen was given.
13434 if test "${with_doxygen+set}" = set; then :
13435   withval=$with_doxygen;
13436       opj_doxygen=${withval}
13437        # Extract the first word of "${opj_doxygen}", so it can be a program name with args.
13438 set dummy ${opj_doxygen}; ac_word=$2
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13440 $as_echo_n "checking for $ac_word... " >&6; }
13441 if ${ac_cv_prog_opj_have_doxygen+:} false; then :
13442   $as_echo_n "(cached) " >&6
13443 else
13444   if test -n "$opj_have_doxygen"; then
13445   ac_cv_prog_opj_have_doxygen="$opj_have_doxygen" # Let the user override the test.
13446 else
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13449 do
13450   IFS=$as_save_IFS
13451   test -z "$as_dir" && as_dir=.
13452     for ac_exec_ext in '' $ac_executable_extensions; do
13453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454     ac_cv_prog_opj_have_doxygen="yes"
13455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13456     break 2
13457   fi
13458 done
13459   done
13460 IFS=$as_save_IFS
13461
13462   test -z "$ac_cv_prog_opj_have_doxygen" && ac_cv_prog_opj_have_doxygen="no"
13463 fi
13464 fi
13465 opj_have_doxygen=$ac_cv_prog_opj_have_doxygen
13466 if test -n "$opj_have_doxygen"; then
13467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opj_have_doxygen" >&5
13468 $as_echo "$opj_have_doxygen" >&6; }
13469 else
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13472 fi
13473
13474
13475        if test "x${opj_have_doxygen}" = "xno" ; then
13476           echo "WARNING:"
13477           echo "The doxygen program you specified:"
13478           echo "${opj_doxygen}"
13479           echo "was not found.  Please check the path and make sure "
13480           echo "the program exists and is executable."
13481           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5
13482 $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;}
13483        fi
13484
13485 else
13486   # Extract the first word of "${opj_doxygen}", so it can be a program name with args.
13487 set dummy ${opj_doxygen}; ac_word=$2
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13489 $as_echo_n "checking for $ac_word... " >&6; }
13490 if ${ac_cv_prog_opj_have_doxygen+:} false; then :
13491   $as_echo_n "(cached) " >&6
13492 else
13493   if test -n "$opj_have_doxygen"; then
13494   ac_cv_prog_opj_have_doxygen="$opj_have_doxygen" # Let the user override the test.
13495 else
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13498 do
13499   IFS=$as_save_IFS
13500   test -z "$as_dir" && as_dir=.
13501     for ac_exec_ext in '' $ac_executable_extensions; do
13502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13503     ac_cv_prog_opj_have_doxygen="yes"
13504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505     break 2
13506   fi
13507 done
13508   done
13509 IFS=$as_save_IFS
13510
13511   test -z "$ac_cv_prog_opj_have_doxygen" && ac_cv_prog_opj_have_doxygen="no"
13512 fi
13513 fi
13514 opj_have_doxygen=$ac_cv_prog_opj_have_doxygen
13515 if test -n "$opj_have_doxygen"; then
13516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opj_have_doxygen" >&5
13517 $as_echo "$opj_have_doxygen" >&6; }
13518 else
13519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13521 fi
13522
13523
13524        if test "x${opj_have_doxygen}" = "xno" ; then
13525           echo "WARNING:"
13526           echo "The doxygen program was not found in your execute path."
13527           echo "You may have doxygen installed somewhere not covered by your path."
13528           echo ""
13529           echo "If this is the case make sure you have the packages installed, AND"
13530           echo "that the doxygen program is in your execute path (see your"
13531           echo "shell manual page on setting the \$PATH environment variable), OR"
13532           echo "alternatively, specify the program to use with --with-doxygen."
13533           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5
13534 $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;}
13535        fi
13536
13537 fi
13538
13539 else
13540    opj_have_doxygen="no"
13541 fi
13542
13543
13544
13545 if ! test "x${opj_have_doxygen}" = "xyes" ; then
13546    opj_enable_doc="no"
13547 fi
13548
13549  if test "x${opj_have_doxygen}" = "xyes"; then
13550   OPJ_BUILD_DOC_TRUE=
13551   OPJ_BUILD_DOC_FALSE='#'
13552 else
13553   OPJ_BUILD_DOC_TRUE='#'
13554   OPJ_BUILD_DOC_FALSE=
13555 fi
13556
13557
13558 if test "x${opj_have_doxygen}" = "xyes"; then :
13559
13560 fi
13561
13562
13563 #  ln -s
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13566 $as_echo_n "checking whether ln -s works... " >&6; }
13567 LN_S=$as_ln_s
13568 if test "$LN_S" = "ln -s"; then
13569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13570 $as_echo "yes" >&6; }
13571 else
13572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13573 $as_echo "no, using $LN_S" >&6; }
13574 fi
13575
13576
13577
13578 ### Checks for libraries
13579
13580 # libpng
13581
13582 have_libpng="no"
13583
13584 # Check whether --enable-png was given.
13585 if test "${enable_png+set}" = set; then :
13586   enableval=$enable_png;
13587     if test "x${enableval}" = "xyes" ; then
13588        want_png="yes"
13589     else
13590        want_png="no"
13591     fi
13592
13593 else
13594   want_png="yes"
13595 fi
13596
13597
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
13599 $as_echo_n "checking whether to build with PNG support... " >&6; }
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_png}" >&5
13601 $as_echo "${want_png}" >&6; }
13602
13603 if test "x${want_png}" = "xyes" ; then
13604
13605
13606 pkg_failed=no
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13608 $as_echo_n "checking for PNG... " >&6; }
13609
13610 if test -n "$PNG_CFLAGS"; then
13611     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13612  elif test -n "$PKG_CONFIG"; then
13613     if test -n "$PKG_CONFIG" && \
13614     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15 zlib\""; } >&5
13615   ($PKG_CONFIG --exists --print-errors "libpng15 zlib") 2>&5
13616   ac_status=$?
13617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13618   test $ac_status = 0; }; then
13619   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng15 zlib" 2>/dev/null`
13620 else
13621   pkg_failed=yes
13622 fi
13623  else
13624     pkg_failed=untried
13625 fi
13626 if test -n "$PNG_LIBS"; then
13627     pkg_cv_PNG_LIBS="$PNG_LIBS"
13628  elif test -n "$PKG_CONFIG"; then
13629     if test -n "$PKG_CONFIG" && \
13630     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15 zlib\""; } >&5
13631   ($PKG_CONFIG --exists --print-errors "libpng15 zlib") 2>&5
13632   ac_status=$?
13633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634   test $ac_status = 0; }; then
13635   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng15 zlib" 2>/dev/null`
13636 else
13637   pkg_failed=yes
13638 fi
13639  else
13640     pkg_failed=untried
13641 fi
13642
13643
13644
13645 if test $pkg_failed = yes; then
13646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13648
13649 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13650         _pkg_short_errors_supported=yes
13651 else
13652         _pkg_short_errors_supported=no
13653 fi
13654         if test $_pkg_short_errors_supported = yes; then
13655                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng15 zlib" 2>&1`
13656         else
13657                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng15 zlib" 2>&1`
13658         fi
13659         # Put the nasty error message in config.log where it belongs
13660         echo "$PNG_PKG_ERRORS" >&5
13661
13662
13663
13664 pkg_failed=no
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13666 $as_echo_n "checking for PNG... " >&6; }
13667
13668 if test -n "$PNG_CFLAGS"; then
13669     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13670  elif test -n "$PKG_CONFIG"; then
13671     if test -n "$PKG_CONFIG" && \
13672     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
13673   ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
13674   ac_status=$?
13675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13676   test $ac_status = 0; }; then
13677   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14 zlib" 2>/dev/null`
13678 else
13679   pkg_failed=yes
13680 fi
13681  else
13682     pkg_failed=untried
13683 fi
13684 if test -n "$PNG_LIBS"; then
13685     pkg_cv_PNG_LIBS="$PNG_LIBS"
13686  elif test -n "$PKG_CONFIG"; then
13687     if test -n "$PKG_CONFIG" && \
13688     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
13689   ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
13690   ac_status=$?
13691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13692   test $ac_status = 0; }; then
13693   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14 zlib" 2>/dev/null`
13694 else
13695   pkg_failed=yes
13696 fi
13697  else
13698     pkg_failed=untried
13699 fi
13700
13701
13702
13703 if test $pkg_failed = yes; then
13704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13705 $as_echo "no" >&6; }
13706
13707 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13708         _pkg_short_errors_supported=yes
13709 else
13710         _pkg_short_errors_supported=no
13711 fi
13712         if test $_pkg_short_errors_supported = yes; then
13713                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14 zlib" 2>&1`
13714         else
13715                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14 zlib" 2>&1`
13716         fi
13717         # Put the nasty error message in config.log where it belongs
13718         echo "$PNG_PKG_ERRORS" >&5
13719
13720
13721
13722 pkg_failed=no
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13724 $as_echo_n "checking for PNG... " >&6; }
13725
13726 if test -n "$PNG_CFLAGS"; then
13727     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13728  elif test -n "$PKG_CONFIG"; then
13729     if test -n "$PKG_CONFIG" && \
13730     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
13731   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
13732   ac_status=$?
13733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734   test $ac_status = 0; }; then
13735   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
13736 else
13737   pkg_failed=yes
13738 fi
13739  else
13740     pkg_failed=untried
13741 fi
13742 if test -n "$PNG_LIBS"; then
13743     pkg_cv_PNG_LIBS="$PNG_LIBS"
13744  elif test -n "$PKG_CONFIG"; then
13745     if test -n "$PKG_CONFIG" && \
13746     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
13747   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
13748   ac_status=$?
13749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13750   test $ac_status = 0; }; then
13751   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
13752 else
13753   pkg_failed=yes
13754 fi
13755  else
13756     pkg_failed=untried
13757 fi
13758
13759
13760
13761 if test $pkg_failed = yes; then
13762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763 $as_echo "no" >&6; }
13764
13765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13766         _pkg_short_errors_supported=yes
13767 else
13768         _pkg_short_errors_supported=no
13769 fi
13770         if test $_pkg_short_errors_supported = yes; then
13771                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
13772         else
13773                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
13774         fi
13775         # Put the nasty error message in config.log where it belongs
13776         echo "$PNG_PKG_ERRORS" >&5
13777
13778
13779
13780 pkg_failed=no
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13782 $as_echo_n "checking for PNG... " >&6; }
13783
13784 if test -n "$PNG_CFLAGS"; then
13785     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13786  elif test -n "$PKG_CONFIG"; then
13787     if test -n "$PKG_CONFIG" && \
13788     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
13789   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
13790   ac_status=$?
13791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13792   test $ac_status = 0; }; then
13793   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
13794 else
13795   pkg_failed=yes
13796 fi
13797  else
13798     pkg_failed=untried
13799 fi
13800 if test -n "$PNG_LIBS"; then
13801     pkg_cv_PNG_LIBS="$PNG_LIBS"
13802  elif test -n "$PKG_CONFIG"; then
13803     if test -n "$PKG_CONFIG" && \
13804     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
13805   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
13806   ac_status=$?
13807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13808   test $ac_status = 0; }; then
13809   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
13810 else
13811   pkg_failed=yes
13812 fi
13813  else
13814     pkg_failed=untried
13815 fi
13816
13817
13818
13819 if test $pkg_failed = yes; then
13820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13822
13823 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13824         _pkg_short_errors_supported=yes
13825 else
13826         _pkg_short_errors_supported=no
13827 fi
13828         if test $_pkg_short_errors_supported = yes; then
13829                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
13830         else
13831                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
13832         fi
13833         # Put the nasty error message in config.log where it belongs
13834         echo "$PNG_PKG_ERRORS" >&5
13835
13836         have_libpng="no"
13837 elif test $pkg_failed = untried; then
13838         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839 $as_echo "no" >&6; }
13840         have_libpng="no"
13841 else
13842         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13843         PNG_LIBS=$pkg_cv_PNG_LIBS
13844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13845 $as_echo "yes" >&6; }
13846         have_libpng="yes"
13847 fi
13848
13849 elif test $pkg_failed = untried; then
13850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13852
13853
13854 pkg_failed=no
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13856 $as_echo_n "checking for PNG... " >&6; }
13857
13858 if test -n "$PNG_CFLAGS"; then
13859     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13860  elif test -n "$PKG_CONFIG"; then
13861     if test -n "$PKG_CONFIG" && \
13862     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
13863   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
13864   ac_status=$?
13865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13866   test $ac_status = 0; }; then
13867   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
13868 else
13869   pkg_failed=yes
13870 fi
13871  else
13872     pkg_failed=untried
13873 fi
13874 if test -n "$PNG_LIBS"; then
13875     pkg_cv_PNG_LIBS="$PNG_LIBS"
13876  elif test -n "$PKG_CONFIG"; then
13877     if test -n "$PKG_CONFIG" && \
13878     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
13879   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
13880   ac_status=$?
13881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13882   test $ac_status = 0; }; then
13883   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
13884 else
13885   pkg_failed=yes
13886 fi
13887  else
13888     pkg_failed=untried
13889 fi
13890
13891
13892
13893 if test $pkg_failed = yes; then
13894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 $as_echo "no" >&6; }
13896
13897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13898         _pkg_short_errors_supported=yes
13899 else
13900         _pkg_short_errors_supported=no
13901 fi
13902         if test $_pkg_short_errors_supported = yes; then
13903                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
13904         else
13905                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
13906         fi
13907         # Put the nasty error message in config.log where it belongs
13908         echo "$PNG_PKG_ERRORS" >&5
13909
13910         have_libpng="no"
13911 elif test $pkg_failed = untried; then
13912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13914         have_libpng="no"
13915 else
13916         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13917         PNG_LIBS=$pkg_cv_PNG_LIBS
13918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13919 $as_echo "yes" >&6; }
13920         have_libpng="yes"
13921 fi
13922
13923 else
13924         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13925         PNG_LIBS=$pkg_cv_PNG_LIBS
13926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13927 $as_echo "yes" >&6; }
13928         have_libpng="yes"
13929 fi
13930
13931 elif test $pkg_failed = untried; then
13932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 $as_echo "no" >&6; }
13934
13935
13936 pkg_failed=no
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13938 $as_echo_n "checking for PNG... " >&6; }
13939
13940 if test -n "$PNG_CFLAGS"; then
13941     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13942  elif test -n "$PKG_CONFIG"; then
13943     if test -n "$PKG_CONFIG" && \
13944     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
13945   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
13946   ac_status=$?
13947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948   test $ac_status = 0; }; then
13949   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
13950 else
13951   pkg_failed=yes
13952 fi
13953  else
13954     pkg_failed=untried
13955 fi
13956 if test -n "$PNG_LIBS"; then
13957     pkg_cv_PNG_LIBS="$PNG_LIBS"
13958  elif test -n "$PKG_CONFIG"; then
13959     if test -n "$PKG_CONFIG" && \
13960     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
13961   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
13962   ac_status=$?
13963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13964   test $ac_status = 0; }; then
13965   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
13966 else
13967   pkg_failed=yes
13968 fi
13969  else
13970     pkg_failed=untried
13971 fi
13972
13973
13974
13975 if test $pkg_failed = yes; then
13976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13977 $as_echo "no" >&6; }
13978
13979 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13980         _pkg_short_errors_supported=yes
13981 else
13982         _pkg_short_errors_supported=no
13983 fi
13984         if test $_pkg_short_errors_supported = yes; then
13985                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
13986         else
13987                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
13988         fi
13989         # Put the nasty error message in config.log where it belongs
13990         echo "$PNG_PKG_ERRORS" >&5
13991
13992
13993
13994 pkg_failed=no
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13996 $as_echo_n "checking for PNG... " >&6; }
13997
13998 if test -n "$PNG_CFLAGS"; then
13999     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14000  elif test -n "$PKG_CONFIG"; then
14001     if test -n "$PKG_CONFIG" && \
14002     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14003   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14004   ac_status=$?
14005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14006   test $ac_status = 0; }; then
14007   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14008 else
14009   pkg_failed=yes
14010 fi
14011  else
14012     pkg_failed=untried
14013 fi
14014 if test -n "$PNG_LIBS"; then
14015     pkg_cv_PNG_LIBS="$PNG_LIBS"
14016  elif test -n "$PKG_CONFIG"; then
14017     if test -n "$PKG_CONFIG" && \
14018     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14019   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14020   ac_status=$?
14021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022   test $ac_status = 0; }; then
14023   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14024 else
14025   pkg_failed=yes
14026 fi
14027  else
14028     pkg_failed=untried
14029 fi
14030
14031
14032
14033 if test $pkg_failed = yes; then
14034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 $as_echo "no" >&6; }
14036
14037 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14038         _pkg_short_errors_supported=yes
14039 else
14040         _pkg_short_errors_supported=no
14041 fi
14042         if test $_pkg_short_errors_supported = yes; then
14043                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14044         else
14045                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14046         fi
14047         # Put the nasty error message in config.log where it belongs
14048         echo "$PNG_PKG_ERRORS" >&5
14049
14050         have_libpng="no"
14051 elif test $pkg_failed = untried; then
14052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14054         have_libpng="no"
14055 else
14056         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14057         PNG_LIBS=$pkg_cv_PNG_LIBS
14058         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14059 $as_echo "yes" >&6; }
14060         have_libpng="yes"
14061 fi
14062
14063 elif test $pkg_failed = untried; then
14064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065 $as_echo "no" >&6; }
14066
14067
14068 pkg_failed=no
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14070 $as_echo_n "checking for PNG... " >&6; }
14071
14072 if test -n "$PNG_CFLAGS"; then
14073     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14074  elif test -n "$PKG_CONFIG"; then
14075     if test -n "$PKG_CONFIG" && \
14076     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14077   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14078   ac_status=$?
14079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14080   test $ac_status = 0; }; then
14081   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14082 else
14083   pkg_failed=yes
14084 fi
14085  else
14086     pkg_failed=untried
14087 fi
14088 if test -n "$PNG_LIBS"; then
14089     pkg_cv_PNG_LIBS="$PNG_LIBS"
14090  elif test -n "$PKG_CONFIG"; then
14091     if test -n "$PKG_CONFIG" && \
14092     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14093   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14094   ac_status=$?
14095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096   test $ac_status = 0; }; then
14097   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14098 else
14099   pkg_failed=yes
14100 fi
14101  else
14102     pkg_failed=untried
14103 fi
14104
14105
14106
14107 if test $pkg_failed = yes; then
14108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14110
14111 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14112         _pkg_short_errors_supported=yes
14113 else
14114         _pkg_short_errors_supported=no
14115 fi
14116         if test $_pkg_short_errors_supported = yes; then
14117                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14118         else
14119                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14120         fi
14121         # Put the nasty error message in config.log where it belongs
14122         echo "$PNG_PKG_ERRORS" >&5
14123
14124         have_libpng="no"
14125 elif test $pkg_failed = untried; then
14126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127 $as_echo "no" >&6; }
14128         have_libpng="no"
14129 else
14130         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14131         PNG_LIBS=$pkg_cv_PNG_LIBS
14132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14133 $as_echo "yes" >&6; }
14134         have_libpng="yes"
14135 fi
14136
14137 else
14138         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14139         PNG_LIBS=$pkg_cv_PNG_LIBS
14140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14141 $as_echo "yes" >&6; }
14142         have_libpng="yes"
14143 fi
14144
14145 else
14146         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14147         PNG_LIBS=$pkg_cv_PNG_LIBS
14148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14149 $as_echo "yes" >&6; }
14150         have_libpng="yes"
14151 fi
14152
14153 elif test $pkg_failed = untried; then
14154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14155 $as_echo "no" >&6; }
14156
14157
14158 pkg_failed=no
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14160 $as_echo_n "checking for PNG... " >&6; }
14161
14162 if test -n "$PNG_CFLAGS"; then
14163     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14164  elif test -n "$PKG_CONFIG"; then
14165     if test -n "$PKG_CONFIG" && \
14166     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
14167   ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
14168   ac_status=$?
14169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170   test $ac_status = 0; }; then
14171   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14 zlib" 2>/dev/null`
14172 else
14173   pkg_failed=yes
14174 fi
14175  else
14176     pkg_failed=untried
14177 fi
14178 if test -n "$PNG_LIBS"; then
14179     pkg_cv_PNG_LIBS="$PNG_LIBS"
14180  elif test -n "$PKG_CONFIG"; then
14181     if test -n "$PKG_CONFIG" && \
14182     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
14183   ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
14184   ac_status=$?
14185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14186   test $ac_status = 0; }; then
14187   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14 zlib" 2>/dev/null`
14188 else
14189   pkg_failed=yes
14190 fi
14191  else
14192     pkg_failed=untried
14193 fi
14194
14195
14196
14197 if test $pkg_failed = yes; then
14198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14200
14201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14202         _pkg_short_errors_supported=yes
14203 else
14204         _pkg_short_errors_supported=no
14205 fi
14206         if test $_pkg_short_errors_supported = yes; then
14207                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14 zlib" 2>&1`
14208         else
14209                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14 zlib" 2>&1`
14210         fi
14211         # Put the nasty error message in config.log where it belongs
14212         echo "$PNG_PKG_ERRORS" >&5
14213
14214
14215
14216 pkg_failed=no
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14218 $as_echo_n "checking for PNG... " >&6; }
14219
14220 if test -n "$PNG_CFLAGS"; then
14221     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14222  elif test -n "$PKG_CONFIG"; then
14223     if test -n "$PKG_CONFIG" && \
14224     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
14225   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
14226   ac_status=$?
14227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228   test $ac_status = 0; }; then
14229   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
14230 else
14231   pkg_failed=yes
14232 fi
14233  else
14234     pkg_failed=untried
14235 fi
14236 if test -n "$PNG_LIBS"; then
14237     pkg_cv_PNG_LIBS="$PNG_LIBS"
14238  elif test -n "$PKG_CONFIG"; then
14239     if test -n "$PKG_CONFIG" && \
14240     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
14241   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
14242   ac_status=$?
14243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14244   test $ac_status = 0; }; then
14245   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
14246 else
14247   pkg_failed=yes
14248 fi
14249  else
14250     pkg_failed=untried
14251 fi
14252
14253
14254
14255 if test $pkg_failed = yes; then
14256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14258
14259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14260         _pkg_short_errors_supported=yes
14261 else
14262         _pkg_short_errors_supported=no
14263 fi
14264         if test $_pkg_short_errors_supported = yes; then
14265                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
14266         else
14267                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
14268         fi
14269         # Put the nasty error message in config.log where it belongs
14270         echo "$PNG_PKG_ERRORS" >&5
14271
14272
14273
14274 pkg_failed=no
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14276 $as_echo_n "checking for PNG... " >&6; }
14277
14278 if test -n "$PNG_CFLAGS"; then
14279     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14280  elif test -n "$PKG_CONFIG"; then
14281     if test -n "$PKG_CONFIG" && \
14282     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14283   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14284   ac_status=$?
14285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286   test $ac_status = 0; }; then
14287   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14288 else
14289   pkg_failed=yes
14290 fi
14291  else
14292     pkg_failed=untried
14293 fi
14294 if test -n "$PNG_LIBS"; then
14295     pkg_cv_PNG_LIBS="$PNG_LIBS"
14296  elif test -n "$PKG_CONFIG"; then
14297     if test -n "$PKG_CONFIG" && \
14298     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14299   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14300   ac_status=$?
14301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14302   test $ac_status = 0; }; then
14303   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14304 else
14305   pkg_failed=yes
14306 fi
14307  else
14308     pkg_failed=untried
14309 fi
14310
14311
14312
14313 if test $pkg_failed = yes; then
14314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14316
14317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14318         _pkg_short_errors_supported=yes
14319 else
14320         _pkg_short_errors_supported=no
14321 fi
14322         if test $_pkg_short_errors_supported = yes; then
14323                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14324         else
14325                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14326         fi
14327         # Put the nasty error message in config.log where it belongs
14328         echo "$PNG_PKG_ERRORS" >&5
14329
14330         have_libpng="no"
14331 elif test $pkg_failed = untried; then
14332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333 $as_echo "no" >&6; }
14334         have_libpng="no"
14335 else
14336         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14337         PNG_LIBS=$pkg_cv_PNG_LIBS
14338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14339 $as_echo "yes" >&6; }
14340         have_libpng="yes"
14341 fi
14342
14343 elif test $pkg_failed = untried; then
14344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345 $as_echo "no" >&6; }
14346
14347
14348 pkg_failed=no
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14350 $as_echo_n "checking for PNG... " >&6; }
14351
14352 if test -n "$PNG_CFLAGS"; then
14353     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14354  elif test -n "$PKG_CONFIG"; then
14355     if test -n "$PKG_CONFIG" && \
14356     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14357   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14358   ac_status=$?
14359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360   test $ac_status = 0; }; then
14361   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14362 else
14363   pkg_failed=yes
14364 fi
14365  else
14366     pkg_failed=untried
14367 fi
14368 if test -n "$PNG_LIBS"; then
14369     pkg_cv_PNG_LIBS="$PNG_LIBS"
14370  elif test -n "$PKG_CONFIG"; then
14371     if test -n "$PKG_CONFIG" && \
14372     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14373   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14374   ac_status=$?
14375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14376   test $ac_status = 0; }; then
14377   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14378 else
14379   pkg_failed=yes
14380 fi
14381  else
14382     pkg_failed=untried
14383 fi
14384
14385
14386
14387 if test $pkg_failed = yes; then
14388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 $as_echo "no" >&6; }
14390
14391 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14392         _pkg_short_errors_supported=yes
14393 else
14394         _pkg_short_errors_supported=no
14395 fi
14396         if test $_pkg_short_errors_supported = yes; then
14397                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14398         else
14399                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14400         fi
14401         # Put the nasty error message in config.log where it belongs
14402         echo "$PNG_PKG_ERRORS" >&5
14403
14404         have_libpng="no"
14405 elif test $pkg_failed = untried; then
14406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407 $as_echo "no" >&6; }
14408         have_libpng="no"
14409 else
14410         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14411         PNG_LIBS=$pkg_cv_PNG_LIBS
14412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14413 $as_echo "yes" >&6; }
14414         have_libpng="yes"
14415 fi
14416
14417 else
14418         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14419         PNG_LIBS=$pkg_cv_PNG_LIBS
14420         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14421 $as_echo "yes" >&6; }
14422         have_libpng="yes"
14423 fi
14424
14425 elif test $pkg_failed = untried; then
14426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427 $as_echo "no" >&6; }
14428
14429
14430 pkg_failed=no
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14432 $as_echo_n "checking for PNG... " >&6; }
14433
14434 if test -n "$PNG_CFLAGS"; then
14435     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14436  elif test -n "$PKG_CONFIG"; then
14437     if test -n "$PKG_CONFIG" && \
14438     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
14439   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
14440   ac_status=$?
14441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14442   test $ac_status = 0; }; then
14443   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
14444 else
14445   pkg_failed=yes
14446 fi
14447  else
14448     pkg_failed=untried
14449 fi
14450 if test -n "$PNG_LIBS"; then
14451     pkg_cv_PNG_LIBS="$PNG_LIBS"
14452  elif test -n "$PKG_CONFIG"; then
14453     if test -n "$PKG_CONFIG" && \
14454     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
14455   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
14456   ac_status=$?
14457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14458   test $ac_status = 0; }; then
14459   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
14460 else
14461   pkg_failed=yes
14462 fi
14463  else
14464     pkg_failed=untried
14465 fi
14466
14467
14468
14469 if test $pkg_failed = yes; then
14470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471 $as_echo "no" >&6; }
14472
14473 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14474         _pkg_short_errors_supported=yes
14475 else
14476         _pkg_short_errors_supported=no
14477 fi
14478         if test $_pkg_short_errors_supported = yes; then
14479                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
14480         else
14481                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
14482         fi
14483         # Put the nasty error message in config.log where it belongs
14484         echo "$PNG_PKG_ERRORS" >&5
14485
14486
14487
14488 pkg_failed=no
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14490 $as_echo_n "checking for PNG... " >&6; }
14491
14492 if test -n "$PNG_CFLAGS"; then
14493     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14494  elif test -n "$PKG_CONFIG"; then
14495     if test -n "$PKG_CONFIG" && \
14496     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14497   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14498   ac_status=$?
14499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14500   test $ac_status = 0; }; then
14501   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14502 else
14503   pkg_failed=yes
14504 fi
14505  else
14506     pkg_failed=untried
14507 fi
14508 if test -n "$PNG_LIBS"; then
14509     pkg_cv_PNG_LIBS="$PNG_LIBS"
14510  elif test -n "$PKG_CONFIG"; then
14511     if test -n "$PKG_CONFIG" && \
14512     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14513   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14514   ac_status=$?
14515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14516   test $ac_status = 0; }; then
14517   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14518 else
14519   pkg_failed=yes
14520 fi
14521  else
14522     pkg_failed=untried
14523 fi
14524
14525
14526
14527 if test $pkg_failed = yes; then
14528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14529 $as_echo "no" >&6; }
14530
14531 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14532         _pkg_short_errors_supported=yes
14533 else
14534         _pkg_short_errors_supported=no
14535 fi
14536         if test $_pkg_short_errors_supported = yes; then
14537                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14538         else
14539                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14540         fi
14541         # Put the nasty error message in config.log where it belongs
14542         echo "$PNG_PKG_ERRORS" >&5
14543
14544         have_libpng="no"
14545 elif test $pkg_failed = untried; then
14546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14547 $as_echo "no" >&6; }
14548         have_libpng="no"
14549 else
14550         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14551         PNG_LIBS=$pkg_cv_PNG_LIBS
14552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553 $as_echo "yes" >&6; }
14554         have_libpng="yes"
14555 fi
14556
14557 elif test $pkg_failed = untried; then
14558         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559 $as_echo "no" >&6; }
14560
14561
14562 pkg_failed=no
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14564 $as_echo_n "checking for PNG... " >&6; }
14565
14566 if test -n "$PNG_CFLAGS"; then
14567     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14568  elif test -n "$PKG_CONFIG"; then
14569     if test -n "$PKG_CONFIG" && \
14570     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14571   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14572   ac_status=$?
14573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14574   test $ac_status = 0; }; then
14575   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14576 else
14577   pkg_failed=yes
14578 fi
14579  else
14580     pkg_failed=untried
14581 fi
14582 if test -n "$PNG_LIBS"; then
14583     pkg_cv_PNG_LIBS="$PNG_LIBS"
14584  elif test -n "$PKG_CONFIG"; then
14585     if test -n "$PKG_CONFIG" && \
14586     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14587   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14588   ac_status=$?
14589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14590   test $ac_status = 0; }; then
14591   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14592 else
14593   pkg_failed=yes
14594 fi
14595  else
14596     pkg_failed=untried
14597 fi
14598
14599
14600
14601 if test $pkg_failed = yes; then
14602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14603 $as_echo "no" >&6; }
14604
14605 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14606         _pkg_short_errors_supported=yes
14607 else
14608         _pkg_short_errors_supported=no
14609 fi
14610         if test $_pkg_short_errors_supported = yes; then
14611                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14612         else
14613                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14614         fi
14615         # Put the nasty error message in config.log where it belongs
14616         echo "$PNG_PKG_ERRORS" >&5
14617
14618         have_libpng="no"
14619 elif test $pkg_failed = untried; then
14620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 $as_echo "no" >&6; }
14622         have_libpng="no"
14623 else
14624         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14625         PNG_LIBS=$pkg_cv_PNG_LIBS
14626         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14627 $as_echo "yes" >&6; }
14628         have_libpng="yes"
14629 fi
14630
14631 else
14632         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14633         PNG_LIBS=$pkg_cv_PNG_LIBS
14634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14635 $as_echo "yes" >&6; }
14636         have_libpng="yes"
14637 fi
14638
14639 else
14640         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14641         PNG_LIBS=$pkg_cv_PNG_LIBS
14642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14643 $as_echo "yes" >&6; }
14644         have_libpng="yes"
14645 fi
14646
14647 else
14648         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14649         PNG_LIBS=$pkg_cv_PNG_LIBS
14650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14651 $as_echo "yes" >&6; }
14652         have_libpng="yes"
14653 fi
14654
14655    if ! test "x${have_libpng}" = "xyes" ; then
14656
14657
14658
14659
14660
14661 __opj_have_dep="no"
14662
14663
14664
14665
14666
14667
14668 __opj_prefix=
14669 __opj_header=zlib.h
14670 __opj_lib=z
14671 __opj_func=zlibVersion
14672 __opj_have_dep="no"
14673
14674 save_CPPFLAGS=${CPPFLAGS}
14675 save_LDFLAGS=${LDFLAGS}
14676 save_LIBS=${LIBS}
14677
14678 if test "x${__opj_prefix}" = "x" ; then
14679    CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
14680    LDFLAGS="${LDFLAGS} $Z_LIBS"
14681 else
14682    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14683    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14684    LIBS="${LIBS} -l${__opj_lib}"
14685 fi
14686
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h.  */
14689
14690 #include <${__opj_header}>
14691
14692 int
14693 main ()
14694 {
14695
14696 ${__opj_func}();
14697
14698   ;
14699   return 0;
14700 }
14701 _ACEOF
14702 if ac_fn_c_try_link "$LINENO"; then :
14703   __opj_have_dep="yes"
14704 else
14705   __opj_have_dep="no"
14706 fi
14707 rm -f core conftest.err conftest.$ac_objext \
14708     conftest$ac_exeext conftest.$ac_ext
14709
14710 CPPFLAGS=${save_CPPFLAGS}
14711 LDFLAGS=${save_LDFLAGS}
14712 LIBS=${save_LIBS}
14713
14714 if test "x${__opj_prefix}" = "x" ; then
14715    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
14716 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
14717 else
14718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
14719 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
14720 fi
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14722 $as_echo "${__opj_have_dep}" >&6; }
14723
14724 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14725    if test "x${Z_CFLAGS}" = "x" ; then
14726       Z_CFLAGS="-I${__opj_prefix}/include"
14727    fi
14728    if test "x${Z_LIBS}" = "x" ; then
14729       Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14730    fi
14731 fi
14732
14733 if test "x${__opj_have_dep}" = "xyes"; then :
14734   __opj_have_dep="yes"
14735 else
14736   __opj_have_dep="no"
14737 fi
14738
14739
14740
14741
14742
14743
14744 if ! test "x${__opj_have_dep}" = "xyes" ; then
14745
14746
14747
14748
14749
14750 __opj_prefix=/usr
14751 __opj_header=zlib.h
14752 __opj_lib=z
14753 __opj_func=zlibVersion
14754 __opj_have_dep="no"
14755
14756 save_CPPFLAGS=${CPPFLAGS}
14757 save_LDFLAGS=${LDFLAGS}
14758 save_LIBS=${LIBS}
14759
14760 if test "x${__opj_prefix}" = "x" ; then
14761    CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
14762    LDFLAGS="${LDFLAGS} $Z_LIBS"
14763 else
14764    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14765    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14766    LIBS="${LIBS} -l${__opj_lib}"
14767 fi
14768
14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h.  */
14771
14772 #include <${__opj_header}>
14773
14774 int
14775 main ()
14776 {
14777
14778 ${__opj_func}();
14779
14780   ;
14781   return 0;
14782 }
14783 _ACEOF
14784 if ac_fn_c_try_link "$LINENO"; then :
14785   __opj_have_dep="yes"
14786 else
14787   __opj_have_dep="no"
14788 fi
14789 rm -f core conftest.err conftest.$ac_objext \
14790     conftest$ac_exeext conftest.$ac_ext
14791
14792 CPPFLAGS=${save_CPPFLAGS}
14793 LDFLAGS=${save_LDFLAGS}
14794 LIBS=${save_LIBS}
14795
14796 if test "x${__opj_prefix}" = "x" ; then
14797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
14798 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
14799 else
14800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
14801 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
14802 fi
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14804 $as_echo "${__opj_have_dep}" >&6; }
14805
14806 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14807    if test "x${Z_CFLAGS}" = "x" ; then
14808       Z_CFLAGS="-I${__opj_prefix}/include"
14809    fi
14810    if test "x${Z_LIBS}" = "x" ; then
14811       Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14812    fi
14813 fi
14814
14815 if test "x${__opj_have_dep}" = "xyes"; then :
14816   __opj_have_dep="yes"
14817 else
14818   __opj_have_dep="no"
14819 fi
14820
14821
14822
14823
14824
14825 fi
14826
14827 if ! test "x${__opj_have_dep}" = "xyes" ; then
14828
14829
14830
14831
14832
14833 __opj_prefix=/usr/local
14834 __opj_header=zlib.h
14835 __opj_lib=z
14836 __opj_func=zlibVersion
14837 __opj_have_dep="no"
14838
14839 save_CPPFLAGS=${CPPFLAGS}
14840 save_LDFLAGS=${LDFLAGS}
14841 save_LIBS=${LIBS}
14842
14843 if test "x${__opj_prefix}" = "x" ; then
14844    CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
14845    LDFLAGS="${LDFLAGS} $Z_LIBS"
14846 else
14847    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14848    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14849    LIBS="${LIBS} -l${__opj_lib}"
14850 fi
14851
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h.  */
14854
14855 #include <${__opj_header}>
14856
14857 int
14858 main ()
14859 {
14860
14861 ${__opj_func}();
14862
14863   ;
14864   return 0;
14865 }
14866 _ACEOF
14867 if ac_fn_c_try_link "$LINENO"; then :
14868   __opj_have_dep="yes"
14869 else
14870   __opj_have_dep="no"
14871 fi
14872 rm -f core conftest.err conftest.$ac_objext \
14873     conftest$ac_exeext conftest.$ac_ext
14874
14875 CPPFLAGS=${save_CPPFLAGS}
14876 LDFLAGS=${save_LDFLAGS}
14877 LIBS=${save_LIBS}
14878
14879 if test "x${__opj_prefix}" = "x" ; then
14880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
14881 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
14882 else
14883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
14884 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
14885 fi
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14887 $as_echo "${__opj_have_dep}" >&6; }
14888
14889 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14890    if test "x${Z_CFLAGS}" = "x" ; then
14891       Z_CFLAGS="-I${__opj_prefix}/include"
14892    fi
14893    if test "x${Z_LIBS}" = "x" ; then
14894       Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14895    fi
14896 fi
14897
14898 if test "x${__opj_have_dep}" = "xyes"; then :
14899   __opj_have_dep="yes"
14900 else
14901   __opj_have_dep="no"
14902 fi
14903
14904
14905
14906
14907
14908 fi
14909
14910 if ! test "x${__opj_have_dep}" = "xyes" ; then
14911
14912
14913
14914
14915
14916 __opj_prefix=/opt/local
14917 __opj_header=zlib.h
14918 __opj_lib=z
14919 __opj_func=zlibVersion
14920 __opj_have_dep="no"
14921
14922 save_CPPFLAGS=${CPPFLAGS}
14923 save_LDFLAGS=${LDFLAGS}
14924 save_LIBS=${LIBS}
14925
14926 if test "x${__opj_prefix}" = "x" ; then
14927    CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
14928    LDFLAGS="${LDFLAGS} $Z_LIBS"
14929 else
14930    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14931    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14932    LIBS="${LIBS} -l${__opj_lib}"
14933 fi
14934
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h.  */
14937
14938 #include <${__opj_header}>
14939
14940 int
14941 main ()
14942 {
14943
14944 ${__opj_func}();
14945
14946   ;
14947   return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_c_try_link "$LINENO"; then :
14951   __opj_have_dep="yes"
14952 else
14953   __opj_have_dep="no"
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext \
14956     conftest$ac_exeext conftest.$ac_ext
14957
14958 CPPFLAGS=${save_CPPFLAGS}
14959 LDFLAGS=${save_LDFLAGS}
14960 LIBS=${save_LIBS}
14961
14962 if test "x${__opj_prefix}" = "x" ; then
14963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
14964 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
14965 else
14966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
14967 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
14968 fi
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14970 $as_echo "${__opj_have_dep}" >&6; }
14971
14972 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14973    if test "x${Z_CFLAGS}" = "x" ; then
14974       Z_CFLAGS="-I${__opj_prefix}/include"
14975    fi
14976    if test "x${Z_LIBS}" = "x" ; then
14977       Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14978    fi
14979 fi
14980
14981 if test "x${__opj_have_dep}" = "xyes"; then :
14982   __opj_have_dep="yes"
14983 else
14984   __opj_have_dep="no"
14985 fi
14986
14987
14988
14989
14990
14991 fi
14992
14993
14994
14995
14996
14997
14998 if test "x${__opj_have_dep}" = "xyes"; then :
14999
15000
15001
15002
15003
15004 __opj_have_dep="no"
15005
15006
15007
15008
15009
15010
15011 __opj_prefix=
15012 __opj_header=png.h
15013 __opj_lib=png
15014 __opj_func=png_access_version_number
15015 __opj_have_dep="no"
15016
15017 save_CPPFLAGS=${CPPFLAGS}
15018 save_LDFLAGS=${LDFLAGS}
15019 save_LIBS=${LIBS}
15020
15021 if test "x${__opj_prefix}" = "x" ; then
15022    CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
15023    LDFLAGS="${LDFLAGS} $PNG_LIBS"
15024 else
15025    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15026    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15027    LIBS="${LIBS} -l${__opj_lib}"
15028 fi
15029
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h.  */
15032
15033 #include <${__opj_header}>
15034
15035 int
15036 main ()
15037 {
15038
15039 ${__opj_func}();
15040
15041   ;
15042   return 0;
15043 }
15044 _ACEOF
15045 if ac_fn_c_try_link "$LINENO"; then :
15046   __opj_have_dep="yes"
15047 else
15048   __opj_have_dep="no"
15049 fi
15050 rm -f core conftest.err conftest.$ac_objext \
15051     conftest$ac_exeext conftest.$ac_ext
15052
15053 CPPFLAGS=${save_CPPFLAGS}
15054 LDFLAGS=${save_LDFLAGS}
15055 LIBS=${save_LIBS}
15056
15057 if test "x${__opj_prefix}" = "x" ; then
15058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
15059 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
15060 else
15061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
15062 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
15063 fi
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15065 $as_echo "${__opj_have_dep}" >&6; }
15066
15067 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15068    if test "x${PNG_CFLAGS}" = "x" ; then
15069       PNG_CFLAGS="-I${__opj_prefix}/include"
15070    fi
15071    if test "x${PNG_LIBS}" = "x" ; then
15072       PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15073    fi
15074 fi
15075
15076 if test "x${__opj_have_dep}" = "xyes"; then :
15077   __opj_have_dep="yes"
15078 else
15079   __opj_have_dep="no"
15080 fi
15081
15082
15083
15084
15085
15086
15087 if ! test "x${__opj_have_dep}" = "xyes" ; then
15088
15089
15090
15091
15092
15093 __opj_prefix=/usr
15094 __opj_header=png.h
15095 __opj_lib=png
15096 __opj_func=png_access_version_number
15097 __opj_have_dep="no"
15098
15099 save_CPPFLAGS=${CPPFLAGS}
15100 save_LDFLAGS=${LDFLAGS}
15101 save_LIBS=${LIBS}
15102
15103 if test "x${__opj_prefix}" = "x" ; then
15104    CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
15105    LDFLAGS="${LDFLAGS} $PNG_LIBS"
15106 else
15107    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15108    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15109    LIBS="${LIBS} -l${__opj_lib}"
15110 fi
15111
15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h.  */
15114
15115 #include <${__opj_header}>
15116
15117 int
15118 main ()
15119 {
15120
15121 ${__opj_func}();
15122
15123   ;
15124   return 0;
15125 }
15126 _ACEOF
15127 if ac_fn_c_try_link "$LINENO"; then :
15128   __opj_have_dep="yes"
15129 else
15130   __opj_have_dep="no"
15131 fi
15132 rm -f core conftest.err conftest.$ac_objext \
15133     conftest$ac_exeext conftest.$ac_ext
15134
15135 CPPFLAGS=${save_CPPFLAGS}
15136 LDFLAGS=${save_LDFLAGS}
15137 LIBS=${save_LIBS}
15138
15139 if test "x${__opj_prefix}" = "x" ; then
15140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
15141 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
15142 else
15143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
15144 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
15145 fi
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15147 $as_echo "${__opj_have_dep}" >&6; }
15148
15149 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15150    if test "x${PNG_CFLAGS}" = "x" ; then
15151       PNG_CFLAGS="-I${__opj_prefix}/include"
15152    fi
15153    if test "x${PNG_LIBS}" = "x" ; then
15154       PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15155    fi
15156 fi
15157
15158 if test "x${__opj_have_dep}" = "xyes"; then :
15159   __opj_have_dep="yes"
15160 else
15161   __opj_have_dep="no"
15162 fi
15163
15164
15165
15166
15167
15168 fi
15169
15170 if ! test "x${__opj_have_dep}" = "xyes" ; then
15171
15172
15173
15174
15175
15176 __opj_prefix=/usr/local
15177 __opj_header=png.h
15178 __opj_lib=png
15179 __opj_func=png_access_version_number
15180 __opj_have_dep="no"
15181
15182 save_CPPFLAGS=${CPPFLAGS}
15183 save_LDFLAGS=${LDFLAGS}
15184 save_LIBS=${LIBS}
15185
15186 if test "x${__opj_prefix}" = "x" ; then
15187    CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
15188    LDFLAGS="${LDFLAGS} $PNG_LIBS"
15189 else
15190    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15191    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15192    LIBS="${LIBS} -l${__opj_lib}"
15193 fi
15194
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h.  */
15197
15198 #include <${__opj_header}>
15199
15200 int
15201 main ()
15202 {
15203
15204 ${__opj_func}();
15205
15206   ;
15207   return 0;
15208 }
15209 _ACEOF
15210 if ac_fn_c_try_link "$LINENO"; then :
15211   __opj_have_dep="yes"
15212 else
15213   __opj_have_dep="no"
15214 fi
15215 rm -f core conftest.err conftest.$ac_objext \
15216     conftest$ac_exeext conftest.$ac_ext
15217
15218 CPPFLAGS=${save_CPPFLAGS}
15219 LDFLAGS=${save_LDFLAGS}
15220 LIBS=${save_LIBS}
15221
15222 if test "x${__opj_prefix}" = "x" ; then
15223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
15224 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
15225 else
15226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
15227 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
15228 fi
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15230 $as_echo "${__opj_have_dep}" >&6; }
15231
15232 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15233    if test "x${PNG_CFLAGS}" = "x" ; then
15234       PNG_CFLAGS="-I${__opj_prefix}/include"
15235    fi
15236    if test "x${PNG_LIBS}" = "x" ; then
15237       PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15238    fi
15239 fi
15240
15241 if test "x${__opj_have_dep}" = "xyes"; then :
15242   __opj_have_dep="yes"
15243 else
15244   __opj_have_dep="no"
15245 fi
15246
15247
15248
15249
15250
15251 fi
15252
15253 if ! test "x${__opj_have_dep}" = "xyes" ; then
15254
15255
15256
15257
15258
15259 __opj_prefix=/opt/local
15260 __opj_header=png.h
15261 __opj_lib=png
15262 __opj_func=png_access_version_number
15263 __opj_have_dep="no"
15264
15265 save_CPPFLAGS=${CPPFLAGS}
15266 save_LDFLAGS=${LDFLAGS}
15267 save_LIBS=${LIBS}
15268
15269 if test "x${__opj_prefix}" = "x" ; then
15270    CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
15271    LDFLAGS="${LDFLAGS} $PNG_LIBS"
15272 else
15273    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15274    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15275    LIBS="${LIBS} -l${__opj_lib}"
15276 fi
15277
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h.  */
15280
15281 #include <${__opj_header}>
15282
15283 int
15284 main ()
15285 {
15286
15287 ${__opj_func}();
15288
15289   ;
15290   return 0;
15291 }
15292 _ACEOF
15293 if ac_fn_c_try_link "$LINENO"; then :
15294   __opj_have_dep="yes"
15295 else
15296   __opj_have_dep="no"
15297 fi
15298 rm -f core conftest.err conftest.$ac_objext \
15299     conftest$ac_exeext conftest.$ac_ext
15300
15301 CPPFLAGS=${save_CPPFLAGS}
15302 LDFLAGS=${save_LDFLAGS}
15303 LIBS=${save_LIBS}
15304
15305 if test "x${__opj_prefix}" = "x" ; then
15306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
15307 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
15308 else
15309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
15310 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
15311 fi
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15313 $as_echo "${__opj_have_dep}" >&6; }
15314
15315 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15316    if test "x${PNG_CFLAGS}" = "x" ; then
15317       PNG_CFLAGS="-I${__opj_prefix}/include"
15318    fi
15319    if test "x${PNG_LIBS}" = "x" ; then
15320       PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15321    fi
15322 fi
15323
15324 if test "x${__opj_have_dep}" = "xyes"; then :
15325   __opj_have_dep="yes"
15326 else
15327   __opj_have_dep="no"
15328 fi
15329
15330
15331
15332
15333
15334 fi
15335
15336
15337
15338
15339
15340
15341 if test "x${__opj_have_dep}" = "xyes"; then :
15342
15343               have_libpng="yes"
15344               PNG_CFLAGS="${PNG_CFLAGS} ${Z_CFLAGS}"
15345               PNG_LIBS="${PNG_LIBS} ${Z_LIBS}"
15346
15347 else
15348   have_libpng="no"
15349 fi
15350
15351
15352
15353
15354
15355 else
15356   have_libpng="no"
15357 fi
15358
15359
15360
15361
15362
15363    fi
15364
15365    if test "x${have_libpng}" = "xno" ; then
15366       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find a usuable PNG library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&5
15367 $as_echo "$as_me: WARNING: Can not find a usuable PNG library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&2;}
15368    fi
15369
15370 fi
15371
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG is available" >&5
15373 $as_echo_n "checking whether PNG is available... " >&6; }
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_libpng}" >&5
15375 $as_echo "${have_libpng}" >&6; }
15376
15377 if test "x${have_libpng}" = "xyes" ; then
15378
15379 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
15380
15381 fi
15382
15383  if test x${have_libpng} = "xyes"; then
15384   with_libpng_TRUE=
15385   with_libpng_FALSE='#'
15386 else
15387   with_libpng_TRUE='#'
15388   with_libpng_FALSE=
15389 fi
15390
15391
15392 # libtiff
15393
15394 have_libtiff="no"
15395
15396 # Check whether --enable-tiff was given.
15397 if test "${enable_tiff+set}" = set; then :
15398   enableval=$enable_tiff;
15399     if test "x${enableval}" = "xyes" ; then
15400        want_tiff="yes"
15401     else
15402        want_tiff="no"
15403     fi
15404
15405 else
15406   want_tiff="yes"
15407 fi
15408
15409
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
15411 $as_echo_n "checking whether to build with TIFF support... " >&6; }
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_tiff}" >&5
15413 $as_echo "${want_tiff}" >&6; }
15414
15415 if test "x${want_tiff}" = "xyes" ; then
15416
15417
15418
15419
15420
15421 __opj_have_dep="no"
15422
15423
15424
15425
15426
15427
15428 __opj_prefix=
15429 __opj_header=tiff.h
15430 __opj_lib=tiff
15431 __opj_func=TIFFOpen
15432 __opj_have_dep="no"
15433
15434 save_CPPFLAGS=${CPPFLAGS}
15435 save_LDFLAGS=${LDFLAGS}
15436 save_LIBS=${LIBS}
15437
15438 if test "x${__opj_prefix}" = "x" ; then
15439    CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
15440    LDFLAGS="${LDFLAGS} $TIFF_LIBS"
15441 else
15442    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15443    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15444    LIBS="${LIBS} -l${__opj_lib}"
15445 fi
15446
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h.  */
15449
15450 #include <${__opj_header}>
15451
15452 int
15453 main ()
15454 {
15455
15456 ${__opj_func}();
15457
15458   ;
15459   return 0;
15460 }
15461 _ACEOF
15462 if ac_fn_c_try_link "$LINENO"; then :
15463   __opj_have_dep="yes"
15464 else
15465   __opj_have_dep="no"
15466 fi
15467 rm -f core conftest.err conftest.$ac_objext \
15468     conftest$ac_exeext conftest.$ac_ext
15469
15470 CPPFLAGS=${save_CPPFLAGS}
15471 LDFLAGS=${save_LDFLAGS}
15472 LIBS=${save_LIBS}
15473
15474 if test "x${__opj_prefix}" = "x" ; then
15475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
15476 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
15477 else
15478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
15479 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
15480 fi
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15482 $as_echo "${__opj_have_dep}" >&6; }
15483
15484 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15485    if test "x${TIFF_CFLAGS}" = "x" ; then
15486       TIFF_CFLAGS="-I${__opj_prefix}/include"
15487    fi
15488    if test "x${TIFF_LIBS}" = "x" ; then
15489       TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15490    fi
15491 fi
15492
15493 if test "x${__opj_have_dep}" = "xyes"; then :
15494   __opj_have_dep="yes"
15495 else
15496   __opj_have_dep="no"
15497 fi
15498
15499
15500
15501
15502
15503
15504 if ! test "x${__opj_have_dep}" = "xyes" ; then
15505
15506
15507
15508
15509
15510 __opj_prefix=/usr
15511 __opj_header=tiff.h
15512 __opj_lib=tiff
15513 __opj_func=TIFFOpen
15514 __opj_have_dep="no"
15515
15516 save_CPPFLAGS=${CPPFLAGS}
15517 save_LDFLAGS=${LDFLAGS}
15518 save_LIBS=${LIBS}
15519
15520 if test "x${__opj_prefix}" = "x" ; then
15521    CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
15522    LDFLAGS="${LDFLAGS} $TIFF_LIBS"
15523 else
15524    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15525    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15526    LIBS="${LIBS} -l${__opj_lib}"
15527 fi
15528
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h.  */
15531
15532 #include <${__opj_header}>
15533
15534 int
15535 main ()
15536 {
15537
15538 ${__opj_func}();
15539
15540   ;
15541   return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_link "$LINENO"; then :
15545   __opj_have_dep="yes"
15546 else
15547   __opj_have_dep="no"
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext \
15550     conftest$ac_exeext conftest.$ac_ext
15551
15552 CPPFLAGS=${save_CPPFLAGS}
15553 LDFLAGS=${save_LDFLAGS}
15554 LIBS=${save_LIBS}
15555
15556 if test "x${__opj_prefix}" = "x" ; then
15557    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
15558 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
15559 else
15560    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
15561 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
15562 fi
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15564 $as_echo "${__opj_have_dep}" >&6; }
15565
15566 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15567    if test "x${TIFF_CFLAGS}" = "x" ; then
15568       TIFF_CFLAGS="-I${__opj_prefix}/include"
15569    fi
15570    if test "x${TIFF_LIBS}" = "x" ; then
15571       TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15572    fi
15573 fi
15574
15575 if test "x${__opj_have_dep}" = "xyes"; then :
15576   __opj_have_dep="yes"
15577 else
15578   __opj_have_dep="no"
15579 fi
15580
15581
15582
15583
15584
15585 fi
15586
15587 if ! test "x${__opj_have_dep}" = "xyes" ; then
15588
15589
15590
15591
15592
15593 __opj_prefix=/usr/local
15594 __opj_header=tiff.h
15595 __opj_lib=tiff
15596 __opj_func=TIFFOpen
15597 __opj_have_dep="no"
15598
15599 save_CPPFLAGS=${CPPFLAGS}
15600 save_LDFLAGS=${LDFLAGS}
15601 save_LIBS=${LIBS}
15602
15603 if test "x${__opj_prefix}" = "x" ; then
15604    CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
15605    LDFLAGS="${LDFLAGS} $TIFF_LIBS"
15606 else
15607    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15608    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15609    LIBS="${LIBS} -l${__opj_lib}"
15610 fi
15611
15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15613 /* end confdefs.h.  */
15614
15615 #include <${__opj_header}>
15616
15617 int
15618 main ()
15619 {
15620
15621 ${__opj_func}();
15622
15623   ;
15624   return 0;
15625 }
15626 _ACEOF
15627 if ac_fn_c_try_link "$LINENO"; then :
15628   __opj_have_dep="yes"
15629 else
15630   __opj_have_dep="no"
15631 fi
15632 rm -f core conftest.err conftest.$ac_objext \
15633     conftest$ac_exeext conftest.$ac_ext
15634
15635 CPPFLAGS=${save_CPPFLAGS}
15636 LDFLAGS=${save_LDFLAGS}
15637 LIBS=${save_LIBS}
15638
15639 if test "x${__opj_prefix}" = "x" ; then
15640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
15641 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
15642 else
15643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
15644 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
15645 fi
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15647 $as_echo "${__opj_have_dep}" >&6; }
15648
15649 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15650    if test "x${TIFF_CFLAGS}" = "x" ; then
15651       TIFF_CFLAGS="-I${__opj_prefix}/include"
15652    fi
15653    if test "x${TIFF_LIBS}" = "x" ; then
15654       TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15655    fi
15656 fi
15657
15658 if test "x${__opj_have_dep}" = "xyes"; then :
15659   __opj_have_dep="yes"
15660 else
15661   __opj_have_dep="no"
15662 fi
15663
15664
15665
15666
15667
15668 fi
15669
15670 if ! test "x${__opj_have_dep}" = "xyes" ; then
15671
15672
15673
15674
15675
15676 __opj_prefix=/opt/local
15677 __opj_header=tiff.h
15678 __opj_lib=tiff
15679 __opj_func=TIFFOpen
15680 __opj_have_dep="no"
15681
15682 save_CPPFLAGS=${CPPFLAGS}
15683 save_LDFLAGS=${LDFLAGS}
15684 save_LIBS=${LIBS}
15685
15686 if test "x${__opj_prefix}" = "x" ; then
15687    CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
15688    LDFLAGS="${LDFLAGS} $TIFF_LIBS"
15689 else
15690    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15691    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15692    LIBS="${LIBS} -l${__opj_lib}"
15693 fi
15694
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h.  */
15697
15698 #include <${__opj_header}>
15699
15700 int
15701 main ()
15702 {
15703
15704 ${__opj_func}();
15705
15706   ;
15707   return 0;
15708 }
15709 _ACEOF
15710 if ac_fn_c_try_link "$LINENO"; then :
15711   __opj_have_dep="yes"
15712 else
15713   __opj_have_dep="no"
15714 fi
15715 rm -f core conftest.err conftest.$ac_objext \
15716     conftest$ac_exeext conftest.$ac_ext
15717
15718 CPPFLAGS=${save_CPPFLAGS}
15719 LDFLAGS=${save_LDFLAGS}
15720 LIBS=${save_LIBS}
15721
15722 if test "x${__opj_prefix}" = "x" ; then
15723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
15724 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
15725 else
15726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
15727 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
15728 fi
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15730 $as_echo "${__opj_have_dep}" >&6; }
15731
15732 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15733    if test "x${TIFF_CFLAGS}" = "x" ; then
15734       TIFF_CFLAGS="-I${__opj_prefix}/include"
15735    fi
15736    if test "x${TIFF_LIBS}" = "x" ; then
15737       TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15738    fi
15739 fi
15740
15741 if test "x${__opj_have_dep}" = "xyes"; then :
15742   __opj_have_dep="yes"
15743 else
15744   __opj_have_dep="no"
15745 fi
15746
15747
15748
15749
15750
15751 fi
15752
15753
15754
15755
15756
15757
15758 if test "x${__opj_have_dep}" = "xyes"; then :
15759   have_libtiff="yes"
15760 else
15761   have_libtiff="no"
15762 fi
15763
15764
15765
15766
15767
15768    if test "x${have_libtiff}" = "xno" ; then
15769       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find a usuable TIFF library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&5
15770 $as_echo "$as_me: WARNING: Can not find a usuable TIFF library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&2;}
15771    fi
15772 fi
15773
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF is available" >&5
15775 $as_echo_n "checking whether TIFF is available... " >&6; }
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_libtiff}" >&5
15777 $as_echo "${have_libtiff}" >&6; }
15778
15779 if test "x${have_libtiff}" = "xyes" ; then
15780
15781 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15782
15783 fi
15784
15785  if test "x${have_libtiff}" = "xyes"; then
15786   with_libtiff_TRUE=
15787   with_libtiff_FALSE='#'
15788 else
15789   with_libtiff_TRUE='#'
15790   with_libtiff_FALSE=
15791 fi
15792
15793
15794 # libcms2
15795
15796 lcms_output="no"
15797 have_lcms2="no"
15798
15799 # Check whether --enable-lcms2 was given.
15800 if test "${enable_lcms2+set}" = set; then :
15801   enableval=$enable_lcms2;
15802     if test "x${enableval}" = "xyes" ; then
15803        want_lcms2="yes"
15804     else
15805        want_lcms2="no"
15806     fi
15807
15808 else
15809   want_lcms2="yes"
15810 fi
15811
15812
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS-2 support" >&5
15814 $as_echo_n "checking whether to build with LCMS-2 support... " >&6; }
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_lcms2}" >&5
15816 $as_echo "${want_lcms2}" >&6; }
15817
15818 if test "x${want_lcms2}" = "xyes" ; then
15819
15820 pkg_failed=no
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
15822 $as_echo_n "checking for LCMS2... " >&6; }
15823
15824 if test -n "$LCMS2_CFLAGS"; then
15825     pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
15826  elif test -n "$PKG_CONFIG"; then
15827     if test -n "$PKG_CONFIG" && \
15828     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
15829   ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
15830   ac_status=$?
15831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15832   test $ac_status = 0; }; then
15833   pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
15834 else
15835   pkg_failed=yes
15836 fi
15837  else
15838     pkg_failed=untried
15839 fi
15840 if test -n "$LCMS2_LIBS"; then
15841     pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
15842  elif test -n "$PKG_CONFIG"; then
15843     if test -n "$PKG_CONFIG" && \
15844     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
15845   ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
15846   ac_status=$?
15847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15848   test $ac_status = 0; }; then
15849   pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
15850 else
15851   pkg_failed=yes
15852 fi
15853  else
15854     pkg_failed=untried
15855 fi
15856
15857
15858
15859 if test $pkg_failed = yes; then
15860         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861 $as_echo "no" >&6; }
15862
15863 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15864         _pkg_short_errors_supported=yes
15865 else
15866         _pkg_short_errors_supported=no
15867 fi
15868         if test $_pkg_short_errors_supported = yes; then
15869                 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1`
15870         else
15871                 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1`
15872         fi
15873         # Put the nasty error message in config.log where it belongs
15874         echo "$LCMS2_PKG_ERRORS" >&5
15875
15876         have_lcms2="no"
15877 elif test $pkg_failed = untried; then
15878         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15879 $as_echo "no" >&6; }
15880         have_lcms2="no"
15881 else
15882         LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
15883         LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
15884         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15885 $as_echo "yes" >&6; }
15886         have_lcms2="yes"
15887 fi
15888 fi
15889
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LCMS-2 is available" >&5
15891 $as_echo_n "checking whether LCMS-2 is available... " >&6; }
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_lcms2}" >&5
15893 $as_echo "${have_lcms2}" >&6; }
15894
15895 if test "x${have_lcms2}" = "xyes" ; then
15896
15897 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
15898
15899    lcms_output="lcms version 2.x"
15900 fi
15901
15902 # libcms1
15903
15904 # Check whether --enable-lcms1 was given.
15905 if test "${enable_lcms1+set}" = set; then :
15906   enableval=$enable_lcms1;
15907     if test "x${enableval}" = "xyes" ; then
15908        want_lcms1="yes"
15909     else
15910        want_lcms1="no"
15911     fi
15912
15913 else
15914   want_lcms1="yes"
15915 fi
15916
15917
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS-1 support" >&5
15919 $as_echo_n "checking whether to build with LCMS-1 support... " >&6; }
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_lcms1}" >&5
15921 $as_echo "${want_lcms1}" >&6; }
15922
15923 if test "x${have_lcms2}" = "xno" ; then
15924
15925    if test "x${want_lcms1}" = "xyes" ; then
15926
15927 pkg_failed=no
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
15929 $as_echo_n "checking for LCMS1... " >&6; }
15930
15931 if test -n "$LCMS1_CFLAGS"; then
15932     pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
15933  elif test -n "$PKG_CONFIG"; then
15934     if test -n "$PKG_CONFIG" && \
15935     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms1\""; } >&5
15936   ($PKG_CONFIG --exists --print-errors "lcms1") 2>&5
15937   ac_status=$?
15938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15939   test $ac_status = 0; }; then
15940   pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms1" 2>/dev/null`
15941 else
15942   pkg_failed=yes
15943 fi
15944  else
15945     pkg_failed=untried
15946 fi
15947 if test -n "$LCMS1_LIBS"; then
15948     pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
15949  elif test -n "$PKG_CONFIG"; then
15950     if test -n "$PKG_CONFIG" && \
15951     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms1\""; } >&5
15952   ($PKG_CONFIG --exists --print-errors "lcms1") 2>&5
15953   ac_status=$?
15954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15955   test $ac_status = 0; }; then
15956   pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms1" 2>/dev/null`
15957 else
15958   pkg_failed=yes
15959 fi
15960  else
15961     pkg_failed=untried
15962 fi
15963
15964
15965
15966 if test $pkg_failed = yes; then
15967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968 $as_echo "no" >&6; }
15969
15970 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15971         _pkg_short_errors_supported=yes
15972 else
15973         _pkg_short_errors_supported=no
15974 fi
15975         if test $_pkg_short_errors_supported = yes; then
15976                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms1" 2>&1`
15977         else
15978                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms1" 2>&1`
15979         fi
15980         # Put the nasty error message in config.log where it belongs
15981         echo "$LCMS1_PKG_ERRORS" >&5
15982
15983
15984 pkg_failed=no
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
15986 $as_echo_n "checking for LCMS1... " >&6; }
15987
15988 if test -n "$LCMS1_CFLAGS"; then
15989     pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
15990  elif test -n "$PKG_CONFIG"; then
15991     if test -n "$PKG_CONFIG" && \
15992     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
15993   ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
15994   ac_status=$?
15995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15996   test $ac_status = 0; }; then
15997   pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
15998 else
15999   pkg_failed=yes
16000 fi
16001  else
16002     pkg_failed=untried
16003 fi
16004 if test -n "$LCMS1_LIBS"; then
16005     pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
16006  elif test -n "$PKG_CONFIG"; then
16007     if test -n "$PKG_CONFIG" && \
16008     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
16009   ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
16010   ac_status=$?
16011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16012   test $ac_status = 0; }; then
16013   pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
16014 else
16015   pkg_failed=yes
16016 fi
16017  else
16018     pkg_failed=untried
16019 fi
16020
16021
16022
16023 if test $pkg_failed = yes; then
16024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025 $as_echo "no" >&6; }
16026
16027 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16028         _pkg_short_errors_supported=yes
16029 else
16030         _pkg_short_errors_supported=no
16031 fi
16032         if test $_pkg_short_errors_supported = yes; then
16033                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1`
16034         else
16035                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1`
16036         fi
16037         # Put the nasty error message in config.log where it belongs
16038         echo "$LCMS1_PKG_ERRORS" >&5
16039
16040         have_lcms1="no"
16041 elif test $pkg_failed = untried; then
16042         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16043 $as_echo "no" >&6; }
16044         have_lcms1="no"
16045 else
16046         LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
16047         LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
16048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16049 $as_echo "yes" >&6; }
16050         have_lcms1="yes"
16051 fi
16052 elif test $pkg_failed = untried; then
16053         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16054 $as_echo "no" >&6; }
16055
16056 pkg_failed=no
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
16058 $as_echo_n "checking for LCMS1... " >&6; }
16059
16060 if test -n "$LCMS1_CFLAGS"; then
16061     pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
16062  elif test -n "$PKG_CONFIG"; then
16063     if test -n "$PKG_CONFIG" && \
16064     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
16065   ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
16066   ac_status=$?
16067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16068   test $ac_status = 0; }; then
16069   pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
16070 else
16071   pkg_failed=yes
16072 fi
16073  else
16074     pkg_failed=untried
16075 fi
16076 if test -n "$LCMS1_LIBS"; then
16077     pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
16078  elif test -n "$PKG_CONFIG"; then
16079     if test -n "$PKG_CONFIG" && \
16080     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
16081   ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
16082   ac_status=$?
16083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16084   test $ac_status = 0; }; then
16085   pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
16086 else
16087   pkg_failed=yes
16088 fi
16089  else
16090     pkg_failed=untried
16091 fi
16092
16093
16094
16095 if test $pkg_failed = yes; then
16096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 $as_echo "no" >&6; }
16098
16099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16100         _pkg_short_errors_supported=yes
16101 else
16102         _pkg_short_errors_supported=no
16103 fi
16104         if test $_pkg_short_errors_supported = yes; then
16105                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1`
16106         else
16107                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1`
16108         fi
16109         # Put the nasty error message in config.log where it belongs
16110         echo "$LCMS1_PKG_ERRORS" >&5
16111
16112         have_lcms1="no"
16113 elif test $pkg_failed = untried; then
16114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115 $as_echo "no" >&6; }
16116         have_lcms1="no"
16117 else
16118         LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
16119         LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
16120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16121 $as_echo "yes" >&6; }
16122         have_lcms1="yes"
16123 fi
16124 else
16125         LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
16126         LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
16127         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16128 $as_echo "yes" >&6; }
16129         have_lcms1="yes"
16130 fi
16131    fi
16132
16133    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LCMS-1 is available" >&5
16134 $as_echo_n "checking whether LCMS-1 is available... " >&6; }
16135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_lcms1}" >&5
16136 $as_echo "${have_lcms1}" >&6; }
16137
16138    if test "x${have_lcms1}" = "xyes" ; then
16139
16140 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
16141
16142       lcms_output="lcms version 1.x"
16143    fi
16144
16145 fi
16146
16147 # threads
16148
16149 if test "x${want_jpip_server}" = "xyes" ; then
16150
16151    if test "x${have_win32}" = "xno" ; then
16152
16153       SAVE_CFLAGS=${CFLAGS}
16154       CFLAGS="${CFLAGS} -pthread"
16155       SAVE_LIBS=${LIBS}
16156       LIBS="${LIBS} -pthread"
16157       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h.  */
16159
16160 #include <pthread.h>
16161
16162 int
16163 main ()
16164 {
16165
16166 pthread_t id;
16167 id = pthread_self();
16168
16169   ;
16170   return 0;
16171 }
16172 _ACEOF
16173 if ac_fn_c_try_link "$LINENO"; then :
16174   have_pthread="yes"
16175 else
16176   have_pthread="no"
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext \
16179     conftest$ac_exeext conftest.$ac_ext
16180       CFLAGS=${SAVE_CFLAGS}
16181       LIBS=${SAVE_LIBS}
16182
16183       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Pthread library is available" >&5
16184 $as_echo_n "checking whether Pthread library is available... " >&6; }
16185       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_pthread}" >&5
16186 $as_echo "${have_pthread}" >&6; }
16187
16188       if ! test "x${have_pthread}" = "xyes" ; then
16189          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Pthread library not found. OpenJPIP server will not be compiled." >&5
16190 $as_echo "$as_me: WARNING: Pthread library not found. OpenJPIP server will not be compiled." >&2;}
16191          want_jpip_server="no"
16192       else
16193          THREAD_CFLAGS="-pthread"
16194          THREAD_LIBS="-pthread"
16195       fi
16196
16197    else
16198       THREAD_LIBS="-lws2_32"
16199    fi
16200
16201 fi
16202
16203
16204
16205
16206
16207
16208 # libfcgi
16209
16210 if test "x${want_jpip_server}" = "xyes" ; then
16211
16212    have_fcgi="no"
16213
16214
16215
16216
16217 __opj_have_dep="no"
16218
16219
16220
16221
16222
16223
16224 __opj_prefix=
16225 __opj_header=fcgi_stdio.h
16226 __opj_lib=fcgi
16227 __opj_func=FCGI_Accept
16228 __opj_have_dep="no"
16229
16230 save_CPPFLAGS=${CPPFLAGS}
16231 save_LDFLAGS=${LDFLAGS}
16232 save_LIBS=${LIBS}
16233
16234 if test "x${__opj_prefix}" = "x" ; then
16235    CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
16236    LDFLAGS="${LDFLAGS} $FCGI_LIBS"
16237 else
16238    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
16239    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
16240    LIBS="${LIBS} -l${__opj_lib}"
16241 fi
16242
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h.  */
16245
16246 #include <${__opj_header}>
16247
16248 int
16249 main ()
16250 {
16251
16252 ${__opj_func}();
16253
16254   ;
16255   return 0;
16256 }
16257 _ACEOF
16258 if ac_fn_c_try_link "$LINENO"; then :
16259   __opj_have_dep="yes"
16260 else
16261   __opj_have_dep="no"
16262 fi
16263 rm -f core conftest.err conftest.$ac_objext \
16264     conftest$ac_exeext conftest.$ac_ext
16265
16266 CPPFLAGS=${save_CPPFLAGS}
16267 LDFLAGS=${save_LDFLAGS}
16268 LIBS=${save_LIBS}
16269
16270 if test "x${__opj_prefix}" = "x" ; then
16271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
16272 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
16273 else
16274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
16275 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
16276 fi
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
16278 $as_echo "${__opj_have_dep}" >&6; }
16279
16280 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
16281    if test "x${FCGI_CFLAGS}" = "x" ; then
16282       FCGI_CFLAGS="-I${__opj_prefix}/include"
16283    fi
16284    if test "x${FCGI_LIBS}" = "x" ; then
16285       FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
16286    fi
16287 fi
16288
16289 if test "x${__opj_have_dep}" = "xyes"; then :
16290   __opj_have_dep="yes"
16291 else
16292   __opj_have_dep="no"
16293 fi
16294
16295
16296
16297
16298
16299
16300 if ! test "x${__opj_have_dep}" = "xyes" ; then
16301
16302
16303
16304
16305
16306 __opj_prefix=/usr
16307 __opj_header=fcgi_stdio.h
16308 __opj_lib=fcgi
16309 __opj_func=FCGI_Accept
16310 __opj_have_dep="no"
16311
16312 save_CPPFLAGS=${CPPFLAGS}
16313 save_LDFLAGS=${LDFLAGS}
16314 save_LIBS=${LIBS}
16315
16316 if test "x${__opj_prefix}" = "x" ; then
16317    CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
16318    LDFLAGS="${LDFLAGS} $FCGI_LIBS"
16319 else
16320    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
16321    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
16322    LIBS="${LIBS} -l${__opj_lib}"
16323 fi
16324
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h.  */
16327
16328 #include <${__opj_header}>
16329
16330 int
16331 main ()
16332 {
16333
16334 ${__opj_func}();
16335
16336   ;
16337   return 0;
16338 }
16339 _ACEOF
16340 if ac_fn_c_try_link "$LINENO"; then :
16341   __opj_have_dep="yes"
16342 else
16343   __opj_have_dep="no"
16344 fi
16345 rm -f core conftest.err conftest.$ac_objext \
16346     conftest$ac_exeext conftest.$ac_ext
16347
16348 CPPFLAGS=${save_CPPFLAGS}
16349 LDFLAGS=${save_LDFLAGS}
16350 LIBS=${save_LIBS}
16351
16352 if test "x${__opj_prefix}" = "x" ; then
16353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
16354 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
16355 else
16356    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
16357 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
16358 fi
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
16360 $as_echo "${__opj_have_dep}" >&6; }
16361
16362 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
16363    if test "x${FCGI_CFLAGS}" = "x" ; then
16364       FCGI_CFLAGS="-I${__opj_prefix}/include"
16365    fi
16366    if test "x${FCGI_LIBS}" = "x" ; then
16367       FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
16368    fi
16369 fi
16370
16371 if test "x${__opj_have_dep}" = "xyes"; then :
16372   __opj_have_dep="yes"
16373 else
16374   __opj_have_dep="no"
16375 fi
16376
16377
16378
16379
16380
16381 fi
16382
16383 if ! test "x${__opj_have_dep}" = "xyes" ; then
16384
16385
16386
16387
16388
16389 __opj_prefix=/usr/local
16390 __opj_header=fcgi_stdio.h
16391 __opj_lib=fcgi
16392 __opj_func=FCGI_Accept
16393 __opj_have_dep="no"
16394
16395 save_CPPFLAGS=${CPPFLAGS}
16396 save_LDFLAGS=${LDFLAGS}
16397 save_LIBS=${LIBS}
16398
16399 if test "x${__opj_prefix}" = "x" ; then
16400    CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
16401    LDFLAGS="${LDFLAGS} $FCGI_LIBS"
16402 else
16403    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
16404    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
16405    LIBS="${LIBS} -l${__opj_lib}"
16406 fi
16407
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h.  */
16410
16411 #include <${__opj_header}>
16412
16413 int
16414 main ()
16415 {
16416
16417 ${__opj_func}();
16418
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 if ac_fn_c_try_link "$LINENO"; then :
16424   __opj_have_dep="yes"
16425 else
16426   __opj_have_dep="no"
16427 fi
16428 rm -f core conftest.err conftest.$ac_objext \
16429     conftest$ac_exeext conftest.$ac_ext
16430
16431 CPPFLAGS=${save_CPPFLAGS}
16432 LDFLAGS=${save_LDFLAGS}
16433 LIBS=${save_LIBS}
16434
16435 if test "x${__opj_prefix}" = "x" ; then
16436    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
16437 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
16438 else
16439    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
16440 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
16441 fi
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
16443 $as_echo "${__opj_have_dep}" >&6; }
16444
16445 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
16446    if test "x${FCGI_CFLAGS}" = "x" ; then
16447       FCGI_CFLAGS="-I${__opj_prefix}/include"
16448    fi
16449    if test "x${FCGI_LIBS}" = "x" ; then
16450       FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
16451    fi
16452 fi
16453
16454 if test "x${__opj_have_dep}" = "xyes"; then :
16455   __opj_have_dep="yes"
16456 else
16457   __opj_have_dep="no"
16458 fi
16459
16460
16461
16462
16463
16464 fi
16465
16466 if ! test "x${__opj_have_dep}" = "xyes" ; then
16467
16468
16469
16470
16471
16472 __opj_prefix=/opt/local
16473 __opj_header=fcgi_stdio.h
16474 __opj_lib=fcgi
16475 __opj_func=FCGI_Accept
16476 __opj_have_dep="no"
16477
16478 save_CPPFLAGS=${CPPFLAGS}
16479 save_LDFLAGS=${LDFLAGS}
16480 save_LIBS=${LIBS}
16481
16482 if test "x${__opj_prefix}" = "x" ; then
16483    CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
16484    LDFLAGS="${LDFLAGS} $FCGI_LIBS"
16485 else
16486    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
16487    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
16488    LIBS="${LIBS} -l${__opj_lib}"
16489 fi
16490
16491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492 /* end confdefs.h.  */
16493
16494 #include <${__opj_header}>
16495
16496 int
16497 main ()
16498 {
16499
16500 ${__opj_func}();
16501
16502   ;
16503   return 0;
16504 }
16505 _ACEOF
16506 if ac_fn_c_try_link "$LINENO"; then :
16507   __opj_have_dep="yes"
16508 else
16509   __opj_have_dep="no"
16510 fi
16511 rm -f core conftest.err conftest.$ac_objext \
16512     conftest$ac_exeext conftest.$ac_ext
16513
16514 CPPFLAGS=${save_CPPFLAGS}
16515 LDFLAGS=${save_LDFLAGS}
16516 LIBS=${save_LIBS}
16517
16518 if test "x${__opj_prefix}" = "x" ; then
16519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
16520 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
16521 else
16522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
16523 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
16524 fi
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
16526 $as_echo "${__opj_have_dep}" >&6; }
16527
16528 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
16529    if test "x${FCGI_CFLAGS}" = "x" ; then
16530       FCGI_CFLAGS="-I${__opj_prefix}/include"
16531    fi
16532    if test "x${FCGI_LIBS}" = "x" ; then
16533       FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
16534    fi
16535 fi
16536
16537 if test "x${__opj_have_dep}" = "xyes"; then :
16538   __opj_have_dep="yes"
16539 else
16540   __opj_have_dep="no"
16541 fi
16542
16543
16544
16545
16546
16547 fi
16548
16549
16550
16551
16552
16553
16554 if test "x${__opj_have_dep}" = "xyes"; then :
16555   have_fcgi="yes"
16556 else
16557   have_fcgi="no"
16558 fi
16559
16560
16561
16562
16563
16564    if ! test "x${have_fcgi}" = "xyes" ; then
16565       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FastCGI library not found. OpenJPIP server will not be compiled." >&5
16566 $as_echo "$as_me: WARNING: FastCGI library not found. OpenJPIP server will not be compiled." >&2;}
16567       want_jpip_server="no"
16568    fi
16569
16570 fi
16571
16572 # libcurl
16573
16574 if test "x${want_jpip_server}" = "xyes" ; then
16575
16576
16577 pkg_failed=no
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
16579 $as_echo_n "checking for LIBCURL... " >&6; }
16580
16581 if test -n "$LIBCURL_CFLAGS"; then
16582     pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
16583  elif test -n "$PKG_CONFIG"; then
16584     if test -n "$PKG_CONFIG" && \
16585     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
16586   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
16587   ac_status=$?
16588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16589   test $ac_status = 0; }; then
16590   pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
16591 else
16592   pkg_failed=yes
16593 fi
16594  else
16595     pkg_failed=untried
16596 fi
16597 if test -n "$LIBCURL_LIBS"; then
16598     pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
16599  elif test -n "$PKG_CONFIG"; then
16600     if test -n "$PKG_CONFIG" && \
16601     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
16602   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
16603   ac_status=$?
16604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16605   test $ac_status = 0; }; then
16606   pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
16607 else
16608   pkg_failed=yes
16609 fi
16610  else
16611     pkg_failed=untried
16612 fi
16613
16614
16615
16616 if test $pkg_failed = yes; then
16617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16618 $as_echo "no" >&6; }
16619
16620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16621         _pkg_short_errors_supported=yes
16622 else
16623         _pkg_short_errors_supported=no
16624 fi
16625         if test $_pkg_short_errors_supported = yes; then
16626                 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1`
16627         else
16628                 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1`
16629         fi
16630         # Put the nasty error message in config.log where it belongs
16631         echo "$LIBCURL_PKG_ERRORS" >&5
16632
16633         have_libcurl="no"
16634 elif test $pkg_failed = untried; then
16635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16636 $as_echo "no" >&6; }
16637         have_libcurl="no"
16638 else
16639         LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
16640         LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
16641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16642 $as_echo "yes" >&6; }
16643         have_libcurl="yes"
16644 fi
16645
16646    if ! test "x${have_libcurl}" = "xyes" ; then
16647       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl library not found. OpenJPIP server will not be compiled." >&5
16648 $as_echo "$as_me: WARNING: libcurl library not found. OpenJPIP server will not be compiled." >&2;}
16649       want_jpip_server="no"
16650    fi
16651
16652 fi
16653
16654 if test "x${want_jpip}" = "xyes" ; then
16655
16656 $as_echo "#define USE_JPIP 1" >>confdefs.h
16657
16658 fi
16659
16660  if test "x${want_jpip}" = "xyes"; then
16661   WANT_JPIP_TRUE=
16662   WANT_JPIP_FALSE='#'
16663 else
16664   WANT_JPIP_TRUE='#'
16665   WANT_JPIP_FALSE=
16666 fi
16667
16668
16669 if test "x${want_jpip_server}" = "xyes" ; then
16670
16671 $as_echo "#define USE_JPIP_SERVER 1" >>confdefs.h
16672
16673 fi
16674
16675  if test "x${want_jpip_server}" = "xyes"; then
16676   WANT_JPIP_SERVER_TRUE=
16677   WANT_JPIP_SERVER_FALSE='#'
16678 else
16679   WANT_JPIP_SERVER_TRUE='#'
16680   WANT_JPIP_SERVER_FALSE=
16681 fi
16682
16683
16684  if test "x${want_jpip}" = "xyes" || test "x${want_jpip_server}" = "xyes"; then
16685   WANT_JPIP_CODE_TRUE=
16686   WANT_JPIP_CODE_FALSE='#'
16687 else
16688   WANT_JPIP_CODE_TRUE='#'
16689   WANT_JPIP_CODE_FALSE=
16690 fi
16691
16692
16693 ### Checks for header files
16694
16695 ## FIXME: declarations must be fixed in source code. See autoconf manual
16696 ac_header_dirent=no
16697 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16698   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16700 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16701 if eval \${$as_ac_Header+:} false; then :
16702   $as_echo_n "(cached) " >&6
16703 else
16704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h.  */
16706 #include <sys/types.h>
16707 #include <$ac_hdr>
16708
16709 int
16710 main ()
16711 {
16712 if ((DIR *) 0)
16713 return 0;
16714   ;
16715   return 0;
16716 }
16717 _ACEOF
16718 if ac_fn_c_try_compile "$LINENO"; then :
16719   eval "$as_ac_Header=yes"
16720 else
16721   eval "$as_ac_Header=no"
16722 fi
16723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16724 fi
16725 eval ac_res=\$$as_ac_Header
16726                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16727 $as_echo "$ac_res" >&6; }
16728 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16729   cat >>confdefs.h <<_ACEOF
16730 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16731 _ACEOF
16732
16733 ac_header_dirent=$ac_hdr; break
16734 fi
16735
16736 done
16737 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16738 if test $ac_header_dirent = dirent.h; then
16739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16740 $as_echo_n "checking for library containing opendir... " >&6; }
16741 if ${ac_cv_search_opendir+:} false; then :
16742   $as_echo_n "(cached) " >&6
16743 else
16744   ac_func_search_save_LIBS=$LIBS
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h.  */
16747
16748 /* Override any GCC internal prototype to avoid an error.
16749    Use char because int might match the return type of a GCC
16750    builtin and then its argument prototype would still apply.  */
16751 #ifdef __cplusplus
16752 extern "C"
16753 #endif
16754 char opendir ();
16755 int
16756 main ()
16757 {
16758 return opendir ();
16759   ;
16760   return 0;
16761 }
16762 _ACEOF
16763 for ac_lib in '' dir; do
16764   if test -z "$ac_lib"; then
16765     ac_res="none required"
16766   else
16767     ac_res=-l$ac_lib
16768     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16769   fi
16770   if ac_fn_c_try_link "$LINENO"; then :
16771   ac_cv_search_opendir=$ac_res
16772 fi
16773 rm -f core conftest.err conftest.$ac_objext \
16774     conftest$ac_exeext
16775   if ${ac_cv_search_opendir+:} false; then :
16776   break
16777 fi
16778 done
16779 if ${ac_cv_search_opendir+:} false; then :
16780
16781 else
16782   ac_cv_search_opendir=no
16783 fi
16784 rm conftest.$ac_ext
16785 LIBS=$ac_func_search_save_LIBS
16786 fi
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16788 $as_echo "$ac_cv_search_opendir" >&6; }
16789 ac_res=$ac_cv_search_opendir
16790 if test "$ac_res" != no; then :
16791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16792
16793 fi
16794
16795 else
16796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16797 $as_echo_n "checking for library containing opendir... " >&6; }
16798 if ${ac_cv_search_opendir+:} false; then :
16799   $as_echo_n "(cached) " >&6
16800 else
16801   ac_func_search_save_LIBS=$LIBS
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h.  */
16804
16805 /* Override any GCC internal prototype to avoid an error.
16806    Use char because int might match the return type of a GCC
16807    builtin and then its argument prototype would still apply.  */
16808 #ifdef __cplusplus
16809 extern "C"
16810 #endif
16811 char opendir ();
16812 int
16813 main ()
16814 {
16815 return opendir ();
16816   ;
16817   return 0;
16818 }
16819 _ACEOF
16820 for ac_lib in '' x; do
16821   if test -z "$ac_lib"; then
16822     ac_res="none required"
16823   else
16824     ac_res=-l$ac_lib
16825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16826   fi
16827   if ac_fn_c_try_link "$LINENO"; then :
16828   ac_cv_search_opendir=$ac_res
16829 fi
16830 rm -f core conftest.err conftest.$ac_objext \
16831     conftest$ac_exeext
16832   if ${ac_cv_search_opendir+:} false; then :
16833   break
16834 fi
16835 done
16836 if ${ac_cv_search_opendir+:} false; then :
16837
16838 else
16839   ac_cv_search_opendir=no
16840 fi
16841 rm conftest.$ac_ext
16842 LIBS=$ac_func_search_save_LIBS
16843 fi
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16845 $as_echo "$ac_cv_search_opendir" >&6; }
16846 ac_res=$ac_cv_search_opendir
16847 if test "$ac_res" != no; then :
16848   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16849
16850 fi
16851
16852 fi
16853
16854
16855
16856 ### Checks for types
16857
16858
16859 ### Checks for structures
16860
16861
16862 ### Checks for compiler characteristics
16863
16864
16865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16866 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16867 if ${ac_cv_c_bigendian+:} false; then :
16868   $as_echo_n "(cached) " >&6
16869 else
16870   ac_cv_c_bigendian=unknown
16871     # See if we're dealing with a universal compiler.
16872     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h.  */
16874 #ifndef __APPLE_CC__
16875                not a universal capable compiler
16876              #endif
16877              typedef int dummy;
16878
16879 _ACEOF
16880 if ac_fn_c_try_compile "$LINENO"; then :
16881
16882         # Check for potential -arch flags.  It is not universal unless
16883         # there are at least two -arch flags with different values.
16884         ac_arch=
16885         ac_prev=
16886         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16887          if test -n "$ac_prev"; then
16888            case $ac_word in
16889              i?86 | x86_64 | ppc | ppc64)
16890                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16891                  ac_arch=$ac_word
16892                else
16893                  ac_cv_c_bigendian=universal
16894                  break
16895                fi
16896                ;;
16897            esac
16898            ac_prev=
16899          elif test "x$ac_word" = "x-arch"; then
16900            ac_prev=arch
16901          fi
16902        done
16903 fi
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16905     if test $ac_cv_c_bigendian = unknown; then
16906       # See if sys/param.h defines the BYTE_ORDER macro.
16907       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h.  */
16909 #include <sys/types.h>
16910              #include <sys/param.h>
16911
16912 int
16913 main ()
16914 {
16915 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16916                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16917                      && LITTLE_ENDIAN)
16918               bogus endian macros
16919              #endif
16920
16921   ;
16922   return 0;
16923 }
16924 _ACEOF
16925 if ac_fn_c_try_compile "$LINENO"; then :
16926   # It does; now see whether it defined to BIG_ENDIAN or not.
16927          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h.  */
16929 #include <sys/types.h>
16930                 #include <sys/param.h>
16931
16932 int
16933 main ()
16934 {
16935 #if BYTE_ORDER != BIG_ENDIAN
16936                  not big endian
16937                 #endif
16938
16939   ;
16940   return 0;
16941 }
16942 _ACEOF
16943 if ac_fn_c_try_compile "$LINENO"; then :
16944   ac_cv_c_bigendian=yes
16945 else
16946   ac_cv_c_bigendian=no
16947 fi
16948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16949 fi
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951     fi
16952     if test $ac_cv_c_bigendian = unknown; then
16953       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16954       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h.  */
16956 #include <limits.h>
16957
16958 int
16959 main ()
16960 {
16961 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16962               bogus endian macros
16963              #endif
16964
16965   ;
16966   return 0;
16967 }
16968 _ACEOF
16969 if ac_fn_c_try_compile "$LINENO"; then :
16970   # It does; now see whether it defined to _BIG_ENDIAN or not.
16971          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h.  */
16973 #include <limits.h>
16974
16975 int
16976 main ()
16977 {
16978 #ifndef _BIG_ENDIAN
16979                  not big endian
16980                 #endif
16981
16982   ;
16983   return 0;
16984 }
16985 _ACEOF
16986 if ac_fn_c_try_compile "$LINENO"; then :
16987   ac_cv_c_bigendian=yes
16988 else
16989   ac_cv_c_bigendian=no
16990 fi
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992 fi
16993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16994     fi
16995     if test $ac_cv_c_bigendian = unknown; then
16996       # Compile a test program.
16997       if test "$cross_compiling" = yes; then :
16998   # Try to guess by grepping values from an object file.
16999          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h.  */
17001 short int ascii_mm[] =
17002                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17003                 short int ascii_ii[] =
17004                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17005                 int use_ascii (int i) {
17006                   return ascii_mm[i] + ascii_ii[i];
17007                 }
17008                 short int ebcdic_ii[] =
17009                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17010                 short int ebcdic_mm[] =
17011                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17012                 int use_ebcdic (int i) {
17013                   return ebcdic_mm[i] + ebcdic_ii[i];
17014                 }
17015                 extern int foo;
17016
17017 int
17018 main ()
17019 {
17020 return use_ascii (foo) == use_ebcdic (foo);
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 if ac_fn_c_try_compile "$LINENO"; then :
17026   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17027               ac_cv_c_bigendian=yes
17028             fi
17029             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17030               if test "$ac_cv_c_bigendian" = unknown; then
17031                 ac_cv_c_bigendian=no
17032               else
17033                 # finding both strings is unlikely to happen, but who knows?
17034                 ac_cv_c_bigendian=unknown
17035               fi
17036             fi
17037 fi
17038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17039 else
17040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h.  */
17042 $ac_includes_default
17043 int
17044 main ()
17045 {
17046
17047              /* Are we little or big endian?  From Harbison&Steele.  */
17048              union
17049              {
17050                long int l;
17051                char c[sizeof (long int)];
17052              } u;
17053              u.l = 1;
17054              return u.c[sizeof (long int) - 1] == 1;
17055
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 if ac_fn_c_try_run "$LINENO"; then :
17061   ac_cv_c_bigendian=no
17062 else
17063   ac_cv_c_bigendian=yes
17064 fi
17065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17066   conftest.$ac_objext conftest.beam conftest.$ac_ext
17067 fi
17068
17069     fi
17070 fi
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17072 $as_echo "$ac_cv_c_bigendian" >&6; }
17073  case $ac_cv_c_bigendian in #(
17074    yes)
17075      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17076 ;; #(
17077    no)
17078       ;; #(
17079    universal)
17080
17081 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17082
17083      ;; #(
17084    *)
17085      as_fn_error $? "unknown endianness
17086  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17087  esac
17088
17089
17090 #OPJ_COMPILER_FLAG([-Wall])
17091 #OPJ_COMPILER_FLAG([-Wextra])
17092 #OPJ_COMPILER_FLAG([-Wshadow])
17093 #OPJ_COMPILER_FLAG([-Wpointer-arith])
17094
17095
17096 CFLAGS_save="${CFLAGS}"
17097 CFLAGS="${CFLAGS} -Wno-unused-result"
17098
17099 ac_ext=c
17100 ac_cpp='$CPP $CPPFLAGS'
17101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17104
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-unused-result" >&5
17106 $as_echo_n "checking whether the compiler supports -Wno-unused-result... " >&6; }
17107
17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109 /* end confdefs.h.  */
17110
17111 int
17112 main ()
17113 {
17114
17115   ;
17116   return 0;
17117 }
17118 _ACEOF
17119 if ac_fn_c_try_compile "$LINENO"; then :
17120   have_flag="yes"
17121 else
17122   have_flag="no"
17123 fi
17124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
17126 $as_echo "${have_flag}" >&6; }
17127
17128 if test "x${have_flag}" = "xno" ; then
17129    CFLAGS="${CFLAGS_save}"
17130 fi
17131 ac_ext=c
17132 ac_cpp='$CPP $CPPFLAGS'
17133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17136
17137
17138
17139
17140 if test "x${want_debug}" = "xyes" ; then
17141
17142
17143 CFLAGS_save="${CFLAGS}"
17144 CFLAGS="${CFLAGS} -g"
17145
17146 ac_ext=c
17147 ac_cpp='$CPP $CPPFLAGS'
17148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17151
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -g" >&5
17153 $as_echo_n "checking whether the compiler supports -g... " >&6; }
17154
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h.  */
17157
17158 int
17159 main ()
17160 {
17161
17162   ;
17163   return 0;
17164 }
17165 _ACEOF
17166 if ac_fn_c_try_compile "$LINENO"; then :
17167   have_flag="yes"
17168 else
17169   have_flag="no"
17170 fi
17171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
17173 $as_echo "${have_flag}" >&6; }
17174
17175 if test "x${have_flag}" = "xno" ; then
17176    CFLAGS="${CFLAGS_save}"
17177 fi
17178 ac_ext=c
17179 ac_cpp='$CPP $CPPFLAGS'
17180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17183
17184
17185
17186
17187
17188 CFLAGS_save="${CFLAGS}"
17189 CFLAGS="${CFLAGS} -O0"
17190
17191 ac_ext=c
17192 ac_cpp='$CPP $CPPFLAGS'
17193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17196
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -O0" >&5
17198 $as_echo_n "checking whether the compiler supports -O0... " >&6; }
17199
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h.  */
17202
17203 int
17204 main ()
17205 {
17206
17207   ;
17208   return 0;
17209 }
17210 _ACEOF
17211 if ac_fn_c_try_compile "$LINENO"; then :
17212   have_flag="yes"
17213 else
17214   have_flag="no"
17215 fi
17216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
17218 $as_echo "${have_flag}" >&6; }
17219
17220 if test "x${have_flag}" = "xno" ; then
17221    CFLAGS="${CFLAGS_save}"
17222 fi
17223 ac_ext=c
17224 ac_cpp='$CPP $CPPFLAGS'
17225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17228
17229
17230
17231 else
17232
17233
17234 CFLAGS_save="${CFLAGS}"
17235 CFLAGS="${CFLAGS} -O3"
17236
17237 ac_ext=c
17238 ac_cpp='$CPP $CPPFLAGS'
17239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17242
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -O3" >&5
17244 $as_echo_n "checking whether the compiler supports -O3... " >&6; }
17245
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h.  */
17248
17249 int
17250 main ()
17251 {
17252
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 if ac_fn_c_try_compile "$LINENO"; then :
17258   have_flag="yes"
17259 else
17260   have_flag="no"
17261 fi
17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
17264 $as_echo "${have_flag}" >&6; }
17265
17266 if test "x${have_flag}" = "xno" ; then
17267    CFLAGS="${CFLAGS_save}"
17268 fi
17269 ac_ext=c
17270 ac_cpp='$CPP $CPPFLAGS'
17271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17274
17275
17276
17277 fi
17278
17279
17280 ### Checks for linker characteristics
17281
17282
17283 ### Checks for library functions
17284
17285
17286 ### Post configuration
17287
17288  if test "x${enable_shared}" = "xyes"; then
17289   BUILD_SHARED_TRUE=
17290   BUILD_SHARED_FALSE='#'
17291 else
17292   BUILD_SHARED_TRUE='#'
17293   BUILD_SHARED_FALSE=
17294 fi
17295
17296  if test "x${enable_static}" = "xyes"; then
17297   BUILD_STATIC_TRUE=
17298   BUILD_STATIC_FALSE='#'
17299 else
17300   BUILD_STATIC_TRUE='#'
17301   BUILD_STATIC_FALSE=
17302 fi
17303
17304
17305
17306 ac_config_files="$ac_config_files Makefile libopenjpeg1.pc libopenjpeg-jpwl.pc libopenjpeg/Makefile libopenjpeg/jpwl/Makefile applications/Makefile applications/codec/Makefile applications/mj2/Makefile applications/jpip/Makefile applications/jpip/libopenjpip/Makefile applications/jpip/util/Makefile doc/Makefile"
17307
17308
17309 cat >confcache <<\_ACEOF
17310 # This file is a shell script that caches the results of configure
17311 # tests run on this system so they can be shared between configure
17312 # scripts and configure runs, see configure's option --config-cache.
17313 # It is not useful on other systems.  If it contains results you don't
17314 # want to keep, you may remove or edit it.
17315 #
17316 # config.status only pays attention to the cache file if you give it
17317 # the --recheck option to rerun configure.
17318 #
17319 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17320 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17321 # following values.
17322
17323 _ACEOF
17324
17325 # The following way of writing the cache mishandles newlines in values,
17326 # but we know of no workaround that is simple, portable, and efficient.
17327 # So, we kill variables containing newlines.
17328 # Ultrix sh set writes to stderr and can't be redirected directly,
17329 # and sets the high bit in the cache file unless we assign to the vars.
17330 (
17331   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17332     eval ac_val=\$$ac_var
17333     case $ac_val in #(
17334     *${as_nl}*)
17335       case $ac_var in #(
17336       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17337 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17338       esac
17339       case $ac_var in #(
17340       _ | IFS | as_nl) ;; #(
17341       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17342       *) { eval $ac_var=; unset $ac_var;} ;;
17343       esac ;;
17344     esac
17345   done
17346
17347   (set) 2>&1 |
17348     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17349     *${as_nl}ac_space=\ *)
17350       # `set' does not quote correctly, so add quotes: double-quote
17351       # substitution turns \\\\ into \\, and sed turns \\ into \.
17352       sed -n \
17353         "s/'/'\\\\''/g;
17354           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17355       ;; #(
17356     *)
17357       # `set' quotes correctly as required by POSIX, so do not add quotes.
17358       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17359       ;;
17360     esac |
17361     sort
17362 ) |
17363   sed '
17364      /^ac_cv_env_/b end
17365      t clear
17366      :clear
17367      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17368      t end
17369      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17370      :end' >>confcache
17371 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17372   if test -w "$cache_file"; then
17373     if test "x$cache_file" != "x/dev/null"; then
17374       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17375 $as_echo "$as_me: updating cache $cache_file" >&6;}
17376       if test ! -f "$cache_file" || test -h "$cache_file"; then
17377         cat confcache >"$cache_file"
17378       else
17379         case $cache_file in #(
17380         */* | ?:*)
17381           mv -f confcache "$cache_file"$$ &&
17382           mv -f "$cache_file"$$ "$cache_file" ;; #(
17383         *)
17384           mv -f confcache "$cache_file" ;;
17385         esac
17386       fi
17387     fi
17388   else
17389     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17390 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17391   fi
17392 fi
17393 rm -f confcache
17394
17395 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17396 # Let make expand exec_prefix.
17397 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17398
17399 DEFS=-DHAVE_CONFIG_H
17400
17401 ac_libobjs=
17402 ac_ltlibobjs=
17403 U=
17404 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17405   # 1. Remove the extension, and $U if already installed.
17406   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17407   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17408   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17409   #    will be set to the directory where LIBOBJS objects are built.
17410   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17411   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17412 done
17413 LIBOBJS=$ac_libobjs
17414
17415 LTLIBOBJS=$ac_ltlibobjs
17416
17417
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17419 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17420    if test -n "$am_sleep_pid"; then
17421      # Hide warnings about reused PIDs.
17422      wait $am_sleep_pid 2>/dev/null
17423    fi
17424    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17425 $as_echo "done" >&6; }
17426  if test -n "$EXEEXT"; then
17427   am__EXEEXT_TRUE=
17428   am__EXEEXT_FALSE='#'
17429 else
17430   am__EXEEXT_TRUE='#'
17431   am__EXEEXT_FALSE=
17432 fi
17433
17434 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17435   as_fn_error $? "conditional \"AMDEP\" was never defined.
17436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17437 fi
17438 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17439   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17441 fi
17442 if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
17443   as_fn_error $? "conditional \"HAVE_WIN32\" was never defined.
17444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17445 fi
17446 if test -z "${HAVE_DARWIN_TRUE}" && test -z "${HAVE_DARWIN_FALSE}"; then
17447   as_fn_error $? "conditional \"HAVE_DARWIN\" was never defined.
17448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17449 fi
17450 if test -z "${WANT_MJ2_TRUE}" && test -z "${WANT_MJ2_FALSE}"; then
17451   as_fn_error $? "conditional \"WANT_MJ2\" was never defined.
17452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17453 fi
17454 if test -z "${WANT_JPWL_TRUE}" && test -z "${WANT_JPWL_FALSE}"; then
17455   as_fn_error $? "conditional \"WANT_JPWL\" was never defined.
17456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17457 fi
17458 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17459   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17461 fi
17462 if test -z "${OPJ_BUILD_DOC_TRUE}" && test -z "${OPJ_BUILD_DOC_FALSE}"; then
17463   as_fn_error $? "conditional \"OPJ_BUILD_DOC\" was never defined.
17464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17465 fi
17466 if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
17467   as_fn_error $? "conditional \"with_libpng\" was never defined.
17468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17469 fi
17470 if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
17471   as_fn_error $? "conditional \"with_libtiff\" was never defined.
17472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17473 fi
17474 if test -z "${WANT_JPIP_TRUE}" && test -z "${WANT_JPIP_FALSE}"; then
17475   as_fn_error $? "conditional \"WANT_JPIP\" was never defined.
17476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17477 fi
17478 if test -z "${WANT_JPIP_SERVER_TRUE}" && test -z "${WANT_JPIP_SERVER_FALSE}"; then
17479   as_fn_error $? "conditional \"WANT_JPIP_SERVER\" was never defined.
17480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17481 fi
17482 if test -z "${WANT_JPIP_CODE_TRUE}" && test -z "${WANT_JPIP_CODE_FALSE}"; then
17483   as_fn_error $? "conditional \"WANT_JPIP_CODE\" was never defined.
17484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17485 fi
17486
17487 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
17488   as_fn_error $? "conditional \"BUILD_SHARED\" was never defined.
17489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17490 fi
17491 if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then
17492   as_fn_error $? "conditional \"BUILD_STATIC\" was never defined.
17493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17494 fi
17495
17496 : "${CONFIG_STATUS=./config.status}"
17497 ac_write_fail=0
17498 ac_clean_files_save=$ac_clean_files
17499 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17501 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17502 as_write_fail=0
17503 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17504 #! $SHELL
17505 # Generated by $as_me.
17506 # Run this file to recreate the current configuration.
17507 # Compiler output produced by configure, useful for debugging
17508 # configure, is in config.log if it exists.
17509
17510 debug=false
17511 ac_cs_recheck=false
17512 ac_cs_silent=false
17513
17514 SHELL=\${CONFIG_SHELL-$SHELL}
17515 export SHELL
17516 _ASEOF
17517 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17518 ## -------------------- ##
17519 ## M4sh Initialization. ##
17520 ## -------------------- ##
17521
17522 # Be more Bourne compatible
17523 DUALCASE=1; export DUALCASE # for MKS sh
17524 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17525   emulate sh
17526   NULLCMD=:
17527   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17528   # is contrary to our usage.  Disable this feature.
17529   alias -g '${1+"$@"}'='"$@"'
17530   setopt NO_GLOB_SUBST
17531 else
17532   case `(set -o) 2>/dev/null` in #(
17533   *posix*) :
17534     set -o posix ;; #(
17535   *) :
17536      ;;
17537 esac
17538 fi
17539
17540
17541 as_nl='
17542 '
17543 export as_nl
17544 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17545 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17546 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17547 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17548 # Prefer a ksh shell builtin over an external printf program on Solaris,
17549 # but without wasting forks for bash or zsh.
17550 if test -z "$BASH_VERSION$ZSH_VERSION" \
17551     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17552   as_echo='print -r --'
17553   as_echo_n='print -rn --'
17554 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17555   as_echo='printf %s\n'
17556   as_echo_n='printf %s'
17557 else
17558   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17559     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17560     as_echo_n='/usr/ucb/echo -n'
17561   else
17562     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17563     as_echo_n_body='eval
17564       arg=$1;
17565       case $arg in #(
17566       *"$as_nl"*)
17567         expr "X$arg" : "X\\(.*\\)$as_nl";
17568         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17569       esac;
17570       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17571     '
17572     export as_echo_n_body
17573     as_echo_n='sh -c $as_echo_n_body as_echo'
17574   fi
17575   export as_echo_body
17576   as_echo='sh -c $as_echo_body as_echo'
17577 fi
17578
17579 # The user is always right.
17580 if test "${PATH_SEPARATOR+set}" != set; then
17581   PATH_SEPARATOR=:
17582   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17583     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17584       PATH_SEPARATOR=';'
17585   }
17586 fi
17587
17588
17589 # IFS
17590 # We need space, tab and new line, in precisely that order.  Quoting is
17591 # there to prevent editors from complaining about space-tab.
17592 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17593 # splitting by setting IFS to empty value.)
17594 IFS=" ""        $as_nl"
17595
17596 # Find who we are.  Look in the path if we contain no directory separator.
17597 as_myself=
17598 case $0 in #((
17599   *[\\/]* ) as_myself=$0 ;;
17600   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17601 for as_dir in $PATH
17602 do
17603   IFS=$as_save_IFS
17604   test -z "$as_dir" && as_dir=.
17605     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17606   done
17607 IFS=$as_save_IFS
17608
17609      ;;
17610 esac
17611 # We did not find ourselves, most probably we were run as `sh COMMAND'
17612 # in which case we are not to be found in the path.
17613 if test "x$as_myself" = x; then
17614   as_myself=$0
17615 fi
17616 if test ! -f "$as_myself"; then
17617   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17618   exit 1
17619 fi
17620
17621 # Unset variables that we do not need and which cause bugs (e.g. in
17622 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17623 # suppresses any "Segmentation fault" message there.  '((' could
17624 # trigger a bug in pdksh 5.2.14.
17625 for as_var in BASH_ENV ENV MAIL MAILPATH
17626 do eval test x\${$as_var+set} = xset \
17627   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17628 done
17629 PS1='$ '
17630 PS2='> '
17631 PS4='+ '
17632
17633 # NLS nuisances.
17634 LC_ALL=C
17635 export LC_ALL
17636 LANGUAGE=C
17637 export LANGUAGE
17638
17639 # CDPATH.
17640 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17641
17642
17643 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17644 # ----------------------------------------
17645 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17646 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17647 # script with STATUS, using 1 if that was 0.
17648 as_fn_error ()
17649 {
17650   as_status=$1; test $as_status -eq 0 && as_status=1
17651   if test "$4"; then
17652     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17653     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17654   fi
17655   $as_echo "$as_me: error: $2" >&2
17656   as_fn_exit $as_status
17657 } # as_fn_error
17658
17659
17660 # as_fn_set_status STATUS
17661 # -----------------------
17662 # Set $? to STATUS, without forking.
17663 as_fn_set_status ()
17664 {
17665   return $1
17666 } # as_fn_set_status
17667
17668 # as_fn_exit STATUS
17669 # -----------------
17670 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17671 as_fn_exit ()
17672 {
17673   set +e
17674   as_fn_set_status $1
17675   exit $1
17676 } # as_fn_exit
17677
17678 # as_fn_unset VAR
17679 # ---------------
17680 # Portably unset VAR.
17681 as_fn_unset ()
17682 {
17683   { eval $1=; unset $1;}
17684 }
17685 as_unset=as_fn_unset
17686 # as_fn_append VAR VALUE
17687 # ----------------------
17688 # Append the text in VALUE to the end of the definition contained in VAR. Take
17689 # advantage of any shell optimizations that allow amortized linear growth over
17690 # repeated appends, instead of the typical quadratic growth present in naive
17691 # implementations.
17692 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17693   eval 'as_fn_append ()
17694   {
17695     eval $1+=\$2
17696   }'
17697 else
17698   as_fn_append ()
17699   {
17700     eval $1=\$$1\$2
17701   }
17702 fi # as_fn_append
17703
17704 # as_fn_arith ARG...
17705 # ------------------
17706 # Perform arithmetic evaluation on the ARGs, and store the result in the
17707 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17708 # must be portable across $(()) and expr.
17709 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17710   eval 'as_fn_arith ()
17711   {
17712     as_val=$(( $* ))
17713   }'
17714 else
17715   as_fn_arith ()
17716   {
17717     as_val=`expr "$@" || test $? -eq 1`
17718   }
17719 fi # as_fn_arith
17720
17721
17722 if expr a : '\(a\)' >/dev/null 2>&1 &&
17723    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17724   as_expr=expr
17725 else
17726   as_expr=false
17727 fi
17728
17729 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17730   as_basename=basename
17731 else
17732   as_basename=false
17733 fi
17734
17735 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17736   as_dirname=dirname
17737 else
17738   as_dirname=false
17739 fi
17740
17741 as_me=`$as_basename -- "$0" ||
17742 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17743          X"$0" : 'X\(//\)$' \| \
17744          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17745 $as_echo X/"$0" |
17746     sed '/^.*\/\([^/][^/]*\)\/*$/{
17747             s//\1/
17748             q
17749           }
17750           /^X\/\(\/\/\)$/{
17751             s//\1/
17752             q
17753           }
17754           /^X\/\(\/\).*/{
17755             s//\1/
17756             q
17757           }
17758           s/.*/./; q'`
17759
17760 # Avoid depending upon Character Ranges.
17761 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17762 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17763 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17764 as_cr_digits='0123456789'
17765 as_cr_alnum=$as_cr_Letters$as_cr_digits
17766
17767 ECHO_C= ECHO_N= ECHO_T=
17768 case `echo -n x` in #(((((
17769 -n*)
17770   case `echo 'xy\c'` in
17771   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17772   xy)  ECHO_C='\c';;
17773   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17774        ECHO_T=' ';;
17775   esac;;
17776 *)
17777   ECHO_N='-n';;
17778 esac
17779
17780 rm -f conf$$ conf$$.exe conf$$.file
17781 if test -d conf$$.dir; then
17782   rm -f conf$$.dir/conf$$.file
17783 else
17784   rm -f conf$$.dir
17785   mkdir conf$$.dir 2>/dev/null
17786 fi
17787 if (echo >conf$$.file) 2>/dev/null; then
17788   if ln -s conf$$.file conf$$ 2>/dev/null; then
17789     as_ln_s='ln -s'
17790     # ... but there are two gotchas:
17791     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17792     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17793     # In both cases, we have to default to `cp -pR'.
17794     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17795       as_ln_s='cp -pR'
17796   elif ln conf$$.file conf$$ 2>/dev/null; then
17797     as_ln_s=ln
17798   else
17799     as_ln_s='cp -pR'
17800   fi
17801 else
17802   as_ln_s='cp -pR'
17803 fi
17804 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17805 rmdir conf$$.dir 2>/dev/null
17806
17807
17808 # as_fn_mkdir_p
17809 # -------------
17810 # Create "$as_dir" as a directory, including parents if necessary.
17811 as_fn_mkdir_p ()
17812 {
17813
17814   case $as_dir in #(
17815   -*) as_dir=./$as_dir;;
17816   esac
17817   test -d "$as_dir" || eval $as_mkdir_p || {
17818     as_dirs=
17819     while :; do
17820       case $as_dir in #(
17821       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17822       *) as_qdir=$as_dir;;
17823       esac
17824       as_dirs="'$as_qdir' $as_dirs"
17825       as_dir=`$as_dirname -- "$as_dir" ||
17826 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17827          X"$as_dir" : 'X\(//\)[^/]' \| \
17828          X"$as_dir" : 'X\(//\)$' \| \
17829          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17830 $as_echo X"$as_dir" |
17831     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17832             s//\1/
17833             q
17834           }
17835           /^X\(\/\/\)[^/].*/{
17836             s//\1/
17837             q
17838           }
17839           /^X\(\/\/\)$/{
17840             s//\1/
17841             q
17842           }
17843           /^X\(\/\).*/{
17844             s//\1/
17845             q
17846           }
17847           s/.*/./; q'`
17848       test -d "$as_dir" && break
17849     done
17850     test -z "$as_dirs" || eval "mkdir $as_dirs"
17851   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17852
17853
17854 } # as_fn_mkdir_p
17855 if mkdir -p . 2>/dev/null; then
17856   as_mkdir_p='mkdir -p "$as_dir"'
17857 else
17858   test -d ./-p && rmdir ./-p
17859   as_mkdir_p=false
17860 fi
17861
17862
17863 # as_fn_executable_p FILE
17864 # -----------------------
17865 # Test if FILE is an executable regular file.
17866 as_fn_executable_p ()
17867 {
17868   test -f "$1" && test -x "$1"
17869 } # as_fn_executable_p
17870 as_test_x='test -x'
17871 as_executable_p=as_fn_executable_p
17872
17873 # Sed expression to map a string onto a valid CPP name.
17874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17875
17876 # Sed expression to map a string onto a valid variable name.
17877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17878
17879
17880 exec 6>&1
17881 ## ----------------------------------- ##
17882 ## Main body of $CONFIG_STATUS script. ##
17883 ## ----------------------------------- ##
17884 _ASEOF
17885 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17886
17887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17888 # Save the log message, to keep $0 and so on meaningful, and to
17889 # report actual input values of CONFIG_FILES etc. instead of their
17890 # values after options handling.
17891 ac_log="
17892 This file was extended by OpenJPEG $as_me 1.5.0, which was
17893 generated by GNU Autoconf 2.69.  Invocation command line was
17894
17895   CONFIG_FILES    = $CONFIG_FILES
17896   CONFIG_HEADERS  = $CONFIG_HEADERS
17897   CONFIG_LINKS    = $CONFIG_LINKS
17898   CONFIG_COMMANDS = $CONFIG_COMMANDS
17899   $ $0 $@
17900
17901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17902 "
17903
17904 _ACEOF
17905
17906 case $ac_config_files in *"
17907 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17908 esac
17909
17910 case $ac_config_headers in *"
17911 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17912 esac
17913
17914
17915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17916 # Files that config.status was made for.
17917 config_files="$ac_config_files"
17918 config_headers="$ac_config_headers"
17919 config_commands="$ac_config_commands"
17920
17921 _ACEOF
17922
17923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17924 ac_cs_usage="\
17925 \`$as_me' instantiates files and other configuration actions
17926 from templates according to the current configuration.  Unless the files
17927 and actions are specified as TAGs, all are instantiated by default.
17928
17929 Usage: $0 [OPTION]... [TAG]...
17930
17931   -h, --help       print this help, then exit
17932   -V, --version    print version number and configuration settings, then exit
17933       --config     print configuration, then exit
17934   -q, --quiet, --silent
17935                    do not print progress messages
17936   -d, --debug      don't remove temporary files
17937       --recheck    update $as_me by reconfiguring in the same conditions
17938       --file=FILE[:TEMPLATE]
17939                    instantiate the configuration file FILE
17940       --header=FILE[:TEMPLATE]
17941                    instantiate the configuration header FILE
17942
17943 Configuration files:
17944 $config_files
17945
17946 Configuration headers:
17947 $config_headers
17948
17949 Configuration commands:
17950 $config_commands
17951
17952 Report bugs to <openjpeg@googlegroups.com>.
17953 OpenJPEG home page: <http://www.openjpeg.org>."
17954
17955 _ACEOF
17956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17957 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17958 ac_cs_version="\\
17959 OpenJPEG config.status 1.5.0
17960 configured by $0, generated by GNU Autoconf 2.69,
17961   with options \\"\$ac_cs_config\\"
17962
17963 Copyright (C) 2012 Free Software Foundation, Inc.
17964 This config.status script is free software; the Free Software Foundation
17965 gives unlimited permission to copy, distribute and modify it."
17966
17967 ac_pwd='$ac_pwd'
17968 srcdir='$srcdir'
17969 INSTALL='$INSTALL'
17970 MKDIR_P='$MKDIR_P'
17971 AWK='$AWK'
17972 test -n "\$AWK" || AWK=awk
17973 _ACEOF
17974
17975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17976 # The default lists apply if the user does not specify any file.
17977 ac_need_defaults=:
17978 while test $# != 0
17979 do
17980   case $1 in
17981   --*=?*)
17982     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17983     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17984     ac_shift=:
17985     ;;
17986   --*=)
17987     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17988     ac_optarg=
17989     ac_shift=:
17990     ;;
17991   *)
17992     ac_option=$1
17993     ac_optarg=$2
17994     ac_shift=shift
17995     ;;
17996   esac
17997
17998   case $ac_option in
17999   # Handling of the options.
18000   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18001     ac_cs_recheck=: ;;
18002   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18003     $as_echo "$ac_cs_version"; exit ;;
18004   --config | --confi | --conf | --con | --co | --c )
18005     $as_echo "$ac_cs_config"; exit ;;
18006   --debug | --debu | --deb | --de | --d | -d )
18007     debug=: ;;
18008   --file | --fil | --fi | --f )
18009     $ac_shift
18010     case $ac_optarg in
18011     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18012     '') as_fn_error $? "missing file argument" ;;
18013     esac
18014     as_fn_append CONFIG_FILES " '$ac_optarg'"
18015     ac_need_defaults=false;;
18016   --header | --heade | --head | --hea )
18017     $ac_shift
18018     case $ac_optarg in
18019     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18020     esac
18021     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18022     ac_need_defaults=false;;
18023   --he | --h)
18024     # Conflict between --help and --header
18025     as_fn_error $? "ambiguous option: \`$1'
18026 Try \`$0 --help' for more information.";;
18027   --help | --hel | -h )
18028     $as_echo "$ac_cs_usage"; exit ;;
18029   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18030   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18031     ac_cs_silent=: ;;
18032
18033   # This is an error.
18034   -*) as_fn_error $? "unrecognized option: \`$1'
18035 Try \`$0 --help' for more information." ;;
18036
18037   *) as_fn_append ac_config_targets " $1"
18038      ac_need_defaults=false ;;
18039
18040   esac
18041   shift
18042 done
18043
18044 ac_configure_extra_args=
18045
18046 if $ac_cs_silent; then
18047   exec 6>/dev/null
18048   ac_configure_extra_args="$ac_configure_extra_args --silent"
18049 fi
18050
18051 _ACEOF
18052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053 if \$ac_cs_recheck; then
18054   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18055   shift
18056   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18057   CONFIG_SHELL='$SHELL'
18058   export CONFIG_SHELL
18059   exec "\$@"
18060 fi
18061
18062 _ACEOF
18063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18064 exec 5>>config.log
18065 {
18066   echo
18067   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18068 ## Running $as_me. ##
18069 _ASBOX
18070   $as_echo "$ac_log"
18071 } >&5
18072
18073 _ACEOF
18074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18075 #
18076 # INIT-COMMANDS
18077 #
18078 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18079
18080
18081 # The HP-UX ksh and POSIX shell print the target directory to stdout
18082 # if CDPATH is set.
18083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18084
18085 sed_quote_subst='$sed_quote_subst'
18086 double_quote_subst='$double_quote_subst'
18087 delay_variable_subst='$delay_variable_subst'
18088 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18089 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18090 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18091 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18092 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18093 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18094 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18095 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18096 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18097 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18098 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18099 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18100 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18101 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18102 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18103 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18104 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18105 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18106 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18107 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18108 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18109 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18110 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18111 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18112 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18113 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18114 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18115 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18116 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18117 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18118 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18119 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18120 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18121 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18122 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18123 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18124 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18125 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18126 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18127 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18128 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18129 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18130 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18131 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18132 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18133 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18134 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18135 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18136 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18137 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18138 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18139 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18140 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18141 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18142 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18143 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18144 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18145 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18146 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18147 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"`'
18148 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18149 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18150 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18151 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18152 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18153 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18154 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18155 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18156 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18157 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18158 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18159 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18160 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18161 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18162 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18163 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18164 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18165 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18166 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18167 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18168 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18169 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18170 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18171 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18172 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18173 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18174 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18175 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18176 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18177 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18178 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18179 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18180 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18181 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18182 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18183 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18184 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18185 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18186 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18187 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18188 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18189 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18190 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18191 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18192 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18193 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18194 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18195 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18196 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18197 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18198 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18199 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18200 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18201 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18202 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18203 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18204 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18205 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18206 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18207 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18208 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18209 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18210 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18211 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18212 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18213 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18214 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18215 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18216 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18217 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18218 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18219 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18220 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18221 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18222 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18223 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18224
18225 LTCC='$LTCC'
18226 LTCFLAGS='$LTCFLAGS'
18227 compiler='$compiler_DEFAULT'
18228
18229 # A function that is used when there is no print builtin or printf.
18230 func_fallback_echo ()
18231 {
18232   eval 'cat <<_LTECHO_EOF
18233 \$1
18234 _LTECHO_EOF'
18235 }
18236
18237 # Quote evaled strings.
18238 for var in AS \
18239 DLLTOOL \
18240 OBJDUMP \
18241 SHELL \
18242 ECHO \
18243 PATH_SEPARATOR \
18244 SED \
18245 GREP \
18246 EGREP \
18247 FGREP \
18248 LD \
18249 NM \
18250 LN_S \
18251 lt_SP2NL \
18252 lt_NL2SP \
18253 reload_flag \
18254 deplibs_check_method \
18255 file_magic_cmd \
18256 file_magic_glob \
18257 want_nocaseglob \
18258 sharedlib_from_linklib_cmd \
18259 AR \
18260 AR_FLAGS \
18261 archiver_list_spec \
18262 STRIP \
18263 RANLIB \
18264 CC \
18265 CFLAGS \
18266 compiler \
18267 lt_cv_sys_global_symbol_pipe \
18268 lt_cv_sys_global_symbol_to_cdecl \
18269 lt_cv_sys_global_symbol_to_import \
18270 lt_cv_sys_global_symbol_to_c_name_address \
18271 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18272 lt_cv_nm_interface \
18273 nm_file_list_spec \
18274 lt_cv_truncate_bin \
18275 lt_prog_compiler_no_builtin_flag \
18276 lt_prog_compiler_pic \
18277 lt_prog_compiler_wl \
18278 lt_prog_compiler_static \
18279 lt_cv_prog_compiler_c_o \
18280 need_locks \
18281 MANIFEST_TOOL \
18282 DSYMUTIL \
18283 NMEDIT \
18284 LIPO \
18285 OTOOL \
18286 OTOOL64 \
18287 shrext_cmds \
18288 export_dynamic_flag_spec \
18289 whole_archive_flag_spec \
18290 compiler_needs_object \
18291 with_gnu_ld \
18292 allow_undefined_flag \
18293 no_undefined_flag \
18294 hardcode_libdir_flag_spec \
18295 hardcode_libdir_separator \
18296 exclude_expsyms \
18297 include_expsyms \
18298 file_list_spec \
18299 variables_saved_for_relink \
18300 libname_spec \
18301 library_names_spec \
18302 soname_spec \
18303 install_override_mode \
18304 finish_eval \
18305 old_striplib \
18306 striplib; do
18307     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18308     *[\\\\\\\`\\"\\\$]*)
18309       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18310       ;;
18311     *)
18312       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18313       ;;
18314     esac
18315 done
18316
18317 # Double-quote double-evaled strings.
18318 for var in reload_cmds \
18319 old_postinstall_cmds \
18320 old_postuninstall_cmds \
18321 old_archive_cmds \
18322 extract_expsyms_cmds \
18323 old_archive_from_new_cmds \
18324 old_archive_from_expsyms_cmds \
18325 archive_cmds \
18326 archive_expsym_cmds \
18327 module_cmds \
18328 module_expsym_cmds \
18329 export_symbols_cmds \
18330 prelink_cmds \
18331 postlink_cmds \
18332 postinstall_cmds \
18333 postuninstall_cmds \
18334 finish_cmds \
18335 sys_lib_search_path_spec \
18336 configure_time_dlsearch_path \
18337 configure_time_lt_sys_library_path; do
18338     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18339     *[\\\\\\\`\\"\\\$]*)
18340       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18341       ;;
18342     *)
18343       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18344       ;;
18345     esac
18346 done
18347
18348 ac_aux_dir='$ac_aux_dir'
18349
18350 # See if we are running on zsh, and set the options that allow our
18351 # commands through without removal of \ escapes INIT.
18352 if test -n "\${ZSH_VERSION+set}"; then
18353    setopt NO_GLOB_SUBST
18354 fi
18355
18356
18357     PACKAGE='$PACKAGE'
18358     VERSION='$VERSION'
18359     RM='$RM'
18360     ofile='$ofile'
18361
18362
18363
18364
18365 _ACEOF
18366
18367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18368
18369 # Handling of arguments.
18370 for ac_config_target in $ac_config_targets
18371 do
18372   case $ac_config_target in
18373     "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
18374     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18375     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18376     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18377     "libopenjpeg1.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg1.pc" ;;
18378     "libopenjpeg-jpwl.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg-jpwl.pc" ;;
18379     "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
18380     "libopenjpeg/jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/jpwl/Makefile" ;;
18381     "applications/Makefile") CONFIG_FILES="$CONFIG_FILES applications/Makefile" ;;
18382     "applications/codec/Makefile") CONFIG_FILES="$CONFIG_FILES applications/codec/Makefile" ;;
18383     "applications/mj2/Makefile") CONFIG_FILES="$CONFIG_FILES applications/mj2/Makefile" ;;
18384     "applications/jpip/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/Makefile" ;;
18385     "applications/jpip/libopenjpip/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/libopenjpip/Makefile" ;;
18386     "applications/jpip/util/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/util/Makefile" ;;
18387     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18388
18389   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18390   esac
18391 done
18392
18393
18394 # If the user did not use the arguments to specify the items to instantiate,
18395 # then the envvar interface is used.  Set only those that are not.
18396 # We use the long form for the default assignment because of an extremely
18397 # bizarre bug on SunOS 4.1.3.
18398 if $ac_need_defaults; then
18399   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18400   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18401   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18402 fi
18403
18404 # Have a temporary directory for convenience.  Make it in the build tree
18405 # simply because there is no reason against having it here, and in addition,
18406 # creating and moving files from /tmp can sometimes cause problems.
18407 # Hook for its removal unless debugging.
18408 # Note that there is a small window in which the directory will not be cleaned:
18409 # after its creation but before its name has been assigned to `$tmp'.
18410 $debug ||
18411 {
18412   tmp= ac_tmp=
18413   trap 'exit_status=$?
18414   : "${ac_tmp:=$tmp}"
18415   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18416 ' 0
18417   trap 'as_fn_exit 1' 1 2 13 15
18418 }
18419 # Create a (secure) tmp directory for tmp files.
18420
18421 {
18422   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18423   test -d "$tmp"
18424 }  ||
18425 {
18426   tmp=./conf$$-$RANDOM
18427   (umask 077 && mkdir "$tmp")
18428 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18429 ac_tmp=$tmp
18430
18431 # Set up the scripts for CONFIG_FILES section.
18432 # No need to generate them if there are no CONFIG_FILES.
18433 # This happens for instance with `./config.status config.h'.
18434 if test -n "$CONFIG_FILES"; then
18435
18436
18437 ac_cr=`echo X | tr X '\015'`
18438 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18439 # But we know of no other shell where ac_cr would be empty at this
18440 # point, so we can use a bashism as a fallback.
18441 if test "x$ac_cr" = x; then
18442   eval ac_cr=\$\'\\r\'
18443 fi
18444 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18445 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18446   ac_cs_awk_cr='\\r'
18447 else
18448   ac_cs_awk_cr=$ac_cr
18449 fi
18450
18451 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18452 _ACEOF
18453
18454
18455 {
18456   echo "cat >conf$$subs.awk <<_ACEOF" &&
18457   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18458   echo "_ACEOF"
18459 } >conf$$subs.sh ||
18460   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18461 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18462 ac_delim='%!_!# '
18463 for ac_last_try in false false false false false :; do
18464   . ./conf$$subs.sh ||
18465     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18466
18467   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18468   if test $ac_delim_n = $ac_delim_num; then
18469     break
18470   elif $ac_last_try; then
18471     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18472   else
18473     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18474   fi
18475 done
18476 rm -f conf$$subs.sh
18477
18478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18479 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18480 _ACEOF
18481 sed -n '
18482 h
18483 s/^/S["/; s/!.*/"]=/
18484 p
18485 g
18486 s/^[^!]*!//
18487 :repl
18488 t repl
18489 s/'"$ac_delim"'$//
18490 t delim
18491 :nl
18492 h
18493 s/\(.\{148\}\)..*/\1/
18494 t more1
18495 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18496 p
18497 n
18498 b repl
18499 :more1
18500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18501 p
18502 g
18503 s/.\{148\}//
18504 t nl
18505 :delim
18506 h
18507 s/\(.\{148\}\)..*/\1/
18508 t more2
18509 s/["\\]/\\&/g; s/^/"/; s/$/"/
18510 p
18511 b
18512 :more2
18513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18514 p
18515 g
18516 s/.\{148\}//
18517 t delim
18518 ' <conf$$subs.awk | sed '
18519 /^[^""]/{
18520   N
18521   s/\n//
18522 }
18523 ' >>$CONFIG_STATUS || ac_write_fail=1
18524 rm -f conf$$subs.awk
18525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18526 _ACAWK
18527 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18528   for (key in S) S_is_set[key] = 1
18529   FS = "\a"
18530
18531 }
18532 {
18533   line = $ 0
18534   nfields = split(line, field, "@")
18535   substed = 0
18536   len = length(field[1])
18537   for (i = 2; i < nfields; i++) {
18538     key = field[i]
18539     keylen = length(key)
18540     if (S_is_set[key]) {
18541       value = S[key]
18542       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18543       len += length(value) + length(field[++i])
18544       substed = 1
18545     } else
18546       len += 1 + keylen
18547   }
18548
18549   print line
18550 }
18551
18552 _ACAWK
18553 _ACEOF
18554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18555 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18556   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18557 else
18558   cat
18559 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18560   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18561 _ACEOF
18562
18563 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18564 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18565 # trailing colons and then remove the whole line if VPATH becomes empty
18566 # (actually we leave an empty line to preserve line numbers).
18567 if test "x$srcdir" = x.; then
18568   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18569 h
18570 s///
18571 s/^/:/
18572 s/[      ]*$/:/
18573 s/:\$(srcdir):/:/g
18574 s/:\${srcdir}:/:/g
18575 s/:@srcdir@:/:/g
18576 s/^:*//
18577 s/:*$//
18578 x
18579 s/\(=[   ]*\).*/\1/
18580 G
18581 s/\n//
18582 s/^[^=]*=[       ]*$//
18583 }'
18584 fi
18585
18586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18587 fi # test -n "$CONFIG_FILES"
18588
18589 # Set up the scripts for CONFIG_HEADERS section.
18590 # No need to generate them if there are no CONFIG_HEADERS.
18591 # This happens for instance with `./config.status Makefile'.
18592 if test -n "$CONFIG_HEADERS"; then
18593 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18594 BEGIN {
18595 _ACEOF
18596
18597 # Transform confdefs.h into an awk script `defines.awk', embedded as
18598 # here-document in config.status, that substitutes the proper values into
18599 # config.h.in to produce config.h.
18600
18601 # Create a delimiter string that does not exist in confdefs.h, to ease
18602 # handling of long lines.
18603 ac_delim='%!_!# '
18604 for ac_last_try in false false :; do
18605   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18606   if test -z "$ac_tt"; then
18607     break
18608   elif $ac_last_try; then
18609     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18610   else
18611     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18612   fi
18613 done
18614
18615 # For the awk script, D is an array of macro values keyed by name,
18616 # likewise P contains macro parameters if any.  Preserve backslash
18617 # newline sequences.
18618
18619 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18620 sed -n '
18621 s/.\{148\}/&'"$ac_delim"'/g
18622 t rset
18623 :rset
18624 s/^[     ]*#[    ]*define[       ][      ]*/ /
18625 t def
18626 d
18627 :def
18628 s/\\$//
18629 t bsnl
18630 s/["\\]/\\&/g
18631 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18632 D["\1"]=" \3"/p
18633 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18634 d
18635 :bsnl
18636 s/["\\]/\\&/g
18637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18638 D["\1"]=" \3\\\\\\n"\\/p
18639 t cont
18640 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18641 t cont
18642 d
18643 :cont
18644 n
18645 s/.\{148\}/&'"$ac_delim"'/g
18646 t clear
18647 :clear
18648 s/\\$//
18649 t bsnlc
18650 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18651 d
18652 :bsnlc
18653 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18654 b cont
18655 ' <confdefs.h | sed '
18656 s/'"$ac_delim"'/"\\\
18657 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18658
18659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18660   for (key in D) D_is_set[key] = 1
18661   FS = "\a"
18662 }
18663 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18664   line = \$ 0
18665   split(line, arg, " ")
18666   if (arg[1] == "#") {
18667     defundef = arg[2]
18668     mac1 = arg[3]
18669   } else {
18670     defundef = substr(arg[1], 2)
18671     mac1 = arg[2]
18672   }
18673   split(mac1, mac2, "(") #)
18674   macro = mac2[1]
18675   prefix = substr(line, 1, index(line, defundef) - 1)
18676   if (D_is_set[macro]) {
18677     # Preserve the white space surrounding the "#".
18678     print prefix "define", macro P[macro] D[macro]
18679     next
18680   } else {
18681     # Replace #undef with comments.  This is necessary, for example,
18682     # in the case of _POSIX_SOURCE, which is predefined and required
18683     # on some systems where configure will not decide to define it.
18684     if (defundef == "undef") {
18685       print "/*", prefix defundef, macro, "*/"
18686       next
18687     }
18688   }
18689 }
18690 { print }
18691 _ACAWK
18692 _ACEOF
18693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18694   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18695 fi # test -n "$CONFIG_HEADERS"
18696
18697
18698 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18699 shift
18700 for ac_tag
18701 do
18702   case $ac_tag in
18703   :[FHLC]) ac_mode=$ac_tag; continue;;
18704   esac
18705   case $ac_mode$ac_tag in
18706   :[FHL]*:*);;
18707   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18708   :[FH]-) ac_tag=-:-;;
18709   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18710   esac
18711   ac_save_IFS=$IFS
18712   IFS=:
18713   set x $ac_tag
18714   IFS=$ac_save_IFS
18715   shift
18716   ac_file=$1
18717   shift
18718
18719   case $ac_mode in
18720   :L) ac_source=$1;;
18721   :[FH])
18722     ac_file_inputs=
18723     for ac_f
18724     do
18725       case $ac_f in
18726       -) ac_f="$ac_tmp/stdin";;
18727       *) # Look for the file first in the build tree, then in the source tree
18728          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18729          # because $ac_f cannot contain `:'.
18730          test -f "$ac_f" ||
18731            case $ac_f in
18732            [\\/$]*) false;;
18733            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18734            esac ||
18735            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18736       esac
18737       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18738       as_fn_append ac_file_inputs " '$ac_f'"
18739     done
18740
18741     # Let's still pretend it is `configure' which instantiates (i.e., don't
18742     # use $as_me), people would be surprised to read:
18743     #    /* config.h.  Generated by config.status.  */
18744     configure_input='Generated from '`
18745           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18746         `' by configure.'
18747     if test x"$ac_file" != x-; then
18748       configure_input="$ac_file.  $configure_input"
18749       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18750 $as_echo "$as_me: creating $ac_file" >&6;}
18751     fi
18752     # Neutralize special characters interpreted by sed in replacement strings.
18753     case $configure_input in #(
18754     *\&* | *\|* | *\\* )
18755        ac_sed_conf_input=`$as_echo "$configure_input" |
18756        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18757     *) ac_sed_conf_input=$configure_input;;
18758     esac
18759
18760     case $ac_tag in
18761     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18762       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18763     esac
18764     ;;
18765   esac
18766
18767   ac_dir=`$as_dirname -- "$ac_file" ||
18768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18769          X"$ac_file" : 'X\(//\)[^/]' \| \
18770          X"$ac_file" : 'X\(//\)$' \| \
18771          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18772 $as_echo X"$ac_file" |
18773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18774             s//\1/
18775             q
18776           }
18777           /^X\(\/\/\)[^/].*/{
18778             s//\1/
18779             q
18780           }
18781           /^X\(\/\/\)$/{
18782             s//\1/
18783             q
18784           }
18785           /^X\(\/\).*/{
18786             s//\1/
18787             q
18788           }
18789           s/.*/./; q'`
18790   as_dir="$ac_dir"; as_fn_mkdir_p
18791   ac_builddir=.
18792
18793 case "$ac_dir" in
18794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18795 *)
18796   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18797   # A ".." for each directory in $ac_dir_suffix.
18798   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18799   case $ac_top_builddir_sub in
18800   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18801   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18802   esac ;;
18803 esac
18804 ac_abs_top_builddir=$ac_pwd
18805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18806 # for backward compatibility:
18807 ac_top_builddir=$ac_top_build_prefix
18808
18809 case $srcdir in
18810   .)  # We are building in place.
18811     ac_srcdir=.
18812     ac_top_srcdir=$ac_top_builddir_sub
18813     ac_abs_top_srcdir=$ac_pwd ;;
18814   [\\/]* | ?:[\\/]* )  # Absolute name.
18815     ac_srcdir=$srcdir$ac_dir_suffix;
18816     ac_top_srcdir=$srcdir
18817     ac_abs_top_srcdir=$srcdir ;;
18818   *) # Relative name.
18819     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18820     ac_top_srcdir=$ac_top_build_prefix$srcdir
18821     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18822 esac
18823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18824
18825
18826   case $ac_mode in
18827   :F)
18828   #
18829   # CONFIG_FILE
18830   #
18831
18832   case $INSTALL in
18833   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18834   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18835   esac
18836   ac_MKDIR_P=$MKDIR_P
18837   case $MKDIR_P in
18838   [\\/$]* | ?:[\\/]* ) ;;
18839   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18840   esac
18841 _ACEOF
18842
18843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18844 # If the template does not know about datarootdir, expand it.
18845 # FIXME: This hack should be removed a few years after 2.60.
18846 ac_datarootdir_hack=; ac_datarootdir_seen=
18847 ac_sed_dataroot='
18848 /datarootdir/ {
18849   p
18850   q
18851 }
18852 /@datadir@/p
18853 /@docdir@/p
18854 /@infodir@/p
18855 /@localedir@/p
18856 /@mandir@/p'
18857 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18858 *datarootdir*) ac_datarootdir_seen=yes;;
18859 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18860   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18861 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18862 _ACEOF
18863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18864   ac_datarootdir_hack='
18865   s&@datadir@&$datadir&g
18866   s&@docdir@&$docdir&g
18867   s&@infodir@&$infodir&g
18868   s&@localedir@&$localedir&g
18869   s&@mandir@&$mandir&g
18870   s&\\\${datarootdir}&$datarootdir&g' ;;
18871 esac
18872 _ACEOF
18873
18874 # Neutralize VPATH when `$srcdir' = `.'.
18875 # Shell code in configure.ac might set extrasub.
18876 # FIXME: do we really want to maintain this feature?
18877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18878 ac_sed_extra="$ac_vpsub
18879 $extrasub
18880 _ACEOF
18881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18882 :t
18883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18884 s|@configure_input@|$ac_sed_conf_input|;t t
18885 s&@top_builddir@&$ac_top_builddir_sub&;t t
18886 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18887 s&@srcdir@&$ac_srcdir&;t t
18888 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18889 s&@top_srcdir@&$ac_top_srcdir&;t t
18890 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18891 s&@builddir@&$ac_builddir&;t t
18892 s&@abs_builddir@&$ac_abs_builddir&;t t
18893 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18894 s&@INSTALL@&$ac_INSTALL&;t t
18895 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18896 $ac_datarootdir_hack
18897 "
18898 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18899   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18900
18901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18902   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18903   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18904       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18905   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18906 which seems to be undefined.  Please make sure it is defined" >&5
18907 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18908 which seems to be undefined.  Please make sure it is defined" >&2;}
18909
18910   rm -f "$ac_tmp/stdin"
18911   case $ac_file in
18912   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18913   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18914   esac \
18915   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18916  ;;
18917   :H)
18918   #
18919   # CONFIG_HEADER
18920   #
18921   if test x"$ac_file" != x-; then
18922     {
18923       $as_echo "/* $configure_input  */" \
18924       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18925     } >"$ac_tmp/config.h" \
18926       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18927     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18928       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18929 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18930     else
18931       rm -f "$ac_file"
18932       mv "$ac_tmp/config.h" "$ac_file" \
18933         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18934     fi
18935   else
18936     $as_echo "/* $configure_input  */" \
18937       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18938       || as_fn_error $? "could not create -" "$LINENO" 5
18939   fi
18940 # Compute "$ac_file"'s index in $config_headers.
18941 _am_arg="$ac_file"
18942 _am_stamp_count=1
18943 for _am_header in $config_headers :; do
18944   case $_am_header in
18945     $_am_arg | $_am_arg:* )
18946       break ;;
18947     * )
18948       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18949   esac
18950 done
18951 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18952 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18953          X"$_am_arg" : 'X\(//\)[^/]' \| \
18954          X"$_am_arg" : 'X\(//\)$' \| \
18955          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18956 $as_echo X"$_am_arg" |
18957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18958             s//\1/
18959             q
18960           }
18961           /^X\(\/\/\)[^/].*/{
18962             s//\1/
18963             q
18964           }
18965           /^X\(\/\/\)$/{
18966             s//\1/
18967             q
18968           }
18969           /^X\(\/\).*/{
18970             s//\1/
18971             q
18972           }
18973           s/.*/./; q'`/stamp-h$_am_stamp_count
18974  ;;
18975
18976   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18977 $as_echo "$as_me: executing $ac_file commands" >&6;}
18978  ;;
18979   esac
18980
18981
18982   case $ac_file$ac_mode in
18983     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18984   # Older Autoconf quotes --file arguments for eval, but not when files
18985   # are listed without --file.  Let's play safe and only enable the eval
18986   # if we detect the quoting.
18987   case $CONFIG_FILES in
18988   *\'*) eval set x "$CONFIG_FILES" ;;
18989   *)   set x $CONFIG_FILES ;;
18990   esac
18991   shift
18992   for mf
18993   do
18994     # Strip MF so we end up with the name of the file.
18995     mf=`echo "$mf" | sed -e 's/:.*$//'`
18996     # Check whether this is an Automake generated Makefile or not.
18997     # We used to match only the files named 'Makefile.in', but
18998     # some people rename them; so instead we look at the file content.
18999     # Grep'ing the first line is not enough: some people post-process
19000     # each Makefile.in and add a new line on top of each file to say so.
19001     # Grep'ing the whole file is not good either: AIX grep has a line
19002     # limit of 2048, but all sed's we know have understand at least 4000.
19003     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19004       dirpart=`$as_dirname -- "$mf" ||
19005 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19006          X"$mf" : 'X\(//\)[^/]' \| \
19007          X"$mf" : 'X\(//\)$' \| \
19008          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19009 $as_echo X"$mf" |
19010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19011             s//\1/
19012             q
19013           }
19014           /^X\(\/\/\)[^/].*/{
19015             s//\1/
19016             q
19017           }
19018           /^X\(\/\/\)$/{
19019             s//\1/
19020             q
19021           }
19022           /^X\(\/\).*/{
19023             s//\1/
19024             q
19025           }
19026           s/.*/./; q'`
19027     else
19028       continue
19029     fi
19030     # Extract the definition of DEPDIR, am__include, and am__quote
19031     # from the Makefile without running 'make'.
19032     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19033     test -z "$DEPDIR" && continue
19034     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19035     test -z "$am__include" && continue
19036     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19037     # Find all dependency output files, they are included files with
19038     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19039     # simplest approach to changing $(DEPDIR) to its actual value in the
19040     # expansion.
19041     for file in `sed -n "
19042       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19043          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19044       # Make sure the directory exists.
19045       test -f "$dirpart/$file" && continue
19046       fdir=`$as_dirname -- "$file" ||
19047 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19048          X"$file" : 'X\(//\)[^/]' \| \
19049          X"$file" : 'X\(//\)$' \| \
19050          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19051 $as_echo X"$file" |
19052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19053             s//\1/
19054             q
19055           }
19056           /^X\(\/\/\)[^/].*/{
19057             s//\1/
19058             q
19059           }
19060           /^X\(\/\/\)$/{
19061             s//\1/
19062             q
19063           }
19064           /^X\(\/\).*/{
19065             s//\1/
19066             q
19067           }
19068           s/.*/./; q'`
19069       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19070       # echo "creating $dirpart/$file"
19071       echo '# dummy' > "$dirpart/$file"
19072     done
19073   done
19074 }
19075  ;;
19076     "libtool":C)
19077
19078     # See if we are running on zsh, and set the options that allow our
19079     # commands through without removal of \ escapes.
19080     if test -n "${ZSH_VERSION+set}"; then
19081       setopt NO_GLOB_SUBST
19082     fi
19083
19084     cfgfile=${ofile}T
19085     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19086     $RM "$cfgfile"
19087
19088     cat <<_LT_EOF >> "$cfgfile"
19089 #! $SHELL
19090 # Generated automatically by $as_me ($PACKAGE) $VERSION
19091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19092
19093 # Provide generalized library-building support services.
19094 # Written by Gordon Matzigkeit, 1996
19095
19096 # Copyright (C) 2014 Free Software Foundation, Inc.
19097 # This is free software; see the source for copying conditions.  There is NO
19098 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19099
19100 # GNU Libtool is free software; you can redistribute it and/or modify
19101 # it under the terms of the GNU General Public License as published by
19102 # the Free Software Foundation; either version 2 of of the License, or
19103 # (at your option) any later version.
19104 #
19105 # As a special exception to the GNU General Public License, if you
19106 # distribute this file as part of a program or library that is built
19107 # using GNU Libtool, you may include this file under the  same
19108 # distribution terms that you use for the rest of that program.
19109 #
19110 # GNU Libtool is distributed in the hope that it will be useful, but
19111 # WITHOUT ANY WARRANTY; without even the implied warranty of
19112 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19113 # GNU General Public License for more details.
19114 #
19115 # You should have received a copy of the GNU General Public License
19116 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19117
19118
19119 # The names of the tagged configurations supported by this script.
19120 available_tags=''
19121
19122 # Configured defaults for sys_lib_dlsearch_path munging.
19123 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19124
19125 # ### BEGIN LIBTOOL CONFIG
19126
19127 # Which release of libtool.m4 was used?
19128 macro_version=$macro_version
19129 macro_revision=$macro_revision
19130
19131 # Assembler program.
19132 AS=$lt_AS
19133
19134 # DLL creation program.
19135 DLLTOOL=$lt_DLLTOOL
19136
19137 # Object dumper program.
19138 OBJDUMP=$lt_OBJDUMP
19139
19140 # Whether or not to build shared libraries.
19141 build_libtool_libs=$enable_shared
19142
19143 # Whether or not to build static libraries.
19144 build_old_libs=$enable_static
19145
19146 # What type of objects to build.
19147 pic_mode=$pic_mode
19148
19149 # Whether or not to optimize for fast installation.
19150 fast_install=$enable_fast_install
19151
19152 # Shared archive member basename,for filename based shared library versioning on AIX.
19153 shared_archive_member_spec=$shared_archive_member_spec
19154
19155 # Shell to use when invoking shell scripts.
19156 SHELL=$lt_SHELL
19157
19158 # An echo program that protects backslashes.
19159 ECHO=$lt_ECHO
19160
19161 # The PATH separator for the build system.
19162 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19163
19164 # The host system.
19165 host_alias=$host_alias
19166 host=$host
19167 host_os=$host_os
19168
19169 # The build system.
19170 build_alias=$build_alias
19171 build=$build
19172 build_os=$build_os
19173
19174 # A sed program that does not truncate output.
19175 SED=$lt_SED
19176
19177 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19178 Xsed="\$SED -e 1s/^X//"
19179
19180 # A grep program that handles long lines.
19181 GREP=$lt_GREP
19182
19183 # An ERE matcher.
19184 EGREP=$lt_EGREP
19185
19186 # A literal string matcher.
19187 FGREP=$lt_FGREP
19188
19189 # A BSD- or MS-compatible name lister.
19190 NM=$lt_NM
19191
19192 # Whether we need soft or hard links.
19193 LN_S=$lt_LN_S
19194
19195 # What is the maximum length of a command?
19196 max_cmd_len=$max_cmd_len
19197
19198 # Object file suffix (normally "o").
19199 objext=$ac_objext
19200
19201 # Executable file suffix (normally "").
19202 exeext=$exeext
19203
19204 # whether the shell understands "unset".
19205 lt_unset=$lt_unset
19206
19207 # turn spaces into newlines.
19208 SP2NL=$lt_lt_SP2NL
19209
19210 # turn newlines into spaces.
19211 NL2SP=$lt_lt_NL2SP
19212
19213 # convert \$build file names to \$host format.
19214 to_host_file_cmd=$lt_cv_to_host_file_cmd
19215
19216 # convert \$build files to toolchain format.
19217 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19218
19219 # Method to check whether dependent libraries are shared objects.
19220 deplibs_check_method=$lt_deplibs_check_method
19221
19222 # Command to use when deplibs_check_method = "file_magic".
19223 file_magic_cmd=$lt_file_magic_cmd
19224
19225 # How to find potential files when deplibs_check_method = "file_magic".
19226 file_magic_glob=$lt_file_magic_glob
19227
19228 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19229 want_nocaseglob=$lt_want_nocaseglob
19230
19231 # Command to associate shared and link libraries.
19232 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19233
19234 # The archiver.
19235 AR=$lt_AR
19236
19237 # Flags to create an archive.
19238 AR_FLAGS=$lt_AR_FLAGS
19239
19240 # How to feed a file listing to the archiver.
19241 archiver_list_spec=$lt_archiver_list_spec
19242
19243 # A symbol stripping program.
19244 STRIP=$lt_STRIP
19245
19246 # Commands used to install an old-style archive.
19247 RANLIB=$lt_RANLIB
19248 old_postinstall_cmds=$lt_old_postinstall_cmds
19249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19250
19251 # Whether to use a lock for old archive extraction.
19252 lock_old_archive_extraction=$lock_old_archive_extraction
19253
19254 # A C compiler.
19255 LTCC=$lt_CC
19256
19257 # LTCC compiler flags.
19258 LTCFLAGS=$lt_CFLAGS
19259
19260 # Take the output of nm and produce a listing of raw symbols and C names.
19261 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19262
19263 # Transform the output of nm in a proper C declaration.
19264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19265
19266 # Transform the output of nm into a list of symbols to manually relocate.
19267 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19268
19269 # Transform the output of nm in a C name address pair.
19270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19271
19272 # Transform the output of nm in a C name address pair when lib prefix is needed.
19273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19274
19275 # The name lister interface.
19276 nm_interface=$lt_lt_cv_nm_interface
19277
19278 # Specify filename containing input files for \$NM.
19279 nm_file_list_spec=$lt_nm_file_list_spec
19280
19281 # The root where to search for dependent libraries,and where our libraries should be installed.
19282 lt_sysroot=$lt_sysroot
19283
19284 # Command to truncate a binary pipe.
19285 lt_truncate_bin=$lt_lt_cv_truncate_bin
19286
19287 # The name of the directory that contains temporary libtool files.
19288 objdir=$objdir
19289
19290 # Used to examine libraries when file_magic_cmd begins with "file".
19291 MAGIC_CMD=$MAGIC_CMD
19292
19293 # Must we lock files when doing compilation?
19294 need_locks=$lt_need_locks
19295
19296 # Manifest tool.
19297 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19298
19299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19300 DSYMUTIL=$lt_DSYMUTIL
19301
19302 # Tool to change global to local symbols on Mac OS X.
19303 NMEDIT=$lt_NMEDIT
19304
19305 # Tool to manipulate fat objects and archives on Mac OS X.
19306 LIPO=$lt_LIPO
19307
19308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19309 OTOOL=$lt_OTOOL
19310
19311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19312 OTOOL64=$lt_OTOOL64
19313
19314 # Old archive suffix (normally "a").
19315 libext=$libext
19316
19317 # Shared library suffix (normally ".so").
19318 shrext_cmds=$lt_shrext_cmds
19319
19320 # The commands to extract the exported symbol list from a shared archive.
19321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19322
19323 # Variables whose values should be saved in libtool wrapper scripts and
19324 # restored at link time.
19325 variables_saved_for_relink=$lt_variables_saved_for_relink
19326
19327 # Do we need the "lib" prefix for modules?
19328 need_lib_prefix=$need_lib_prefix
19329
19330 # Do we need a version for libraries?
19331 need_version=$need_version
19332
19333 # Library versioning type.
19334 version_type=$version_type
19335
19336 # Shared library runtime path variable.
19337 runpath_var=$runpath_var
19338
19339 # Shared library path variable.
19340 shlibpath_var=$shlibpath_var
19341
19342 # Is shlibpath searched before the hard-coded library search path?
19343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19344
19345 # Format of library name prefix.
19346 libname_spec=$lt_libname_spec
19347
19348 # List of archive names.  First name is the real one, the rest are links.
19349 # The last name is the one that the linker finds with -lNAME
19350 library_names_spec=$lt_library_names_spec
19351
19352 # The coded name of the library, if different from the real name.
19353 soname_spec=$lt_soname_spec
19354
19355 # Permission mode override for installation of shared libraries.
19356 install_override_mode=$lt_install_override_mode
19357
19358 # Command to use after installation of a shared archive.
19359 postinstall_cmds=$lt_postinstall_cmds
19360
19361 # Command to use after uninstallation of a shared archive.
19362 postuninstall_cmds=$lt_postuninstall_cmds
19363
19364 # Commands used to finish a libtool library installation in a directory.
19365 finish_cmds=$lt_finish_cmds
19366
19367 # As "finish_cmds", except a single script fragment to be evaled but
19368 # not shown.
19369 finish_eval=$lt_finish_eval
19370
19371 # Whether we should hardcode library paths into libraries.
19372 hardcode_into_libs=$hardcode_into_libs
19373
19374 # Compile-time system search path for libraries.
19375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19376
19377 # Detected run-time system search path for libraries.
19378 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19379
19380 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19381 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19382
19383 # Whether dlopen is supported.
19384 dlopen_support=$enable_dlopen
19385
19386 # Whether dlopen of programs is supported.
19387 dlopen_self=$enable_dlopen_self
19388
19389 # Whether dlopen of statically linked programs is supported.
19390 dlopen_self_static=$enable_dlopen_self_static
19391
19392 # Commands to strip libraries.
19393 old_striplib=$lt_old_striplib
19394 striplib=$lt_striplib
19395
19396
19397 # The linker used to build libraries.
19398 LD=$lt_LD
19399
19400 # How to create reloadable object files.
19401 reload_flag=$lt_reload_flag
19402 reload_cmds=$lt_reload_cmds
19403
19404 # Commands used to build an old-style archive.
19405 old_archive_cmds=$lt_old_archive_cmds
19406
19407 # A language specific compiler.
19408 CC=$lt_compiler
19409
19410 # Is the compiler the GNU compiler?
19411 with_gcc=$GCC
19412
19413 # Compiler flag to turn off builtin functions.
19414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19415
19416 # Additional compiler flags for building library objects.
19417 pic_flag=$lt_lt_prog_compiler_pic
19418
19419 # How to pass a linker flag through the compiler.
19420 wl=$lt_lt_prog_compiler_wl
19421
19422 # Compiler flag to prevent dynamic linking.
19423 link_static_flag=$lt_lt_prog_compiler_static
19424
19425 # Does compiler simultaneously support -c and -o options?
19426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19427
19428 # Whether or not to add -lc for building shared libraries.
19429 build_libtool_need_lc=$archive_cmds_need_lc
19430
19431 # Whether or not to disallow shared libs when runtime libs are static.
19432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19433
19434 # Compiler flag to allow reflexive dlopens.
19435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19436
19437 # Compiler flag to generate shared objects directly from archives.
19438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19439
19440 # Whether the compiler copes with passing no objects directly.
19441 compiler_needs_object=$lt_compiler_needs_object
19442
19443 # Create an old-style archive from a shared archive.
19444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19445
19446 # Create a temporary old-style archive to link instead of a shared archive.
19447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19448
19449 # Commands used to build a shared archive.
19450 archive_cmds=$lt_archive_cmds
19451 archive_expsym_cmds=$lt_archive_expsym_cmds
19452
19453 # Commands used to build a loadable module if different from building
19454 # a shared archive.
19455 module_cmds=$lt_module_cmds
19456 module_expsym_cmds=$lt_module_expsym_cmds
19457
19458 # Whether we are building with GNU ld or not.
19459 with_gnu_ld=$lt_with_gnu_ld
19460
19461 # Flag that allows shared libraries with undefined symbols to be built.
19462 allow_undefined_flag=$lt_allow_undefined_flag
19463
19464 # Flag that enforces no undefined symbols.
19465 no_undefined_flag=$lt_no_undefined_flag
19466
19467 # Flag to hardcode \$libdir into a binary during linking.
19468 # This must work even if \$libdir does not exist
19469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19470
19471 # Whether we need a single "-rpath" flag with a separated argument.
19472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19473
19474 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19475 # DIR into the resulting binary.
19476 hardcode_direct=$hardcode_direct
19477
19478 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19479 # DIR into the resulting binary and the resulting library dependency is
19480 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19481 # library is relocated.
19482 hardcode_direct_absolute=$hardcode_direct_absolute
19483
19484 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19485 # into the resulting binary.
19486 hardcode_minus_L=$hardcode_minus_L
19487
19488 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19489 # into the resulting binary.
19490 hardcode_shlibpath_var=$hardcode_shlibpath_var
19491
19492 # Set to "yes" if building a shared library automatically hardcodes DIR
19493 # into the library and all subsequent libraries and executables linked
19494 # against it.
19495 hardcode_automatic=$hardcode_automatic
19496
19497 # Set to yes if linker adds runtime paths of dependent libraries
19498 # to runtime path list.
19499 inherit_rpath=$inherit_rpath
19500
19501 # Whether libtool must link a program against all its dependency libraries.
19502 link_all_deplibs=$link_all_deplibs
19503
19504 # Set to "yes" if exported symbols are required.
19505 always_export_symbols=$always_export_symbols
19506
19507 # The commands to list exported symbols.
19508 export_symbols_cmds=$lt_export_symbols_cmds
19509
19510 # Symbols that should not be listed in the preloaded symbols.
19511 exclude_expsyms=$lt_exclude_expsyms
19512
19513 # Symbols that must always be exported.
19514 include_expsyms=$lt_include_expsyms
19515
19516 # Commands necessary for linking programs (against libraries) with templates.
19517 prelink_cmds=$lt_prelink_cmds
19518
19519 # Commands necessary for finishing linking programs.
19520 postlink_cmds=$lt_postlink_cmds
19521
19522 # Specify filename containing input files.
19523 file_list_spec=$lt_file_list_spec
19524
19525 # How to hardcode a shared library path into an executable.
19526 hardcode_action=$hardcode_action
19527
19528 # ### END LIBTOOL CONFIG
19529
19530 _LT_EOF
19531
19532     cat <<'_LT_EOF' >> "$cfgfile"
19533
19534 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19535
19536 # func_munge_path_list VARIABLE PATH
19537 # -----------------------------------
19538 # VARIABLE is name of variable containing _space_ separated list of
19539 # directories to be munged by the contents of PATH, which is string
19540 # having a format:
19541 # "DIR[:DIR]:"
19542 #       string "DIR[ DIR]" will be prepended to VARIABLE
19543 # ":DIR[:DIR]"
19544 #       string "DIR[ DIR]" will be appended to VARIABLE
19545 # "DIRP[:DIRP]::[DIRA:]DIRA"
19546 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19547 #       "DIRA[ DIRA]" will be appended to VARIABLE
19548 # "DIR[:DIR]"
19549 #       VARIABLE will be replaced by "DIR[ DIR]"
19550 func_munge_path_list ()
19551 {
19552     case x$2 in
19553     x)
19554         ;;
19555     *:)
19556         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19557         ;;
19558     x:*)
19559         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19560         ;;
19561     *::*)
19562         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19563         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19564         ;;
19565     *)
19566         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19567         ;;
19568     esac
19569 }
19570
19571
19572 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19573 func_cc_basename ()
19574 {
19575     for cc_temp in $*""; do
19576       case $cc_temp in
19577         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19578         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19579         \-*) ;;
19580         *) break;;
19581       esac
19582     done
19583     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19584 }
19585
19586
19587 # ### END FUNCTIONS SHARED WITH CONFIGURE
19588
19589 _LT_EOF
19590
19591   case $host_os in
19592   aix3*)
19593     cat <<\_LT_EOF >> "$cfgfile"
19594 # AIX sometimes has problems with the GCC collect2 program.  For some
19595 # reason, if we set the COLLECT_NAMES environment variable, the problems
19596 # vanish in a puff of smoke.
19597 if test set != "${COLLECT_NAMES+set}"; then
19598   COLLECT_NAMES=
19599   export COLLECT_NAMES
19600 fi
19601 _LT_EOF
19602     ;;
19603   esac
19604
19605
19606 ltmain=$ac_aux_dir/ltmain.sh
19607
19608
19609   # We use sed instead of cat because bash on DJGPP gets confused if
19610   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19611   # text mode, it properly converts lines to CR/LF.  This bash problem
19612   # is reportedly fixed, but why not run on old versions too?
19613   sed '$q' "$ltmain" >> "$cfgfile" \
19614      || (rm -f "$cfgfile"; exit 1)
19615
19616    mv -f "$cfgfile" "$ofile" ||
19617     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19618   chmod +x "$ofile"
19619
19620  ;;
19621
19622   esac
19623 done # for ac_tag
19624
19625
19626 as_fn_exit 0
19627 _ACEOF
19628 ac_clean_files=$ac_clean_files_save
19629
19630 test $ac_write_fail = 0 ||
19631   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19632
19633
19634 # configure is writing to config.log, and then calls config.status.
19635 # config.status does its own redirection, appending to config.log.
19636 # Unfortunately, on DOS this fails, as config.log is still kept open
19637 # by configure, so config.status won't be able to write to it; its
19638 # output is simply discarded.  So we exec the FD to /dev/null,
19639 # effectively closing config.log, so it can be properly (re)opened and
19640 # appended to by config.status.  When coming back to configure, we
19641 # need to make the FD available again.
19642 if test "$no_create" != yes; then
19643   ac_cs_success=:
19644   ac_config_status_args=
19645   test "$silent" = yes &&
19646     ac_config_status_args="$ac_config_status_args --quiet"
19647   exec 5>/dev/null
19648   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19649   exec 5>>config.log
19650   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19651   # would make configure fail if this is the last instruction.
19652   $ac_cs_success || as_fn_exit 1
19653 fi
19654 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19655   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19656 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19657 fi
19658
19659
19660 ### Summary
19661
19662 echo
19663 echo
19664 echo
19665 echo "------------------------------------------------------------------------"
19666 echo "$PACKAGE $VERSION"
19667 echo "------------------------------------------------------------------------"
19668 echo
19669 echo
19670 echo "Configuration Options Summary:"
19671 echo
19672 echo "  Debug...............: ${want_debug}"
19673 echo
19674 echo "  Optional support:"
19675 echo "    libpng............: ${have_libpng}"
19676 echo "    libtiff...........: ${have_libtiff}"
19677 echo "    libcms............: ${lcms_output}"
19678 echo
19679 echo "  Documentation.......: ${opj_have_doxygen}"
19680 echo "    Build.............: make doc"
19681 echo
19682 echo "  mj2.................: ${want_mj2}"
19683 echo "  jpwl................: ${want_jpwl}"
19684 echo "  jpip................: ${want_jpip}"
19685 echo "  jpip server.........: ${want_jpip_server}"
19686 echo