cdist change.
[openjpeg.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for OpenJPEG 1.5.0.
4 #
5 # Report bugs to <openjpeg@googlegroups.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: openjpeg@googlegroups.com about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='OpenJPEG'
703 PACKAGE_TARNAME='openjpeg'
704 PACKAGE_VERSION='1.5.0'
705 PACKAGE_STRING='OpenJPEG 1.5.0'
706 PACKAGE_BUGREPORT='openjpeg@googlegroups.com'
707 PACKAGE_URL='http://www.openjpeg.org'
708
709 ac_unique_file="configure.ac"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_subst_vars='am__EXEEXT_FALSE
747 am__EXEEXT_TRUE
748 LTLIBOBJS
749 LIBOBJS
750 BUILD_STATIC_FALSE
751 BUILD_STATIC_TRUE
752 BUILD_SHARED_FALSE
753 BUILD_SHARED_TRUE
754 WANT_JPIP_CODE_FALSE
755 WANT_JPIP_CODE_TRUE
756 WANT_JPIP_SERVER_FALSE
757 WANT_JPIP_SERVER_TRUE
758 WANT_JPIP_FALSE
759 WANT_JPIP_TRUE
760 LIBCURL_LIBS
761 LIBCURL_CFLAGS
762 FCGI_LIBS
763 FCGI_CFLAGS
764 THREAD_LIBS
765 THREAD_CFLAGS
766 LCMS1_LIBS
767 LCMS1_CFLAGS
768 LCMS2_LIBS
769 LCMS2_CFLAGS
770 with_libtiff_FALSE
771 with_libtiff_TRUE
772 TIFF_LIBS
773 TIFF_CFLAGS
774 with_libpng_FALSE
775 with_libpng_TRUE
776 Z_LIBS
777 Z_CFLAGS
778 PNG_LIBS
779 PNG_CFLAGS
780 OPJ_BUILD_DOC_FALSE
781 OPJ_BUILD_DOC_TRUE
782 opj_doxygen
783 opj_have_doxygen
784 requirements
785 pkgconfig_requires_private
786 PKG_CONFIG_LIBDIR
787 PKG_CONFIG_PATH
788 PKG_CONFIG
789 WANT_JPWL_FALSE
790 WANT_JPWL_TRUE
791 WANT_MJ2_FALSE
792 WANT_MJ2_TRUE
793 HAVE_DARWIN_FALSE
794 HAVE_DARWIN_TRUE
795 HAVE_WIN32_FALSE
796 HAVE_WIN32_TRUE
797 lt_version
798 CPP
799 OTOOL64
800 OTOOL
801 LIPO
802 NMEDIT
803 DSYMUTIL
804 lt_ECHO
805 RANLIB
806 AR
807 LN_S
808 NM
809 ac_ct_DUMPBIN
810 DUMPBIN
811 LD
812 FGREP
813 EGREP
814 GREP
815 SED
816 am__fastdepCC_FALSE
817 am__fastdepCC_TRUE
818 CCDEPMODE
819 AMDEPBACKSLASH
820 AMDEP_FALSE
821 AMDEP_TRUE
822 am__quote
823 am__include
824 DEPDIR
825 OBJEXT
826 EXEEXT
827 ac_ct_CC
828 CPPFLAGS
829 LDFLAGS
830 CFLAGS
831 CC
832 LIBTOOL
833 OBJDUMP
834 DLLTOOL
835 AS
836 MICRO_NR
837 MINOR_NR
838 MAJOR_NR
839 AM_BACKSLASH
840 AM_DEFAULT_VERBOSITY
841 am__untar
842 am__tar
843 AMTAR
844 am__leading_dot
845 SET_MAKE
846 AWK
847 mkdir_p
848 MKDIR_P
849 INSTALL_STRIP_PROGRAM
850 STRIP
851 install_sh
852 MAKEINFO
853 AUTOHEADER
854 AUTOMAKE
855 AUTOCONF
856 ACLOCAL
857 VERSION
858 PACKAGE
859 CYGPATH_W
860 am__isrc
861 INSTALL_DATA
862 INSTALL_SCRIPT
863 INSTALL_PROGRAM
864 target_os
865 target_vendor
866 target_cpu
867 target
868 host_os
869 host_vendor
870 host_cpu
871 host
872 build_os
873 build_vendor
874 build_cpu
875 build
876 target_alias
877 host_alias
878 build_alias
879 LIBS
880 ECHO_T
881 ECHO_N
882 ECHO_C
883 DEFS
884 mandir
885 localedir
886 libdir
887 psdir
888 pdfdir
889 dvidir
890 htmldir
891 infodir
892 docdir
893 oldincludedir
894 includedir
895 localstatedir
896 sharedstatedir
897 sysconfdir
898 datadir
899 datarootdir
900 libexecdir
901 sbindir
902 bindir
903 program_transform_name
904 prefix
905 exec_prefix
906 PACKAGE_URL
907 PACKAGE_BUGREPORT
908 PACKAGE_STRING
909 PACKAGE_VERSION
910 PACKAGE_TARNAME
911 PACKAGE_NAME
912 PATH_SEPARATOR
913 SHELL'
914 ac_subst_files=''
915 ac_user_opts='
916 enable_option_checking
917 enable_silent_rules
918 enable_shared
919 enable_static
920 with_pic
921 enable_fast_install
922 enable_dependency_tracking
923 with_gnu_ld
924 enable_libtool_lock
925 enable_debug
926 enable_mj2
927 enable_jpwl
928 enable_jpip
929 enable_jpip_server
930 enable_doc
931 with_doxygen
932 enable_png
933 enable_tiff
934 enable_lcms2
935 enable_lcms1
936 '
937       ac_precious_vars='build_alias
938 host_alias
939 target_alias
940 CC
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
945 CPP
946 PKG_CONFIG
947 PKG_CONFIG_PATH
948 PKG_CONFIG_LIBDIR
949 PNG_CFLAGS
950 PNG_LIBS
951 Z_CFLAGS
952 Z_LIBS
953 TIFF_CFLAGS
954 TIFF_LIBS
955 LCMS2_CFLAGS
956 LCMS2_LIBS
957 LCMS1_CFLAGS
958 LCMS1_LIBS
959 THREAD_CFLAGS
960 THREAD_LIBS
961 FCGI_CFLAGS
962 FCGI_LIBS
963 LIBCURL_CFLAGS
964 LIBCURL_LIBS'
965
966
967 # Initialize some variables set by options.
968 ac_init_help=
969 ac_init_version=false
970 ac_unrecognized_opts=
971 ac_unrecognized_sep=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
974 cache_file=/dev/null
975 exec_prefix=NONE
976 no_create=
977 no_recursion=
978 prefix=NONE
979 program_prefix=NONE
980 program_suffix=NONE
981 program_transform_name=s,x,x,
982 silent=
983 site=
984 srcdir=
985 verbose=
986 x_includes=NONE
987 x_libraries=NONE
988
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir='${exec_prefix}/bin'
996 sbindir='${exec_prefix}/sbin'
997 libexecdir='${exec_prefix}/libexec'
998 datarootdir='${prefix}/share'
999 datadir='${datarootdir}'
1000 sysconfdir='${prefix}/etc'
1001 sharedstatedir='${prefix}/com'
1002 localstatedir='${prefix}/var'
1003 includedir='${prefix}/include'
1004 oldincludedir='/usr/include'
1005 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1006 infodir='${datarootdir}/info'
1007 htmldir='${docdir}'
1008 dvidir='${docdir}'
1009 pdfdir='${docdir}'
1010 psdir='${docdir}'
1011 libdir='${exec_prefix}/lib'
1012 localedir='${datarootdir}/locale'
1013 mandir='${datarootdir}/man'
1014
1015 ac_prev=
1016 ac_dashdash=
1017 for ac_option
1018 do
1019   # If the previous option needs an argument, assign it.
1020   if test -n "$ac_prev"; then
1021     eval $ac_prev=\$ac_option
1022     ac_prev=
1023     continue
1024   fi
1025
1026   case $ac_option in
1027   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028   *)    ac_optarg=yes ;;
1029   esac
1030
1031   # Accept the important Cygnus configure options, so we can diagnose typos.
1032
1033   case $ac_dashdash$ac_option in
1034   --)
1035     ac_dashdash=yes ;;
1036
1037   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038     ac_prev=bindir ;;
1039   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040     bindir=$ac_optarg ;;
1041
1042   -build | --build | --buil | --bui | --bu)
1043     ac_prev=build_alias ;;
1044   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045     build_alias=$ac_optarg ;;
1046
1047   -cache-file | --cache-file | --cache-fil | --cache-fi \
1048   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049     ac_prev=cache_file ;;
1050   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052     cache_file=$ac_optarg ;;
1053
1054   --config-cache | -C)
1055     cache_file=config.cache ;;
1056
1057   -datadir | --datadir | --datadi | --datad)
1058     ac_prev=datadir ;;
1059   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060     datadir=$ac_optarg ;;
1061
1062   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063   | --dataroo | --dataro | --datar)
1064     ac_prev=datarootdir ;;
1065   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067     datarootdir=$ac_optarg ;;
1068
1069   -disable-* | --disable-*)
1070     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073       as_fn_error "invalid feature name: $ac_useropt"
1074     ac_useropt_orig=$ac_useropt
1075     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076     case $ac_user_opts in
1077       *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081          ac_unrecognized_sep=', ';;
1082     esac
1083     eval enable_$ac_useropt=no ;;
1084
1085   -docdir | --docdir | --docdi | --doc | --do)
1086     ac_prev=docdir ;;
1087   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088     docdir=$ac_optarg ;;
1089
1090   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091     ac_prev=dvidir ;;
1092   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093     dvidir=$ac_optarg ;;
1094
1095   -enable-* | --enable-*)
1096     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099       as_fn_error "invalid feature name: $ac_useropt"
1100     ac_useropt_orig=$ac_useropt
1101     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102     case $ac_user_opts in
1103       *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107          ac_unrecognized_sep=', ';;
1108     esac
1109     eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113   | --exec | --exe | --ex)
1114     ac_prev=exec_prefix ;;
1115   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117   | --exec=* | --exe=* | --ex=*)
1118     exec_prefix=$ac_optarg ;;
1119
1120   -gas | --gas | --ga | --g)
1121     # Obsolete; use --with-gas.
1122     with_gas=yes ;;
1123
1124   -help | --help | --hel | --he | -h)
1125     ac_init_help=long ;;
1126   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127     ac_init_help=recursive ;;
1128   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129     ac_init_help=short ;;
1130
1131   -host | --host | --hos | --ho)
1132     ac_prev=host_alias ;;
1133   -host=* | --host=* | --hos=* | --ho=*)
1134     host_alias=$ac_optarg ;;
1135
1136   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137     ac_prev=htmldir ;;
1138   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139   | --ht=*)
1140     htmldir=$ac_optarg ;;
1141
1142   -includedir | --includedir | --includedi | --included | --include \
1143   | --includ | --inclu | --incl | --inc)
1144     ac_prev=includedir ;;
1145   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146   | --includ=* | --inclu=* | --incl=* | --inc=*)
1147     includedir=$ac_optarg ;;
1148
1149   -infodir | --infodir | --infodi | --infod | --info | --inf)
1150     ac_prev=infodir ;;
1151   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152     infodir=$ac_optarg ;;
1153
1154   -libdir | --libdir | --libdi | --libd)
1155     ac_prev=libdir ;;
1156   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157     libdir=$ac_optarg ;;
1158
1159   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160   | --libexe | --libex | --libe)
1161     ac_prev=libexecdir ;;
1162   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163   | --libexe=* | --libex=* | --libe=*)
1164     libexecdir=$ac_optarg ;;
1165
1166   -localedir | --localedir | --localedi | --localed | --locale)
1167     ac_prev=localedir ;;
1168   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169     localedir=$ac_optarg ;;
1170
1171   -localstatedir | --localstatedir | --localstatedi | --localstated \
1172   | --localstate | --localstat | --localsta | --localst | --locals)
1173     ac_prev=localstatedir ;;
1174   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176     localstatedir=$ac_optarg ;;
1177
1178   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179     ac_prev=mandir ;;
1180   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181     mandir=$ac_optarg ;;
1182
1183   -nfp | --nfp | --nf)
1184     # Obsolete; use --without-fp.
1185     with_fp=no ;;
1186
1187   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188   | --no-cr | --no-c | -n)
1189     no_create=yes ;;
1190
1191   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193     no_recursion=yes ;;
1194
1195   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197   | --oldin | --oldi | --old | --ol | --o)
1198     ac_prev=oldincludedir ;;
1199   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202     oldincludedir=$ac_optarg ;;
1203
1204   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205     ac_prev=prefix ;;
1206   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207     prefix=$ac_optarg ;;
1208
1209   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210   | --program-pre | --program-pr | --program-p)
1211     ac_prev=program_prefix ;;
1212   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214     program_prefix=$ac_optarg ;;
1215
1216   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217   | --program-suf | --program-su | --program-s)
1218     ac_prev=program_suffix ;;
1219   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221     program_suffix=$ac_optarg ;;
1222
1223   -program-transform-name | --program-transform-name \
1224   | --program-transform-nam | --program-transform-na \
1225   | --program-transform-n | --program-transform- \
1226   | --program-transform | --program-transfor \
1227   | --program-transfo | --program-transf \
1228   | --program-trans | --program-tran \
1229   | --progr-tra | --program-tr | --program-t)
1230     ac_prev=program_transform_name ;;
1231   -program-transform-name=* | --program-transform-name=* \
1232   | --program-transform-nam=* | --program-transform-na=* \
1233   | --program-transform-n=* | --program-transform-=* \
1234   | --program-transform=* | --program-transfor=* \
1235   | --program-transfo=* | --program-transf=* \
1236   | --program-trans=* | --program-tran=* \
1237   | --progr-tra=* | --program-tr=* | --program-t=*)
1238     program_transform_name=$ac_optarg ;;
1239
1240   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241     ac_prev=pdfdir ;;
1242   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243     pdfdir=$ac_optarg ;;
1244
1245   -psdir | --psdir | --psdi | --psd | --ps)
1246     ac_prev=psdir ;;
1247   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248     psdir=$ac_optarg ;;
1249
1250   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251   | -silent | --silent | --silen | --sile | --sil)
1252     silent=yes ;;
1253
1254   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255     ac_prev=sbindir ;;
1256   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257   | --sbi=* | --sb=*)
1258     sbindir=$ac_optarg ;;
1259
1260   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262   | --sharedst | --shareds | --shared | --share | --shar \
1263   | --sha | --sh)
1264     ac_prev=sharedstatedir ;;
1265   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268   | --sha=* | --sh=*)
1269     sharedstatedir=$ac_optarg ;;
1270
1271   -site | --site | --sit)
1272     ac_prev=site ;;
1273   -site=* | --site=* | --sit=*)
1274     site=$ac_optarg ;;
1275
1276   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277     ac_prev=srcdir ;;
1278   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279     srcdir=$ac_optarg ;;
1280
1281   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282   | --syscon | --sysco | --sysc | --sys | --sy)
1283     ac_prev=sysconfdir ;;
1284   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286     sysconfdir=$ac_optarg ;;
1287
1288   -target | --target | --targe | --targ | --tar | --ta | --t)
1289     ac_prev=target_alias ;;
1290   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291     target_alias=$ac_optarg ;;
1292
1293   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294     verbose=yes ;;
1295
1296   -version | --version | --versio | --versi | --vers | -V)
1297     ac_init_version=: ;;
1298
1299   -with-* | --with-*)
1300     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301     # Reject names that are not valid shell variable names.
1302     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303       as_fn_error "invalid package name: $ac_useropt"
1304     ac_useropt_orig=$ac_useropt
1305     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306     case $ac_user_opts in
1307       *"
1308 "with_$ac_useropt"
1309 "*) ;;
1310       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311          ac_unrecognized_sep=', ';;
1312     esac
1313     eval with_$ac_useropt=\$ac_optarg ;;
1314
1315   -without-* | --without-*)
1316     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317     # Reject names that are not valid shell variable names.
1318     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319       as_fn_error "invalid package name: $ac_useropt"
1320     ac_useropt_orig=$ac_useropt
1321     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322     case $ac_user_opts in
1323       *"
1324 "with_$ac_useropt"
1325 "*) ;;
1326       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327          ac_unrecognized_sep=', ';;
1328     esac
1329     eval with_$ac_useropt=no ;;
1330
1331   --x)
1332     # Obsolete; use --with-x.
1333     with_x=yes ;;
1334
1335   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336   | --x-incl | --x-inc | --x-in | --x-i)
1337     ac_prev=x_includes ;;
1338   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340     x_includes=$ac_optarg ;;
1341
1342   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344     ac_prev=x_libraries ;;
1345   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347     x_libraries=$ac_optarg ;;
1348
1349   -*) as_fn_error "unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information."
1351     ;;
1352
1353   *=*)
1354     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355     # Reject names that are not valid shell variable names.
1356     case $ac_envvar in #(
1357       '' | [0-9]* | *[!_$as_cr_alnum]* )
1358       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1359     esac
1360     eval $ac_envvar=\$ac_optarg
1361     export $ac_envvar ;;
1362
1363   *)
1364     # FIXME: should be removed in autoconf 3.0.
1365     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369     ;;
1370
1371   esac
1372 done
1373
1374 if test -n "$ac_prev"; then
1375   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376   as_fn_error "missing argument to $ac_option"
1377 fi
1378
1379 if test -n "$ac_unrecognized_opts"; then
1380   case $enable_option_checking in
1381     no) ;;
1382     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1383     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384   esac
1385 fi
1386
1387 # Check all directory arguments for consistency.
1388 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389                 datadir sysconfdir sharedstatedir localstatedir includedir \
1390                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391                 libdir localedir mandir
1392 do
1393   eval ac_val=\$$ac_var
1394   # Remove trailing slashes.
1395   case $ac_val in
1396     */ )
1397       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398       eval $ac_var=\$ac_val;;
1399   esac
1400   # Be sure to have absolute directory names.
1401   case $ac_val in
1402     [\\/$]* | ?:[\\/]* )  continue;;
1403     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404   esac
1405   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1406 done
1407
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1411 build=$build_alias
1412 host=$host_alias
1413 target=$target_alias
1414
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x; then
1417   if test "x$build_alias" = x; then
1418     cross_compiling=maybe
1419     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1420     If a cross compiler is detected then cross compile mode will be used." >&2
1421   elif test "x$build_alias" != "x$host_alias"; then
1422     cross_compiling=yes
1423   fi
1424 fi
1425
1426 ac_tool_prefix=
1427 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1428
1429 test "$silent" = yes && exec 6>/dev/null
1430
1431
1432 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di=`ls -di .` &&
1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1435   as_fn_error "working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437   as_fn_error "pwd does not report name of working directory"
1438
1439
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442   ac_srcdir_defaulted=yes
1443   # Try the directory containing this script, then the parent directory.
1444   ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446          X"$as_myself" : 'X\(//\)[^/]' \| \
1447          X"$as_myself" : 'X\(//\)$' \| \
1448          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451             s//\1/
1452             q
1453           }
1454           /^X\(\/\/\)[^/].*/{
1455             s//\1/
1456             q
1457           }
1458           /^X\(\/\/\)$/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\).*/{
1463             s//\1/
1464             q
1465           }
1466           s/.*/./; q'`
1467   srcdir=$ac_confdir
1468   if test ! -r "$srcdir/$ac_unique_file"; then
1469     srcdir=..
1470   fi
1471 else
1472   ac_srcdir_defaulted=no
1473 fi
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1477 fi
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1479 ac_abs_confdir=`(
1480         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1481         pwd)`
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484   srcdir=.
1485 fi
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1489 case $srcdir in
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491 esac
1492 for ac_var in $ac_precious_vars; do
1493   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494   eval ac_env_${ac_var}_value=\$${ac_var}
1495   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497 done
1498
1499 #
1500 # Report the --help message.
1501 #
1502 if test "$ac_init_help" = "long"; then
1503   # Omit some internal or obsolete options to make the list less imposing.
1504   # This message is too long to be a string in the A/UX 3.1 sh.
1505   cat <<_ACEOF
1506 \`configure' configures OpenJPEG 1.5.0 to adapt to many kinds of systems.
1507
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE.  See below for descriptions of some of the useful variables.
1512
1513 Defaults for the options are specified in brackets.
1514
1515 Configuration:
1516   -h, --help              display this help and exit
1517       --help=short        display options specific to this package
1518       --help=recursive    display the short help of all the included packages
1519   -V, --version           display version information and exit
1520   -q, --quiet, --silent   do not print \`checking...' messages
1521       --cache-file=FILE   cache test results in FILE [disabled]
1522   -C, --config-cache      alias for \`--cache-file=config.cache'
1523   -n, --no-create         do not create output files
1524       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1525
1526 Installation directories:
1527   --prefix=PREFIX         install architecture-independent files in PREFIX
1528                           [$ac_default_prefix]
1529   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1530                           [PREFIX]
1531
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1536
1537 For better control, use the options below.
1538
1539 Fine tuning of the installation directories:
1540   --bindir=DIR            user executables [EPREFIX/bin]
1541   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1542   --libexecdir=DIR        program executables [EPREFIX/libexec]
1543   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1544   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1545   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1546   --libdir=DIR            object code libraries [EPREFIX/lib]
1547   --includedir=DIR        C header files [PREFIX/include]
1548   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1549   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1550   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1551   --infodir=DIR           info documentation [DATAROOTDIR/info]
1552   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1553   --mandir=DIR            man documentation [DATAROOTDIR/man]
1554   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjpeg]
1555   --htmldir=DIR           html documentation [DOCDIR]
1556   --dvidir=DIR            dvi documentation [DOCDIR]
1557   --pdfdir=DIR            pdf documentation [DOCDIR]
1558   --psdir=DIR             ps documentation [DOCDIR]
1559 _ACEOF
1560
1561   cat <<\_ACEOF
1562
1563 Program names:
1564   --program-prefix=PREFIX            prepend PREFIX to installed program names
1565   --program-suffix=SUFFIX            append SUFFIX to installed program names
1566   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1567
1568 System types:
1569   --build=BUILD     configure for building on BUILD [guessed]
1570   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1571   --target=TARGET   configure for building compilers for TARGET [HOST]
1572 _ACEOF
1573 fi
1574
1575 if test -n "$ac_init_help"; then
1576   case $ac_init_help in
1577      short | recursive ) echo "Configuration of OpenJPEG 1.5.0:";;
1578    esac
1579   cat <<\_ACEOF
1580
1581 Optional Features:
1582   --disable-option-checking  ignore unrecognized --enable/--with options
1583   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1584   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1585   --enable-silent-rules          less verbose build output (undo: `make V=1')
1586   --disable-silent-rules         verbose build output (undo: `make V=0')
1587   --enable-shared[=PKGS]  build shared libraries [default=yes]
1588   --enable-static[=PKGS]  build static libraries [default=yes]
1589   --enable-fast-install[=PKGS]
1590                           optimize for fast installation [default=yes]
1591   --disable-dependency-tracking  speeds up one-time build
1592   --enable-dependency-tracking   do not reject slow dependency extractors
1593   --disable-libtool-lock  avoid locking (might break parallel builds)
1594   --enable-debug          build with debug symbols [default=disabled]
1595   --enable-mj2            build mj2 binaries [default=disabled]
1596   --enable-jpwl           build JPWL library [default=disabled]
1597   --enable-jpip           build jpip library [default=disabled]
1598   --enable-jpip-server    build jpip server [default=disabled]
1599   --disable-doc           Disable documentation build [default=enabled]
1600   --disable-png           disable PNG support [default=enabled]
1601   --disable-tiff          disable TIFF support [default=enabled]
1602   --disable-lcms2         disable LCMS-2 support [default=enabled]
1603   --disable-lcms1         disable LCMS-1 support [default=enabled]
1604
1605 Optional Packages:
1606   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1607   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1608   --with-pic              try to use only PIC/non-PIC objects [default=use
1609                           both]
1610   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1611   --with-doxygen=FILE     doxygen program to use [default=doxygen]
1612
1613 Some influential environment variables:
1614   CC          C compiler command
1615   CFLAGS      C compiler flags
1616   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1617               nonstandard directory <lib dir>
1618   LIBS        libraries to pass to the linker, e.g. -l<library>
1619   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1620               you have headers in a nonstandard directory <include dir>
1621   CPP         C preprocessor
1622   PKG_CONFIG  path to pkg-config utility
1623   PKG_CONFIG_PATH
1624               directories to add to pkg-config's search path
1625   PKG_CONFIG_LIBDIR
1626               path overriding pkg-config's built-in search path
1627   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
1628   PNG_LIBS    linker flags for PNG, overriding pkg-config
1629   Z_CFLAGS    preprocessor flags for libz
1630   Z_LIBS      linker flags for libz
1631   TIFF_CFLAGS preprocessor flags for libtiff
1632   TIFF_LIBS   linker flags for libtiff
1633   LCMS2_CFLAGS
1634               C compiler flags for LCMS2, overriding pkg-config
1635   LCMS2_LIBS  linker flags for LCMS2, overriding pkg-config
1636   LCMS1_CFLAGS
1637               C compiler flags for LCMS1, overriding pkg-config
1638   LCMS1_LIBS  linker flags for LCMS1, overriding pkg-config
1639   THREAD_CFLAGS
1640               compiler flag for the thread library
1641   THREAD_LIBS linker flags for thread library
1642   FCGI_CFLAGS preprocessor flags for libfcgi
1643   FCGI_LIBS   linker flags for libfcgi
1644   LIBCURL_CFLAGS
1645               C compiler flags for LIBCURL, overriding pkg-config
1646   LIBCURL_LIBS
1647               linker flags for LIBCURL, overriding pkg-config
1648
1649 Use these variables to override the choices made by `configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1651
1652 Report bugs to <openjpeg@googlegroups.com>.
1653 OpenJPEG home page: <http://www.openjpeg.org>.
1654 _ACEOF
1655 ac_status=$?
1656 fi
1657
1658 if test "$ac_init_help" = "recursive"; then
1659   # If there are subdirs, report their specific --help.
1660   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661     test -d "$ac_dir" ||
1662       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663       continue
1664     ac_builddir=.
1665
1666 case "$ac_dir" in
1667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *)
1669   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670   # A ".." for each directory in $ac_dir_suffix.
1671   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672   case $ac_top_builddir_sub in
1673   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675   esac ;;
1676 esac
1677 ac_abs_top_builddir=$ac_pwd
1678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679 # for backward compatibility:
1680 ac_top_builddir=$ac_top_build_prefix
1681
1682 case $srcdir in
1683   .)  # We are building in place.
1684     ac_srcdir=.
1685     ac_top_srcdir=$ac_top_builddir_sub
1686     ac_abs_top_srcdir=$ac_pwd ;;
1687   [\\/]* | ?:[\\/]* )  # Absolute name.
1688     ac_srcdir=$srcdir$ac_dir_suffix;
1689     ac_top_srcdir=$srcdir
1690     ac_abs_top_srcdir=$srcdir ;;
1691   *) # Relative name.
1692     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693     ac_top_srcdir=$ac_top_build_prefix$srcdir
1694     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 esac
1696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697
1698     cd "$ac_dir" || { ac_status=$?; continue; }
1699     # Check for guested configure.
1700     if test -f "$ac_srcdir/configure.gnu"; then
1701       echo &&
1702       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703     elif test -f "$ac_srcdir/configure"; then
1704       echo &&
1705       $SHELL "$ac_srcdir/configure" --help=recursive
1706     else
1707       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708     fi || ac_status=$?
1709     cd "$ac_pwd" || { ac_status=$?; break; }
1710   done
1711 fi
1712
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1715   cat <<\_ACEOF
1716 OpenJPEG configure 1.5.0
1717 generated by GNU Autoconf 2.65
1718
1719 Copyright (C) 2009 Free Software Foundation, Inc.
1720 This configure script is free software; the Free Software Foundation
1721 gives unlimited permission to copy, distribute and modify it.
1722 _ACEOF
1723   exit
1724 fi
1725
1726 ## ------------------------ ##
1727 ## Autoconf initialization. ##
1728 ## ------------------------ ##
1729
1730 # ac_fn_c_try_compile LINENO
1731 # --------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_compile ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   rm -f conftest.$ac_objext
1737   if { { ac_try="$ac_compile"
1738 case "(($ac_try" in
1739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740   *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744   (eval "$ac_compile") 2>conftest.err
1745   ac_status=$?
1746   if test -s conftest.err; then
1747     grep -v '^ *+' conftest.err >conftest.er1
1748     cat conftest.er1 >&5
1749     mv -f conftest.er1 conftest.err
1750   fi
1751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752   test $ac_status = 0; } && {
1753          test -z "$ac_c_werror_flag" ||
1754          test ! -s conftest.err
1755        } && test -s conftest.$ac_objext; then :
1756   ac_retval=0
1757 else
1758   $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1760
1761         ac_retval=1
1762 fi
1763   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764   as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_compile
1767
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_link ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   rm -f conftest.$ac_objext conftest$ac_exeext
1775   if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_link") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && {
1791          test -z "$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        } && test -s conftest$ac_exeext && {
1794          test "$cross_compiling" = yes ||
1795          $as_test_x conftest$ac_exeext
1796        }; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802         ac_retval=1
1803 fi
1804   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806   # interfere with the next link command; also delete a directory that is
1807   # left behind by Apple's compiler.  We do this before executing the actions.
1808   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810   as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_link
1813
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824   $as_echo_n "(cached) " >&6
1825 else
1826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h.  */
1828 $4
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832   eval "$3=yes"
1833 else
1834   eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
1843 } # ac_fn_c_check_header_compile
1844
1845 # ac_fn_c_try_cpp LINENO
1846 # ----------------------
1847 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_cpp ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   if { { ac_try="$ac_cpp conftest.$ac_ext"
1852 case "(($ac_try" in
1853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854   *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1859   ac_status=$?
1860   if test -s conftest.err; then
1861     grep -v '^ *+' conftest.err >conftest.er1
1862     cat conftest.er1 >&5
1863     mv -f conftest.er1 conftest.err
1864   fi
1865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866   test $ac_status = 0; } >/dev/null && {
1867          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1868          test ! -s conftest.err
1869        }; then :
1870   ac_retval=0
1871 else
1872   $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875     ac_retval=1
1876 fi
1877   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878   as_fn_set_status $ac_retval
1879
1880 } # ac_fn_c_try_cpp
1881
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1886 ac_fn_c_try_run ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_link") 2>&5
1897   ac_status=$?
1898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900   { { case "(($ac_try" in
1901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902   *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906   (eval "$ac_try") 2>&5
1907   ac_status=$?
1908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909   test $ac_status = 0; }; }; then :
1910   ac_retval=0
1911 else
1912   $as_echo "$as_me: program exited with status $ac_status" >&5
1913        $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916        ac_retval=$ac_status
1917 fi
1918   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920   as_fn_set_status $ac_retval
1921
1922 } # ac_fn_c_try_run
1923
1924 # ac_fn_c_check_func LINENO FUNC VAR
1925 # ----------------------------------
1926 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1927 ac_fn_c_check_func ()
1928 {
1929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933   $as_echo_n "(cached) " >&6
1934 else
1935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1939 #define $2 innocuous_$2
1940
1941 /* System header to define __stub macros and hopefully few prototypes,
1942     which can conflict with char $2 (); below.
1943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1944     <limits.h> exists even on freestanding compilers.  */
1945
1946 #ifdef __STDC__
1947 # include <limits.h>
1948 #else
1949 # include <assert.h>
1950 #endif
1951
1952 #undef $2
1953
1954 /* Override any GCC internal prototype to avoid an error.
1955    Use char because int might match the return type of a GCC
1956    builtin and then its argument prototype would still apply.  */
1957 #ifdef __cplusplus
1958 extern "C"
1959 #endif
1960 char $2 ();
1961 /* The GNU C library defines this for functions which it implements
1962     to always fail with ENOSYS.  Some functions are actually named
1963     something starting with __ and the normal name is an alias.  */
1964 #if defined __stub_$2 || defined __stub___$2
1965 choke me
1966 #endif
1967
1968 int
1969 main ()
1970 {
1971 return $2 ();
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_link "$LINENO"; then :
1977   eval "$3=yes"
1978 else
1979   eval "$3=no"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext \
1982     conftest$ac_exeext conftest.$ac_ext
1983 fi
1984 eval ac_res=\$$3
1985                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988
1989 } # ac_fn_c_check_func
1990 cat >config.log <<_ACEOF
1991 This file contains any messages produced by compilers while
1992 running configure, to aid debugging if configure makes a mistake.
1993
1994 It was created by OpenJPEG $as_me 1.5.0, which was
1995 generated by GNU Autoconf 2.65.  Invocation command line was
1996
1997   $ $0 $@
1998
1999 _ACEOF
2000 exec 5>>config.log
2001 {
2002 cat <<_ASUNAME
2003 ## --------- ##
2004 ## Platform. ##
2005 ## --------- ##
2006
2007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2012
2013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2014 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2015
2016 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2017 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2019 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2020 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2021 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2022 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2023
2024 _ASUNAME
2025
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029   IFS=$as_save_IFS
2030   test -z "$as_dir" && as_dir=.
2031     $as_echo "PATH: $as_dir"
2032   done
2033 IFS=$as_save_IFS
2034
2035 } >&5
2036
2037 cat >&5 <<_ACEOF
2038
2039
2040 ## ----------- ##
2041 ## Core tests. ##
2042 ## ----------- ##
2043
2044 _ACEOF
2045
2046
2047 # Keep a trace of the command line.
2048 # Strip out --no-create and --no-recursion so they do not pile up.
2049 # Strip out --silent because we don't want to record it for future runs.
2050 # Also quote any args containing shell meta-characters.
2051 # Make two passes to allow for proper duplicate-argument suppression.
2052 ac_configure_args=
2053 ac_configure_args0=
2054 ac_configure_args1=
2055 ac_must_keep_next=false
2056 for ac_pass in 1 2
2057 do
2058   for ac_arg
2059   do
2060     case $ac_arg in
2061     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2062     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2063     | -silent | --silent | --silen | --sile | --sil)
2064       continue ;;
2065     *\'*)
2066       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2067     esac
2068     case $ac_pass in
2069     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2070     2)
2071       as_fn_append ac_configure_args1 " '$ac_arg'"
2072       if test $ac_must_keep_next = true; then
2073         ac_must_keep_next=false # Got value, back to normal.
2074       else
2075         case $ac_arg in
2076           *=* | --config-cache | -C | -disable-* | --disable-* \
2077           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2078           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2079           | -with-* | --with-* | -without-* | --without-* | --x)
2080             case "$ac_configure_args0 " in
2081               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2082             esac
2083             ;;
2084           -* ) ac_must_keep_next=true ;;
2085         esac
2086       fi
2087       as_fn_append ac_configure_args " '$ac_arg'"
2088       ;;
2089     esac
2090   done
2091 done
2092 { ac_configure_args0=; unset ac_configure_args0;}
2093 { ac_configure_args1=; unset ac_configure_args1;}
2094
2095 # When interrupted or exit'd, cleanup temporary files, and complete
2096 # config.log.  We remove comments because anyway the quotes in there
2097 # would cause problems or look ugly.
2098 # WARNING: Use '\'' to represent an apostrophe within the trap.
2099 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2100 trap 'exit_status=$?
2101   # Save into config.log some information that might help in debugging.
2102   {
2103     echo
2104
2105     cat <<\_ASBOX
2106 ## ---------------- ##
2107 ## Cache variables. ##
2108 ## ---------------- ##
2109 _ASBOX
2110     echo
2111     # The following way of writing the cache mishandles newlines in values,
2112 (
2113   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2114     eval ac_val=\$$ac_var
2115     case $ac_val in #(
2116     *${as_nl}*)
2117       case $ac_var in #(
2118       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2119 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2120       esac
2121       case $ac_var in #(
2122       _ | IFS | as_nl) ;; #(
2123       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2124       *) { eval $ac_var=; unset $ac_var;} ;;
2125       esac ;;
2126     esac
2127   done
2128   (set) 2>&1 |
2129     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2130     *${as_nl}ac_space=\ *)
2131       sed -n \
2132         "s/'\''/'\''\\\\'\'''\''/g;
2133           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2134       ;; #(
2135     *)
2136       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2137       ;;
2138     esac |
2139     sort
2140 )
2141     echo
2142
2143     cat <<\_ASBOX
2144 ## ----------------- ##
2145 ## Output variables. ##
2146 ## ----------------- ##
2147 _ASBOX
2148     echo
2149     for ac_var in $ac_subst_vars
2150     do
2151       eval ac_val=\$$ac_var
2152       case $ac_val in
2153       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2154       esac
2155       $as_echo "$ac_var='\''$ac_val'\''"
2156     done | sort
2157     echo
2158
2159     if test -n "$ac_subst_files"; then
2160       cat <<\_ASBOX
2161 ## ------------------- ##
2162 ## File substitutions. ##
2163 ## ------------------- ##
2164 _ASBOX
2165       echo
2166       for ac_var in $ac_subst_files
2167       do
2168         eval ac_val=\$$ac_var
2169         case $ac_val in
2170         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171         esac
2172         $as_echo "$ac_var='\''$ac_val'\''"
2173       done | sort
2174       echo
2175     fi
2176
2177     if test -s confdefs.h; then
2178       cat <<\_ASBOX
2179 ## ----------- ##
2180 ## confdefs.h. ##
2181 ## ----------- ##
2182 _ASBOX
2183       echo
2184       cat confdefs.h
2185       echo
2186     fi
2187     test "$ac_signal" != 0 &&
2188       $as_echo "$as_me: caught signal $ac_signal"
2189     $as_echo "$as_me: exit $exit_status"
2190   } >&5
2191   rm -f core *.core core.conftest.* &&
2192     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2193     exit $exit_status
2194 ' 0
2195 for ac_signal in 1 2 13 15; do
2196   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2197 done
2198 ac_signal=0
2199
2200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2201 rm -f -r conftest* confdefs.h
2202
2203 $as_echo "/* confdefs.h */" > confdefs.h
2204
2205 # Predefined preprocessor variables.
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_NAME "$PACKAGE_NAME"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_STRING "$PACKAGE_STRING"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_URL "$PACKAGE_URL"
2229 _ACEOF
2230
2231
2232 # Let the site file select an alternate cache file if it wants to.
2233 # Prefer an explicitly selected file to automatically selected ones.
2234 ac_site_file1=NONE
2235 ac_site_file2=NONE
2236 if test -n "$CONFIG_SITE"; then
2237   ac_site_file1=$CONFIG_SITE
2238 elif test "x$prefix" != xNONE; then
2239   ac_site_file1=$prefix/share/config.site
2240   ac_site_file2=$prefix/etc/config.site
2241 else
2242   ac_site_file1=$ac_default_prefix/share/config.site
2243   ac_site_file2=$ac_default_prefix/etc/config.site
2244 fi
2245 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2246 do
2247   test "x$ac_site_file" = xNONE && continue
2248   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2249     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2250 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2251     sed 's/^/| /' "$ac_site_file" >&5
2252     . "$ac_site_file"
2253   fi
2254 done
2255
2256 if test -r "$cache_file"; then
2257   # Some versions of bash will fail to source /dev/null (special files
2258   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2259   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2260     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2261 $as_echo "$as_me: loading cache $cache_file" >&6;}
2262     case $cache_file in
2263       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2264       *)                      . "./$cache_file";;
2265     esac
2266   fi
2267 else
2268   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2269 $as_echo "$as_me: creating cache $cache_file" >&6;}
2270   >$cache_file
2271 fi
2272
2273 # Check that the precious variables saved in the cache have kept the same
2274 # value.
2275 ac_cache_corrupted=false
2276 for ac_var in $ac_precious_vars; do
2277   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2278   eval ac_new_set=\$ac_env_${ac_var}_set
2279   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2280   eval ac_new_val=\$ac_env_${ac_var}_value
2281   case $ac_old_set,$ac_new_set in
2282     set,)
2283       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2284 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2285       ac_cache_corrupted=: ;;
2286     ,set)
2287       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2288 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2289       ac_cache_corrupted=: ;;
2290     ,);;
2291     *)
2292       if test "x$ac_old_val" != "x$ac_new_val"; then
2293         # differences in whitespace do not lead to failure.
2294         ac_old_val_w=`echo x $ac_old_val`
2295         ac_new_val_w=`echo x $ac_new_val`
2296         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2297           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2298 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2299           ac_cache_corrupted=:
2300         else
2301           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2302 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2303           eval $ac_var=\$ac_old_val
2304         fi
2305         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2306 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2307         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2308 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2309       fi;;
2310   esac
2311   # Pass precious variables to config.status.
2312   if test "$ac_new_set" = set; then
2313     case $ac_new_val in
2314     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2315     *) ac_arg=$ac_var=$ac_new_val ;;
2316     esac
2317     case " $ac_configure_args " in
2318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2319       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2320     esac
2321   fi
2322 done
2323 if $ac_cache_corrupted; then
2324   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2327 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2328   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2329 fi
2330 ## -------------------- ##
2331 ## Main body of script. ##
2332 ## -------------------- ##
2333
2334 ac_ext=c
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
2340
2341
2342
2343 ac_config_headers="$ac_config_headers opj_config.h"
2344
2345
2346 ac_aux_dir=
2347 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2348   for ac_t in install-sh install.sh shtool; do
2349     if test -f "$ac_dir/$ac_t"; then
2350       ac_aux_dir=$ac_dir
2351       ac_install_sh="$ac_aux_dir/$ac_t -c"
2352       break 2
2353     fi
2354   done
2355 done
2356 if test -z "$ac_aux_dir"; then
2357   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2358 fi
2359
2360 # These three variables are undocumented and unsupported,
2361 # and are intended to be withdrawn in a future Autoconf release.
2362 # They can cause serious problems if a builder's source tree is in a directory
2363 # whose full name contains unusual characters.
2364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2366 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2367
2368
2369 # Make sure we can run config.sub.
2370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2371   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2372
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2374 $as_echo_n "checking build system type... " >&6; }
2375 if test "${ac_cv_build+set}" = set; then :
2376   $as_echo_n "(cached) " >&6
2377 else
2378   ac_build_alias=$build_alias
2379 test "x$ac_build_alias" = x &&
2380   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2381 test "x$ac_build_alias" = x &&
2382   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2384   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2385
2386 fi
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2388 $as_echo "$ac_cv_build" >&6; }
2389 case $ac_cv_build in
2390 *-*-*) ;;
2391 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2392 esac
2393 build=$ac_cv_build
2394 ac_save_IFS=$IFS; IFS='-'
2395 set x $ac_cv_build
2396 shift
2397 build_cpu=$1
2398 build_vendor=$2
2399 shift; shift
2400 # Remember, the first character of IFS is used to create $*,
2401 # except with old shells:
2402 build_os=$*
2403 IFS=$ac_save_IFS
2404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2405
2406
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2408 $as_echo_n "checking host system type... " >&6; }
2409 if test "${ac_cv_host+set}" = set; then :
2410   $as_echo_n "(cached) " >&6
2411 else
2412   if test "x$host_alias" = x; then
2413   ac_cv_host=$ac_cv_build
2414 else
2415   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2416     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2417 fi
2418
2419 fi
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2421 $as_echo "$ac_cv_host" >&6; }
2422 case $ac_cv_host in
2423 *-*-*) ;;
2424 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2425 esac
2426 host=$ac_cv_host
2427 ac_save_IFS=$IFS; IFS='-'
2428 set x $ac_cv_host
2429 shift
2430 host_cpu=$1
2431 host_vendor=$2
2432 shift; shift
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2435 host_os=$*
2436 IFS=$ac_save_IFS
2437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2438
2439
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2441 $as_echo_n "checking target system type... " >&6; }
2442 if test "${ac_cv_target+set}" = set; then :
2443   $as_echo_n "(cached) " >&6
2444 else
2445   if test "x$target_alias" = x; then
2446   ac_cv_target=$ac_cv_host
2447 else
2448   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2449     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2450 fi
2451
2452 fi
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2454 $as_echo "$ac_cv_target" >&6; }
2455 case $ac_cv_target in
2456 *-*-*) ;;
2457 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2458 esac
2459 target=$ac_cv_target
2460 ac_save_IFS=$IFS; IFS='-'
2461 set x $ac_cv_target
2462 shift
2463 target_cpu=$1
2464 target_vendor=$2
2465 shift; shift
2466 # Remember, the first character of IFS is used to create $*,
2467 # except with old shells:
2468 target_os=$*
2469 IFS=$ac_save_IFS
2470 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2471
2472
2473 # The aliases save the names the user supplied, while $host etc.
2474 # will get canonicalized.
2475 test -n "$target_alias" &&
2476   test "$program_prefix$program_suffix$program_transform_name" = \
2477     NONENONEs,x,x, &&
2478   program_prefix=${target_alias}-
2479
2480
2481
2482 am__api_version='1.11'
2483
2484 # Find a good install program.  We prefer a C program (faster),
2485 # so one script is as good as another.  But avoid the broken or
2486 # incompatible versions:
2487 # SysV /etc/install, /usr/sbin/install
2488 # SunOS /usr/etc/install
2489 # IRIX /sbin/install
2490 # AIX /bin/install
2491 # AmigaOS /C/install, which installs bootblocks on floppy discs
2492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2495 # OS/2's system install, which has a completely different semantic
2496 # ./install, which can be erroneously created by make from ./install.sh.
2497 # Reject install programs that cannot install multiple files.
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2499 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2500 if test -z "$INSTALL"; then
2501 if test "${ac_cv_path_install+set}" = set; then :
2502   $as_echo_n "(cached) " >&6
2503 else
2504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509     # Account for people who put trailing slashes in PATH elements.
2510 case $as_dir/ in #((
2511   ./ | .// | /[cC]/* | \
2512   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2513   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2514   /usr/ucb/* ) ;;
2515   *)
2516     # OSF1 and SCO ODT 3.0 have their own names for install.
2517     # Don't use installbsd from OSF since it installs stuff as root
2518     # by default.
2519     for ac_prog in ginstall scoinst install; do
2520       for ac_exec_ext in '' $ac_executable_extensions; do
2521         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2522           if test $ac_prog = install &&
2523             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524             # AIX install.  It has an incompatible calling convention.
2525             :
2526           elif test $ac_prog = install &&
2527             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528             # program-specific install script used by HP pwplus--don't use.
2529             :
2530           else
2531             rm -rf conftest.one conftest.two conftest.dir
2532             echo one > conftest.one
2533             echo two > conftest.two
2534             mkdir conftest.dir
2535             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2536               test -s conftest.one && test -s conftest.two &&
2537               test -s conftest.dir/conftest.one &&
2538               test -s conftest.dir/conftest.two
2539             then
2540               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541               break 3
2542             fi
2543           fi
2544         fi
2545       done
2546     done
2547     ;;
2548 esac
2549
2550   done
2551 IFS=$as_save_IFS
2552
2553 rm -rf conftest.one conftest.two conftest.dir
2554
2555 fi
2556   if test "${ac_cv_path_install+set}" = set; then
2557     INSTALL=$ac_cv_path_install
2558   else
2559     # As a last resort, use the slow shell script.  Don't cache a
2560     # value for INSTALL within a source directory, because that will
2561     # break other packages using the cache if that directory is
2562     # removed, or if the value is a relative name.
2563     INSTALL=$ac_install_sh
2564   fi
2565 fi
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2567 $as_echo "$INSTALL" >&6; }
2568
2569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2570 # It thinks the first close brace ends the variable substitution.
2571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2572
2573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2574
2575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2578 $as_echo_n "checking whether build environment is sane... " >&6; }
2579 # Just in case
2580 sleep 1
2581 echo timestamp > conftest.file
2582 # Reject unsafe characters in $srcdir or the absolute working directory
2583 # name.  Accept space and tab only in the latter.
2584 am_lf='
2585 '
2586 case `pwd` in
2587   *[\\\"\#\$\&\'\`$am_lf]*)
2588     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2589 esac
2590 case $srcdir in
2591   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2592     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2593 esac
2594
2595 # Do `set' in a subshell so we don't clobber the current shell's
2596 # arguments.  Must try -L first in case configure is actually a
2597 # symlink; some systems play weird games with the mod time of symlinks
2598 # (eg FreeBSD returns the mod time of the symlink's containing
2599 # directory).
2600 if (
2601    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2602    if test "$*" = "X"; then
2603       # -L didn't work.
2604       set X `ls -t "$srcdir/configure" conftest.file`
2605    fi
2606    rm -f conftest.file
2607    if test "$*" != "X $srcdir/configure conftest.file" \
2608       && test "$*" != "X conftest.file $srcdir/configure"; then
2609
2610       # If neither matched, then we have a broken ls.  This can happen
2611       # if, for instance, CONFIG_SHELL is bash and it inherits a
2612       # broken ls alias from the environment.  This has actually
2613       # happened.  Such a system could not be considered "sane".
2614       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2615 alias in your environment" "$LINENO" 5
2616    fi
2617
2618    test "$2" = conftest.file
2619    )
2620 then
2621    # Ok.
2622    :
2623 else
2624    as_fn_error "newly created file is older than distributed files!
2625 Check your system clock" "$LINENO" 5
2626 fi
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628 $as_echo "yes" >&6; }
2629 test "$program_prefix" != NONE &&
2630   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2631 # Use a double $ so make ignores it.
2632 test "$program_suffix" != NONE &&
2633   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2634 # Double any \ or $.
2635 # By default was `s,x,x', remove it if useless.
2636 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2637 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2638
2639 # expand $ac_aux_dir to an absolute path
2640 am_aux_dir=`cd $ac_aux_dir && pwd`
2641
2642 if test x"${MISSING+set}" != xset; then
2643   case $am_aux_dir in
2644   *\ * | *\     *)
2645     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2646   *)
2647     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2648   esac
2649 fi
2650 # Use eval to expand $SHELL
2651 if eval "$MISSING --run true"; then
2652   am_missing_run="$MISSING --run "
2653 else
2654   am_missing_run=
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2656 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2657 fi
2658
2659 if test x"${install_sh}" != xset; then
2660   case $am_aux_dir in
2661   *\ * | *\     *)
2662     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2663   *)
2664     install_sh="\${SHELL} $am_aux_dir/install-sh"
2665   esac
2666 fi
2667
2668 # Installed binaries are usually stripped using `strip' when the user
2669 # run `make install-strip'.  However `strip' might not be the right
2670 # tool to use in cross-compilation environments, therefore Automake
2671 # will honor the `STRIP' environment variable to overrule this program.
2672 if test "$cross_compiling" != no; then
2673   if test -n "$ac_tool_prefix"; then
2674   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2675 set dummy ${ac_tool_prefix}strip; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_STRIP+set}" = set; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   if test -n "$STRIP"; then
2682   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689     for ac_exec_ext in '' $ac_executable_extensions; do
2690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696   done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 STRIP=$ac_cv_prog_STRIP
2702 if test -n "$STRIP"; then
2703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2704 $as_echo "$STRIP" >&6; }
2705 else
2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 fi
2712 if test -z "$ac_cv_prog_STRIP"; then
2713   ac_ct_STRIP=$STRIP
2714   # Extract the first word of "strip", so it can be a program name with args.
2715 set dummy strip; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2719   $as_echo_n "(cached) " >&6
2720 else
2721   if test -n "$ac_ct_STRIP"; then
2722   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727   IFS=$as_save_IFS
2728   test -z "$as_dir" && as_dir=.
2729     for ac_exec_ext in '' $ac_executable_extensions; do
2730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731     ac_cv_prog_ac_ct_STRIP="strip"
2732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733     break 2
2734   fi
2735 done
2736   done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2742 if test -n "$ac_ct_STRIP"; then
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2744 $as_echo "$ac_ct_STRIP" >&6; }
2745 else
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2748 fi
2749
2750   if test "x$ac_ct_STRIP" = x; then
2751     STRIP=":"
2752   else
2753     case $cross_compiling:$ac_tool_warned in
2754 yes:)
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757 ac_tool_warned=yes ;;
2758 esac
2759     STRIP=$ac_ct_STRIP
2760   fi
2761 else
2762   STRIP="$ac_cv_prog_STRIP"
2763 fi
2764
2765 fi
2766 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2769 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2770 if test -z "$MKDIR_P"; then
2771   if test "${ac_cv_path_mkdir+set}" = set; then :
2772   $as_echo_n "(cached) " >&6
2773 else
2774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779     for ac_prog in mkdir gmkdir; do
2780          for ac_exec_ext in '' $ac_executable_extensions; do
2781            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2782            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2783              'mkdir (GNU coreutils) '* | \
2784              'mkdir (coreutils) '* | \
2785              'mkdir (fileutils) '4.1*)
2786                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2787                break 3;;
2788            esac
2789          done
2790        done
2791   done
2792 IFS=$as_save_IFS
2793
2794 fi
2795
2796   test -d ./--version && rmdir ./--version
2797   if test "${ac_cv_path_mkdir+set}" = set; then
2798     MKDIR_P="$ac_cv_path_mkdir -p"
2799   else
2800     # As a last resort, use the slow shell script.  Don't cache a
2801     # value for MKDIR_P within a source directory, because that will
2802     # break other packages using the cache if that directory is
2803     # removed, or if the value is a relative name.
2804     MKDIR_P="$ac_install_sh -d"
2805   fi
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2808 $as_echo "$MKDIR_P" >&6; }
2809
2810 mkdir_p="$MKDIR_P"
2811 case $mkdir_p in
2812   [\\/$]* | ?:[\\/]*) ;;
2813   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2814 esac
2815
2816 for ac_prog in gawk mawk nawk awk
2817 do
2818   # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_AWK+set}" = set; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$AWK"; then
2826   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833     for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_AWK="$ac_prog"
2836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840   done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 AWK=$ac_cv_prog_AWK
2846 if test -n "$AWK"; then
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848 $as_echo "$AWK" >&6; }
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855   test -n "$AWK" && break
2856 done
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2860 set x ${MAKE-make}
2861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2863   $as_echo_n "(cached) " >&6
2864 else
2865   cat >conftest.make <<\_ACEOF
2866 SHELL = /bin/sh
2867 all:
2868         @echo '@@@%%%=$(MAKE)=@@@%%%'
2869 _ACEOF
2870 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2872   *@@@%%%=?*=@@@%%%*)
2873     eval ac_cv_prog_make_${ac_make}_set=yes;;
2874   *)
2875     eval ac_cv_prog_make_${ac_make}_set=no;;
2876 esac
2877 rm -f conftest.make
2878 fi
2879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882   SET_MAKE=
2883 else
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886   SET_MAKE="MAKE=${MAKE-make}"
2887 fi
2888
2889 rm -rf .tst 2>/dev/null
2890 mkdir .tst 2>/dev/null
2891 if test -d .tst; then
2892   am__leading_dot=.
2893 else
2894   am__leading_dot=_
2895 fi
2896 rmdir .tst 2>/dev/null
2897
2898 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2899   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2900   # is not polluted with repeated "-I."
2901   am__isrc=' -I$(srcdir)'
2902   # test to see if srcdir already configured
2903   if test -f $srcdir/config.status; then
2904     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2905   fi
2906 fi
2907
2908 # test whether we have cygpath
2909 if test -z "$CYGPATH_W"; then
2910   if (cygpath --version) >/dev/null 2>/dev/null; then
2911     CYGPATH_W='cygpath -w'
2912   else
2913     CYGPATH_W=echo
2914   fi
2915 fi
2916
2917
2918 # Define the identity of the package.
2919  PACKAGE='openjpeg'
2920  VERSION='1.5.0'
2921
2922
2923 cat >>confdefs.h <<_ACEOF
2924 #define PACKAGE "$PACKAGE"
2925 _ACEOF
2926
2927
2928 cat >>confdefs.h <<_ACEOF
2929 #define VERSION "$VERSION"
2930 _ACEOF
2931
2932 # Some tools Automake needs.
2933
2934 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2935
2936
2937 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2938
2939
2940 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2941
2942
2943 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2944
2945
2946 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2947
2948 # We need awk for the "check" target.  The system "awk" is bad on
2949 # some platforms.
2950 # Always define AMTAR for backward compatibility.
2951
2952 AMTAR=${AMTAR-"${am_missing_run}tar"}
2953
2954 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2955
2956
2957
2958
2959
2960 # Check whether --enable-silent-rules was given.
2961 if test "${enable_silent_rules+set}" = set; then :
2962   enableval=$enable_silent_rules;
2963 fi
2964
2965 case $enable_silent_rules in
2966 yes) AM_DEFAULT_VERBOSITY=0;;
2967 no)  AM_DEFAULT_VERBOSITY=1;;
2968 *)   AM_DEFAULT_VERBOSITY=0;;
2969 esac
2970 AM_BACKSLASH='\'
2971
2972
2973 MAJOR_NR=1
2974 MINOR_NR=5
2975 MICRO_NR=0
2976
2977
2978
2979
2980
2981 case `pwd` in
2982   *\ * | *\     *)
2983     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2984 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2985 esac
2986
2987
2988
2989 macro_version='2.2.6b'
2990 macro_revision='1.3017'
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004 ltmain="$ac_aux_dir/ltmain.sh"
3005
3006 DEPDIR="${am__leading_dot}deps"
3007
3008 ac_config_commands="$ac_config_commands depfiles"
3009
3010
3011 am_make=${MAKE-make}
3012 cat > confinc << 'END'
3013 am__doit:
3014         @echo this is the am__doit target
3015 .PHONY: am__doit
3016 END
3017 # If we don't find an include directive, just comment out the code.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3019 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3020 am__include="#"
3021 am__quote=
3022 _am_result=none
3023 # First try GNU make style include.
3024 echo "include confinc" > confmf
3025 # Ignore all kinds of additional output from `make'.
3026 case `$am_make -s -f confmf 2> /dev/null` in #(
3027 *the\ am__doit\ target*)
3028   am__include=include
3029   am__quote=
3030   _am_result=GNU
3031   ;;
3032 esac
3033 # Now try BSD make style include.
3034 if test "$am__include" = "#"; then
3035    echo '.include "confinc"' > confmf
3036    case `$am_make -s -f confmf 2> /dev/null` in #(
3037    *the\ am__doit\ target*)
3038      am__include=.include
3039      am__quote="\""
3040      _am_result=BSD
3041      ;;
3042    esac
3043 fi
3044
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3047 $as_echo "$_am_result" >&6; }
3048 rm -f confinc confmf
3049
3050 # Check whether --enable-dependency-tracking was given.
3051 if test "${enable_dependency_tracking+set}" = set; then :
3052   enableval=$enable_dependency_tracking;
3053 fi
3054
3055 if test "x$enable_dependency_tracking" != xno; then
3056   am_depcomp="$ac_aux_dir/depcomp"
3057   AMDEPBACKSLASH='\'
3058 fi
3059  if test "x$enable_dependency_tracking" != xno; then
3060   AMDEP_TRUE=
3061   AMDEP_FALSE='#'
3062 else
3063   AMDEP_TRUE='#'
3064   AMDEP_FALSE=
3065 fi
3066
3067
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 if test -n "$ac_tool_prefix"; then
3074   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test -n "$CC"; then
3082   ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089     for ac_exec_ext in '' $ac_executable_extensions; do
3090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096   done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 fi
3112 if test -z "$ac_cv_prog_CC"; then
3113   ac_ct_CC=$CC
3114   # Extract the first word of "gcc", so it can be a program name with args.
3115 set dummy gcc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -n "$ac_ct_CC"; then
3122   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129     for ac_exec_ext in '' $ac_executable_extensions; do
3130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131     ac_cv_prog_ac_ct_CC="gcc"
3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136   done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142 if test -n "$ac_ct_CC"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144 $as_echo "$ac_ct_CC" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150   if test "x$ac_ct_CC" = x; then
3151     CC=""
3152   else
3153     case $cross_compiling:$ac_tool_warned in
3154 yes:)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3158 esac
3159     CC=$ac_ct_CC
3160   fi
3161 else
3162   CC="$ac_cv_prog_CC"
3163 fi
3164
3165 if test -z "$CC"; then
3166           if test -n "$ac_tool_prefix"; then
3167     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}cc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_CC+set}" = set; then :
3172   $as_echo_n "(cached) " >&6
3173 else
3174   if test -n "$CC"; then
3175   ac_cv_prog_CC="$CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180   IFS=$as_save_IFS
3181   test -z "$as_dir" && as_dir=.
3182     for ac_exec_ext in '' $ac_executable_extensions; do
3183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184     ac_cv_prog_CC="${ac_tool_prefix}cc"
3185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186     break 2
3187   fi
3188 done
3189   done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 CC=$ac_cv_prog_CC
3195 if test -n "$CC"; then
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204   fi
3205 fi
3206 if test -z "$CC"; then
3207   # Extract the first word of "cc", so it can be a program name with args.
3208 set dummy cc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if test "${ac_cv_prog_CC+set}" = set; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   if test -n "$CC"; then
3215   ac_cv_prog_CC="$CC" # Let the user override the test.
3216 else
3217   ac_prog_rejected=no
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223     for ac_exec_ext in '' $ac_executable_extensions; do
3224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3226        ac_prog_rejected=yes
3227        continue
3228      fi
3229     ac_cv_prog_CC="cc"
3230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231     break 2
3232   fi
3233 done
3234   done
3235 IFS=$as_save_IFS
3236
3237 if test $ac_prog_rejected = yes; then
3238   # We found a bogon in the path, so make sure we never use it.
3239   set dummy $ac_cv_prog_CC
3240   shift
3241   if test $# != 0; then
3242     # We chose a different compiler from the bogus one.
3243     # However, it has the same basename, so the bogon will be chosen
3244     # first if we set CC to just the basename; use the full file name.
3245     shift
3246     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3247   fi
3248 fi
3249 fi
3250 fi
3251 CC=$ac_cv_prog_CC
3252 if test -n "$CC"; then
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3255 else
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260
3261 fi
3262 if test -z "$CC"; then
3263   if test -n "$ac_tool_prefix"; then
3264   for ac_prog in cl.exe
3265   do
3266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_CC+set}" = set; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   if test -n "$CC"; then
3274   ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281     for ac_exec_ext in '' $ac_executable_extensions; do
3282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288   done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CC=$ac_cv_prog_CC
3294 if test -n "$CC"; then
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303     test -n "$CC" && break
3304   done
3305 fi
3306 if test -z "$CC"; then
3307   ac_ct_CC=$CC
3308   for ac_prog in cl.exe
3309 do
3310   # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3315   $as_echo_n "(cached) " >&6
3316 else
3317   if test -n "$ac_ct_CC"; then
3318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325     for ac_exec_ext in '' $ac_executable_extensions; do
3326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327     ac_cv_prog_ac_ct_CC="$ac_prog"
3328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332   done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340 $as_echo "$ac_ct_CC" >&6; }
3341 else
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346
3347   test -n "$ac_ct_CC" && break
3348 done
3349
3350   if test "x$ac_ct_CC" = x; then
3351     CC=""
3352   else
3353     case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359     CC=$ac_ct_CC
3360   fi
3361 fi
3362
3363 fi
3364
3365
3366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error "no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details." "$LINENO" 5; }
3370
3371 # Provide some information about the compiler.
3372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3373 set X $ac_compile
3374 ac_compiler=$2
3375 for ac_option in --version -v -V -qversion; do
3376   { { ac_try="$ac_compiler $ac_option >&5"
3377 case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3384   ac_status=$?
3385   if test -s conftest.err; then
3386     sed '10a\
3387 ... rest of stderr output deleted ...
3388          10q' conftest.err >conftest.er1
3389     cat conftest.er1 >&5
3390   fi
3391   rm -f conftest.er1 conftest.err
3392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393   test $ac_status = 0; }
3394 done
3395
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h.  */
3398
3399 int
3400 main ()
3401 {
3402
3403   ;
3404   return 0;
3405 }
3406 _ACEOF
3407 ac_clean_files_save=$ac_clean_files
3408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3409 # Try to create an executable without -o first, disregard a.out.
3410 # It will help us diagnose broken compilers, and finding out an intuition
3411 # of exeext.
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3413 $as_echo_n "checking whether the C compiler works... " >&6; }
3414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3415
3416 # The possible output files:
3417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3418
3419 ac_rmfiles=
3420 for ac_file in $ac_files
3421 do
3422   case $ac_file in
3423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3425   esac
3426 done
3427 rm -f $ac_rmfiles
3428
3429 if { { ac_try="$ac_link_default"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436   (eval "$ac_link_default") 2>&5
3437   ac_status=$?
3438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439   test $ac_status = 0; }; then :
3440   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3442 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3443 # so that the user can short-circuit this test for compilers unknown to
3444 # Autoconf.
3445 for ac_file in $ac_files ''
3446 do
3447   test -f "$ac_file" || continue
3448   case $ac_file in
3449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3450         ;;
3451     [ab].out )
3452         # We found the default executable, but exeext='' is most
3453         # certainly right.
3454         break;;
3455     *.* )
3456         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3457         then :; else
3458            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459         fi
3460         # We set ac_cv_exeext here because the later test for it is not
3461         # safe: cross compilers may not add the suffix if given an `-o'
3462         # argument, so we may need to know it at that point already.
3463         # Even if this section looks crufty: it has the advantage of
3464         # actually working.
3465         break;;
3466     * )
3467         break;;
3468   esac
3469 done
3470 test "$ac_cv_exeext" = no && ac_cv_exeext=
3471
3472 else
3473   ac_file=''
3474 fi
3475 if test -z "$ac_file"; then :
3476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 { as_fn_set_status 77
3484 as_fn_error "C compiler cannot create executables
3485 See \`config.log' for more details." "$LINENO" 5; }; }
3486 else
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3488 $as_echo "yes" >&6; }
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3491 $as_echo_n "checking for C compiler default output file name... " >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3493 $as_echo "$ac_file" >&6; }
3494 ac_exeext=$ac_cv_exeext
3495
3496 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3497 ac_clean_files=$ac_clean_files_save
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3499 $as_echo_n "checking for suffix of executables... " >&6; }
3500 if { { ac_try="$ac_link"
3501 case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507   (eval "$ac_link") 2>&5
3508   ac_status=$?
3509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510   test $ac_status = 0; }; then :
3511   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3512 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3513 # work properly (i.e., refer to `conftest.exe'), while it won't with
3514 # `rm'.
3515 for ac_file in conftest.exe conftest conftest.*; do
3516   test -f "$ac_file" || continue
3517   case $ac_file in
3518     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3520           break;;
3521     * ) break;;
3522   esac
3523 done
3524 else
3525   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error "cannot compute suffix of executables: cannot compile and link
3528 See \`config.log' for more details." "$LINENO" 5; }
3529 fi
3530 rm -f conftest conftest$ac_cv_exeext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3532 $as_echo "$ac_cv_exeext" >&6; }
3533
3534 rm -f conftest.$ac_ext
3535 EXEEXT=$ac_cv_exeext
3536 ac_exeext=$EXEEXT
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h.  */
3539 #include <stdio.h>
3540 int
3541 main ()
3542 {
3543 FILE *f = fopen ("conftest.out", "w");
3544  return ferror (f) || fclose (f) != 0;
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 ac_clean_files="$ac_clean_files conftest.out"
3551 # Check that the compiler produces executables we can run.  If not, either
3552 # the compiler is broken, or we cross compile.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3554 $as_echo_n "checking whether we are cross compiling... " >&6; }
3555 if test "$cross_compiling" != yes; then
3556   { { ac_try="$ac_link"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563   (eval "$ac_link") 2>&5
3564   ac_status=$?
3565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566   test $ac_status = 0; }
3567   if { ac_try='./conftest$ac_cv_exeext'
3568   { { case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574   (eval "$ac_try") 2>&5
3575   ac_status=$?
3576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577   test $ac_status = 0; }; }; then
3578     cross_compiling=no
3579   else
3580     if test "$cross_compiling" = maybe; then
3581         cross_compiling=yes
3582     else
3583         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error "cannot run C compiled programs.
3586 If you meant to cross compile, use \`--host'.
3587 See \`config.log' for more details." "$LINENO" 5; }
3588     fi
3589   fi
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3592 $as_echo "$cross_compiling" >&6; }
3593
3594 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3595 ac_clean_files=$ac_clean_files_save
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3597 $as_echo_n "checking for suffix of object files... " >&6; }
3598 if test "${ac_cv_objext+set}" = set; then :
3599   $as_echo_n "(cached) " >&6
3600 else
3601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h.  */
3603
3604 int
3605 main ()
3606 {
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.o conftest.obj
3613 if { { ac_try="$ac_compile"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620   (eval "$ac_compile") 2>&5
3621   ac_status=$?
3622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623   test $ac_status = 0; }; then :
3624   for ac_file in conftest.o conftest.obj conftest.*; do
3625   test -f "$ac_file" || continue;
3626   case $ac_file in
3627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3628     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629        break;;
3630   esac
3631 done
3632 else
3633   $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error "cannot compute suffix of object files: cannot compile
3639 See \`config.log' for more details." "$LINENO" 5; }
3640 fi
3641 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3644 $as_echo "$ac_cv_objext" >&6; }
3645 OBJEXT=$ac_cv_objext
3646 ac_objext=$OBJEXT
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3649 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3650   $as_echo_n "(cached) " >&6
3651 else
3652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h.  */
3654
3655 int
3656 main ()
3657 {
3658 #ifndef __GNUC__
3659        choke me
3660 #endif
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667   ac_compiler_gnu=yes
3668 else
3669   ac_compiler_gnu=no
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3673
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3678   GCC=yes
3679 else
3680   GCC=
3681 fi
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 if test "${ac_cv_prog_cc_g+set}" = set; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   ac_save_c_werror_flag=$ac_c_werror_flag
3690    ac_c_werror_flag=yes
3691    ac_cv_prog_cc_g=no
3692    CFLAGS="-g"
3693    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h.  */
3695
3696 int
3697 main ()
3698 {
3699
3700   ;
3701   return 0;
3702 }
3703 _ACEOF
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705   ac_cv_prog_cc_g=yes
3706 else
3707   CFLAGS=""
3708       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h.  */
3710
3711 int
3712 main ()
3713 {
3714
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720
3721 else
3722   ac_c_werror_flag=$ac_save_c_werror_flag
3723          CFLAGS="-g"
3724          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h.  */
3726
3727 int
3728 main ()
3729 {
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736   ac_cv_prog_cc_g=yes
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743    ac_c_werror_flag=$ac_save_c_werror_flag
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746 $as_echo "$ac_cv_prog_cc_g" >&6; }
3747 if test "$ac_test_CFLAGS" = set; then
3748   CFLAGS=$ac_save_CFLAGS
3749 elif test $ac_cv_prog_cc_g = yes; then
3750   if test "$GCC" = yes; then
3751     CFLAGS="-g -O2"
3752   else
3753     CFLAGS="-g"
3754   fi
3755 else
3756   if test "$GCC" = yes; then
3757     CFLAGS="-O2"
3758   else
3759     CFLAGS=
3760   fi
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3764 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3765   $as_echo_n "(cached) " >&6
3766 else
3767   ac_cv_prog_cc_c89=no
3768 ac_save_CC=$CC
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771 #include <stdarg.h>
3772 #include <stdio.h>
3773 #include <sys/types.h>
3774 #include <sys/stat.h>
3775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3776 struct buf { int x; };
3777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3778 static char *e (p, i)
3779      char **p;
3780      int i;
3781 {
3782   return p[i];
3783 }
3784 static char *f (char * (*g) (char **, int), char **p, ...)
3785 {
3786   char *s;
3787   va_list v;
3788   va_start (v,p);
3789   s = g (p, va_arg (v,int));
3790   va_end (v);
3791   return s;
3792 }
3793
3794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3795    function prototypes and stuff, but not '\xHH' hex character constants.
3796    These don't provoke an error unfortunately, instead are silently treated
3797    as 'x'.  The following induces an error, until -std is added to get
3798    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3799    array size at least.  It's necessary to write '\x00'==0 to get something
3800    that's true only with -std.  */
3801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3802
3803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3804    inside strings and character constants.  */
3805 #define FOO(x) 'x'
3806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3807
3808 int test (int i, double x);
3809 struct s1 {int (*f) (int a);};
3810 struct s2 {int (*f) (double a);};
3811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3812 int argc;
3813 char **argv;
3814 int
3815 main ()
3816 {
3817 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3823         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824 do
3825   CC="$ac_save_CC $ac_arg"
3826   if ac_fn_c_try_compile "$LINENO"; then :
3827   ac_cv_prog_cc_c89=$ac_arg
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext
3830   test "x$ac_cv_prog_cc_c89" != "xno" && break
3831 done
3832 rm -f conftest.$ac_ext
3833 CC=$ac_save_CC
3834
3835 fi
3836 # AC_CACHE_VAL
3837 case "x$ac_cv_prog_cc_c89" in
3838   x)
3839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840 $as_echo "none needed" >&6; } ;;
3841   xno)
3842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843 $as_echo "unsupported" >&6; } ;;
3844   *)
3845     CC="$CC $ac_cv_prog_cc_c89"
3846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3847 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3848 esac
3849 if test "x$ac_cv_prog_cc_c89" != xno; then :
3850
3851 fi
3852
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858
3859 depcc="$CC"   am_compiler_list=
3860
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3862 $as_echo_n "checking dependency style of $depcc... " >&6; }
3863 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3864   $as_echo_n "(cached) " >&6
3865 else
3866   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3867   # We make a subdir and do the tests there.  Otherwise we can end up
3868   # making bogus files that we don't know about and never remove.  For
3869   # instance it was reported that on HP-UX the gcc test will end up
3870   # making a dummy file named `D' -- because `-MD' means `put the output
3871   # in D'.
3872   mkdir conftest.dir
3873   # Copy depcomp to subdir because otherwise we won't find it if we're
3874   # using a relative directory.
3875   cp "$am_depcomp" conftest.dir
3876   cd conftest.dir
3877   # We will build objects and dependencies in a subdirectory because
3878   # it helps to detect inapplicable dependency modes.  For instance
3879   # both Tru64's cc and ICC support -MD to output dependencies as a
3880   # side effect of compilation, but ICC will put the dependencies in
3881   # the current directory while Tru64 will put them in the object
3882   # directory.
3883   mkdir sub
3884
3885   am_cv_CC_dependencies_compiler_type=none
3886   if test "$am_compiler_list" = ""; then
3887      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3888   fi
3889   am__universal=false
3890   case " $depcc " in #(
3891      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3892      esac
3893
3894   for depmode in $am_compiler_list; do
3895     # Setup a source with many dependencies, because some compilers
3896     # like to wrap large dependency lists on column 80 (with \), and
3897     # we should not choose a depcomp mode which is confused by this.
3898     #
3899     # We need to recreate these files for each test, as the compiler may
3900     # overwrite some of them when testing with obscure command lines.
3901     # This happens at least with the AIX C compiler.
3902     : > sub/conftest.c
3903     for i in 1 2 3 4 5 6; do
3904       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3905       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3906       # Solaris 8's {/usr,}/bin/sh.
3907       touch sub/conftst$i.h
3908     done
3909     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3910
3911     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3912     # mode.  It turns out that the SunPro C++ compiler does not properly
3913     # handle `-M -o', and we need to detect this.  Also, some Intel
3914     # versions had trouble with output in subdirs
3915     am__obj=sub/conftest.${OBJEXT-o}
3916     am__minus_obj="-o $am__obj"
3917     case $depmode in
3918     gcc)
3919       # This depmode causes a compiler race in universal mode.
3920       test "$am__universal" = false || continue
3921       ;;
3922     nosideeffect)
3923       # after this tag, mechanisms are not by side-effect, so they'll
3924       # only be used when explicitly requested
3925       if test "x$enable_dependency_tracking" = xyes; then
3926         continue
3927       else
3928         break
3929       fi
3930       ;;
3931     msvisualcpp | msvcmsys)
3932       # This compiler won't grok `-c -o', but also, the minuso test has
3933       # not run yet.  These depmodes are late enough in the game, and
3934       # so weak that their functioning should not be impacted.
3935       am__obj=conftest.${OBJEXT-o}
3936       am__minus_obj=
3937       ;;
3938     none) break ;;
3939     esac
3940     if depmode=$depmode \
3941        source=sub/conftest.c object=$am__obj \
3942        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3943        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3944          >/dev/null 2>conftest.err &&
3945        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3946        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3947        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3948        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3949       # icc doesn't choke on unknown options, it will just issue warnings
3950       # or remarks (even with -Werror).  So we grep stderr for any message
3951       # that says an option was ignored or not supported.
3952       # When given -MP, icc 7.0 and 7.1 complain thusly:
3953       #   icc: Command line warning: ignoring option '-M'; no argument required
3954       # The diagnosis changed in icc 8.0:
3955       #   icc: Command line remark: option '-MP' not supported
3956       if (grep 'ignoring option' conftest.err ||
3957           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3958         am_cv_CC_dependencies_compiler_type=$depmode
3959         break
3960       fi
3961     fi
3962   done
3963
3964   cd ..
3965   rm -rf conftest.dir
3966 else
3967   am_cv_CC_dependencies_compiler_type=none
3968 fi
3969
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3972 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3973 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3974
3975  if
3976   test "x$enable_dependency_tracking" != xno \
3977   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3978   am__fastdepCC_TRUE=
3979   am__fastdepCC_FALSE='#'
3980 else
3981   am__fastdepCC_TRUE='#'
3982   am__fastdepCC_FALSE=
3983 fi
3984
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3987 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3988 if test "${ac_cv_path_SED+set}" = set; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3992      for ac_i in 1 2 3 4 5 6 7; do
3993        ac_script="$ac_script$as_nl$ac_script"
3994      done
3995      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3996      { ac_script=; unset ac_script;}
3997      if test -z "$SED"; then
3998   ac_path_SED_found=false
3999   # Loop through the user's path and test for each of PROGNAME-LIST
4000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003   IFS=$as_save_IFS
4004   test -z "$as_dir" && as_dir=.
4005     for ac_prog in sed gsed; do
4006     for ac_exec_ext in '' $ac_executable_extensions; do
4007       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4008       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4009 # Check for GNU ac_path_SED and select it if it is found.
4010   # Check for GNU $ac_path_SED
4011 case `"$ac_path_SED" --version 2>&1` in
4012 *GNU*)
4013   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4014 *)
4015   ac_count=0
4016   $as_echo_n 0123456789 >"conftest.in"
4017   while :
4018   do
4019     cat "conftest.in" "conftest.in" >"conftest.tmp"
4020     mv "conftest.tmp" "conftest.in"
4021     cp "conftest.in" "conftest.nl"
4022     $as_echo '' >> "conftest.nl"
4023     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4024     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4025     as_fn_arith $ac_count + 1 && ac_count=$as_val
4026     if test $ac_count -gt ${ac_path_SED_max-0}; then
4027       # Best one so far, save it but keep looking for a better one
4028       ac_cv_path_SED="$ac_path_SED"
4029       ac_path_SED_max=$ac_count
4030     fi
4031     # 10*(2^10) chars as input seems more than enough
4032     test $ac_count -gt 10 && break
4033   done
4034   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4035 esac
4036
4037       $ac_path_SED_found && break 3
4038     done
4039   done
4040   done
4041 IFS=$as_save_IFS
4042   if test -z "$ac_cv_path_SED"; then
4043     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4044   fi
4045 else
4046   ac_cv_path_SED=$SED
4047 fi
4048
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4051 $as_echo "$ac_cv_path_SED" >&6; }
4052  SED="$ac_cv_path_SED"
4053   rm -f conftest.sed
4054
4055 test -z "$SED" && SED=sed
4056 Xsed="$SED -e 1s/^X//"
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4069 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4070 if test "${ac_cv_path_GREP+set}" = set; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073   if test -z "$GREP"; then
4074   ac_path_GREP_found=false
4075   # Loop through the user's path and test for each of PROGNAME-LIST
4076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081     for ac_prog in grep ggrep; do
4082     for ac_exec_ext in '' $ac_executable_extensions; do
4083       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4084       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4085 # Check for GNU ac_path_GREP and select it if it is found.
4086   # Check for GNU $ac_path_GREP
4087 case `"$ac_path_GREP" --version 2>&1` in
4088 *GNU*)
4089   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4090 *)
4091   ac_count=0
4092   $as_echo_n 0123456789 >"conftest.in"
4093   while :
4094   do
4095     cat "conftest.in" "conftest.in" >"conftest.tmp"
4096     mv "conftest.tmp" "conftest.in"
4097     cp "conftest.in" "conftest.nl"
4098     $as_echo 'GREP' >> "conftest.nl"
4099     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101     as_fn_arith $ac_count + 1 && ac_count=$as_val
4102     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4103       # Best one so far, save it but keep looking for a better one
4104       ac_cv_path_GREP="$ac_path_GREP"
4105       ac_path_GREP_max=$ac_count
4106     fi
4107     # 10*(2^10) chars as input seems more than enough
4108     test $ac_count -gt 10 && break
4109   done
4110   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111 esac
4112
4113       $ac_path_GREP_found && break 3
4114     done
4115   done
4116   done
4117 IFS=$as_save_IFS
4118   if test -z "$ac_cv_path_GREP"; then
4119     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4120   fi
4121 else
4122   ac_cv_path_GREP=$GREP
4123 fi
4124
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4127 $as_echo "$ac_cv_path_GREP" >&6; }
4128  GREP="$ac_cv_path_GREP"
4129
4130
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4132 $as_echo_n "checking for egrep... " >&6; }
4133 if test "${ac_cv_path_EGREP+set}" = set; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4137    then ac_cv_path_EGREP="$GREP -E"
4138    else
4139      if test -z "$EGREP"; then
4140   ac_path_EGREP_found=false
4141   # Loop through the user's path and test for each of PROGNAME-LIST
4142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4144 do
4145   IFS=$as_save_IFS
4146   test -z "$as_dir" && as_dir=.
4147     for ac_prog in egrep; do
4148     for ac_exec_ext in '' $ac_executable_extensions; do
4149       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4150       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4151 # Check for GNU ac_path_EGREP and select it if it is found.
4152   # Check for GNU $ac_path_EGREP
4153 case `"$ac_path_EGREP" --version 2>&1` in
4154 *GNU*)
4155   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4156 *)
4157   ac_count=0
4158   $as_echo_n 0123456789 >"conftest.in"
4159   while :
4160   do
4161     cat "conftest.in" "conftest.in" >"conftest.tmp"
4162     mv "conftest.tmp" "conftest.in"
4163     cp "conftest.in" "conftest.nl"
4164     $as_echo 'EGREP' >> "conftest.nl"
4165     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4166     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4167     as_fn_arith $ac_count + 1 && ac_count=$as_val
4168     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4169       # Best one so far, save it but keep looking for a better one
4170       ac_cv_path_EGREP="$ac_path_EGREP"
4171       ac_path_EGREP_max=$ac_count
4172     fi
4173     # 10*(2^10) chars as input seems more than enough
4174     test $ac_count -gt 10 && break
4175   done
4176   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4177 esac
4178
4179       $ac_path_EGREP_found && break 3
4180     done
4181   done
4182   done
4183 IFS=$as_save_IFS
4184   if test -z "$ac_cv_path_EGREP"; then
4185     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4186   fi
4187 else
4188   ac_cv_path_EGREP=$EGREP
4189 fi
4190
4191    fi
4192 fi
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4194 $as_echo "$ac_cv_path_EGREP" >&6; }
4195  EGREP="$ac_cv_path_EGREP"
4196
4197
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4199 $as_echo_n "checking for fgrep... " >&6; }
4200 if test "${ac_cv_path_FGREP+set}" = set; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4204    then ac_cv_path_FGREP="$GREP -F"
4205    else
4206      if test -z "$FGREP"; then
4207   ac_path_FGREP_found=false
4208   # Loop through the user's path and test for each of PROGNAME-LIST
4209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214     for ac_prog in fgrep; do
4215     for ac_exec_ext in '' $ac_executable_extensions; do
4216       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4217       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4218 # Check for GNU ac_path_FGREP and select it if it is found.
4219   # Check for GNU $ac_path_FGREP
4220 case `"$ac_path_FGREP" --version 2>&1` in
4221 *GNU*)
4222   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4223 *)
4224   ac_count=0
4225   $as_echo_n 0123456789 >"conftest.in"
4226   while :
4227   do
4228     cat "conftest.in" "conftest.in" >"conftest.tmp"
4229     mv "conftest.tmp" "conftest.in"
4230     cp "conftest.in" "conftest.nl"
4231     $as_echo 'FGREP' >> "conftest.nl"
4232     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234     as_fn_arith $ac_count + 1 && ac_count=$as_val
4235     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4236       # Best one so far, save it but keep looking for a better one
4237       ac_cv_path_FGREP="$ac_path_FGREP"
4238       ac_path_FGREP_max=$ac_count
4239     fi
4240     # 10*(2^10) chars as input seems more than enough
4241     test $ac_count -gt 10 && break
4242   done
4243   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244 esac
4245
4246       $ac_path_FGREP_found && break 3
4247     done
4248   done
4249   done
4250 IFS=$as_save_IFS
4251   if test -z "$ac_cv_path_FGREP"; then
4252     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4253   fi
4254 else
4255   ac_cv_path_FGREP=$FGREP
4256 fi
4257
4258    fi
4259 fi
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4261 $as_echo "$ac_cv_path_FGREP" >&6; }
4262  FGREP="$ac_cv_path_FGREP"
4263
4264
4265 test -z "$GREP" && GREP=grep
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285 # Check whether --with-gnu-ld was given.
4286 if test "${with_gnu_ld+set}" = set; then :
4287   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4288 else
4289   with_gnu_ld=no
4290 fi
4291
4292 ac_prog=ld
4293 if test "$GCC" = yes; then
4294   # Check if gcc -print-prog-name=ld gives a path.
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4296 $as_echo_n "checking for ld used by $CC... " >&6; }
4297   case $host in
4298   *-*-mingw*)
4299     # gcc leaves a trailing carriage return which upsets mingw
4300     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4301   *)
4302     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4303   esac
4304   case $ac_prog in
4305     # Accept absolute paths.
4306     [\\/]* | ?:[\\/]*)
4307       re_direlt='/[^/][^/]*/\.\./'
4308       # Canonicalize the pathname of ld
4309       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4310       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4311         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4312       done
4313       test -z "$LD" && LD="$ac_prog"
4314       ;;
4315   "")
4316     # If it fails, then pretend we aren't using GCC.
4317     ac_prog=ld
4318     ;;
4319   *)
4320     # If it is relative, then search for the first ld in PATH.
4321     with_gnu_ld=unknown
4322     ;;
4323   esac
4324 elif test "$with_gnu_ld" = yes; then
4325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4326 $as_echo_n "checking for GNU ld... " >&6; }
4327 else
4328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4329 $as_echo_n "checking for non-GNU ld... " >&6; }
4330 fi
4331 if test "${lt_cv_path_LD+set}" = set; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334   if test -z "$LD"; then
4335   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4336   for ac_dir in $PATH; do
4337     IFS="$lt_save_ifs"
4338     test -z "$ac_dir" && ac_dir=.
4339     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4340       lt_cv_path_LD="$ac_dir/$ac_prog"
4341       # Check to see if the program is GNU ld.  I'd rather use --version,
4342       # but apparently some variants of GNU ld only accept -v.
4343       # Break only if it was the GNU/non-GNU ld that we prefer.
4344       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4345       *GNU* | *'with BFD'*)
4346         test "$with_gnu_ld" != no && break
4347         ;;
4348       *)
4349         test "$with_gnu_ld" != yes && break
4350         ;;
4351       esac
4352     fi
4353   done
4354   IFS="$lt_save_ifs"
4355 else
4356   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4357 fi
4358 fi
4359
4360 LD="$lt_cv_path_LD"
4361 if test -n "$LD"; then
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4363 $as_echo "$LD" >&6; }
4364 else
4365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4370 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4371 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4372   $as_echo_n "(cached) " >&6
4373 else
4374   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4375 case `$LD -v 2>&1 </dev/null` in
4376 *GNU* | *'with BFD'*)
4377   lt_cv_prog_gnu_ld=yes
4378   ;;
4379 *)
4380   lt_cv_prog_gnu_ld=no
4381   ;;
4382 esac
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4385 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4386 with_gnu_ld=$lt_cv_prog_gnu_ld
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4397 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4398 if test "${lt_cv_path_NM+set}" = set; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   if test -n "$NM"; then
4402   # Let the user override the test.
4403   lt_cv_path_NM="$NM"
4404 else
4405   lt_nm_to_check="${ac_tool_prefix}nm"
4406   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4407     lt_nm_to_check="$lt_nm_to_check nm"
4408   fi
4409   for lt_tmp_nm in $lt_nm_to_check; do
4410     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4411     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4412       IFS="$lt_save_ifs"
4413       test -z "$ac_dir" && ac_dir=.
4414       tmp_nm="$ac_dir/$lt_tmp_nm"
4415       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4416         # Check to see if the nm accepts a BSD-compat flag.
4417         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4418         #   nm: unknown option "B" ignored
4419         # Tru64's nm complains that /dev/null is an invalid object file
4420         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4421         */dev/null* | *'Invalid file or object type'*)
4422           lt_cv_path_NM="$tmp_nm -B"
4423           break
4424           ;;
4425         *)
4426           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4427           */dev/null*)
4428             lt_cv_path_NM="$tmp_nm -p"
4429             break
4430             ;;
4431           *)
4432             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4433             continue # so that we can try to find one that supports BSD flags
4434             ;;
4435           esac
4436           ;;
4437         esac
4438       fi
4439     done
4440     IFS="$lt_save_ifs"
4441   done
4442   : ${lt_cv_path_NM=no}
4443 fi
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4446 $as_echo "$lt_cv_path_NM" >&6; }
4447 if test "$lt_cv_path_NM" != "no"; then
4448   NM="$lt_cv_path_NM"
4449 else
4450   # Didn't find any BSD compatible name lister, look for dumpbin.
4451   if test -n "$ac_tool_prefix"; then
4452   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4453   do
4454     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   if test -n "$DUMPBIN"; then
4462   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469     for ac_exec_ext in '' $ac_executable_extensions; do
4470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476   done
4477 IFS=$as_save_IFS
4478
4479 fi
4480 fi
4481 DUMPBIN=$ac_cv_prog_DUMPBIN
4482 if test -n "$DUMPBIN"; then
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4484 $as_echo "$DUMPBIN" >&6; }
4485 else
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4488 fi
4489
4490
4491     test -n "$DUMPBIN" && break
4492   done
4493 fi
4494 if test -z "$DUMPBIN"; then
4495   ac_ct_DUMPBIN=$DUMPBIN
4496   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4497 do
4498   # Extract the first word of "$ac_prog", so it can be a program name with args.
4499 set dummy $ac_prog; ac_word=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505   if test -n "$ac_ct_DUMPBIN"; then
4506   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4507 else
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4510 do
4511   IFS=$as_save_IFS
4512   test -z "$as_dir" && as_dir=.
4513     for ac_exec_ext in '' $ac_executable_extensions; do
4514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4515     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517     break 2
4518   fi
4519 done
4520   done
4521 IFS=$as_save_IFS
4522
4523 fi
4524 fi
4525 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4526 if test -n "$ac_ct_DUMPBIN"; then
4527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4528 $as_echo "$ac_ct_DUMPBIN" >&6; }
4529 else
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4532 fi
4533
4534
4535   test -n "$ac_ct_DUMPBIN" && break
4536 done
4537
4538   if test "x$ac_ct_DUMPBIN" = x; then
4539     DUMPBIN=":"
4540   else
4541     case $cross_compiling:$ac_tool_warned in
4542 yes:)
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4545 ac_tool_warned=yes ;;
4546 esac
4547     DUMPBIN=$ac_ct_DUMPBIN
4548   fi
4549 fi
4550
4551
4552   if test "$DUMPBIN" != ":"; then
4553     NM="$DUMPBIN"
4554   fi
4555 fi
4556 test -z "$NM" && NM=nm
4557
4558
4559
4560
4561
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4564 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4565 if test "${lt_cv_nm_interface+set}" = set; then :
4566   $as_echo_n "(cached) " >&6
4567 else
4568   lt_cv_nm_interface="BSD nm"
4569   echo "int some_variable = 0;" > conftest.$ac_ext
4570   (eval echo "\"\$as_me:4570: $ac_compile\"" >&5)
4571   (eval "$ac_compile" 2>conftest.err)
4572   cat conftest.err >&5
4573   (eval echo "\"\$as_me:4573: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4574   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4575   cat conftest.err >&5
4576   (eval echo "\"\$as_me:4576: output\"" >&5)
4577   cat conftest.out >&5
4578   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4579     lt_cv_nm_interface="MS dumpbin"
4580   fi
4581   rm -f conftest*
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4584 $as_echo "$lt_cv_nm_interface" >&6; }
4585
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4587 $as_echo_n "checking whether ln -s works... " >&6; }
4588 LN_S=$as_ln_s
4589 if test "$LN_S" = "ln -s"; then
4590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4591 $as_echo "yes" >&6; }
4592 else
4593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4594 $as_echo "no, using $LN_S" >&6; }
4595 fi
4596
4597 # find the maximum length of command line arguments
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4599 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4600 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603     i=0
4604   teststring="ABCD"
4605
4606   case $build_os in
4607   msdosdjgpp*)
4608     # On DJGPP, this test can blow up pretty badly due to problems in libc
4609     # (any single argument exceeding 2000 bytes causes a buffer overrun
4610     # during glob expansion).  Even if it were fixed, the result of this
4611     # check would be larger than it should be.
4612     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4613     ;;
4614
4615   gnu*)
4616     # Under GNU Hurd, this test is not required because there is
4617     # no limit to the length of command line arguments.
4618     # Libtool will interpret -1 as no limit whatsoever
4619     lt_cv_sys_max_cmd_len=-1;
4620     ;;
4621
4622   cygwin* | mingw* | cegcc*)
4623     # On Win9x/ME, this test blows up -- it succeeds, but takes
4624     # about 5 minutes as the teststring grows exponentially.
4625     # Worse, since 9x/ME are not pre-emptively multitasking,
4626     # you end up with a "frozen" computer, even though with patience
4627     # the test eventually succeeds (with a max line length of 256k).
4628     # Instead, let's just punt: use the minimum linelength reported by
4629     # all of the supported platforms: 8192 (on NT/2K/XP).
4630     lt_cv_sys_max_cmd_len=8192;
4631     ;;
4632
4633   amigaos*)
4634     # On AmigaOS with pdksh, this test takes hours, literally.
4635     # So we just punt and use a minimum line length of 8192.
4636     lt_cv_sys_max_cmd_len=8192;
4637     ;;
4638
4639   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4640     # This has been around since 386BSD, at least.  Likely further.
4641     if test -x /sbin/sysctl; then
4642       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4643     elif test -x /usr/sbin/sysctl; then
4644       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4645     else
4646       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4647     fi
4648     # And add a safety zone
4649     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4650     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4651     ;;
4652
4653   interix*)
4654     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4655     lt_cv_sys_max_cmd_len=196608
4656     ;;
4657
4658   osf*)
4659     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4660     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4661     # nice to cause kernel panics so lets avoid the loop below.
4662     # First set a reasonable default.
4663     lt_cv_sys_max_cmd_len=16384
4664     #
4665     if test -x /sbin/sysconfig; then
4666       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4667         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4668       esac
4669     fi
4670     ;;
4671   sco3.2v5*)
4672     lt_cv_sys_max_cmd_len=102400
4673     ;;
4674   sysv5* | sco5v6* | sysv4.2uw2*)
4675     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4676     if test -n "$kargmax"; then
4677       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4678     else
4679       lt_cv_sys_max_cmd_len=32768
4680     fi
4681     ;;
4682   *)
4683     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4684     if test -n "$lt_cv_sys_max_cmd_len"; then
4685       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4686       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4687     else
4688       # Make teststring a little bigger before we do anything with it.
4689       # a 1K string should be a reasonable start.
4690       for i in 1 2 3 4 5 6 7 8 ; do
4691         teststring=$teststring$teststring
4692       done
4693       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4694       # If test is not a shell built-in, we'll probably end up computing a
4695       # maximum length that is only half of the actual maximum length, but
4696       # we can't tell.
4697       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4698                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4699               test $i != 17 # 1/2 MB should be enough
4700       do
4701         i=`expr $i + 1`
4702         teststring=$teststring$teststring
4703       done
4704       # Only check the string length outside the loop.
4705       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4706       teststring=
4707       # Add a significant safety factor because C++ compilers can tack on
4708       # massive amounts of additional arguments before passing them to the
4709       # linker.  It appears as though 1/2 is a usable value.
4710       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4711     fi
4712     ;;
4713   esac
4714
4715 fi
4716
4717 if test -n $lt_cv_sys_max_cmd_len ; then
4718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4719 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4720 else
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4722 $as_echo "none" >&6; }
4723 fi
4724 max_cmd_len=$lt_cv_sys_max_cmd_len
4725
4726
4727
4728
4729
4730
4731 : ${CP="cp -f"}
4732 : ${MV="mv -f"}
4733 : ${RM="rm -f"}
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4736 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4737 # Try some XSI features
4738 xsi_shell=no
4739 ( _lt_dummy="a/b/c"
4740   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4741       = c,a/b,, \
4742     && eval 'test $(( 1 + 1 )) -eq 2 \
4743     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4744   && xsi_shell=yes
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4746 $as_echo "$xsi_shell" >&6; }
4747
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4750 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4751 lt_shell_append=no
4752 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4753     >/dev/null 2>&1 \
4754   && lt_shell_append=yes
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4756 $as_echo "$lt_shell_append" >&6; }
4757
4758
4759 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4760   lt_unset=unset
4761 else
4762   lt_unset=false
4763 fi
4764
4765
4766
4767
4768
4769 # test EBCDIC or ASCII
4770 case `echo X|tr X '\101'` in
4771  A) # ASCII based system
4772     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4773   lt_SP2NL='tr \040 \012'
4774   lt_NL2SP='tr \015\012 \040\040'
4775   ;;
4776  *) # EBCDIC based system
4777   lt_SP2NL='tr \100 \n'
4778   lt_NL2SP='tr \r\n \100\100'
4779   ;;
4780 esac
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4791 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4792 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   lt_cv_ld_reload_flag='-r'
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4798 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4799 reload_flag=$lt_cv_ld_reload_flag
4800 case $reload_flag in
4801 "" | " "*) ;;
4802 *) reload_flag=" $reload_flag" ;;
4803 esac
4804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4805 case $host_os in
4806   darwin*)
4807     if test "$GCC" = yes; then
4808       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4809     else
4810       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4811     fi
4812     ;;
4813 esac
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823 if test -n "$ac_tool_prefix"; then
4824   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4825 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   if test -n "$OBJDUMP"; then
4832   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839     for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846   done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 OBJDUMP=$ac_cv_prog_OBJDUMP
4852 if test -n "$OBJDUMP"; then
4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4854 $as_echo "$OBJDUMP" >&6; }
4855 else
4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4858 fi
4859
4860
4861 fi
4862 if test -z "$ac_cv_prog_OBJDUMP"; then
4863   ac_ct_OBJDUMP=$OBJDUMP
4864   # Extract the first word of "objdump", so it can be a program name with args.
4865 set dummy objdump; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   if test -n "$ac_ct_OBJDUMP"; then
4872   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879     for ac_exec_ext in '' $ac_executable_extensions; do
4880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886   done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4892 if test -n "$ac_ct_OBJDUMP"; then
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4894 $as_echo "$ac_ct_OBJDUMP" >&6; }
4895 else
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899
4900   if test "x$ac_ct_OBJDUMP" = x; then
4901     OBJDUMP="false"
4902   else
4903     case $cross_compiling:$ac_tool_warned in
4904 yes:)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4908 esac
4909     OBJDUMP=$ac_ct_OBJDUMP
4910   fi
4911 else
4912   OBJDUMP="$ac_cv_prog_OBJDUMP"
4913 fi
4914
4915 test -z "$OBJDUMP" && OBJDUMP=objdump
4916
4917
4918
4919
4920
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4923 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4924 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4925   $as_echo_n "(cached) " >&6
4926 else
4927   lt_cv_file_magic_cmd='$MAGIC_CMD'
4928 lt_cv_file_magic_test_file=
4929 lt_cv_deplibs_check_method='unknown'
4930 # Need to set the preceding variable on all platforms that support
4931 # interlibrary dependencies.
4932 # 'none' -- dependencies not supported.
4933 # `unknown' -- same as none, but documents that we really don't know.
4934 # 'pass_all' -- all dependencies passed with no checks.
4935 # 'test_compile' -- check by making test program.
4936 # 'file_magic [[regex]]' -- check by looking for files in library path
4937 # which responds to the $file_magic_cmd with a given extended regex.
4938 # If you have `file' or equivalent on your system and you're not sure
4939 # whether `pass_all' will *always* work, you probably want this one.
4940
4941 case $host_os in
4942 aix[4-9]*)
4943   lt_cv_deplibs_check_method=pass_all
4944   ;;
4945
4946 beos*)
4947   lt_cv_deplibs_check_method=pass_all
4948   ;;
4949
4950 bsdi[45]*)
4951   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4952   lt_cv_file_magic_cmd='/usr/bin/file -L'
4953   lt_cv_file_magic_test_file=/shlib/libc.so
4954   ;;
4955
4956 cygwin*)
4957   # func_win32_libid is a shell function defined in ltmain.sh
4958   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4959   lt_cv_file_magic_cmd='func_win32_libid'
4960   ;;
4961
4962 mingw* | pw32*)
4963   # Base MSYS/MinGW do not provide the 'file' command needed by
4964   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4965   # unless we find 'file', for example because we are cross-compiling.
4966   if ( file / ) >/dev/null 2>&1; then
4967     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4968     lt_cv_file_magic_cmd='func_win32_libid'
4969   else
4970     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4971     lt_cv_file_magic_cmd='$OBJDUMP -f'
4972   fi
4973   ;;
4974
4975 cegcc)
4976   # use the weaker test based on 'objdump'. See mingw*.
4977   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4978   lt_cv_file_magic_cmd='$OBJDUMP -f'
4979   ;;
4980
4981 darwin* | rhapsody*)
4982   lt_cv_deplibs_check_method=pass_all
4983   ;;
4984
4985 freebsd* | dragonfly*)
4986   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4987     case $host_cpu in
4988     i*86 )
4989       # Not sure whether the presence of OpenBSD here was a mistake.
4990       # Let's accept both of them until this is cleared up.
4991       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4992       lt_cv_file_magic_cmd=/usr/bin/file
4993       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4994       ;;
4995     esac
4996   else
4997     lt_cv_deplibs_check_method=pass_all
4998   fi
4999   ;;
5000
5001 gnu*)
5002   lt_cv_deplibs_check_method=pass_all
5003   ;;
5004
5005 hpux10.20* | hpux11*)
5006   lt_cv_file_magic_cmd=/usr/bin/file
5007   case $host_cpu in
5008   ia64*)
5009     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5010     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5011     ;;
5012   hppa*64*)
5013     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5014     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5015     ;;
5016   *)
5017     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5018     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5019     ;;
5020   esac
5021   ;;
5022
5023 interix[3-9]*)
5024   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5025   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5026   ;;
5027
5028 irix5* | irix6* | nonstopux*)
5029   case $LD in
5030   *-32|*"-32 ") libmagic=32-bit;;
5031   *-n32|*"-n32 ") libmagic=N32;;
5032   *-64|*"-64 ") libmagic=64-bit;;
5033   *) libmagic=never-match;;
5034   esac
5035   lt_cv_deplibs_check_method=pass_all
5036   ;;
5037
5038 # This must be Linux ELF.
5039 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5040   lt_cv_deplibs_check_method=pass_all
5041   ;;
5042
5043 netbsd* | netbsdelf*-gnu)
5044   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5045     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5046   else
5047     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5048   fi
5049   ;;
5050
5051 newos6*)
5052   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5053   lt_cv_file_magic_cmd=/usr/bin/file
5054   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5055   ;;
5056
5057 *nto* | *qnx*)
5058   lt_cv_deplibs_check_method=pass_all
5059   ;;
5060
5061 openbsd*)
5062   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5063     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5064   else
5065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5066   fi
5067   ;;
5068
5069 osf3* | osf4* | osf5*)
5070   lt_cv_deplibs_check_method=pass_all
5071   ;;
5072
5073 rdos*)
5074   lt_cv_deplibs_check_method=pass_all
5075   ;;
5076
5077 solaris*)
5078   lt_cv_deplibs_check_method=pass_all
5079   ;;
5080
5081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5082   lt_cv_deplibs_check_method=pass_all
5083   ;;
5084
5085 sysv4 | sysv4.3*)
5086   case $host_vendor in
5087   motorola)
5088     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]'
5089     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5090     ;;
5091   ncr)
5092     lt_cv_deplibs_check_method=pass_all
5093     ;;
5094   sequent)
5095     lt_cv_file_magic_cmd='/bin/file'
5096     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5097     ;;
5098   sni)
5099     lt_cv_file_magic_cmd='/bin/file'
5100     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5101     lt_cv_file_magic_test_file=/lib/libc.so
5102     ;;
5103   siemens)
5104     lt_cv_deplibs_check_method=pass_all
5105     ;;
5106   pc)
5107     lt_cv_deplibs_check_method=pass_all
5108     ;;
5109   esac
5110   ;;
5111
5112 tpf*)
5113   lt_cv_deplibs_check_method=pass_all
5114   ;;
5115 esac
5116
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5119 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5120 file_magic_cmd=$lt_cv_file_magic_cmd
5121 deplibs_check_method=$lt_cv_deplibs_check_method
5122 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135 if test -n "$ac_tool_prefix"; then
5136   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5137 set dummy ${ac_tool_prefix}ar; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if test "${ac_cv_prog_AR+set}" = set; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   if test -n "$AR"; then
5144   ac_cv_prog_AR="$AR" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151     for ac_exec_ext in '' $ac_executable_extensions; do
5152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153     ac_cv_prog_AR="${ac_tool_prefix}ar"
5154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155     break 2
5156   fi
5157 done
5158   done
5159 IFS=$as_save_IFS
5160
5161 fi
5162 fi
5163 AR=$ac_cv_prog_AR
5164 if test -n "$AR"; then
5165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5166 $as_echo "$AR" >&6; }
5167 else
5168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171
5172
5173 fi
5174 if test -z "$ac_cv_prog_AR"; then
5175   ac_ct_AR=$AR
5176   # Extract the first word of "ar", so it can be a program name with args.
5177 set dummy ar; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   if test -n "$ac_ct_AR"; then
5184   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191     for ac_exec_ext in '' $ac_executable_extensions; do
5192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193     ac_cv_prog_ac_ct_AR="ar"
5194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195     break 2
5196   fi
5197 done
5198   done
5199 IFS=$as_save_IFS
5200
5201 fi
5202 fi
5203 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5204 if test -n "$ac_ct_AR"; then
5205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5206 $as_echo "$ac_ct_AR" >&6; }
5207 else
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 fi
5211
5212   if test "x$ac_ct_AR" = x; then
5213     AR="false"
5214   else
5215     case $cross_compiling:$ac_tool_warned in
5216 yes:)
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5219 ac_tool_warned=yes ;;
5220 esac
5221     AR=$ac_ct_AR
5222   fi
5223 else
5224   AR="$ac_cv_prog_AR"
5225 fi
5226
5227 test -z "$AR" && AR=ar
5228 test -z "$AR_FLAGS" && AR_FLAGS=cru
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240 if test -n "$ac_tool_prefix"; then
5241   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}strip; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if test "${ac_cv_prog_STRIP+set}" = set; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   if test -n "$STRIP"; then
5249   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254   IFS=$as_save_IFS
5255   test -z "$as_dir" && as_dir=.
5256     for ac_exec_ext in '' $ac_executable_extensions; do
5257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260     break 2
5261   fi
5262 done
5263   done
5264 IFS=$as_save_IFS
5265
5266 fi
5267 fi
5268 STRIP=$ac_cv_prog_STRIP
5269 if test -n "$STRIP"; then
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5271 $as_echo "$STRIP" >&6; }
5272 else
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275 fi
5276
5277
5278 fi
5279 if test -z "$ac_cv_prog_STRIP"; then
5280   ac_ct_STRIP=$STRIP
5281   # Extract the first word of "strip", so it can be a program name with args.
5282 set dummy strip; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5286   $as_echo_n "(cached) " >&6
5287 else
5288   if test -n "$ac_ct_STRIP"; then
5289   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294   IFS=$as_save_IFS
5295   test -z "$as_dir" && as_dir=.
5296     for ac_exec_ext in '' $ac_executable_extensions; do
5297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298     ac_cv_prog_ac_ct_STRIP="strip"
5299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300     break 2
5301   fi
5302 done
5303   done
5304 IFS=$as_save_IFS
5305
5306 fi
5307 fi
5308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5309 if test -n "$ac_ct_STRIP"; then
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5311 $as_echo "$ac_ct_STRIP" >&6; }
5312 else
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317   if test "x$ac_ct_STRIP" = x; then
5318     STRIP=":"
5319   else
5320     case $cross_compiling:$ac_tool_warned in
5321 yes:)
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5325 esac
5326     STRIP=$ac_ct_STRIP
5327   fi
5328 else
5329   STRIP="$ac_cv_prog_STRIP"
5330 fi
5331
5332 test -z "$STRIP" && STRIP=:
5333
5334
5335
5336
5337
5338
5339 if test -n "$ac_tool_prefix"; then
5340   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5345   $as_echo_n "(cached) " >&6
5346 else
5347   if test -n "$RANLIB"; then
5348   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355     for ac_exec_ext in '' $ac_executable_extensions; do
5356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362   done
5363 IFS=$as_save_IFS
5364
5365 fi
5366 fi
5367 RANLIB=$ac_cv_prog_RANLIB
5368 if test -n "$RANLIB"; then
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5370 $as_echo "$RANLIB" >&6; }
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375
5376
5377 fi
5378 if test -z "$ac_cv_prog_RANLIB"; then
5379   ac_ct_RANLIB=$RANLIB
5380   # Extract the first word of "ranlib", so it can be a program name with args.
5381 set dummy ranlib; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5385   $as_echo_n "(cached) " >&6
5386 else
5387   if test -n "$ac_ct_RANLIB"; then
5388   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395     for ac_exec_ext in '' $ac_executable_extensions; do
5396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397     ac_cv_prog_ac_ct_RANLIB="ranlib"
5398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399     break 2
5400   fi
5401 done
5402   done
5403 IFS=$as_save_IFS
5404
5405 fi
5406 fi
5407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5408 if test -n "$ac_ct_RANLIB"; then
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5410 $as_echo "$ac_ct_RANLIB" >&6; }
5411 else
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 fi
5415
5416   if test "x$ac_ct_RANLIB" = x; then
5417     RANLIB=":"
5418   else
5419     case $cross_compiling:$ac_tool_warned in
5420 yes:)
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5423 ac_tool_warned=yes ;;
5424 esac
5425     RANLIB=$ac_ct_RANLIB
5426   fi
5427 else
5428   RANLIB="$ac_cv_prog_RANLIB"
5429 fi
5430
5431 test -z "$RANLIB" && RANLIB=:
5432
5433
5434
5435
5436
5437
5438 # Determine commands to create old-style static archives.
5439 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5440 old_postinstall_cmds='chmod 644 $oldlib'
5441 old_postuninstall_cmds=
5442
5443 if test -n "$RANLIB"; then
5444   case $host_os in
5445   openbsd*)
5446     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5447     ;;
5448   *)
5449     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5450     ;;
5451   esac
5452   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5453 fi
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488 # If no C compiler was specified, use CC.
5489 LTCC=${LTCC-"$CC"}
5490
5491 # If no C compiler flags were specified, use CFLAGS.
5492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5493
5494 # Allow CC to be a program name with arguments.
5495 compiler=$CC
5496
5497
5498 # Check for command to grab the raw symbol name followed by C symbol from nm.
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5500 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5501 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504
5505 # These are sane defaults that work on at least a few old systems.
5506 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5507
5508 # Character class describing NM global symbol codes.
5509 symcode='[BCDEGRST]'
5510
5511 # Regexp to match symbols that can be accessed directly from C.
5512 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5513
5514 # Define system-specific variables.
5515 case $host_os in
5516 aix*)
5517   symcode='[BCDT]'
5518   ;;
5519 cygwin* | mingw* | pw32* | cegcc*)
5520   symcode='[ABCDGISTW]'
5521   ;;
5522 hpux*)
5523   if test "$host_cpu" = ia64; then
5524     symcode='[ABCDEGRST]'
5525   fi
5526   ;;
5527 irix* | nonstopux*)
5528   symcode='[BCDEGRST]'
5529   ;;
5530 osf*)
5531   symcode='[BCDEGQRST]'
5532   ;;
5533 solaris*)
5534   symcode='[BDRT]'
5535   ;;
5536 sco3.2v5*)
5537   symcode='[DT]'
5538   ;;
5539 sysv4.2uw2*)
5540   symcode='[DT]'
5541   ;;
5542 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5543   symcode='[ABDT]'
5544   ;;
5545 sysv4)
5546   symcode='[DFNSTU]'
5547   ;;
5548 esac
5549
5550 # If we're using GNU nm, then use its standard symbol codes.
5551 case `$NM -V 2>&1` in
5552 *GNU* | *'with BFD'*)
5553   symcode='[ABCDGIRSTW]' ;;
5554 esac
5555
5556 # Transform an extracted symbol line into a proper C declaration.
5557 # Some systems (esp. on ia64) link data and code symbols differently,
5558 # so use this general approach.
5559 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5560
5561 # Transform an extracted symbol line into symbol name and symbol address
5562 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5563 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5564
5565 # Handle CRLF in mingw tool chain
5566 opt_cr=
5567 case $build_os in
5568 mingw*)
5569   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5570   ;;
5571 esac
5572
5573 # Try without a prefix underscore, then with it.
5574 for ac_symprfx in "" "_"; do
5575
5576   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5577   symxfrm="\\1 $ac_symprfx\\2 \\2"
5578
5579   # Write the raw and C identifiers.
5580   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5581     # Fake it for dumpbin and say T for any non-static function
5582     # and D for any global variable.
5583     # Also find C++ and __fastcall symbols from MSVC++,
5584     # which start with @ or ?.
5585     lt_cv_sys_global_symbol_pipe="$AWK '"\
5586 "     {last_section=section; section=\$ 3};"\
5587 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5588 "     \$ 0!~/External *\|/{next};"\
5589 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5590 "     {if(hide[section]) next};"\
5591 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5592 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5593 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5594 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5595 "     ' prfx=^$ac_symprfx"
5596   else
5597     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5598   fi
5599
5600   # Check to see that the pipe works correctly.
5601   pipe_works=no
5602
5603   rm -f conftest*
5604   cat > conftest.$ac_ext <<_LT_EOF
5605 #ifdef __cplusplus
5606 extern "C" {
5607 #endif
5608 char nm_test_var;
5609 void nm_test_func(void);
5610 void nm_test_func(void){}
5611 #ifdef __cplusplus
5612 }
5613 #endif
5614 int main(){nm_test_var='a';nm_test_func();return(0);}
5615 _LT_EOF
5616
5617   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5618   (eval $ac_compile) 2>&5
5619   ac_status=$?
5620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5621   test $ac_status = 0; }; then
5622     # Now try to grab the symbols.
5623     nlist=conftest.nm
5624     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5625   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5626   ac_status=$?
5627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5628   test $ac_status = 0; } && test -s "$nlist"; then
5629       # Try sorting and uniquifying the output.
5630       if sort "$nlist" | uniq > "$nlist"T; then
5631         mv -f "$nlist"T "$nlist"
5632       else
5633         rm -f "$nlist"T
5634       fi
5635
5636       # Make sure that we snagged all the symbols we need.
5637       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5638         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5639           cat <<_LT_EOF > conftest.$ac_ext
5640 #ifdef __cplusplus
5641 extern "C" {
5642 #endif
5643
5644 _LT_EOF
5645           # Now generate the symbol file.
5646           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5647
5648           cat <<_LT_EOF >> conftest.$ac_ext
5649
5650 /* The mapping between symbol names and symbols.  */
5651 const struct {
5652   const char *name;
5653   void       *address;
5654 }
5655 lt__PROGRAM__LTX_preloaded_symbols[] =
5656 {
5657   { "@PROGRAM@", (void *) 0 },
5658 _LT_EOF
5659           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5660           cat <<\_LT_EOF >> conftest.$ac_ext
5661   {0, (void *) 0}
5662 };
5663
5664 /* This works around a problem in FreeBSD linker */
5665 #ifdef FREEBSD_WORKAROUND
5666 static const void *lt_preloaded_setup() {
5667   return lt__PROGRAM__LTX_preloaded_symbols;
5668 }
5669 #endif
5670
5671 #ifdef __cplusplus
5672 }
5673 #endif
5674 _LT_EOF
5675           # Now try linking the two files.
5676           mv conftest.$ac_objext conftstm.$ac_objext
5677           lt_save_LIBS="$LIBS"
5678           lt_save_CFLAGS="$CFLAGS"
5679           LIBS="conftstm.$ac_objext"
5680           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5681           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5682   (eval $ac_link) 2>&5
5683   ac_status=$?
5684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5686             pipe_works=yes
5687           fi
5688           LIBS="$lt_save_LIBS"
5689           CFLAGS="$lt_save_CFLAGS"
5690         else
5691           echo "cannot find nm_test_func in $nlist" >&5
5692         fi
5693       else
5694         echo "cannot find nm_test_var in $nlist" >&5
5695       fi
5696     else
5697       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5698     fi
5699   else
5700     echo "$progname: failed program was:" >&5
5701     cat conftest.$ac_ext >&5
5702   fi
5703   rm -rf conftest* conftst*
5704
5705   # Do not use the global_symbol_pipe unless it works.
5706   if test "$pipe_works" = yes; then
5707     break
5708   else
5709     lt_cv_sys_global_symbol_pipe=
5710   fi
5711 done
5712
5713 fi
5714
5715 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5716   lt_cv_sys_global_symbol_to_cdecl=
5717 fi
5718 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5720 $as_echo "failed" >&6; }
5721 else
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5723 $as_echo "ok" >&6; }
5724 fi
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748 # Check whether --enable-libtool-lock was given.
5749 if test "${enable_libtool_lock+set}" = set; then :
5750   enableval=$enable_libtool_lock;
5751 fi
5752
5753 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5754
5755 # Some flags need to be propagated to the compiler or linker for good
5756 # libtool support.
5757 case $host in
5758 ia64-*-hpux*)
5759   # Find out which ABI we are using.
5760   echo 'int i;' > conftest.$ac_ext
5761   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5762   (eval $ac_compile) 2>&5
5763   ac_status=$?
5764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765   test $ac_status = 0; }; then
5766     case `/usr/bin/file conftest.$ac_objext` in
5767       *ELF-32*)
5768         HPUX_IA64_MODE="32"
5769         ;;
5770       *ELF-64*)
5771         HPUX_IA64_MODE="64"
5772         ;;
5773     esac
5774   fi
5775   rm -rf conftest*
5776   ;;
5777 *-*-irix6*)
5778   # Find out which ABI we are using.
5779   echo '#line 5779 "configure"' > conftest.$ac_ext
5780   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5781   (eval $ac_compile) 2>&5
5782   ac_status=$?
5783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5784   test $ac_status = 0; }; then
5785     if test "$lt_cv_prog_gnu_ld" = yes; then
5786       case `/usr/bin/file conftest.$ac_objext` in
5787         *32-bit*)
5788           LD="${LD-ld} -melf32bsmip"
5789           ;;
5790         *N32*)
5791           LD="${LD-ld} -melf32bmipn32"
5792           ;;
5793         *64-bit*)
5794           LD="${LD-ld} -melf64bmip"
5795         ;;
5796       esac
5797     else
5798       case `/usr/bin/file conftest.$ac_objext` in
5799         *32-bit*)
5800           LD="${LD-ld} -32"
5801           ;;
5802         *N32*)
5803           LD="${LD-ld} -n32"
5804           ;;
5805         *64-bit*)
5806           LD="${LD-ld} -64"
5807           ;;
5808       esac
5809     fi
5810   fi
5811   rm -rf conftest*
5812   ;;
5813
5814 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5815 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5816   # Find out which ABI we are using.
5817   echo 'int i;' > conftest.$ac_ext
5818   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5819   (eval $ac_compile) 2>&5
5820   ac_status=$?
5821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5822   test $ac_status = 0; }; then
5823     case `/usr/bin/file conftest.o` in
5824       *32-bit*)
5825         case $host in
5826           x86_64-*kfreebsd*-gnu)
5827             LD="${LD-ld} -m elf_i386_fbsd"
5828             ;;
5829           x86_64-*linux*)
5830             LD="${LD-ld} -m elf_i386"
5831             ;;
5832           ppc64-*linux*|powerpc64-*linux*)
5833             LD="${LD-ld} -m elf32ppclinux"
5834             ;;
5835           s390x-*linux*)
5836             LD="${LD-ld} -m elf_s390"
5837             ;;
5838           sparc64-*linux*)
5839             LD="${LD-ld} -m elf32_sparc"
5840             ;;
5841         esac
5842         ;;
5843       *64-bit*)
5844         case $host in
5845           x86_64-*kfreebsd*-gnu)
5846             LD="${LD-ld} -m elf_x86_64_fbsd"
5847             ;;
5848           x86_64-*linux*)
5849             LD="${LD-ld} -m elf_x86_64"
5850             ;;
5851           ppc*-*linux*|powerpc*-*linux*)
5852             LD="${LD-ld} -m elf64ppc"
5853             ;;
5854           s390*-*linux*|s390*-*tpf*)
5855             LD="${LD-ld} -m elf64_s390"
5856             ;;
5857           sparc*-*linux*)
5858             LD="${LD-ld} -m elf64_sparc"
5859             ;;
5860         esac
5861         ;;
5862     esac
5863   fi
5864   rm -rf conftest*
5865   ;;
5866
5867 *-*-sco3.2v5*)
5868   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5869   SAVE_CFLAGS="$CFLAGS"
5870   CFLAGS="$CFLAGS -belf"
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5872 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5873 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   ac_ext=c
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881
5882      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h.  */
5884
5885 int
5886 main ()
5887 {
5888
5889   ;
5890   return 0;
5891 }
5892 _ACEOF
5893 if ac_fn_c_try_link "$LINENO"; then :
5894   lt_cv_cc_needs_belf=yes
5895 else
5896   lt_cv_cc_needs_belf=no
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext \
5899     conftest$ac_exeext conftest.$ac_ext
5900      ac_ext=c
5901 ac_cpp='$CPP $CPPFLAGS'
5902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5908 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5909   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5910     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5911     CFLAGS="$SAVE_CFLAGS"
5912   fi
5913   ;;
5914 sparc*-*solaris*)
5915   # Find out which ABI we are using.
5916   echo 'int i;' > conftest.$ac_ext
5917   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5918   (eval $ac_compile) 2>&5
5919   ac_status=$?
5920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921   test $ac_status = 0; }; then
5922     case `/usr/bin/file conftest.o` in
5923     *64-bit*)
5924       case $lt_cv_prog_gnu_ld in
5925       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5926       *)
5927         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5928           LD="${LD-ld} -64"
5929         fi
5930         ;;
5931       esac
5932       ;;
5933     esac
5934   fi
5935   rm -rf conftest*
5936   ;;
5937 esac
5938
5939 need_locks="$enable_libtool_lock"
5940
5941
5942   case $host_os in
5943     rhapsody* | darwin*)
5944     if test -n "$ac_tool_prefix"; then
5945   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5946 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   if test -n "$DSYMUTIL"; then
5953   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960     for ac_exec_ext in '' $ac_executable_extensions; do
5961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967   done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5973 if test -n "$DSYMUTIL"; then
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5975 $as_echo "$DSYMUTIL" >&6; }
5976 else
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5979 fi
5980
5981
5982 fi
5983 if test -z "$ac_cv_prog_DSYMUTIL"; then
5984   ac_ct_DSYMUTIL=$DSYMUTIL
5985   # Extract the first word of "dsymutil", so it can be a program name with args.
5986 set dummy dsymutil; ac_word=$2
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988 $as_echo_n "checking for $ac_word... " >&6; }
5989 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5990   $as_echo_n "(cached) " >&6
5991 else
5992   if test -n "$ac_ct_DSYMUTIL"; then
5993   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998   IFS=$as_save_IFS
5999   test -z "$as_dir" && as_dir=.
6000     for ac_exec_ext in '' $ac_executable_extensions; do
6001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004     break 2
6005   fi
6006 done
6007   done
6008 IFS=$as_save_IFS
6009
6010 fi
6011 fi
6012 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6013 if test -n "$ac_ct_DSYMUTIL"; then
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6015 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6016 else
6017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6019 fi
6020
6021   if test "x$ac_ct_DSYMUTIL" = x; then
6022     DSYMUTIL=":"
6023   else
6024     case $cross_compiling:$ac_tool_warned in
6025 yes:)
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6028 ac_tool_warned=yes ;;
6029 esac
6030     DSYMUTIL=$ac_ct_DSYMUTIL
6031   fi
6032 else
6033   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6034 fi
6035
6036     if test -n "$ac_tool_prefix"; then
6037   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6038 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6042   $as_echo_n "(cached) " >&6
6043 else
6044   if test -n "$NMEDIT"; then
6045   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050   IFS=$as_save_IFS
6051   test -z "$as_dir" && as_dir=.
6052     for ac_exec_ext in '' $ac_executable_extensions; do
6053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056     break 2
6057   fi
6058 done
6059   done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 NMEDIT=$ac_cv_prog_NMEDIT
6065 if test -n "$NMEDIT"; then
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6067 $as_echo "$NMEDIT" >&6; }
6068 else
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072
6073
6074 fi
6075 if test -z "$ac_cv_prog_NMEDIT"; then
6076   ac_ct_NMEDIT=$NMEDIT
6077   # Extract the first word of "nmedit", so it can be a program name with args.
6078 set dummy nmedit; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084   if test -n "$ac_ct_NMEDIT"; then
6085   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099   done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6105 if test -n "$ac_ct_NMEDIT"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6107 $as_echo "$ac_ct_NMEDIT" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113   if test "x$ac_ct_NMEDIT" = x; then
6114     NMEDIT=":"
6115   else
6116     case $cross_compiling:$ac_tool_warned in
6117 yes:)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122     NMEDIT=$ac_ct_NMEDIT
6123   fi
6124 else
6125   NMEDIT="$ac_cv_prog_NMEDIT"
6126 fi
6127
6128     if test -n "$ac_tool_prefix"; then
6129   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if test "${ac_cv_prog_LIPO+set}" = set; then :
6134   $as_echo_n "(cached) " >&6
6135 else
6136   if test -n "$LIPO"; then
6137   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144     for ac_exec_ext in '' $ac_executable_extensions; do
6145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6146     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148     break 2
6149   fi
6150 done
6151   done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 LIPO=$ac_cv_prog_LIPO
6157 if test -n "$LIPO"; then
6158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6159 $as_echo "$LIPO" >&6; }
6160 else
6161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6163 fi
6164
6165
6166 fi
6167 if test -z "$ac_cv_prog_LIPO"; then
6168   ac_ct_LIPO=$LIPO
6169   # Extract the first word of "lipo", so it can be a program name with args.
6170 set dummy lipo; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   if test -n "$ac_ct_LIPO"; then
6177   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184     for ac_exec_ext in '' $ac_executable_extensions; do
6185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186     ac_cv_prog_ac_ct_LIPO="lipo"
6187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191   done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6197 if test -n "$ac_ct_LIPO"; then
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6199 $as_echo "$ac_ct_LIPO" >&6; }
6200 else
6201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204
6205   if test "x$ac_ct_LIPO" = x; then
6206     LIPO=":"
6207   else
6208     case $cross_compiling:$ac_tool_warned in
6209 yes:)
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212 ac_tool_warned=yes ;;
6213 esac
6214     LIPO=$ac_ct_LIPO
6215   fi
6216 else
6217   LIPO="$ac_cv_prog_LIPO"
6218 fi
6219
6220     if test -n "$ac_tool_prefix"; then
6221   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6222 set dummy ${ac_tool_prefix}otool; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6226   $as_echo_n "(cached) " >&6
6227 else
6228   if test -n "$OTOOL"; then
6229   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236     for ac_exec_ext in '' $ac_executable_extensions; do
6237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243   done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 OTOOL=$ac_cv_prog_OTOOL
6249 if test -n "$OTOOL"; then
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6251 $as_echo "$OTOOL" >&6; }
6252 else
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257
6258 fi
6259 if test -z "$ac_cv_prog_OTOOL"; then
6260   ac_ct_OTOOL=$OTOOL
6261   # Extract the first word of "otool", so it can be a program name with args.
6262 set dummy otool; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   if test -n "$ac_ct_OTOOL"; then
6269   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274   IFS=$as_save_IFS
6275   test -z "$as_dir" && as_dir=.
6276     for ac_exec_ext in '' $ac_executable_extensions; do
6277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278     ac_cv_prog_ac_ct_OTOOL="otool"
6279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280     break 2
6281   fi
6282 done
6283   done
6284 IFS=$as_save_IFS
6285
6286 fi
6287 fi
6288 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6289 if test -n "$ac_ct_OTOOL"; then
6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6291 $as_echo "$ac_ct_OTOOL" >&6; }
6292 else
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6295 fi
6296
6297   if test "x$ac_ct_OTOOL" = x; then
6298     OTOOL=":"
6299   else
6300     case $cross_compiling:$ac_tool_warned in
6301 yes:)
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304 ac_tool_warned=yes ;;
6305 esac
6306     OTOOL=$ac_ct_OTOOL
6307   fi
6308 else
6309   OTOOL="$ac_cv_prog_OTOOL"
6310 fi
6311
6312     if test -n "$ac_tool_prefix"; then
6313   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6318   $as_echo_n "(cached) " >&6
6319 else
6320   if test -n "$OTOOL64"; then
6321   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328     for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335   done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 OTOOL64=$ac_cv_prog_OTOOL64
6341 if test -n "$OTOOL64"; then
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6343 $as_echo "$OTOOL64" >&6; }
6344 else
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349
6350 fi
6351 if test -z "$ac_cv_prog_OTOOL64"; then
6352   ac_ct_OTOOL64=$OTOOL64
6353   # Extract the first word of "otool64", so it can be a program name with args.
6354 set dummy otool64; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$ac_ct_OTOOL64"; then
6361   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_prog_ac_ct_OTOOL64="otool64"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6381 if test -n "$ac_ct_OTOOL64"; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6383 $as_echo "$ac_ct_OTOOL64" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389   if test "x$ac_ct_OTOOL64" = x; then
6390     OTOOL64=":"
6391   else
6392     case $cross_compiling:$ac_tool_warned in
6393 yes:)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398     OTOOL64=$ac_ct_OTOOL64
6399   fi
6400 else
6401   OTOOL64="$ac_cv_prog_OTOOL64"
6402 fi
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6431 $as_echo_n "checking for -single_module linker flag... " >&6; }
6432 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   lt_cv_apple_cc_single_mod=no
6436       if test -z "${LT_MULTI_MODULE}"; then
6437         # By default we will add the -single_module flag. You can override
6438         # by either setting the environment variable LT_MULTI_MODULE
6439         # non-empty at configure time, or by adding -multi_module to the
6440         # link flags.
6441         rm -rf libconftest.dylib*
6442         echo "int foo(void){return 1;}" > conftest.c
6443         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6444 -dynamiclib -Wl,-single_module conftest.c" >&5
6445         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6446           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6447         _lt_result=$?
6448         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6449           lt_cv_apple_cc_single_mod=yes
6450         else
6451           cat conftest.err >&5
6452         fi
6453         rm -rf libconftest.dylib*
6454         rm -f conftest.*
6455       fi
6456 fi
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6458 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6460 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6461 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   lt_cv_ld_exported_symbols_list=no
6465       save_LDFLAGS=$LDFLAGS
6466       echo "_main" > conftest.sym
6467       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6468       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h.  */
6470
6471 int
6472 main ()
6473 {
6474
6475   ;
6476   return 0;
6477 }
6478 _ACEOF
6479 if ac_fn_c_try_link "$LINENO"; then :
6480   lt_cv_ld_exported_symbols_list=yes
6481 else
6482   lt_cv_ld_exported_symbols_list=no
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext \
6485     conftest$ac_exeext conftest.$ac_ext
6486         LDFLAGS="$save_LDFLAGS"
6487
6488 fi
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6490 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6491     case $host_os in
6492     rhapsody* | darwin1.[012])
6493       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6494     darwin1.*)
6495       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6496     darwin*) # darwin 5.x on
6497       # if running on 10.5 or later, the deployment target defaults
6498       # to the OS version, if on x86, and 10.4, the deployment
6499       # target defaults to 10.4. Don't you love it?
6500       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6501         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6502           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6503         10.[012]*)
6504           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6505         10.*)
6506           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6507       esac
6508     ;;
6509   esac
6510     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6511       _lt_dar_single_mod='$single_module'
6512     fi
6513     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6514       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6515     else
6516       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6517     fi
6518     if test "$DSYMUTIL" != ":"; then
6519       _lt_dsymutil='~$DSYMUTIL $lib || :'
6520     else
6521       _lt_dsymutil=
6522     fi
6523     ;;
6524   esac
6525
6526 ac_ext=c
6527 ac_cpp='$CPP $CPPFLAGS'
6528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6532 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6533 # On Suns, sometimes $CPP names a directory.
6534 if test -n "$CPP" && test -d "$CPP"; then
6535   CPP=
6536 fi
6537 if test -z "$CPP"; then
6538   if test "${ac_cv_prog_CPP+set}" = set; then :
6539   $as_echo_n "(cached) " >&6
6540 else
6541       # Double quotes because CPP needs to be expanded
6542     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6543     do
6544       ac_preproc_ok=false
6545 for ac_c_preproc_warn_flag in '' yes
6546 do
6547   # Use a header file that comes with gcc, so configuring glibc
6548   # with a fresh cross-compiler works.
6549   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6550   # <limits.h> exists even on freestanding compilers.
6551   # On the NeXT, cc -E runs the code through the compiler's parser,
6552   # not just through cpp. "Syntax error" is here to catch this case.
6553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h.  */
6555 #ifdef __STDC__
6556 # include <limits.h>
6557 #else
6558 # include <assert.h>
6559 #endif
6560                      Syntax error
6561 _ACEOF
6562 if ac_fn_c_try_cpp "$LINENO"; then :
6563
6564 else
6565   # Broken: fails on valid input.
6566 continue
6567 fi
6568 rm -f conftest.err conftest.$ac_ext
6569
6570   # OK, works on sane cases.  Now check whether nonexistent headers
6571   # can be detected and how.
6572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h.  */
6574 #include <ac_nonexistent.h>
6575 _ACEOF
6576 if ac_fn_c_try_cpp "$LINENO"; then :
6577   # Broken: success on invalid input.
6578 continue
6579 else
6580   # Passes both tests.
6581 ac_preproc_ok=:
6582 break
6583 fi
6584 rm -f conftest.err conftest.$ac_ext
6585
6586 done
6587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6588 rm -f conftest.err conftest.$ac_ext
6589 if $ac_preproc_ok; then :
6590   break
6591 fi
6592
6593     done
6594     ac_cv_prog_CPP=$CPP
6595
6596 fi
6597   CPP=$ac_cv_prog_CPP
6598 else
6599   ac_cv_prog_CPP=$CPP
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6602 $as_echo "$CPP" >&6; }
6603 ac_preproc_ok=false
6604 for ac_c_preproc_warn_flag in '' yes
6605 do
6606   # Use a header file that comes with gcc, so configuring glibc
6607   # with a fresh cross-compiler works.
6608   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6609   # <limits.h> exists even on freestanding compilers.
6610   # On the NeXT, cc -E runs the code through the compiler's parser,
6611   # not just through cpp. "Syntax error" is here to catch this case.
6612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h.  */
6614 #ifdef __STDC__
6615 # include <limits.h>
6616 #else
6617 # include <assert.h>
6618 #endif
6619                      Syntax error
6620 _ACEOF
6621 if ac_fn_c_try_cpp "$LINENO"; then :
6622
6623 else
6624   # Broken: fails on valid input.
6625 continue
6626 fi
6627 rm -f conftest.err conftest.$ac_ext
6628
6629   # OK, works on sane cases.  Now check whether nonexistent headers
6630   # can be detected and how.
6631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h.  */
6633 #include <ac_nonexistent.h>
6634 _ACEOF
6635 if ac_fn_c_try_cpp "$LINENO"; then :
6636   # Broken: success on invalid input.
6637 continue
6638 else
6639   # Passes both tests.
6640 ac_preproc_ok=:
6641 break
6642 fi
6643 rm -f conftest.err conftest.$ac_ext
6644
6645 done
6646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6647 rm -f conftest.err conftest.$ac_ext
6648 if $ac_preproc_ok; then :
6649
6650 else
6651   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6653 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6654 See \`config.log' for more details." "$LINENO" 5; }
6655 fi
6656
6657 ac_ext=c
6658 ac_cpp='$CPP $CPPFLAGS'
6659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6662
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6665 $as_echo_n "checking for ANSI C header files... " >&6; }
6666 if test "${ac_cv_header_stdc+set}" = set; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h.  */
6671 #include <stdlib.h>
6672 #include <stdarg.h>
6673 #include <string.h>
6674 #include <float.h>
6675
6676 int
6677 main ()
6678 {
6679
6680   ;
6681   return 0;
6682 }
6683 _ACEOF
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685   ac_cv_header_stdc=yes
6686 else
6687   ac_cv_header_stdc=no
6688 fi
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690
6691 if test $ac_cv_header_stdc = yes; then
6692   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h.  */
6695 #include <string.h>
6696
6697 _ACEOF
6698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6699   $EGREP "memchr" >/dev/null 2>&1; then :
6700
6701 else
6702   ac_cv_header_stdc=no
6703 fi
6704 rm -f conftest*
6705
6706 fi
6707
6708 if test $ac_cv_header_stdc = yes; then
6709   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h.  */
6712 #include <stdlib.h>
6713
6714 _ACEOF
6715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6716   $EGREP "free" >/dev/null 2>&1; then :
6717
6718 else
6719   ac_cv_header_stdc=no
6720 fi
6721 rm -f conftest*
6722
6723 fi
6724
6725 if test $ac_cv_header_stdc = yes; then
6726   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6727   if test "$cross_compiling" = yes; then :
6728   :
6729 else
6730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h.  */
6732 #include <ctype.h>
6733 #include <stdlib.h>
6734 #if ((' ' & 0x0FF) == 0x020)
6735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6737 #else
6738 # define ISLOWER(c) \
6739                    (('a' <= (c) && (c) <= 'i') \
6740                      || ('j' <= (c) && (c) <= 'r') \
6741                      || ('s' <= (c) && (c) <= 'z'))
6742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6743 #endif
6744
6745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6746 int
6747 main ()
6748 {
6749   int i;
6750   for (i = 0; i < 256; i++)
6751     if (XOR (islower (i), ISLOWER (i))
6752         || toupper (i) != TOUPPER (i))
6753       return 2;
6754   return 0;
6755 }
6756 _ACEOF
6757 if ac_fn_c_try_run "$LINENO"; then :
6758
6759 else
6760   ac_cv_header_stdc=no
6761 fi
6762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6763   conftest.$ac_objext conftest.beam conftest.$ac_ext
6764 fi
6765
6766 fi
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6769 $as_echo "$ac_cv_header_stdc" >&6; }
6770 if test $ac_cv_header_stdc = yes; then
6771
6772 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6773
6774 fi
6775
6776 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6778                   inttypes.h stdint.h unistd.h
6779 do :
6780   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6781 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6782 "
6783 eval as_val=\$$as_ac_Header
6784    if test "x$as_val" = x""yes; then :
6785   cat >>confdefs.h <<_ACEOF
6786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6787 _ACEOF
6788
6789 fi
6790
6791 done
6792
6793
6794 for ac_header in dlfcn.h
6795 do :
6796   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6797 "
6798 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6799   cat >>confdefs.h <<_ACEOF
6800 #define HAVE_DLFCN_H 1
6801 _ACEOF
6802
6803 fi
6804
6805 done
6806
6807
6808
6809 # Set options
6810 enable_win32_dll=yes
6811
6812 case $host in
6813 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6814   if test -n "$ac_tool_prefix"; then
6815   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}as; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_AS+set}" = set; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822   if test -n "$AS"; then
6823   ac_cv_prog_AS="$AS" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830     for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_prog_AS="${ac_tool_prefix}as"
6833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837   done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 AS=$ac_cv_prog_AS
6843 if test -n "$AS"; then
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6845 $as_echo "$AS" >&6; }
6846 else
6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6849 fi
6850
6851
6852 fi
6853 if test -z "$ac_cv_prog_AS"; then
6854   ac_ct_AS=$AS
6855   # Extract the first word of "as", so it can be a program name with args.
6856 set dummy as; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6860   $as_echo_n "(cached) " >&6
6861 else
6862   if test -n "$ac_ct_AS"; then
6863   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870     for ac_exec_ext in '' $ac_executable_extensions; do
6871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872     ac_cv_prog_ac_ct_AS="as"
6873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877   done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6883 if test -n "$ac_ct_AS"; then
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6885 $as_echo "$ac_ct_AS" >&6; }
6886 else
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6889 fi
6890
6891   if test "x$ac_ct_AS" = x; then
6892     AS="false"
6893   else
6894     case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6899 esac
6900     AS=$ac_ct_AS
6901   fi
6902 else
6903   AS="$ac_cv_prog_AS"
6904 fi
6905
6906   if test -n "$ac_tool_prefix"; then
6907   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6912   $as_echo_n "(cached) " >&6
6913 else
6914   if test -n "$DLLTOOL"; then
6915   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922     for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929   done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 DLLTOOL=$ac_cv_prog_DLLTOOL
6935 if test -n "$DLLTOOL"; then
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6937 $as_echo "$DLLTOOL" >&6; }
6938 else
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942
6943
6944 fi
6945 if test -z "$ac_cv_prog_DLLTOOL"; then
6946   ac_ct_DLLTOOL=$DLLTOOL
6947   # Extract the first word of "dlltool", so it can be a program name with args.
6948 set dummy dlltool; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6952   $as_echo_n "(cached) " >&6
6953 else
6954   if test -n "$ac_ct_DLLTOOL"; then
6955   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962     for ac_exec_ext in '' $ac_executable_extensions; do
6963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969   done
6970 IFS=$as_save_IFS
6971
6972 fi
6973 fi
6974 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6975 if test -n "$ac_ct_DLLTOOL"; then
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6977 $as_echo "$ac_ct_DLLTOOL" >&6; }
6978 else
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6981 fi
6982
6983   if test "x$ac_ct_DLLTOOL" = x; then
6984     DLLTOOL="false"
6985   else
6986     case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6991 esac
6992     DLLTOOL=$ac_ct_DLLTOOL
6993   fi
6994 else
6995   DLLTOOL="$ac_cv_prog_DLLTOOL"
6996 fi
6997
6998   if test -n "$ac_tool_prefix"; then
6999   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7000 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7004   $as_echo_n "(cached) " >&6
7005 else
7006   if test -n "$OBJDUMP"; then
7007   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7008 else
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012   IFS=$as_save_IFS
7013   test -z "$as_dir" && as_dir=.
7014     for ac_exec_ext in '' $ac_executable_extensions; do
7015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7016     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018     break 2
7019   fi
7020 done
7021   done
7022 IFS=$as_save_IFS
7023
7024 fi
7025 fi
7026 OBJDUMP=$ac_cv_prog_OBJDUMP
7027 if test -n "$OBJDUMP"; then
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7029 $as_echo "$OBJDUMP" >&6; }
7030 else
7031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 $as_echo "no" >&6; }
7033 fi
7034
7035
7036 fi
7037 if test -z "$ac_cv_prog_OBJDUMP"; then
7038   ac_ct_OBJDUMP=$OBJDUMP
7039   # Extract the first word of "objdump", so it can be a program name with args.
7040 set dummy objdump; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7044   $as_echo_n "(cached) " >&6
7045 else
7046   if test -n "$ac_ct_OBJDUMP"; then
7047   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054     for ac_exec_ext in '' $ac_executable_extensions; do
7055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061   done
7062 IFS=$as_save_IFS
7063
7064 fi
7065 fi
7066 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7067 if test -n "$ac_ct_OBJDUMP"; then
7068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7069 $as_echo "$ac_ct_OBJDUMP" >&6; }
7070 else
7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073 fi
7074
7075   if test "x$ac_ct_OBJDUMP" = x; then
7076     OBJDUMP="false"
7077   else
7078     case $cross_compiling:$ac_tool_warned in
7079 yes:)
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082 ac_tool_warned=yes ;;
7083 esac
7084     OBJDUMP=$ac_ct_OBJDUMP
7085   fi
7086 else
7087   OBJDUMP="$ac_cv_prog_OBJDUMP"
7088 fi
7089
7090   ;;
7091 esac
7092
7093 test -z "$AS" && AS=as
7094
7095
7096
7097
7098
7099 test -z "$DLLTOOL" && DLLTOOL=dlltool
7100
7101
7102
7103
7104
7105 test -z "$OBJDUMP" && OBJDUMP=objdump
7106
7107
7108
7109
7110
7111
7112
7113         enable_dlopen=no
7114
7115
7116
7117             # Check whether --enable-shared was given.
7118 if test "${enable_shared+set}" = set; then :
7119   enableval=$enable_shared; p=${PACKAGE-default}
7120     case $enableval in
7121     yes) enable_shared=yes ;;
7122     no) enable_shared=no ;;
7123     *)
7124       enable_shared=no
7125       # Look at the argument we got.  We use all the common list separators.
7126       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7127       for pkg in $enableval; do
7128         IFS="$lt_save_ifs"
7129         if test "X$pkg" = "X$p"; then
7130           enable_shared=yes
7131         fi
7132       done
7133       IFS="$lt_save_ifs"
7134       ;;
7135     esac
7136 else
7137   enable_shared=yes
7138 fi
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148   # Check whether --enable-static was given.
7149 if test "${enable_static+set}" = set; then :
7150   enableval=$enable_static; p=${PACKAGE-default}
7151     case $enableval in
7152     yes) enable_static=yes ;;
7153     no) enable_static=no ;;
7154     *)
7155      enable_static=no
7156       # Look at the argument we got.  We use all the common list separators.
7157       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7158       for pkg in $enableval; do
7159         IFS="$lt_save_ifs"
7160         if test "X$pkg" = "X$p"; then
7161           enable_static=yes
7162         fi
7163       done
7164       IFS="$lt_save_ifs"
7165       ;;
7166     esac
7167 else
7168   enable_static=yes
7169 fi
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 # Check whether --with-pic was given.
7181 if test "${with_pic+set}" = set; then :
7182   withval=$with_pic; pic_mode="$withval"
7183 else
7184   pic_mode=default
7185 fi
7186
7187
7188 test -z "$pic_mode" && pic_mode=default
7189
7190
7191
7192
7193
7194
7195
7196   # Check whether --enable-fast-install was given.
7197 if test "${enable_fast_install+set}" = set; then :
7198   enableval=$enable_fast_install; p=${PACKAGE-default}
7199     case $enableval in
7200     yes) enable_fast_install=yes ;;
7201     no) enable_fast_install=no ;;
7202     *)
7203       enable_fast_install=no
7204       # Look at the argument we got.  We use all the common list separators.
7205       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7206       for pkg in $enableval; do
7207         IFS="$lt_save_ifs"
7208         if test "X$pkg" = "X$p"; then
7209           enable_fast_install=yes
7210         fi
7211       done
7212       IFS="$lt_save_ifs"
7213       ;;
7214     esac
7215 else
7216   enable_fast_install=yes
7217 fi
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229 # This can be used to rebuild libtool when needed
7230 LIBTOOL_DEPS="$ltmain"
7231
7232 # Always use our own libtool.
7233 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259 test -z "$LN_S" && LN_S="ln -s"
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 if test -n "${ZSH_VERSION+set}" ; then
7275    setopt NO_GLOB_SUBST
7276 fi
7277
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7279 $as_echo_n "checking for objdir... " >&6; }
7280 if test "${lt_cv_objdir+set}" = set; then :
7281   $as_echo_n "(cached) " >&6
7282 else
7283   rm -f .libs 2>/dev/null
7284 mkdir .libs 2>/dev/null
7285 if test -d .libs; then
7286   lt_cv_objdir=.libs
7287 else
7288   # MS-DOS does not allow filenames that begin with a dot.
7289   lt_cv_objdir=_libs
7290 fi
7291 rmdir .libs 2>/dev/null
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7294 $as_echo "$lt_cv_objdir" >&6; }
7295 objdir=$lt_cv_objdir
7296
7297
7298
7299
7300
7301 cat >>confdefs.h <<_ACEOF
7302 #define LT_OBJDIR "$lt_cv_objdir/"
7303 _ACEOF
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321 case $host_os in
7322 aix3*)
7323   # AIX sometimes has problems with the GCC collect2 program.  For some
7324   # reason, if we set the COLLECT_NAMES environment variable, the problems
7325   # vanish in a puff of smoke.
7326   if test "X${COLLECT_NAMES+set}" != Xset; then
7327     COLLECT_NAMES=
7328     export COLLECT_NAMES
7329   fi
7330   ;;
7331 esac
7332
7333 # Sed substitution that helps us do robust quoting.  It backslashifies
7334 # metacharacters that are still active within double-quoted strings.
7335 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7336
7337 # Same as above, but do not quote variable references.
7338 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7339
7340 # Sed substitution to delay expansion of an escaped shell variable in a
7341 # double_quote_subst'ed string.
7342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7343
7344 # Sed substitution to delay expansion of an escaped single quote.
7345 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7346
7347 # Sed substitution to avoid accidental globbing in evaled expressions
7348 no_glob_subst='s/\*/\\\*/g'
7349
7350 # Global variables:
7351 ofile=libtool
7352 can_build_shared=yes
7353
7354 # All known linkers require a `.a' archive for static linking (except MSVC,
7355 # which needs '.lib').
7356 libext=a
7357
7358 with_gnu_ld="$lt_cv_prog_gnu_ld"
7359
7360 old_CC="$CC"
7361 old_CFLAGS="$CFLAGS"
7362
7363 # Set sane defaults for various variables
7364 test -z "$CC" && CC=cc
7365 test -z "$LTCC" && LTCC=$CC
7366 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7367 test -z "$LD" && LD=ld
7368 test -z "$ac_objext" && ac_objext=o
7369
7370 for cc_temp in $compiler""; do
7371   case $cc_temp in
7372     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7373     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7374     \-*) ;;
7375     *) break;;
7376   esac
7377 done
7378 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7379
7380
7381 # Only perform the check for file, if the check method requires it
7382 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7383 case $deplibs_check_method in
7384 file_magic*)
7385   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7387 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7388 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   case $MAGIC_CMD in
7392 [\\/*] |  ?:[\\/]*)
7393   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7394   ;;
7395 *)
7396   lt_save_MAGIC_CMD="$MAGIC_CMD"
7397   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7398   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7399   for ac_dir in $ac_dummy; do
7400     IFS="$lt_save_ifs"
7401     test -z "$ac_dir" && ac_dir=.
7402     if test -f $ac_dir/${ac_tool_prefix}file; then
7403       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7404       if test -n "$file_magic_test_file"; then
7405         case $deplibs_check_method in
7406         "file_magic "*)
7407           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7408           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7409           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7410             $EGREP "$file_magic_regex" > /dev/null; then
7411             :
7412           else
7413             cat <<_LT_EOF 1>&2
7414
7415 *** Warning: the command libtool uses to detect shared libraries,
7416 *** $file_magic_cmd, produces output that libtool cannot recognize.
7417 *** The result is that libtool may fail to recognize shared libraries
7418 *** as such.  This will affect the creation of libtool libraries that
7419 *** depend on shared libraries, but programs linked with such libtool
7420 *** libraries will work regardless of this problem.  Nevertheless, you
7421 *** may want to report the problem to your system manager and/or to
7422 *** bug-libtool@gnu.org
7423
7424 _LT_EOF
7425           fi ;;
7426         esac
7427       fi
7428       break
7429     fi
7430   done
7431   IFS="$lt_save_ifs"
7432   MAGIC_CMD="$lt_save_MAGIC_CMD"
7433   ;;
7434 esac
7435 fi
7436
7437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7438 if test -n "$MAGIC_CMD"; then
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7440 $as_echo "$MAGIC_CMD" >&6; }
7441 else
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446
7447
7448
7449
7450 if test -z "$lt_cv_path_MAGIC_CMD"; then
7451   if test -n "$ac_tool_prefix"; then
7452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7453 $as_echo_n "checking for file... " >&6; }
7454 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457   case $MAGIC_CMD in
7458 [\\/*] |  ?:[\\/]*)
7459   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7460   ;;
7461 *)
7462   lt_save_MAGIC_CMD="$MAGIC_CMD"
7463   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7464   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7465   for ac_dir in $ac_dummy; do
7466     IFS="$lt_save_ifs"
7467     test -z "$ac_dir" && ac_dir=.
7468     if test -f $ac_dir/file; then
7469       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7470       if test -n "$file_magic_test_file"; then
7471         case $deplibs_check_method in
7472         "file_magic "*)
7473           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7474           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7475           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7476             $EGREP "$file_magic_regex" > /dev/null; then
7477             :
7478           else
7479             cat <<_LT_EOF 1>&2
7480
7481 *** Warning: the command libtool uses to detect shared libraries,
7482 *** $file_magic_cmd, produces output that libtool cannot recognize.
7483 *** The result is that libtool may fail to recognize shared libraries
7484 *** as such.  This will affect the creation of libtool libraries that
7485 *** depend on shared libraries, but programs linked with such libtool
7486 *** libraries will work regardless of this problem.  Nevertheless, you
7487 *** may want to report the problem to your system manager and/or to
7488 *** bug-libtool@gnu.org
7489
7490 _LT_EOF
7491           fi ;;
7492         esac
7493       fi
7494       break
7495     fi
7496   done
7497   IFS="$lt_save_ifs"
7498   MAGIC_CMD="$lt_save_MAGIC_CMD"
7499   ;;
7500 esac
7501 fi
7502
7503 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7504 if test -n "$MAGIC_CMD"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7506 $as_echo "$MAGIC_CMD" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513   else
7514     MAGIC_CMD=:
7515   fi
7516 fi
7517
7518   fi
7519   ;;
7520 esac
7521
7522 # Use C for the default configuration in the libtool script
7523
7524 lt_save_CC="$CC"
7525 ac_ext=c
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530
7531
7532 # Source file extension for C test sources.
7533 ac_ext=c
7534
7535 # Object file extension for compiled C test sources.
7536 objext=o
7537 objext=$objext
7538
7539 # Code to be used in simple compile tests
7540 lt_simple_compile_test_code="int some_variable = 0;"
7541
7542 # Code to be used in simple link tests
7543 lt_simple_link_test_code='int main(){return(0);}'
7544
7545
7546
7547
7548
7549
7550
7551 # If no C compiler was specified, use CC.
7552 LTCC=${LTCC-"$CC"}
7553
7554 # If no C compiler flags were specified, use CFLAGS.
7555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7556
7557 # Allow CC to be a program name with arguments.
7558 compiler=$CC
7559
7560 # Save the default compiler, since it gets overwritten when the other
7561 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7562 compiler_DEFAULT=$CC
7563
7564 # save warnings/boilerplate of simple test code
7565 ac_outfile=conftest.$ac_objext
7566 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7567 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7568 _lt_compiler_boilerplate=`cat conftest.err`
7569 $RM conftest*
7570
7571 ac_outfile=conftest.$ac_objext
7572 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7573 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7574 _lt_linker_boilerplate=`cat conftest.err`
7575 $RM -r conftest*
7576
7577
7578 ## CAVEAT EMPTOR:
7579 ## There is no encapsulation within the following macros, do not change
7580 ## the running order or otherwise move them around unless you know exactly
7581 ## what you are doing...
7582 if test -n "$compiler"; then
7583
7584 lt_prog_compiler_no_builtin_flag=
7585
7586 if test "$GCC" = yes; then
7587   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7588
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7590 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7591 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   lt_cv_prog_compiler_rtti_exceptions=no
7595    ac_outfile=conftest.$ac_objext
7596    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7597    lt_compiler_flag="-fno-rtti -fno-exceptions"
7598    # Insert the option either (1) after the last *FLAGS variable, or
7599    # (2) before a word containing "conftest.", or (3) at the end.
7600    # Note that $ac_compile itself does not contain backslashes and begins
7601    # with a dollar sign (not a hyphen), so the echo should work correctly.
7602    # The option is referenced via a variable to avoid confusing sed.
7603    lt_compile=`echo "$ac_compile" | $SED \
7604    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7605    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7606    -e 's:$: $lt_compiler_flag:'`
7607    (eval echo "\"\$as_me:7607: $lt_compile\"" >&5)
7608    (eval "$lt_compile" 2>conftest.err)
7609    ac_status=$?
7610    cat conftest.err >&5
7611    echo "$as_me:7611: \$? = $ac_status" >&5
7612    if (exit $ac_status) && test -s "$ac_outfile"; then
7613      # The compiler can only warn and ignore the option if not recognized
7614      # So say no if there are warnings other than the usual output.
7615      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7616      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7617      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7618        lt_cv_prog_compiler_rtti_exceptions=yes
7619      fi
7620    fi
7621    $RM conftest*
7622
7623 fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7625 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7626
7627 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7628     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7629 else
7630     :
7631 fi
7632
7633 fi
7634
7635
7636
7637
7638
7639
7640   lt_prog_compiler_wl=
7641 lt_prog_compiler_pic=
7642 lt_prog_compiler_static=
7643
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7645 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7646
7647   if test "$GCC" = yes; then
7648     lt_prog_compiler_wl='-Wl,'
7649     lt_prog_compiler_static='-static'
7650
7651     case $host_os in
7652       aix*)
7653       # All AIX code is PIC.
7654       if test "$host_cpu" = ia64; then
7655         # AIX 5 now supports IA64 processor
7656         lt_prog_compiler_static='-Bstatic'
7657       fi
7658       ;;
7659
7660     amigaos*)
7661       case $host_cpu in
7662       powerpc)
7663             # see comment about AmigaOS4 .so support
7664             lt_prog_compiler_pic='-fPIC'
7665         ;;
7666       m68k)
7667             # FIXME: we need at least 68020 code to build shared libraries, but
7668             # adding the `-m68020' flag to GCC prevents building anything better,
7669             # like `-m68040'.
7670             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7671         ;;
7672       esac
7673       ;;
7674
7675     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7676       # PIC is the default for these OSes.
7677       ;;
7678
7679     mingw* | cygwin* | pw32* | os2* | cegcc*)
7680       # This hack is so that the source file can tell whether it is being
7681       # built for inclusion in a dll (and should export symbols for example).
7682       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7683       # (--disable-auto-import) libraries
7684       lt_prog_compiler_pic='-DDLL_EXPORT'
7685       ;;
7686
7687     darwin* | rhapsody*)
7688       # PIC is the default on this platform
7689       # Common symbols not allowed in MH_DYLIB files
7690       lt_prog_compiler_pic='-fno-common'
7691       ;;
7692
7693     hpux*)
7694       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7695       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7696       # sets the default TLS model and affects inlining.
7697       case $host_cpu in
7698       hppa*64*)
7699         # +Z the default
7700         ;;
7701       *)
7702         lt_prog_compiler_pic='-fPIC'
7703         ;;
7704       esac
7705       ;;
7706
7707     interix[3-9]*)
7708       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7709       # Instead, we relocate shared libraries at runtime.
7710       ;;
7711
7712     msdosdjgpp*)
7713       # Just because we use GCC doesn't mean we suddenly get shared libraries
7714       # on systems that don't support them.
7715       lt_prog_compiler_can_build_shared=no
7716       enable_shared=no
7717       ;;
7718
7719     *nto* | *qnx*)
7720       # QNX uses GNU C++, but need to define -shared option too, otherwise
7721       # it will coredump.
7722       lt_prog_compiler_pic='-fPIC -shared'
7723       ;;
7724
7725     sysv4*MP*)
7726       if test -d /usr/nec; then
7727         lt_prog_compiler_pic=-Kconform_pic
7728       fi
7729       ;;
7730
7731     *)
7732       lt_prog_compiler_pic='-fPIC'
7733       ;;
7734     esac
7735   else
7736     # PORTME Check for flag to pass linker flags through the system compiler.
7737     case $host_os in
7738     aix*)
7739       lt_prog_compiler_wl='-Wl,'
7740       if test "$host_cpu" = ia64; then
7741         # AIX 5 now supports IA64 processor
7742         lt_prog_compiler_static='-Bstatic'
7743       else
7744         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7745       fi
7746       ;;
7747
7748     mingw* | cygwin* | pw32* | os2* | cegcc*)
7749       # This hack is so that the source file can tell whether it is being
7750       # built for inclusion in a dll (and should export symbols for example).
7751       lt_prog_compiler_pic='-DDLL_EXPORT'
7752       ;;
7753
7754     hpux9* | hpux10* | hpux11*)
7755       lt_prog_compiler_wl='-Wl,'
7756       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7757       # not for PA HP-UX.
7758       case $host_cpu in
7759       hppa*64*|ia64*)
7760         # +Z the default
7761         ;;
7762       *)
7763         lt_prog_compiler_pic='+Z'
7764         ;;
7765       esac
7766       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7767       lt_prog_compiler_static='${wl}-a ${wl}archive'
7768       ;;
7769
7770     irix5* | irix6* | nonstopux*)
7771       lt_prog_compiler_wl='-Wl,'
7772       # PIC (with -KPIC) is the default.
7773       lt_prog_compiler_static='-non_shared'
7774       ;;
7775
7776     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7777       case $cc_basename in
7778       # old Intel for x86_64 which still supported -KPIC.
7779       ecc*)
7780         lt_prog_compiler_wl='-Wl,'
7781         lt_prog_compiler_pic='-KPIC'
7782         lt_prog_compiler_static='-static'
7783         ;;
7784       # icc used to be incompatible with GCC.
7785       # ICC 10 doesn't accept -KPIC any more.
7786       icc* | ifort*)
7787         lt_prog_compiler_wl='-Wl,'
7788         lt_prog_compiler_pic='-fPIC'
7789         lt_prog_compiler_static='-static'
7790         ;;
7791       # Lahey Fortran 8.1.
7792       lf95*)
7793         lt_prog_compiler_wl='-Wl,'
7794         lt_prog_compiler_pic='--shared'
7795         lt_prog_compiler_static='--static'
7796         ;;
7797       pgcc* | pgf77* | pgf90* | pgf95*)
7798         # Portland Group compilers (*not* the Pentium gcc compiler,
7799         # which looks to be a dead project)
7800         lt_prog_compiler_wl='-Wl,'
7801         lt_prog_compiler_pic='-fpic'
7802         lt_prog_compiler_static='-Bstatic'
7803         ;;
7804       ccc*)
7805         lt_prog_compiler_wl='-Wl,'
7806         # All Alpha code is PIC.
7807         lt_prog_compiler_static='-non_shared'
7808         ;;
7809       xl*)
7810         # IBM XL C 8.0/Fortran 10.1 on PPC
7811         lt_prog_compiler_wl='-Wl,'
7812         lt_prog_compiler_pic='-qpic'
7813         lt_prog_compiler_static='-qstaticlink'
7814         ;;
7815       *)
7816         case `$CC -V 2>&1 | sed 5q` in
7817         *Sun\ C*)
7818           # Sun C 5.9
7819           lt_prog_compiler_pic='-KPIC'
7820           lt_prog_compiler_static='-Bstatic'
7821           lt_prog_compiler_wl='-Wl,'
7822           ;;
7823         *Sun\ F*)
7824           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7825           lt_prog_compiler_pic='-KPIC'
7826           lt_prog_compiler_static='-Bstatic'
7827           lt_prog_compiler_wl=''
7828           ;;
7829         esac
7830         ;;
7831       esac
7832       ;;
7833
7834     newsos6)
7835       lt_prog_compiler_pic='-KPIC'
7836       lt_prog_compiler_static='-Bstatic'
7837       ;;
7838
7839     *nto* | *qnx*)
7840       # QNX uses GNU C++, but need to define -shared option too, otherwise
7841       # it will coredump.
7842       lt_prog_compiler_pic='-fPIC -shared'
7843       ;;
7844
7845     osf3* | osf4* | osf5*)
7846       lt_prog_compiler_wl='-Wl,'
7847       # All OSF/1 code is PIC.
7848       lt_prog_compiler_static='-non_shared'
7849       ;;
7850
7851     rdos*)
7852       lt_prog_compiler_static='-non_shared'
7853       ;;
7854
7855     solaris*)
7856       lt_prog_compiler_pic='-KPIC'
7857       lt_prog_compiler_static='-Bstatic'
7858       case $cc_basename in
7859       f77* | f90* | f95*)
7860         lt_prog_compiler_wl='-Qoption ld ';;
7861       *)
7862         lt_prog_compiler_wl='-Wl,';;
7863       esac
7864       ;;
7865
7866     sunos4*)
7867       lt_prog_compiler_wl='-Qoption ld '
7868       lt_prog_compiler_pic='-PIC'
7869       lt_prog_compiler_static='-Bstatic'
7870       ;;
7871
7872     sysv4 | sysv4.2uw2* | sysv4.3*)
7873       lt_prog_compiler_wl='-Wl,'
7874       lt_prog_compiler_pic='-KPIC'
7875       lt_prog_compiler_static='-Bstatic'
7876       ;;
7877
7878     sysv4*MP*)
7879       if test -d /usr/nec ;then
7880         lt_prog_compiler_pic='-Kconform_pic'
7881         lt_prog_compiler_static='-Bstatic'
7882       fi
7883       ;;
7884
7885     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7886       lt_prog_compiler_wl='-Wl,'
7887       lt_prog_compiler_pic='-KPIC'
7888       lt_prog_compiler_static='-Bstatic'
7889       ;;
7890
7891     unicos*)
7892       lt_prog_compiler_wl='-Wl,'
7893       lt_prog_compiler_can_build_shared=no
7894       ;;
7895
7896     uts4*)
7897       lt_prog_compiler_pic='-pic'
7898       lt_prog_compiler_static='-Bstatic'
7899       ;;
7900
7901     *)
7902       lt_prog_compiler_can_build_shared=no
7903       ;;
7904     esac
7905   fi
7906
7907 case $host_os in
7908   # For platforms which do not support PIC, -DPIC is meaningless:
7909   *djgpp*)
7910     lt_prog_compiler_pic=
7911     ;;
7912   *)
7913     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7914     ;;
7915 esac
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7917 $as_echo "$lt_prog_compiler_pic" >&6; }
7918
7919
7920
7921
7922
7923
7924 #
7925 # Check to make sure the PIC flag actually works.
7926 #
7927 if test -n "$lt_prog_compiler_pic"; then
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7929 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7930 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7931   $as_echo_n "(cached) " >&6
7932 else
7933   lt_cv_prog_compiler_pic_works=no
7934    ac_outfile=conftest.$ac_objext
7935    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7936    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7937    # Insert the option either (1) after the last *FLAGS variable, or
7938    # (2) before a word containing "conftest.", or (3) at the end.
7939    # Note that $ac_compile itself does not contain backslashes and begins
7940    # with a dollar sign (not a hyphen), so the echo should work correctly.
7941    # The option is referenced via a variable to avoid confusing sed.
7942    lt_compile=`echo "$ac_compile" | $SED \
7943    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7944    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7945    -e 's:$: $lt_compiler_flag:'`
7946    (eval echo "\"\$as_me:7946: $lt_compile\"" >&5)
7947    (eval "$lt_compile" 2>conftest.err)
7948    ac_status=$?
7949    cat conftest.err >&5
7950    echo "$as_me:7950: \$? = $ac_status" >&5
7951    if (exit $ac_status) && test -s "$ac_outfile"; then
7952      # The compiler can only warn and ignore the option if not recognized
7953      # So say no if there are warnings other than the usual output.
7954      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7955      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7956      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7957        lt_cv_prog_compiler_pic_works=yes
7958      fi
7959    fi
7960    $RM conftest*
7961
7962 fi
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7964 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7965
7966 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7967     case $lt_prog_compiler_pic in
7968      "" | " "*) ;;
7969      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7970      esac
7971 else
7972     lt_prog_compiler_pic=
7973      lt_prog_compiler_can_build_shared=no
7974 fi
7975
7976 fi
7977
7978
7979
7980
7981
7982
7983 #
7984 # Check to make sure the static flag actually works.
7985 #
7986 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7988 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7989 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7990   $as_echo_n "(cached) " >&6
7991 else
7992   lt_cv_prog_compiler_static_works=no
7993    save_LDFLAGS="$LDFLAGS"
7994    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7995    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7996    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7997      # The linker can only warn and ignore the option if not recognized
7998      # So say no if there are warnings
7999      if test -s conftest.err; then
8000        # Append any errors to the config.log.
8001        cat conftest.err 1>&5
8002        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8003        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8004        if diff conftest.exp conftest.er2 >/dev/null; then
8005          lt_cv_prog_compiler_static_works=yes
8006        fi
8007      else
8008        lt_cv_prog_compiler_static_works=yes
8009      fi
8010    fi
8011    $RM -r conftest*
8012    LDFLAGS="$save_LDFLAGS"
8013
8014 fi
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8016 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8017
8018 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8019     :
8020 else
8021     lt_prog_compiler_static=
8022 fi
8023
8024
8025
8026
8027
8028
8029
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8031 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8032 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   lt_cv_prog_compiler_c_o=no
8036    $RM -r conftest 2>/dev/null
8037    mkdir conftest
8038    cd conftest
8039    mkdir out
8040    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8041
8042    lt_compiler_flag="-o out/conftest2.$ac_objext"
8043    # Insert the option either (1) after the last *FLAGS variable, or
8044    # (2) before a word containing "conftest.", or (3) at the end.
8045    # Note that $ac_compile itself does not contain backslashes and begins
8046    # with a dollar sign (not a hyphen), so the echo should work correctly.
8047    lt_compile=`echo "$ac_compile" | $SED \
8048    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8050    -e 's:$: $lt_compiler_flag:'`
8051    (eval echo "\"\$as_me:8051: $lt_compile\"" >&5)
8052    (eval "$lt_compile" 2>out/conftest.err)
8053    ac_status=$?
8054    cat out/conftest.err >&5
8055    echo "$as_me:8055: \$? = $ac_status" >&5
8056    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8057    then
8058      # The compiler can only warn and ignore the option if not recognized
8059      # So say no if there are warnings
8060      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8061      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8062      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8063        lt_cv_prog_compiler_c_o=yes
8064      fi
8065    fi
8066    chmod u+w . 2>&5
8067    $RM conftest*
8068    # SGI C++ compiler will create directory out/ii_files/ for
8069    # template instantiation
8070    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8071    $RM out/* && rmdir out
8072    cd ..
8073    $RM -r conftest
8074    $RM conftest*
8075
8076 fi
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8078 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8079
8080
8081
8082
8083
8084
8085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8087 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8088   $as_echo_n "(cached) " >&6
8089 else
8090   lt_cv_prog_compiler_c_o=no
8091    $RM -r conftest 2>/dev/null
8092    mkdir conftest
8093    cd conftest
8094    mkdir out
8095    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8096
8097    lt_compiler_flag="-o out/conftest2.$ac_objext"
8098    # Insert the option either (1) after the last *FLAGS variable, or
8099    # (2) before a word containing "conftest.", or (3) at the end.
8100    # Note that $ac_compile itself does not contain backslashes and begins
8101    # with a dollar sign (not a hyphen), so the echo should work correctly.
8102    lt_compile=`echo "$ac_compile" | $SED \
8103    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8104    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8105    -e 's:$: $lt_compiler_flag:'`
8106    (eval echo "\"\$as_me:8106: $lt_compile\"" >&5)
8107    (eval "$lt_compile" 2>out/conftest.err)
8108    ac_status=$?
8109    cat out/conftest.err >&5
8110    echo "$as_me:8110: \$? = $ac_status" >&5
8111    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8112    then
8113      # The compiler can only warn and ignore the option if not recognized
8114      # So say no if there are warnings
8115      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8116      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8117      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8118        lt_cv_prog_compiler_c_o=yes
8119      fi
8120    fi
8121    chmod u+w . 2>&5
8122    $RM conftest*
8123    # SGI C++ compiler will create directory out/ii_files/ for
8124    # template instantiation
8125    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8126    $RM out/* && rmdir out
8127    cd ..
8128    $RM -r conftest
8129    $RM conftest*
8130
8131 fi
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8134
8135
8136
8137
8138 hard_links="nottested"
8139 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8140   # do not overwrite the value of need_locks provided by the user
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8142 $as_echo_n "checking if we can lock with hard links... " >&6; }
8143   hard_links=yes
8144   $RM conftest*
8145   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8146   touch conftest.a
8147   ln conftest.a conftest.b 2>&5 || hard_links=no
8148   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8150 $as_echo "$hard_links" >&6; }
8151   if test "$hard_links" = no; then
8152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8153 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8154     need_locks=warn
8155   fi
8156 else
8157   need_locks=no
8158 fi
8159
8160
8161
8162
8163
8164
8165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8167
8168   runpath_var=
8169   allow_undefined_flag=
8170   always_export_symbols=no
8171   archive_cmds=
8172   archive_expsym_cmds=
8173   compiler_needs_object=no
8174   enable_shared_with_static_runtimes=no
8175   export_dynamic_flag_spec=
8176   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8177   hardcode_automatic=no
8178   hardcode_direct=no
8179   hardcode_direct_absolute=no
8180   hardcode_libdir_flag_spec=
8181   hardcode_libdir_flag_spec_ld=
8182   hardcode_libdir_separator=
8183   hardcode_minus_L=no
8184   hardcode_shlibpath_var=unsupported
8185   inherit_rpath=no
8186   link_all_deplibs=unknown
8187   module_cmds=
8188   module_expsym_cmds=
8189   old_archive_from_new_cmds=
8190   old_archive_from_expsyms_cmds=
8191   thread_safe_flag_spec=
8192   whole_archive_flag_spec=
8193   # include_expsyms should be a list of space-separated symbols to be *always*
8194   # included in the symbol list
8195   include_expsyms=
8196   # exclude_expsyms can be an extended regexp of symbols to exclude
8197   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8198   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8199   # as well as any symbol that contains `d'.
8200   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8201   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8202   # platforms (ab)use it in PIC code, but their linkers get confused if
8203   # the symbol is explicitly referenced.  Since portable code cannot
8204   # rely on this symbol name, it's probably fine to never include it in
8205   # preloaded symbol tables.
8206   # Exclude shared library initialization/finalization symbols.
8207   extract_expsyms_cmds=
8208
8209   case $host_os in
8210   cygwin* | mingw* | pw32* | cegcc*)
8211     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8212     # When not using gcc, we currently assume that we are using
8213     # Microsoft Visual C++.
8214     if test "$GCC" != yes; then
8215       with_gnu_ld=no
8216     fi
8217     ;;
8218   interix*)
8219     # we just hope/assume this is gcc and not c89 (= MSVC++)
8220     with_gnu_ld=yes
8221     ;;
8222   openbsd*)
8223     with_gnu_ld=no
8224     ;;
8225   linux* | k*bsd*-gnu)
8226     link_all_deplibs=no
8227     ;;
8228   esac
8229
8230   ld_shlibs=yes
8231   if test "$with_gnu_ld" = yes; then
8232     # If archive_cmds runs LD, not CC, wlarc should be empty
8233     wlarc='${wl}'
8234
8235     # Set some defaults for GNU ld with shared library support. These
8236     # are reset later if shared libraries are not supported. Putting them
8237     # here allows them to be overridden if necessary.
8238     runpath_var=LD_RUN_PATH
8239     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8240     export_dynamic_flag_spec='${wl}--export-dynamic'
8241     # ancient GNU ld didn't support --whole-archive et. al.
8242     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8243       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8244     else
8245       whole_archive_flag_spec=
8246     fi
8247     supports_anon_versioning=no
8248     case `$LD -v 2>&1` in
8249       *GNU\ gold*) supports_anon_versioning=yes ;;
8250       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8251       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8252       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8253       *\ 2.11.*) ;; # other 2.11 versions
8254       *) supports_anon_versioning=yes ;;
8255     esac
8256
8257     # See if GNU ld supports shared libraries.
8258     case $host_os in
8259     aix[3-9]*)
8260       # On AIX/PPC, the GNU linker is very broken
8261       if test "$host_cpu" != ia64; then
8262         ld_shlibs=no
8263         cat <<_LT_EOF 1>&2
8264
8265 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8266 *** to be unable to reliably create shared libraries on AIX.
8267 *** Therefore, libtool is disabling shared libraries support.  If you
8268 *** really care for shared libraries, you may want to modify your PATH
8269 *** so that a non-GNU linker is found, and then restart.
8270
8271 _LT_EOF
8272       fi
8273       ;;
8274
8275     amigaos*)
8276       case $host_cpu in
8277       powerpc)
8278             # see comment about AmigaOS4 .so support
8279             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280             archive_expsym_cmds=''
8281         ;;
8282       m68k)
8283             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)'
8284             hardcode_libdir_flag_spec='-L$libdir'
8285             hardcode_minus_L=yes
8286         ;;
8287       esac
8288       ;;
8289
8290     beos*)
8291       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8292         allow_undefined_flag=unsupported
8293         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8294         # support --undefined.  This deserves some investigation.  FIXME
8295         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296       else
8297         ld_shlibs=no
8298       fi
8299       ;;
8300
8301     cygwin* | mingw* | pw32* | cegcc*)
8302       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8303       # as there is no search path for DLLs.
8304       hardcode_libdir_flag_spec='-L$libdir'
8305       allow_undefined_flag=unsupported
8306       always_export_symbols=no
8307       enable_shared_with_static_runtimes=yes
8308       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8309
8310       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8311         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8312         # If the export-symbols file already is a .def file (1st line
8313         # is EXPORTS), use it as is; otherwise, prepend...
8314         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8315           cp $export_symbols $output_objdir/$soname.def;
8316         else
8317           echo EXPORTS > $output_objdir/$soname.def;
8318           cat $export_symbols >> $output_objdir/$soname.def;
8319         fi~
8320         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8321       else
8322         ld_shlibs=no
8323       fi
8324       ;;
8325
8326     interix[3-9]*)
8327       hardcode_direct=no
8328       hardcode_shlibpath_var=no
8329       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8330       export_dynamic_flag_spec='${wl}-E'
8331       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8332       # Instead, shared libraries are loaded at an image base (0x10000000 by
8333       # default) and relocated if they conflict, which is a slow very memory
8334       # consuming and fragmenting process.  To avoid this, we pick a random,
8335       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8336       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8337       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8338       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'
8339       ;;
8340
8341     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8342       tmp_diet=no
8343       if test "$host_os" = linux-dietlibc; then
8344         case $cc_basename in
8345           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8346         esac
8347       fi
8348       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8349          && test "$tmp_diet" = no
8350       then
8351         tmp_addflag=
8352         tmp_sharedflag='-shared'
8353         case $cc_basename,$host_cpu in
8354         pgcc*)                          # Portland Group C compiler
8355           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8356           tmp_addflag=' $pic_flag'
8357           ;;
8358         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8359           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8360           tmp_addflag=' $pic_flag -Mnomain' ;;
8361         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8362           tmp_addflag=' -i_dynamic' ;;
8363         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8364           tmp_addflag=' -i_dynamic -nofor_main' ;;
8365         ifc* | ifort*)                  # Intel Fortran compiler
8366           tmp_addflag=' -nofor_main' ;;
8367         lf95*)                          # Lahey Fortran 8.1
8368           whole_archive_flag_spec=
8369           tmp_sharedflag='--shared' ;;
8370         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8371           tmp_sharedflag='-qmkshrobj'
8372           tmp_addflag= ;;
8373         esac
8374         case `$CC -V 2>&1 | sed 5q` in
8375         *Sun\ C*)                       # Sun C 5.9
8376           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8377           compiler_needs_object=yes
8378           tmp_sharedflag='-G' ;;
8379         *Sun\ F*)                       # Sun Fortran 8.3
8380           tmp_sharedflag='-G' ;;
8381         esac
8382         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8383
8384         if test "x$supports_anon_versioning" = xyes; then
8385           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8386             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8387             echo "local: *; };" >> $output_objdir/$libname.ver~
8388             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8389         fi
8390
8391         case $cc_basename in
8392         xlf*)
8393           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8394           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8395           hardcode_libdir_flag_spec=
8396           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8397           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8398           if test "x$supports_anon_versioning" = xyes; then
8399             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8400               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8401               echo "local: *; };" >> $output_objdir/$libname.ver~
8402               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8403           fi
8404           ;;
8405         esac
8406       else
8407         ld_shlibs=no
8408       fi
8409       ;;
8410
8411     netbsd* | netbsdelf*-gnu)
8412       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8413         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8414         wlarc=
8415       else
8416         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8417         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8418       fi
8419       ;;
8420
8421     solaris*)
8422       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8423         ld_shlibs=no
8424         cat <<_LT_EOF 1>&2
8425
8426 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8427 *** create shared libraries on Solaris systems.  Therefore, libtool
8428 *** is disabling shared libraries support.  We urge you to upgrade GNU
8429 *** binutils to release 2.9.1 or newer.  Another option is to modify
8430 *** your PATH or compiler configuration so that the native linker is
8431 *** used, and then restart.
8432
8433 _LT_EOF
8434       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8435         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8436         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8437       else
8438         ld_shlibs=no
8439       fi
8440       ;;
8441
8442     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8443       case `$LD -v 2>&1` in
8444         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8445         ld_shlibs=no
8446         cat <<_LT_EOF 1>&2
8447
8448 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8449 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8450 *** is disabling shared libraries support.  We urge you to upgrade GNU
8451 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8452 *** your PATH or compiler configuration so that the native linker is
8453 *** used, and then restart.
8454
8455 _LT_EOF
8456         ;;
8457         *)
8458           # For security reasons, it is highly recommended that you always
8459           # use absolute paths for naming shared libraries, and exclude the
8460           # DT_RUNPATH tag from executables and libraries.  But doing so
8461           # requires that you compile everything twice, which is a pain.
8462           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8463             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8464             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8465             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8466           else
8467             ld_shlibs=no
8468           fi
8469         ;;
8470       esac
8471       ;;
8472
8473     sunos4*)
8474       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8475       wlarc=
8476       hardcode_direct=yes
8477       hardcode_shlibpath_var=no
8478       ;;
8479
8480     *)
8481       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8482         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8484       else
8485         ld_shlibs=no
8486       fi
8487       ;;
8488     esac
8489
8490     if test "$ld_shlibs" = no; then
8491       runpath_var=
8492       hardcode_libdir_flag_spec=
8493       export_dynamic_flag_spec=
8494       whole_archive_flag_spec=
8495     fi
8496   else
8497     # PORTME fill in a description of your system's linker (not GNU ld)
8498     case $host_os in
8499     aix3*)
8500       allow_undefined_flag=unsupported
8501       always_export_symbols=yes
8502       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'
8503       # Note: this linker hardcodes the directories in LIBPATH if there
8504       # are no directories specified by -L.
8505       hardcode_minus_L=yes
8506       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8507         # Neither direct hardcoding nor static linking is supported with a
8508         # broken collect2.
8509         hardcode_direct=unsupported
8510       fi
8511       ;;
8512
8513     aix[4-9]*)
8514       if test "$host_cpu" = ia64; then
8515         # On IA64, the linker does run time linking by default, so we don't
8516         # have to do anything special.
8517         aix_use_runtimelinking=no
8518         exp_sym_flag='-Bexport'
8519         no_entry_flag=""
8520       else
8521         # If we're using GNU nm, then we don't want the "-C" option.
8522         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8523         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8524           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8525         else
8526           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8527         fi
8528         aix_use_runtimelinking=no
8529
8530         # Test if we are trying to use run time linking or normal
8531         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8532         # need to do runtime linking.
8533         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8534           for ld_flag in $LDFLAGS; do
8535           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8536             aix_use_runtimelinking=yes
8537             break
8538           fi
8539           done
8540           ;;
8541         esac
8542
8543         exp_sym_flag='-bexport'
8544         no_entry_flag='-bnoentry'
8545       fi
8546
8547       # When large executables or shared objects are built, AIX ld can
8548       # have problems creating the table of contents.  If linking a library
8549       # or program results in "error TOC overflow" add -mminimal-toc to
8550       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8551       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8552
8553       archive_cmds=''
8554       hardcode_direct=yes
8555       hardcode_direct_absolute=yes
8556       hardcode_libdir_separator=':'
8557       link_all_deplibs=yes
8558       file_list_spec='${wl}-f,'
8559
8560       if test "$GCC" = yes; then
8561         case $host_os in aix4.[012]|aix4.[012].*)
8562         # We only want to do this on AIX 4.2 and lower, the check
8563         # below for broken collect2 doesn't work under 4.3+
8564           collect2name=`${CC} -print-prog-name=collect2`
8565           if test -f "$collect2name" &&
8566            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8567           then
8568           # We have reworked collect2
8569           :
8570           else
8571           # We have old collect2
8572           hardcode_direct=unsupported
8573           # It fails to find uninstalled libraries when the uninstalled
8574           # path is not listed in the libpath.  Setting hardcode_minus_L
8575           # to unsupported forces relinking
8576           hardcode_minus_L=yes
8577           hardcode_libdir_flag_spec='-L$libdir'
8578           hardcode_libdir_separator=
8579           fi
8580           ;;
8581         esac
8582         shared_flag='-shared'
8583         if test "$aix_use_runtimelinking" = yes; then
8584           shared_flag="$shared_flag "'${wl}-G'
8585         fi
8586         link_all_deplibs=no
8587       else
8588         # not using gcc
8589         if test "$host_cpu" = ia64; then
8590         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8591         # chokes on -Wl,-G. The following line is correct:
8592           shared_flag='-G'
8593         else
8594           if test "$aix_use_runtimelinking" = yes; then
8595             shared_flag='${wl}-G'
8596           else
8597             shared_flag='${wl}-bM:SRE'
8598           fi
8599         fi
8600       fi
8601
8602       export_dynamic_flag_spec='${wl}-bexpall'
8603       # It seems that -bexpall does not export symbols beginning with
8604       # underscore (_), so it is better to generate a list of symbols to export.
8605       always_export_symbols=yes
8606       if test "$aix_use_runtimelinking" = yes; then
8607         # Warning - without using the other runtime loading flags (-brtl),
8608         # -berok will link without error, but may produce a broken library.
8609         allow_undefined_flag='-berok'
8610         # Determine the default libpath from the value encoded in an
8611         # empty executable.
8612         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h.  */
8614
8615 int
8616 main ()
8617 {
8618
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 if ac_fn_c_try_link "$LINENO"; then :
8624
8625 lt_aix_libpath_sed='
8626     /Import File Strings/,/^$/ {
8627         /^0/ {
8628             s/^0  *\(.*\)$/\1/
8629             p
8630         }
8631     }'
8632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8633 # Check for a 64-bit object if we didn't find anything.
8634 if test -z "$aix_libpath"; then
8635   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8636 fi
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext \
8639     conftest$ac_exeext conftest.$ac_ext
8640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8641
8642         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8644       else
8645         if test "$host_cpu" = ia64; then
8646           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8647           allow_undefined_flag="-z nodefs"
8648           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"
8649         else
8650          # Determine the default libpath from the value encoded in an
8651          # empty executable.
8652          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h.  */
8654
8655 int
8656 main ()
8657 {
8658
8659   ;
8660   return 0;
8661 }
8662 _ACEOF
8663 if ac_fn_c_try_link "$LINENO"; then :
8664
8665 lt_aix_libpath_sed='
8666     /Import File Strings/,/^$/ {
8667         /^0/ {
8668             s/^0  *\(.*\)$/\1/
8669             p
8670         }
8671     }'
8672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8673 # Check for a 64-bit object if we didn't find anything.
8674 if test -z "$aix_libpath"; then
8675   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8676 fi
8677 fi
8678 rm -f core conftest.err conftest.$ac_objext \
8679     conftest$ac_exeext conftest.$ac_ext
8680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8681
8682          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8683           # Warning - without using the other run time loading flags,
8684           # -berok will link without error, but may produce a broken library.
8685           no_undefined_flag=' ${wl}-bernotok'
8686           allow_undefined_flag=' ${wl}-berok'
8687           # Exported symbols can be pulled into shared objects from archives
8688           whole_archive_flag_spec='$convenience'
8689           archive_cmds_need_lc=yes
8690           # This is similar to how AIX traditionally builds its shared libraries.
8691           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8692         fi
8693       fi
8694       ;;
8695
8696     amigaos*)
8697       case $host_cpu in
8698       powerpc)
8699             # see comment about AmigaOS4 .so support
8700             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701             archive_expsym_cmds=''
8702         ;;
8703       m68k)
8704             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)'
8705             hardcode_libdir_flag_spec='-L$libdir'
8706             hardcode_minus_L=yes
8707         ;;
8708       esac
8709       ;;
8710
8711     bsdi[45]*)
8712       export_dynamic_flag_spec=-rdynamic
8713       ;;
8714
8715     cygwin* | mingw* | pw32* | cegcc*)
8716       # When not using gcc, we currently assume that we are using
8717       # Microsoft Visual C++.
8718       # hardcode_libdir_flag_spec is actually meaningless, as there is
8719       # no search path for DLLs.
8720       hardcode_libdir_flag_spec=' '
8721       allow_undefined_flag=unsupported
8722       # Tell ltmain to make .lib files, not .a files.
8723       libext=lib
8724       # Tell ltmain to make .dll files, not .so files.
8725       shrext_cmds=".dll"
8726       # FIXME: Setting linknames here is a bad hack.
8727       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8728       # The linker will automatically build a .lib file if we build a DLL.
8729       old_archive_from_new_cmds='true'
8730       # FIXME: Should let the user specify the lib program.
8731       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8732       fix_srcfile_path='`cygpath -w "$srcfile"`'
8733       enable_shared_with_static_runtimes=yes
8734       ;;
8735
8736     darwin* | rhapsody*)
8737
8738
8739   archive_cmds_need_lc=no
8740   hardcode_direct=no
8741   hardcode_automatic=yes
8742   hardcode_shlibpath_var=unsupported
8743   whole_archive_flag_spec=''
8744   link_all_deplibs=yes
8745   allow_undefined_flag="$_lt_dar_allow_undefined"
8746   case $cc_basename in
8747      ifort*) _lt_dar_can_shared=yes ;;
8748      *) _lt_dar_can_shared=$GCC ;;
8749   esac
8750   if test "$_lt_dar_can_shared" = "yes"; then
8751     output_verbose_link_cmd=echo
8752     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8753     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8754     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}"
8755     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}"
8756
8757   else
8758   ld_shlibs=no
8759   fi
8760
8761       ;;
8762
8763     dgux*)
8764       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8765       hardcode_libdir_flag_spec='-L$libdir'
8766       hardcode_shlibpath_var=no
8767       ;;
8768
8769     freebsd1*)
8770       ld_shlibs=no
8771       ;;
8772
8773     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8774     # support.  Future versions do this automatically, but an explicit c++rt0.o
8775     # does not break anything, and helps significantly (at the cost of a little
8776     # extra space).
8777     freebsd2.2*)
8778       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8779       hardcode_libdir_flag_spec='-R$libdir'
8780       hardcode_direct=yes
8781       hardcode_shlibpath_var=no
8782       ;;
8783
8784     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8785     freebsd2*)
8786       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787       hardcode_direct=yes
8788       hardcode_minus_L=yes
8789       hardcode_shlibpath_var=no
8790       ;;
8791
8792     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8793     freebsd* | dragonfly*)
8794       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8795       hardcode_libdir_flag_spec='-R$libdir'
8796       hardcode_direct=yes
8797       hardcode_shlibpath_var=no
8798       ;;
8799
8800     hpux9*)
8801       if test "$GCC" = yes; then
8802         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8803       else
8804         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8805       fi
8806       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807       hardcode_libdir_separator=:
8808       hardcode_direct=yes
8809
8810       # hardcode_minus_L: Not really in the search PATH,
8811       # but as the default location of the library.
8812       hardcode_minus_L=yes
8813       export_dynamic_flag_spec='${wl}-E'
8814       ;;
8815
8816     hpux10*)
8817       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8818         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8819       else
8820         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8821       fi
8822       if test "$with_gnu_ld" = no; then
8823         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8824         hardcode_libdir_flag_spec_ld='+b $libdir'
8825         hardcode_libdir_separator=:
8826         hardcode_direct=yes
8827         hardcode_direct_absolute=yes
8828         export_dynamic_flag_spec='${wl}-E'
8829         # hardcode_minus_L: Not really in the search PATH,
8830         # but as the default location of the library.
8831         hardcode_minus_L=yes
8832       fi
8833       ;;
8834
8835     hpux11*)
8836       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8837         case $host_cpu in
8838         hppa*64*)
8839           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840           ;;
8841         ia64*)
8842           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8843           ;;
8844         *)
8845           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8846           ;;
8847         esac
8848       else
8849         case $host_cpu in
8850         hppa*64*)
8851           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852           ;;
8853         ia64*)
8854           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8855           ;;
8856         *)
8857           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8858           ;;
8859         esac
8860       fi
8861       if test "$with_gnu_ld" = no; then
8862         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8863         hardcode_libdir_separator=:
8864
8865         case $host_cpu in
8866         hppa*64*|ia64*)
8867           hardcode_direct=no
8868           hardcode_shlibpath_var=no
8869           ;;
8870         *)
8871           hardcode_direct=yes
8872           hardcode_direct_absolute=yes
8873           export_dynamic_flag_spec='${wl}-E'
8874
8875           # hardcode_minus_L: Not really in the search PATH,
8876           # but as the default location of the library.
8877           hardcode_minus_L=yes
8878           ;;
8879         esac
8880       fi
8881       ;;
8882
8883     irix5* | irix6* | nonstopux*)
8884       if test "$GCC" = yes; then
8885         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8886         # Try to use the -exported_symbol ld option, if it does not
8887         # work, assume that -exports_file does not work either and
8888         # implicitly export all symbols.
8889         save_LDFLAGS="$LDFLAGS"
8890         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8891         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h.  */
8893 int foo(void) {}
8894 _ACEOF
8895 if ac_fn_c_try_link "$LINENO"; then :
8896   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8897
8898 fi
8899 rm -f core conftest.err conftest.$ac_objext \
8900     conftest$ac_exeext conftest.$ac_ext
8901         LDFLAGS="$save_LDFLAGS"
8902       else
8903         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8904         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8905       fi
8906       archive_cmds_need_lc='no'
8907       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8908       hardcode_libdir_separator=:
8909       inherit_rpath=yes
8910       link_all_deplibs=yes
8911       ;;
8912
8913     netbsd* | netbsdelf*-gnu)
8914       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8915         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8916       else
8917         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8918       fi
8919       hardcode_libdir_flag_spec='-R$libdir'
8920       hardcode_direct=yes
8921       hardcode_shlibpath_var=no
8922       ;;
8923
8924     newsos6)
8925       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8926       hardcode_direct=yes
8927       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8928       hardcode_libdir_separator=:
8929       hardcode_shlibpath_var=no
8930       ;;
8931
8932     *nto* | *qnx*)
8933       ;;
8934
8935     openbsd*)
8936       if test -f /usr/libexec/ld.so; then
8937         hardcode_direct=yes
8938         hardcode_shlibpath_var=no
8939         hardcode_direct_absolute=yes
8940         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8941           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8942           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8943           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8944           export_dynamic_flag_spec='${wl}-E'
8945         else
8946           case $host_os in
8947            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8948              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8949              hardcode_libdir_flag_spec='-R$libdir'
8950              ;;
8951            *)
8952              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8953              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8954              ;;
8955           esac
8956         fi
8957       else
8958         ld_shlibs=no
8959       fi
8960       ;;
8961
8962     os2*)
8963       hardcode_libdir_flag_spec='-L$libdir'
8964       hardcode_minus_L=yes
8965       allow_undefined_flag=unsupported
8966       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8967       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8968       ;;
8969
8970     osf3*)
8971       if test "$GCC" = yes; then
8972         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8973         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8974       else
8975         allow_undefined_flag=' -expect_unresolved \*'
8976         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8977       fi
8978       archive_cmds_need_lc='no'
8979       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980       hardcode_libdir_separator=:
8981       ;;
8982
8983     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8984       if test "$GCC" = yes; then
8985         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8986         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8987         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8988       else
8989         allow_undefined_flag=' -expect_unresolved \*'
8990         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8991         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~
8992         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8993
8994         # Both c and cxx compiler support -rpath directly
8995         hardcode_libdir_flag_spec='-rpath $libdir'
8996       fi
8997       archive_cmds_need_lc='no'
8998       hardcode_libdir_separator=:
8999       ;;
9000
9001     solaris*)
9002       no_undefined_flag=' -z defs'
9003       if test "$GCC" = yes; then
9004         wlarc='${wl}'
9005         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9006         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9007           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9008       else
9009         case `$CC -V 2>&1` in
9010         *"Compilers 5.0"*)
9011           wlarc=''
9012           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9014           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9015           ;;
9016         *)
9017           wlarc='${wl}'
9018           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9019           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9020           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9021           ;;
9022         esac
9023       fi
9024       hardcode_libdir_flag_spec='-R$libdir'
9025       hardcode_shlibpath_var=no
9026       case $host_os in
9027       solaris2.[0-5] | solaris2.[0-5].*) ;;
9028       *)
9029         # The compiler driver will combine and reorder linker options,
9030         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9031         # but is careful enough not to reorder.
9032         # Supported since Solaris 2.6 (maybe 2.5.1?)
9033         if test "$GCC" = yes; then
9034           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9035         else
9036           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9037         fi
9038         ;;
9039       esac
9040       link_all_deplibs=yes
9041       ;;
9042
9043     sunos4*)
9044       if test "x$host_vendor" = xsequent; then
9045         # Use $CC to link under sequent, because it throws in some extra .o
9046         # files that make .init and .fini sections work.
9047         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9048       else
9049         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9050       fi
9051       hardcode_libdir_flag_spec='-L$libdir'
9052       hardcode_direct=yes
9053       hardcode_minus_L=yes
9054       hardcode_shlibpath_var=no
9055       ;;
9056
9057     sysv4)
9058       case $host_vendor in
9059         sni)
9060           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061           hardcode_direct=yes # is this really true???
9062         ;;
9063         siemens)
9064           ## LD is ld it makes a PLAMLIB
9065           ## CC just makes a GrossModule.
9066           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9067           reload_cmds='$CC -r -o $output$reload_objs'
9068           hardcode_direct=no
9069         ;;
9070         motorola)
9071           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9073         ;;
9074       esac
9075       runpath_var='LD_RUN_PATH'
9076       hardcode_shlibpath_var=no
9077       ;;
9078
9079     sysv4.3*)
9080       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9081       hardcode_shlibpath_var=no
9082       export_dynamic_flag_spec='-Bexport'
9083       ;;
9084
9085     sysv4*MP*)
9086       if test -d /usr/nec; then
9087         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088         hardcode_shlibpath_var=no
9089         runpath_var=LD_RUN_PATH
9090         hardcode_runpath_var=yes
9091         ld_shlibs=yes
9092       fi
9093       ;;
9094
9095     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9096       no_undefined_flag='${wl}-z,text'
9097       archive_cmds_need_lc=no
9098       hardcode_shlibpath_var=no
9099       runpath_var='LD_RUN_PATH'
9100
9101       if test "$GCC" = yes; then
9102         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9103         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9104       else
9105         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9106         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9107       fi
9108       ;;
9109
9110     sysv5* | sco3.2v5* | sco5v6*)
9111       # Note: We can NOT use -z defs as we might desire, because we do not
9112       # link with -lc, and that would cause any symbols used from libc to
9113       # always be unresolved, which means just about no library would
9114       # ever link correctly.  If we're not using GNU ld we use -z text
9115       # though, which does catch some bad symbols but isn't as heavy-handed
9116       # as -z defs.
9117       no_undefined_flag='${wl}-z,text'
9118       allow_undefined_flag='${wl}-z,nodefs'
9119       archive_cmds_need_lc=no
9120       hardcode_shlibpath_var=no
9121       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9122       hardcode_libdir_separator=':'
9123       link_all_deplibs=yes
9124       export_dynamic_flag_spec='${wl}-Bexport'
9125       runpath_var='LD_RUN_PATH'
9126
9127       if test "$GCC" = yes; then
9128         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9129         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130       else
9131         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9132         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133       fi
9134       ;;
9135
9136     uts4*)
9137       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138       hardcode_libdir_flag_spec='-L$libdir'
9139       hardcode_shlibpath_var=no
9140       ;;
9141
9142     *)
9143       ld_shlibs=no
9144       ;;
9145     esac
9146
9147     if test x$host_vendor = xsni; then
9148       case $host in
9149       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9150         export_dynamic_flag_spec='${wl}-Blargedynsym'
9151         ;;
9152       esac
9153     fi
9154   fi
9155
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9157 $as_echo "$ld_shlibs" >&6; }
9158 test "$ld_shlibs" = no && can_build_shared=no
9159
9160 with_gnu_ld=$with_gnu_ld
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176 #
9177 # Do we need to explicitly link libc?
9178 #
9179 case "x$archive_cmds_need_lc" in
9180 x|xyes)
9181   # Assume -lc should be added
9182   archive_cmds_need_lc=yes
9183
9184   if test "$enable_shared" = yes && test "$GCC" = yes; then
9185     case $archive_cmds in
9186     *'~'*)
9187       # FIXME: we may have to deal with multi-command sequences.
9188       ;;
9189     '$CC '*)
9190       # Test whether the compiler implicitly links with -lc since on some
9191       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9192       # to ld, don't add -lc before -lgcc.
9193       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9194 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9195       $RM conftest*
9196       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9197
9198       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9199   (eval $ac_compile) 2>&5
9200   ac_status=$?
9201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9202   test $ac_status = 0; } 2>conftest.err; then
9203         soname=conftest
9204         lib=conftest
9205         libobjs=conftest.$ac_objext
9206         deplibs=
9207         wl=$lt_prog_compiler_wl
9208         pic_flag=$lt_prog_compiler_pic
9209         compiler_flags=-v
9210         linker_flags=-v
9211         verstring=
9212         output_objdir=.
9213         libname=conftest
9214         lt_save_allow_undefined_flag=$allow_undefined_flag
9215         allow_undefined_flag=
9216         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9217   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9218   ac_status=$?
9219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9220   test $ac_status = 0; }
9221         then
9222           archive_cmds_need_lc=no
9223         else
9224           archive_cmds_need_lc=yes
9225         fi
9226         allow_undefined_flag=$lt_save_allow_undefined_flag
9227       else
9228         cat conftest.err 1>&5
9229       fi
9230       $RM conftest*
9231       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9232 $as_echo "$archive_cmds_need_lc" >&6; }
9233       ;;
9234     esac
9235   fi
9236   ;;
9237 esac
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9396 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9397
9398 if test "$GCC" = yes; then
9399   case $host_os in
9400     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9401     *) lt_awk_arg="/^libraries:/" ;;
9402   esac
9403   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9404   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9405     # if the path contains ";" then we assume it to be the separator
9406     # otherwise default to the standard path separator (i.e. ":") - it is
9407     # assumed that no part of a normal pathname contains ";" but that should
9408     # okay in the real world where ";" in dirpaths is itself problematic.
9409     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9410   else
9411     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9412   fi
9413   # Ok, now we have the path, separated by spaces, we can step through it
9414   # and add multilib dir if necessary.
9415   lt_tmp_lt_search_path_spec=
9416   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9417   for lt_sys_path in $lt_search_path_spec; do
9418     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9419       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9420     else
9421       test -d "$lt_sys_path" && \
9422         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9423     fi
9424   done
9425   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9426 BEGIN {RS=" "; FS="/|\n";} {
9427   lt_foo="";
9428   lt_count=0;
9429   for (lt_i = NF; lt_i > 0; lt_i--) {
9430     if ($lt_i != "" && $lt_i != ".") {
9431       if ($lt_i == "..") {
9432         lt_count++;
9433       } else {
9434         if (lt_count == 0) {
9435           lt_foo="/" $lt_i lt_foo;
9436         } else {
9437           lt_count--;
9438         }
9439       }
9440     }
9441   }
9442   if (lt_foo != "") { lt_freq[lt_foo]++; }
9443   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9444 }'`
9445   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9446 else
9447   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9448 fi
9449 library_names_spec=
9450 libname_spec='lib$name'
9451 soname_spec=
9452 shrext_cmds=".so"
9453 postinstall_cmds=
9454 postuninstall_cmds=
9455 finish_cmds=
9456 finish_eval=
9457 shlibpath_var=
9458 shlibpath_overrides_runpath=unknown
9459 version_type=none
9460 dynamic_linker="$host_os ld.so"
9461 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9462 need_lib_prefix=unknown
9463 hardcode_into_libs=no
9464
9465 # when you set need_version to no, make sure it does not cause -set_version
9466 # flags to be left without arguments
9467 need_version=unknown
9468
9469 case $host_os in
9470 aix3*)
9471   version_type=linux
9472   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9473   shlibpath_var=LIBPATH
9474
9475   # AIX 3 has no versioning support, so we append a major version to the name.
9476   soname_spec='${libname}${release}${shared_ext}$major'
9477   ;;
9478
9479 aix[4-9]*)
9480   version_type=linux
9481   need_lib_prefix=no
9482   need_version=no
9483   hardcode_into_libs=yes
9484   if test "$host_cpu" = ia64; then
9485     # AIX 5 supports IA64
9486     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9487     shlibpath_var=LD_LIBRARY_PATH
9488   else
9489     # With GCC up to 2.95.x, collect2 would create an import file
9490     # for dependence libraries.  The import file would start with
9491     # the line `#! .'.  This would cause the generated library to
9492     # depend on `.', always an invalid library.  This was fixed in
9493     # development snapshots of GCC prior to 3.0.
9494     case $host_os in
9495       aix4 | aix4.[01] | aix4.[01].*)
9496       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9497            echo ' yes '
9498            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9499         :
9500       else
9501         can_build_shared=no
9502       fi
9503       ;;
9504     esac
9505     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9506     # soname into executable. Probably we can add versioning support to
9507     # collect2, so additional links can be useful in future.
9508     if test "$aix_use_runtimelinking" = yes; then
9509       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9510       # instead of lib<name>.a to let people know that these are not
9511       # typical AIX shared libraries.
9512       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513     else
9514       # We preserve .a as extension for shared libraries through AIX4.2
9515       # and later when we are not doing run time linking.
9516       library_names_spec='${libname}${release}.a $libname.a'
9517       soname_spec='${libname}${release}${shared_ext}$major'
9518     fi
9519     shlibpath_var=LIBPATH
9520   fi
9521   ;;
9522
9523 amigaos*)
9524   case $host_cpu in
9525   powerpc)
9526     # Since July 2007 AmigaOS4 officially supports .so libraries.
9527     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529     ;;
9530   m68k)
9531     library_names_spec='$libname.ixlibrary $libname.a'
9532     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9533     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9534     ;;
9535   esac
9536   ;;
9537
9538 beos*)
9539   library_names_spec='${libname}${shared_ext}'
9540   dynamic_linker="$host_os ld.so"
9541   shlibpath_var=LIBRARY_PATH
9542   ;;
9543
9544 bsdi[45]*)
9545   version_type=linux
9546   need_version=no
9547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548   soname_spec='${libname}${release}${shared_ext}$major'
9549   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9550   shlibpath_var=LD_LIBRARY_PATH
9551   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9552   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9553   # the default ld.so.conf also contains /usr/contrib/lib and
9554   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9555   # libtool to hard-code these into programs
9556   ;;
9557
9558 cygwin* | mingw* | pw32* | cegcc*)
9559   version_type=windows
9560   shrext_cmds=".dll"
9561   need_version=no
9562   need_lib_prefix=no
9563
9564   case $GCC,$host_os in
9565   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9566     library_names_spec='$libname.dll.a'
9567     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9568     postinstall_cmds='base_file=`basename \${file}`~
9569       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9570       dldir=$destdir/`dirname \$dlpath`~
9571       test -d \$dldir || mkdir -p \$dldir~
9572       $install_prog $dir/$dlname \$dldir/$dlname~
9573       chmod a+x \$dldir/$dlname~
9574       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9575         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9576       fi'
9577     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9578       dlpath=$dir/\$dldll~
9579        $RM \$dlpath'
9580     shlibpath_overrides_runpath=yes
9581
9582     case $host_os in
9583     cygwin*)
9584       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9585       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9586       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9587       ;;
9588     mingw* | cegcc*)
9589       # MinGW DLLs use traditional 'lib' prefix
9590       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9591       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9592       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9593         # It is most probably a Windows format PATH printed by
9594         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9595         # path with ; separators, and with drive letters. We can handle the
9596         # drive letters (cygwin fileutils understands them), so leave them,
9597         # especially as we might pass files found there to a mingw objdump,
9598         # which wouldn't understand a cygwinified path. Ahh.
9599         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9600       else
9601         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9602       fi
9603       ;;
9604     pw32*)
9605       # pw32 DLLs use 'pw' prefix rather than 'lib'
9606       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9607       ;;
9608     esac
9609     ;;
9610
9611   *)
9612     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9613     ;;
9614   esac
9615   dynamic_linker='Win32 ld.exe'
9616   # FIXME: first we should search . and the directory the executable is in
9617   shlibpath_var=PATH
9618   ;;
9619
9620 darwin* | rhapsody*)
9621   dynamic_linker="$host_os dyld"
9622   version_type=darwin
9623   need_lib_prefix=no
9624   need_version=no
9625   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9626   soname_spec='${libname}${release}${major}$shared_ext'
9627   shlibpath_overrides_runpath=yes
9628   shlibpath_var=DYLD_LIBRARY_PATH
9629   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9630
9631   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9632   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9633   ;;
9634
9635 dgux*)
9636   version_type=linux
9637   need_lib_prefix=no
9638   need_version=no
9639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9640   soname_spec='${libname}${release}${shared_ext}$major'
9641   shlibpath_var=LD_LIBRARY_PATH
9642   ;;
9643
9644 freebsd1*)
9645   dynamic_linker=no
9646   ;;
9647
9648 freebsd* | dragonfly*)
9649   # DragonFly does not have aout.  When/if they implement a new
9650   # versioning mechanism, adjust this.
9651   if test -x /usr/bin/objformat; then
9652     objformat=`/usr/bin/objformat`
9653   else
9654     case $host_os in
9655     freebsd[123]*) objformat=aout ;;
9656     *) objformat=elf ;;
9657     esac
9658   fi
9659   version_type=freebsd-$objformat
9660   case $version_type in
9661     freebsd-elf*)
9662       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9663       need_version=no
9664       need_lib_prefix=no
9665       ;;
9666     freebsd-*)
9667       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9668       need_version=yes
9669       ;;
9670   esac
9671   shlibpath_var=LD_LIBRARY_PATH
9672   case $host_os in
9673   freebsd2*)
9674     shlibpath_overrides_runpath=yes
9675     ;;
9676   freebsd3.[01]* | freebsdelf3.[01]*)
9677     shlibpath_overrides_runpath=yes
9678     hardcode_into_libs=yes
9679     ;;
9680   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9681   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9682     shlibpath_overrides_runpath=no
9683     hardcode_into_libs=yes
9684     ;;
9685   *) # from 4.6 on, and DragonFly
9686     shlibpath_overrides_runpath=yes
9687     hardcode_into_libs=yes
9688     ;;
9689   esac
9690   ;;
9691
9692 gnu*)
9693   version_type=linux
9694   need_lib_prefix=no
9695   need_version=no
9696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9697   soname_spec='${libname}${release}${shared_ext}$major'
9698   shlibpath_var=LD_LIBRARY_PATH
9699   hardcode_into_libs=yes
9700   ;;
9701
9702 hpux9* | hpux10* | hpux11*)
9703   # Give a soname corresponding to the major version so that dld.sl refuses to
9704   # link against other versions.
9705   version_type=sunos
9706   need_lib_prefix=no
9707   need_version=no
9708   case $host_cpu in
9709   ia64*)
9710     shrext_cmds='.so'
9711     hardcode_into_libs=yes
9712     dynamic_linker="$host_os dld.so"
9713     shlibpath_var=LD_LIBRARY_PATH
9714     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716     soname_spec='${libname}${release}${shared_ext}$major'
9717     if test "X$HPUX_IA64_MODE" = X32; then
9718       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9719     else
9720       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9721     fi
9722     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9723     ;;
9724   hppa*64*)
9725     shrext_cmds='.sl'
9726     hardcode_into_libs=yes
9727     dynamic_linker="$host_os dld.sl"
9728     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9729     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9730     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731     soname_spec='${libname}${release}${shared_ext}$major'
9732     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9733     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9734     ;;
9735   *)
9736     shrext_cmds='.sl'
9737     dynamic_linker="$host_os dld.sl"
9738     shlibpath_var=SHLIB_PATH
9739     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9740     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741     soname_spec='${libname}${release}${shared_ext}$major'
9742     ;;
9743   esac
9744   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9745   postinstall_cmds='chmod 555 $lib'
9746   ;;
9747
9748 interix[3-9]*)
9749   version_type=linux
9750   need_lib_prefix=no
9751   need_version=no
9752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9753   soname_spec='${libname}${release}${shared_ext}$major'
9754   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9755   shlibpath_var=LD_LIBRARY_PATH
9756   shlibpath_overrides_runpath=no
9757   hardcode_into_libs=yes
9758   ;;
9759
9760 irix5* | irix6* | nonstopux*)
9761   case $host_os in
9762     nonstopux*) version_type=nonstopux ;;
9763     *)
9764         if test "$lt_cv_prog_gnu_ld" = yes; then
9765                 version_type=linux
9766         else
9767                 version_type=irix
9768         fi ;;
9769   esac
9770   need_lib_prefix=no
9771   need_version=no
9772   soname_spec='${libname}${release}${shared_ext}$major'
9773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9774   case $host_os in
9775   irix5* | nonstopux*)
9776     libsuff= shlibsuff=
9777     ;;
9778   *)
9779     case $LD in # libtool.m4 will add one of these switches to LD
9780     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9781       libsuff= shlibsuff= libmagic=32-bit;;
9782     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9783       libsuff=32 shlibsuff=N32 libmagic=N32;;
9784     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9785       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9786     *) libsuff= shlibsuff= libmagic=never-match;;
9787     esac
9788     ;;
9789   esac
9790   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9791   shlibpath_overrides_runpath=no
9792   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9793   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9794   hardcode_into_libs=yes
9795   ;;
9796
9797 # No shared lib support for Linux oldld, aout, or coff.
9798 linux*oldld* | linux*aout* | linux*coff*)
9799   dynamic_linker=no
9800   ;;
9801
9802 # This must be Linux ELF.
9803 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9804   version_type=linux
9805   need_lib_prefix=no
9806   need_version=no
9807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808   soname_spec='${libname}${release}${shared_ext}$major'
9809   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9810   shlibpath_var=LD_LIBRARY_PATH
9811   shlibpath_overrides_runpath=no
9812   # Some binutils ld are patched to set DT_RUNPATH
9813   save_LDFLAGS=$LDFLAGS
9814   save_libdir=$libdir
9815   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9816        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h.  */
9819
9820 int
9821 main ()
9822 {
9823
9824   ;
9825   return 0;
9826 }
9827 _ACEOF
9828 if ac_fn_c_try_link "$LINENO"; then :
9829   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9830   shlibpath_overrides_runpath=yes
9831 fi
9832 fi
9833 rm -f core conftest.err conftest.$ac_objext \
9834     conftest$ac_exeext conftest.$ac_ext
9835   LDFLAGS=$save_LDFLAGS
9836   libdir=$save_libdir
9837
9838   # This implies no fast_install, which is unacceptable.
9839   # Some rework will be needed to allow for fast_install
9840   # before this can be enabled.
9841   hardcode_into_libs=yes
9842
9843   # Append ld.so.conf contents to the search path
9844   if test -f /etc/ld.so.conf; then
9845     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9846     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9847   fi
9848
9849   # We used to test for /lib/ld.so.1 and disable shared libraries on
9850   # powerpc, because MkLinux only supported shared libraries with the
9851   # GNU dynamic linker.  Since this was broken with cross compilers,
9852   # most powerpc-linux boxes support dynamic linking these days and
9853   # people can always --disable-shared, the test was removed, and we
9854   # assume the GNU/Linux dynamic linker is in use.
9855   dynamic_linker='GNU/Linux ld.so'
9856   ;;
9857
9858 netbsdelf*-gnu)
9859   version_type=linux
9860   need_lib_prefix=no
9861   need_version=no
9862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9863   soname_spec='${libname}${release}${shared_ext}$major'
9864   shlibpath_var=LD_LIBRARY_PATH
9865   shlibpath_overrides_runpath=no
9866   hardcode_into_libs=yes
9867   dynamic_linker='NetBSD ld.elf_so'
9868   ;;
9869
9870 netbsd*)
9871   version_type=sunos
9872   need_lib_prefix=no
9873   need_version=no
9874   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9876     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9877     dynamic_linker='NetBSD (a.out) ld.so'
9878   else
9879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9880     soname_spec='${libname}${release}${shared_ext}$major'
9881     dynamic_linker='NetBSD ld.elf_so'
9882   fi
9883   shlibpath_var=LD_LIBRARY_PATH
9884   shlibpath_overrides_runpath=yes
9885   hardcode_into_libs=yes
9886   ;;
9887
9888 newsos6)
9889   version_type=linux
9890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891   shlibpath_var=LD_LIBRARY_PATH
9892   shlibpath_overrides_runpath=yes
9893   ;;
9894
9895 *nto* | *qnx*)
9896   version_type=qnx
9897   need_lib_prefix=no
9898   need_version=no
9899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900   soname_spec='${libname}${release}${shared_ext}$major'
9901   shlibpath_var=LD_LIBRARY_PATH
9902   shlibpath_overrides_runpath=no
9903   hardcode_into_libs=yes
9904   dynamic_linker='ldqnx.so'
9905   ;;
9906
9907 openbsd*)
9908   version_type=sunos
9909   sys_lib_dlsearch_path_spec="/usr/lib"
9910   need_lib_prefix=no
9911   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9912   case $host_os in
9913     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9914     *)                          need_version=no  ;;
9915   esac
9916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9917   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9918   shlibpath_var=LD_LIBRARY_PATH
9919   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9920     case $host_os in
9921       openbsd2.[89] | openbsd2.[89].*)
9922         shlibpath_overrides_runpath=no
9923         ;;
9924       *)
9925         shlibpath_overrides_runpath=yes
9926         ;;
9927       esac
9928   else
9929     shlibpath_overrides_runpath=yes
9930   fi
9931   ;;
9932
9933 os2*)
9934   libname_spec='$name'
9935   shrext_cmds=".dll"
9936   need_lib_prefix=no
9937   library_names_spec='$libname${shared_ext} $libname.a'
9938   dynamic_linker='OS/2 ld.exe'
9939   shlibpath_var=LIBPATH
9940   ;;
9941
9942 osf3* | osf4* | osf5*)
9943   version_type=osf
9944   need_lib_prefix=no
9945   need_version=no
9946   soname_spec='${libname}${release}${shared_ext}$major'
9947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948   shlibpath_var=LD_LIBRARY_PATH
9949   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9950   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9951   ;;
9952
9953 rdos*)
9954   dynamic_linker=no
9955   ;;
9956
9957 solaris*)
9958   version_type=linux
9959   need_lib_prefix=no
9960   need_version=no
9961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962   soname_spec='${libname}${release}${shared_ext}$major'
9963   shlibpath_var=LD_LIBRARY_PATH
9964   shlibpath_overrides_runpath=yes
9965   hardcode_into_libs=yes
9966   # ldd complains unless libraries are executable
9967   postinstall_cmds='chmod +x $lib'
9968   ;;
9969
9970 sunos4*)
9971   version_type=sunos
9972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9973   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9974   shlibpath_var=LD_LIBRARY_PATH
9975   shlibpath_overrides_runpath=yes
9976   if test "$with_gnu_ld" = yes; then
9977     need_lib_prefix=no
9978   fi
9979   need_version=yes
9980   ;;
9981
9982 sysv4 | sysv4.3*)
9983   version_type=linux
9984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985   soname_spec='${libname}${release}${shared_ext}$major'
9986   shlibpath_var=LD_LIBRARY_PATH
9987   case $host_vendor in
9988     sni)
9989       shlibpath_overrides_runpath=no
9990       need_lib_prefix=no
9991       runpath_var=LD_RUN_PATH
9992       ;;
9993     siemens)
9994       need_lib_prefix=no
9995       ;;
9996     motorola)
9997       need_lib_prefix=no
9998       need_version=no
9999       shlibpath_overrides_runpath=no
10000       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10001       ;;
10002   esac
10003   ;;
10004
10005 sysv4*MP*)
10006   if test -d /usr/nec ;then
10007     version_type=linux
10008     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10009     soname_spec='$libname${shared_ext}.$major'
10010     shlibpath_var=LD_LIBRARY_PATH
10011   fi
10012   ;;
10013
10014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10015   version_type=freebsd-elf
10016   need_lib_prefix=no
10017   need_version=no
10018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10019   soname_spec='${libname}${release}${shared_ext}$major'
10020   shlibpath_var=LD_LIBRARY_PATH
10021   shlibpath_overrides_runpath=yes
10022   hardcode_into_libs=yes
10023   if test "$with_gnu_ld" = yes; then
10024     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10025   else
10026     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10027     case $host_os in
10028       sco3.2v5*)
10029         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10030         ;;
10031     esac
10032   fi
10033   sys_lib_dlsearch_path_spec='/usr/lib'
10034   ;;
10035
10036 tpf*)
10037   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10038   version_type=linux
10039   need_lib_prefix=no
10040   need_version=no
10041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042   shlibpath_var=LD_LIBRARY_PATH
10043   shlibpath_overrides_runpath=no
10044   hardcode_into_libs=yes
10045   ;;
10046
10047 uts4*)
10048   version_type=linux
10049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050   soname_spec='${libname}${release}${shared_ext}$major'
10051   shlibpath_var=LD_LIBRARY_PATH
10052   ;;
10053
10054 *)
10055   dynamic_linker=no
10056   ;;
10057 esac
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10059 $as_echo "$dynamic_linker" >&6; }
10060 test "$dynamic_linker" = no && can_build_shared=no
10061
10062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10063 if test "$GCC" = yes; then
10064   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10065 fi
10066
10067 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10068   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10069 fi
10070 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10071   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10072 fi
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10161 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10162 hardcode_action=
10163 if test -n "$hardcode_libdir_flag_spec" ||
10164    test -n "$runpath_var" ||
10165    test "X$hardcode_automatic" = "Xyes" ; then
10166
10167   # We can hardcode non-existent directories.
10168   if test "$hardcode_direct" != no &&
10169      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10170      # have to relink, otherwise we might link with an installed library
10171      # when we should be linking with a yet-to-be-installed one
10172      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10173      test "$hardcode_minus_L" != no; then
10174     # Linking always hardcodes the temporary library directory.
10175     hardcode_action=relink
10176   else
10177     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10178     hardcode_action=immediate
10179   fi
10180 else
10181   # We cannot hardcode anything, or else we can only hardcode existing
10182   # directories.
10183   hardcode_action=unsupported
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10186 $as_echo "$hardcode_action" >&6; }
10187
10188 if test "$hardcode_action" = relink ||
10189    test "$inherit_rpath" = yes; then
10190   # Fast installation is not supported
10191   enable_fast_install=no
10192 elif test "$shlibpath_overrides_runpath" = yes ||
10193      test "$enable_shared" = no; then
10194   # Fast installation is not necessary
10195   enable_fast_install=needless
10196 fi
10197
10198
10199
10200
10201
10202
10203   if test "x$enable_dlopen" != xyes; then
10204   enable_dlopen=unknown
10205   enable_dlopen_self=unknown
10206   enable_dlopen_self_static=unknown
10207 else
10208   lt_cv_dlopen=no
10209   lt_cv_dlopen_libs=
10210
10211   case $host_os in
10212   beos*)
10213     lt_cv_dlopen="load_add_on"
10214     lt_cv_dlopen_libs=
10215     lt_cv_dlopen_self=yes
10216     ;;
10217
10218   mingw* | pw32* | cegcc*)
10219     lt_cv_dlopen="LoadLibrary"
10220     lt_cv_dlopen_libs=
10221     ;;
10222
10223   cygwin*)
10224     lt_cv_dlopen="dlopen"
10225     lt_cv_dlopen_libs=
10226     ;;
10227
10228   darwin*)
10229   # if libdl is installed we need to link against it
10230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10233   $as_echo_n "(cached) " >&6
10234 else
10235   ac_check_lib_save_LIBS=$LIBS
10236 LIBS="-ldl  $LIBS"
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h.  */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241    Use char because int might match the return type of a GCC
10242    builtin and then its argument prototype would still apply.  */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char dlopen ();
10247 int
10248 main ()
10249 {
10250 return dlopen ();
10251   ;
10252   return 0;
10253 }
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"; then :
10256   ac_cv_lib_dl_dlopen=yes
10257 else
10258   ac_cv_lib_dl_dlopen=no
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext \
10261     conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10263 fi
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10265 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10266 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10267   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10268 else
10269
10270     lt_cv_dlopen="dyld"
10271     lt_cv_dlopen_libs=
10272     lt_cv_dlopen_self=yes
10273
10274 fi
10275
10276     ;;
10277
10278   *)
10279     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10280 if test "x$ac_cv_func_shl_load" = x""yes; then :
10281   lt_cv_dlopen="shl_load"
10282 else
10283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10284 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10285 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10286   $as_echo_n "(cached) " >&6
10287 else
10288   ac_check_lib_save_LIBS=$LIBS
10289 LIBS="-ldld  $LIBS"
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h.  */
10292
10293 /* Override any GCC internal prototype to avoid an error.
10294    Use char because int might match the return type of a GCC
10295    builtin and then its argument prototype would still apply.  */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char shl_load ();
10300 int
10301 main ()
10302 {
10303 return shl_load ();
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309   ac_cv_lib_dld_shl_load=yes
10310 else
10311   ac_cv_lib_dld_shl_load=no
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext \
10314     conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10316 fi
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10318 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10319 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10320   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10321 else
10322   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10323 if test "x$ac_cv_func_dlopen" = x""yes; then :
10324   lt_cv_dlopen="dlopen"
10325 else
10326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10327 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10328 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10329   $as_echo_n "(cached) " >&6
10330 else
10331   ac_check_lib_save_LIBS=$LIBS
10332 LIBS="-ldl  $LIBS"
10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h.  */
10335
10336 /* Override any GCC internal prototype to avoid an error.
10337    Use char because int might match the return type of a GCC
10338    builtin and then its argument prototype would still apply.  */
10339 #ifdef __cplusplus
10340 extern "C"
10341 #endif
10342 char dlopen ();
10343 int
10344 main ()
10345 {
10346 return dlopen ();
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 if ac_fn_c_try_link "$LINENO"; then :
10352   ac_cv_lib_dl_dlopen=yes
10353 else
10354   ac_cv_lib_dl_dlopen=no
10355 fi
10356 rm -f core conftest.err conftest.$ac_objext \
10357     conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10359 fi
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10361 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10362 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10363   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10364 else
10365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10366 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10367 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10368   $as_echo_n "(cached) " >&6
10369 else
10370   ac_check_lib_save_LIBS=$LIBS
10371 LIBS="-lsvld  $LIBS"
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h.  */
10374
10375 /* Override any GCC internal prototype to avoid an error.
10376    Use char because int might match the return type of a GCC
10377    builtin and then its argument prototype would still apply.  */
10378 #ifdef __cplusplus
10379 extern "C"
10380 #endif
10381 char dlopen ();
10382 int
10383 main ()
10384 {
10385 return dlopen ();
10386   ;
10387   return 0;
10388 }
10389 _ACEOF
10390 if ac_fn_c_try_link "$LINENO"; then :
10391   ac_cv_lib_svld_dlopen=yes
10392 else
10393   ac_cv_lib_svld_dlopen=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext \
10396     conftest$ac_exeext conftest.$ac_ext
10397 LIBS=$ac_check_lib_save_LIBS
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10400 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10401 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10402   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10403 else
10404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10405 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10406 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10407   $as_echo_n "(cached) " >&6
10408 else
10409   ac_check_lib_save_LIBS=$LIBS
10410 LIBS="-ldld  $LIBS"
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h.  */
10413
10414 /* Override any GCC internal prototype to avoid an error.
10415    Use char because int might match the return type of a GCC
10416    builtin and then its argument prototype would still apply.  */
10417 #ifdef __cplusplus
10418 extern "C"
10419 #endif
10420 char dld_link ();
10421 int
10422 main ()
10423 {
10424 return dld_link ();
10425   ;
10426   return 0;
10427 }
10428 _ACEOF
10429 if ac_fn_c_try_link "$LINENO"; then :
10430   ac_cv_lib_dld_dld_link=yes
10431 else
10432   ac_cv_lib_dld_dld_link=no
10433 fi
10434 rm -f core conftest.err conftest.$ac_objext \
10435     conftest$ac_exeext conftest.$ac_ext
10436 LIBS=$ac_check_lib_save_LIBS
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10439 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10440 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10441   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10442 fi
10443
10444
10445 fi
10446
10447
10448 fi
10449
10450
10451 fi
10452
10453
10454 fi
10455
10456
10457 fi
10458
10459     ;;
10460   esac
10461
10462   if test "x$lt_cv_dlopen" != xno; then
10463     enable_dlopen=yes
10464   else
10465     enable_dlopen=no
10466   fi
10467
10468   case $lt_cv_dlopen in
10469   dlopen)
10470     save_CPPFLAGS="$CPPFLAGS"
10471     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10472
10473     save_LDFLAGS="$LDFLAGS"
10474     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10475
10476     save_LIBS="$LIBS"
10477     LIBS="$lt_cv_dlopen_libs $LIBS"
10478
10479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10480 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10481 if test "${lt_cv_dlopen_self+set}" = set; then :
10482   $as_echo_n "(cached) " >&6
10483 else
10484           if test "$cross_compiling" = yes; then :
10485   lt_cv_dlopen_self=cross
10486 else
10487   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488   lt_status=$lt_dlunknown
10489   cat > conftest.$ac_ext <<_LT_EOF
10490 #line 10490 "configure"
10491 #include "confdefs.h"
10492
10493 #if HAVE_DLFCN_H
10494 #include <dlfcn.h>
10495 #endif
10496
10497 #include <stdio.h>
10498
10499 #ifdef RTLD_GLOBAL
10500 #  define LT_DLGLOBAL           RTLD_GLOBAL
10501 #else
10502 #  ifdef DL_GLOBAL
10503 #    define LT_DLGLOBAL         DL_GLOBAL
10504 #  else
10505 #    define LT_DLGLOBAL         0
10506 #  endif
10507 #endif
10508
10509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510    find out it does not work in some platform. */
10511 #ifndef LT_DLLAZY_OR_NOW
10512 #  ifdef RTLD_LAZY
10513 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10514 #  else
10515 #    ifdef DL_LAZY
10516 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10517 #    else
10518 #      ifdef RTLD_NOW
10519 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10520 #      else
10521 #        ifdef DL_NOW
10522 #          define LT_DLLAZY_OR_NOW      DL_NOW
10523 #        else
10524 #          define LT_DLLAZY_OR_NOW      0
10525 #        endif
10526 #      endif
10527 #    endif
10528 #  endif
10529 #endif
10530
10531 void fnord() { int i=42;}
10532 int main ()
10533 {
10534   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10535   int status = $lt_dlunknown;
10536
10537   if (self)
10538     {
10539       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10540       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10541       /* dlclose (self); */
10542     }
10543   else
10544     puts (dlerror ());
10545
10546   return status;
10547 }
10548 _LT_EOF
10549   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10550   (eval $ac_link) 2>&5
10551   ac_status=$?
10552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10553   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10554     (./conftest; exit; ) >&5 2>/dev/null
10555     lt_status=$?
10556     case x$lt_status in
10557       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10558       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10559       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10560     esac
10561   else :
10562     # compilation failed
10563     lt_cv_dlopen_self=no
10564   fi
10565 fi
10566 rm -fr conftest*
10567
10568
10569 fi
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10571 $as_echo "$lt_cv_dlopen_self" >&6; }
10572
10573     if test "x$lt_cv_dlopen_self" = xyes; then
10574       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10575       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10576 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10577 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10578   $as_echo_n "(cached) " >&6
10579 else
10580           if test "$cross_compiling" = yes; then :
10581   lt_cv_dlopen_self_static=cross
10582 else
10583   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10584   lt_status=$lt_dlunknown
10585   cat > conftest.$ac_ext <<_LT_EOF
10586 #line 10586 "configure"
10587 #include "confdefs.h"
10588
10589 #if HAVE_DLFCN_H
10590 #include <dlfcn.h>
10591 #endif
10592
10593 #include <stdio.h>
10594
10595 #ifdef RTLD_GLOBAL
10596 #  define LT_DLGLOBAL           RTLD_GLOBAL
10597 #else
10598 #  ifdef DL_GLOBAL
10599 #    define LT_DLGLOBAL         DL_GLOBAL
10600 #  else
10601 #    define LT_DLGLOBAL         0
10602 #  endif
10603 #endif
10604
10605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10606    find out it does not work in some platform. */
10607 #ifndef LT_DLLAZY_OR_NOW
10608 #  ifdef RTLD_LAZY
10609 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10610 #  else
10611 #    ifdef DL_LAZY
10612 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10613 #    else
10614 #      ifdef RTLD_NOW
10615 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10616 #      else
10617 #        ifdef DL_NOW
10618 #          define LT_DLLAZY_OR_NOW      DL_NOW
10619 #        else
10620 #          define LT_DLLAZY_OR_NOW      0
10621 #        endif
10622 #      endif
10623 #    endif
10624 #  endif
10625 #endif
10626
10627 void fnord() { int i=42;}
10628 int main ()
10629 {
10630   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10631   int status = $lt_dlunknown;
10632
10633   if (self)
10634     {
10635       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10636       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10637       /* dlclose (self); */
10638     }
10639   else
10640     puts (dlerror ());
10641
10642   return status;
10643 }
10644 _LT_EOF
10645   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10646   (eval $ac_link) 2>&5
10647   ac_status=$?
10648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10649   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10650     (./conftest; exit; ) >&5 2>/dev/null
10651     lt_status=$?
10652     case x$lt_status in
10653       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10654       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10655       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10656     esac
10657   else :
10658     # compilation failed
10659     lt_cv_dlopen_self_static=no
10660   fi
10661 fi
10662 rm -fr conftest*
10663
10664
10665 fi
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10667 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10668     fi
10669
10670     CPPFLAGS="$save_CPPFLAGS"
10671     LDFLAGS="$save_LDFLAGS"
10672     LIBS="$save_LIBS"
10673     ;;
10674   esac
10675
10676   case $lt_cv_dlopen_self in
10677   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10678   *) enable_dlopen_self=unknown ;;
10679   esac
10680
10681   case $lt_cv_dlopen_self_static in
10682   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10683   *) enable_dlopen_self_static=unknown ;;
10684   esac
10685 fi
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703 striplib=
10704 old_striplib=
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10706 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10707 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10708   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10709   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10711 $as_echo "yes" >&6; }
10712 else
10713 # FIXME - insert some real tests, host_os isn't really good enough
10714   case $host_os in
10715   darwin*)
10716     if test -n "$STRIP" ; then
10717       striplib="$STRIP -x"
10718       old_striplib="$STRIP -S"
10719       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; }
10721     else
10722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10724     fi
10725     ;;
10726   *)
10727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10729     ;;
10730   esac
10731 fi
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744   # Report which library types will actually be built
10745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10746 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10748 $as_echo "$can_build_shared" >&6; }
10749
10750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10751 $as_echo_n "checking whether to build shared libraries... " >&6; }
10752   test "$can_build_shared" = "no" && enable_shared=no
10753
10754   # On AIX, shared libraries and static libraries use the same namespace, and
10755   # are all built from PIC.
10756   case $host_os in
10757   aix3*)
10758     test "$enable_shared" = yes && enable_static=no
10759     if test -n "$RANLIB"; then
10760       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10761       postinstall_cmds='$RANLIB $lib'
10762     fi
10763     ;;
10764
10765   aix[4-9]*)
10766     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10767       test "$enable_shared" = yes && enable_static=no
10768     fi
10769     ;;
10770   esac
10771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10772 $as_echo "$enable_shared" >&6; }
10773
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10775 $as_echo_n "checking whether to build static libraries... " >&6; }
10776   # Make sure either enable_shared or enable_static is yes.
10777   test "$enable_shared" = yes || enable_static=yes
10778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10779 $as_echo "$enable_static" >&6; }
10780
10781
10782
10783
10784 fi
10785 ac_ext=c
10786 ac_cpp='$CPP $CPPFLAGS'
10787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10790
10791 CC="$lt_save_CC"
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805         ac_config_commands="$ac_config_commands libtool"
10806
10807
10808
10809
10810 # Only expand once:
10811
10812
10813
10814 lt_version=6:0:5
10815
10816
10817
10818 ### Needed information
10819
10820 have_win32=no
10821 have_darwin="no"
10822 case "$host_os" in
10823    mingw*)
10824       have_win32="yes"
10825       ;;
10826    darwin*)
10827       have_darwin="yes"
10828       ;;
10829 esac
10830
10831  if test "x${have_win32}" = "xyes"; then
10832   HAVE_WIN32_TRUE=
10833   HAVE_WIN32_FALSE='#'
10834 else
10835   HAVE_WIN32_TRUE='#'
10836   HAVE_WIN32_FALSE=
10837 fi
10838
10839  if test "x${have_darwin}" = "xyes"; then
10840   HAVE_DARWIN_TRUE=
10841   HAVE_DARWIN_FALSE='#'
10842 else
10843   HAVE_DARWIN_TRUE='#'
10844   HAVE_DARWIN_FALSE=
10845 fi
10846
10847
10848
10849 ### Additional options to configure
10850
10851 # debug
10852
10853 # Check whether --enable-debug was given.
10854 if test "${enable_debug+set}" = set; then :
10855   enableval=$enable_debug;
10856     if test "x${enableval}" = "xyes" ; then
10857        want_debug="yes"
10858     else
10859        want_debug="no"
10860     fi
10861
10862 else
10863   want_debug="no"
10864 fi
10865
10866
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build in debug mode" >&5
10868 $as_echo_n "checking whether to build in debug mode... " >&6; }
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_debug}" >&5
10870 $as_echo "${want_debug}" >&6; }
10871
10872 # MJ2
10873
10874 # Check whether --enable-mj2 was given.
10875 if test "${enable_mj2+set}" = set; then :
10876   enableval=$enable_mj2;
10877     if test "x${enableval}" = "xyes" ; then
10878        want_mj2="yes"
10879     else
10880        want_mj2="no"
10881     fi
10882
10883 else
10884   want_mj2="no"
10885 fi
10886
10887
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the MJ2 binaries" >&5
10889 $as_echo_n "checking whether to build the MJ2 binaries... " >&6; }
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_mj2}" >&5
10891 $as_echo "${want_mj2}" >&6; }
10892
10893 if test "x${want_mj2}" = "xyes" ; then
10894
10895 $as_echo "#define USE_MJ2 1" >>confdefs.h
10896
10897 fi
10898
10899  if test "x${want_mj2}" = "xyes"; then
10900   WANT_MJ2_TRUE=
10901   WANT_MJ2_FALSE='#'
10902 else
10903   WANT_MJ2_TRUE='#'
10904   WANT_MJ2_FALSE=
10905 fi
10906
10907
10908 # JPWL
10909
10910 # Check whether --enable-jpwl was given.
10911 if test "${enable_jpwl+set}" = set; then :
10912   enableval=$enable_jpwl;
10913     if test "x${enableval}" = "xyes" ; then
10914        want_jpwl="yes"
10915     else
10916        want_jpwl="no"
10917     fi
10918
10919 else
10920   want_jpwl="no"
10921 fi
10922
10923
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPWL library" >&5
10925 $as_echo_n "checking whether to build the JPWL library... " >&6; }
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpwl}" >&5
10927 $as_echo "${want_jpwl}" >&6; }
10928
10929  if test "x${want_jpwl}" = "xyes"; then
10930   WANT_JPWL_TRUE=
10931   WANT_JPWL_FALSE='#'
10932 else
10933   WANT_JPWL_TRUE='#'
10934   WANT_JPWL_FALSE=
10935 fi
10936
10937
10938 # JPIP
10939
10940 # Check whether --enable-jpip was given.
10941 if test "${enable_jpip+set}" = set; then :
10942   enableval=$enable_jpip;
10943     if test "x${enableval}" = "xyes" ; then
10944        want_jpip="yes"
10945     else
10946        want_jpip="no"
10947     fi
10948
10949 else
10950   want_jpip="no"
10951 fi
10952
10953
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPIP library" >&5
10955 $as_echo_n "checking whether to build the JPIP library... " >&6; }
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpip}" >&5
10957 $as_echo "${want_jpip}" >&6; }
10958
10959 # Check whether --enable-jpip-server was given.
10960 if test "${enable_jpip_server+set}" = set; then :
10961   enableval=$enable_jpip_server;
10962     if test "x${enableval}" = "xyes" ; then
10963        want_jpip_server="yes"
10964     else
10965        want_jpip_server="no"
10966     fi
10967
10968 else
10969   want_jpip_server="no"
10970 fi
10971
10972
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPIP server" >&5
10974 $as_echo_n "checking whether to build the JPIP server... " >&6; }
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpip_server}" >&5
10976 $as_echo "${want_jpip_server}" >&6; }
10977
10978
10979 ### Checks for programs
10980
10981 ac_ext=c
10982 ac_cpp='$CPP $CPPFLAGS'
10983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10986 if test -n "$ac_tool_prefix"; then
10987   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990 $as_echo_n "checking for $ac_word... " >&6; }
10991 if test "${ac_cv_prog_CC+set}" = set; then :
10992   $as_echo_n "(cached) " >&6
10993 else
10994   if test -n "$CC"; then
10995   ac_cv_prog_CC="$CC" # Let the user override the test.
10996 else
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
10999 do
11000   IFS=$as_save_IFS
11001   test -z "$as_dir" && as_dir=.
11002     for ac_exec_ext in '' $ac_executable_extensions; do
11003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006     break 2
11007   fi
11008 done
11009   done
11010 IFS=$as_save_IFS
11011
11012 fi
11013 fi
11014 CC=$ac_cv_prog_CC
11015 if test -n "$CC"; then
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11017 $as_echo "$CC" >&6; }
11018 else
11019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020 $as_echo "no" >&6; }
11021 fi
11022
11023
11024 fi
11025 if test -z "$ac_cv_prog_CC"; then
11026   ac_ct_CC=$CC
11027   # Extract the first word of "gcc", so it can be a program name with args.
11028 set dummy gcc; ac_word=$2
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11030 $as_echo_n "checking for $ac_word... " >&6; }
11031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11032   $as_echo_n "(cached) " >&6
11033 else
11034   if test -n "$ac_ct_CC"; then
11035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11036 else
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in $PATH
11039 do
11040   IFS=$as_save_IFS
11041   test -z "$as_dir" && as_dir=.
11042     for ac_exec_ext in '' $ac_executable_extensions; do
11043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11044     ac_cv_prog_ac_ct_CC="gcc"
11045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046     break 2
11047   fi
11048 done
11049   done
11050 IFS=$as_save_IFS
11051
11052 fi
11053 fi
11054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11055 if test -n "$ac_ct_CC"; then
11056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11057 $as_echo "$ac_ct_CC" >&6; }
11058 else
11059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11061 fi
11062
11063   if test "x$ac_ct_CC" = x; then
11064     CC=""
11065   else
11066     case $cross_compiling:$ac_tool_warned in
11067 yes:)
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11070 ac_tool_warned=yes ;;
11071 esac
11072     CC=$ac_ct_CC
11073   fi
11074 else
11075   CC="$ac_cv_prog_CC"
11076 fi
11077
11078 if test -z "$CC"; then
11079           if test -n "$ac_tool_prefix"; then
11080     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11081 set dummy ${ac_tool_prefix}cc; ac_word=$2
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083 $as_echo_n "checking for $ac_word... " >&6; }
11084 if test "${ac_cv_prog_CC+set}" = set; then :
11085   $as_echo_n "(cached) " >&6
11086 else
11087   if test -n "$CC"; then
11088   ac_cv_prog_CC="$CC" # Let the user override the test.
11089 else
11090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11092 do
11093   IFS=$as_save_IFS
11094   test -z "$as_dir" && as_dir=.
11095     for ac_exec_ext in '' $ac_executable_extensions; do
11096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11097     ac_cv_prog_CC="${ac_tool_prefix}cc"
11098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099     break 2
11100   fi
11101 done
11102   done
11103 IFS=$as_save_IFS
11104
11105 fi
11106 fi
11107 CC=$ac_cv_prog_CC
11108 if test -n "$CC"; then
11109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11110 $as_echo "$CC" >&6; }
11111 else
11112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 $as_echo "no" >&6; }
11114 fi
11115
11116
11117   fi
11118 fi
11119 if test -z "$CC"; then
11120   # Extract the first word of "cc", so it can be a program name with args.
11121 set dummy cc; ac_word=$2
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11123 $as_echo_n "checking for $ac_word... " >&6; }
11124 if test "${ac_cv_prog_CC+set}" = set; then :
11125   $as_echo_n "(cached) " >&6
11126 else
11127   if test -n "$CC"; then
11128   ac_cv_prog_CC="$CC" # Let the user override the test.
11129 else
11130   ac_prog_rejected=no
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11133 do
11134   IFS=$as_save_IFS
11135   test -z "$as_dir" && as_dir=.
11136     for ac_exec_ext in '' $ac_executable_extensions; do
11137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11139        ac_prog_rejected=yes
11140        continue
11141      fi
11142     ac_cv_prog_CC="cc"
11143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11144     break 2
11145   fi
11146 done
11147   done
11148 IFS=$as_save_IFS
11149
11150 if test $ac_prog_rejected = yes; then
11151   # We found a bogon in the path, so make sure we never use it.
11152   set dummy $ac_cv_prog_CC
11153   shift
11154   if test $# != 0; then
11155     # We chose a different compiler from the bogus one.
11156     # However, it has the same basename, so the bogon will be chosen
11157     # first if we set CC to just the basename; use the full file name.
11158     shift
11159     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11160   fi
11161 fi
11162 fi
11163 fi
11164 CC=$ac_cv_prog_CC
11165 if test -n "$CC"; then
11166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11167 $as_echo "$CC" >&6; }
11168 else
11169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 $as_echo "no" >&6; }
11171 fi
11172
11173
11174 fi
11175 if test -z "$CC"; then
11176   if test -n "$ac_tool_prefix"; then
11177   for ac_prog in cl.exe
11178   do
11179     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182 $as_echo_n "checking for $ac_word... " >&6; }
11183 if test "${ac_cv_prog_CC+set}" = set; then :
11184   $as_echo_n "(cached) " >&6
11185 else
11186   if test -n "$CC"; then
11187   ac_cv_prog_CC="$CC" # Let the user override the test.
11188 else
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11191 do
11192   IFS=$as_save_IFS
11193   test -z "$as_dir" && as_dir=.
11194     for ac_exec_ext in '' $ac_executable_extensions; do
11195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11196     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11198     break 2
11199   fi
11200 done
11201   done
11202 IFS=$as_save_IFS
11203
11204 fi
11205 fi
11206 CC=$ac_cv_prog_CC
11207 if test -n "$CC"; then
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11209 $as_echo "$CC" >&6; }
11210 else
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11213 fi
11214
11215
11216     test -n "$CC" && break
11217   done
11218 fi
11219 if test -z "$CC"; then
11220   ac_ct_CC=$CC
11221   for ac_prog in cl.exe
11222 do
11223   # Extract the first word of "$ac_prog", so it can be a program name with args.
11224 set dummy $ac_prog; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11228   $as_echo_n "(cached) " >&6
11229 else
11230   if test -n "$ac_ct_CC"; then
11231   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11232 else
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11235 do
11236   IFS=$as_save_IFS
11237   test -z "$as_dir" && as_dir=.
11238     for ac_exec_ext in '' $ac_executable_extensions; do
11239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11240     ac_cv_prog_ac_ct_CC="$ac_prog"
11241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242     break 2
11243   fi
11244 done
11245   done
11246 IFS=$as_save_IFS
11247
11248 fi
11249 fi
11250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11251 if test -n "$ac_ct_CC"; then
11252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11253 $as_echo "$ac_ct_CC" >&6; }
11254 else
11255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11257 fi
11258
11259
11260   test -n "$ac_ct_CC" && break
11261 done
11262
11263   if test "x$ac_ct_CC" = x; then
11264     CC=""
11265   else
11266     case $cross_compiling:$ac_tool_warned in
11267 yes:)
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11270 ac_tool_warned=yes ;;
11271 esac
11272     CC=$ac_ct_CC
11273   fi
11274 fi
11275
11276 fi
11277
11278
11279 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11281 as_fn_error "no acceptable C compiler found in \$PATH
11282 See \`config.log' for more details." "$LINENO" 5; }
11283
11284 # Provide some information about the compiler.
11285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11286 set X $ac_compile
11287 ac_compiler=$2
11288 for ac_option in --version -v -V -qversion; do
11289   { { ac_try="$ac_compiler $ac_option >&5"
11290 case "(($ac_try" in
11291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292   *) ac_try_echo=$ac_try;;
11293 esac
11294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11295 $as_echo "$ac_try_echo"; } >&5
11296   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11297   ac_status=$?
11298   if test -s conftest.err; then
11299     sed '10a\
11300 ... rest of stderr output deleted ...
11301          10q' conftest.err >conftest.er1
11302     cat conftest.er1 >&5
11303   fi
11304   rm -f conftest.er1 conftest.err
11305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11306   test $ac_status = 0; }
11307 done
11308
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11311 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11312   $as_echo_n "(cached) " >&6
11313 else
11314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h.  */
11316
11317 int
11318 main ()
11319 {
11320 #ifndef __GNUC__
11321        choke me
11322 #endif
11323
11324   ;
11325   return 0;
11326 }
11327 _ACEOF
11328 if ac_fn_c_try_compile "$LINENO"; then :
11329   ac_compiler_gnu=yes
11330 else
11331   ac_compiler_gnu=no
11332 fi
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11335
11336 fi
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11339 if test $ac_compiler_gnu = yes; then
11340   GCC=yes
11341 else
11342   GCC=
11343 fi
11344 ac_test_CFLAGS=${CFLAGS+set}
11345 ac_save_CFLAGS=$CFLAGS
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11348 if test "${ac_cv_prog_cc_g+set}" = set; then :
11349   $as_echo_n "(cached) " >&6
11350 else
11351   ac_save_c_werror_flag=$ac_c_werror_flag
11352    ac_c_werror_flag=yes
11353    ac_cv_prog_cc_g=no
11354    CFLAGS="-g"
11355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h.  */
11357
11358 int
11359 main ()
11360 {
11361
11362   ;
11363   return 0;
11364 }
11365 _ACEOF
11366 if ac_fn_c_try_compile "$LINENO"; then :
11367   ac_cv_prog_cc_g=yes
11368 else
11369   CFLAGS=""
11370       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h.  */
11372
11373 int
11374 main ()
11375 {
11376
11377   ;
11378   return 0;
11379 }
11380 _ACEOF
11381 if ac_fn_c_try_compile "$LINENO"; then :
11382
11383 else
11384   ac_c_werror_flag=$ac_save_c_werror_flag
11385          CFLAGS="-g"
11386          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h.  */
11388
11389 int
11390 main ()
11391 {
11392
11393   ;
11394   return 0;
11395 }
11396 _ACEOF
11397 if ac_fn_c_try_compile "$LINENO"; then :
11398   ac_cv_prog_cc_g=yes
11399 fi
11400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403 fi
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405    ac_c_werror_flag=$ac_save_c_werror_flag
11406 fi
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11408 $as_echo "$ac_cv_prog_cc_g" >&6; }
11409 if test "$ac_test_CFLAGS" = set; then
11410   CFLAGS=$ac_save_CFLAGS
11411 elif test $ac_cv_prog_cc_g = yes; then
11412   if test "$GCC" = yes; then
11413     CFLAGS="-g -O2"
11414   else
11415     CFLAGS="-g"
11416   fi
11417 else
11418   if test "$GCC" = yes; then
11419     CFLAGS="-O2"
11420   else
11421     CFLAGS=
11422   fi
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11426 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11427   $as_echo_n "(cached) " >&6
11428 else
11429   ac_cv_prog_cc_c89=no
11430 ac_save_CC=$CC
11431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h.  */
11433 #include <stdarg.h>
11434 #include <stdio.h>
11435 #include <sys/types.h>
11436 #include <sys/stat.h>
11437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11438 struct buf { int x; };
11439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11440 static char *e (p, i)
11441      char **p;
11442      int i;
11443 {
11444   return p[i];
11445 }
11446 static char *f (char * (*g) (char **, int), char **p, ...)
11447 {
11448   char *s;
11449   va_list v;
11450   va_start (v,p);
11451   s = g (p, va_arg (v,int));
11452   va_end (v);
11453   return s;
11454 }
11455
11456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11457    function prototypes and stuff, but not '\xHH' hex character constants.
11458    These don't provoke an error unfortunately, instead are silently treated
11459    as 'x'.  The following induces an error, until -std is added to get
11460    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11461    array size at least.  It's necessary to write '\x00'==0 to get something
11462    that's true only with -std.  */
11463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11464
11465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11466    inside strings and character constants.  */
11467 #define FOO(x) 'x'
11468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11469
11470 int test (int i, double x);
11471 struct s1 {int (*f) (int a);};
11472 struct s2 {int (*f) (double a);};
11473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11474 int argc;
11475 char **argv;
11476 int
11477 main ()
11478 {
11479 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11485         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11486 do
11487   CC="$ac_save_CC $ac_arg"
11488   if ac_fn_c_try_compile "$LINENO"; then :
11489   ac_cv_prog_cc_c89=$ac_arg
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext
11492   test "x$ac_cv_prog_cc_c89" != "xno" && break
11493 done
11494 rm -f conftest.$ac_ext
11495 CC=$ac_save_CC
11496
11497 fi
11498 # AC_CACHE_VAL
11499 case "x$ac_cv_prog_cc_c89" in
11500   x)
11501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11502 $as_echo "none needed" >&6; } ;;
11503   xno)
11504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11505 $as_echo "unsupported" >&6; } ;;
11506   *)
11507     CC="$CC $ac_cv_prog_cc_c89"
11508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11510 esac
11511 if test "x$ac_cv_prog_cc_c89" != xno; then :
11512
11513 fi
11514
11515 ac_ext=c
11516 ac_cpp='$CPP $CPPFLAGS'
11517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11520
11521 depcc="$CC"   am_compiler_list=
11522
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11524 $as_echo_n "checking dependency style of $depcc... " >&6; }
11525 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11529   # We make a subdir and do the tests there.  Otherwise we can end up
11530   # making bogus files that we don't know about and never remove.  For
11531   # instance it was reported that on HP-UX the gcc test will end up
11532   # making a dummy file named `D' -- because `-MD' means `put the output
11533   # in D'.
11534   mkdir conftest.dir
11535   # Copy depcomp to subdir because otherwise we won't find it if we're
11536   # using a relative directory.
11537   cp "$am_depcomp" conftest.dir
11538   cd conftest.dir
11539   # We will build objects and dependencies in a subdirectory because
11540   # it helps to detect inapplicable dependency modes.  For instance
11541   # both Tru64's cc and ICC support -MD to output dependencies as a
11542   # side effect of compilation, but ICC will put the dependencies in
11543   # the current directory while Tru64 will put them in the object
11544   # directory.
11545   mkdir sub
11546
11547   am_cv_CC_dependencies_compiler_type=none
11548   if test "$am_compiler_list" = ""; then
11549      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11550   fi
11551   am__universal=false
11552   case " $depcc " in #(
11553      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11554      esac
11555
11556   for depmode in $am_compiler_list; do
11557     # Setup a source with many dependencies, because some compilers
11558     # like to wrap large dependency lists on column 80 (with \), and
11559     # we should not choose a depcomp mode which is confused by this.
11560     #
11561     # We need to recreate these files for each test, as the compiler may
11562     # overwrite some of them when testing with obscure command lines.
11563     # This happens at least with the AIX C compiler.
11564     : > sub/conftest.c
11565     for i in 1 2 3 4 5 6; do
11566       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11567       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11568       # Solaris 8's {/usr,}/bin/sh.
11569       touch sub/conftst$i.h
11570     done
11571     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11572
11573     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11574     # mode.  It turns out that the SunPro C++ compiler does not properly
11575     # handle `-M -o', and we need to detect this.  Also, some Intel
11576     # versions had trouble with output in subdirs
11577     am__obj=sub/conftest.${OBJEXT-o}
11578     am__minus_obj="-o $am__obj"
11579     case $depmode in
11580     gcc)
11581       # This depmode causes a compiler race in universal mode.
11582       test "$am__universal" = false || continue
11583       ;;
11584     nosideeffect)
11585       # after this tag, mechanisms are not by side-effect, so they'll
11586       # only be used when explicitly requested
11587       if test "x$enable_dependency_tracking" = xyes; then
11588         continue
11589       else
11590         break
11591       fi
11592       ;;
11593     msvisualcpp | msvcmsys)
11594       # This compiler won't grok `-c -o', but also, the minuso test has
11595       # not run yet.  These depmodes are late enough in the game, and
11596       # so weak that their functioning should not be impacted.
11597       am__obj=conftest.${OBJEXT-o}
11598       am__minus_obj=
11599       ;;
11600     none) break ;;
11601     esac
11602     if depmode=$depmode \
11603        source=sub/conftest.c object=$am__obj \
11604        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11605        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11606          >/dev/null 2>conftest.err &&
11607        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11608        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11609        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11610        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11611       # icc doesn't choke on unknown options, it will just issue warnings
11612       # or remarks (even with -Werror).  So we grep stderr for any message
11613       # that says an option was ignored or not supported.
11614       # When given -MP, icc 7.0 and 7.1 complain thusly:
11615       #   icc: Command line warning: ignoring option '-M'; no argument required
11616       # The diagnosis changed in icc 8.0:
11617       #   icc: Command line remark: option '-MP' not supported
11618       if (grep 'ignoring option' conftest.err ||
11619           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11620         am_cv_CC_dependencies_compiler_type=$depmode
11621         break
11622       fi
11623     fi
11624   done
11625
11626   cd ..
11627   rm -rf conftest.dir
11628 else
11629   am_cv_CC_dependencies_compiler_type=none
11630 fi
11631
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11634 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11635 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11636
11637  if
11638   test "x$enable_dependency_tracking" != xno \
11639   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11640   am__fastdepCC_TRUE=
11641   am__fastdepCC_FALSE='#'
11642 else
11643   am__fastdepCC_TRUE='#'
11644   am__fastdepCC_FALSE=
11645 fi
11646
11647
11648
11649 # pkg-config
11650
11651
11652
11653
11654
11655
11656
11657 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11658         if test -n "$ac_tool_prefix"; then
11659   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11660 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11664   $as_echo_n "(cached) " >&6
11665 else
11666   case $PKG_CONFIG in
11667   [\\/]* | ?:[\\/]*)
11668   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11669   ;;
11670   *)
11671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674   IFS=$as_save_IFS
11675   test -z "$as_dir" && as_dir=.
11676     for ac_exec_ext in '' $ac_executable_extensions; do
11677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680     break 2
11681   fi
11682 done
11683   done
11684 IFS=$as_save_IFS
11685
11686   ;;
11687 esac
11688 fi
11689 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11690 if test -n "$PKG_CONFIG"; then
11691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11692 $as_echo "$PKG_CONFIG" >&6; }
11693 else
11694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11696 fi
11697
11698
11699 fi
11700 if test -z "$ac_cv_path_PKG_CONFIG"; then
11701   ac_pt_PKG_CONFIG=$PKG_CONFIG
11702   # Extract the first word of "pkg-config", so it can be a program name with args.
11703 set dummy pkg-config; ac_word=$2
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705 $as_echo_n "checking for $ac_word... " >&6; }
11706 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11707   $as_echo_n "(cached) " >&6
11708 else
11709   case $ac_pt_PKG_CONFIG in
11710   [\\/]* | ?:[\\/]*)
11711   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11712   ;;
11713   *)
11714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $PATH
11716 do
11717   IFS=$as_save_IFS
11718   test -z "$as_dir" && as_dir=.
11719     for ac_exec_ext in '' $ac_executable_extensions; do
11720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723     break 2
11724   fi
11725 done
11726   done
11727 IFS=$as_save_IFS
11728
11729   ;;
11730 esac
11731 fi
11732 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11733 if test -n "$ac_pt_PKG_CONFIG"; then
11734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11735 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11736 else
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11739 fi
11740
11741   if test "x$ac_pt_PKG_CONFIG" = x; then
11742     PKG_CONFIG=""
11743   else
11744     case $cross_compiling:$ac_tool_warned in
11745 yes:)
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11748 ac_tool_warned=yes ;;
11749 esac
11750     PKG_CONFIG=$ac_pt_PKG_CONFIG
11751   fi
11752 else
11753   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11754 fi
11755
11756 fi
11757 if test -n "$PKG_CONFIG"; then
11758         _pkg_min_version=0.9.0
11759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11760 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11761         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11762                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11763 $as_echo "yes" >&6; }
11764         else
11765                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11767                 PKG_CONFIG=""
11768         fi
11769 fi
11770
11771 # Check whether pkg-config supports Requires.private
11772 if $PKG_CONFIG --atleast-pkgconfig-version 0.22 ; then
11773    pkgconfig_requires_private="Requires.private"
11774 else
11775    pkgconfig_requires_private="Requires"
11776 fi
11777
11778
11779
11780 # doxygen
11781
11782
11783
11784 # Check whether --enable-doc was given.
11785 if test "${enable_doc+set}" = set; then :
11786   enableval=$enable_doc;
11787     if test "x${enableval}" = "xyes" ; then
11788        opj_enable_doc="yes"
11789     else
11790        opj_enable_doc="no"
11791     fi
11792
11793 else
11794   opj_enable_doc="yes"
11795 fi
11796
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
11799 $as_echo_n "checking whether to build documentation... " >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${opj_enable_doc}" >&5
11801 $as_echo "${opj_enable_doc}" >&6; }
11802
11803 if test "x${opj_enable_doc}" = "xyes" ; then
11804
11805
11806    opj_doxygen="doxygen"
11807
11808
11809 # Check whether --with-doxygen was given.
11810 if test "${with_doxygen+set}" = set; then :
11811   withval=$with_doxygen;
11812       opj_doxygen=${withval}
11813        # Extract the first word of "${opj_doxygen}", so it can be a program name with args.
11814 set dummy ${opj_doxygen}; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if test "${ac_cv_prog_opj_have_doxygen+set}" = set; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820   if test -n "$opj_have_doxygen"; then
11821   ac_cv_prog_opj_have_doxygen="$opj_have_doxygen" # Let the user override the test.
11822 else
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11825 do
11826   IFS=$as_save_IFS
11827   test -z "$as_dir" && as_dir=.
11828     for ac_exec_ext in '' $ac_executable_extensions; do
11829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11830     ac_cv_prog_opj_have_doxygen="yes"
11831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832     break 2
11833   fi
11834 done
11835   done
11836 IFS=$as_save_IFS
11837
11838   test -z "$ac_cv_prog_opj_have_doxygen" && ac_cv_prog_opj_have_doxygen="no"
11839 fi
11840 fi
11841 opj_have_doxygen=$ac_cv_prog_opj_have_doxygen
11842 if test -n "$opj_have_doxygen"; then
11843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opj_have_doxygen" >&5
11844 $as_echo "$opj_have_doxygen" >&6; }
11845 else
11846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11848 fi
11849
11850
11851        if test "x${opj_have_doxygen}" = "xno" ; then
11852           echo "WARNING:"
11853           echo "The doxygen program you specified:"
11854           echo "${opj_doxygen}"
11855           echo "was not found.  Please check the path and make sure "
11856           echo "the program exists and is executable."
11857           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5
11858 $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;}
11859        fi
11860
11861 else
11862   # Extract the first word of "${opj_doxygen}", so it can be a program name with args.
11863 set dummy ${opj_doxygen}; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if test "${ac_cv_prog_opj_have_doxygen+set}" = set; then :
11867   $as_echo_n "(cached) " >&6
11868 else
11869   if test -n "$opj_have_doxygen"; then
11870   ac_cv_prog_opj_have_doxygen="$opj_have_doxygen" # Let the user override the test.
11871 else
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11874 do
11875   IFS=$as_save_IFS
11876   test -z "$as_dir" && as_dir=.
11877     for ac_exec_ext in '' $ac_executable_extensions; do
11878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879     ac_cv_prog_opj_have_doxygen="yes"
11880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881     break 2
11882   fi
11883 done
11884   done
11885 IFS=$as_save_IFS
11886
11887   test -z "$ac_cv_prog_opj_have_doxygen" && ac_cv_prog_opj_have_doxygen="no"
11888 fi
11889 fi
11890 opj_have_doxygen=$ac_cv_prog_opj_have_doxygen
11891 if test -n "$opj_have_doxygen"; then
11892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opj_have_doxygen" >&5
11893 $as_echo "$opj_have_doxygen" >&6; }
11894 else
11895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11897 fi
11898
11899
11900        if test "x${opj_have_doxygen}" = "xno" ; then
11901           echo "WARNING:"
11902           echo "The doxygen program was not found in your execute path."
11903           echo "You may have doxygen installed somewhere not covered by your path."
11904           echo ""
11905           echo "If this is the case make sure you have the packages installed, AND"
11906           echo "that the doxygen program is in your execute path (see your"
11907           echo "shell manual page on setting the \$PATH environment variable), OR"
11908           echo "alternatively, specify the program to use with --with-doxygen."
11909           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5
11910 $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;}
11911        fi
11912
11913 fi
11914
11915 else
11916    opj_have_doxygen="no"
11917 fi
11918
11919
11920
11921 if ! test "x${opj_have_doxygen}" = "xyes" ; then
11922    opj_enable_doc="no"
11923 fi
11924
11925  if test "x${opj_have_doxygen}" = "xyes"; then
11926   OPJ_BUILD_DOC_TRUE=
11927   OPJ_BUILD_DOC_FALSE='#'
11928 else
11929   OPJ_BUILD_DOC_TRUE='#'
11930   OPJ_BUILD_DOC_FALSE=
11931 fi
11932
11933
11934 if test "x${opj_have_doxygen}" = "xyes"; then :
11935
11936 fi
11937
11938
11939 #  ln -s
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11942 $as_echo_n "checking whether ln -s works... " >&6; }
11943 LN_S=$as_ln_s
11944 if test "$LN_S" = "ln -s"; then
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11946 $as_echo "yes" >&6; }
11947 else
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11949 $as_echo "no, using $LN_S" >&6; }
11950 fi
11951
11952
11953
11954 ### Checks for libraries
11955
11956 # libpng
11957
11958 have_libpng="no"
11959
11960 # Check whether --enable-png was given.
11961 if test "${enable_png+set}" = set; then :
11962   enableval=$enable_png;
11963     if test "x${enableval}" = "xyes" ; then
11964        want_png="yes"
11965     else
11966        want_png="no"
11967     fi
11968
11969 else
11970   want_png="yes"
11971 fi
11972
11973
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
11975 $as_echo_n "checking whether to build with PNG support... " >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_png}" >&5
11977 $as_echo "${want_png}" >&6; }
11978
11979 if test "x${want_png}" = "xyes" ; then
11980
11981
11982 pkg_failed=no
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
11984 $as_echo_n "checking for PNG... " >&6; }
11985
11986 if test -n "$PNG_CFLAGS"; then
11987     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
11988  elif test -n "$PKG_CONFIG"; then
11989     if test -n "$PKG_CONFIG" && \
11990     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15 zlib\""; } >&5
11991   ($PKG_CONFIG --exists --print-errors "libpng15 zlib") 2>&5
11992   ac_status=$?
11993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11994   test $ac_status = 0; }; then
11995   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng15 zlib" 2>/dev/null`
11996 else
11997   pkg_failed=yes
11998 fi
11999  else
12000     pkg_failed=untried
12001 fi
12002 if test -n "$PNG_LIBS"; then
12003     pkg_cv_PNG_LIBS="$PNG_LIBS"
12004  elif test -n "$PKG_CONFIG"; then
12005     if test -n "$PKG_CONFIG" && \
12006     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15 zlib\""; } >&5
12007   ($PKG_CONFIG --exists --print-errors "libpng15 zlib") 2>&5
12008   ac_status=$?
12009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12010   test $ac_status = 0; }; then
12011   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng15 zlib" 2>/dev/null`
12012 else
12013   pkg_failed=yes
12014 fi
12015  else
12016     pkg_failed=untried
12017 fi
12018
12019
12020
12021 if test $pkg_failed = yes; then
12022         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12024
12025 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12026         _pkg_short_errors_supported=yes
12027 else
12028         _pkg_short_errors_supported=no
12029 fi
12030         if test $_pkg_short_errors_supported = yes; then
12031                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng15 zlib" 2>&1`
12032         else
12033                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng15 zlib" 2>&1`
12034         fi
12035         # Put the nasty error message in config.log where it belongs
12036         echo "$PNG_PKG_ERRORS" >&5
12037
12038
12039
12040 pkg_failed=no
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12042 $as_echo_n "checking for PNG... " >&6; }
12043
12044 if test -n "$PNG_CFLAGS"; then
12045     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12046  elif test -n "$PKG_CONFIG"; then
12047     if test -n "$PKG_CONFIG" && \
12048     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
12049   ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
12050   ac_status=$?
12051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12052   test $ac_status = 0; }; then
12053   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14 zlib" 2>/dev/null`
12054 else
12055   pkg_failed=yes
12056 fi
12057  else
12058     pkg_failed=untried
12059 fi
12060 if test -n "$PNG_LIBS"; then
12061     pkg_cv_PNG_LIBS="$PNG_LIBS"
12062  elif test -n "$PKG_CONFIG"; then
12063     if test -n "$PKG_CONFIG" && \
12064     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
12065   ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
12066   ac_status=$?
12067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12068   test $ac_status = 0; }; then
12069   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14 zlib" 2>/dev/null`
12070 else
12071   pkg_failed=yes
12072 fi
12073  else
12074     pkg_failed=untried
12075 fi
12076
12077
12078
12079 if test $pkg_failed = yes; then
12080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12082
12083 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12084         _pkg_short_errors_supported=yes
12085 else
12086         _pkg_short_errors_supported=no
12087 fi
12088         if test $_pkg_short_errors_supported = yes; then
12089                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14 zlib" 2>&1`
12090         else
12091                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14 zlib" 2>&1`
12092         fi
12093         # Put the nasty error message in config.log where it belongs
12094         echo "$PNG_PKG_ERRORS" >&5
12095
12096
12097
12098 pkg_failed=no
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12100 $as_echo_n "checking for PNG... " >&6; }
12101
12102 if test -n "$PNG_CFLAGS"; then
12103     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12104  elif test -n "$PKG_CONFIG"; then
12105     if test -n "$PKG_CONFIG" && \
12106     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12107   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12108   ac_status=$?
12109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12110   test $ac_status = 0; }; then
12111   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
12112 else
12113   pkg_failed=yes
12114 fi
12115  else
12116     pkg_failed=untried
12117 fi
12118 if test -n "$PNG_LIBS"; then
12119     pkg_cv_PNG_LIBS="$PNG_LIBS"
12120  elif test -n "$PKG_CONFIG"; then
12121     if test -n "$PKG_CONFIG" && \
12122     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12123   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12124   ac_status=$?
12125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12126   test $ac_status = 0; }; then
12127   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
12128 else
12129   pkg_failed=yes
12130 fi
12131  else
12132     pkg_failed=untried
12133 fi
12134
12135
12136
12137 if test $pkg_failed = yes; then
12138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12140
12141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12142         _pkg_short_errors_supported=yes
12143 else
12144         _pkg_short_errors_supported=no
12145 fi
12146         if test $_pkg_short_errors_supported = yes; then
12147                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
12148         else
12149                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
12150         fi
12151         # Put the nasty error message in config.log where it belongs
12152         echo "$PNG_PKG_ERRORS" >&5
12153
12154
12155
12156 pkg_failed=no
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12158 $as_echo_n "checking for PNG... " >&6; }
12159
12160 if test -n "$PNG_CFLAGS"; then
12161     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12162  elif test -n "$PKG_CONFIG"; then
12163     if test -n "$PKG_CONFIG" && \
12164     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12165   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12166   ac_status=$?
12167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12168   test $ac_status = 0; }; then
12169   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12170 else
12171   pkg_failed=yes
12172 fi
12173  else
12174     pkg_failed=untried
12175 fi
12176 if test -n "$PNG_LIBS"; then
12177     pkg_cv_PNG_LIBS="$PNG_LIBS"
12178  elif test -n "$PKG_CONFIG"; then
12179     if test -n "$PKG_CONFIG" && \
12180     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12181   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12182   ac_status=$?
12183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184   test $ac_status = 0; }; then
12185   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12186 else
12187   pkg_failed=yes
12188 fi
12189  else
12190     pkg_failed=untried
12191 fi
12192
12193
12194
12195 if test $pkg_failed = yes; then
12196         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12198
12199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12200         _pkg_short_errors_supported=yes
12201 else
12202         _pkg_short_errors_supported=no
12203 fi
12204         if test $_pkg_short_errors_supported = yes; then
12205                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12206         else
12207                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12208         fi
12209         # Put the nasty error message in config.log where it belongs
12210         echo "$PNG_PKG_ERRORS" >&5
12211
12212         have_libpng="no"
12213 elif test $pkg_failed = untried; then
12214         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12216         have_libpng="no"
12217 else
12218         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12219         PNG_LIBS=$pkg_cv_PNG_LIBS
12220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221 $as_echo "yes" >&6; }
12222         have_libpng="yes"
12223 fi
12224
12225 elif test $pkg_failed = untried; then
12226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228
12229
12230 pkg_failed=no
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12232 $as_echo_n "checking for PNG... " >&6; }
12233
12234 if test -n "$PNG_CFLAGS"; then
12235     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12236  elif test -n "$PKG_CONFIG"; then
12237     if test -n "$PKG_CONFIG" && \
12238     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12239   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12240   ac_status=$?
12241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12242   test $ac_status = 0; }; then
12243   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12244 else
12245   pkg_failed=yes
12246 fi
12247  else
12248     pkg_failed=untried
12249 fi
12250 if test -n "$PNG_LIBS"; then
12251     pkg_cv_PNG_LIBS="$PNG_LIBS"
12252  elif test -n "$PKG_CONFIG"; then
12253     if test -n "$PKG_CONFIG" && \
12254     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12255   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12256   ac_status=$?
12257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258   test $ac_status = 0; }; then
12259   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12260 else
12261   pkg_failed=yes
12262 fi
12263  else
12264     pkg_failed=untried
12265 fi
12266
12267
12268
12269 if test $pkg_failed = yes; then
12270         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12272
12273 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12274         _pkg_short_errors_supported=yes
12275 else
12276         _pkg_short_errors_supported=no
12277 fi
12278         if test $_pkg_short_errors_supported = yes; then
12279                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12280         else
12281                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12282         fi
12283         # Put the nasty error message in config.log where it belongs
12284         echo "$PNG_PKG_ERRORS" >&5
12285
12286         have_libpng="no"
12287 elif test $pkg_failed = untried; then
12288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12290         have_libpng="no"
12291 else
12292         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12293         PNG_LIBS=$pkg_cv_PNG_LIBS
12294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12295 $as_echo "yes" >&6; }
12296         have_libpng="yes"
12297 fi
12298
12299 else
12300         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12301         PNG_LIBS=$pkg_cv_PNG_LIBS
12302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303 $as_echo "yes" >&6; }
12304         have_libpng="yes"
12305 fi
12306
12307 elif test $pkg_failed = untried; then
12308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12310
12311
12312 pkg_failed=no
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12314 $as_echo_n "checking for PNG... " >&6; }
12315
12316 if test -n "$PNG_CFLAGS"; then
12317     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12318  elif test -n "$PKG_CONFIG"; then
12319     if test -n "$PKG_CONFIG" && \
12320     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12321   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12322   ac_status=$?
12323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12324   test $ac_status = 0; }; then
12325   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
12326 else
12327   pkg_failed=yes
12328 fi
12329  else
12330     pkg_failed=untried
12331 fi
12332 if test -n "$PNG_LIBS"; then
12333     pkg_cv_PNG_LIBS="$PNG_LIBS"
12334  elif test -n "$PKG_CONFIG"; then
12335     if test -n "$PKG_CONFIG" && \
12336     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12337   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12338   ac_status=$?
12339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340   test $ac_status = 0; }; then
12341   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
12342 else
12343   pkg_failed=yes
12344 fi
12345  else
12346     pkg_failed=untried
12347 fi
12348
12349
12350
12351 if test $pkg_failed = yes; then
12352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12354
12355 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12356         _pkg_short_errors_supported=yes
12357 else
12358         _pkg_short_errors_supported=no
12359 fi
12360         if test $_pkg_short_errors_supported = yes; then
12361                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
12362         else
12363                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
12364         fi
12365         # Put the nasty error message in config.log where it belongs
12366         echo "$PNG_PKG_ERRORS" >&5
12367
12368
12369
12370 pkg_failed=no
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12372 $as_echo_n "checking for PNG... " >&6; }
12373
12374 if test -n "$PNG_CFLAGS"; then
12375     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12376  elif test -n "$PKG_CONFIG"; then
12377     if test -n "$PKG_CONFIG" && \
12378     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12379   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12380   ac_status=$?
12381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12382   test $ac_status = 0; }; then
12383   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12384 else
12385   pkg_failed=yes
12386 fi
12387  else
12388     pkg_failed=untried
12389 fi
12390 if test -n "$PNG_LIBS"; then
12391     pkg_cv_PNG_LIBS="$PNG_LIBS"
12392  elif test -n "$PKG_CONFIG"; then
12393     if test -n "$PKG_CONFIG" && \
12394     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12395   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12396   ac_status=$?
12397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12398   test $ac_status = 0; }; then
12399   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12400 else
12401   pkg_failed=yes
12402 fi
12403  else
12404     pkg_failed=untried
12405 fi
12406
12407
12408
12409 if test $pkg_failed = yes; then
12410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12412
12413 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12414         _pkg_short_errors_supported=yes
12415 else
12416         _pkg_short_errors_supported=no
12417 fi
12418         if test $_pkg_short_errors_supported = yes; then
12419                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12420         else
12421                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12422         fi
12423         # Put the nasty error message in config.log where it belongs
12424         echo "$PNG_PKG_ERRORS" >&5
12425
12426         have_libpng="no"
12427 elif test $pkg_failed = untried; then
12428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12430         have_libpng="no"
12431 else
12432         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12433         PNG_LIBS=$pkg_cv_PNG_LIBS
12434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12435 $as_echo "yes" >&6; }
12436         have_libpng="yes"
12437 fi
12438
12439 elif test $pkg_failed = untried; then
12440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441 $as_echo "no" >&6; }
12442
12443
12444 pkg_failed=no
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12446 $as_echo_n "checking for PNG... " >&6; }
12447
12448 if test -n "$PNG_CFLAGS"; then
12449     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12450  elif test -n "$PKG_CONFIG"; then
12451     if test -n "$PKG_CONFIG" && \
12452     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12453   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12454   ac_status=$?
12455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456   test $ac_status = 0; }; then
12457   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12458 else
12459   pkg_failed=yes
12460 fi
12461  else
12462     pkg_failed=untried
12463 fi
12464 if test -n "$PNG_LIBS"; then
12465     pkg_cv_PNG_LIBS="$PNG_LIBS"
12466  elif test -n "$PKG_CONFIG"; then
12467     if test -n "$PKG_CONFIG" && \
12468     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12469   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12470   ac_status=$?
12471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12472   test $ac_status = 0; }; then
12473   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12474 else
12475   pkg_failed=yes
12476 fi
12477  else
12478     pkg_failed=untried
12479 fi
12480
12481
12482
12483 if test $pkg_failed = yes; then
12484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12486
12487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12488         _pkg_short_errors_supported=yes
12489 else
12490         _pkg_short_errors_supported=no
12491 fi
12492         if test $_pkg_short_errors_supported = yes; then
12493                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12494         else
12495                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12496         fi
12497         # Put the nasty error message in config.log where it belongs
12498         echo "$PNG_PKG_ERRORS" >&5
12499
12500         have_libpng="no"
12501 elif test $pkg_failed = untried; then
12502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12504         have_libpng="no"
12505 else
12506         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12507         PNG_LIBS=$pkg_cv_PNG_LIBS
12508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12509 $as_echo "yes" >&6; }
12510         have_libpng="yes"
12511 fi
12512
12513 else
12514         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12515         PNG_LIBS=$pkg_cv_PNG_LIBS
12516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12517 $as_echo "yes" >&6; }
12518         have_libpng="yes"
12519 fi
12520
12521 else
12522         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12523         PNG_LIBS=$pkg_cv_PNG_LIBS
12524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12525 $as_echo "yes" >&6; }
12526         have_libpng="yes"
12527 fi
12528
12529 elif test $pkg_failed = untried; then
12530         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12532
12533
12534 pkg_failed=no
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12536 $as_echo_n "checking for PNG... " >&6; }
12537
12538 if test -n "$PNG_CFLAGS"; then
12539     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12540  elif test -n "$PKG_CONFIG"; then
12541     if test -n "$PKG_CONFIG" && \
12542     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
12543   ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
12544   ac_status=$?
12545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546   test $ac_status = 0; }; then
12547   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14 zlib" 2>/dev/null`
12548 else
12549   pkg_failed=yes
12550 fi
12551  else
12552     pkg_failed=untried
12553 fi
12554 if test -n "$PNG_LIBS"; then
12555     pkg_cv_PNG_LIBS="$PNG_LIBS"
12556  elif test -n "$PKG_CONFIG"; then
12557     if test -n "$PKG_CONFIG" && \
12558     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
12559   ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
12560   ac_status=$?
12561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12562   test $ac_status = 0; }; then
12563   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14 zlib" 2>/dev/null`
12564 else
12565   pkg_failed=yes
12566 fi
12567  else
12568     pkg_failed=untried
12569 fi
12570
12571
12572
12573 if test $pkg_failed = yes; then
12574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12576
12577 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12578         _pkg_short_errors_supported=yes
12579 else
12580         _pkg_short_errors_supported=no
12581 fi
12582         if test $_pkg_short_errors_supported = yes; then
12583                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14 zlib" 2>&1`
12584         else
12585                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14 zlib" 2>&1`
12586         fi
12587         # Put the nasty error message in config.log where it belongs
12588         echo "$PNG_PKG_ERRORS" >&5
12589
12590
12591
12592 pkg_failed=no
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12594 $as_echo_n "checking for PNG... " >&6; }
12595
12596 if test -n "$PNG_CFLAGS"; then
12597     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12598  elif test -n "$PKG_CONFIG"; then
12599     if test -n "$PKG_CONFIG" && \
12600     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12601   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12602   ac_status=$?
12603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12604   test $ac_status = 0; }; then
12605   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
12606 else
12607   pkg_failed=yes
12608 fi
12609  else
12610     pkg_failed=untried
12611 fi
12612 if test -n "$PNG_LIBS"; then
12613     pkg_cv_PNG_LIBS="$PNG_LIBS"
12614  elif test -n "$PKG_CONFIG"; then
12615     if test -n "$PKG_CONFIG" && \
12616     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12617   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12618   ac_status=$?
12619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12620   test $ac_status = 0; }; then
12621   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
12622 else
12623   pkg_failed=yes
12624 fi
12625  else
12626     pkg_failed=untried
12627 fi
12628
12629
12630
12631 if test $pkg_failed = yes; then
12632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12634
12635 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12636         _pkg_short_errors_supported=yes
12637 else
12638         _pkg_short_errors_supported=no
12639 fi
12640         if test $_pkg_short_errors_supported = yes; then
12641                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
12642         else
12643                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
12644         fi
12645         # Put the nasty error message in config.log where it belongs
12646         echo "$PNG_PKG_ERRORS" >&5
12647
12648
12649
12650 pkg_failed=no
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12652 $as_echo_n "checking for PNG... " >&6; }
12653
12654 if test -n "$PNG_CFLAGS"; then
12655     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12656  elif test -n "$PKG_CONFIG"; then
12657     if test -n "$PKG_CONFIG" && \
12658     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12659   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12660   ac_status=$?
12661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12662   test $ac_status = 0; }; then
12663   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12664 else
12665   pkg_failed=yes
12666 fi
12667  else
12668     pkg_failed=untried
12669 fi
12670 if test -n "$PNG_LIBS"; then
12671     pkg_cv_PNG_LIBS="$PNG_LIBS"
12672  elif test -n "$PKG_CONFIG"; then
12673     if test -n "$PKG_CONFIG" && \
12674     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12675   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12676   ac_status=$?
12677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12678   test $ac_status = 0; }; then
12679   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12680 else
12681   pkg_failed=yes
12682 fi
12683  else
12684     pkg_failed=untried
12685 fi
12686
12687
12688
12689 if test $pkg_failed = yes; then
12690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12692
12693 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12694         _pkg_short_errors_supported=yes
12695 else
12696         _pkg_short_errors_supported=no
12697 fi
12698         if test $_pkg_short_errors_supported = yes; then
12699                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12700         else
12701                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12702         fi
12703         # Put the nasty error message in config.log where it belongs
12704         echo "$PNG_PKG_ERRORS" >&5
12705
12706         have_libpng="no"
12707 elif test $pkg_failed = untried; then
12708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12710         have_libpng="no"
12711 else
12712         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12713         PNG_LIBS=$pkg_cv_PNG_LIBS
12714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12715 $as_echo "yes" >&6; }
12716         have_libpng="yes"
12717 fi
12718
12719 elif test $pkg_failed = untried; then
12720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12722
12723
12724 pkg_failed=no
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12726 $as_echo_n "checking for PNG... " >&6; }
12727
12728 if test -n "$PNG_CFLAGS"; then
12729     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12730  elif test -n "$PKG_CONFIG"; then
12731     if test -n "$PKG_CONFIG" && \
12732     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12733   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12734   ac_status=$?
12735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12736   test $ac_status = 0; }; then
12737   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12738 else
12739   pkg_failed=yes
12740 fi
12741  else
12742     pkg_failed=untried
12743 fi
12744 if test -n "$PNG_LIBS"; then
12745     pkg_cv_PNG_LIBS="$PNG_LIBS"
12746  elif test -n "$PKG_CONFIG"; then
12747     if test -n "$PKG_CONFIG" && \
12748     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12749   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12750   ac_status=$?
12751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12752   test $ac_status = 0; }; then
12753   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12754 else
12755   pkg_failed=yes
12756 fi
12757  else
12758     pkg_failed=untried
12759 fi
12760
12761
12762
12763 if test $pkg_failed = yes; then
12764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12766
12767 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12768         _pkg_short_errors_supported=yes
12769 else
12770         _pkg_short_errors_supported=no
12771 fi
12772         if test $_pkg_short_errors_supported = yes; then
12773                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12774         else
12775                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12776         fi
12777         # Put the nasty error message in config.log where it belongs
12778         echo "$PNG_PKG_ERRORS" >&5
12779
12780         have_libpng="no"
12781 elif test $pkg_failed = untried; then
12782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12784         have_libpng="no"
12785 else
12786         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12787         PNG_LIBS=$pkg_cv_PNG_LIBS
12788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12789 $as_echo "yes" >&6; }
12790         have_libpng="yes"
12791 fi
12792
12793 else
12794         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12795         PNG_LIBS=$pkg_cv_PNG_LIBS
12796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12797 $as_echo "yes" >&6; }
12798         have_libpng="yes"
12799 fi
12800
12801 elif test $pkg_failed = untried; then
12802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12804
12805
12806 pkg_failed=no
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12808 $as_echo_n "checking for PNG... " >&6; }
12809
12810 if test -n "$PNG_CFLAGS"; then
12811     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12812  elif test -n "$PKG_CONFIG"; then
12813     if test -n "$PKG_CONFIG" && \
12814     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12815   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12816   ac_status=$?
12817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818   test $ac_status = 0; }; then
12819   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
12820 else
12821   pkg_failed=yes
12822 fi
12823  else
12824     pkg_failed=untried
12825 fi
12826 if test -n "$PNG_LIBS"; then
12827     pkg_cv_PNG_LIBS="$PNG_LIBS"
12828  elif test -n "$PKG_CONFIG"; then
12829     if test -n "$PKG_CONFIG" && \
12830     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12831   ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12832   ac_status=$?
12833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12834   test $ac_status = 0; }; then
12835   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
12836 else
12837   pkg_failed=yes
12838 fi
12839  else
12840     pkg_failed=untried
12841 fi
12842
12843
12844
12845 if test $pkg_failed = yes; then
12846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12848
12849 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12850         _pkg_short_errors_supported=yes
12851 else
12852         _pkg_short_errors_supported=no
12853 fi
12854         if test $_pkg_short_errors_supported = yes; then
12855                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
12856         else
12857                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
12858         fi
12859         # Put the nasty error message in config.log where it belongs
12860         echo "$PNG_PKG_ERRORS" >&5
12861
12862
12863
12864 pkg_failed=no
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12866 $as_echo_n "checking for PNG... " >&6; }
12867
12868 if test -n "$PNG_CFLAGS"; then
12869     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12870  elif test -n "$PKG_CONFIG"; then
12871     if test -n "$PKG_CONFIG" && \
12872     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12873   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12874   ac_status=$?
12875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876   test $ac_status = 0; }; then
12877   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12878 else
12879   pkg_failed=yes
12880 fi
12881  else
12882     pkg_failed=untried
12883 fi
12884 if test -n "$PNG_LIBS"; then
12885     pkg_cv_PNG_LIBS="$PNG_LIBS"
12886  elif test -n "$PKG_CONFIG"; then
12887     if test -n "$PKG_CONFIG" && \
12888     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12889   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12890   ac_status=$?
12891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12892   test $ac_status = 0; }; then
12893   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12894 else
12895   pkg_failed=yes
12896 fi
12897  else
12898     pkg_failed=untried
12899 fi
12900
12901
12902
12903 if test $pkg_failed = yes; then
12904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906
12907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12908         _pkg_short_errors_supported=yes
12909 else
12910         _pkg_short_errors_supported=no
12911 fi
12912         if test $_pkg_short_errors_supported = yes; then
12913                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12914         else
12915                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12916         fi
12917         # Put the nasty error message in config.log where it belongs
12918         echo "$PNG_PKG_ERRORS" >&5
12919
12920         have_libpng="no"
12921 elif test $pkg_failed = untried; then
12922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12924         have_libpng="no"
12925 else
12926         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12927         PNG_LIBS=$pkg_cv_PNG_LIBS
12928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929 $as_echo "yes" >&6; }
12930         have_libpng="yes"
12931 fi
12932
12933 elif test $pkg_failed = untried; then
12934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935 $as_echo "no" >&6; }
12936
12937
12938 pkg_failed=no
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12940 $as_echo_n "checking for PNG... " >&6; }
12941
12942 if test -n "$PNG_CFLAGS"; then
12943     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12944  elif test -n "$PKG_CONFIG"; then
12945     if test -n "$PKG_CONFIG" && \
12946     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12947   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12948   ac_status=$?
12949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950   test $ac_status = 0; }; then
12951   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12952 else
12953   pkg_failed=yes
12954 fi
12955  else
12956     pkg_failed=untried
12957 fi
12958 if test -n "$PNG_LIBS"; then
12959     pkg_cv_PNG_LIBS="$PNG_LIBS"
12960  elif test -n "$PKG_CONFIG"; then
12961     if test -n "$PKG_CONFIG" && \
12962     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12963   ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12964   ac_status=$?
12965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12966   test $ac_status = 0; }; then
12967   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12968 else
12969   pkg_failed=yes
12970 fi
12971  else
12972     pkg_failed=untried
12973 fi
12974
12975
12976
12977 if test $pkg_failed = yes; then
12978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12980
12981 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12982         _pkg_short_errors_supported=yes
12983 else
12984         _pkg_short_errors_supported=no
12985 fi
12986         if test $_pkg_short_errors_supported = yes; then
12987                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12988         else
12989                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12990         fi
12991         # Put the nasty error message in config.log where it belongs
12992         echo "$PNG_PKG_ERRORS" >&5
12993
12994         have_libpng="no"
12995 elif test $pkg_failed = untried; then
12996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
12998         have_libpng="no"
12999 else
13000         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13001         PNG_LIBS=$pkg_cv_PNG_LIBS
13002         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13003 $as_echo "yes" >&6; }
13004         have_libpng="yes"
13005 fi
13006
13007 else
13008         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13009         PNG_LIBS=$pkg_cv_PNG_LIBS
13010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13011 $as_echo "yes" >&6; }
13012         have_libpng="yes"
13013 fi
13014
13015 else
13016         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13017         PNG_LIBS=$pkg_cv_PNG_LIBS
13018         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13019 $as_echo "yes" >&6; }
13020         have_libpng="yes"
13021 fi
13022
13023 else
13024         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13025         PNG_LIBS=$pkg_cv_PNG_LIBS
13026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13027 $as_echo "yes" >&6; }
13028         have_libpng="yes"
13029 fi
13030
13031    if ! test "x${have_libpng}" = "xyes" ; then
13032
13033
13034
13035
13036
13037 __opj_have_dep="no"
13038
13039
13040
13041
13042
13043
13044 __opj_prefix=
13045 __opj_header=zlib.h
13046 __opj_lib=z
13047 __opj_func=zlibVersion
13048 __opj_have_dep="no"
13049
13050 save_CPPFLAGS=${CPPFLAGS}
13051 save_LDFLAGS=${LDFLAGS}
13052 save_LIBS=${LIBS}
13053
13054 if test "x${__opj_prefix}" = "x" ; then
13055    CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
13056    LDFLAGS="${LDFLAGS} $Z_LIBS"
13057 else
13058    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13059    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13060    LIBS="${LIBS} -l${__opj_lib}"
13061 fi
13062
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h.  */
13065
13066 #include <${__opj_header}>
13067
13068 int
13069 main ()
13070 {
13071
13072 ${__opj_func}();
13073
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_link "$LINENO"; then :
13079   __opj_have_dep="yes"
13080 else
13081   __opj_have_dep="no"
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext \
13084     conftest$ac_exeext conftest.$ac_ext
13085
13086 CPPFLAGS=${save_CPPFLAGS}
13087 LDFLAGS=${save_LDFLAGS}
13088 LIBS=${save_LIBS}
13089
13090 if test "x${__opj_prefix}" = "x" ; then
13091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
13092 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
13093 else
13094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
13095 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
13096 fi
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13098 $as_echo "${__opj_have_dep}" >&6; }
13099
13100 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13101    if test "x${Z_CFLAGS}" = "x" ; then
13102       Z_CFLAGS="-I${__opj_prefix}/include"
13103    fi
13104    if test "x${Z_LIBS}" = "x" ; then
13105       Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13106    fi
13107 fi
13108
13109 if test "x${__opj_have_dep}" = "xyes"; then :
13110   __opj_have_dep="yes"
13111 else
13112   __opj_have_dep="no"
13113 fi
13114
13115
13116
13117
13118
13119
13120 if ! test "x${__opj_have_dep}" = "xyes" ; then
13121
13122
13123
13124
13125
13126 __opj_prefix=/usr
13127 __opj_header=zlib.h
13128 __opj_lib=z
13129 __opj_func=zlibVersion
13130 __opj_have_dep="no"
13131
13132 save_CPPFLAGS=${CPPFLAGS}
13133 save_LDFLAGS=${LDFLAGS}
13134 save_LIBS=${LIBS}
13135
13136 if test "x${__opj_prefix}" = "x" ; then
13137    CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
13138    LDFLAGS="${LDFLAGS} $Z_LIBS"
13139 else
13140    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13141    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13142    LIBS="${LIBS} -l${__opj_lib}"
13143 fi
13144
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h.  */
13147
13148 #include <${__opj_header}>
13149
13150 int
13151 main ()
13152 {
13153
13154 ${__opj_func}();
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 if ac_fn_c_try_link "$LINENO"; then :
13161   __opj_have_dep="yes"
13162 else
13163   __opj_have_dep="no"
13164 fi
13165 rm -f core conftest.err conftest.$ac_objext \
13166     conftest$ac_exeext conftest.$ac_ext
13167
13168 CPPFLAGS=${save_CPPFLAGS}
13169 LDFLAGS=${save_LDFLAGS}
13170 LIBS=${save_LIBS}
13171
13172 if test "x${__opj_prefix}" = "x" ; then
13173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
13174 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
13175 else
13176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
13177 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
13178 fi
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13180 $as_echo "${__opj_have_dep}" >&6; }
13181
13182 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13183    if test "x${Z_CFLAGS}" = "x" ; then
13184       Z_CFLAGS="-I${__opj_prefix}/include"
13185    fi
13186    if test "x${Z_LIBS}" = "x" ; then
13187       Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13188    fi
13189 fi
13190
13191 if test "x${__opj_have_dep}" = "xyes"; then :
13192   __opj_have_dep="yes"
13193 else
13194   __opj_have_dep="no"
13195 fi
13196
13197
13198
13199
13200
13201 fi
13202
13203 if ! test "x${__opj_have_dep}" = "xyes" ; then
13204
13205
13206
13207
13208
13209 __opj_prefix=/usr/local
13210 __opj_header=zlib.h
13211 __opj_lib=z
13212 __opj_func=zlibVersion
13213 __opj_have_dep="no"
13214
13215 save_CPPFLAGS=${CPPFLAGS}
13216 save_LDFLAGS=${LDFLAGS}
13217 save_LIBS=${LIBS}
13218
13219 if test "x${__opj_prefix}" = "x" ; then
13220    CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
13221    LDFLAGS="${LDFLAGS} $Z_LIBS"
13222 else
13223    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13224    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13225    LIBS="${LIBS} -l${__opj_lib}"
13226 fi
13227
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h.  */
13230
13231 #include <${__opj_header}>
13232
13233 int
13234 main ()
13235 {
13236
13237 ${__opj_func}();
13238
13239   ;
13240   return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_c_try_link "$LINENO"; then :
13244   __opj_have_dep="yes"
13245 else
13246   __opj_have_dep="no"
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext \
13249     conftest$ac_exeext conftest.$ac_ext
13250
13251 CPPFLAGS=${save_CPPFLAGS}
13252 LDFLAGS=${save_LDFLAGS}
13253 LIBS=${save_LIBS}
13254
13255 if test "x${__opj_prefix}" = "x" ; then
13256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
13257 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
13258 else
13259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
13260 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
13261 fi
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13263 $as_echo "${__opj_have_dep}" >&6; }
13264
13265 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13266    if test "x${Z_CFLAGS}" = "x" ; then
13267       Z_CFLAGS="-I${__opj_prefix}/include"
13268    fi
13269    if test "x${Z_LIBS}" = "x" ; then
13270       Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13271    fi
13272 fi
13273
13274 if test "x${__opj_have_dep}" = "xyes"; then :
13275   __opj_have_dep="yes"
13276 else
13277   __opj_have_dep="no"
13278 fi
13279
13280
13281
13282
13283
13284 fi
13285
13286 if ! test "x${__opj_have_dep}" = "xyes" ; then
13287
13288
13289
13290
13291
13292 __opj_prefix=/opt/local
13293 __opj_header=zlib.h
13294 __opj_lib=z
13295 __opj_func=zlibVersion
13296 __opj_have_dep="no"
13297
13298 save_CPPFLAGS=${CPPFLAGS}
13299 save_LDFLAGS=${LDFLAGS}
13300 save_LIBS=${LIBS}
13301
13302 if test "x${__opj_prefix}" = "x" ; then
13303    CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
13304    LDFLAGS="${LDFLAGS} $Z_LIBS"
13305 else
13306    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13307    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13308    LIBS="${LIBS} -l${__opj_lib}"
13309 fi
13310
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h.  */
13313
13314 #include <${__opj_header}>
13315
13316 int
13317 main ()
13318 {
13319
13320 ${__opj_func}();
13321
13322   ;
13323   return 0;
13324 }
13325 _ACEOF
13326 if ac_fn_c_try_link "$LINENO"; then :
13327   __opj_have_dep="yes"
13328 else
13329   __opj_have_dep="no"
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext \
13332     conftest$ac_exeext conftest.$ac_ext
13333
13334 CPPFLAGS=${save_CPPFLAGS}
13335 LDFLAGS=${save_LDFLAGS}
13336 LIBS=${save_LIBS}
13337
13338 if test "x${__opj_prefix}" = "x" ; then
13339    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
13340 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
13341 else
13342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
13343 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
13344 fi
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13346 $as_echo "${__opj_have_dep}" >&6; }
13347
13348 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13349    if test "x${Z_CFLAGS}" = "x" ; then
13350       Z_CFLAGS="-I${__opj_prefix}/include"
13351    fi
13352    if test "x${Z_LIBS}" = "x" ; then
13353       Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13354    fi
13355 fi
13356
13357 if test "x${__opj_have_dep}" = "xyes"; then :
13358   __opj_have_dep="yes"
13359 else
13360   __opj_have_dep="no"
13361 fi
13362
13363
13364
13365
13366
13367 fi
13368
13369
13370
13371
13372
13373
13374 if test "x${__opj_have_dep}" = "xyes"; then :
13375
13376
13377
13378
13379
13380 __opj_have_dep="no"
13381
13382
13383
13384
13385
13386
13387 __opj_prefix=
13388 __opj_header=png.h
13389 __opj_lib=png
13390 __opj_func=png_access_version_number
13391 __opj_have_dep="no"
13392
13393 save_CPPFLAGS=${CPPFLAGS}
13394 save_LDFLAGS=${LDFLAGS}
13395 save_LIBS=${LIBS}
13396
13397 if test "x${__opj_prefix}" = "x" ; then
13398    CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
13399    LDFLAGS="${LDFLAGS} $PNG_LIBS"
13400 else
13401    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13402    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13403    LIBS="${LIBS} -l${__opj_lib}"
13404 fi
13405
13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h.  */
13408
13409 #include <${__opj_header}>
13410
13411 int
13412 main ()
13413 {
13414
13415 ${__opj_func}();
13416
13417   ;
13418   return 0;
13419 }
13420 _ACEOF
13421 if ac_fn_c_try_link "$LINENO"; then :
13422   __opj_have_dep="yes"
13423 else
13424   __opj_have_dep="no"
13425 fi
13426 rm -f core conftest.err conftest.$ac_objext \
13427     conftest$ac_exeext conftest.$ac_ext
13428
13429 CPPFLAGS=${save_CPPFLAGS}
13430 LDFLAGS=${save_LDFLAGS}
13431 LIBS=${save_LIBS}
13432
13433 if test "x${__opj_prefix}" = "x" ; then
13434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
13435 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
13436 else
13437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
13438 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
13439 fi
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13441 $as_echo "${__opj_have_dep}" >&6; }
13442
13443 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13444    if test "x${PNG_CFLAGS}" = "x" ; then
13445       PNG_CFLAGS="-I${__opj_prefix}/include"
13446    fi
13447    if test "x${PNG_LIBS}" = "x" ; then
13448       PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13449    fi
13450 fi
13451
13452 if test "x${__opj_have_dep}" = "xyes"; then :
13453   __opj_have_dep="yes"
13454 else
13455   __opj_have_dep="no"
13456 fi
13457
13458
13459
13460
13461
13462
13463 if ! test "x${__opj_have_dep}" = "xyes" ; then
13464
13465
13466
13467
13468
13469 __opj_prefix=/usr
13470 __opj_header=png.h
13471 __opj_lib=png
13472 __opj_func=png_access_version_number
13473 __opj_have_dep="no"
13474
13475 save_CPPFLAGS=${CPPFLAGS}
13476 save_LDFLAGS=${LDFLAGS}
13477 save_LIBS=${LIBS}
13478
13479 if test "x${__opj_prefix}" = "x" ; then
13480    CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
13481    LDFLAGS="${LDFLAGS} $PNG_LIBS"
13482 else
13483    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13484    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13485    LIBS="${LIBS} -l${__opj_lib}"
13486 fi
13487
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h.  */
13490
13491 #include <${__opj_header}>
13492
13493 int
13494 main ()
13495 {
13496
13497 ${__opj_func}();
13498
13499   ;
13500   return 0;
13501 }
13502 _ACEOF
13503 if ac_fn_c_try_link "$LINENO"; then :
13504   __opj_have_dep="yes"
13505 else
13506   __opj_have_dep="no"
13507 fi
13508 rm -f core conftest.err conftest.$ac_objext \
13509     conftest$ac_exeext conftest.$ac_ext
13510
13511 CPPFLAGS=${save_CPPFLAGS}
13512 LDFLAGS=${save_LDFLAGS}
13513 LIBS=${save_LIBS}
13514
13515 if test "x${__opj_prefix}" = "x" ; then
13516    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
13517 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
13518 else
13519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
13520 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
13521 fi
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13523 $as_echo "${__opj_have_dep}" >&6; }
13524
13525 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13526    if test "x${PNG_CFLAGS}" = "x" ; then
13527       PNG_CFLAGS="-I${__opj_prefix}/include"
13528    fi
13529    if test "x${PNG_LIBS}" = "x" ; then
13530       PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13531    fi
13532 fi
13533
13534 if test "x${__opj_have_dep}" = "xyes"; then :
13535   __opj_have_dep="yes"
13536 else
13537   __opj_have_dep="no"
13538 fi
13539
13540
13541
13542
13543
13544 fi
13545
13546 if ! test "x${__opj_have_dep}" = "xyes" ; then
13547
13548
13549
13550
13551
13552 __opj_prefix=/usr/local
13553 __opj_header=png.h
13554 __opj_lib=png
13555 __opj_func=png_access_version_number
13556 __opj_have_dep="no"
13557
13558 save_CPPFLAGS=${CPPFLAGS}
13559 save_LDFLAGS=${LDFLAGS}
13560 save_LIBS=${LIBS}
13561
13562 if test "x${__opj_prefix}" = "x" ; then
13563    CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
13564    LDFLAGS="${LDFLAGS} $PNG_LIBS"
13565 else
13566    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13567    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13568    LIBS="${LIBS} -l${__opj_lib}"
13569 fi
13570
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h.  */
13573
13574 #include <${__opj_header}>
13575
13576 int
13577 main ()
13578 {
13579
13580 ${__opj_func}();
13581
13582   ;
13583   return 0;
13584 }
13585 _ACEOF
13586 if ac_fn_c_try_link "$LINENO"; then :
13587   __opj_have_dep="yes"
13588 else
13589   __opj_have_dep="no"
13590 fi
13591 rm -f core conftest.err conftest.$ac_objext \
13592     conftest$ac_exeext conftest.$ac_ext
13593
13594 CPPFLAGS=${save_CPPFLAGS}
13595 LDFLAGS=${save_LDFLAGS}
13596 LIBS=${save_LIBS}
13597
13598 if test "x${__opj_prefix}" = "x" ; then
13599    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
13600 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
13601 else
13602    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
13603 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
13604 fi
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13606 $as_echo "${__opj_have_dep}" >&6; }
13607
13608 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13609    if test "x${PNG_CFLAGS}" = "x" ; then
13610       PNG_CFLAGS="-I${__opj_prefix}/include"
13611    fi
13612    if test "x${PNG_LIBS}" = "x" ; then
13613       PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13614    fi
13615 fi
13616
13617 if test "x${__opj_have_dep}" = "xyes"; then :
13618   __opj_have_dep="yes"
13619 else
13620   __opj_have_dep="no"
13621 fi
13622
13623
13624
13625
13626
13627 fi
13628
13629 if ! test "x${__opj_have_dep}" = "xyes" ; then
13630
13631
13632
13633
13634
13635 __opj_prefix=/opt/local
13636 __opj_header=png.h
13637 __opj_lib=png
13638 __opj_func=png_access_version_number
13639 __opj_have_dep="no"
13640
13641 save_CPPFLAGS=${CPPFLAGS}
13642 save_LDFLAGS=${LDFLAGS}
13643 save_LIBS=${LIBS}
13644
13645 if test "x${__opj_prefix}" = "x" ; then
13646    CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
13647    LDFLAGS="${LDFLAGS} $PNG_LIBS"
13648 else
13649    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13650    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13651    LIBS="${LIBS} -l${__opj_lib}"
13652 fi
13653
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h.  */
13656
13657 #include <${__opj_header}>
13658
13659 int
13660 main ()
13661 {
13662
13663 ${__opj_func}();
13664
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 if ac_fn_c_try_link "$LINENO"; then :
13670   __opj_have_dep="yes"
13671 else
13672   __opj_have_dep="no"
13673 fi
13674 rm -f core conftest.err conftest.$ac_objext \
13675     conftest$ac_exeext conftest.$ac_ext
13676
13677 CPPFLAGS=${save_CPPFLAGS}
13678 LDFLAGS=${save_LDFLAGS}
13679 LIBS=${save_LIBS}
13680
13681 if test "x${__opj_prefix}" = "x" ; then
13682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
13683 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
13684 else
13685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
13686 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
13687 fi
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13689 $as_echo "${__opj_have_dep}" >&6; }
13690
13691 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13692    if test "x${PNG_CFLAGS}" = "x" ; then
13693       PNG_CFLAGS="-I${__opj_prefix}/include"
13694    fi
13695    if test "x${PNG_LIBS}" = "x" ; then
13696       PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13697    fi
13698 fi
13699
13700 if test "x${__opj_have_dep}" = "xyes"; then :
13701   __opj_have_dep="yes"
13702 else
13703   __opj_have_dep="no"
13704 fi
13705
13706
13707
13708
13709
13710 fi
13711
13712
13713
13714
13715
13716
13717 if test "x${__opj_have_dep}" = "xyes"; then :
13718
13719               have_libpng="yes"
13720               PNG_CFLAGS="${PNG_CFLAGS} ${Z_CFLAGS}"
13721               PNG_LIBS="${PNG_LIBS} ${Z_LIBS}"
13722
13723 else
13724   have_libpng="no"
13725 fi
13726
13727
13728
13729
13730
13731 else
13732   have_libpng="no"
13733 fi
13734
13735
13736
13737
13738
13739    fi
13740
13741    if test "x${have_libpng}" = "xno" ; then
13742       { $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
13743 $as_echo "$as_me: WARNING: Can not find a usuable PNG library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&2;}
13744    fi
13745
13746 fi
13747
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG is available" >&5
13749 $as_echo_n "checking whether PNG is available... " >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_libpng}" >&5
13751 $as_echo "${have_libpng}" >&6; }
13752
13753 if test "x${have_libpng}" = "xyes" ; then
13754
13755 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
13756
13757 fi
13758
13759  if test x${have_libpng} = "xyes"; then
13760   with_libpng_TRUE=
13761   with_libpng_FALSE='#'
13762 else
13763   with_libpng_TRUE='#'
13764   with_libpng_FALSE=
13765 fi
13766
13767
13768 # libtiff
13769
13770 have_libtiff="no"
13771
13772 # Check whether --enable-tiff was given.
13773 if test "${enable_tiff+set}" = set; then :
13774   enableval=$enable_tiff;
13775     if test "x${enableval}" = "xyes" ; then
13776        want_tiff="yes"
13777     else
13778        want_tiff="no"
13779     fi
13780
13781 else
13782   want_tiff="yes"
13783 fi
13784
13785
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
13787 $as_echo_n "checking whether to build with TIFF support... " >&6; }
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_tiff}" >&5
13789 $as_echo "${want_tiff}" >&6; }
13790
13791 if test "x${want_tiff}" = "xyes" ; then
13792
13793
13794
13795
13796
13797 __opj_have_dep="no"
13798
13799
13800
13801
13802
13803
13804 __opj_prefix=
13805 __opj_header=tiff.h
13806 __opj_lib=tiff
13807 __opj_func=TIFFOpen
13808 __opj_have_dep="no"
13809
13810 save_CPPFLAGS=${CPPFLAGS}
13811 save_LDFLAGS=${LDFLAGS}
13812 save_LIBS=${LIBS}
13813
13814 if test "x${__opj_prefix}" = "x" ; then
13815    CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
13816    LDFLAGS="${LDFLAGS} $TIFF_LIBS"
13817 else
13818    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13819    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13820    LIBS="${LIBS} -l${__opj_lib}"
13821 fi
13822
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h.  */
13825
13826 #include <${__opj_header}>
13827
13828 int
13829 main ()
13830 {
13831
13832 ${__opj_func}();
13833
13834   ;
13835   return 0;
13836 }
13837 _ACEOF
13838 if ac_fn_c_try_link "$LINENO"; then :
13839   __opj_have_dep="yes"
13840 else
13841   __opj_have_dep="no"
13842 fi
13843 rm -f core conftest.err conftest.$ac_objext \
13844     conftest$ac_exeext conftest.$ac_ext
13845
13846 CPPFLAGS=${save_CPPFLAGS}
13847 LDFLAGS=${save_LDFLAGS}
13848 LIBS=${save_LIBS}
13849
13850 if test "x${__opj_prefix}" = "x" ; then
13851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
13852 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
13853 else
13854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
13855 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
13856 fi
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13858 $as_echo "${__opj_have_dep}" >&6; }
13859
13860 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13861    if test "x${TIFF_CFLAGS}" = "x" ; then
13862       TIFF_CFLAGS="-I${__opj_prefix}/include"
13863    fi
13864    if test "x${TIFF_LIBS}" = "x" ; then
13865       TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13866    fi
13867 fi
13868
13869 if test "x${__opj_have_dep}" = "xyes"; then :
13870   __opj_have_dep="yes"
13871 else
13872   __opj_have_dep="no"
13873 fi
13874
13875
13876
13877
13878
13879
13880 if ! test "x${__opj_have_dep}" = "xyes" ; then
13881
13882
13883
13884
13885
13886 __opj_prefix=/usr
13887 __opj_header=tiff.h
13888 __opj_lib=tiff
13889 __opj_func=TIFFOpen
13890 __opj_have_dep="no"
13891
13892 save_CPPFLAGS=${CPPFLAGS}
13893 save_LDFLAGS=${LDFLAGS}
13894 save_LIBS=${LIBS}
13895
13896 if test "x${__opj_prefix}" = "x" ; then
13897    CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
13898    LDFLAGS="${LDFLAGS} $TIFF_LIBS"
13899 else
13900    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13901    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13902    LIBS="${LIBS} -l${__opj_lib}"
13903 fi
13904
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h.  */
13907
13908 #include <${__opj_header}>
13909
13910 int
13911 main ()
13912 {
13913
13914 ${__opj_func}();
13915
13916   ;
13917   return 0;
13918 }
13919 _ACEOF
13920 if ac_fn_c_try_link "$LINENO"; then :
13921   __opj_have_dep="yes"
13922 else
13923   __opj_have_dep="no"
13924 fi
13925 rm -f core conftest.err conftest.$ac_objext \
13926     conftest$ac_exeext conftest.$ac_ext
13927
13928 CPPFLAGS=${save_CPPFLAGS}
13929 LDFLAGS=${save_LDFLAGS}
13930 LIBS=${save_LIBS}
13931
13932 if test "x${__opj_prefix}" = "x" ; then
13933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
13934 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
13935 else
13936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
13937 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
13938 fi
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13940 $as_echo "${__opj_have_dep}" >&6; }
13941
13942 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13943    if test "x${TIFF_CFLAGS}" = "x" ; then
13944       TIFF_CFLAGS="-I${__opj_prefix}/include"
13945    fi
13946    if test "x${TIFF_LIBS}" = "x" ; then
13947       TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13948    fi
13949 fi
13950
13951 if test "x${__opj_have_dep}" = "xyes"; then :
13952   __opj_have_dep="yes"
13953 else
13954   __opj_have_dep="no"
13955 fi
13956
13957
13958
13959
13960
13961 fi
13962
13963 if ! test "x${__opj_have_dep}" = "xyes" ; then
13964
13965
13966
13967
13968
13969 __opj_prefix=/usr/local
13970 __opj_header=tiff.h
13971 __opj_lib=tiff
13972 __opj_func=TIFFOpen
13973 __opj_have_dep="no"
13974
13975 save_CPPFLAGS=${CPPFLAGS}
13976 save_LDFLAGS=${LDFLAGS}
13977 save_LIBS=${LIBS}
13978
13979 if test "x${__opj_prefix}" = "x" ; then
13980    CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
13981    LDFLAGS="${LDFLAGS} $TIFF_LIBS"
13982 else
13983    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13984    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13985    LIBS="${LIBS} -l${__opj_lib}"
13986 fi
13987
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h.  */
13990
13991 #include <${__opj_header}>
13992
13993 int
13994 main ()
13995 {
13996
13997 ${__opj_func}();
13998
13999   ;
14000   return 0;
14001 }
14002 _ACEOF
14003 if ac_fn_c_try_link "$LINENO"; then :
14004   __opj_have_dep="yes"
14005 else
14006   __opj_have_dep="no"
14007 fi
14008 rm -f core conftest.err conftest.$ac_objext \
14009     conftest$ac_exeext conftest.$ac_ext
14010
14011 CPPFLAGS=${save_CPPFLAGS}
14012 LDFLAGS=${save_LDFLAGS}
14013 LIBS=${save_LIBS}
14014
14015 if test "x${__opj_prefix}" = "x" ; then
14016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
14017 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
14018 else
14019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
14020 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
14021 fi
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14023 $as_echo "${__opj_have_dep}" >&6; }
14024
14025 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14026    if test "x${TIFF_CFLAGS}" = "x" ; then
14027       TIFF_CFLAGS="-I${__opj_prefix}/include"
14028    fi
14029    if test "x${TIFF_LIBS}" = "x" ; then
14030       TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14031    fi
14032 fi
14033
14034 if test "x${__opj_have_dep}" = "xyes"; then :
14035   __opj_have_dep="yes"
14036 else
14037   __opj_have_dep="no"
14038 fi
14039
14040
14041
14042
14043
14044 fi
14045
14046 if ! test "x${__opj_have_dep}" = "xyes" ; then
14047
14048
14049
14050
14051
14052 __opj_prefix=/opt/local
14053 __opj_header=tiff.h
14054 __opj_lib=tiff
14055 __opj_func=TIFFOpen
14056 __opj_have_dep="no"
14057
14058 save_CPPFLAGS=${CPPFLAGS}
14059 save_LDFLAGS=${LDFLAGS}
14060 save_LIBS=${LIBS}
14061
14062 if test "x${__opj_prefix}" = "x" ; then
14063    CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
14064    LDFLAGS="${LDFLAGS} $TIFF_LIBS"
14065 else
14066    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14067    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14068    LIBS="${LIBS} -l${__opj_lib}"
14069 fi
14070
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h.  */
14073
14074 #include <${__opj_header}>
14075
14076 int
14077 main ()
14078 {
14079
14080 ${__opj_func}();
14081
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 if ac_fn_c_try_link "$LINENO"; then :
14087   __opj_have_dep="yes"
14088 else
14089   __opj_have_dep="no"
14090 fi
14091 rm -f core conftest.err conftest.$ac_objext \
14092     conftest$ac_exeext conftest.$ac_ext
14093
14094 CPPFLAGS=${save_CPPFLAGS}
14095 LDFLAGS=${save_LDFLAGS}
14096 LIBS=${save_LIBS}
14097
14098 if test "x${__opj_prefix}" = "x" ; then
14099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
14100 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
14101 else
14102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
14103 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
14104 fi
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14106 $as_echo "${__opj_have_dep}" >&6; }
14107
14108 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14109    if test "x${TIFF_CFLAGS}" = "x" ; then
14110       TIFF_CFLAGS="-I${__opj_prefix}/include"
14111    fi
14112    if test "x${TIFF_LIBS}" = "x" ; then
14113       TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14114    fi
14115 fi
14116
14117 if test "x${__opj_have_dep}" = "xyes"; then :
14118   __opj_have_dep="yes"
14119 else
14120   __opj_have_dep="no"
14121 fi
14122
14123
14124
14125
14126
14127 fi
14128
14129
14130
14131
14132
14133
14134 if test "x${__opj_have_dep}" = "xyes"; then :
14135   have_libtiff="yes"
14136 else
14137   have_libtiff="no"
14138 fi
14139
14140
14141
14142
14143
14144    if test "x${have_libtiff}" = "xno" ; then
14145       { $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
14146 $as_echo "$as_me: WARNING: Can not find a usuable TIFF library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&2;}
14147    fi
14148 fi
14149
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF is available" >&5
14151 $as_echo_n "checking whether TIFF is available... " >&6; }
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_libtiff}" >&5
14153 $as_echo "${have_libtiff}" >&6; }
14154
14155 if test "x${have_libtiff}" = "xyes" ; then
14156
14157 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
14158
14159 fi
14160
14161  if test "x${have_libtiff}" = "xyes"; then
14162   with_libtiff_TRUE=
14163   with_libtiff_FALSE='#'
14164 else
14165   with_libtiff_TRUE='#'
14166   with_libtiff_FALSE=
14167 fi
14168
14169
14170 # libcms2
14171
14172 lcms_output="no"
14173 have_lcms2="no"
14174
14175 # Check whether --enable-lcms2 was given.
14176 if test "${enable_lcms2+set}" = set; then :
14177   enableval=$enable_lcms2;
14178     if test "x${enableval}" = "xyes" ; then
14179        want_lcms2="yes"
14180     else
14181        want_lcms2="no"
14182     fi
14183
14184 else
14185   want_lcms2="yes"
14186 fi
14187
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS-2 support" >&5
14190 $as_echo_n "checking whether to build with LCMS-2 support... " >&6; }
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_lcms2}" >&5
14192 $as_echo "${want_lcms2}" >&6; }
14193
14194 if test "x${want_lcms2}" = "xyes" ; then
14195
14196 pkg_failed=no
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
14198 $as_echo_n "checking for LCMS2... " >&6; }
14199
14200 if test -n "$LCMS2_CFLAGS"; then
14201     pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
14202  elif test -n "$PKG_CONFIG"; then
14203     if test -n "$PKG_CONFIG" && \
14204     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
14205   ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
14206   ac_status=$?
14207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14208   test $ac_status = 0; }; then
14209   pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
14210 else
14211   pkg_failed=yes
14212 fi
14213  else
14214     pkg_failed=untried
14215 fi
14216 if test -n "$LCMS2_LIBS"; then
14217     pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
14218  elif test -n "$PKG_CONFIG"; then
14219     if test -n "$PKG_CONFIG" && \
14220     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
14221   ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
14222   ac_status=$?
14223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14224   test $ac_status = 0; }; then
14225   pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
14226 else
14227   pkg_failed=yes
14228 fi
14229  else
14230     pkg_failed=untried
14231 fi
14232
14233
14234
14235 if test $pkg_failed = yes; then
14236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238
14239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14240         _pkg_short_errors_supported=yes
14241 else
14242         _pkg_short_errors_supported=no
14243 fi
14244         if test $_pkg_short_errors_supported = yes; then
14245                 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1`
14246         else
14247                 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1`
14248         fi
14249         # Put the nasty error message in config.log where it belongs
14250         echo "$LCMS2_PKG_ERRORS" >&5
14251
14252         have_lcms2="no"
14253 elif test $pkg_failed = untried; then
14254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14255 $as_echo "no" >&6; }
14256         have_lcms2="no"
14257 else
14258         LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
14259         LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
14260         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14261 $as_echo "yes" >&6; }
14262         have_lcms2="yes"
14263 fi
14264 fi
14265
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LCMS-2 is available" >&5
14267 $as_echo_n "checking whether LCMS-2 is available... " >&6; }
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_lcms2}" >&5
14269 $as_echo "${have_lcms2}" >&6; }
14270
14271 if test "x${have_lcms2}" = "xyes" ; then
14272
14273 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
14274
14275    lcms_output="lcms version 2.x"
14276 fi
14277
14278 # libcms1
14279
14280 # Check whether --enable-lcms1 was given.
14281 if test "${enable_lcms1+set}" = set; then :
14282   enableval=$enable_lcms1;
14283     if test "x${enableval}" = "xyes" ; then
14284        want_lcms1="yes"
14285     else
14286        want_lcms1="no"
14287     fi
14288
14289 else
14290   want_lcms1="yes"
14291 fi
14292
14293
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS-1 support" >&5
14295 $as_echo_n "checking whether to build with LCMS-1 support... " >&6; }
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_lcms1}" >&5
14297 $as_echo "${want_lcms1}" >&6; }
14298
14299 if test "x${have_lcms2}" = "xno" ; then
14300
14301    if test "x${want_lcms1}" = "xyes" ; then
14302
14303 pkg_failed=no
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
14305 $as_echo_n "checking for LCMS1... " >&6; }
14306
14307 if test -n "$LCMS1_CFLAGS"; then
14308     pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
14309  elif test -n "$PKG_CONFIG"; then
14310     if test -n "$PKG_CONFIG" && \
14311     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms1\""; } >&5
14312   ($PKG_CONFIG --exists --print-errors "lcms1") 2>&5
14313   ac_status=$?
14314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14315   test $ac_status = 0; }; then
14316   pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms1" 2>/dev/null`
14317 else
14318   pkg_failed=yes
14319 fi
14320  else
14321     pkg_failed=untried
14322 fi
14323 if test -n "$LCMS1_LIBS"; then
14324     pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
14325  elif test -n "$PKG_CONFIG"; then
14326     if test -n "$PKG_CONFIG" && \
14327     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms1\""; } >&5
14328   ($PKG_CONFIG --exists --print-errors "lcms1") 2>&5
14329   ac_status=$?
14330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14331   test $ac_status = 0; }; then
14332   pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms1" 2>/dev/null`
14333 else
14334   pkg_failed=yes
14335 fi
14336  else
14337     pkg_failed=untried
14338 fi
14339
14340
14341
14342 if test $pkg_failed = yes; then
14343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14344 $as_echo "no" >&6; }
14345
14346 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14347         _pkg_short_errors_supported=yes
14348 else
14349         _pkg_short_errors_supported=no
14350 fi
14351         if test $_pkg_short_errors_supported = yes; then
14352                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms1" 2>&1`
14353         else
14354                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms1" 2>&1`
14355         fi
14356         # Put the nasty error message in config.log where it belongs
14357         echo "$LCMS1_PKG_ERRORS" >&5
14358
14359
14360 pkg_failed=no
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
14362 $as_echo_n "checking for LCMS1... " >&6; }
14363
14364 if test -n "$LCMS1_CFLAGS"; then
14365     pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
14366  elif test -n "$PKG_CONFIG"; then
14367     if test -n "$PKG_CONFIG" && \
14368     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
14369   ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
14370   ac_status=$?
14371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14372   test $ac_status = 0; }; then
14373   pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
14374 else
14375   pkg_failed=yes
14376 fi
14377  else
14378     pkg_failed=untried
14379 fi
14380 if test -n "$LCMS1_LIBS"; then
14381     pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
14382  elif test -n "$PKG_CONFIG"; then
14383     if test -n "$PKG_CONFIG" && \
14384     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
14385   ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
14386   ac_status=$?
14387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14388   test $ac_status = 0; }; then
14389   pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
14390 else
14391   pkg_failed=yes
14392 fi
14393  else
14394     pkg_failed=untried
14395 fi
14396
14397
14398
14399 if test $pkg_failed = yes; then
14400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401 $as_echo "no" >&6; }
14402
14403 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14404         _pkg_short_errors_supported=yes
14405 else
14406         _pkg_short_errors_supported=no
14407 fi
14408         if test $_pkg_short_errors_supported = yes; then
14409                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1`
14410         else
14411                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1`
14412         fi
14413         # Put the nasty error message in config.log where it belongs
14414         echo "$LCMS1_PKG_ERRORS" >&5
14415
14416         have_lcms1="no"
14417 elif test $pkg_failed = untried; then
14418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14420         have_lcms1="no"
14421 else
14422         LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
14423         LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
14424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14425 $as_echo "yes" >&6; }
14426         have_lcms1="yes"
14427 fi
14428 elif test $pkg_failed = untried; then
14429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 $as_echo "no" >&6; }
14431
14432 pkg_failed=no
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
14434 $as_echo_n "checking for LCMS1... " >&6; }
14435
14436 if test -n "$LCMS1_CFLAGS"; then
14437     pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
14438  elif test -n "$PKG_CONFIG"; then
14439     if test -n "$PKG_CONFIG" && \
14440     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
14441   ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
14442   ac_status=$?
14443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14444   test $ac_status = 0; }; then
14445   pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
14446 else
14447   pkg_failed=yes
14448 fi
14449  else
14450     pkg_failed=untried
14451 fi
14452 if test -n "$LCMS1_LIBS"; then
14453     pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
14454  elif test -n "$PKG_CONFIG"; then
14455     if test -n "$PKG_CONFIG" && \
14456     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
14457   ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
14458   ac_status=$?
14459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14460   test $ac_status = 0; }; then
14461   pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
14462 else
14463   pkg_failed=yes
14464 fi
14465  else
14466     pkg_failed=untried
14467 fi
14468
14469
14470
14471 if test $pkg_failed = yes; then
14472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 $as_echo "no" >&6; }
14474
14475 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14476         _pkg_short_errors_supported=yes
14477 else
14478         _pkg_short_errors_supported=no
14479 fi
14480         if test $_pkg_short_errors_supported = yes; then
14481                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1`
14482         else
14483                 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1`
14484         fi
14485         # Put the nasty error message in config.log where it belongs
14486         echo "$LCMS1_PKG_ERRORS" >&5
14487
14488         have_lcms1="no"
14489 elif test $pkg_failed = untried; then
14490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14491 $as_echo "no" >&6; }
14492         have_lcms1="no"
14493 else
14494         LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
14495         LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
14496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14497 $as_echo "yes" >&6; }
14498         have_lcms1="yes"
14499 fi
14500 else
14501         LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
14502         LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
14503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14504 $as_echo "yes" >&6; }
14505         have_lcms1="yes"
14506 fi
14507    fi
14508
14509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LCMS-1 is available" >&5
14510 $as_echo_n "checking whether LCMS-1 is available... " >&6; }
14511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_lcms1}" >&5
14512 $as_echo "${have_lcms1}" >&6; }
14513
14514    if test "x${have_lcms1}" = "xyes" ; then
14515
14516 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
14517
14518       lcms_output="lcms version 1.x"
14519    fi
14520
14521 fi
14522
14523 # threads
14524
14525 if test "x${want_jpip_server}" = "xyes" ; then
14526
14527    if test "x${have_win32}" = "xno" ; then
14528
14529       SAVE_CFLAGS=${CFLAGS}
14530       CFLAGS="${CFLAGS} -pthread"
14531       SAVE_LIBS=${LIBS}
14532       LIBS="${LIBS} -pthread"
14533       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h.  */
14535
14536 #include <pthread.h>
14537
14538 int
14539 main ()
14540 {
14541
14542 pthread_t id;
14543 id = pthread_self();
14544
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 if ac_fn_c_try_link "$LINENO"; then :
14550   have_pthread="yes"
14551 else
14552   have_pthread="no"
14553 fi
14554 rm -f core conftest.err conftest.$ac_objext \
14555     conftest$ac_exeext conftest.$ac_ext
14556       CFLAGS=${SAVE_CFLAGS}
14557       LIBS=${SAVE_LIBS}
14558
14559       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Pthread library is available" >&5
14560 $as_echo_n "checking whether Pthread library is available... " >&6; }
14561       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_pthread}" >&5
14562 $as_echo "${have_pthread}" >&6; }
14563
14564       if ! test "x${have_pthread}" = "xyes" ; then
14565          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Pthread library not found. OpenJPIP server will not be compiled." >&5
14566 $as_echo "$as_me: WARNING: Pthread library not found. OpenJPIP server will not be compiled." >&2;}
14567          want_jpip_server="no"
14568       else
14569          THREAD_CFLAGS="-pthread"
14570          THREAD_LIBS="-pthread"
14571       fi
14572
14573    else
14574       THREAD_LIBS="-lws2_32"
14575    fi
14576
14577 fi
14578
14579
14580
14581
14582
14583
14584 # libfcgi
14585
14586 if test "x${want_jpip_server}" = "xyes" ; then
14587
14588    have_fcgi="no"
14589
14590
14591
14592
14593 __opj_have_dep="no"
14594
14595
14596
14597
14598
14599
14600 __opj_prefix=
14601 __opj_header=fcgi_stdio.h
14602 __opj_lib=fcgi
14603 __opj_func=FCGI_Accept
14604 __opj_have_dep="no"
14605
14606 save_CPPFLAGS=${CPPFLAGS}
14607 save_LDFLAGS=${LDFLAGS}
14608 save_LIBS=${LIBS}
14609
14610 if test "x${__opj_prefix}" = "x" ; then
14611    CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
14612    LDFLAGS="${LDFLAGS} $FCGI_LIBS"
14613 else
14614    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14615    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14616    LIBS="${LIBS} -l${__opj_lib}"
14617 fi
14618
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h.  */
14621
14622 #include <${__opj_header}>
14623
14624 int
14625 main ()
14626 {
14627
14628 ${__opj_func}();
14629
14630   ;
14631   return 0;
14632 }
14633 _ACEOF
14634 if ac_fn_c_try_link "$LINENO"; then :
14635   __opj_have_dep="yes"
14636 else
14637   __opj_have_dep="no"
14638 fi
14639 rm -f core conftest.err conftest.$ac_objext \
14640     conftest$ac_exeext conftest.$ac_ext
14641
14642 CPPFLAGS=${save_CPPFLAGS}
14643 LDFLAGS=${save_LDFLAGS}
14644 LIBS=${save_LIBS}
14645
14646 if test "x${__opj_prefix}" = "x" ; then
14647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
14648 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
14649 else
14650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
14651 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
14652 fi
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14654 $as_echo "${__opj_have_dep}" >&6; }
14655
14656 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14657    if test "x${FCGI_CFLAGS}" = "x" ; then
14658       FCGI_CFLAGS="-I${__opj_prefix}/include"
14659    fi
14660    if test "x${FCGI_LIBS}" = "x" ; then
14661       FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14662    fi
14663 fi
14664
14665 if test "x${__opj_have_dep}" = "xyes"; then :
14666   __opj_have_dep="yes"
14667 else
14668   __opj_have_dep="no"
14669 fi
14670
14671
14672
14673
14674
14675
14676 if ! test "x${__opj_have_dep}" = "xyes" ; then
14677
14678
14679
14680
14681
14682 __opj_prefix=/usr
14683 __opj_header=fcgi_stdio.h
14684 __opj_lib=fcgi
14685 __opj_func=FCGI_Accept
14686 __opj_have_dep="no"
14687
14688 save_CPPFLAGS=${CPPFLAGS}
14689 save_LDFLAGS=${LDFLAGS}
14690 save_LIBS=${LIBS}
14691
14692 if test "x${__opj_prefix}" = "x" ; then
14693    CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
14694    LDFLAGS="${LDFLAGS} $FCGI_LIBS"
14695 else
14696    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14697    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14698    LIBS="${LIBS} -l${__opj_lib}"
14699 fi
14700
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h.  */
14703
14704 #include <${__opj_header}>
14705
14706 int
14707 main ()
14708 {
14709
14710 ${__opj_func}();
14711
14712   ;
14713   return 0;
14714 }
14715 _ACEOF
14716 if ac_fn_c_try_link "$LINENO"; then :
14717   __opj_have_dep="yes"
14718 else
14719   __opj_have_dep="no"
14720 fi
14721 rm -f core conftest.err conftest.$ac_objext \
14722     conftest$ac_exeext conftest.$ac_ext
14723
14724 CPPFLAGS=${save_CPPFLAGS}
14725 LDFLAGS=${save_LDFLAGS}
14726 LIBS=${save_LIBS}
14727
14728 if test "x${__opj_prefix}" = "x" ; then
14729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
14730 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
14731 else
14732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
14733 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
14734 fi
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14736 $as_echo "${__opj_have_dep}" >&6; }
14737
14738 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14739    if test "x${FCGI_CFLAGS}" = "x" ; then
14740       FCGI_CFLAGS="-I${__opj_prefix}/include"
14741    fi
14742    if test "x${FCGI_LIBS}" = "x" ; then
14743       FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14744    fi
14745 fi
14746
14747 if test "x${__opj_have_dep}" = "xyes"; then :
14748   __opj_have_dep="yes"
14749 else
14750   __opj_have_dep="no"
14751 fi
14752
14753
14754
14755
14756
14757 fi
14758
14759 if ! test "x${__opj_have_dep}" = "xyes" ; then
14760
14761
14762
14763
14764
14765 __opj_prefix=/usr/local
14766 __opj_header=fcgi_stdio.h
14767 __opj_lib=fcgi
14768 __opj_func=FCGI_Accept
14769 __opj_have_dep="no"
14770
14771 save_CPPFLAGS=${CPPFLAGS}
14772 save_LDFLAGS=${LDFLAGS}
14773 save_LIBS=${LIBS}
14774
14775 if test "x${__opj_prefix}" = "x" ; then
14776    CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
14777    LDFLAGS="${LDFLAGS} $FCGI_LIBS"
14778 else
14779    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14780    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14781    LIBS="${LIBS} -l${__opj_lib}"
14782 fi
14783
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h.  */
14786
14787 #include <${__opj_header}>
14788
14789 int
14790 main ()
14791 {
14792
14793 ${__opj_func}();
14794
14795   ;
14796   return 0;
14797 }
14798 _ACEOF
14799 if ac_fn_c_try_link "$LINENO"; then :
14800   __opj_have_dep="yes"
14801 else
14802   __opj_have_dep="no"
14803 fi
14804 rm -f core conftest.err conftest.$ac_objext \
14805     conftest$ac_exeext conftest.$ac_ext
14806
14807 CPPFLAGS=${save_CPPFLAGS}
14808 LDFLAGS=${save_LDFLAGS}
14809 LIBS=${save_LIBS}
14810
14811 if test "x${__opj_prefix}" = "x" ; then
14812    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
14813 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
14814 else
14815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
14816 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
14817 fi
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14819 $as_echo "${__opj_have_dep}" >&6; }
14820
14821 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14822    if test "x${FCGI_CFLAGS}" = "x" ; then
14823       FCGI_CFLAGS="-I${__opj_prefix}/include"
14824    fi
14825    if test "x${FCGI_LIBS}" = "x" ; then
14826       FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14827    fi
14828 fi
14829
14830 if test "x${__opj_have_dep}" = "xyes"; then :
14831   __opj_have_dep="yes"
14832 else
14833   __opj_have_dep="no"
14834 fi
14835
14836
14837
14838
14839
14840 fi
14841
14842 if ! test "x${__opj_have_dep}" = "xyes" ; then
14843
14844
14845
14846
14847
14848 __opj_prefix=/opt/local
14849 __opj_header=fcgi_stdio.h
14850 __opj_lib=fcgi
14851 __opj_func=FCGI_Accept
14852 __opj_have_dep="no"
14853
14854 save_CPPFLAGS=${CPPFLAGS}
14855 save_LDFLAGS=${LDFLAGS}
14856 save_LIBS=${LIBS}
14857
14858 if test "x${__opj_prefix}" = "x" ; then
14859    CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
14860    LDFLAGS="${LDFLAGS} $FCGI_LIBS"
14861 else
14862    CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14863    LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14864    LIBS="${LIBS} -l${__opj_lib}"
14865 fi
14866
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h.  */
14869
14870 #include <${__opj_header}>
14871
14872 int
14873 main ()
14874 {
14875
14876 ${__opj_func}();
14877
14878   ;
14879   return 0;
14880 }
14881 _ACEOF
14882 if ac_fn_c_try_link "$LINENO"; then :
14883   __opj_have_dep="yes"
14884 else
14885   __opj_have_dep="no"
14886 fi
14887 rm -f core conftest.err conftest.$ac_objext \
14888     conftest$ac_exeext conftest.$ac_ext
14889
14890 CPPFLAGS=${save_CPPFLAGS}
14891 LDFLAGS=${save_LDFLAGS}
14892 LIBS=${save_LIBS}
14893
14894 if test "x${__opj_prefix}" = "x" ; then
14895    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
14896 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
14897 else
14898    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
14899 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
14900 fi
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14902 $as_echo "${__opj_have_dep}" >&6; }
14903
14904 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14905    if test "x${FCGI_CFLAGS}" = "x" ; then
14906       FCGI_CFLAGS="-I${__opj_prefix}/include"
14907    fi
14908    if test "x${FCGI_LIBS}" = "x" ; then
14909       FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14910    fi
14911 fi
14912
14913 if test "x${__opj_have_dep}" = "xyes"; then :
14914   __opj_have_dep="yes"
14915 else
14916   __opj_have_dep="no"
14917 fi
14918
14919
14920
14921
14922
14923 fi
14924
14925
14926
14927
14928
14929
14930 if test "x${__opj_have_dep}" = "xyes"; then :
14931   have_fcgi="yes"
14932 else
14933   have_fcgi="no"
14934 fi
14935
14936
14937
14938
14939
14940    if ! test "x${have_fcgi}" = "xyes" ; then
14941       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FastCGI library not found. OpenJPIP server will not be compiled." >&5
14942 $as_echo "$as_me: WARNING: FastCGI library not found. OpenJPIP server will not be compiled." >&2;}
14943       want_jpip_server="no"
14944    fi
14945
14946 fi
14947
14948 # libcurl
14949
14950 if test "x${want_jpip_server}" = "xyes" ; then
14951
14952
14953 pkg_failed=no
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
14955 $as_echo_n "checking for LIBCURL... " >&6; }
14956
14957 if test -n "$LIBCURL_CFLAGS"; then
14958     pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
14959  elif test -n "$PKG_CONFIG"; then
14960     if test -n "$PKG_CONFIG" && \
14961     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
14962   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
14963   ac_status=$?
14964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14965   test $ac_status = 0; }; then
14966   pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
14967 else
14968   pkg_failed=yes
14969 fi
14970  else
14971     pkg_failed=untried
14972 fi
14973 if test -n "$LIBCURL_LIBS"; then
14974     pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
14975  elif test -n "$PKG_CONFIG"; then
14976     if test -n "$PKG_CONFIG" && \
14977     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
14978   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
14979   ac_status=$?
14980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14981   test $ac_status = 0; }; then
14982   pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
14983 else
14984   pkg_failed=yes
14985 fi
14986  else
14987     pkg_failed=untried
14988 fi
14989
14990
14991
14992 if test $pkg_failed = yes; then
14993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14994 $as_echo "no" >&6; }
14995
14996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14997         _pkg_short_errors_supported=yes
14998 else
14999         _pkg_short_errors_supported=no
15000 fi
15001         if test $_pkg_short_errors_supported = yes; then
15002                 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1`
15003         else
15004                 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1`
15005         fi
15006         # Put the nasty error message in config.log where it belongs
15007         echo "$LIBCURL_PKG_ERRORS" >&5
15008
15009         have_libcurl="no"
15010 elif test $pkg_failed = untried; then
15011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15012 $as_echo "no" >&6; }
15013         have_libcurl="no"
15014 else
15015         LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
15016         LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
15017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15018 $as_echo "yes" >&6; }
15019         have_libcurl="yes"
15020 fi
15021
15022    if ! test "x${have_libcurl}" = "xyes" ; then
15023       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl library not found. OpenJPIP server will not be compiled." >&5
15024 $as_echo "$as_me: WARNING: libcurl library not found. OpenJPIP server will not be compiled." >&2;}
15025       want_jpip_server="no"
15026    fi
15027
15028 fi
15029
15030 if test "x${want_jpip}" = "xyes" ; then
15031
15032 $as_echo "#define USE_JPIP 1" >>confdefs.h
15033
15034 fi
15035
15036  if test "x${want_jpip}" = "xyes"; then
15037   WANT_JPIP_TRUE=
15038   WANT_JPIP_FALSE='#'
15039 else
15040   WANT_JPIP_TRUE='#'
15041   WANT_JPIP_FALSE=
15042 fi
15043
15044
15045 if test "x${want_jpip_server}" = "xyes" ; then
15046
15047 $as_echo "#define USE_JPIP_SERVER 1" >>confdefs.h
15048
15049 fi
15050
15051  if test "x${want_jpip_server}" = "xyes"; then
15052   WANT_JPIP_SERVER_TRUE=
15053   WANT_JPIP_SERVER_FALSE='#'
15054 else
15055   WANT_JPIP_SERVER_TRUE='#'
15056   WANT_JPIP_SERVER_FALSE=
15057 fi
15058
15059
15060  if test "x${want_jpip}" = "xyes" || test "x${want_jpip_server}" = "xyes"; then
15061   WANT_JPIP_CODE_TRUE=
15062   WANT_JPIP_CODE_FALSE='#'
15063 else
15064   WANT_JPIP_CODE_TRUE='#'
15065   WANT_JPIP_CODE_FALSE=
15066 fi
15067
15068
15069 ### Checks for header files
15070
15071 ## FIXME: declarations must be fixed in source code. See autoconf manual
15072 ac_header_dirent=no
15073 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15074   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15076 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
15078   $as_echo_n "(cached) " >&6
15079 else
15080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h.  */
15082 #include <sys/types.h>
15083 #include <$ac_hdr>
15084
15085 int
15086 main ()
15087 {
15088 if ((DIR *) 0)
15089 return 0;
15090   ;
15091   return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095   eval "$as_ac_Header=yes"
15096 else
15097   eval "$as_ac_Header=no"
15098 fi
15099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15100 fi
15101 eval ac_res=\$$as_ac_Header
15102                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15103 $as_echo "$ac_res" >&6; }
15104 eval as_val=\$$as_ac_Header
15105    if test "x$as_val" = x""yes; then :
15106   cat >>confdefs.h <<_ACEOF
15107 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15108 _ACEOF
15109
15110 ac_header_dirent=$ac_hdr; break
15111 fi
15112
15113 done
15114 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15115 if test $ac_header_dirent = dirent.h; then
15116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15117 $as_echo_n "checking for library containing opendir... " >&6; }
15118 if test "${ac_cv_search_opendir+set}" = set; then :
15119   $as_echo_n "(cached) " >&6
15120 else
15121   ac_func_search_save_LIBS=$LIBS
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h.  */
15124
15125 /* Override any GCC internal prototype to avoid an error.
15126    Use char because int might match the return type of a GCC
15127    builtin and then its argument prototype would still apply.  */
15128 #ifdef __cplusplus
15129 extern "C"
15130 #endif
15131 char opendir ();
15132 int
15133 main ()
15134 {
15135 return opendir ();
15136   ;
15137   return 0;
15138 }
15139 _ACEOF
15140 for ac_lib in '' dir; do
15141   if test -z "$ac_lib"; then
15142     ac_res="none required"
15143   else
15144     ac_res=-l$ac_lib
15145     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15146   fi
15147   if ac_fn_c_try_link "$LINENO"; then :
15148   ac_cv_search_opendir=$ac_res
15149 fi
15150 rm -f core conftest.err conftest.$ac_objext \
15151     conftest$ac_exeext
15152   if test "${ac_cv_search_opendir+set}" = set; then :
15153   break
15154 fi
15155 done
15156 if test "${ac_cv_search_opendir+set}" = set; then :
15157
15158 else
15159   ac_cv_search_opendir=no
15160 fi
15161 rm conftest.$ac_ext
15162 LIBS=$ac_func_search_save_LIBS
15163 fi
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15165 $as_echo "$ac_cv_search_opendir" >&6; }
15166 ac_res=$ac_cv_search_opendir
15167 if test "$ac_res" != no; then :
15168   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15169
15170 fi
15171
15172 else
15173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15174 $as_echo_n "checking for library containing opendir... " >&6; }
15175 if test "${ac_cv_search_opendir+set}" = set; then :
15176   $as_echo_n "(cached) " >&6
15177 else
15178   ac_func_search_save_LIBS=$LIBS
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h.  */
15181
15182 /* Override any GCC internal prototype to avoid an error.
15183    Use char because int might match the return type of a GCC
15184    builtin and then its argument prototype would still apply.  */
15185 #ifdef __cplusplus
15186 extern "C"
15187 #endif
15188 char opendir ();
15189 int
15190 main ()
15191 {
15192 return opendir ();
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 for ac_lib in '' x; do
15198   if test -z "$ac_lib"; then
15199     ac_res="none required"
15200   else
15201     ac_res=-l$ac_lib
15202     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15203   fi
15204   if ac_fn_c_try_link "$LINENO"; then :
15205   ac_cv_search_opendir=$ac_res
15206 fi
15207 rm -f core conftest.err conftest.$ac_objext \
15208     conftest$ac_exeext
15209   if test "${ac_cv_search_opendir+set}" = set; then :
15210   break
15211 fi
15212 done
15213 if test "${ac_cv_search_opendir+set}" = set; then :
15214
15215 else
15216   ac_cv_search_opendir=no
15217 fi
15218 rm conftest.$ac_ext
15219 LIBS=$ac_func_search_save_LIBS
15220 fi
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15222 $as_echo "$ac_cv_search_opendir" >&6; }
15223 ac_res=$ac_cv_search_opendir
15224 if test "$ac_res" != no; then :
15225   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15226
15227 fi
15228
15229 fi
15230
15231
15232
15233 ### Checks for types
15234
15235
15236 ### Checks for structures
15237
15238
15239 ### Checks for compiler characteristics
15240
15241 if test "x$CC" != xcc; then
15242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
15243 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15244 else
15245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
15246 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15247 fi
15248 set dummy $CC; ac_cc=`$as_echo "$2" |
15249                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15250 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
15251   $as_echo_n "(cached) " >&6
15252 else
15253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h.  */
15255
15256 int
15257 main ()
15258 {
15259
15260   ;
15261   return 0;
15262 }
15263 _ACEOF
15264 # Make sure it works both with $CC and with simple cc.
15265 # We do the test twice because some compilers refuse to overwrite an
15266 # existing .o file with -o, though they will create one.
15267 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15268 rm -f conftest2.*
15269 if { { case "(($ac_try" in
15270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271   *) ac_try_echo=$ac_try;;
15272 esac
15273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15274 $as_echo "$ac_try_echo"; } >&5
15275   (eval "$ac_try") 2>&5
15276   ac_status=$?
15277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15278   test $ac_status = 0; } &&
15279    test -f conftest2.$ac_objext && { { case "(($ac_try" in
15280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281   *) ac_try_echo=$ac_try;;
15282 esac
15283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15284 $as_echo "$ac_try_echo"; } >&5
15285   (eval "$ac_try") 2>&5
15286   ac_status=$?
15287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15288   test $ac_status = 0; };
15289 then
15290   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15291   if test "x$CC" != xcc; then
15292     # Test first that cc exists at all.
15293     if { ac_try='cc -c conftest.$ac_ext >&5'
15294   { { case "(($ac_try" in
15295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296   *) ac_try_echo=$ac_try;;
15297 esac
15298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15299 $as_echo "$ac_try_echo"; } >&5
15300   (eval "$ac_try") 2>&5
15301   ac_status=$?
15302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15303   test $ac_status = 0; }; }; then
15304       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15305       rm -f conftest2.*
15306       if { { case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15311 $as_echo "$ac_try_echo"; } >&5
15312   (eval "$ac_try") 2>&5
15313   ac_status=$?
15314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15315   test $ac_status = 0; } &&
15316          test -f conftest2.$ac_objext && { { case "(($ac_try" in
15317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318   *) ac_try_echo=$ac_try;;
15319 esac
15320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15321 $as_echo "$ac_try_echo"; } >&5
15322   (eval "$ac_try") 2>&5
15323   ac_status=$?
15324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15325   test $ac_status = 0; };
15326       then
15327         # cc works too.
15328         :
15329       else
15330         # cc exists but doesn't like -o.
15331         eval ac_cv_prog_cc_${ac_cc}_c_o=no
15332       fi
15333     fi
15334   fi
15335 else
15336   eval ac_cv_prog_cc_${ac_cc}_c_o=no
15337 fi
15338 rm -f core conftest*
15339
15340 fi
15341 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15343 $as_echo "yes" >&6; }
15344 else
15345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15346 $as_echo "no" >&6; }
15347
15348 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
15349
15350 fi
15351
15352 # FIXME: we rely on the cache variable name because
15353 # there is no other way.
15354 set dummy $CC
15355 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15356 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15357 if test "$am_t" != yes; then
15358    # Losing compiler, so override with the script.
15359    # FIXME: It is wrong to rewrite CC.
15360    # But if we don't then we get into trouble of one sort or another.
15361    # A longer-term fix would be to have automake use am__CC in this case,
15362    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15363    CC="$am_aux_dir/compile $CC"
15364 fi
15365
15366
15367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15368 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15369 if test "${ac_cv_c_bigendian+set}" = set; then :
15370   $as_echo_n "(cached) " >&6
15371 else
15372   ac_cv_c_bigendian=unknown
15373     # See if we're dealing with a universal compiler.
15374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h.  */
15376 #ifndef __APPLE_CC__
15377                not a universal capable compiler
15378              #endif
15379              typedef int dummy;
15380
15381 _ACEOF
15382 if ac_fn_c_try_compile "$LINENO"; then :
15383
15384         # Check for potential -arch flags.  It is not universal unless
15385         # there are at least two -arch flags with different values.
15386         ac_arch=
15387         ac_prev=
15388         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15389          if test -n "$ac_prev"; then
15390            case $ac_word in
15391              i?86 | x86_64 | ppc | ppc64)
15392                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15393                  ac_arch=$ac_word
15394                else
15395                  ac_cv_c_bigendian=universal
15396                  break
15397                fi
15398                ;;
15399            esac
15400            ac_prev=
15401          elif test "x$ac_word" = "x-arch"; then
15402            ac_prev=arch
15403          fi
15404        done
15405 fi
15406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407     if test $ac_cv_c_bigendian = unknown; then
15408       # See if sys/param.h defines the BYTE_ORDER macro.
15409       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h.  */
15411 #include <sys/types.h>
15412              #include <sys/param.h>
15413
15414 int
15415 main ()
15416 {
15417 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15418                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15419                      && LITTLE_ENDIAN)
15420               bogus endian macros
15421              #endif
15422
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 if ac_fn_c_try_compile "$LINENO"; then :
15428   # It does; now see whether it defined to BIG_ENDIAN or not.
15429          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h.  */
15431 #include <sys/types.h>
15432                 #include <sys/param.h>
15433
15434 int
15435 main ()
15436 {
15437 #if BYTE_ORDER != BIG_ENDIAN
15438                  not big endian
15439                 #endif
15440
15441   ;
15442   return 0;
15443 }
15444 _ACEOF
15445 if ac_fn_c_try_compile "$LINENO"; then :
15446   ac_cv_c_bigendian=yes
15447 else
15448   ac_cv_c_bigendian=no
15449 fi
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 fi
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453     fi
15454     if test $ac_cv_c_bigendian = unknown; then
15455       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h.  */
15458 #include <limits.h>
15459
15460 int
15461 main ()
15462 {
15463 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15464               bogus endian macros
15465              #endif
15466
15467   ;
15468   return 0;
15469 }
15470 _ACEOF
15471 if ac_fn_c_try_compile "$LINENO"; then :
15472   # It does; now see whether it defined to _BIG_ENDIAN or not.
15473          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h.  */
15475 #include <limits.h>
15476
15477 int
15478 main ()
15479 {
15480 #ifndef _BIG_ENDIAN
15481                  not big endian
15482                 #endif
15483
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 if ac_fn_c_try_compile "$LINENO"; then :
15489   ac_cv_c_bigendian=yes
15490 else
15491   ac_cv_c_bigendian=no
15492 fi
15493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15494 fi
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496     fi
15497     if test $ac_cv_c_bigendian = unknown; then
15498       # Compile a test program.
15499       if test "$cross_compiling" = yes; then :
15500   # Try to guess by grepping values from an object file.
15501          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h.  */
15503 short int ascii_mm[] =
15504                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15505                 short int ascii_ii[] =
15506                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15507                 int use_ascii (int i) {
15508                   return ascii_mm[i] + ascii_ii[i];
15509                 }
15510                 short int ebcdic_ii[] =
15511                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15512                 short int ebcdic_mm[] =
15513                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15514                 int use_ebcdic (int i) {
15515                   return ebcdic_mm[i] + ebcdic_ii[i];
15516                 }
15517                 extern int foo;
15518
15519 int
15520 main ()
15521 {
15522 return use_ascii (foo) == use_ebcdic (foo);
15523   ;
15524   return 0;
15525 }
15526 _ACEOF
15527 if ac_fn_c_try_compile "$LINENO"; then :
15528   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15529               ac_cv_c_bigendian=yes
15530             fi
15531             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15532               if test "$ac_cv_c_bigendian" = unknown; then
15533                 ac_cv_c_bigendian=no
15534               else
15535                 # finding both strings is unlikely to happen, but who knows?
15536                 ac_cv_c_bigendian=unknown
15537               fi
15538             fi
15539 fi
15540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541 else
15542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h.  */
15544 $ac_includes_default
15545 int
15546 main ()
15547 {
15548
15549              /* Are we little or big endian?  From Harbison&Steele.  */
15550              union
15551              {
15552                long int l;
15553                char c[sizeof (long int)];
15554              } u;
15555              u.l = 1;
15556              return u.c[sizeof (long int) - 1] == 1;
15557
15558   ;
15559   return 0;
15560 }
15561 _ACEOF
15562 if ac_fn_c_try_run "$LINENO"; then :
15563   ac_cv_c_bigendian=no
15564 else
15565   ac_cv_c_bigendian=yes
15566 fi
15567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15568   conftest.$ac_objext conftest.beam conftest.$ac_ext
15569 fi
15570
15571     fi
15572 fi
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15574 $as_echo "$ac_cv_c_bigendian" >&6; }
15575  case $ac_cv_c_bigendian in #(
15576    yes)
15577      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15578 ;; #(
15579    no)
15580       ;; #(
15581    universal)
15582
15583 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15584
15585      ;; #(
15586    *)
15587      as_fn_error "unknown endianness
15588  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15589  esac
15590
15591
15592 #OPJ_COMPILER_FLAG([-Wall])
15593 #OPJ_COMPILER_FLAG([-Wextra])
15594 #OPJ_COMPILER_FLAG([-Wshadow])
15595 #OPJ_COMPILER_FLAG([-Wpointer-arith])
15596
15597
15598 CFLAGS_save="${CFLAGS}"
15599 CFLAGS="${CFLAGS} -Wno-unused-result"
15600
15601 ac_ext=c
15602 ac_cpp='$CPP $CPPFLAGS'
15603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15606
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-unused-result" >&5
15608 $as_echo_n "checking whether the compiler supports -Wno-unused-result... " >&6; }
15609
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h.  */
15612
15613 int
15614 main ()
15615 {
15616
15617   ;
15618   return 0;
15619 }
15620 _ACEOF
15621 if ac_fn_c_try_compile "$LINENO"; then :
15622   have_flag="yes"
15623 else
15624   have_flag="no"
15625 fi
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
15628 $as_echo "${have_flag}" >&6; }
15629
15630 if test "x${have_flag}" = "xno" ; then
15631    CFLAGS="${CFLAGS_save}"
15632 fi
15633 ac_ext=c
15634 ac_cpp='$CPP $CPPFLAGS'
15635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15638
15639
15640
15641
15642 if test "x${want_debug}" = "xyes" ; then
15643
15644
15645 CFLAGS_save="${CFLAGS}"
15646 CFLAGS="${CFLAGS} -g"
15647
15648 ac_ext=c
15649 ac_cpp='$CPP $CPPFLAGS'
15650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15653
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -g" >&5
15655 $as_echo_n "checking whether the compiler supports -g... " >&6; }
15656
15657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h.  */
15659
15660 int
15661 main ()
15662 {
15663
15664   ;
15665   return 0;
15666 }
15667 _ACEOF
15668 if ac_fn_c_try_compile "$LINENO"; then :
15669   have_flag="yes"
15670 else
15671   have_flag="no"
15672 fi
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
15675 $as_echo "${have_flag}" >&6; }
15676
15677 if test "x${have_flag}" = "xno" ; then
15678    CFLAGS="${CFLAGS_save}"
15679 fi
15680 ac_ext=c
15681 ac_cpp='$CPP $CPPFLAGS'
15682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15685
15686
15687
15688
15689
15690 CFLAGS_save="${CFLAGS}"
15691 CFLAGS="${CFLAGS} -O0"
15692
15693 ac_ext=c
15694 ac_cpp='$CPP $CPPFLAGS'
15695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15698
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -O0" >&5
15700 $as_echo_n "checking whether the compiler supports -O0... " >&6; }
15701
15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h.  */
15704
15705 int
15706 main ()
15707 {
15708
15709   ;
15710   return 0;
15711 }
15712 _ACEOF
15713 if ac_fn_c_try_compile "$LINENO"; then :
15714   have_flag="yes"
15715 else
15716   have_flag="no"
15717 fi
15718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
15720 $as_echo "${have_flag}" >&6; }
15721
15722 if test "x${have_flag}" = "xno" ; then
15723    CFLAGS="${CFLAGS_save}"
15724 fi
15725 ac_ext=c
15726 ac_cpp='$CPP $CPPFLAGS'
15727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15730
15731
15732
15733 else
15734
15735
15736 CFLAGS_save="${CFLAGS}"
15737 CFLAGS="${CFLAGS} -O3"
15738
15739 ac_ext=c
15740 ac_cpp='$CPP $CPPFLAGS'
15741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15744
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -O3" >&5
15746 $as_echo_n "checking whether the compiler supports -O3... " >&6; }
15747
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h.  */
15750
15751 int
15752 main ()
15753 {
15754
15755   ;
15756   return 0;
15757 }
15758 _ACEOF
15759 if ac_fn_c_try_compile "$LINENO"; then :
15760   have_flag="yes"
15761 else
15762   have_flag="no"
15763 fi
15764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
15766 $as_echo "${have_flag}" >&6; }
15767
15768 if test "x${have_flag}" = "xno" ; then
15769    CFLAGS="${CFLAGS_save}"
15770 fi
15771 ac_ext=c
15772 ac_cpp='$CPP $CPPFLAGS'
15773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15776
15777
15778
15779 fi
15780
15781
15782 ### Checks for linker characteristics
15783
15784
15785 ### Checks for library functions
15786
15787
15788 ### Post configuration
15789
15790  if test "x${enable_shared}" = "xyes"; then
15791   BUILD_SHARED_TRUE=
15792   BUILD_SHARED_FALSE='#'
15793 else
15794   BUILD_SHARED_TRUE='#'
15795   BUILD_SHARED_FALSE=
15796 fi
15797
15798  if test "x${enable_static}" = "xyes"; then
15799   BUILD_STATIC_TRUE=
15800   BUILD_STATIC_FALSE='#'
15801 else
15802   BUILD_STATIC_TRUE='#'
15803   BUILD_STATIC_FALSE=
15804 fi
15805
15806
15807
15808 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"
15809
15810
15811 cat >confcache <<\_ACEOF
15812 # This file is a shell script that caches the results of configure
15813 # tests run on this system so they can be shared between configure
15814 # scripts and configure runs, see configure's option --config-cache.
15815 # It is not useful on other systems.  If it contains results you don't
15816 # want to keep, you may remove or edit it.
15817 #
15818 # config.status only pays attention to the cache file if you give it
15819 # the --recheck option to rerun configure.
15820 #
15821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15823 # following values.
15824
15825 _ACEOF
15826
15827 # The following way of writing the cache mishandles newlines in values,
15828 # but we know of no workaround that is simple, portable, and efficient.
15829 # So, we kill variables containing newlines.
15830 # Ultrix sh set writes to stderr and can't be redirected directly,
15831 # and sets the high bit in the cache file unless we assign to the vars.
15832 (
15833   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15834     eval ac_val=\$$ac_var
15835     case $ac_val in #(
15836     *${as_nl}*)
15837       case $ac_var in #(
15838       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15839 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15840       esac
15841       case $ac_var in #(
15842       _ | IFS | as_nl) ;; #(
15843       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15844       *) { eval $ac_var=; unset $ac_var;} ;;
15845       esac ;;
15846     esac
15847   done
15848
15849   (set) 2>&1 |
15850     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15851     *${as_nl}ac_space=\ *)
15852       # `set' does not quote correctly, so add quotes: double-quote
15853       # substitution turns \\\\ into \\, and sed turns \\ into \.
15854       sed -n \
15855         "s/'/'\\\\''/g;
15856           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15857       ;; #(
15858     *)
15859       # `set' quotes correctly as required by POSIX, so do not add quotes.
15860       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15861       ;;
15862     esac |
15863     sort
15864 ) |
15865   sed '
15866      /^ac_cv_env_/b end
15867      t clear
15868      :clear
15869      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15870      t end
15871      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15872      :end' >>confcache
15873 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15874   if test -w "$cache_file"; then
15875     test "x$cache_file" != "x/dev/null" &&
15876       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15877 $as_echo "$as_me: updating cache $cache_file" >&6;}
15878     cat confcache >$cache_file
15879   else
15880     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15881 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15882   fi
15883 fi
15884 rm -f confcache
15885
15886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15887 # Let make expand exec_prefix.
15888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15889
15890 DEFS=-DHAVE_CONFIG_H
15891
15892 ac_libobjs=
15893 ac_ltlibobjs=
15894 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15895   # 1. Remove the extension, and $U if already installed.
15896   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15897   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15898   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15899   #    will be set to the directory where LIBOBJS objects are built.
15900   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15901   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15902 done
15903 LIBOBJS=$ac_libobjs
15904
15905 LTLIBOBJS=$ac_ltlibobjs
15906
15907
15908  if test -n "$EXEEXT"; then
15909   am__EXEEXT_TRUE=
15910   am__EXEEXT_FALSE='#'
15911 else
15912   am__EXEEXT_TRUE='#'
15913   am__EXEEXT_FALSE=
15914 fi
15915
15916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15917   as_fn_error "conditional \"AMDEP\" was never defined.
15918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15919 fi
15920 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15921   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15923 fi
15924 if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
15925   as_fn_error "conditional \"HAVE_WIN32\" was never defined.
15926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15927 fi
15928 if test -z "${HAVE_DARWIN_TRUE}" && test -z "${HAVE_DARWIN_FALSE}"; then
15929   as_fn_error "conditional \"HAVE_DARWIN\" was never defined.
15930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15931 fi
15932 if test -z "${WANT_MJ2_TRUE}" && test -z "${WANT_MJ2_FALSE}"; then
15933   as_fn_error "conditional \"WANT_MJ2\" was never defined.
15934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15935 fi
15936 if test -z "${WANT_JPWL_TRUE}" && test -z "${WANT_JPWL_FALSE}"; then
15937   as_fn_error "conditional \"WANT_JPWL\" was never defined.
15938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15939 fi
15940 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15941   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15943 fi
15944 if test -z "${OPJ_BUILD_DOC_TRUE}" && test -z "${OPJ_BUILD_DOC_FALSE}"; then
15945   as_fn_error "conditional \"OPJ_BUILD_DOC\" was never defined.
15946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15947 fi
15948 if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
15949   as_fn_error "conditional \"with_libpng\" was never defined.
15950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15951 fi
15952 if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
15953   as_fn_error "conditional \"with_libtiff\" was never defined.
15954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15955 fi
15956 if test -z "${WANT_JPIP_TRUE}" && test -z "${WANT_JPIP_FALSE}"; then
15957   as_fn_error "conditional \"WANT_JPIP\" was never defined.
15958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15959 fi
15960 if test -z "${WANT_JPIP_SERVER_TRUE}" && test -z "${WANT_JPIP_SERVER_FALSE}"; then
15961   as_fn_error "conditional \"WANT_JPIP_SERVER\" was never defined.
15962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15963 fi
15964 if test -z "${WANT_JPIP_CODE_TRUE}" && test -z "${WANT_JPIP_CODE_FALSE}"; then
15965   as_fn_error "conditional \"WANT_JPIP_CODE\" was never defined.
15966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15967 fi
15968
15969 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
15970   as_fn_error "conditional \"BUILD_SHARED\" was never defined.
15971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15972 fi
15973 if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then
15974   as_fn_error "conditional \"BUILD_STATIC\" was never defined.
15975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15976 fi
15977
15978 : ${CONFIG_STATUS=./config.status}
15979 ac_write_fail=0
15980 ac_clean_files_save=$ac_clean_files
15981 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15983 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15984 as_write_fail=0
15985 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15986 #! $SHELL
15987 # Generated by $as_me.
15988 # Run this file to recreate the current configuration.
15989 # Compiler output produced by configure, useful for debugging
15990 # configure, is in config.log if it exists.
15991
15992 debug=false
15993 ac_cs_recheck=false
15994 ac_cs_silent=false
15995
15996 SHELL=\${CONFIG_SHELL-$SHELL}
15997 export SHELL
15998 _ASEOF
15999 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16000 ## -------------------- ##
16001 ## M4sh Initialization. ##
16002 ## -------------------- ##
16003
16004 # Be more Bourne compatible
16005 DUALCASE=1; export DUALCASE # for MKS sh
16006 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16007   emulate sh
16008   NULLCMD=:
16009   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16010   # is contrary to our usage.  Disable this feature.
16011   alias -g '${1+"$@"}'='"$@"'
16012   setopt NO_GLOB_SUBST
16013 else
16014   case `(set -o) 2>/dev/null` in #(
16015   *posix*) :
16016     set -o posix ;; #(
16017   *) :
16018      ;;
16019 esac
16020 fi
16021
16022
16023 as_nl='
16024 '
16025 export as_nl
16026 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16027 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16028 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16029 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16030 # Prefer a ksh shell builtin over an external printf program on Solaris,
16031 # but without wasting forks for bash or zsh.
16032 if test -z "$BASH_VERSION$ZSH_VERSION" \
16033     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16034   as_echo='print -r --'
16035   as_echo_n='print -rn --'
16036 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16037   as_echo='printf %s\n'
16038   as_echo_n='printf %s'
16039 else
16040   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16041     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16042     as_echo_n='/usr/ucb/echo -n'
16043   else
16044     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16045     as_echo_n_body='eval
16046       arg=$1;
16047       case $arg in #(
16048       *"$as_nl"*)
16049         expr "X$arg" : "X\\(.*\\)$as_nl";
16050         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16051       esac;
16052       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16053     '
16054     export as_echo_n_body
16055     as_echo_n='sh -c $as_echo_n_body as_echo'
16056   fi
16057   export as_echo_body
16058   as_echo='sh -c $as_echo_body as_echo'
16059 fi
16060
16061 # The user is always right.
16062 if test "${PATH_SEPARATOR+set}" != set; then
16063   PATH_SEPARATOR=:
16064   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16065     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16066       PATH_SEPARATOR=';'
16067   }
16068 fi
16069
16070
16071 # IFS
16072 # We need space, tab and new line, in precisely that order.  Quoting is
16073 # there to prevent editors from complaining about space-tab.
16074 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16075 # splitting by setting IFS to empty value.)
16076 IFS=" ""        $as_nl"
16077
16078 # Find who we are.  Look in the path if we contain no directory separator.
16079 case $0 in #((
16080   *[\\/]* ) as_myself=$0 ;;
16081   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16082 for as_dir in $PATH
16083 do
16084   IFS=$as_save_IFS
16085   test -z "$as_dir" && as_dir=.
16086     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16087   done
16088 IFS=$as_save_IFS
16089
16090      ;;
16091 esac
16092 # We did not find ourselves, most probably we were run as `sh COMMAND'
16093 # in which case we are not to be found in the path.
16094 if test "x$as_myself" = x; then
16095   as_myself=$0
16096 fi
16097 if test ! -f "$as_myself"; then
16098   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16099   exit 1
16100 fi
16101
16102 # Unset variables that we do not need and which cause bugs (e.g. in
16103 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16104 # suppresses any "Segmentation fault" message there.  '((' could
16105 # trigger a bug in pdksh 5.2.14.
16106 for as_var in BASH_ENV ENV MAIL MAILPATH
16107 do eval test x\${$as_var+set} = xset \
16108   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16109 done
16110 PS1='$ '
16111 PS2='> '
16112 PS4='+ '
16113
16114 # NLS nuisances.
16115 LC_ALL=C
16116 export LC_ALL
16117 LANGUAGE=C
16118 export LANGUAGE
16119
16120 # CDPATH.
16121 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16122
16123
16124 # as_fn_error ERROR [LINENO LOG_FD]
16125 # ---------------------------------
16126 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16127 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16128 # script with status $?, using 1 if that was 0.
16129 as_fn_error ()
16130 {
16131   as_status=$?; test $as_status -eq 0 && as_status=1
16132   if test "$3"; then
16133     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16134     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16135   fi
16136   $as_echo "$as_me: error: $1" >&2
16137   as_fn_exit $as_status
16138 } # as_fn_error
16139
16140
16141 # as_fn_set_status STATUS
16142 # -----------------------
16143 # Set $? to STATUS, without forking.
16144 as_fn_set_status ()
16145 {
16146   return $1
16147 } # as_fn_set_status
16148
16149 # as_fn_exit STATUS
16150 # -----------------
16151 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16152 as_fn_exit ()
16153 {
16154   set +e
16155   as_fn_set_status $1
16156   exit $1
16157 } # as_fn_exit
16158
16159 # as_fn_unset VAR
16160 # ---------------
16161 # Portably unset VAR.
16162 as_fn_unset ()
16163 {
16164   { eval $1=; unset $1;}
16165 }
16166 as_unset=as_fn_unset
16167 # as_fn_append VAR VALUE
16168 # ----------------------
16169 # Append the text in VALUE to the end of the definition contained in VAR. Take
16170 # advantage of any shell optimizations that allow amortized linear growth over
16171 # repeated appends, instead of the typical quadratic growth present in naive
16172 # implementations.
16173 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16174   eval 'as_fn_append ()
16175   {
16176     eval $1+=\$2
16177   }'
16178 else
16179   as_fn_append ()
16180   {
16181     eval $1=\$$1\$2
16182   }
16183 fi # as_fn_append
16184
16185 # as_fn_arith ARG...
16186 # ------------------
16187 # Perform arithmetic evaluation on the ARGs, and store the result in the
16188 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16189 # must be portable across $(()) and expr.
16190 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16191   eval 'as_fn_arith ()
16192   {
16193     as_val=$(( $* ))
16194   }'
16195 else
16196   as_fn_arith ()
16197   {
16198     as_val=`expr "$@" || test $? -eq 1`
16199   }
16200 fi # as_fn_arith
16201
16202
16203 if expr a : '\(a\)' >/dev/null 2>&1 &&
16204    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16205   as_expr=expr
16206 else
16207   as_expr=false
16208 fi
16209
16210 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16211   as_basename=basename
16212 else
16213   as_basename=false
16214 fi
16215
16216 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16217   as_dirname=dirname
16218 else
16219   as_dirname=false
16220 fi
16221
16222 as_me=`$as_basename -- "$0" ||
16223 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16224          X"$0" : 'X\(//\)$' \| \
16225          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16226 $as_echo X/"$0" |
16227     sed '/^.*\/\([^/][^/]*\)\/*$/{
16228             s//\1/
16229             q
16230           }
16231           /^X\/\(\/\/\)$/{
16232             s//\1/
16233             q
16234           }
16235           /^X\/\(\/\).*/{
16236             s//\1/
16237             q
16238           }
16239           s/.*/./; q'`
16240
16241 # Avoid depending upon Character Ranges.
16242 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16243 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16244 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16245 as_cr_digits='0123456789'
16246 as_cr_alnum=$as_cr_Letters$as_cr_digits
16247
16248 ECHO_C= ECHO_N= ECHO_T=
16249 case `echo -n x` in #(((((
16250 -n*)
16251   case `echo 'xy\c'` in
16252   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16253   xy)  ECHO_C='\c';;
16254   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16255        ECHO_T=' ';;
16256   esac;;
16257 *)
16258   ECHO_N='-n';;
16259 esac
16260
16261 rm -f conf$$ conf$$.exe conf$$.file
16262 if test -d conf$$.dir; then
16263   rm -f conf$$.dir/conf$$.file
16264 else
16265   rm -f conf$$.dir
16266   mkdir conf$$.dir 2>/dev/null
16267 fi
16268 if (echo >conf$$.file) 2>/dev/null; then
16269   if ln -s conf$$.file conf$$ 2>/dev/null; then
16270     as_ln_s='ln -s'
16271     # ... but there are two gotchas:
16272     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16273     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16274     # In both cases, we have to default to `cp -p'.
16275     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16276       as_ln_s='cp -p'
16277   elif ln conf$$.file conf$$ 2>/dev/null; then
16278     as_ln_s=ln
16279   else
16280     as_ln_s='cp -p'
16281   fi
16282 else
16283   as_ln_s='cp -p'
16284 fi
16285 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16286 rmdir conf$$.dir 2>/dev/null
16287
16288
16289 # as_fn_mkdir_p
16290 # -------------
16291 # Create "$as_dir" as a directory, including parents if necessary.
16292 as_fn_mkdir_p ()
16293 {
16294
16295   case $as_dir in #(
16296   -*) as_dir=./$as_dir;;
16297   esac
16298   test -d "$as_dir" || eval $as_mkdir_p || {
16299     as_dirs=
16300     while :; do
16301       case $as_dir in #(
16302       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16303       *) as_qdir=$as_dir;;
16304       esac
16305       as_dirs="'$as_qdir' $as_dirs"
16306       as_dir=`$as_dirname -- "$as_dir" ||
16307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308          X"$as_dir" : 'X\(//\)[^/]' \| \
16309          X"$as_dir" : 'X\(//\)$' \| \
16310          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16311 $as_echo X"$as_dir" |
16312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16313             s//\1/
16314             q
16315           }
16316           /^X\(\/\/\)[^/].*/{
16317             s//\1/
16318             q
16319           }
16320           /^X\(\/\/\)$/{
16321             s//\1/
16322             q
16323           }
16324           /^X\(\/\).*/{
16325             s//\1/
16326             q
16327           }
16328           s/.*/./; q'`
16329       test -d "$as_dir" && break
16330     done
16331     test -z "$as_dirs" || eval "mkdir $as_dirs"
16332   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16333
16334
16335 } # as_fn_mkdir_p
16336 if mkdir -p . 2>/dev/null; then
16337   as_mkdir_p='mkdir -p "$as_dir"'
16338 else
16339   test -d ./-p && rmdir ./-p
16340   as_mkdir_p=false
16341 fi
16342
16343 if test -x / >/dev/null 2>&1; then
16344   as_test_x='test -x'
16345 else
16346   if ls -dL / >/dev/null 2>&1; then
16347     as_ls_L_option=L
16348   else
16349     as_ls_L_option=
16350   fi
16351   as_test_x='
16352     eval sh -c '\''
16353       if test -d "$1"; then
16354         test -d "$1/.";
16355       else
16356         case $1 in #(
16357         -*)set "./$1";;
16358         esac;
16359         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16360         ???[sx]*):;;*)false;;esac;fi
16361     '\'' sh
16362   '
16363 fi
16364 as_executable_p=$as_test_x
16365
16366 # Sed expression to map a string onto a valid CPP name.
16367 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16368
16369 # Sed expression to map a string onto a valid variable name.
16370 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16371
16372
16373 exec 6>&1
16374 ## ----------------------------------- ##
16375 ## Main body of $CONFIG_STATUS script. ##
16376 ## ----------------------------------- ##
16377 _ASEOF
16378 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16379
16380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16381 # Save the log message, to keep $0 and so on meaningful, and to
16382 # report actual input values of CONFIG_FILES etc. instead of their
16383 # values after options handling.
16384 ac_log="
16385 This file was extended by OpenJPEG $as_me 1.5.0, which was
16386 generated by GNU Autoconf 2.65.  Invocation command line was
16387
16388   CONFIG_FILES    = $CONFIG_FILES
16389   CONFIG_HEADERS  = $CONFIG_HEADERS
16390   CONFIG_LINKS    = $CONFIG_LINKS
16391   CONFIG_COMMANDS = $CONFIG_COMMANDS
16392   $ $0 $@
16393
16394 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16395 "
16396
16397 _ACEOF
16398
16399 case $ac_config_files in *"
16400 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16401 esac
16402
16403 case $ac_config_headers in *"
16404 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16405 esac
16406
16407
16408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16409 # Files that config.status was made for.
16410 config_files="$ac_config_files"
16411 config_headers="$ac_config_headers"
16412 config_commands="$ac_config_commands"
16413
16414 _ACEOF
16415
16416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16417 ac_cs_usage="\
16418 \`$as_me' instantiates files and other configuration actions
16419 from templates according to the current configuration.  Unless the files
16420 and actions are specified as TAGs, all are instantiated by default.
16421
16422 Usage: $0 [OPTION]... [TAG]...
16423
16424   -h, --help       print this help, then exit
16425   -V, --version    print version number and configuration settings, then exit
16426       --config     print configuration, then exit
16427   -q, --quiet, --silent
16428                    do not print progress messages
16429   -d, --debug      don't remove temporary files
16430       --recheck    update $as_me by reconfiguring in the same conditions
16431       --file=FILE[:TEMPLATE]
16432                    instantiate the configuration file FILE
16433       --header=FILE[:TEMPLATE]
16434                    instantiate the configuration header FILE
16435
16436 Configuration files:
16437 $config_files
16438
16439 Configuration headers:
16440 $config_headers
16441
16442 Configuration commands:
16443 $config_commands
16444
16445 Report bugs to <openjpeg@googlegroups.com>.
16446 OpenJPEG home page: <http://www.openjpeg.org>."
16447
16448 _ACEOF
16449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16450 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16451 ac_cs_version="\\
16452 OpenJPEG config.status 1.5.0
16453 configured by $0, generated by GNU Autoconf 2.65,
16454   with options \\"\$ac_cs_config\\"
16455
16456 Copyright (C) 2009 Free Software Foundation, Inc.
16457 This config.status script is free software; the Free Software Foundation
16458 gives unlimited permission to copy, distribute and modify it."
16459
16460 ac_pwd='$ac_pwd'
16461 srcdir='$srcdir'
16462 INSTALL='$INSTALL'
16463 MKDIR_P='$MKDIR_P'
16464 AWK='$AWK'
16465 test -n "\$AWK" || AWK=awk
16466 _ACEOF
16467
16468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16469 # The default lists apply if the user does not specify any file.
16470 ac_need_defaults=:
16471 while test $# != 0
16472 do
16473   case $1 in
16474   --*=*)
16475     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16476     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16477     ac_shift=:
16478     ;;
16479   *)
16480     ac_option=$1
16481     ac_optarg=$2
16482     ac_shift=shift
16483     ;;
16484   esac
16485
16486   case $ac_option in
16487   # Handling of the options.
16488   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16489     ac_cs_recheck=: ;;
16490   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16491     $as_echo "$ac_cs_version"; exit ;;
16492   --config | --confi | --conf | --con | --co | --c )
16493     $as_echo "$ac_cs_config"; exit ;;
16494   --debug | --debu | --deb | --de | --d | -d )
16495     debug=: ;;
16496   --file | --fil | --fi | --f )
16497     $ac_shift
16498     case $ac_optarg in
16499     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16500     esac
16501     as_fn_append CONFIG_FILES " '$ac_optarg'"
16502     ac_need_defaults=false;;
16503   --header | --heade | --head | --hea )
16504     $ac_shift
16505     case $ac_optarg in
16506     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16507     esac
16508     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16509     ac_need_defaults=false;;
16510   --he | --h)
16511     # Conflict between --help and --header
16512     as_fn_error "ambiguous option: \`$1'
16513 Try \`$0 --help' for more information.";;
16514   --help | --hel | -h )
16515     $as_echo "$ac_cs_usage"; exit ;;
16516   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16517   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16518     ac_cs_silent=: ;;
16519
16520   # This is an error.
16521   -*) as_fn_error "unrecognized option: \`$1'
16522 Try \`$0 --help' for more information." ;;
16523
16524   *) as_fn_append ac_config_targets " $1"
16525      ac_need_defaults=false ;;
16526
16527   esac
16528   shift
16529 done
16530
16531 ac_configure_extra_args=
16532
16533 if $ac_cs_silent; then
16534   exec 6>/dev/null
16535   ac_configure_extra_args="$ac_configure_extra_args --silent"
16536 fi
16537
16538 _ACEOF
16539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16540 if \$ac_cs_recheck; then
16541   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16542   shift
16543   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16544   CONFIG_SHELL='$SHELL'
16545   export CONFIG_SHELL
16546   exec "\$@"
16547 fi
16548
16549 _ACEOF
16550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16551 exec 5>>config.log
16552 {
16553   echo
16554   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16555 ## Running $as_me. ##
16556 _ASBOX
16557   $as_echo "$ac_log"
16558 } >&5
16559
16560 _ACEOF
16561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16562 #
16563 # INIT-COMMANDS
16564 #
16565 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16566
16567
16568 # The HP-UX ksh and POSIX shell print the target directory to stdout
16569 # if CDPATH is set.
16570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16571
16572 sed_quote_subst='$sed_quote_subst'
16573 double_quote_subst='$double_quote_subst'
16574 delay_variable_subst='$delay_variable_subst'
16575 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16576 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16577 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16578 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16579 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16580 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16581 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16582 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16583 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16584 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16585 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16586 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16587 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16588 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16589 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16590 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16591 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16592 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16593 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16594 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16595 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16596 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16597 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16598 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16599 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16600 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16601 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16602 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16603 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16604 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16605 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16606 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16607 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16608 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16609 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16610 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16611 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16612 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16613 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16614 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16615 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16616 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16617 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16618 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16619 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16620 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16621 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16622 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16623 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16624 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16625 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16626 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16627 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16628 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16629 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16630 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16631 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16632 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16633 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16634 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16635 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16636 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16637 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16638 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16639 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16640 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16641 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16642 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16643 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16644 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16645 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16646 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16647 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16648 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16649 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16650 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16651 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16652 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16653 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16654 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16655 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16656 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16657 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16658 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16659 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16660 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16661 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16662 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16663 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16664 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16665 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16666 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16667 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16668 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16669 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16670 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16671 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16672 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16673 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16674 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16675 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16676 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16677 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16678 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16679 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16680 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16681 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16682 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16683 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16684 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16685 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16686 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16687 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16688 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16689 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16690 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16691 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16692 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16693 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16694 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16695
16696 LTCC='$LTCC'
16697 LTCFLAGS='$LTCFLAGS'
16698 compiler='$compiler_DEFAULT'
16699
16700 # Quote evaled strings.
16701 for var in SED \
16702 GREP \
16703 EGREP \
16704 FGREP \
16705 LD \
16706 NM \
16707 LN_S \
16708 lt_SP2NL \
16709 lt_NL2SP \
16710 reload_flag \
16711 deplibs_check_method \
16712 file_magic_cmd \
16713 AR \
16714 AR_FLAGS \
16715 STRIP \
16716 RANLIB \
16717 CC \
16718 CFLAGS \
16719 compiler \
16720 lt_cv_sys_global_symbol_pipe \
16721 lt_cv_sys_global_symbol_to_cdecl \
16722 lt_cv_sys_global_symbol_to_c_name_address \
16723 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16724 SHELL \
16725 ECHO \
16726 lt_prog_compiler_no_builtin_flag \
16727 lt_prog_compiler_wl \
16728 lt_prog_compiler_pic \
16729 lt_prog_compiler_static \
16730 lt_cv_prog_compiler_c_o \
16731 need_locks \
16732 DSYMUTIL \
16733 NMEDIT \
16734 LIPO \
16735 OTOOL \
16736 OTOOL64 \
16737 shrext_cmds \
16738 export_dynamic_flag_spec \
16739 whole_archive_flag_spec \
16740 compiler_needs_object \
16741 with_gnu_ld \
16742 allow_undefined_flag \
16743 no_undefined_flag \
16744 hardcode_libdir_flag_spec \
16745 hardcode_libdir_flag_spec_ld \
16746 hardcode_libdir_separator \
16747 fix_srcfile_path \
16748 exclude_expsyms \
16749 include_expsyms \
16750 file_list_spec \
16751 variables_saved_for_relink \
16752 libname_spec \
16753 library_names_spec \
16754 soname_spec \
16755 finish_eval \
16756 old_striplib \
16757 striplib; do
16758     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16759     *[\\\\\\\`\\"\\\$]*)
16760       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16761       ;;
16762     *)
16763       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16764       ;;
16765     esac
16766 done
16767
16768 # Double-quote double-evaled strings.
16769 for var in reload_cmds \
16770 old_postinstall_cmds \
16771 old_postuninstall_cmds \
16772 old_archive_cmds \
16773 extract_expsyms_cmds \
16774 old_archive_from_new_cmds \
16775 old_archive_from_expsyms_cmds \
16776 archive_cmds \
16777 archive_expsym_cmds \
16778 module_cmds \
16779 module_expsym_cmds \
16780 export_symbols_cmds \
16781 prelink_cmds \
16782 postinstall_cmds \
16783 postuninstall_cmds \
16784 finish_cmds \
16785 sys_lib_search_path_spec \
16786 sys_lib_dlsearch_path_spec; do
16787     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16788     *[\\\\\\\`\\"\\\$]*)
16789       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16790       ;;
16791     *)
16792       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16793       ;;
16794     esac
16795 done
16796
16797 # Fix-up fallback echo if it was mangled by the above quoting rules.
16798 case \$lt_ECHO in
16799 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16800   ;;
16801 esac
16802
16803 ac_aux_dir='$ac_aux_dir'
16804 xsi_shell='$xsi_shell'
16805 lt_shell_append='$lt_shell_append'
16806
16807 # See if we are running on zsh, and set the options which allow our
16808 # commands through without removal of \ escapes INIT.
16809 if test -n "\${ZSH_VERSION+set}" ; then
16810    setopt NO_GLOB_SUBST
16811 fi
16812
16813
16814     PACKAGE='$PACKAGE'
16815     VERSION='$VERSION'
16816     TIMESTAMP='$TIMESTAMP'
16817     RM='$RM'
16818     ofile='$ofile'
16819
16820
16821
16822
16823 _ACEOF
16824
16825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16826
16827 # Handling of arguments.
16828 for ac_config_target in $ac_config_targets
16829 do
16830   case $ac_config_target in
16831     "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
16832     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16833     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16834     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16835     "libopenjpeg1.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg1.pc" ;;
16836     "libopenjpeg-jpwl.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg-jpwl.pc" ;;
16837     "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
16838     "libopenjpeg/jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/jpwl/Makefile" ;;
16839     "applications/Makefile") CONFIG_FILES="$CONFIG_FILES applications/Makefile" ;;
16840     "applications/codec/Makefile") CONFIG_FILES="$CONFIG_FILES applications/codec/Makefile" ;;
16841     "applications/mj2/Makefile") CONFIG_FILES="$CONFIG_FILES applications/mj2/Makefile" ;;
16842     "applications/jpip/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/Makefile" ;;
16843     "applications/jpip/libopenjpip/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/libopenjpip/Makefile" ;;
16844     "applications/jpip/util/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/util/Makefile" ;;
16845     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16846
16847   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16848   esac
16849 done
16850
16851
16852 # If the user did not use the arguments to specify the items to instantiate,
16853 # then the envvar interface is used.  Set only those that are not.
16854 # We use the long form for the default assignment because of an extremely
16855 # bizarre bug on SunOS 4.1.3.
16856 if $ac_need_defaults; then
16857   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16858   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16859   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16860 fi
16861
16862 # Have a temporary directory for convenience.  Make it in the build tree
16863 # simply because there is no reason against having it here, and in addition,
16864 # creating and moving files from /tmp can sometimes cause problems.
16865 # Hook for its removal unless debugging.
16866 # Note that there is a small window in which the directory will not be cleaned:
16867 # after its creation but before its name has been assigned to `$tmp'.
16868 $debug ||
16869 {
16870   tmp=
16871   trap 'exit_status=$?
16872   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16873 ' 0
16874   trap 'as_fn_exit 1' 1 2 13 15
16875 }
16876 # Create a (secure) tmp directory for tmp files.
16877
16878 {
16879   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16880   test -n "$tmp" && test -d "$tmp"
16881 }  ||
16882 {
16883   tmp=./conf$$-$RANDOM
16884   (umask 077 && mkdir "$tmp")
16885 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16886
16887 # Set up the scripts for CONFIG_FILES section.
16888 # No need to generate them if there are no CONFIG_FILES.
16889 # This happens for instance with `./config.status config.h'.
16890 if test -n "$CONFIG_FILES"; then
16891
16892
16893 ac_cr=`echo X | tr X '\015'`
16894 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16895 # But we know of no other shell where ac_cr would be empty at this
16896 # point, so we can use a bashism as a fallback.
16897 if test "x$ac_cr" = x; then
16898   eval ac_cr=\$\'\\r\'
16899 fi
16900 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16901 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16902   ac_cs_awk_cr='\r'
16903 else
16904   ac_cs_awk_cr=$ac_cr
16905 fi
16906
16907 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16908 _ACEOF
16909
16910
16911 {
16912   echo "cat >conf$$subs.awk <<_ACEOF" &&
16913   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16914   echo "_ACEOF"
16915 } >conf$$subs.sh ||
16916   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16917 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16918 ac_delim='%!_!# '
16919 for ac_last_try in false false false false false :; do
16920   . ./conf$$subs.sh ||
16921     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16922
16923   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16924   if test $ac_delim_n = $ac_delim_num; then
16925     break
16926   elif $ac_last_try; then
16927     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16928   else
16929     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16930   fi
16931 done
16932 rm -f conf$$subs.sh
16933
16934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16935 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16936 _ACEOF
16937 sed -n '
16938 h
16939 s/^/S["/; s/!.*/"]=/
16940 p
16941 g
16942 s/^[^!]*!//
16943 :repl
16944 t repl
16945 s/'"$ac_delim"'$//
16946 t delim
16947 :nl
16948 h
16949 s/\(.\{148\}\)..*/\1/
16950 t more1
16951 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16952 p
16953 n
16954 b repl
16955 :more1
16956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16957 p
16958 g
16959 s/.\{148\}//
16960 t nl
16961 :delim
16962 h
16963 s/\(.\{148\}\)..*/\1/
16964 t more2
16965 s/["\\]/\\&/g; s/^/"/; s/$/"/
16966 p
16967 b
16968 :more2
16969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16970 p
16971 g
16972 s/.\{148\}//
16973 t delim
16974 ' <conf$$subs.awk | sed '
16975 /^[^""]/{
16976   N
16977   s/\n//
16978 }
16979 ' >>$CONFIG_STATUS || ac_write_fail=1
16980 rm -f conf$$subs.awk
16981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16982 _ACAWK
16983 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16984   for (key in S) S_is_set[key] = 1
16985   FS = "\a"
16986
16987 }
16988 {
16989   line = $ 0
16990   nfields = split(line, field, "@")
16991   substed = 0
16992   len = length(field[1])
16993   for (i = 2; i < nfields; i++) {
16994     key = field[i]
16995     keylen = length(key)
16996     if (S_is_set[key]) {
16997       value = S[key]
16998       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16999       len += length(value) + length(field[++i])
17000       substed = 1
17001     } else
17002       len += 1 + keylen
17003   }
17004
17005   print line
17006 }
17007
17008 _ACAWK
17009 _ACEOF
17010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17011 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17012   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17013 else
17014   cat
17015 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17016   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17017 _ACEOF
17018
17019 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17020 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17021 # trailing colons and then remove the whole line if VPATH becomes empty
17022 # (actually we leave an empty line to preserve line numbers).
17023 if test "x$srcdir" = x.; then
17024   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17025 s/:*\$(srcdir):*/:/
17026 s/:*\${srcdir}:*/:/
17027 s/:*@srcdir@:*/:/
17028 s/^\([^=]*=[     ]*\):*/\1/
17029 s/:*$//
17030 s/^[^=]*=[       ]*$//
17031 }'
17032 fi
17033
17034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035 fi # test -n "$CONFIG_FILES"
17036
17037 # Set up the scripts for CONFIG_HEADERS section.
17038 # No need to generate them if there are no CONFIG_HEADERS.
17039 # This happens for instance with `./config.status Makefile'.
17040 if test -n "$CONFIG_HEADERS"; then
17041 cat >"$tmp/defines.awk" <<\_ACAWK ||
17042 BEGIN {
17043 _ACEOF
17044
17045 # Transform confdefs.h into an awk script `defines.awk', embedded as
17046 # here-document in config.status, that substitutes the proper values into
17047 # config.h.in to produce config.h.
17048
17049 # Create a delimiter string that does not exist in confdefs.h, to ease
17050 # handling of long lines.
17051 ac_delim='%!_!# '
17052 for ac_last_try in false false :; do
17053   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17054   if test -z "$ac_t"; then
17055     break
17056   elif $ac_last_try; then
17057     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17058   else
17059     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17060   fi
17061 done
17062
17063 # For the awk script, D is an array of macro values keyed by name,
17064 # likewise P contains macro parameters if any.  Preserve backslash
17065 # newline sequences.
17066
17067 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17068 sed -n '
17069 s/.\{148\}/&'"$ac_delim"'/g
17070 t rset
17071 :rset
17072 s/^[     ]*#[    ]*define[       ][      ]*/ /
17073 t def
17074 d
17075 :def
17076 s/\\$//
17077 t bsnl
17078 s/["\\]/\\&/g
17079 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17080 D["\1"]=" \3"/p
17081 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17082 d
17083 :bsnl
17084 s/["\\]/\\&/g
17085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17086 D["\1"]=" \3\\\\\\n"\\/p
17087 t cont
17088 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17089 t cont
17090 d
17091 :cont
17092 n
17093 s/.\{148\}/&'"$ac_delim"'/g
17094 t clear
17095 :clear
17096 s/\\$//
17097 t bsnlc
17098 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17099 d
17100 :bsnlc
17101 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17102 b cont
17103 ' <confdefs.h | sed '
17104 s/'"$ac_delim"'/"\\\
17105 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17106
17107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17108   for (key in D) D_is_set[key] = 1
17109   FS = "\a"
17110 }
17111 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17112   line = \$ 0
17113   split(line, arg, " ")
17114   if (arg[1] == "#") {
17115     defundef = arg[2]
17116     mac1 = arg[3]
17117   } else {
17118     defundef = substr(arg[1], 2)
17119     mac1 = arg[2]
17120   }
17121   split(mac1, mac2, "(") #)
17122   macro = mac2[1]
17123   prefix = substr(line, 1, index(line, defundef) - 1)
17124   if (D_is_set[macro]) {
17125     # Preserve the white space surrounding the "#".
17126     print prefix "define", macro P[macro] D[macro]
17127     next
17128   } else {
17129     # Replace #undef with comments.  This is necessary, for example,
17130     # in the case of _POSIX_SOURCE, which is predefined and required
17131     # on some systems where configure will not decide to define it.
17132     if (defundef == "undef") {
17133       print "/*", prefix defundef, macro, "*/"
17134       next
17135     }
17136   }
17137 }
17138 { print }
17139 _ACAWK
17140 _ACEOF
17141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17142   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17143 fi # test -n "$CONFIG_HEADERS"
17144
17145
17146 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17147 shift
17148 for ac_tag
17149 do
17150   case $ac_tag in
17151   :[FHLC]) ac_mode=$ac_tag; continue;;
17152   esac
17153   case $ac_mode$ac_tag in
17154   :[FHL]*:*);;
17155   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17156   :[FH]-) ac_tag=-:-;;
17157   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17158   esac
17159   ac_save_IFS=$IFS
17160   IFS=:
17161   set x $ac_tag
17162   IFS=$ac_save_IFS
17163   shift
17164   ac_file=$1
17165   shift
17166
17167   case $ac_mode in
17168   :L) ac_source=$1;;
17169   :[FH])
17170     ac_file_inputs=
17171     for ac_f
17172     do
17173       case $ac_f in
17174       -) ac_f="$tmp/stdin";;
17175       *) # Look for the file first in the build tree, then in the source tree
17176          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17177          # because $ac_f cannot contain `:'.
17178          test -f "$ac_f" ||
17179            case $ac_f in
17180            [\\/$]*) false;;
17181            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17182            esac ||
17183            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17184       esac
17185       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17186       as_fn_append ac_file_inputs " '$ac_f'"
17187     done
17188
17189     # Let's still pretend it is `configure' which instantiates (i.e., don't
17190     # use $as_me), people would be surprised to read:
17191     #    /* config.h.  Generated by config.status.  */
17192     configure_input='Generated from '`
17193           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17194         `' by configure.'
17195     if test x"$ac_file" != x-; then
17196       configure_input="$ac_file.  $configure_input"
17197       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17198 $as_echo "$as_me: creating $ac_file" >&6;}
17199     fi
17200     # Neutralize special characters interpreted by sed in replacement strings.
17201     case $configure_input in #(
17202     *\&* | *\|* | *\\* )
17203        ac_sed_conf_input=`$as_echo "$configure_input" |
17204        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17205     *) ac_sed_conf_input=$configure_input;;
17206     esac
17207
17208     case $ac_tag in
17209     *:-:* | *:-) cat >"$tmp/stdin" \
17210       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17211     esac
17212     ;;
17213   esac
17214
17215   ac_dir=`$as_dirname -- "$ac_file" ||
17216 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17217          X"$ac_file" : 'X\(//\)[^/]' \| \
17218          X"$ac_file" : 'X\(//\)$' \| \
17219          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17220 $as_echo X"$ac_file" |
17221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17222             s//\1/
17223             q
17224           }
17225           /^X\(\/\/\)[^/].*/{
17226             s//\1/
17227             q
17228           }
17229           /^X\(\/\/\)$/{
17230             s//\1/
17231             q
17232           }
17233           /^X\(\/\).*/{
17234             s//\1/
17235             q
17236           }
17237           s/.*/./; q'`
17238   as_dir="$ac_dir"; as_fn_mkdir_p
17239   ac_builddir=.
17240
17241 case "$ac_dir" in
17242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17243 *)
17244   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17245   # A ".." for each directory in $ac_dir_suffix.
17246   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17247   case $ac_top_builddir_sub in
17248   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17249   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17250   esac ;;
17251 esac
17252 ac_abs_top_builddir=$ac_pwd
17253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17254 # for backward compatibility:
17255 ac_top_builddir=$ac_top_build_prefix
17256
17257 case $srcdir in
17258   .)  # We are building in place.
17259     ac_srcdir=.
17260     ac_top_srcdir=$ac_top_builddir_sub
17261     ac_abs_top_srcdir=$ac_pwd ;;
17262   [\\/]* | ?:[\\/]* )  # Absolute name.
17263     ac_srcdir=$srcdir$ac_dir_suffix;
17264     ac_top_srcdir=$srcdir
17265     ac_abs_top_srcdir=$srcdir ;;
17266   *) # Relative name.
17267     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17268     ac_top_srcdir=$ac_top_build_prefix$srcdir
17269     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17270 esac
17271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17272
17273
17274   case $ac_mode in
17275   :F)
17276   #
17277   # CONFIG_FILE
17278   #
17279
17280   case $INSTALL in
17281   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17282   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17283   esac
17284   ac_MKDIR_P=$MKDIR_P
17285   case $MKDIR_P in
17286   [\\/$]* | ?:[\\/]* ) ;;
17287   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17288   esac
17289 _ACEOF
17290
17291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17292 # If the template does not know about datarootdir, expand it.
17293 # FIXME: This hack should be removed a few years after 2.60.
17294 ac_datarootdir_hack=; ac_datarootdir_seen=
17295 ac_sed_dataroot='
17296 /datarootdir/ {
17297   p
17298   q
17299 }
17300 /@datadir@/p
17301 /@docdir@/p
17302 /@infodir@/p
17303 /@localedir@/p
17304 /@mandir@/p'
17305 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17306 *datarootdir*) ac_datarootdir_seen=yes;;
17307 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17308   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17309 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17310 _ACEOF
17311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17312   ac_datarootdir_hack='
17313   s&@datadir@&$datadir&g
17314   s&@docdir@&$docdir&g
17315   s&@infodir@&$infodir&g
17316   s&@localedir@&$localedir&g
17317   s&@mandir@&$mandir&g
17318   s&\\\${datarootdir}&$datarootdir&g' ;;
17319 esac
17320 _ACEOF
17321
17322 # Neutralize VPATH when `$srcdir' = `.'.
17323 # Shell code in configure.ac might set extrasub.
17324 # FIXME: do we really want to maintain this feature?
17325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17326 ac_sed_extra="$ac_vpsub
17327 $extrasub
17328 _ACEOF
17329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17330 :t
17331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17332 s|@configure_input@|$ac_sed_conf_input|;t t
17333 s&@top_builddir@&$ac_top_builddir_sub&;t t
17334 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17335 s&@srcdir@&$ac_srcdir&;t t
17336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17337 s&@top_srcdir@&$ac_top_srcdir&;t t
17338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17339 s&@builddir@&$ac_builddir&;t t
17340 s&@abs_builddir@&$ac_abs_builddir&;t t
17341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17342 s&@INSTALL@&$ac_INSTALL&;t t
17343 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17344 $ac_datarootdir_hack
17345 "
17346 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17347   || as_fn_error "could not create $ac_file" "$LINENO" 5
17348
17349 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17350   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17351   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17352   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17353 which seems to be undefined.  Please make sure it is defined." >&5
17354 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17355 which seems to be undefined.  Please make sure it is defined." >&2;}
17356
17357   rm -f "$tmp/stdin"
17358   case $ac_file in
17359   -) cat "$tmp/out" && rm -f "$tmp/out";;
17360   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17361   esac \
17362   || as_fn_error "could not create $ac_file" "$LINENO" 5
17363  ;;
17364   :H)
17365   #
17366   # CONFIG_HEADER
17367   #
17368   if test x"$ac_file" != x-; then
17369     {
17370       $as_echo "/* $configure_input  */" \
17371       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17372     } >"$tmp/config.h" \
17373       || as_fn_error "could not create $ac_file" "$LINENO" 5
17374     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17375       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17376 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17377     else
17378       rm -f "$ac_file"
17379       mv "$tmp/config.h" "$ac_file" \
17380         || as_fn_error "could not create $ac_file" "$LINENO" 5
17381     fi
17382   else
17383     $as_echo "/* $configure_input  */" \
17384       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17385       || as_fn_error "could not create -" "$LINENO" 5
17386   fi
17387 # Compute "$ac_file"'s index in $config_headers.
17388 _am_arg="$ac_file"
17389 _am_stamp_count=1
17390 for _am_header in $config_headers :; do
17391   case $_am_header in
17392     $_am_arg | $_am_arg:* )
17393       break ;;
17394     * )
17395       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17396   esac
17397 done
17398 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17399 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17400          X"$_am_arg" : 'X\(//\)[^/]' \| \
17401          X"$_am_arg" : 'X\(//\)$' \| \
17402          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17403 $as_echo X"$_am_arg" |
17404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17405             s//\1/
17406             q
17407           }
17408           /^X\(\/\/\)[^/].*/{
17409             s//\1/
17410             q
17411           }
17412           /^X\(\/\/\)$/{
17413             s//\1/
17414             q
17415           }
17416           /^X\(\/\).*/{
17417             s//\1/
17418             q
17419           }
17420           s/.*/./; q'`/stamp-h$_am_stamp_count
17421  ;;
17422
17423   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17424 $as_echo "$as_me: executing $ac_file commands" >&6;}
17425  ;;
17426   esac
17427
17428
17429   case $ac_file$ac_mode in
17430     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17431   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17432   # are listed without --file.  Let's play safe and only enable the eval
17433   # if we detect the quoting.
17434   case $CONFIG_FILES in
17435   *\'*) eval set x "$CONFIG_FILES" ;;
17436   *)   set x $CONFIG_FILES ;;
17437   esac
17438   shift
17439   for mf
17440   do
17441     # Strip MF so we end up with the name of the file.
17442     mf=`echo "$mf" | sed -e 's/:.*$//'`
17443     # Check whether this is an Automake generated Makefile or not.
17444     # We used to match only the files named `Makefile.in', but
17445     # some people rename them; so instead we look at the file content.
17446     # Grep'ing the first line is not enough: some people post-process
17447     # each Makefile.in and add a new line on top of each file to say so.
17448     # Grep'ing the whole file is not good either: AIX grep has a line
17449     # limit of 2048, but all sed's we know have understand at least 4000.
17450     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17451       dirpart=`$as_dirname -- "$mf" ||
17452 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17453          X"$mf" : 'X\(//\)[^/]' \| \
17454          X"$mf" : 'X\(//\)$' \| \
17455          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17456 $as_echo X"$mf" |
17457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17458             s//\1/
17459             q
17460           }
17461           /^X\(\/\/\)[^/].*/{
17462             s//\1/
17463             q
17464           }
17465           /^X\(\/\/\)$/{
17466             s//\1/
17467             q
17468           }
17469           /^X\(\/\).*/{
17470             s//\1/
17471             q
17472           }
17473           s/.*/./; q'`
17474     else
17475       continue
17476     fi
17477     # Extract the definition of DEPDIR, am__include, and am__quote
17478     # from the Makefile without running `make'.
17479     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17480     test -z "$DEPDIR" && continue
17481     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17482     test -z "am__include" && continue
17483     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17484     # When using ansi2knr, U may be empty or an underscore; expand it
17485     U=`sed -n 's/^U = //p' < "$mf"`
17486     # Find all dependency output files, they are included files with
17487     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17488     # simplest approach to changing $(DEPDIR) to its actual value in the
17489     # expansion.
17490     for file in `sed -n "
17491       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17492          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17493       # Make sure the directory exists.
17494       test -f "$dirpart/$file" && continue
17495       fdir=`$as_dirname -- "$file" ||
17496 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17497          X"$file" : 'X\(//\)[^/]' \| \
17498          X"$file" : 'X\(//\)$' \| \
17499          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17500 $as_echo X"$file" |
17501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17502             s//\1/
17503             q
17504           }
17505           /^X\(\/\/\)[^/].*/{
17506             s//\1/
17507             q
17508           }
17509           /^X\(\/\/\)$/{
17510             s//\1/
17511             q
17512           }
17513           /^X\(\/\).*/{
17514             s//\1/
17515             q
17516           }
17517           s/.*/./; q'`
17518       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17519       # echo "creating $dirpart/$file"
17520       echo '# dummy' > "$dirpart/$file"
17521     done
17522   done
17523 }
17524  ;;
17525     "libtool":C)
17526
17527     # See if we are running on zsh, and set the options which allow our
17528     # commands through without removal of \ escapes.
17529     if test -n "${ZSH_VERSION+set}" ; then
17530       setopt NO_GLOB_SUBST
17531     fi
17532
17533     cfgfile="${ofile}T"
17534     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17535     $RM "$cfgfile"
17536
17537     cat <<_LT_EOF >> "$cfgfile"
17538 #! $SHELL
17539
17540 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17541 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17542 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17543 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17544 #
17545 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17546 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17547 #   Written by Gordon Matzigkeit, 1996
17548 #
17549 #   This file is part of GNU Libtool.
17550 #
17551 # GNU Libtool is free software; you can redistribute it and/or
17552 # modify it under the terms of the GNU General Public License as
17553 # published by the Free Software Foundation; either version 2 of
17554 # the License, or (at your option) any later version.
17555 #
17556 # As a special exception to the GNU General Public License,
17557 # if you distribute this file as part of a program or library that
17558 # is built using GNU Libtool, you may include this file under the
17559 # same distribution terms that you use for the rest of that program.
17560 #
17561 # GNU Libtool is distributed in the hope that it will be useful,
17562 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17563 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17564 # GNU General Public License for more details.
17565 #
17566 # You should have received a copy of the GNU General Public License
17567 # along with GNU Libtool; see the file COPYING.  If not, a copy
17568 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17569 # obtained by writing to the Free Software Foundation, Inc.,
17570 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17571
17572
17573 # The names of the tagged configurations supported by this script.
17574 available_tags=""
17575
17576 # ### BEGIN LIBTOOL CONFIG
17577
17578 # Which release of libtool.m4 was used?
17579 macro_version=$macro_version
17580 macro_revision=$macro_revision
17581
17582 # Assembler program.
17583 AS=$AS
17584
17585 # DLL creation program.
17586 DLLTOOL=$DLLTOOL
17587
17588 # Object dumper program.
17589 OBJDUMP=$OBJDUMP
17590
17591 # Whether or not to build shared libraries.
17592 build_libtool_libs=$enable_shared
17593
17594 # Whether or not to build static libraries.
17595 build_old_libs=$enable_static
17596
17597 # What type of objects to build.
17598 pic_mode=$pic_mode
17599
17600 # Whether or not to optimize for fast installation.
17601 fast_install=$enable_fast_install
17602
17603 # The host system.
17604 host_alias=$host_alias
17605 host=$host
17606 host_os=$host_os
17607
17608 # The build system.
17609 build_alias=$build_alias
17610 build=$build
17611 build_os=$build_os
17612
17613 # A sed program that does not truncate output.
17614 SED=$lt_SED
17615
17616 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17617 Xsed="\$SED -e 1s/^X//"
17618
17619 # A grep program that handles long lines.
17620 GREP=$lt_GREP
17621
17622 # An ERE matcher.
17623 EGREP=$lt_EGREP
17624
17625 # A literal string matcher.
17626 FGREP=$lt_FGREP
17627
17628 # A BSD- or MS-compatible name lister.
17629 NM=$lt_NM
17630
17631 # Whether we need soft or hard links.
17632 LN_S=$lt_LN_S
17633
17634 # What is the maximum length of a command?
17635 max_cmd_len=$max_cmd_len
17636
17637 # Object file suffix (normally "o").
17638 objext=$ac_objext
17639
17640 # Executable file suffix (normally "").
17641 exeext=$exeext
17642
17643 # whether the shell understands "unset".
17644 lt_unset=$lt_unset
17645
17646 # turn spaces into newlines.
17647 SP2NL=$lt_lt_SP2NL
17648
17649 # turn newlines into spaces.
17650 NL2SP=$lt_lt_NL2SP
17651
17652 # How to create reloadable object files.
17653 reload_flag=$lt_reload_flag
17654 reload_cmds=$lt_reload_cmds
17655
17656 # Method to check whether dependent libraries are shared objects.
17657 deplibs_check_method=$lt_deplibs_check_method
17658
17659 # Command to use when deplibs_check_method == "file_magic".
17660 file_magic_cmd=$lt_file_magic_cmd
17661
17662 # The archiver.
17663 AR=$lt_AR
17664 AR_FLAGS=$lt_AR_FLAGS
17665
17666 # A symbol stripping program.
17667 STRIP=$lt_STRIP
17668
17669 # Commands used to install an old-style archive.
17670 RANLIB=$lt_RANLIB
17671 old_postinstall_cmds=$lt_old_postinstall_cmds
17672 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17673
17674 # A C compiler.
17675 LTCC=$lt_CC
17676
17677 # LTCC compiler flags.
17678 LTCFLAGS=$lt_CFLAGS
17679
17680 # Take the output of nm and produce a listing of raw symbols and C names.
17681 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17682
17683 # Transform the output of nm in a proper C declaration.
17684 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17685
17686 # Transform the output of nm in a C name address pair.
17687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17688
17689 # Transform the output of nm in a C name address pair when lib prefix is needed.
17690 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17691
17692 # The name of the directory that contains temporary libtool files.
17693 objdir=$objdir
17694
17695 # Shell to use when invoking shell scripts.
17696 SHELL=$lt_SHELL
17697
17698 # An echo program that does not interpret backslashes.
17699 ECHO=$lt_ECHO
17700
17701 # Used to examine libraries when file_magic_cmd begins with "file".
17702 MAGIC_CMD=$MAGIC_CMD
17703
17704 # Must we lock files when doing compilation?
17705 need_locks=$lt_need_locks
17706
17707 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17708 DSYMUTIL=$lt_DSYMUTIL
17709
17710 # Tool to change global to local symbols on Mac OS X.
17711 NMEDIT=$lt_NMEDIT
17712
17713 # Tool to manipulate fat objects and archives on Mac OS X.
17714 LIPO=$lt_LIPO
17715
17716 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17717 OTOOL=$lt_OTOOL
17718
17719 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17720 OTOOL64=$lt_OTOOL64
17721
17722 # Old archive suffix (normally "a").
17723 libext=$libext
17724
17725 # Shared library suffix (normally ".so").
17726 shrext_cmds=$lt_shrext_cmds
17727
17728 # The commands to extract the exported symbol list from a shared archive.
17729 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17730
17731 # Variables whose values should be saved in libtool wrapper scripts and
17732 # restored at link time.
17733 variables_saved_for_relink=$lt_variables_saved_for_relink
17734
17735 # Do we need the "lib" prefix for modules?
17736 need_lib_prefix=$need_lib_prefix
17737
17738 # Do we need a version for libraries?
17739 need_version=$need_version
17740
17741 # Library versioning type.
17742 version_type=$version_type
17743
17744 # Shared library runtime path variable.
17745 runpath_var=$runpath_var
17746
17747 # Shared library path variable.
17748 shlibpath_var=$shlibpath_var
17749
17750 # Is shlibpath searched before the hard-coded library search path?
17751 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17752
17753 # Format of library name prefix.
17754 libname_spec=$lt_libname_spec
17755
17756 # List of archive names.  First name is the real one, the rest are links.
17757 # The last name is the one that the linker finds with -lNAME
17758 library_names_spec=$lt_library_names_spec
17759
17760 # The coded name of the library, if different from the real name.
17761 soname_spec=$lt_soname_spec
17762
17763 # Command to use after installation of a shared archive.
17764 postinstall_cmds=$lt_postinstall_cmds
17765
17766 # Command to use after uninstallation of a shared archive.
17767 postuninstall_cmds=$lt_postuninstall_cmds
17768
17769 # Commands used to finish a libtool library installation in a directory.
17770 finish_cmds=$lt_finish_cmds
17771
17772 # As "finish_cmds", except a single script fragment to be evaled but
17773 # not shown.
17774 finish_eval=$lt_finish_eval
17775
17776 # Whether we should hardcode library paths into libraries.
17777 hardcode_into_libs=$hardcode_into_libs
17778
17779 # Compile-time system search path for libraries.
17780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17781
17782 # Run-time system search path for libraries.
17783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17784
17785 # Whether dlopen is supported.
17786 dlopen_support=$enable_dlopen
17787
17788 # Whether dlopen of programs is supported.
17789 dlopen_self=$enable_dlopen_self
17790
17791 # Whether dlopen of statically linked programs is supported.
17792 dlopen_self_static=$enable_dlopen_self_static
17793
17794 # Commands to strip libraries.
17795 old_striplib=$lt_old_striplib
17796 striplib=$lt_striplib
17797
17798
17799 # The linker used to build libraries.
17800 LD=$lt_LD
17801
17802 # Commands used to build an old-style archive.
17803 old_archive_cmds=$lt_old_archive_cmds
17804
17805 # A language specific compiler.
17806 CC=$lt_compiler
17807
17808 # Is the compiler the GNU compiler?
17809 with_gcc=$GCC
17810
17811 # Compiler flag to turn off builtin functions.
17812 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17813
17814 # How to pass a linker flag through the compiler.
17815 wl=$lt_lt_prog_compiler_wl
17816
17817 # Additional compiler flags for building library objects.
17818 pic_flag=$lt_lt_prog_compiler_pic
17819
17820 # Compiler flag to prevent dynamic linking.
17821 link_static_flag=$lt_lt_prog_compiler_static
17822
17823 # Does compiler simultaneously support -c and -o options?
17824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17825
17826 # Whether or not to add -lc for building shared libraries.
17827 build_libtool_need_lc=$archive_cmds_need_lc
17828
17829 # Whether or not to disallow shared libs when runtime libs are static.
17830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17831
17832 # Compiler flag to allow reflexive dlopens.
17833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17834
17835 # Compiler flag to generate shared objects directly from archives.
17836 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17837
17838 # Whether the compiler copes with passing no objects directly.
17839 compiler_needs_object=$lt_compiler_needs_object
17840
17841 # Create an old-style archive from a shared archive.
17842 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17843
17844 # Create a temporary old-style archive to link instead of a shared archive.
17845 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17846
17847 # Commands used to build a shared archive.
17848 archive_cmds=$lt_archive_cmds
17849 archive_expsym_cmds=$lt_archive_expsym_cmds
17850
17851 # Commands used to build a loadable module if different from building
17852 # a shared archive.
17853 module_cmds=$lt_module_cmds
17854 module_expsym_cmds=$lt_module_expsym_cmds
17855
17856 # Whether we are building with GNU ld or not.
17857 with_gnu_ld=$lt_with_gnu_ld
17858
17859 # Flag that allows shared libraries with undefined symbols to be built.
17860 allow_undefined_flag=$lt_allow_undefined_flag
17861
17862 # Flag that enforces no undefined symbols.
17863 no_undefined_flag=$lt_no_undefined_flag
17864
17865 # Flag to hardcode \$libdir into a binary during linking.
17866 # This must work even if \$libdir does not exist
17867 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17868
17869 # If ld is used when linking, flag to hardcode \$libdir into a binary
17870 # during linking.  This must work even if \$libdir does not exist.
17871 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17872
17873 # Whether we need a single "-rpath" flag with a separated argument.
17874 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17875
17876 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17877 # DIR into the resulting binary.
17878 hardcode_direct=$hardcode_direct
17879
17880 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17881 # DIR into the resulting binary and the resulting library dependency is
17882 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17883 # library is relocated.
17884 hardcode_direct_absolute=$hardcode_direct_absolute
17885
17886 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17887 # into the resulting binary.
17888 hardcode_minus_L=$hardcode_minus_L
17889
17890 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17891 # into the resulting binary.
17892 hardcode_shlibpath_var=$hardcode_shlibpath_var
17893
17894 # Set to "yes" if building a shared library automatically hardcodes DIR
17895 # into the library and all subsequent libraries and executables linked
17896 # against it.
17897 hardcode_automatic=$hardcode_automatic
17898
17899 # Set to yes if linker adds runtime paths of dependent libraries
17900 # to runtime path list.
17901 inherit_rpath=$inherit_rpath
17902
17903 # Whether libtool must link a program against all its dependency libraries.
17904 link_all_deplibs=$link_all_deplibs
17905
17906 # Fix the shell variable \$srcfile for the compiler.
17907 fix_srcfile_path=$lt_fix_srcfile_path
17908
17909 # Set to "yes" if exported symbols are required.
17910 always_export_symbols=$always_export_symbols
17911
17912 # The commands to list exported symbols.
17913 export_symbols_cmds=$lt_export_symbols_cmds
17914
17915 # Symbols that should not be listed in the preloaded symbols.
17916 exclude_expsyms=$lt_exclude_expsyms
17917
17918 # Symbols that must always be exported.
17919 include_expsyms=$lt_include_expsyms
17920
17921 # Commands necessary for linking programs (against libraries) with templates.
17922 prelink_cmds=$lt_prelink_cmds
17923
17924 # Specify filename containing input files.
17925 file_list_spec=$lt_file_list_spec
17926
17927 # How to hardcode a shared library path into an executable.
17928 hardcode_action=$hardcode_action
17929
17930 # ### END LIBTOOL CONFIG
17931
17932 _LT_EOF
17933
17934   case $host_os in
17935   aix3*)
17936     cat <<\_LT_EOF >> "$cfgfile"
17937 # AIX sometimes has problems with the GCC collect2 program.  For some
17938 # reason, if we set the COLLECT_NAMES environment variable, the problems
17939 # vanish in a puff of smoke.
17940 if test "X${COLLECT_NAMES+set}" != Xset; then
17941   COLLECT_NAMES=
17942   export COLLECT_NAMES
17943 fi
17944 _LT_EOF
17945     ;;
17946   esac
17947
17948
17949 ltmain="$ac_aux_dir/ltmain.sh"
17950
17951
17952   # We use sed instead of cat because bash on DJGPP gets confused if
17953   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17954   # text mode, it properly converts lines to CR/LF.  This bash problem
17955   # is reportedly fixed, but why not run on old versions too?
17956   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17957     || (rm -f "$cfgfile"; exit 1)
17958
17959   case $xsi_shell in
17960   yes)
17961     cat << \_LT_EOF >> "$cfgfile"
17962
17963 # func_dirname file append nondir_replacement
17964 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17965 # otherwise set result to NONDIR_REPLACEMENT.
17966 func_dirname ()
17967 {
17968   case ${1} in
17969     */*) func_dirname_result="${1%/*}${2}" ;;
17970     *  ) func_dirname_result="${3}" ;;
17971   esac
17972 }
17973
17974 # func_basename file
17975 func_basename ()
17976 {
17977   func_basename_result="${1##*/}"
17978 }
17979
17980 # func_dirname_and_basename file append nondir_replacement
17981 # perform func_basename and func_dirname in a single function
17982 # call:
17983 #   dirname:  Compute the dirname of FILE.  If nonempty,
17984 #             add APPEND to the result, otherwise set result
17985 #             to NONDIR_REPLACEMENT.
17986 #             value returned in "$func_dirname_result"
17987 #   basename: Compute filename of FILE.
17988 #             value retuned in "$func_basename_result"
17989 # Implementation must be kept synchronized with func_dirname
17990 # and func_basename. For efficiency, we do not delegate to
17991 # those functions but instead duplicate the functionality here.
17992 func_dirname_and_basename ()
17993 {
17994   case ${1} in
17995     */*) func_dirname_result="${1%/*}${2}" ;;
17996     *  ) func_dirname_result="${3}" ;;
17997   esac
17998   func_basename_result="${1##*/}"
17999 }
18000
18001 # func_stripname prefix suffix name
18002 # strip PREFIX and SUFFIX off of NAME.
18003 # PREFIX and SUFFIX must not contain globbing or regex special
18004 # characters, hashes, percent signs, but SUFFIX may contain a leading
18005 # dot (in which case that matches only a dot).
18006 func_stripname ()
18007 {
18008   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18009   # positional parameters, so assign one to ordinary parameter first.
18010   func_stripname_result=${3}
18011   func_stripname_result=${func_stripname_result#"${1}"}
18012   func_stripname_result=${func_stripname_result%"${2}"}
18013 }
18014
18015 # func_opt_split
18016 func_opt_split ()
18017 {
18018   func_opt_split_opt=${1%%=*}
18019   func_opt_split_arg=${1#*=}
18020 }
18021
18022 # func_lo2o object
18023 func_lo2o ()
18024 {
18025   case ${1} in
18026     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18027     *)    func_lo2o_result=${1} ;;
18028   esac
18029 }
18030
18031 # func_xform libobj-or-source
18032 func_xform ()
18033 {
18034   func_xform_result=${1%.*}.lo
18035 }
18036
18037 # func_arith arithmetic-term...
18038 func_arith ()
18039 {
18040   func_arith_result=$(( $* ))
18041 }
18042
18043 # func_len string
18044 # STRING may not start with a hyphen.
18045 func_len ()
18046 {
18047   func_len_result=${#1}
18048 }
18049
18050 _LT_EOF
18051     ;;
18052   *) # Bourne compatible functions.
18053     cat << \_LT_EOF >> "$cfgfile"
18054
18055 # func_dirname file append nondir_replacement
18056 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18057 # otherwise set result to NONDIR_REPLACEMENT.
18058 func_dirname ()
18059 {
18060   # Extract subdirectory from the argument.
18061   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18062   if test "X$func_dirname_result" = "X${1}"; then
18063     func_dirname_result="${3}"
18064   else
18065     func_dirname_result="$func_dirname_result${2}"
18066   fi
18067 }
18068
18069 # func_basename file
18070 func_basename ()
18071 {
18072   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18073 }
18074
18075
18076 # func_stripname prefix suffix name
18077 # strip PREFIX and SUFFIX off of NAME.
18078 # PREFIX and SUFFIX must not contain globbing or regex special
18079 # characters, hashes, percent signs, but SUFFIX may contain a leading
18080 # dot (in which case that matches only a dot).
18081 # func_strip_suffix prefix name
18082 func_stripname ()
18083 {
18084   case ${2} in
18085     .*) func_stripname_result=`$ECHO "X${3}" \
18086            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18087     *)  func_stripname_result=`$ECHO "X${3}" \
18088            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18089   esac
18090 }
18091
18092 # sed scripts:
18093 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18094 my_sed_long_arg='1s/^-[^=]*=//'
18095
18096 # func_opt_split
18097 func_opt_split ()
18098 {
18099   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18100   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18101 }
18102
18103 # func_lo2o object
18104 func_lo2o ()
18105 {
18106   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18107 }
18108
18109 # func_xform libobj-or-source
18110 func_xform ()
18111 {
18112   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18113 }
18114
18115 # func_arith arithmetic-term...
18116 func_arith ()
18117 {
18118   func_arith_result=`expr "$@"`
18119 }
18120
18121 # func_len string
18122 # STRING may not start with a hyphen.
18123 func_len ()
18124 {
18125   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18126 }
18127
18128 _LT_EOF
18129 esac
18130
18131 case $lt_shell_append in
18132   yes)
18133     cat << \_LT_EOF >> "$cfgfile"
18134
18135 # func_append var value
18136 # Append VALUE to the end of shell variable VAR.
18137 func_append ()
18138 {
18139   eval "$1+=\$2"
18140 }
18141 _LT_EOF
18142     ;;
18143   *)
18144     cat << \_LT_EOF >> "$cfgfile"
18145
18146 # func_append var value
18147 # Append VALUE to the end of shell variable VAR.
18148 func_append ()
18149 {
18150   eval "$1=\$$1\$2"
18151 }
18152
18153 _LT_EOF
18154     ;;
18155   esac
18156
18157
18158   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18159     || (rm -f "$cfgfile"; exit 1)
18160
18161   mv -f "$cfgfile" "$ofile" ||
18162     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18163   chmod +x "$ofile"
18164
18165  ;;
18166
18167   esac
18168 done # for ac_tag
18169
18170
18171 as_fn_exit 0
18172 _ACEOF
18173 ac_clean_files=$ac_clean_files_save
18174
18175 test $ac_write_fail = 0 ||
18176   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18177
18178
18179 # configure is writing to config.log, and then calls config.status.
18180 # config.status does its own redirection, appending to config.log.
18181 # Unfortunately, on DOS this fails, as config.log is still kept open
18182 # by configure, so config.status won't be able to write to it; its
18183 # output is simply discarded.  So we exec the FD to /dev/null,
18184 # effectively closing config.log, so it can be properly (re)opened and
18185 # appended to by config.status.  When coming back to configure, we
18186 # need to make the FD available again.
18187 if test "$no_create" != yes; then
18188   ac_cs_success=:
18189   ac_config_status_args=
18190   test "$silent" = yes &&
18191     ac_config_status_args="$ac_config_status_args --quiet"
18192   exec 5>/dev/null
18193   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18194   exec 5>>config.log
18195   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18196   # would make configure fail if this is the last instruction.
18197   $ac_cs_success || as_fn_exit $?
18198 fi
18199 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18200   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18201 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18202 fi
18203
18204
18205 ### Summary
18206
18207 echo
18208 echo
18209 echo
18210 echo "------------------------------------------------------------------------"
18211 echo "$PACKAGE $VERSION"
18212 echo "------------------------------------------------------------------------"
18213 echo
18214 echo
18215 echo "Configuration Options Summary:"
18216 echo
18217 echo "  Debug...............: ${want_debug}"
18218 echo
18219 echo "  Optional support:"
18220 echo "    libpng............: ${have_libpng}"
18221 echo "    libtiff...........: ${have_libtiff}"
18222 echo "    libcms............: ${lcms_output}"
18223 echo
18224 echo "  Documentation.......: ${opj_have_doxygen}"
18225 echo "    Build.............: make doc"
18226 echo
18227 echo "  mj2.................: ${want_mj2}"
18228 echo "  jpwl................: ${want_jpwl}"
18229 echo "  jpip................: ${want_jpip}"
18230 echo "  jpip server.........: ${want_jpip_server}"
18231 echo