minor changes in cmake files (from winfried)
[openjpeg.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for OpenJPEG 1.4.0.
4 #
5 # Report bugs to <http://code.google.com/p/openjpeg/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   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: http://code.google.com/p/openjpeg/ about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script 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-1.4.0'
704 PACKAGE_VERSION='1.4.0'
705 PACKAGE_STRING='OpenJPEG 1.4.0'
706 PACKAGE_BUGREPORT='http://code.google.com/p/openjpeg/'
707 PACKAGE_URL='http://www.openjpeg.org/'
708
709 ac_unique_file="libopenjpeg/openjpeg.c"
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 with_doxygen_FALSE
751 with_doxygen_TRUE
752 with_doxygen
753 LDLIBS
754 jp3d_dir
755 with_sharedlibs_FALSE
756 with_sharedlibs_TRUE
757 jpwl_dir
758 with_libjpwl_FALSE
759 with_libjpwl_TRUE
760 lcms1libs
761 lcms1includes
762 with_liblcms1_FALSE
763 with_liblcms1_TRUE
764 lcms2libs
765 lcms2includes
766 with_liblcms2_FALSE
767 with_liblcms2_TRUE
768 tifflibs
769 tiffincludes
770 with_libtiff_FALSE
771 with_libtiff_TRUE
772 pnglibs
773 pngincludes
774 with_libpng_FALSE
775 with_libpng_TRUE
776 LIBPNG_CONFIG
777 PKGCONFIG
778 CXXCPP
779 CPP
780 OTOOL64
781 OTOOL
782 LIPO
783 NMEDIT
784 DSYMUTIL
785 lt_ECHO
786 RANLIB
787 AR
788 NM
789 ac_ct_DUMPBIN
790 DUMPBIN
791 LD
792 FGREP
793 EGREP
794 GREP
795 LIBTOOL
796 OBJDUMP
797 DLLTOOL
798 AS
799 SED
800 LN_S
801 am__fastdepCXX_FALSE
802 am__fastdepCXX_TRUE
803 CXXDEPMODE
804 ac_ct_CXX
805 CXXFLAGS
806 CXX
807 am__fastdepCC_FALSE
808 am__fastdepCC_TRUE
809 CCDEPMODE
810 AMDEPBACKSLASH
811 AMDEP_FALSE
812 AMDEP_TRUE
813 am__quote
814 am__include
815 DEPDIR
816 OBJEXT
817 EXEEXT
818 ac_ct_CC
819 CPPFLAGS
820 LDFLAGS
821 CFLAGS
822 CC
823 JP3D_BUILD_NR
824 JP3D_MINOR_NR
825 JP3D_MAJOR_NR
826 BUILD_NR
827 MINOR_NR
828 MAJOR_NR
829 am__untar
830 am__tar
831 AMTAR
832 am__leading_dot
833 SET_MAKE
834 AWK
835 mkdir_p
836 MKDIR_P
837 INSTALL_STRIP_PROGRAM
838 STRIP
839 install_sh
840 MAKEINFO
841 AUTOHEADER
842 AUTOMAKE
843 AUTOCONF
844 ACLOCAL
845 VERSION
846 PACKAGE
847 CYGPATH_W
848 am__isrc
849 INSTALL_DATA
850 INSTALL_SCRIPT
851 INSTALL_PROGRAM
852 target_os
853 target_vendor
854 target_cpu
855 target
856 host_os
857 host_vendor
858 host_cpu
859 host
860 build_os
861 build_vendor
862 build_cpu
863 build
864 target_alias
865 host_alias
866 build_alias
867 LIBS
868 ECHO_T
869 ECHO_N
870 ECHO_C
871 DEFS
872 mandir
873 localedir
874 libdir
875 psdir
876 pdfdir
877 dvidir
878 htmldir
879 infodir
880 docdir
881 oldincludedir
882 includedir
883 localstatedir
884 sharedstatedir
885 sysconfdir
886 datadir
887 datarootdir
888 libexecdir
889 sbindir
890 bindir
891 program_transform_name
892 prefix
893 exec_prefix
894 PACKAGE_URL
895 PACKAGE_BUGREPORT
896 PACKAGE_STRING
897 PACKAGE_VERSION
898 PACKAGE_TARNAME
899 PACKAGE_NAME
900 PATH_SEPARATOR
901 SHELL'
902 ac_subst_files=''
903 ac_user_opts='
904 enable_option_checking
905 enable_dependency_tracking
906 enable_largefile
907 enable_shared
908 enable_static
909 with_pic
910 enable_fast_install
911 with_gnu_ld
912 enable_libtool_lock
913 enable_png
914 with_png_includes
915 with_png_libraries
916 enable_tiff
917 with_tiff_includes
918 with_tiff_libraries
919 enable_lcms2
920 with_lcms2_includes
921 with_lcms2_libraries
922 enable_lcms1
923 with_lcms1_includes
924 with_lcms1_libraries
925 enable_jpwl
926 enable_jp3d
927 '
928       ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CXX
937 CXXFLAGS
938 CCC
939 CPP
940 CXXCPP'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 ac_unrecognized_opts=
947 ac_unrecognized_sep=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995   # If the previous option needs an argument, assign it.
996   if test -n "$ac_prev"; then
997     eval $ac_prev=\$ac_option
998     ac_prev=
999     continue
1000   fi
1001
1002   case $ac_option in
1003   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004   *)    ac_optarg=yes ;;
1005   esac
1006
1007   # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009   case $ac_dashdash$ac_option in
1010   --)
1011     ac_dashdash=yes ;;
1012
1013   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014     ac_prev=bindir ;;
1015   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016     bindir=$ac_optarg ;;
1017
1018   -build | --build | --buil | --bui | --bu)
1019     ac_prev=build_alias ;;
1020   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021     build_alias=$ac_optarg ;;
1022
1023   -cache-file | --cache-file | --cache-fil | --cache-fi \
1024   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025     ac_prev=cache_file ;;
1026   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028     cache_file=$ac_optarg ;;
1029
1030   --config-cache | -C)
1031     cache_file=config.cache ;;
1032
1033   -datadir | --datadir | --datadi | --datad)
1034     ac_prev=datadir ;;
1035   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036     datadir=$ac_optarg ;;
1037
1038   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039   | --dataroo | --dataro | --datar)
1040     ac_prev=datarootdir ;;
1041   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043     datarootdir=$ac_optarg ;;
1044
1045   -disable-* | --disable-*)
1046     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049       as_fn_error "invalid feature name: $ac_useropt"
1050     ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053       *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057          ac_unrecognized_sep=', ';;
1058     esac
1059     eval enable_$ac_useropt=no ;;
1060
1061   -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065
1066   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070
1071   -enable-* | --enable-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075       as_fn_error "invalid feature name: $ac_useropt"
1076     ac_useropt_orig=$ac_useropt
1077     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078     case $ac_user_opts in
1079       *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083          ac_unrecognized_sep=', ';;
1084     esac
1085     eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089   | --exec | --exe | --ex)
1090     ac_prev=exec_prefix ;;
1091   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093   | --exec=* | --exe=* | --ex=*)
1094     exec_prefix=$ac_optarg ;;
1095
1096   -gas | --gas | --ga | --g)
1097     # Obsolete; use --with-gas.
1098     with_gas=yes ;;
1099
1100   -help | --help | --hel | --he | -h)
1101     ac_init_help=long ;;
1102   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103     ac_init_help=recursive ;;
1104   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105     ac_init_help=short ;;
1106
1107   -host | --host | --hos | --ho)
1108     ac_prev=host_alias ;;
1109   -host=* | --host=* | --hos=* | --ho=*)
1110     host_alias=$ac_optarg ;;
1111
1112   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113     ac_prev=htmldir ;;
1114   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115   | --ht=*)
1116     htmldir=$ac_optarg ;;
1117
1118   -includedir | --includedir | --includedi | --included | --include \
1119   | --includ | --inclu | --incl | --inc)
1120     ac_prev=includedir ;;
1121   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122   | --includ=* | --inclu=* | --incl=* | --inc=*)
1123     includedir=$ac_optarg ;;
1124
1125   -infodir | --infodir | --infodi | --infod | --info | --inf)
1126     ac_prev=infodir ;;
1127   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128     infodir=$ac_optarg ;;
1129
1130   -libdir | --libdir | --libdi | --libd)
1131     ac_prev=libdir ;;
1132   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133     libdir=$ac_optarg ;;
1134
1135   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136   | --libexe | --libex | --libe)
1137     ac_prev=libexecdir ;;
1138   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139   | --libexe=* | --libex=* | --libe=*)
1140     libexecdir=$ac_optarg ;;
1141
1142   -localedir | --localedir | --localedi | --localed | --locale)
1143     ac_prev=localedir ;;
1144   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145     localedir=$ac_optarg ;;
1146
1147   -localstatedir | --localstatedir | --localstatedi | --localstated \
1148   | --localstate | --localstat | --localsta | --localst | --locals)
1149     ac_prev=localstatedir ;;
1150   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152     localstatedir=$ac_optarg ;;
1153
1154   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155     ac_prev=mandir ;;
1156   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157     mandir=$ac_optarg ;;
1158
1159   -nfp | --nfp | --nf)
1160     # Obsolete; use --without-fp.
1161     with_fp=no ;;
1162
1163   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164   | --no-cr | --no-c | -n)
1165     no_create=yes ;;
1166
1167   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169     no_recursion=yes ;;
1170
1171   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173   | --oldin | --oldi | --old | --ol | --o)
1174     ac_prev=oldincludedir ;;
1175   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178     oldincludedir=$ac_optarg ;;
1179
1180   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181     ac_prev=prefix ;;
1182   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183     prefix=$ac_optarg ;;
1184
1185   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186   | --program-pre | --program-pr | --program-p)
1187     ac_prev=program_prefix ;;
1188   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190     program_prefix=$ac_optarg ;;
1191
1192   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193   | --program-suf | --program-su | --program-s)
1194     ac_prev=program_suffix ;;
1195   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197     program_suffix=$ac_optarg ;;
1198
1199   -program-transform-name | --program-transform-name \
1200   | --program-transform-nam | --program-transform-na \
1201   | --program-transform-n | --program-transform- \
1202   | --program-transform | --program-transfor \
1203   | --program-transfo | --program-transf \
1204   | --program-trans | --program-tran \
1205   | --progr-tra | --program-tr | --program-t)
1206     ac_prev=program_transform_name ;;
1207   -program-transform-name=* | --program-transform-name=* \
1208   | --program-transform-nam=* | --program-transform-na=* \
1209   | --program-transform-n=* | --program-transform-=* \
1210   | --program-transform=* | --program-transfor=* \
1211   | --program-transfo=* | --program-transf=* \
1212   | --program-trans=* | --program-tran=* \
1213   | --progr-tra=* | --program-tr=* | --program-t=*)
1214     program_transform_name=$ac_optarg ;;
1215
1216   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217     ac_prev=pdfdir ;;
1218   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219     pdfdir=$ac_optarg ;;
1220
1221   -psdir | --psdir | --psdi | --psd | --ps)
1222     ac_prev=psdir ;;
1223   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224     psdir=$ac_optarg ;;
1225
1226   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227   | -silent | --silent | --silen | --sile | --sil)
1228     silent=yes ;;
1229
1230   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231     ac_prev=sbindir ;;
1232   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233   | --sbi=* | --sb=*)
1234     sbindir=$ac_optarg ;;
1235
1236   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238   | --sharedst | --shareds | --shared | --share | --shar \
1239   | --sha | --sh)
1240     ac_prev=sharedstatedir ;;
1241   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244   | --sha=* | --sh=*)
1245     sharedstatedir=$ac_optarg ;;
1246
1247   -site | --site | --sit)
1248     ac_prev=site ;;
1249   -site=* | --site=* | --sit=*)
1250     site=$ac_optarg ;;
1251
1252   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253     ac_prev=srcdir ;;
1254   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255     srcdir=$ac_optarg ;;
1256
1257   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258   | --syscon | --sysco | --sysc | --sys | --sy)
1259     ac_prev=sysconfdir ;;
1260   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262     sysconfdir=$ac_optarg ;;
1263
1264   -target | --target | --targe | --targ | --tar | --ta | --t)
1265     ac_prev=target_alias ;;
1266   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267     target_alias=$ac_optarg ;;
1268
1269   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270     verbose=yes ;;
1271
1272   -version | --version | --versio | --versi | --vers | -V)
1273     ac_init_version=: ;;
1274
1275   -with-* | --with-*)
1276     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279       as_fn_error "invalid package name: $ac_useropt"
1280     ac_useropt_orig=$ac_useropt
1281     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282     case $ac_user_opts in
1283       *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287          ac_unrecognized_sep=', ';;
1288     esac
1289     eval with_$ac_useropt=\$ac_optarg ;;
1290
1291   -without-* | --without-*)
1292     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293     # Reject names that are not valid shell variable names.
1294     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295       as_fn_error "invalid package name: $ac_useropt"
1296     ac_useropt_orig=$ac_useropt
1297     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298     case $ac_user_opts in
1299       *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303          ac_unrecognized_sep=', ';;
1304     esac
1305     eval with_$ac_useropt=no ;;
1306
1307   --x)
1308     # Obsolete; use --with-x.
1309     with_x=yes ;;
1310
1311   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312   | --x-incl | --x-inc | --x-in | --x-i)
1313     ac_prev=x_includes ;;
1314   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316     x_includes=$ac_optarg ;;
1317
1318   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320     ac_prev=x_libraries ;;
1321   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323     x_libraries=$ac_optarg ;;
1324
1325   -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     case $ac_envvar in #(
1333       '' | [0-9]* | *[!_$as_cr_alnum]* )
1334       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335     esac
1336     eval $ac_envvar=\$ac_optarg
1337     export $ac_envvar ;;
1338
1339   *)
1340     # FIXME: should be removed in autoconf 3.0.
1341     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345     ;;
1346
1347   esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352   as_fn_error "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356   case $enable_option_checking in
1357     no) ;;
1358     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360   esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365                 datadir sysconfdir sharedstatedir localstatedir includedir \
1366                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367                 libdir localedir mandir
1368 do
1369   eval ac_val=\$$ac_var
1370   # Remove trailing slashes.
1371   case $ac_val in
1372     */ )
1373       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374       eval $ac_var=\$ac_val;;
1375   esac
1376   # Be sure to have absolute directory names.
1377   case $ac_val in
1378     [\\/$]* | ?:[\\/]* )  continue;;
1379     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380   esac
1381   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393   if test "x$build_alias" = x; then
1394     cross_compiling=maybe
1395     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396     If a cross compiler is detected then cross compile mode will be used." >&2
1397   elif test "x$build_alias" != "x$host_alias"; then
1398     cross_compiling=yes
1399   fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411   as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413   as_fn_error "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418   ac_srcdir_defaulted=yes
1419   # Try the directory containing this script, then the parent directory.
1420   ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422          X"$as_myself" : 'X\(//\)[^/]' \| \
1423          X"$as_myself" : 'X\(//\)$' \| \
1424          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\/\)[^/].*/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)$/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\).*/{
1439             s//\1/
1440             q
1441           }
1442           s/.*/./; q'`
1443   srcdir=$ac_confdir
1444   if test ! -r "$srcdir/$ac_unique_file"; then
1445     srcdir=..
1446   fi
1447 else
1448   ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457         pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460   srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_env_${ac_var}_value=\$${ac_var}
1471   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479   # Omit some internal or obsolete options to make the list less imposing.
1480   # This message is too long to be a string in the A/UX 3.1 sh.
1481   cat <<_ACEOF
1482 \`configure' configures OpenJPEG 1.4.0 to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE.  See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492   -h, --help              display this help and exit
1493       --help=short        display options specific to this package
1494       --help=recursive    display the short help of all the included packages
1495   -V, --version           display version information and exit
1496   -q, --quiet, --silent   do not print \`checking...' messages
1497       --cache-file=FILE   cache test results in FILE [disabled]
1498   -C, --config-cache      alias for \`--cache-file=config.cache'
1499   -n, --no-create         do not create output files
1500       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503   --prefix=PREFIX         install architecture-independent files in PREFIX
1504                           [$ac_default_prefix]
1505   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1506                           [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516   --bindir=DIR            user executables [EPREFIX/bin]
1517   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1518   --libexecdir=DIR        program executables [EPREFIX/libexec]
1519   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1520   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1521   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1522   --libdir=DIR            object code libraries [EPREFIX/lib]
1523   --includedir=DIR        C header files [PREFIX/include]
1524   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1525   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1526   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1527   --infodir=DIR           info documentation [DATAROOTDIR/info]
1528   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1529   --mandir=DIR            man documentation [DATAROOTDIR/man]
1530   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjpeg-1.4.0]
1531   --htmldir=DIR           html documentation [DOCDIR]
1532   --dvidir=DIR            dvi documentation [DOCDIR]
1533   --pdfdir=DIR            pdf documentation [DOCDIR]
1534   --psdir=DIR             ps documentation [DOCDIR]
1535 _ACEOF
1536
1537   cat <<\_ACEOF
1538
1539 Program names:
1540   --program-prefix=PREFIX            prepend PREFIX to installed program names
1541   --program-suffix=SUFFIX            append SUFFIX to installed program names
1542   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1543
1544 System types:
1545   --build=BUILD     configure for building on BUILD [guessed]
1546   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1547   --target=TARGET   configure for building compilers for TARGET [HOST]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552   case $ac_init_help in
1553      short | recursive ) echo "Configuration of OpenJPEG 1.4.0:";;
1554    esac
1555   cat <<\_ACEOF
1556
1557 Optional Features:
1558   --disable-option-checking  ignore unrecognized --enable/--with options
1559   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1560   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1561   --disable-dependency-tracking  speeds up one-time build
1562   --enable-dependency-tracking   do not reject slow dependency extractors
1563   --disable-largefile     omit support for large files
1564   --enable-shared[=PKGS]  build shared libraries [default=yes]
1565   --enable-static[=PKGS]  build static libraries [default=yes]
1566   --enable-fast-install[=PKGS]
1567                           optimize for fast installation [default=yes]
1568   --disable-libtool-lock  avoid locking (might break parallel builds)
1569   --enable-png=[yes|no]          Build with PNG support  [default=yes]
1570   --enable-tiff=[yes|no]         Build with TIFF support  [default=yes]
1571   --enable-lcms2=[yes|no]        Build with LCMS-2 support  [default=yes]
1572   --enable-lcms1=[yes|no]        Build with LCMS-1 support  [default=yes]
1573   --enable-jpwl=[yes|no]         Build with JPWL support  [default=no]
1574   --enable-shared=[yes|no]       Build shared libs  [default=yes]
1575   --enable-jp3d=[yes|no]         Build jp3d libs  [default=no]
1576
1577 Optional Packages:
1578   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1579   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1580   --with-pic              try to use only PIC/non-PIC objects [default=use
1581                           both]
1582   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1583   --with-png-includes=DIR         PNG includes in nonstandard DIR
1584   --with-png-libraries=DIR        PNG library in nonstandard DIR
1585   --with-tiff-includes=DIR        TIFF includes in nonstandard DIR
1586   --with-tiff-libraries=DIR       TIFF library in nonstandard DIR
1587   --with-lcms2-includes=DIR       LCMS-2 includes in nonstandard DIR
1588   --with-lcms2-libraries=DIR      LCMS-2 library in nonstandard DIR
1589   --with-lcms1-includes=DIR       LCMS-1 includes in nonstandard DIR
1590   --with-lcms1-libraries=DIR      LCMS-1 library in nonstandard DIR
1591
1592 Some influential environment variables:
1593   CC          C compiler command
1594   CFLAGS      C compiler flags
1595   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1596               nonstandard directory <lib dir>
1597   LIBS        libraries to pass to the linker, e.g. -l<library>
1598   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599               you have headers in a nonstandard directory <include dir>
1600   CXX         C++ compiler command
1601   CXXFLAGS    C++ compiler flags
1602   CPP         C preprocessor
1603   CXXCPP      C++ preprocessor
1604
1605 Use these variables to override the choices made by `configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1607
1608 Report bugs to <http://code.google.com/p/openjpeg/>.
1609 OpenJPEG home page: <http://www.openjpeg.org/>.
1610 _ACEOF
1611 ac_status=$?
1612 fi
1613
1614 if test "$ac_init_help" = "recursive"; then
1615   # If there are subdirs, report their specific --help.
1616   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617     test -d "$ac_dir" ||
1618       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619       continue
1620     ac_builddir=.
1621
1622 case "$ac_dir" in
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *)
1625   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626   # A ".." for each directory in $ac_dir_suffix.
1627   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628   case $ac_top_builddir_sub in
1629   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631   esac ;;
1632 esac
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1637
1638 case $srcdir in
1639   .)  # We are building in place.
1640     ac_srcdir=.
1641     ac_top_srcdir=$ac_top_builddir_sub
1642     ac_abs_top_srcdir=$ac_pwd ;;
1643   [\\/]* | ?:[\\/]* )  # Absolute name.
1644     ac_srcdir=$srcdir$ac_dir_suffix;
1645     ac_top_srcdir=$srcdir
1646     ac_abs_top_srcdir=$srcdir ;;
1647   *) # Relative name.
1648     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649     ac_top_srcdir=$ac_top_build_prefix$srcdir
1650     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 esac
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654     cd "$ac_dir" || { ac_status=$?; continue; }
1655     # Check for guested configure.
1656     if test -f "$ac_srcdir/configure.gnu"; then
1657       echo &&
1658       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659     elif test -f "$ac_srcdir/configure"; then
1660       echo &&
1661       $SHELL "$ac_srcdir/configure" --help=recursive
1662     else
1663       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664     fi || ac_status=$?
1665     cd "$ac_pwd" || { ac_status=$?; break; }
1666   done
1667 fi
1668
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1671   cat <<\_ACEOF
1672 OpenJPEG configure 1.4.0
1673 generated by GNU Autoconf 2.65
1674
1675 Copyright (C) 2009 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1678 _ACEOF
1679   exit
1680 fi
1681
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1685
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   rm -f conftest.$ac_objext
1693   if { { ac_try="$ac_compile"
1694 case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_compile") 2>conftest.err
1701   ac_status=$?
1702   if test -s conftest.err; then
1703     grep -v '^ *+' conftest.err >conftest.er1
1704     cat conftest.er1 >&5
1705     mv -f conftest.er1 conftest.err
1706   fi
1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708   test $ac_status = 0; } && {
1709          test -z "$ac_c_werror_flag" ||
1710          test ! -s conftest.err
1711        } && test -s conftest.$ac_objext; then :
1712   ac_retval=0
1713 else
1714   $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717         ac_retval=1
1718 fi
1719   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720   as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_compile
1723
1724 # ac_fn_cxx_try_compile LINENO
1725 # ----------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_cxx_try_compile ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   rm -f conftest.$ac_objext
1731   if { { ac_try="$ac_compile"
1732 case "(($ac_try" in
1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734   *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738   (eval "$ac_compile") 2>conftest.err
1739   ac_status=$?
1740   if test -s conftest.err; then
1741     grep -v '^ *+' conftest.err >conftest.er1
1742     cat conftest.er1 >&5
1743     mv -f conftest.er1 conftest.err
1744   fi
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; } && {
1747          test -z "$ac_cxx_werror_flag" ||
1748          test ! -s conftest.err
1749        } && test -s conftest.$ac_objext; then :
1750   ac_retval=0
1751 else
1752   $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755         ac_retval=1
1756 fi
1757   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758   as_fn_set_status $ac_retval
1759
1760 } # ac_fn_cxx_try_compile
1761
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_link ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   rm -f conftest.$ac_objext conftest$ac_exeext
1769   if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_link") 2>conftest.err
1777   ac_status=$?
1778   if test -s conftest.err; then
1779     grep -v '^ *+' conftest.err >conftest.er1
1780     cat conftest.er1 >&5
1781     mv -f conftest.er1 conftest.err
1782   fi
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && {
1785          test -z "$ac_c_werror_flag" ||
1786          test ! -s conftest.err
1787        } && test -s conftest$ac_exeext && {
1788          test "$cross_compiling" = yes ||
1789          $as_test_x conftest$ac_exeext
1790        }; then :
1791   ac_retval=0
1792 else
1793   $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796         ac_retval=1
1797 fi
1798   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800   # interfere with the next link command; also delete a directory that is
1801   # left behind by Apple's compiler.  We do this before executing the actions.
1802   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804   as_fn_set_status $ac_retval
1805
1806 } # ac_fn_c_try_link
1807
1808 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1809 # -------------------------------------------------------
1810 # Tests whether HEADER exists and can be compiled using the include files in
1811 # INCLUDES, setting the cache variable VAR accordingly.
1812 ac_fn_c_check_header_compile ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818   $as_echo_n "(cached) " >&6
1819 else
1820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h.  */
1822 $4
1823 #include <$2>
1824 _ACEOF
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826   eval "$3=yes"
1827 else
1828   eval "$3=no"
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 fi
1832 eval ac_res=\$$3
1833                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1835   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836
1837 } # ac_fn_c_check_header_compile
1838
1839 # ac_fn_c_try_cpp LINENO
1840 # ----------------------
1841 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_cpp ()
1843 {
1844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845   if { { ac_try="$ac_cpp conftest.$ac_ext"
1846 case "(($ac_try" in
1847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848   *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1853   ac_status=$?
1854   if test -s conftest.err; then
1855     grep -v '^ *+' conftest.err >conftest.er1
1856     cat conftest.er1 >&5
1857     mv -f conftest.er1 conftest.err
1858   fi
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } >/dev/null && {
1861          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1862          test ! -s conftest.err
1863        }; then :
1864   ac_retval=0
1865 else
1866   $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869     ac_retval=1
1870 fi
1871   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872   as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_cpp
1875
1876 # ac_fn_c_try_run LINENO
1877 # ----------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879 # that executables *can* be run.
1880 ac_fn_c_try_run ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   if { { ac_try="$ac_link"
1884 case "(($ac_try" in
1885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886   *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890   (eval "$ac_link") 2>&5
1891   ac_status=$?
1892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1894   { { case "(($ac_try" in
1895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896   *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900   (eval "$ac_try") 2>&5
1901   ac_status=$?
1902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903   test $ac_status = 0; }; }; then :
1904   ac_retval=0
1905 else
1906   $as_echo "$as_me: program exited with status $ac_status" >&5
1907        $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910        ac_retval=$ac_status
1911 fi
1912   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914   as_fn_set_status $ac_retval
1915
1916 } # ac_fn_c_try_run
1917
1918 # ac_fn_c_check_func LINENO FUNC VAR
1919 # ----------------------------------
1920 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1921 ac_fn_c_check_func ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927   $as_echo_n "(cached) " >&6
1928 else
1929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1933 #define $2 innocuous_$2
1934
1935 /* System header to define __stub macros and hopefully few prototypes,
1936     which can conflict with char $2 (); below.
1937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938     <limits.h> exists even on freestanding compilers.  */
1939
1940 #ifdef __STDC__
1941 # include <limits.h>
1942 #else
1943 # include <assert.h>
1944 #endif
1945
1946 #undef $2
1947
1948 /* Override any GCC internal prototype to avoid an error.
1949    Use char because int might match the return type of a GCC
1950    builtin and then its argument prototype would still apply.  */
1951 #ifdef __cplusplus
1952 extern "C"
1953 #endif
1954 char $2 ();
1955 /* The GNU C library defines this for functions which it implements
1956     to always fail with ENOSYS.  Some functions are actually named
1957     something starting with __ and the normal name is an alias.  */
1958 #if defined __stub_$2 || defined __stub___$2
1959 choke me
1960 #endif
1961
1962 int
1963 main ()
1964 {
1965 return $2 ();
1966   ;
1967   return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_link "$LINENO"; then :
1971   eval "$3=yes"
1972 else
1973   eval "$3=no"
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext \
1976     conftest$ac_exeext conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$3
1979                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982
1983 } # ac_fn_c_check_func
1984
1985 # ac_fn_cxx_try_cpp LINENO
1986 # ------------------------
1987 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_cxx_try_cpp ()
1989 {
1990   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991   if { { ac_try="$ac_cpp conftest.$ac_ext"
1992 case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1999   ac_status=$?
2000   if test -s conftest.err; then
2001     grep -v '^ *+' conftest.err >conftest.er1
2002     cat conftest.er1 >&5
2003     mv -f conftest.er1 conftest.err
2004   fi
2005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006   test $ac_status = 0; } >/dev/null && {
2007          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2008          test ! -s conftest.err
2009        }; then :
2010   ac_retval=0
2011 else
2012   $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015     ac_retval=1
2016 fi
2017   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018   as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_cpp
2021
2022 # ac_fn_cxx_try_link LINENO
2023 # -------------------------
2024 # Try to link conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_link ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   rm -f conftest.$ac_objext conftest$ac_exeext
2029   if { { ac_try="$ac_link"
2030 case "(($ac_try" in
2031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032   *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036   (eval "$ac_link") 2>conftest.err
2037   ac_status=$?
2038   if test -s conftest.err; then
2039     grep -v '^ *+' conftest.err >conftest.er1
2040     cat conftest.er1 >&5
2041     mv -f conftest.er1 conftest.err
2042   fi
2043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044   test $ac_status = 0; } && {
2045          test -z "$ac_cxx_werror_flag" ||
2046          test ! -s conftest.err
2047        } && test -s conftest$ac_exeext && {
2048          test "$cross_compiling" = yes ||
2049          $as_test_x conftest$ac_exeext
2050        }; then :
2051   ac_retval=0
2052 else
2053   $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056         ac_retval=1
2057 fi
2058   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2059   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2060   # interfere with the next link command; also delete a directory that is
2061   # left behind by Apple's compiler.  We do this before executing the actions.
2062   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064   as_fn_set_status $ac_retval
2065
2066 } # ac_fn_cxx_try_link
2067
2068 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2069 # -------------------------------------------------------
2070 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2071 # the include files in INCLUDES and setting the cache variable VAR
2072 # accordingly.
2073 ac_fn_c_check_header_mongrel ()
2074 {
2075   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 $as_echo_n "checking for $2... " >&6; }
2079 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2080   $as_echo_n "(cached) " >&6
2081 fi
2082 eval ac_res=\$$3
2083                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 $as_echo "$ac_res" >&6; }
2085 else
2086   # Is the header compilable?
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2088 $as_echo_n "checking $2 usability... " >&6; }
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h.  */
2091 $4
2092 #include <$2>
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095   ac_header_compiler=yes
2096 else
2097   ac_header_compiler=no
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2101 $as_echo "$ac_header_compiler" >&6; }
2102
2103 # Is the header present?
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2105 $as_echo_n "checking $2 presence... " >&6; }
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h.  */
2108 #include <$2>
2109 _ACEOF
2110 if ac_fn_c_try_cpp "$LINENO"; then :
2111   ac_header_preproc=yes
2112 else
2113   ac_header_preproc=no
2114 fi
2115 rm -f conftest.err conftest.$ac_ext
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2117 $as_echo "$ac_header_preproc" >&6; }
2118
2119 # So?  What about this header?
2120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2121   yes:no: )
2122     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2123 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2124     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2125 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2126     ;;
2127   no:yes:* )
2128     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2129 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2131 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2132     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2133 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2134     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2135 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2137 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2138 ( cat <<\_ASBOX
2139 ## ------------------------------------------------- ##
2140 ## Report this to http://code.google.com/p/openjpeg/ ##
2141 ## ------------------------------------------------- ##
2142 _ASBOX
2143      ) | sed "s/^/$as_me: WARNING:     /" >&2
2144     ;;
2145 esac
2146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2149   $as_echo_n "(cached) " >&6
2150 else
2151   eval "$3=\$ac_header_compiler"
2152 fi
2153 eval ac_res=\$$3
2154                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 fi
2157   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158
2159 } # ac_fn_c_check_header_mongrel
2160 cat >config.log <<_ACEOF
2161 This file contains any messages produced by compilers while
2162 running configure, to aid debugging if configure makes a mistake.
2163
2164 It was created by OpenJPEG $as_me 1.4.0, which was
2165 generated by GNU Autoconf 2.65.  Invocation command line was
2166
2167   $ $0 $@
2168
2169 _ACEOF
2170 exec 5>>config.log
2171 {
2172 cat <<_ASUNAME
2173 ## --------- ##
2174 ## Platform. ##
2175 ## --------- ##
2176
2177 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182
2183 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2185
2186 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2187 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2188 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2190 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2191 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2192 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2193
2194 _ASUNAME
2195
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201     $as_echo "PATH: $as_dir"
2202   done
2203 IFS=$as_save_IFS
2204
2205 } >&5
2206
2207 cat >&5 <<_ACEOF
2208
2209
2210 ## ----------- ##
2211 ## Core tests. ##
2212 ## ----------- ##
2213
2214 _ACEOF
2215
2216
2217 # Keep a trace of the command line.
2218 # Strip out --no-create and --no-recursion so they do not pile up.
2219 # Strip out --silent because we don't want to record it for future runs.
2220 # Also quote any args containing shell meta-characters.
2221 # Make two passes to allow for proper duplicate-argument suppression.
2222 ac_configure_args=
2223 ac_configure_args0=
2224 ac_configure_args1=
2225 ac_must_keep_next=false
2226 for ac_pass in 1 2
2227 do
2228   for ac_arg
2229   do
2230     case $ac_arg in
2231     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233     | -silent | --silent | --silen | --sile | --sil)
2234       continue ;;
2235     *\'*)
2236       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2237     esac
2238     case $ac_pass in
2239     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2240     2)
2241       as_fn_append ac_configure_args1 " '$ac_arg'"
2242       if test $ac_must_keep_next = true; then
2243         ac_must_keep_next=false # Got value, back to normal.
2244       else
2245         case $ac_arg in
2246           *=* | --config-cache | -C | -disable-* | --disable-* \
2247           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249           | -with-* | --with-* | -without-* | --without-* | --x)
2250             case "$ac_configure_args0 " in
2251               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2252             esac
2253             ;;
2254           -* ) ac_must_keep_next=true ;;
2255         esac
2256       fi
2257       as_fn_append ac_configure_args " '$ac_arg'"
2258       ;;
2259     esac
2260   done
2261 done
2262 { ac_configure_args0=; unset ac_configure_args0;}
2263 { ac_configure_args1=; unset ac_configure_args1;}
2264
2265 # When interrupted or exit'd, cleanup temporary files, and complete
2266 # config.log.  We remove comments because anyway the quotes in there
2267 # would cause problems or look ugly.
2268 # WARNING: Use '\'' to represent an apostrophe within the trap.
2269 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270 trap 'exit_status=$?
2271   # Save into config.log some information that might help in debugging.
2272   {
2273     echo
2274
2275     cat <<\_ASBOX
2276 ## ---------------- ##
2277 ## Cache variables. ##
2278 ## ---------------- ##
2279 _ASBOX
2280     echo
2281     # The following way of writing the cache mishandles newlines in values,
2282 (
2283   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284     eval ac_val=\$$ac_var
2285     case $ac_val in #(
2286     *${as_nl}*)
2287       case $ac_var in #(
2288       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290       esac
2291       case $ac_var in #(
2292       _ | IFS | as_nl) ;; #(
2293       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294       *) { eval $ac_var=; unset $ac_var;} ;;
2295       esac ;;
2296     esac
2297   done
2298   (set) 2>&1 |
2299     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300     *${as_nl}ac_space=\ *)
2301       sed -n \
2302         "s/'\''/'\''\\\\'\'''\''/g;
2303           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304       ;; #(
2305     *)
2306       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307       ;;
2308     esac |
2309     sort
2310 )
2311     echo
2312
2313     cat <<\_ASBOX
2314 ## ----------------- ##
2315 ## Output variables. ##
2316 ## ----------------- ##
2317 _ASBOX
2318     echo
2319     for ac_var in $ac_subst_vars
2320     do
2321       eval ac_val=\$$ac_var
2322       case $ac_val in
2323       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324       esac
2325       $as_echo "$ac_var='\''$ac_val'\''"
2326     done | sort
2327     echo
2328
2329     if test -n "$ac_subst_files"; then
2330       cat <<\_ASBOX
2331 ## ------------------- ##
2332 ## File substitutions. ##
2333 ## ------------------- ##
2334 _ASBOX
2335       echo
2336       for ac_var in $ac_subst_files
2337       do
2338         eval ac_val=\$$ac_var
2339         case $ac_val in
2340         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341         esac
2342         $as_echo "$ac_var='\''$ac_val'\''"
2343       done | sort
2344       echo
2345     fi
2346
2347     if test -s confdefs.h; then
2348       cat <<\_ASBOX
2349 ## ----------- ##
2350 ## confdefs.h. ##
2351 ## ----------- ##
2352 _ASBOX
2353       echo
2354       cat confdefs.h
2355       echo
2356     fi
2357     test "$ac_signal" != 0 &&
2358       $as_echo "$as_me: caught signal $ac_signal"
2359     $as_echo "$as_me: exit $exit_status"
2360   } >&5
2361   rm -f core *.core core.conftest.* &&
2362     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363     exit $exit_status
2364 ' 0
2365 for ac_signal in 1 2 13 15; do
2366   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2367 done
2368 ac_signal=0
2369
2370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2371 rm -f -r conftest* confdefs.h
2372
2373 $as_echo "/* confdefs.h */" > confdefs.h
2374
2375 # Predefined preprocessor variables.
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_NAME "$PACKAGE_NAME"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2387 _ACEOF
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_STRING "$PACKAGE_STRING"
2391 _ACEOF
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395 _ACEOF
2396
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_URL "$PACKAGE_URL"
2399 _ACEOF
2400
2401
2402 # Let the site file select an alternate cache file if it wants to.
2403 # Prefer an explicitly selected file to automatically selected ones.
2404 ac_site_file1=NONE
2405 ac_site_file2=NONE
2406 if test -n "$CONFIG_SITE"; then
2407   ac_site_file1=$CONFIG_SITE
2408 elif test "x$prefix" != xNONE; then
2409   ac_site_file1=$prefix/share/config.site
2410   ac_site_file2=$prefix/etc/config.site
2411 else
2412   ac_site_file1=$ac_default_prefix/share/config.site
2413   ac_site_file2=$ac_default_prefix/etc/config.site
2414 fi
2415 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2416 do
2417   test "x$ac_site_file" = xNONE && continue
2418   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2419     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2420 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2421     sed 's/^/| /' "$ac_site_file" >&5
2422     . "$ac_site_file"
2423   fi
2424 done
2425
2426 if test -r "$cache_file"; then
2427   # Some versions of bash will fail to source /dev/null (special files
2428   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2429   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2430     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2431 $as_echo "$as_me: loading cache $cache_file" >&6;}
2432     case $cache_file in
2433       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434       *)                      . "./$cache_file";;
2435     esac
2436   fi
2437 else
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2439 $as_echo "$as_me: creating cache $cache_file" >&6;}
2440   >$cache_file
2441 fi
2442
2443 # Check that the precious variables saved in the cache have kept the same
2444 # value.
2445 ac_cache_corrupted=false
2446 for ac_var in $ac_precious_vars; do
2447   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448   eval ac_new_set=\$ac_env_${ac_var}_set
2449   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450   eval ac_new_val=\$ac_env_${ac_var}_value
2451   case $ac_old_set,$ac_new_set in
2452     set,)
2453       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455       ac_cache_corrupted=: ;;
2456     ,set)
2457       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2458 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459       ac_cache_corrupted=: ;;
2460     ,);;
2461     *)
2462       if test "x$ac_old_val" != "x$ac_new_val"; then
2463         # differences in whitespace do not lead to failure.
2464         ac_old_val_w=`echo x $ac_old_val`
2465         ac_new_val_w=`echo x $ac_new_val`
2466         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2468 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469           ac_cache_corrupted=:
2470         else
2471           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473           eval $ac_var=\$ac_old_val
2474         fi
2475         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2476 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2477         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2478 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2479       fi;;
2480   esac
2481   # Pass precious variables to config.status.
2482   if test "$ac_new_set" = set; then
2483     case $ac_new_val in
2484     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485     *) ac_arg=$ac_var=$ac_new_val ;;
2486     esac
2487     case " $ac_configure_args " in
2488       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2489       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2490     esac
2491   fi
2492 done
2493 if $ac_cache_corrupted; then
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2497 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2499 fi
2500 ## -------------------- ##
2501 ## Main body of script. ##
2502 ## -------------------- ##
2503
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509
2510
2511
2512 ac_config_headers="$ac_config_headers opj_config.h"
2513
2514 #
2515 ac_aux_dir=
2516 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2517   for ac_t in install-sh install.sh shtool; do
2518     if test -f "$ac_dir/$ac_t"; then
2519       ac_aux_dir=$ac_dir
2520       ac_install_sh="$ac_aux_dir/$ac_t -c"
2521       break 2
2522     fi
2523   done
2524 done
2525 if test -z "$ac_aux_dir"; then
2526   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2527 fi
2528
2529 # These three variables are undocumented and unsupported,
2530 # and are intended to be withdrawn in a future Autoconf release.
2531 # They can cause serious problems if a builder's source tree is in a directory
2532 # whose full name contains unusual characters.
2533 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2534 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2535 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2536
2537
2538 # Make sure we can run config.sub.
2539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2540   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2541
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2543 $as_echo_n "checking build system type... " >&6; }
2544 if test "${ac_cv_build+set}" = set; then :
2545   $as_echo_n "(cached) " >&6
2546 else
2547   ac_build_alias=$build_alias
2548 test "x$ac_build_alias" = x &&
2549   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2550 test "x$ac_build_alias" = x &&
2551   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2553   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2554
2555 fi
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2557 $as_echo "$ac_cv_build" >&6; }
2558 case $ac_cv_build in
2559 *-*-*) ;;
2560 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2561 esac
2562 build=$ac_cv_build
2563 ac_save_IFS=$IFS; IFS='-'
2564 set x $ac_cv_build
2565 shift
2566 build_cpu=$1
2567 build_vendor=$2
2568 shift; shift
2569 # Remember, the first character of IFS is used to create $*,
2570 # except with old shells:
2571 build_os=$*
2572 IFS=$ac_save_IFS
2573 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2574
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2577 $as_echo_n "checking host system type... " >&6; }
2578 if test "${ac_cv_host+set}" = set; then :
2579   $as_echo_n "(cached) " >&6
2580 else
2581   if test "x$host_alias" = x; then
2582   ac_cv_host=$ac_cv_build
2583 else
2584   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2585     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2586 fi
2587
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2590 $as_echo "$ac_cv_host" >&6; }
2591 case $ac_cv_host in
2592 *-*-*) ;;
2593 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2594 esac
2595 host=$ac_cv_host
2596 ac_save_IFS=$IFS; IFS='-'
2597 set x $ac_cv_host
2598 shift
2599 host_cpu=$1
2600 host_vendor=$2
2601 shift; shift
2602 # Remember, the first character of IFS is used to create $*,
2603 # except with old shells:
2604 host_os=$*
2605 IFS=$ac_save_IFS
2606 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2607
2608
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2610 $as_echo_n "checking target system type... " >&6; }
2611 if test "${ac_cv_target+set}" = set; then :
2612   $as_echo_n "(cached) " >&6
2613 else
2614   if test "x$target_alias" = x; then
2615   ac_cv_target=$ac_cv_host
2616 else
2617   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2618     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2619 fi
2620
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2623 $as_echo "$ac_cv_target" >&6; }
2624 case $ac_cv_target in
2625 *-*-*) ;;
2626 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2627 esac
2628 target=$ac_cv_target
2629 ac_save_IFS=$IFS; IFS='-'
2630 set x $ac_cv_target
2631 shift
2632 target_cpu=$1
2633 target_vendor=$2
2634 shift; shift
2635 # Remember, the first character of IFS is used to create $*,
2636 # except with old shells:
2637 target_os=$*
2638 IFS=$ac_save_IFS
2639 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2640
2641
2642 # The aliases save the names the user supplied, while $host etc.
2643 # will get canonicalized.
2644 test -n "$target_alias" &&
2645   test "$program_prefix$program_suffix$program_transform_name" = \
2646     NONENONEs,x,x, &&
2647   program_prefix=${target_alias}-
2648
2649 #foreign:package will not follow the GNU Standards
2650 am__api_version='1.11'
2651
2652 # Find a good install program.  We prefer a C program (faster),
2653 # so one script is as good as another.  But avoid the broken or
2654 # incompatible versions:
2655 # SysV /etc/install, /usr/sbin/install
2656 # SunOS /usr/etc/install
2657 # IRIX /sbin/install
2658 # AIX /bin/install
2659 # AmigaOS /C/install, which installs bootblocks on floppy discs
2660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663 # OS/2's system install, which has a completely different semantic
2664 # ./install, which can be erroneously created by make from ./install.sh.
2665 # Reject install programs that cannot install multiple files.
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2667 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2668 if test -z "$INSTALL"; then
2669 if test "${ac_cv_path_install+set}" = set; then :
2670   $as_echo_n "(cached) " >&6
2671 else
2672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675   IFS=$as_save_IFS
2676   test -z "$as_dir" && as_dir=.
2677     # Account for people who put trailing slashes in PATH elements.
2678 case $as_dir/ in #((
2679   ./ | .// | /[cC]/* | \
2680   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2681   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2682   /usr/ucb/* ) ;;
2683   *)
2684     # OSF1 and SCO ODT 3.0 have their own names for install.
2685     # Don't use installbsd from OSF since it installs stuff as root
2686     # by default.
2687     for ac_prog in ginstall scoinst install; do
2688       for ac_exec_ext in '' $ac_executable_extensions; do
2689         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2690           if test $ac_prog = install &&
2691             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692             # AIX install.  It has an incompatible calling convention.
2693             :
2694           elif test $ac_prog = install &&
2695             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696             # program-specific install script used by HP pwplus--don't use.
2697             :
2698           else
2699             rm -rf conftest.one conftest.two conftest.dir
2700             echo one > conftest.one
2701             echo two > conftest.two
2702             mkdir conftest.dir
2703             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2704               test -s conftest.one && test -s conftest.two &&
2705               test -s conftest.dir/conftest.one &&
2706               test -s conftest.dir/conftest.two
2707             then
2708               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2709               break 3
2710             fi
2711           fi
2712         fi
2713       done
2714     done
2715     ;;
2716 esac
2717
2718   done
2719 IFS=$as_save_IFS
2720
2721 rm -rf conftest.one conftest.two conftest.dir
2722
2723 fi
2724   if test "${ac_cv_path_install+set}" = set; then
2725     INSTALL=$ac_cv_path_install
2726   else
2727     # As a last resort, use the slow shell script.  Don't cache a
2728     # value for INSTALL within a source directory, because that will
2729     # break other packages using the cache if that directory is
2730     # removed, or if the value is a relative name.
2731     INSTALL=$ac_install_sh
2732   fi
2733 fi
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2735 $as_echo "$INSTALL" >&6; }
2736
2737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2738 # It thinks the first close brace ends the variable substitution.
2739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740
2741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2742
2743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2744
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2746 $as_echo_n "checking whether build environment is sane... " >&6; }
2747 # Just in case
2748 sleep 1
2749 echo timestamp > conftest.file
2750 # Reject unsafe characters in $srcdir or the absolute working directory
2751 # name.  Accept space and tab only in the latter.
2752 am_lf='
2753 '
2754 case `pwd` in
2755   *[\\\"\#\$\&\'\`$am_lf]*)
2756     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2757 esac
2758 case $srcdir in
2759   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2760     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2761 esac
2762
2763 # Do `set' in a subshell so we don't clobber the current shell's
2764 # arguments.  Must try -L first in case configure is actually a
2765 # symlink; some systems play weird games with the mod time of symlinks
2766 # (eg FreeBSD returns the mod time of the symlink's containing
2767 # directory).
2768 if (
2769    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2770    if test "$*" = "X"; then
2771       # -L didn't work.
2772       set X `ls -t "$srcdir/configure" conftest.file`
2773    fi
2774    rm -f conftest.file
2775    if test "$*" != "X $srcdir/configure conftest.file" \
2776       && test "$*" != "X conftest.file $srcdir/configure"; then
2777
2778       # If neither matched, then we have a broken ls.  This can happen
2779       # if, for instance, CONFIG_SHELL is bash and it inherits a
2780       # broken ls alias from the environment.  This has actually
2781       # happened.  Such a system could not be considered "sane".
2782       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2783 alias in your environment" "$LINENO" 5
2784    fi
2785
2786    test "$2" = conftest.file
2787    )
2788 then
2789    # Ok.
2790    :
2791 else
2792    as_fn_error "newly created file is older than distributed files!
2793 Check your system clock" "$LINENO" 5
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2796 $as_echo "yes" >&6; }
2797 test "$program_prefix" != NONE &&
2798   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2799 # Use a double $ so make ignores it.
2800 test "$program_suffix" != NONE &&
2801   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2802 # Double any \ or $.
2803 # By default was `s,x,x', remove it if useless.
2804 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2805 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2806
2807 # expand $ac_aux_dir to an absolute path
2808 am_aux_dir=`cd $ac_aux_dir && pwd`
2809
2810 if test x"${MISSING+set}" != xset; then
2811   case $am_aux_dir in
2812   *\ * | *\     *)
2813     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2814   *)
2815     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2816   esac
2817 fi
2818 # Use eval to expand $SHELL
2819 if eval "$MISSING --run true"; then
2820   am_missing_run="$MISSING --run "
2821 else
2822   am_missing_run=
2823   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2824 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2825 fi
2826
2827 if test x"${install_sh}" != xset; then
2828   case $am_aux_dir in
2829   *\ * | *\     *)
2830     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2831   *)
2832     install_sh="\${SHELL} $am_aux_dir/install-sh"
2833   esac
2834 fi
2835
2836 # Installed binaries are usually stripped using `strip' when the user
2837 # run `make install-strip'.  However `strip' might not be the right
2838 # tool to use in cross-compilation environments, therefore Automake
2839 # will honor the `STRIP' environment variable to overrule this program.
2840 if test "$cross_compiling" != no; then
2841   if test -n "$ac_tool_prefix"; then
2842   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}strip; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_STRIP+set}" = set; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   if test -n "$STRIP"; then
2850   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857     for ac_exec_ext in '' $ac_executable_extensions; do
2858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864   done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 STRIP=$ac_cv_prog_STRIP
2870 if test -n "$STRIP"; then
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2872 $as_echo "$STRIP" >&6; }
2873 else
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879 fi
2880 if test -z "$ac_cv_prog_STRIP"; then
2881   ac_ct_STRIP=$STRIP
2882   # Extract the first word of "strip", so it can be a program name with args.
2883 set dummy strip; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2887   $as_echo_n "(cached) " >&6
2888 else
2889   if test -n "$ac_ct_STRIP"; then
2890   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895   IFS=$as_save_IFS
2896   test -z "$as_dir" && as_dir=.
2897     for ac_exec_ext in '' $ac_executable_extensions; do
2898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899     ac_cv_prog_ac_ct_STRIP="strip"
2900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901     break 2
2902   fi
2903 done
2904   done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2910 if test -n "$ac_ct_STRIP"; then
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2912 $as_echo "$ac_ct_STRIP" >&6; }
2913 else
2914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918   if test "x$ac_ct_STRIP" = x; then
2919     STRIP=":"
2920   else
2921     case $cross_compiling:$ac_tool_warned in
2922 yes:)
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925 ac_tool_warned=yes ;;
2926 esac
2927     STRIP=$ac_ct_STRIP
2928   fi
2929 else
2930   STRIP="$ac_cv_prog_STRIP"
2931 fi
2932
2933 fi
2934 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2935
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2937 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2938 if test -z "$MKDIR_P"; then
2939   if test "${ac_cv_path_mkdir+set}" = set; then :
2940   $as_echo_n "(cached) " >&6
2941 else
2942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947     for ac_prog in mkdir gmkdir; do
2948          for ac_exec_ext in '' $ac_executable_extensions; do
2949            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2950            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2951              'mkdir (GNU coreutils) '* | \
2952              'mkdir (coreutils) '* | \
2953              'mkdir (fileutils) '4.1*)
2954                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2955                break 3;;
2956            esac
2957          done
2958        done
2959   done
2960 IFS=$as_save_IFS
2961
2962 fi
2963
2964   test -d ./--version && rmdir ./--version
2965   if test "${ac_cv_path_mkdir+set}" = set; then
2966     MKDIR_P="$ac_cv_path_mkdir -p"
2967   else
2968     # As a last resort, use the slow shell script.  Don't cache a
2969     # value for MKDIR_P within a source directory, because that will
2970     # break other packages using the cache if that directory is
2971     # removed, or if the value is a relative name.
2972     MKDIR_P="$ac_install_sh -d"
2973   fi
2974 fi
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2976 $as_echo "$MKDIR_P" >&6; }
2977
2978 mkdir_p="$MKDIR_P"
2979 case $mkdir_p in
2980   [\\/$]* | ?:[\\/]*) ;;
2981   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2982 esac
2983
2984 for ac_prog in gawk mawk nawk awk
2985 do
2986   # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_AWK+set}" = set; then :
2991   $as_echo_n "(cached) " >&6
2992 else
2993   if test -n "$AWK"; then
2994   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001     for ac_exec_ext in '' $ac_executable_extensions; do
3002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003     ac_cv_prog_AWK="$ac_prog"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 AWK=$ac_cv_prog_AWK
3014 if test -n "$AWK"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3016 $as_echo "$AWK" >&6; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023   test -n "$AWK" && break
3024 done
3025
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3027 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3028 set x ${MAKE-make}
3029 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3030 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   cat >conftest.make <<\_ACEOF
3034 SHELL = /bin/sh
3035 all:
3036         @echo '@@@%%%=$(MAKE)=@@@%%%'
3037 _ACEOF
3038 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3039 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3040   *@@@%%%=?*=@@@%%%*)
3041     eval ac_cv_prog_make_${ac_make}_set=yes;;
3042   *)
3043     eval ac_cv_prog_make_${ac_make}_set=no;;
3044 esac
3045 rm -f conftest.make
3046 fi
3047 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3049 $as_echo "yes" >&6; }
3050   SET_MAKE=
3051 else
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054   SET_MAKE="MAKE=${MAKE-make}"
3055 fi
3056
3057 rm -rf .tst 2>/dev/null
3058 mkdir .tst 2>/dev/null
3059 if test -d .tst; then
3060   am__leading_dot=.
3061 else
3062   am__leading_dot=_
3063 fi
3064 rmdir .tst 2>/dev/null
3065
3066 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3067   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3068   # is not polluted with repeated "-I."
3069   am__isrc=' -I$(srcdir)'
3070   # test to see if srcdir already configured
3071   if test -f $srcdir/config.status; then
3072     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3073   fi
3074 fi
3075
3076 # test whether we have cygpath
3077 if test -z "$CYGPATH_W"; then
3078   if (cygpath --version) >/dev/null 2>/dev/null; then
3079     CYGPATH_W='cygpath -w'
3080   else
3081     CYGPATH_W=echo
3082   fi
3083 fi
3084
3085
3086 # Define the identity of the package.
3087  PACKAGE='openjpeg-1.4.0'
3088  VERSION='1.4.0'
3089
3090
3091 cat >>confdefs.h <<_ACEOF
3092 #define PACKAGE "$PACKAGE"
3093 _ACEOF
3094
3095
3096 cat >>confdefs.h <<_ACEOF
3097 #define VERSION "$VERSION"
3098 _ACEOF
3099
3100 # Some tools Automake needs.
3101
3102 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3103
3104
3105 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3106
3107
3108 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3109
3110
3111 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3112
3113
3114 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3115
3116 # We need awk for the "check" target.  The system "awk" is bad on
3117 # some platforms.
3118 # Always define AMTAR for backward compatibility.
3119
3120 AMTAR=${AMTAR-"${am_missing_run}tar"}
3121
3122 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3123
3124
3125
3126
3127
3128 #
3129 MAJOR_NR=1
3130 MINOR_NR=4
3131 BUILD_NR=0
3132
3133
3134
3135 #
3136 JP3D_MAJOR_NR=1
3137 JP3D_MINOR_NR=3
3138 JP3D_BUILD_NR=0
3139
3140
3141
3142 #
3143 # Checks for programs.
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$CC"; then
3158   ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165     for ac_exec_ext in '' $ac_executable_extensions; do
3166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172   done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 fi
3188 if test -z "$ac_cv_prog_CC"; then
3189   ac_ct_CC=$CC
3190   # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$ac_ct_CC"; then
3198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205     for ac_exec_ext in '' $ac_executable_extensions; do
3206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207     ac_cv_prog_ac_ct_CC="gcc"
3208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212   done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3221 else
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226   if test "x$ac_ct_CC" = x; then
3227     CC=""
3228   else
3229     case $cross_compiling:$ac_tool_warned in
3230 yes:)
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3234 esac
3235     CC=$ac_ct_CC
3236   fi
3237 else
3238   CC="$ac_cv_prog_CC"
3239 fi
3240
3241 if test -z "$CC"; then
3242           if test -n "$ac_tool_prefix"; then
3243     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if test -n "$CC"; then
3251   ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256   IFS=$as_save_IFS
3257   test -z "$as_dir" && as_dir=.
3258     for ac_exec_ext in '' $ac_executable_extensions; do
3259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260     ac_cv_prog_CC="${ac_tool_prefix}cc"
3261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262     break 2
3263   fi
3264 done
3265   done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280   fi
3281 fi
3282 if test -z "$CC"; then
3283   # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then :
3288   $as_echo_n "(cached) " >&6
3289 else
3290   if test -n "$CC"; then
3291   ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293   ac_prog_rejected=no
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299     for ac_exec_ext in '' $ac_executable_extensions; do
3300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302        ac_prog_rejected=yes
3303        continue
3304      fi
3305     ac_cv_prog_CC="cc"
3306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310   done
3311 IFS=$as_save_IFS
3312
3313 if test $ac_prog_rejected = yes; then
3314   # We found a bogon in the path, so make sure we never use it.
3315   set dummy $ac_cv_prog_CC
3316   shift
3317   if test $# != 0; then
3318     # We chose a different compiler from the bogus one.
3319     # However, it has the same basename, so the bogon will be chosen
3320     # first if we set CC to just the basename; use the full file name.
3321     shift
3322     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3323   fi
3324 fi
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 fi
3338 if test -z "$CC"; then
3339   if test -n "$ac_tool_prefix"; then
3340   for ac_prog in cl.exe
3341   do
3342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then :
3347   $as_echo_n "(cached) " >&6
3348 else
3349   if test -n "$CC"; then
3350   ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355   IFS=$as_save_IFS
3356   test -z "$as_dir" && as_dir=.
3357     for ac_exec_ext in '' $ac_executable_extensions; do
3358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361     break 2
3362   fi
3363 done
3364   done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 fi
3377
3378
3379     test -n "$CC" && break
3380   done
3381 fi
3382 if test -z "$CC"; then
3383   ac_ct_CC=$CC
3384   for ac_prog in cl.exe
3385 do
3386   # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3391   $as_echo_n "(cached) " >&6
3392 else
3393   if test -n "$ac_ct_CC"; then
3394   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401     for ac_exec_ext in '' $ac_executable_extensions; do
3402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403     ac_cv_prog_ac_ct_CC="$ac_prog"
3404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408   done
3409 IFS=$as_save_IFS
3410
3411 fi
3412 fi
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3417 else
3418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 fi
3421
3422
3423   test -n "$ac_ct_CC" && break
3424 done
3425
3426   if test "x$ac_ct_CC" = x; then
3427     CC=""
3428   else
3429     case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435     CC=$ac_ct_CC
3436   fi
3437 fi
3438
3439 fi
3440
3441
3442 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error "no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." "$LINENO" 5; }
3446
3447 # Provide some information about the compiler.
3448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3449 set X $ac_compile
3450 ac_compiler=$2
3451 for ac_option in --version -v -V -qversion; do
3452   { { ac_try="$ac_compiler $ac_option >&5"
3453 case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3460   ac_status=$?
3461   if test -s conftest.err; then
3462     sed '10a\
3463 ... rest of stderr output deleted ...
3464          10q' conftest.err >conftest.er1
3465     cat conftest.er1 >&5
3466   fi
3467   rm -f conftest.er1 conftest.err
3468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469   test $ac_status = 0; }
3470 done
3471
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 ac_clean_files_save=$ac_clean_files
3484 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3485 # Try to create an executable without -o first, disregard a.out.
3486 # It will help us diagnose broken compilers, and finding out an intuition
3487 # of exeext.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3489 $as_echo_n "checking whether the C compiler works... " >&6; }
3490 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3491
3492 # The possible output files:
3493 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3494
3495 ac_rmfiles=
3496 for ac_file in $ac_files
3497 do
3498   case $ac_file in
3499     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3500     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3501   esac
3502 done
3503 rm -f $ac_rmfiles
3504
3505 if { { ac_try="$ac_link_default"
3506 case "(($ac_try" in
3507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508   *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512   (eval "$ac_link_default") 2>&5
3513   ac_status=$?
3514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515   test $ac_status = 0; }; then :
3516   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3517 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3518 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3519 # so that the user can short-circuit this test for compilers unknown to
3520 # Autoconf.
3521 for ac_file in $ac_files ''
3522 do
3523   test -f "$ac_file" || continue
3524   case $ac_file in
3525     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3526         ;;
3527     [ab].out )
3528         # We found the default executable, but exeext='' is most
3529         # certainly right.
3530         break;;
3531     *.* )
3532         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3533         then :; else
3534            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535         fi
3536         # We set ac_cv_exeext here because the later test for it is not
3537         # safe: cross compilers may not add the suffix if given an `-o'
3538         # argument, so we may need to know it at that point already.
3539         # Even if this section looks crufty: it has the advantage of
3540         # actually working.
3541         break;;
3542     * )
3543         break;;
3544   esac
3545 done
3546 test "$ac_cv_exeext" = no && ac_cv_exeext=
3547
3548 else
3549   ac_file=''
3550 fi
3551 if test -z "$ac_file"; then :
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 { as_fn_set_status 77
3560 as_fn_error "C compiler cannot create executables
3561 See \`config.log' for more details." "$LINENO" 5; }; }
3562 else
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 $as_echo "yes" >&6; }
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3567 $as_echo_n "checking for C compiler default output file name... " >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3569 $as_echo "$ac_file" >&6; }
3570 ac_exeext=$ac_cv_exeext
3571
3572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3573 ac_clean_files=$ac_clean_files_save
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3575 $as_echo_n "checking for suffix of executables... " >&6; }
3576 if { { ac_try="$ac_link"
3577 case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583   (eval "$ac_link") 2>&5
3584   ac_status=$?
3585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586   test $ac_status = 0; }; then :
3587   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3588 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3589 # work properly (i.e., refer to `conftest.exe'), while it won't with
3590 # `rm'.
3591 for ac_file in conftest.exe conftest conftest.*; do
3592   test -f "$ac_file" || continue
3593   case $ac_file in
3594     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596           break;;
3597     * ) break;;
3598   esac
3599 done
3600 else
3601   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error "cannot compute suffix of executables: cannot compile and link
3604 See \`config.log' for more details." "$LINENO" 5; }
3605 fi
3606 rm -f conftest conftest$ac_cv_exeext
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3608 $as_echo "$ac_cv_exeext" >&6; }
3609
3610 rm -f conftest.$ac_ext
3611 EXEEXT=$ac_cv_exeext
3612 ac_exeext=$EXEEXT
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h.  */
3615 #include <stdio.h>
3616 int
3617 main ()
3618 {
3619 FILE *f = fopen ("conftest.out", "w");
3620  return ferror (f) || fclose (f) != 0;
3621
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 ac_clean_files="$ac_clean_files conftest.out"
3627 # Check that the compiler produces executables we can run.  If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 if test "$cross_compiling" != yes; then
3632   { { ac_try="$ac_link"
3633 case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639   (eval "$ac_link") 2>&5
3640   ac_status=$?
3641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642   test $ac_status = 0; }
3643   if { ac_try='./conftest$ac_cv_exeext'
3644   { { case "(($ac_try" in
3645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646   *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650   (eval "$ac_try") 2>&5
3651   ac_status=$?
3652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653   test $ac_status = 0; }; }; then
3654     cross_compiling=no
3655   else
3656     if test "$cross_compiling" = maybe; then
3657         cross_compiling=yes
3658     else
3659         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error "cannot run C compiled programs.
3662 If you meant to cross compile, use \`--host'.
3663 See \`config.log' for more details." "$LINENO" 5; }
3664     fi
3665   fi
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3668 $as_echo "$cross_compiling" >&6; }
3669
3670 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3671 ac_clean_files=$ac_clean_files_save
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3673 $as_echo_n "checking for suffix of object files... " >&6; }
3674 if test "${ac_cv_objext+set}" = set; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h.  */
3679
3680 int
3681 main ()
3682 {
3683
3684   ;
3685   return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.o conftest.obj
3689 if { { ac_try="$ac_compile"
3690 case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696   (eval "$ac_compile") 2>&5
3697   ac_status=$?
3698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699   test $ac_status = 0; }; then :
3700   for ac_file in conftest.o conftest.obj conftest.*; do
3701   test -f "$ac_file" || continue;
3702   case $ac_file in
3703     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3704     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3705        break;;
3706   esac
3707 done
3708 else
3709   $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error "cannot compute suffix of object files: cannot compile
3715 See \`config.log' for more details." "$LINENO" 5; }
3716 fi
3717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3720 $as_echo "$ac_cv_objext" >&6; }
3721 OBJEXT=$ac_cv_objext
3722 ac_objext=$OBJEXT
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3724 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3725 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3726   $as_echo_n "(cached) " >&6
3727 else
3728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734 #ifndef __GNUC__
3735        choke me
3736 #endif
3737
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 if ac_fn_c_try_compile "$LINENO"; then :
3743   ac_compiler_gnu=yes
3744 else
3745   ac_compiler_gnu=no
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3749
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3752 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3753 if test $ac_compiler_gnu = yes; then
3754   GCC=yes
3755 else
3756   GCC=
3757 fi
3758 ac_test_CFLAGS=${CFLAGS+set}
3759 ac_save_CFLAGS=$CFLAGS
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3761 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3762 if test "${ac_cv_prog_cc_g+set}" = set; then :
3763   $as_echo_n "(cached) " >&6
3764 else
3765   ac_save_c_werror_flag=$ac_c_werror_flag
3766    ac_c_werror_flag=yes
3767    ac_cv_prog_cc_g=no
3768    CFLAGS="-g"
3769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781   ac_cv_prog_cc_g=yes
3782 else
3783   CFLAGS=""
3784       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h.  */
3786
3787 int
3788 main ()
3789 {
3790
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 if ac_fn_c_try_compile "$LINENO"; then :
3796
3797 else
3798   ac_c_werror_flag=$ac_save_c_werror_flag
3799          CFLAGS="-g"
3800          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802
3803 int
3804 main ()
3805 {
3806
3807   ;
3808   return 0;
3809 }
3810 _ACEOF
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812   ac_cv_prog_cc_g=yes
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819    ac_c_werror_flag=$ac_save_c_werror_flag
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3822 $as_echo "$ac_cv_prog_cc_g" >&6; }
3823 if test "$ac_test_CFLAGS" = set; then
3824   CFLAGS=$ac_save_CFLAGS
3825 elif test $ac_cv_prog_cc_g = yes; then
3826   if test "$GCC" = yes; then
3827     CFLAGS="-g -O2"
3828   else
3829     CFLAGS="-g"
3830   fi
3831 else
3832   if test "$GCC" = yes; then
3833     CFLAGS="-O2"
3834   else
3835     CFLAGS=
3836   fi
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3840 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   ac_cv_prog_cc_c89=no
3844 ac_save_CC=$CC
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h.  */
3847 #include <stdarg.h>
3848 #include <stdio.h>
3849 #include <sys/types.h>
3850 #include <sys/stat.h>
3851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3852 struct buf { int x; };
3853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3854 static char *e (p, i)
3855      char **p;
3856      int i;
3857 {
3858   return p[i];
3859 }
3860 static char *f (char * (*g) (char **, int), char **p, ...)
3861 {
3862   char *s;
3863   va_list v;
3864   va_start (v,p);
3865   s = g (p, va_arg (v,int));
3866   va_end (v);
3867   return s;
3868 }
3869
3870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3871    function prototypes and stuff, but not '\xHH' hex character constants.
3872    These don't provoke an error unfortunately, instead are silently treated
3873    as 'x'.  The following induces an error, until -std is added to get
3874    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3875    array size at least.  It's necessary to write '\x00'==0 to get something
3876    that's true only with -std.  */
3877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3878
3879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3880    inside strings and character constants.  */
3881 #define FOO(x) 'x'
3882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3883
3884 int test (int i, double x);
3885 struct s1 {int (*f) (int a);};
3886 struct s2 {int (*f) (double a);};
3887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3888 int argc;
3889 char **argv;
3890 int
3891 main ()
3892 {
3893 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3899         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900 do
3901   CC="$ac_save_CC $ac_arg"
3902   if ac_fn_c_try_compile "$LINENO"; then :
3903   ac_cv_prog_cc_c89=$ac_arg
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext
3906   test "x$ac_cv_prog_cc_c89" != "xno" && break
3907 done
3908 rm -f conftest.$ac_ext
3909 CC=$ac_save_CC
3910
3911 fi
3912 # AC_CACHE_VAL
3913 case "x$ac_cv_prog_cc_c89" in
3914   x)
3915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3916 $as_echo "none needed" >&6; } ;;
3917   xno)
3918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3919 $as_echo "unsupported" >&6; } ;;
3920   *)
3921     CC="$CC $ac_cv_prog_cc_c89"
3922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3923 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3924 esac
3925 if test "x$ac_cv_prog_cc_c89" != xno; then :
3926
3927 fi
3928
3929 ac_ext=c
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934 DEPDIR="${am__leading_dot}deps"
3935
3936 ac_config_commands="$ac_config_commands depfiles"
3937
3938
3939 am_make=${MAKE-make}
3940 cat > confinc << 'END'
3941 am__doit:
3942         @echo this is the am__doit target
3943 .PHONY: am__doit
3944 END
3945 # If we don't find an include directive, just comment out the code.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3948 am__include="#"
3949 am__quote=
3950 _am_result=none
3951 # First try GNU make style include.
3952 echo "include confinc" > confmf
3953 # Ignore all kinds of additional output from `make'.
3954 case `$am_make -s -f confmf 2> /dev/null` in #(
3955 *the\ am__doit\ target*)
3956   am__include=include
3957   am__quote=
3958   _am_result=GNU
3959   ;;
3960 esac
3961 # Now try BSD make style include.
3962 if test "$am__include" = "#"; then
3963    echo '.include "confinc"' > confmf
3964    case `$am_make -s -f confmf 2> /dev/null` in #(
3965    *the\ am__doit\ target*)
3966      am__include=.include
3967      am__quote="\""
3968      _am_result=BSD
3969      ;;
3970    esac
3971 fi
3972
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3975 $as_echo "$_am_result" >&6; }
3976 rm -f confinc confmf
3977
3978 # Check whether --enable-dependency-tracking was given.
3979 if test "${enable_dependency_tracking+set}" = set; then :
3980   enableval=$enable_dependency_tracking;
3981 fi
3982
3983 if test "x$enable_dependency_tracking" != xno; then
3984   am_depcomp="$ac_aux_dir/depcomp"
3985   AMDEPBACKSLASH='\'
3986 fi
3987  if test "x$enable_dependency_tracking" != xno; then
3988   AMDEP_TRUE=
3989   AMDEP_FALSE='#'
3990 else
3991   AMDEP_TRUE='#'
3992   AMDEP_FALSE=
3993 fi
3994
3995
3996
3997 depcc="$CC"   am_compiler_list=
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4000 $as_echo_n "checking dependency style of $depcc... " >&6; }
4001 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4005   # We make a subdir and do the tests there.  Otherwise we can end up
4006   # making bogus files that we don't know about and never remove.  For
4007   # instance it was reported that on HP-UX the gcc test will end up
4008   # making a dummy file named `D' -- because `-MD' means `put the output
4009   # in D'.
4010   mkdir conftest.dir
4011   # Copy depcomp to subdir because otherwise we won't find it if we're
4012   # using a relative directory.
4013   cp "$am_depcomp" conftest.dir
4014   cd conftest.dir
4015   # We will build objects and dependencies in a subdirectory because
4016   # it helps to detect inapplicable dependency modes.  For instance
4017   # both Tru64's cc and ICC support -MD to output dependencies as a
4018   # side effect of compilation, but ICC will put the dependencies in
4019   # the current directory while Tru64 will put them in the object
4020   # directory.
4021   mkdir sub
4022
4023   am_cv_CC_dependencies_compiler_type=none
4024   if test "$am_compiler_list" = ""; then
4025      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4026   fi
4027   am__universal=false
4028   case " $depcc " in #(
4029      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4030      esac
4031
4032   for depmode in $am_compiler_list; do
4033     # Setup a source with many dependencies, because some compilers
4034     # like to wrap large dependency lists on column 80 (with \), and
4035     # we should not choose a depcomp mode which is confused by this.
4036     #
4037     # We need to recreate these files for each test, as the compiler may
4038     # overwrite some of them when testing with obscure command lines.
4039     # This happens at least with the AIX C compiler.
4040     : > sub/conftest.c
4041     for i in 1 2 3 4 5 6; do
4042       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4043       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4044       # Solaris 8's {/usr,}/bin/sh.
4045       touch sub/conftst$i.h
4046     done
4047     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4048
4049     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4050     # mode.  It turns out that the SunPro C++ compiler does not properly
4051     # handle `-M -o', and we need to detect this.  Also, some Intel
4052     # versions had trouble with output in subdirs
4053     am__obj=sub/conftest.${OBJEXT-o}
4054     am__minus_obj="-o $am__obj"
4055     case $depmode in
4056     gcc)
4057       # This depmode causes a compiler race in universal mode.
4058       test "$am__universal" = false || continue
4059       ;;
4060     nosideeffect)
4061       # after this tag, mechanisms are not by side-effect, so they'll
4062       # only be used when explicitly requested
4063       if test "x$enable_dependency_tracking" = xyes; then
4064         continue
4065       else
4066         break
4067       fi
4068       ;;
4069     msvisualcpp | msvcmsys)
4070       # This compiler won't grok `-c -o', but also, the minuso test has
4071       # not run yet.  These depmodes are late enough in the game, and
4072       # so weak that their functioning should not be impacted.
4073       am__obj=conftest.${OBJEXT-o}
4074       am__minus_obj=
4075       ;;
4076     none) break ;;
4077     esac
4078     if depmode=$depmode \
4079        source=sub/conftest.c object=$am__obj \
4080        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4082          >/dev/null 2>conftest.err &&
4083        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4084        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4085        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4086        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4087       # icc doesn't choke on unknown options, it will just issue warnings
4088       # or remarks (even with -Werror).  So we grep stderr for any message
4089       # that says an option was ignored or not supported.
4090       # When given -MP, icc 7.0 and 7.1 complain thusly:
4091       #   icc: Command line warning: ignoring option '-M'; no argument required
4092       # The diagnosis changed in icc 8.0:
4093       #   icc: Command line remark: option '-MP' not supported
4094       if (grep 'ignoring option' conftest.err ||
4095           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4096         am_cv_CC_dependencies_compiler_type=$depmode
4097         break
4098       fi
4099     fi
4100   done
4101
4102   cd ..
4103   rm -rf conftest.dir
4104 else
4105   am_cv_CC_dependencies_compiler_type=none
4106 fi
4107
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4110 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4111 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4112
4113  if
4114   test "x$enable_dependency_tracking" != xno \
4115   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4116   am__fastdepCC_TRUE=
4117   am__fastdepCC_FALSE='#'
4118 else
4119   am__fastdepCC_TRUE='#'
4120   am__fastdepCC_FALSE=
4121 fi
4122
4123
4124 ac_ext=cpp
4125 ac_cpp='$CXXCPP $CPPFLAGS'
4126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4129 if test -z "$CXX"; then
4130   if test -n "$CCC"; then
4131     CXX=$CCC
4132   else
4133     if test -n "$ac_tool_prefix"; then
4134   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4135   do
4136     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if test "${ac_cv_prog_CXX+set}" = set; then :
4141   $as_echo_n "(cached) " >&6
4142 else
4143   if test -n "$CXX"; then
4144   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149   IFS=$as_save_IFS
4150   test -z "$as_dir" && as_dir=.
4151     for ac_exec_ext in '' $ac_executable_extensions; do
4152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4153     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155     break 2
4156   fi
4157 done
4158   done
4159 IFS=$as_save_IFS
4160
4161 fi
4162 fi
4163 CXX=$ac_cv_prog_CXX
4164 if test -n "$CXX"; then
4165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4166 $as_echo "$CXX" >&6; }
4167 else
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4170 fi
4171
4172
4173     test -n "$CXX" && break
4174   done
4175 fi
4176 if test -z "$CXX"; then
4177   ac_ct_CXX=$CXX
4178   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4179 do
4180   # Extract the first word of "$ac_prog", so it can be a program name with args.
4181 set dummy $ac_prog; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if test -n "$ac_ct_CXX"; then
4188   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195     for ac_exec_ext in '' $ac_executable_extensions; do
4196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197     ac_cv_prog_ac_ct_CXX="$ac_prog"
4198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202   done
4203 IFS=$as_save_IFS
4204
4205 fi
4206 fi
4207 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4208 if test -n "$ac_ct_CXX"; then
4209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4210 $as_echo "$ac_ct_CXX" >&6; }
4211 else
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215
4216
4217   test -n "$ac_ct_CXX" && break
4218 done
4219
4220   if test "x$ac_ct_CXX" = x; then
4221     CXX="g++"
4222   else
4223     case $cross_compiling:$ac_tool_warned in
4224 yes:)
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4227 ac_tool_warned=yes ;;
4228 esac
4229     CXX=$ac_ct_CXX
4230   fi
4231 fi
4232
4233   fi
4234 fi
4235 # Provide some information about the compiler.
4236 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4237 set X $ac_compile
4238 ac_compiler=$2
4239 for ac_option in --version -v -V -qversion; do
4240   { { ac_try="$ac_compiler $ac_option >&5"
4241 case "(($ac_try" in
4242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243   *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4248   ac_status=$?
4249   if test -s conftest.err; then
4250     sed '10a\
4251 ... rest of stderr output deleted ...
4252          10q' conftest.err >conftest.er1
4253     cat conftest.er1 >&5
4254   fi
4255   rm -f conftest.er1 conftest.err
4256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257   test $ac_status = 0; }
4258 done
4259
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4261 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4263   $as_echo_n "(cached) " >&6
4264 else
4265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h.  */
4267
4268 int
4269 main ()
4270 {
4271 #ifndef __GNUC__
4272        choke me
4273 #endif
4274
4275   ;
4276   return 0;
4277 }
4278 _ACEOF
4279 if ac_fn_cxx_try_compile "$LINENO"; then :
4280   ac_compiler_gnu=yes
4281 else
4282   ac_compiler_gnu=no
4283 fi
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4286
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4289 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4290 if test $ac_compiler_gnu = yes; then
4291   GXX=yes
4292 else
4293   GXX=
4294 fi
4295 ac_test_CXXFLAGS=${CXXFLAGS+set}
4296 ac_save_CXXFLAGS=$CXXFLAGS
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4298 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4299 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4300   $as_echo_n "(cached) " >&6
4301 else
4302   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4303    ac_cxx_werror_flag=yes
4304    ac_cv_prog_cxx_g=no
4305    CXXFLAGS="-g"
4306    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h.  */
4308
4309 int
4310 main ()
4311 {
4312
4313   ;
4314   return 0;
4315 }
4316 _ACEOF
4317 if ac_fn_cxx_try_compile "$LINENO"; then :
4318   ac_cv_prog_cxx_g=yes
4319 else
4320   CXXFLAGS=""
4321       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h.  */
4323
4324 int
4325 main ()
4326 {
4327
4328   ;
4329   return 0;
4330 }
4331 _ACEOF
4332 if ac_fn_cxx_try_compile "$LINENO"; then :
4333
4334 else
4335   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4336          CXXFLAGS="-g"
4337          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h.  */
4339
4340 int
4341 main ()
4342 {
4343
4344   ;
4345   return 0;
4346 }
4347 _ACEOF
4348 if ac_fn_cxx_try_compile "$LINENO"; then :
4349   ac_cv_prog_cxx_g=yes
4350 fi
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4357 fi
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4359 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4360 if test "$ac_test_CXXFLAGS" = set; then
4361   CXXFLAGS=$ac_save_CXXFLAGS
4362 elif test $ac_cv_prog_cxx_g = yes; then
4363   if test "$GXX" = yes; then
4364     CXXFLAGS="-g -O2"
4365   else
4366     CXXFLAGS="-g"
4367   fi
4368 else
4369   if test "$GXX" = yes; then
4370     CXXFLAGS="-O2"
4371   else
4372     CXXFLAGS=
4373   fi
4374 fi
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381 depcc="$CXX"  am_compiler_list=
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4384 $as_echo_n "checking dependency style of $depcc... " >&6; }
4385 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4389   # We make a subdir and do the tests there.  Otherwise we can end up
4390   # making bogus files that we don't know about and never remove.  For
4391   # instance it was reported that on HP-UX the gcc test will end up
4392   # making a dummy file named `D' -- because `-MD' means `put the output
4393   # in D'.
4394   mkdir conftest.dir
4395   # Copy depcomp to subdir because otherwise we won't find it if we're
4396   # using a relative directory.
4397   cp "$am_depcomp" conftest.dir
4398   cd conftest.dir
4399   # We will build objects and dependencies in a subdirectory because
4400   # it helps to detect inapplicable dependency modes.  For instance
4401   # both Tru64's cc and ICC support -MD to output dependencies as a
4402   # side effect of compilation, but ICC will put the dependencies in
4403   # the current directory while Tru64 will put them in the object
4404   # directory.
4405   mkdir sub
4406
4407   am_cv_CXX_dependencies_compiler_type=none
4408   if test "$am_compiler_list" = ""; then
4409      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4410   fi
4411   am__universal=false
4412   case " $depcc " in #(
4413      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4414      esac
4415
4416   for depmode in $am_compiler_list; do
4417     # Setup a source with many dependencies, because some compilers
4418     # like to wrap large dependency lists on column 80 (with \), and
4419     # we should not choose a depcomp mode which is confused by this.
4420     #
4421     # We need to recreate these files for each test, as the compiler may
4422     # overwrite some of them when testing with obscure command lines.
4423     # This happens at least with the AIX C compiler.
4424     : > sub/conftest.c
4425     for i in 1 2 3 4 5 6; do
4426       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4427       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4428       # Solaris 8's {/usr,}/bin/sh.
4429       touch sub/conftst$i.h
4430     done
4431     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4432
4433     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4434     # mode.  It turns out that the SunPro C++ compiler does not properly
4435     # handle `-M -o', and we need to detect this.  Also, some Intel
4436     # versions had trouble with output in subdirs
4437     am__obj=sub/conftest.${OBJEXT-o}
4438     am__minus_obj="-o $am__obj"
4439     case $depmode in
4440     gcc)
4441       # This depmode causes a compiler race in universal mode.
4442       test "$am__universal" = false || continue
4443       ;;
4444     nosideeffect)
4445       # after this tag, mechanisms are not by side-effect, so they'll
4446       # only be used when explicitly requested
4447       if test "x$enable_dependency_tracking" = xyes; then
4448         continue
4449       else
4450         break
4451       fi
4452       ;;
4453     msvisualcpp | msvcmsys)
4454       # This compiler won't grok `-c -o', but also, the minuso test has
4455       # not run yet.  These depmodes are late enough in the game, and
4456       # so weak that their functioning should not be impacted.
4457       am__obj=conftest.${OBJEXT-o}
4458       am__minus_obj=
4459       ;;
4460     none) break ;;
4461     esac
4462     if depmode=$depmode \
4463        source=sub/conftest.c object=$am__obj \
4464        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4465        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4466          >/dev/null 2>conftest.err &&
4467        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4468        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4469        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4470        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4471       # icc doesn't choke on unknown options, it will just issue warnings
4472       # or remarks (even with -Werror).  So we grep stderr for any message
4473       # that says an option was ignored or not supported.
4474       # When given -MP, icc 7.0 and 7.1 complain thusly:
4475       #   icc: Command line warning: ignoring option '-M'; no argument required
4476       # The diagnosis changed in icc 8.0:
4477       #   icc: Command line remark: option '-MP' not supported
4478       if (grep 'ignoring option' conftest.err ||
4479           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4480         am_cv_CXX_dependencies_compiler_type=$depmode
4481         break
4482       fi
4483     fi
4484   done
4485
4486   cd ..
4487   rm -rf conftest.dir
4488 else
4489   am_cv_CXX_dependencies_compiler_type=none
4490 fi
4491
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4494 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4495 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4496
4497  if
4498   test "x$enable_dependency_tracking" != xno \
4499   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4500   am__fastdepCXX_TRUE=
4501   am__fastdepCXX_FALSE='#'
4502 else
4503   am__fastdepCXX_TRUE='#'
4504   am__fastdepCXX_FALSE=
4505 fi
4506
4507
4508
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4510 $as_echo_n "checking whether ln -s works... " >&6; }
4511 LN_S=$as_ln_s
4512 if test "$LN_S" = "ln -s"; then
4513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4514 $as_echo "yes" >&6; }
4515 else
4516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4517 $as_echo "no, using $LN_S" >&6; }
4518 fi
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4521 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4522 if test "${ac_cv_path_SED+set}" = set; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4526      for ac_i in 1 2 3 4 5 6 7; do
4527        ac_script="$ac_script$as_nl$ac_script"
4528      done
4529      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4530      { ac_script=; unset ac_script;}
4531      if test -z "$SED"; then
4532   ac_path_SED_found=false
4533   # Loop through the user's path and test for each of PROGNAME-LIST
4534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539     for ac_prog in sed gsed; do
4540     for ac_exec_ext in '' $ac_executable_extensions; do
4541       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4542       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4543 # Check for GNU ac_path_SED and select it if it is found.
4544   # Check for GNU $ac_path_SED
4545 case `"$ac_path_SED" --version 2>&1` in
4546 *GNU*)
4547   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4548 *)
4549   ac_count=0
4550   $as_echo_n 0123456789 >"conftest.in"
4551   while :
4552   do
4553     cat "conftest.in" "conftest.in" >"conftest.tmp"
4554     mv "conftest.tmp" "conftest.in"
4555     cp "conftest.in" "conftest.nl"
4556     $as_echo '' >> "conftest.nl"
4557     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4558     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4559     as_fn_arith $ac_count + 1 && ac_count=$as_val
4560     if test $ac_count -gt ${ac_path_SED_max-0}; then
4561       # Best one so far, save it but keep looking for a better one
4562       ac_cv_path_SED="$ac_path_SED"
4563       ac_path_SED_max=$ac_count
4564     fi
4565     # 10*(2^10) chars as input seems more than enough
4566     test $ac_count -gt 10 && break
4567   done
4568   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4569 esac
4570
4571       $ac_path_SED_found && break 3
4572     done
4573   done
4574   done
4575 IFS=$as_save_IFS
4576   if test -z "$ac_cv_path_SED"; then
4577     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4578   fi
4579 else
4580   ac_cv_path_SED=$SED
4581 fi
4582
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4585 $as_echo "$ac_cv_path_SED" >&6; }
4586  SED="$ac_cv_path_SED"
4587   rm -f conftest.sed
4588
4589
4590 # Check whether --enable-largefile was given.
4591 if test "${enable_largefile+set}" = set; then :
4592   enableval=$enable_largefile;
4593 fi
4594
4595 if test "$enable_largefile" != no; then
4596
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4598 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4599 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4600   $as_echo_n "(cached) " >&6
4601 else
4602   ac_cv_sys_largefile_CC=no
4603      if test "$GCC" != yes; then
4604        ac_save_CC=$CC
4605        while :; do
4606          # IRIX 6.2 and later do not support large files by default,
4607          # so use the C compiler's -n32 option if that helps.
4608          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h.  */
4610 #include <sys/types.h>
4611  /* Check that off_t can represent 2**63 - 1 correctly.
4612     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4613     since some C++ compilers masquerading as C compilers
4614     incorrectly reject 9223372036854775807.  */
4615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4616   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4617                        && LARGE_OFF_T % 2147483647 == 1)
4618                       ? 1 : -1];
4619 int
4620 main ()
4621 {
4622
4623   ;
4624   return 0;
4625 }
4626 _ACEOF
4627          if ac_fn_c_try_compile "$LINENO"; then :
4628   break
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext
4631          CC="$CC -n32"
4632          if ac_fn_c_try_compile "$LINENO"; then :
4633   ac_cv_sys_largefile_CC=' -n32'; break
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext
4636          break
4637        done
4638        CC=$ac_save_CC
4639        rm -f conftest.$ac_ext
4640     fi
4641 fi
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4643 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4644   if test "$ac_cv_sys_largefile_CC" != no; then
4645     CC=$CC$ac_cv_sys_largefile_CC
4646   fi
4647
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4649 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4650 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   while :; do
4654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h.  */
4656 #include <sys/types.h>
4657  /* Check that off_t can represent 2**63 - 1 correctly.
4658     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4659     since some C++ compilers masquerading as C compilers
4660     incorrectly reject 9223372036854775807.  */
4661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4662   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4663                        && LARGE_OFF_T % 2147483647 == 1)
4664                       ? 1 : -1];
4665 int
4666 main ()
4667 {
4668
4669   ;
4670   return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"; then :
4674   ac_cv_sys_file_offset_bits=no; break
4675 fi
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h.  */
4679 #define _FILE_OFFSET_BITS 64
4680 #include <sys/types.h>
4681  /* Check that off_t can represent 2**63 - 1 correctly.
4682     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4683     since some C++ compilers masquerading as C compilers
4684     incorrectly reject 9223372036854775807.  */
4685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4686   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4687                        && LARGE_OFF_T % 2147483647 == 1)
4688                       ? 1 : -1];
4689 int
4690 main ()
4691 {
4692
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 if ac_fn_c_try_compile "$LINENO"; then :
4698   ac_cv_sys_file_offset_bits=64; break
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701   ac_cv_sys_file_offset_bits=unknown
4702   break
4703 done
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4706 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4707 case $ac_cv_sys_file_offset_bits in #(
4708   no | unknown) ;;
4709   *)
4710 cat >>confdefs.h <<_ACEOF
4711 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4712 _ACEOF
4713 ;;
4714 esac
4715 rm -rf conftest*
4716   if test $ac_cv_sys_file_offset_bits = unknown; then
4717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4718 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4719 if test "${ac_cv_sys_large_files+set}" = set; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   while :; do
4723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h.  */
4725 #include <sys/types.h>
4726  /* Check that off_t can represent 2**63 - 1 correctly.
4727     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4728     since some C++ compilers masquerading as C compilers
4729     incorrectly reject 9223372036854775807.  */
4730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4731   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4732                        && LARGE_OFF_T % 2147483647 == 1)
4733                       ? 1 : -1];
4734 int
4735 main ()
4736 {
4737
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743   ac_cv_sys_large_files=no; break
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h.  */
4748 #define _LARGE_FILES 1
4749 #include <sys/types.h>
4750  /* Check that off_t can represent 2**63 - 1 correctly.
4751     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4752     since some C++ compilers masquerading as C compilers
4753     incorrectly reject 9223372036854775807.  */
4754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4755   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4756                        && LARGE_OFF_T % 2147483647 == 1)
4757                       ? 1 : -1];
4758 int
4759 main ()
4760 {
4761
4762   ;
4763   return 0;
4764 }
4765 _ACEOF
4766 if ac_fn_c_try_compile "$LINENO"; then :
4767   ac_cv_sys_large_files=1; break
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770   ac_cv_sys_large_files=unknown
4771   break
4772 done
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4775 $as_echo "$ac_cv_sys_large_files" >&6; }
4776 case $ac_cv_sys_large_files in #(
4777   no | unknown) ;;
4778   *)
4779 cat >>confdefs.h <<_ACEOF
4780 #define _LARGE_FILES $ac_cv_sys_large_files
4781 _ACEOF
4782 ;;
4783 esac
4784 rm -rf conftest*
4785   fi
4786 fi
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4789 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4790 if test "${ac_cv_sys_largefile_source+set}" = set; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   while :; do
4794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h.  */
4796 #include <sys/types.h> /* for off_t */
4797      #include <stdio.h>
4798 int
4799 main ()
4800 {
4801 int (*fp) (FILE *, off_t, int) = fseeko;
4802      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_link "$LINENO"; then :
4808   ac_cv_sys_largefile_source=no; break
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext \
4811     conftest$ac_exeext conftest.$ac_ext
4812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h.  */
4814 #define _LARGEFILE_SOURCE 1
4815 #include <sys/types.h> /* for off_t */
4816      #include <stdio.h>
4817 int
4818 main ()
4819 {
4820 int (*fp) (FILE *, off_t, int) = fseeko;
4821      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4822   ;
4823   return 0;
4824 }
4825 _ACEOF
4826 if ac_fn_c_try_link "$LINENO"; then :
4827   ac_cv_sys_largefile_source=1; break
4828 fi
4829 rm -f core conftest.err conftest.$ac_objext \
4830     conftest$ac_exeext conftest.$ac_ext
4831   ac_cv_sys_largefile_source=unknown
4832   break
4833 done
4834 fi
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4836 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4837 case $ac_cv_sys_largefile_source in #(
4838   no | unknown) ;;
4839   *)
4840 cat >>confdefs.h <<_ACEOF
4841 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4842 _ACEOF
4843 ;;
4844 esac
4845 rm -rf conftest*
4846
4847 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4848 # in glibc 2.1.3, but that breaks too many other things.
4849 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4850 if test $ac_cv_sys_largefile_source != unknown; then
4851
4852 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4853
4854 fi
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4857 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4858 set x ${MAKE-make}
4859 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4860 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   cat >conftest.make <<\_ACEOF
4864 SHELL = /bin/sh
4865 all:
4866         @echo '@@@%%%=$(MAKE)=@@@%%%'
4867 _ACEOF
4868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4869 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4870   *@@@%%%=?*=@@@%%%*)
4871     eval ac_cv_prog_make_${ac_make}_set=yes;;
4872   *)
4873     eval ac_cv_prog_make_${ac_make}_set=no;;
4874 esac
4875 rm -f conftest.make
4876 fi
4877 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4879 $as_echo "yes" >&6; }
4880   SET_MAKE=
4881 else
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884   SET_MAKE="MAKE=${MAKE-make}"
4885 fi
4886
4887 #AC_HEADER_DIRENT
4888 #
4889 # Tests for Windows
4890 #
4891
4892
4893 #
4894 # Configure libtool
4895 # Check whether --enable-shared was given.
4896 if test "${enable_shared+set}" = set; then :
4897   enableval=$enable_shared; p=${PACKAGE-default}
4898     case $enableval in
4899     yes) enable_shared=yes ;;
4900     no) enable_shared=no ;;
4901     *)
4902       enable_shared=no
4903       # Look at the argument we got.  We use all the common list separators.
4904       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4905       for pkg in $enableval; do
4906         IFS="$lt_save_ifs"
4907         if test "X$pkg" = "X$p"; then
4908           enable_shared=yes
4909         fi
4910       done
4911       IFS="$lt_save_ifs"
4912       ;;
4913     esac
4914 else
4915   enable_shared=yes
4916 fi
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926 # Check whether --enable-static was given.
4927 if test "${enable_static+set}" = set; then :
4928   enableval=$enable_static; p=${PACKAGE-default}
4929     case $enableval in
4930     yes) enable_static=yes ;;
4931     no) enable_static=no ;;
4932     *)
4933      enable_static=no
4934       # Look at the argument we got.  We use all the common list separators.
4935       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4936       for pkg in $enableval; do
4937         IFS="$lt_save_ifs"
4938         if test "X$pkg" = "X$p"; then
4939           enable_static=yes
4940         fi
4941       done
4942       IFS="$lt_save_ifs"
4943       ;;
4944     esac
4945 else
4946   enable_static=yes
4947 fi
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957 enable_win32_dll=yes
4958
4959 case $host in
4960 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4961   if test -n "$ac_tool_prefix"; then
4962   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4963 set dummy ${ac_tool_prefix}as; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_AS+set}" = set; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   if test -n "$AS"; then
4970   ac_cv_prog_AS="$AS" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977     for ac_exec_ext in '' $ac_executable_extensions; do
4978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979     ac_cv_prog_AS="${ac_tool_prefix}as"
4980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984   done
4985 IFS=$as_save_IFS
4986
4987 fi
4988 fi
4989 AS=$ac_cv_prog_AS
4990 if test -n "$AS"; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4992 $as_echo "$AS" >&6; }
4993 else
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 fi
4997
4998
4999 fi
5000 if test -z "$ac_cv_prog_AS"; then
5001   ac_ct_AS=$AS
5002   # Extract the first word of "as", so it can be a program name with args.
5003 set dummy as; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5007   $as_echo_n "(cached) " >&6
5008 else
5009   if test -n "$ac_ct_AS"; then
5010   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017     for ac_exec_ext in '' $ac_executable_extensions; do
5018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019     ac_cv_prog_ac_ct_AS="as"
5020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024   done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5030 if test -n "$ac_ct_AS"; then
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5032 $as_echo "$ac_ct_AS" >&6; }
5033 else
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038   if test "x$ac_ct_AS" = x; then
5039     AS="false"
5040   else
5041     case $cross_compiling:$ac_tool_warned in
5042 yes:)
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045 ac_tool_warned=yes ;;
5046 esac
5047     AS=$ac_ct_AS
5048   fi
5049 else
5050   AS="$ac_cv_prog_AS"
5051 fi
5052
5053   if test -n "$ac_tool_prefix"; then
5054   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5055 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   if test -n "$DLLTOOL"; then
5062   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067   IFS=$as_save_IFS
5068   test -z "$as_dir" && as_dir=.
5069     for ac_exec_ext in '' $ac_executable_extensions; do
5070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073     break 2
5074   fi
5075 done
5076   done
5077 IFS=$as_save_IFS
5078
5079 fi
5080 fi
5081 DLLTOOL=$ac_cv_prog_DLLTOOL
5082 if test -n "$DLLTOOL"; then
5083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5084 $as_echo "$DLLTOOL" >&6; }
5085 else
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090
5091 fi
5092 if test -z "$ac_cv_prog_DLLTOOL"; then
5093   ac_ct_DLLTOOL=$DLLTOOL
5094   # Extract the first word of "dlltool", so it can be a program name with args.
5095 set dummy dlltool; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5099   $as_echo_n "(cached) " >&6
5100 else
5101   if test -n "$ac_ct_DLLTOOL"; then
5102   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_exec_ext in '' $ac_executable_extensions; do
5110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116   done
5117 IFS=$as_save_IFS
5118
5119 fi
5120 fi
5121 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5122 if test -n "$ac_ct_DLLTOOL"; then
5123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5124 $as_echo "$ac_ct_DLLTOOL" >&6; }
5125 else
5126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 fi
5129
5130   if test "x$ac_ct_DLLTOOL" = x; then
5131     DLLTOOL="false"
5132   else
5133     case $cross_compiling:$ac_tool_warned in
5134 yes:)
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137 ac_tool_warned=yes ;;
5138 esac
5139     DLLTOOL=$ac_ct_DLLTOOL
5140   fi
5141 else
5142   DLLTOOL="$ac_cv_prog_DLLTOOL"
5143 fi
5144
5145   if test -n "$ac_tool_prefix"; then
5146   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5147 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   if test -n "$OBJDUMP"; then
5154   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161     for ac_exec_ext in '' $ac_executable_extensions; do
5162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168   done
5169 IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 OBJDUMP=$ac_cv_prog_OBJDUMP
5174 if test -n "$OBJDUMP"; then
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5176 $as_echo "$OBJDUMP" >&6; }
5177 else
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182
5183 fi
5184 if test -z "$ac_cv_prog_OBJDUMP"; then
5185   ac_ct_OBJDUMP=$OBJDUMP
5186   # Extract the first word of "objdump", so it can be a program name with args.
5187 set dummy objdump; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5191   $as_echo_n "(cached) " >&6
5192 else
5193   if test -n "$ac_ct_OBJDUMP"; then
5194   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201     for ac_exec_ext in '' $ac_executable_extensions; do
5202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208   done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5214 if test -n "$ac_ct_OBJDUMP"; then
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5216 $as_echo "$ac_ct_OBJDUMP" >&6; }
5217 else
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222   if test "x$ac_ct_OBJDUMP" = x; then
5223     OBJDUMP="false"
5224   else
5225     case $cross_compiling:$ac_tool_warned in
5226 yes:)
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5230 esac
5231     OBJDUMP=$ac_ct_OBJDUMP
5232   fi
5233 else
5234   OBJDUMP="$ac_cv_prog_OBJDUMP"
5235 fi
5236
5237   ;;
5238 esac
5239
5240 test -z "$AS" && AS=as
5241
5242
5243
5244
5245
5246 test -z "$DLLTOOL" && DLLTOOL=dlltool
5247
5248
5249
5250
5251
5252 test -z "$OBJDUMP" && OBJDUMP=objdump
5253
5254
5255
5256
5257
5258
5259
5260
5261 case `pwd` in
5262   *\ * | *\     *)
5263     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5264 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5265 esac
5266
5267
5268
5269 macro_version='2.2.6'
5270 macro_revision='1.3012'
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284 ltmain="$ac_aux_dir/ltmain.sh"
5285
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5287 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5288 if test "${ac_cv_path_SED+set}" = set; then :
5289   $as_echo_n "(cached) " >&6
5290 else
5291             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5292      for ac_i in 1 2 3 4 5 6 7; do
5293        ac_script="$ac_script$as_nl$ac_script"
5294      done
5295      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5296      { ac_script=; unset ac_script;}
5297      if test -z "$SED"; then
5298   ac_path_SED_found=false
5299   # Loop through the user's path and test for each of PROGNAME-LIST
5300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_prog in sed gsed; do
5306     for ac_exec_ext in '' $ac_executable_extensions; do
5307       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5308       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5309 # Check for GNU ac_path_SED and select it if it is found.
5310   # Check for GNU $ac_path_SED
5311 case `"$ac_path_SED" --version 2>&1` in
5312 *GNU*)
5313   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5314 *)
5315   ac_count=0
5316   $as_echo_n 0123456789 >"conftest.in"
5317   while :
5318   do
5319     cat "conftest.in" "conftest.in" >"conftest.tmp"
5320     mv "conftest.tmp" "conftest.in"
5321     cp "conftest.in" "conftest.nl"
5322     $as_echo '' >> "conftest.nl"
5323     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5325     as_fn_arith $ac_count + 1 && ac_count=$as_val
5326     if test $ac_count -gt ${ac_path_SED_max-0}; then
5327       # Best one so far, save it but keep looking for a better one
5328       ac_cv_path_SED="$ac_path_SED"
5329       ac_path_SED_max=$ac_count
5330     fi
5331     # 10*(2^10) chars as input seems more than enough
5332     test $ac_count -gt 10 && break
5333   done
5334   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5335 esac
5336
5337       $ac_path_SED_found && break 3
5338     done
5339   done
5340   done
5341 IFS=$as_save_IFS
5342   if test -z "$ac_cv_path_SED"; then
5343     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5344   fi
5345 else
5346   ac_cv_path_SED=$SED
5347 fi
5348
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5351 $as_echo "$ac_cv_path_SED" >&6; }
5352  SED="$ac_cv_path_SED"
5353   rm -f conftest.sed
5354
5355 test -z "$SED" && SED=sed
5356 Xsed="$SED -e 1s/^X//"
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5369 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5370 if test "${ac_cv_path_GREP+set}" = set; then :
5371   $as_echo_n "(cached) " >&6
5372 else
5373   if test -z "$GREP"; then
5374   ac_path_GREP_found=false
5375   # Loop through the user's path and test for each of PROGNAME-LIST
5376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5378 do
5379   IFS=$as_save_IFS
5380   test -z "$as_dir" && as_dir=.
5381     for ac_prog in grep ggrep; do
5382     for ac_exec_ext in '' $ac_executable_extensions; do
5383       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5384       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5385 # Check for GNU ac_path_GREP and select it if it is found.
5386   # Check for GNU $ac_path_GREP
5387 case `"$ac_path_GREP" --version 2>&1` in
5388 *GNU*)
5389   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5390 *)
5391   ac_count=0
5392   $as_echo_n 0123456789 >"conftest.in"
5393   while :
5394   do
5395     cat "conftest.in" "conftest.in" >"conftest.tmp"
5396     mv "conftest.tmp" "conftest.in"
5397     cp "conftest.in" "conftest.nl"
5398     $as_echo 'GREP' >> "conftest.nl"
5399     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5400     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5401     as_fn_arith $ac_count + 1 && ac_count=$as_val
5402     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5403       # Best one so far, save it but keep looking for a better one
5404       ac_cv_path_GREP="$ac_path_GREP"
5405       ac_path_GREP_max=$ac_count
5406     fi
5407     # 10*(2^10) chars as input seems more than enough
5408     test $ac_count -gt 10 && break
5409   done
5410   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5411 esac
5412
5413       $ac_path_GREP_found && break 3
5414     done
5415   done
5416   done
5417 IFS=$as_save_IFS
5418   if test -z "$ac_cv_path_GREP"; then
5419     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5420   fi
5421 else
5422   ac_cv_path_GREP=$GREP
5423 fi
5424
5425 fi
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5427 $as_echo "$ac_cv_path_GREP" >&6; }
5428  GREP="$ac_cv_path_GREP"
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5432 $as_echo_n "checking for egrep... " >&6; }
5433 if test "${ac_cv_path_EGREP+set}" = set; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5437    then ac_cv_path_EGREP="$GREP -E"
5438    else
5439      if test -z "$EGREP"; then
5440   ac_path_EGREP_found=false
5441   # Loop through the user's path and test for each of PROGNAME-LIST
5442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447     for ac_prog in egrep; do
5448     for ac_exec_ext in '' $ac_executable_extensions; do
5449       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5450       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5451 # Check for GNU ac_path_EGREP and select it if it is found.
5452   # Check for GNU $ac_path_EGREP
5453 case `"$ac_path_EGREP" --version 2>&1` in
5454 *GNU*)
5455   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5456 *)
5457   ac_count=0
5458   $as_echo_n 0123456789 >"conftest.in"
5459   while :
5460   do
5461     cat "conftest.in" "conftest.in" >"conftest.tmp"
5462     mv "conftest.tmp" "conftest.in"
5463     cp "conftest.in" "conftest.nl"
5464     $as_echo 'EGREP' >> "conftest.nl"
5465     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5466     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5467     as_fn_arith $ac_count + 1 && ac_count=$as_val
5468     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5469       # Best one so far, save it but keep looking for a better one
5470       ac_cv_path_EGREP="$ac_path_EGREP"
5471       ac_path_EGREP_max=$ac_count
5472     fi
5473     # 10*(2^10) chars as input seems more than enough
5474     test $ac_count -gt 10 && break
5475   done
5476   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5477 esac
5478
5479       $ac_path_EGREP_found && break 3
5480     done
5481   done
5482   done
5483 IFS=$as_save_IFS
5484   if test -z "$ac_cv_path_EGREP"; then
5485     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5486   fi
5487 else
5488   ac_cv_path_EGREP=$EGREP
5489 fi
5490
5491    fi
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5494 $as_echo "$ac_cv_path_EGREP" >&6; }
5495  EGREP="$ac_cv_path_EGREP"
5496
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5499 $as_echo_n "checking for fgrep... " >&6; }
5500 if test "${ac_cv_path_FGREP+set}" = set; then :
5501   $as_echo_n "(cached) " >&6
5502 else
5503   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5504    then ac_cv_path_FGREP="$GREP -F"
5505    else
5506      if test -z "$FGREP"; then
5507   ac_path_FGREP_found=false
5508   # Loop through the user's path and test for each of PROGNAME-LIST
5509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5511 do
5512   IFS=$as_save_IFS
5513   test -z "$as_dir" && as_dir=.
5514     for ac_prog in fgrep; do
5515     for ac_exec_ext in '' $ac_executable_extensions; do
5516       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5517       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5518 # Check for GNU ac_path_FGREP and select it if it is found.
5519   # Check for GNU $ac_path_FGREP
5520 case `"$ac_path_FGREP" --version 2>&1` in
5521 *GNU*)
5522   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5523 *)
5524   ac_count=0
5525   $as_echo_n 0123456789 >"conftest.in"
5526   while :
5527   do
5528     cat "conftest.in" "conftest.in" >"conftest.tmp"
5529     mv "conftest.tmp" "conftest.in"
5530     cp "conftest.in" "conftest.nl"
5531     $as_echo 'FGREP' >> "conftest.nl"
5532     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5533     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5534     as_fn_arith $ac_count + 1 && ac_count=$as_val
5535     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5536       # Best one so far, save it but keep looking for a better one
5537       ac_cv_path_FGREP="$ac_path_FGREP"
5538       ac_path_FGREP_max=$ac_count
5539     fi
5540     # 10*(2^10) chars as input seems more than enough
5541     test $ac_count -gt 10 && break
5542   done
5543   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5544 esac
5545
5546       $ac_path_FGREP_found && break 3
5547     done
5548   done
5549   done
5550 IFS=$as_save_IFS
5551   if test -z "$ac_cv_path_FGREP"; then
5552     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5553   fi
5554 else
5555   ac_cv_path_FGREP=$FGREP
5556 fi
5557
5558    fi
5559 fi
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5561 $as_echo "$ac_cv_path_FGREP" >&6; }
5562  FGREP="$ac_cv_path_FGREP"
5563
5564
5565 test -z "$GREP" && GREP=grep
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585 # Check whether --with-gnu-ld was given.
5586 if test "${with_gnu_ld+set}" = set; then :
5587   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5588 else
5589   with_gnu_ld=no
5590 fi
5591
5592 ac_prog=ld
5593 if test "$GCC" = yes; then
5594   # Check if gcc -print-prog-name=ld gives a path.
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5596 $as_echo_n "checking for ld used by $CC... " >&6; }
5597   case $host in
5598   *-*-mingw*)
5599     # gcc leaves a trailing carriage return which upsets mingw
5600     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5601   *)
5602     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5603   esac
5604   case $ac_prog in
5605     # Accept absolute paths.
5606     [\\/]* | ?:[\\/]*)
5607       re_direlt='/[^/][^/]*/\.\./'
5608       # Canonicalize the pathname of ld
5609       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5610       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5611         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5612       done
5613       test -z "$LD" && LD="$ac_prog"
5614       ;;
5615   "")
5616     # If it fails, then pretend we aren't using GCC.
5617     ac_prog=ld
5618     ;;
5619   *)
5620     # If it is relative, then search for the first ld in PATH.
5621     with_gnu_ld=unknown
5622     ;;
5623   esac
5624 elif test "$with_gnu_ld" = yes; then
5625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5626 $as_echo_n "checking for GNU ld... " >&6; }
5627 else
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5629 $as_echo_n "checking for non-GNU ld... " >&6; }
5630 fi
5631 if test "${lt_cv_path_LD+set}" = set; then :
5632   $as_echo_n "(cached) " >&6
5633 else
5634   if test -z "$LD"; then
5635   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5636   for ac_dir in $PATH; do
5637     IFS="$lt_save_ifs"
5638     test -z "$ac_dir" && ac_dir=.
5639     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5640       lt_cv_path_LD="$ac_dir/$ac_prog"
5641       # Check to see if the program is GNU ld.  I'd rather use --version,
5642       # but apparently some variants of GNU ld only accept -v.
5643       # Break only if it was the GNU/non-GNU ld that we prefer.
5644       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5645       *GNU* | *'with BFD'*)
5646         test "$with_gnu_ld" != no && break
5647         ;;
5648       *)
5649         test "$with_gnu_ld" != yes && break
5650         ;;
5651       esac
5652     fi
5653   done
5654   IFS="$lt_save_ifs"
5655 else
5656   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5657 fi
5658 fi
5659
5660 LD="$lt_cv_path_LD"
5661 if test -n "$LD"; then
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5663 $as_echo "$LD" >&6; }
5664 else
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5670 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5671 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5675 case `$LD -v 2>&1 </dev/null` in
5676 *GNU* | *'with BFD'*)
5677   lt_cv_prog_gnu_ld=yes
5678   ;;
5679 *)
5680   lt_cv_prog_gnu_ld=no
5681   ;;
5682 esac
5683 fi
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5685 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5686 with_gnu_ld=$lt_cv_prog_gnu_ld
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5697 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5698 if test "${lt_cv_path_NM+set}" = set; then :
5699   $as_echo_n "(cached) " >&6
5700 else
5701   if test -n "$NM"; then
5702   # Let the user override the test.
5703   lt_cv_path_NM="$NM"
5704 else
5705   lt_nm_to_check="${ac_tool_prefix}nm"
5706   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5707     lt_nm_to_check="$lt_nm_to_check nm"
5708   fi
5709   for lt_tmp_nm in $lt_nm_to_check; do
5710     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5711     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5712       IFS="$lt_save_ifs"
5713       test -z "$ac_dir" && ac_dir=.
5714       tmp_nm="$ac_dir/$lt_tmp_nm"
5715       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5716         # Check to see if the nm accepts a BSD-compat flag.
5717         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5718         #   nm: unknown option "B" ignored
5719         # Tru64's nm complains that /dev/null is an invalid object file
5720         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5721         */dev/null* | *'Invalid file or object type'*)
5722           lt_cv_path_NM="$tmp_nm -B"
5723           break
5724           ;;
5725         *)
5726           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5727           */dev/null*)
5728             lt_cv_path_NM="$tmp_nm -p"
5729             break
5730             ;;
5731           *)
5732             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5733             continue # so that we can try to find one that supports BSD flags
5734             ;;
5735           esac
5736           ;;
5737         esac
5738       fi
5739     done
5740     IFS="$lt_save_ifs"
5741   done
5742   : ${lt_cv_path_NM=no}
5743 fi
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5746 $as_echo "$lt_cv_path_NM" >&6; }
5747 if test "$lt_cv_path_NM" != "no"; then
5748   NM="$lt_cv_path_NM"
5749 else
5750   # Didn't find any BSD compatible name lister, look for dumpbin.
5751   if test -n "$ac_tool_prefix"; then
5752   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5753   do
5754     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   if test -n "$DUMPBIN"; then
5762   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769     for ac_exec_ext in '' $ac_executable_extensions; do
5770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776   done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 DUMPBIN=$ac_cv_prog_DUMPBIN
5782 if test -n "$DUMPBIN"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5784 $as_echo "$DUMPBIN" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791     test -n "$DUMPBIN" && break
5792   done
5793 fi
5794 if test -z "$DUMPBIN"; then
5795   ac_ct_DUMPBIN=$DUMPBIN
5796   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5797 do
5798   # Extract the first word of "$ac_prog", so it can be a program name with args.
5799 set dummy $ac_prog; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805   if test -n "$ac_ct_DUMPBIN"; then
5806   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813     for ac_exec_ext in '' $ac_executable_extensions; do
5814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820   done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5826 if test -n "$ac_ct_DUMPBIN"; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5828 $as_echo "$ac_ct_DUMPBIN" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835   test -n "$ac_ct_DUMPBIN" && break
5836 done
5837
5838   if test "x$ac_ct_DUMPBIN" = x; then
5839     DUMPBIN=":"
5840   else
5841     case $cross_compiling:$ac_tool_warned in
5842 yes:)
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847     DUMPBIN=$ac_ct_DUMPBIN
5848   fi
5849 fi
5850
5851
5852   if test "$DUMPBIN" != ":"; then
5853     NM="$DUMPBIN"
5854   fi
5855 fi
5856 test -z "$NM" && NM=nm
5857
5858
5859
5860
5861
5862
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5864 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5865 if test "${lt_cv_nm_interface+set}" = set; then :
5866   $as_echo_n "(cached) " >&6
5867 else
5868   lt_cv_nm_interface="BSD nm"
5869   echo "int some_variable = 0;" > conftest.$ac_ext
5870   (eval echo "\"\$as_me:5870: $ac_compile\"" >&5)
5871   (eval "$ac_compile" 2>conftest.err)
5872   cat conftest.err >&5
5873   (eval echo "\"\$as_me:5873: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5874   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5875   cat conftest.err >&5
5876   (eval echo "\"\$as_me:5876: output\"" >&5)
5877   cat conftest.out >&5
5878   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5879     lt_cv_nm_interface="MS dumpbin"
5880   fi
5881   rm -f conftest*
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5884 $as_echo "$lt_cv_nm_interface" >&6; }
5885
5886 # find the maximum length of command line arguments
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5888 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5889 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5890   $as_echo_n "(cached) " >&6
5891 else
5892     i=0
5893   teststring="ABCD"
5894
5895   case $build_os in
5896   msdosdjgpp*)
5897     # On DJGPP, this test can blow up pretty badly due to problems in libc
5898     # (any single argument exceeding 2000 bytes causes a buffer overrun
5899     # during glob expansion).  Even if it were fixed, the result of this
5900     # check would be larger than it should be.
5901     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5902     ;;
5903
5904   gnu*)
5905     # Under GNU Hurd, this test is not required because there is
5906     # no limit to the length of command line arguments.
5907     # Libtool will interpret -1 as no limit whatsoever
5908     lt_cv_sys_max_cmd_len=-1;
5909     ;;
5910
5911   cygwin* | mingw* | cegcc*)
5912     # On Win9x/ME, this test blows up -- it succeeds, but takes
5913     # about 5 minutes as the teststring grows exponentially.
5914     # Worse, since 9x/ME are not pre-emptively multitasking,
5915     # you end up with a "frozen" computer, even though with patience
5916     # the test eventually succeeds (with a max line length of 256k).
5917     # Instead, let's just punt: use the minimum linelength reported by
5918     # all of the supported platforms: 8192 (on NT/2K/XP).
5919     lt_cv_sys_max_cmd_len=8192;
5920     ;;
5921
5922   amigaos*)
5923     # On AmigaOS with pdksh, this test takes hours, literally.
5924     # So we just punt and use a minimum line length of 8192.
5925     lt_cv_sys_max_cmd_len=8192;
5926     ;;
5927
5928   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5929     # This has been around since 386BSD, at least.  Likely further.
5930     if test -x /sbin/sysctl; then
5931       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5932     elif test -x /usr/sbin/sysctl; then
5933       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5934     else
5935       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5936     fi
5937     # And add a safety zone
5938     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5939     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5940     ;;
5941
5942   interix*)
5943     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5944     lt_cv_sys_max_cmd_len=196608
5945     ;;
5946
5947   osf*)
5948     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5949     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5950     # nice to cause kernel panics so lets avoid the loop below.
5951     # First set a reasonable default.
5952     lt_cv_sys_max_cmd_len=16384
5953     #
5954     if test -x /sbin/sysconfig; then
5955       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5956         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5957       esac
5958     fi
5959     ;;
5960   sco3.2v5*)
5961     lt_cv_sys_max_cmd_len=102400
5962     ;;
5963   sysv5* | sco5v6* | sysv4.2uw2*)
5964     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5965     if test -n "$kargmax"; then
5966       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5967     else
5968       lt_cv_sys_max_cmd_len=32768
5969     fi
5970     ;;
5971   *)
5972     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5973     if test -n "$lt_cv_sys_max_cmd_len"; then
5974       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5975       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5976     else
5977       # Make teststring a little bigger before we do anything with it.
5978       # a 1K string should be a reasonable start.
5979       for i in 1 2 3 4 5 6 7 8 ; do
5980         teststring=$teststring$teststring
5981       done
5982       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5983       # If test is not a shell built-in, we'll probably end up computing a
5984       # maximum length that is only half of the actual maximum length, but
5985       # we can't tell.
5986       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5987                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5988               test $i != 17 # 1/2 MB should be enough
5989       do
5990         i=`expr $i + 1`
5991         teststring=$teststring$teststring
5992       done
5993       # Only check the string length outside the loop.
5994       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5995       teststring=
5996       # Add a significant safety factor because C++ compilers can tack on
5997       # massive amounts of additional arguments before passing them to the
5998       # linker.  It appears as though 1/2 is a usable value.
5999       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6000     fi
6001     ;;
6002   esac
6003
6004 fi
6005
6006 if test -n $lt_cv_sys_max_cmd_len ; then
6007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6008 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6009 else
6010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6011 $as_echo "none" >&6; }
6012 fi
6013 max_cmd_len=$lt_cv_sys_max_cmd_len
6014
6015
6016
6017
6018
6019
6020 : ${CP="cp -f"}
6021 : ${MV="mv -f"}
6022 : ${RM="rm -f"}
6023
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6025 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6026 # Try some XSI features
6027 xsi_shell=no
6028 ( _lt_dummy="a/b/c"
6029   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6030       = c,a/b,, \
6031     && eval 'test $(( 1 + 1 )) -eq 2 \
6032     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6033   && xsi_shell=yes
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6035 $as_echo "$xsi_shell" >&6; }
6036
6037
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6039 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6040 lt_shell_append=no
6041 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6042     >/dev/null 2>&1 \
6043   && lt_shell_append=yes
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6045 $as_echo "$lt_shell_append" >&6; }
6046
6047
6048 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6049   lt_unset=unset
6050 else
6051   lt_unset=false
6052 fi
6053
6054
6055
6056
6057
6058 # test EBCDIC or ASCII
6059 case `echo X|tr X '\101'` in
6060  A) # ASCII based system
6061     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6062   lt_SP2NL='tr \040 \012'
6063   lt_NL2SP='tr \015\012 \040\040'
6064   ;;
6065  *) # EBCDIC based system
6066   lt_SP2NL='tr \100 \n'
6067   lt_NL2SP='tr \r\n \100\100'
6068   ;;
6069 esac
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6080 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6081 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084   lt_cv_ld_reload_flag='-r'
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6087 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6088 reload_flag=$lt_cv_ld_reload_flag
6089 case $reload_flag in
6090 "" | " "*) ;;
6091 *) reload_flag=" $reload_flag" ;;
6092 esac
6093 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6094 case $host_os in
6095   darwin*)
6096     if test "$GCC" = yes; then
6097       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6098     else
6099       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6100     fi
6101     ;;
6102 esac
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112 if test -n "$ac_tool_prefix"; then
6113   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6118   $as_echo_n "(cached) " >&6
6119 else
6120   if test -n "$OBJDUMP"; then
6121   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128     for ac_exec_ext in '' $ac_executable_extensions; do
6129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135   done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 OBJDUMP=$ac_cv_prog_OBJDUMP
6141 if test -n "$OBJDUMP"; then
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6143 $as_echo "$OBJDUMP" >&6; }
6144 else
6145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149
6150 fi
6151 if test -z "$ac_cv_prog_OBJDUMP"; then
6152   ac_ct_OBJDUMP=$OBJDUMP
6153   # Extract the first word of "objdump", so it can be a program name with args.
6154 set dummy objdump; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6158   $as_echo_n "(cached) " >&6
6159 else
6160   if test -n "$ac_ct_OBJDUMP"; then
6161   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166   IFS=$as_save_IFS
6167   test -z "$as_dir" && as_dir=.
6168     for ac_exec_ext in '' $ac_executable_extensions; do
6169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172     break 2
6173   fi
6174 done
6175   done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6181 if test -n "$ac_ct_OBJDUMP"; then
6182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6183 $as_echo "$ac_ct_OBJDUMP" >&6; }
6184 else
6185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189   if test "x$ac_ct_OBJDUMP" = x; then
6190     OBJDUMP="false"
6191   else
6192     case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198     OBJDUMP=$ac_ct_OBJDUMP
6199   fi
6200 else
6201   OBJDUMP="$ac_cv_prog_OBJDUMP"
6202 fi
6203
6204 test -z "$OBJDUMP" && OBJDUMP=objdump
6205
6206
6207
6208
6209
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6212 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6213 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6214   $as_echo_n "(cached) " >&6
6215 else
6216   lt_cv_file_magic_cmd='$MAGIC_CMD'
6217 lt_cv_file_magic_test_file=
6218 lt_cv_deplibs_check_method='unknown'
6219 # Need to set the preceding variable on all platforms that support
6220 # interlibrary dependencies.
6221 # 'none' -- dependencies not supported.
6222 # `unknown' -- same as none, but documents that we really don't know.
6223 # 'pass_all' -- all dependencies passed with no checks.
6224 # 'test_compile' -- check by making test program.
6225 # 'file_magic [[regex]]' -- check by looking for files in library path
6226 # which responds to the $file_magic_cmd with a given extended regex.
6227 # If you have `file' or equivalent on your system and you're not sure
6228 # whether `pass_all' will *always* work, you probably want this one.
6229
6230 case $host_os in
6231 aix[4-9]*)
6232   lt_cv_deplibs_check_method=pass_all
6233   ;;
6234
6235 beos*)
6236   lt_cv_deplibs_check_method=pass_all
6237   ;;
6238
6239 bsdi[45]*)
6240   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6241   lt_cv_file_magic_cmd='/usr/bin/file -L'
6242   lt_cv_file_magic_test_file=/shlib/libc.so
6243   ;;
6244
6245 cygwin*)
6246   # func_win32_libid is a shell function defined in ltmain.sh
6247   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6248   lt_cv_file_magic_cmd='func_win32_libid'
6249   ;;
6250
6251 mingw* | pw32*)
6252   # Base MSYS/MinGW do not provide the 'file' command needed by
6253   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6254   # unless we find 'file', for example because we are cross-compiling.
6255   if ( file / ) >/dev/null 2>&1; then
6256     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6257     lt_cv_file_magic_cmd='func_win32_libid'
6258   else
6259     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6260     lt_cv_file_magic_cmd='$OBJDUMP -f'
6261   fi
6262   ;;
6263
6264 cegcc)
6265   # use the weaker test based on 'objdump'. See mingw*.
6266   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6267   lt_cv_file_magic_cmd='$OBJDUMP -f'
6268   ;;
6269
6270 darwin* | rhapsody*)
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 freebsd* | dragonfly*)
6275   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6276     case $host_cpu in
6277     i*86 )
6278       # Not sure whether the presence of OpenBSD here was a mistake.
6279       # Let's accept both of them until this is cleared up.
6280       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6281       lt_cv_file_magic_cmd=/usr/bin/file
6282       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6283       ;;
6284     esac
6285   else
6286     lt_cv_deplibs_check_method=pass_all
6287   fi
6288   ;;
6289
6290 gnu*)
6291   lt_cv_deplibs_check_method=pass_all
6292   ;;
6293
6294 hpux10.20* | hpux11*)
6295   lt_cv_file_magic_cmd=/usr/bin/file
6296   case $host_cpu in
6297   ia64*)
6298     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6299     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6300     ;;
6301   hppa*64*)
6302     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]'
6303     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6304     ;;
6305   *)
6306     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6307     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6308     ;;
6309   esac
6310   ;;
6311
6312 interix[3-9]*)
6313   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6314   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6315   ;;
6316
6317 irix5* | irix6* | nonstopux*)
6318   case $LD in
6319   *-32|*"-32 ") libmagic=32-bit;;
6320   *-n32|*"-n32 ") libmagic=N32;;
6321   *-64|*"-64 ") libmagic=64-bit;;
6322   *) libmagic=never-match;;
6323   esac
6324   lt_cv_deplibs_check_method=pass_all
6325   ;;
6326
6327 # This must be Linux ELF.
6328 linux* | k*bsd*-gnu)
6329   lt_cv_deplibs_check_method=pass_all
6330   ;;
6331
6332 netbsd*)
6333   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6334     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6335   else
6336     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6337   fi
6338   ;;
6339
6340 newos6*)
6341   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6342   lt_cv_file_magic_cmd=/usr/bin/file
6343   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6344   ;;
6345
6346 *nto* | *qnx*)
6347   lt_cv_deplibs_check_method=pass_all
6348   ;;
6349
6350 openbsd*)
6351   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6353   else
6354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6355   fi
6356   ;;
6357
6358 osf3* | osf4* | osf5*)
6359   lt_cv_deplibs_check_method=pass_all
6360   ;;
6361
6362 rdos*)
6363   lt_cv_deplibs_check_method=pass_all
6364   ;;
6365
6366 solaris*)
6367   lt_cv_deplibs_check_method=pass_all
6368   ;;
6369
6370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6371   lt_cv_deplibs_check_method=pass_all
6372   ;;
6373
6374 sysv4 | sysv4.3*)
6375   case $host_vendor in
6376   motorola)
6377     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]'
6378     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6379     ;;
6380   ncr)
6381     lt_cv_deplibs_check_method=pass_all
6382     ;;
6383   sequent)
6384     lt_cv_file_magic_cmd='/bin/file'
6385     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6386     ;;
6387   sni)
6388     lt_cv_file_magic_cmd='/bin/file'
6389     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6390     lt_cv_file_magic_test_file=/lib/libc.so
6391     ;;
6392   siemens)
6393     lt_cv_deplibs_check_method=pass_all
6394     ;;
6395   pc)
6396     lt_cv_deplibs_check_method=pass_all
6397     ;;
6398   esac
6399   ;;
6400
6401 tpf*)
6402   lt_cv_deplibs_check_method=pass_all
6403   ;;
6404 esac
6405
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6408 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6409 file_magic_cmd=$lt_cv_file_magic_cmd
6410 deplibs_check_method=$lt_cv_deplibs_check_method
6411 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424 if test -n "$ac_tool_prefix"; then
6425   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}ar; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if test "${ac_cv_prog_AR+set}" = set; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   if test -n "$AR"; then
6433   ac_cv_prog_AR="$AR" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440     for ac_exec_ext in '' $ac_executable_extensions; do
6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442     ac_cv_prog_AR="${ac_tool_prefix}ar"
6443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447   done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 AR=$ac_cv_prog_AR
6453 if test -n "$AR"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6455 $as_echo "$AR" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461
6462 fi
6463 if test -z "$ac_cv_prog_AR"; then
6464   ac_ct_AR=$AR
6465   # Extract the first word of "ar", so it can be a program name with args.
6466 set dummy ar; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6470   $as_echo_n "(cached) " >&6
6471 else
6472   if test -n "$ac_ct_AR"; then
6473   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480     for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_prog_ac_ct_AR="ar"
6483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487   done
6488 IFS=$as_save_IFS
6489
6490 fi
6491 fi
6492 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6493 if test -n "$ac_ct_AR"; then
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6495 $as_echo "$ac_ct_AR" >&6; }
6496 else
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6499 fi
6500
6501   if test "x$ac_ct_AR" = x; then
6502     AR="false"
6503   else
6504     case $cross_compiling:$ac_tool_warned in
6505 yes:)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6508 ac_tool_warned=yes ;;
6509 esac
6510     AR=$ac_ct_AR
6511   fi
6512 else
6513   AR="$ac_cv_prog_AR"
6514 fi
6515
6516 test -z "$AR" && AR=ar
6517 test -z "$AR_FLAGS" && AR_FLAGS=cru
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529 if test -n "$ac_tool_prefix"; then
6530   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}strip; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_STRIP+set}" = set; then :
6535   $as_echo_n "(cached) " >&6
6536 else
6537   if test -n "$STRIP"; then
6538   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545     for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552   done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 STRIP=$ac_cv_prog_STRIP
6558 if test -n "$STRIP"; then
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6560 $as_echo "$STRIP" >&6; }
6561 else
6562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_STRIP"; then
6569   ac_ct_STRIP=$STRIP
6570   # Extract the first word of "strip", so it can be a program name with args.
6571 set dummy strip; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$ac_ct_STRIP"; then
6578   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585     for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_STRIP="strip"
6588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592   done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6598 if test -n "$ac_ct_STRIP"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6600 $as_echo "$ac_ct_STRIP" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606   if test "x$ac_ct_STRIP" = x; then
6607     STRIP=":"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615     STRIP=$ac_ct_STRIP
6616   fi
6617 else
6618   STRIP="$ac_cv_prog_STRIP"
6619 fi
6620
6621 test -z "$STRIP" && STRIP=:
6622
6623
6624
6625
6626
6627
6628 if test -n "$ac_tool_prefix"; then
6629   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6630 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6634   $as_echo_n "(cached) " >&6
6635 else
6636   if test -n "$RANLIB"; then
6637   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644     for ac_exec_ext in '' $ac_executable_extensions; do
6645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648     break 2
6649   fi
6650 done
6651   done
6652 IFS=$as_save_IFS
6653
6654 fi
6655 fi
6656 RANLIB=$ac_cv_prog_RANLIB
6657 if test -n "$RANLIB"; then
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6659 $as_echo "$RANLIB" >&6; }
6660 else
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6663 fi
6664
6665
6666 fi
6667 if test -z "$ac_cv_prog_RANLIB"; then
6668   ac_ct_RANLIB=$RANLIB
6669   # Extract the first word of "ranlib", so it can be a program name with args.
6670 set dummy ranlib; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   if test -n "$ac_ct_RANLIB"; then
6677   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684     for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_prog_ac_ct_RANLIB="ranlib"
6687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691   done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6697 if test -n "$ac_ct_RANLIB"; then
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6699 $as_echo "$ac_ct_RANLIB" >&6; }
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704
6705   if test "x$ac_ct_RANLIB" = x; then
6706     RANLIB=":"
6707   else
6708     case $cross_compiling:$ac_tool_warned in
6709 yes:)
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned=yes ;;
6713 esac
6714     RANLIB=$ac_ct_RANLIB
6715   fi
6716 else
6717   RANLIB="$ac_cv_prog_RANLIB"
6718 fi
6719
6720 test -z "$RANLIB" && RANLIB=:
6721
6722
6723
6724
6725
6726
6727 # Determine commands to create old-style static archives.
6728 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6729 old_postinstall_cmds='chmod 644 $oldlib'
6730 old_postuninstall_cmds=
6731
6732 if test -n "$RANLIB"; then
6733   case $host_os in
6734   openbsd*)
6735     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6736     ;;
6737   *)
6738     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6739     ;;
6740   esac
6741   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6742 fi
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777 # If no C compiler was specified, use CC.
6778 LTCC=${LTCC-"$CC"}
6779
6780 # If no C compiler flags were specified, use CFLAGS.
6781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6782
6783 # Allow CC to be a program name with arguments.
6784 compiler=$CC
6785
6786
6787 # Check for command to grab the raw symbol name followed by C symbol from nm.
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6789 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6790 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793
6794 # These are sane defaults that work on at least a few old systems.
6795 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6796
6797 # Character class describing NM global symbol codes.
6798 symcode='[BCDEGRST]'
6799
6800 # Regexp to match symbols that can be accessed directly from C.
6801 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6802
6803 # Define system-specific variables.
6804 case $host_os in
6805 aix*)
6806   symcode='[BCDT]'
6807   ;;
6808 cygwin* | mingw* | pw32* | cegcc*)
6809   symcode='[ABCDGISTW]'
6810   ;;
6811 hpux*)
6812   if test "$host_cpu" = ia64; then
6813     symcode='[ABCDEGRST]'
6814   fi
6815   ;;
6816 irix* | nonstopux*)
6817   symcode='[BCDEGRST]'
6818   ;;
6819 osf*)
6820   symcode='[BCDEGQRST]'
6821   ;;
6822 solaris*)
6823   symcode='[BDRT]'
6824   ;;
6825 sco3.2v5*)
6826   symcode='[DT]'
6827   ;;
6828 sysv4.2uw2*)
6829   symcode='[DT]'
6830   ;;
6831 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6832   symcode='[ABDT]'
6833   ;;
6834 sysv4)
6835   symcode='[DFNSTU]'
6836   ;;
6837 esac
6838
6839 # If we're using GNU nm, then use its standard symbol codes.
6840 case `$NM -V 2>&1` in
6841 *GNU* | *'with BFD'*)
6842   symcode='[ABCDGIRSTW]' ;;
6843 esac
6844
6845 # Transform an extracted symbol line into a proper C declaration.
6846 # Some systems (esp. on ia64) link data and code symbols differently,
6847 # so use this general approach.
6848 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6849
6850 # Transform an extracted symbol line into symbol name and symbol address
6851 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6852 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'"
6853
6854 # Handle CRLF in mingw tool chain
6855 opt_cr=
6856 case $build_os in
6857 mingw*)
6858   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6859   ;;
6860 esac
6861
6862 # Try without a prefix underscore, then with it.
6863 for ac_symprfx in "" "_"; do
6864
6865   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6866   symxfrm="\\1 $ac_symprfx\\2 \\2"
6867
6868   # Write the raw and C identifiers.
6869   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6870     # Fake it for dumpbin and say T for any non-static function
6871     # and D for any global variable.
6872     # Also find C++ and __fastcall symbols from MSVC++,
6873     # which start with @ or ?.
6874     lt_cv_sys_global_symbol_pipe="$AWK '"\
6875 "     {last_section=section; section=\$ 3};"\
6876 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6877 "     \$ 0!~/External *\|/{next};"\
6878 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6879 "     {if(hide[section]) next};"\
6880 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6881 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6882 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6883 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6884 "     ' prfx=^$ac_symprfx"
6885   else
6886     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6887   fi
6888
6889   # Check to see that the pipe works correctly.
6890   pipe_works=no
6891
6892   rm -f conftest*
6893   cat > conftest.$ac_ext <<_LT_EOF
6894 #ifdef __cplusplus
6895 extern "C" {
6896 #endif
6897 char nm_test_var;
6898 void nm_test_func(void);
6899 void nm_test_func(void){}
6900 #ifdef __cplusplus
6901 }
6902 #endif
6903 int main(){nm_test_var='a';nm_test_func();return(0);}
6904 _LT_EOF
6905
6906   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6907   (eval $ac_compile) 2>&5
6908   ac_status=$?
6909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6910   test $ac_status = 0; }; then
6911     # Now try to grab the symbols.
6912     nlist=conftest.nm
6913     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6914   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6915   ac_status=$?
6916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6917   test $ac_status = 0; } && test -s "$nlist"; then
6918       # Try sorting and uniquifying the output.
6919       if sort "$nlist" | uniq > "$nlist"T; then
6920         mv -f "$nlist"T "$nlist"
6921       else
6922         rm -f "$nlist"T
6923       fi
6924
6925       # Make sure that we snagged all the symbols we need.
6926       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6927         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6928           cat <<_LT_EOF > conftest.$ac_ext
6929 #ifdef __cplusplus
6930 extern "C" {
6931 #endif
6932
6933 _LT_EOF
6934           # Now generate the symbol file.
6935           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6936
6937           cat <<_LT_EOF >> conftest.$ac_ext
6938
6939 /* The mapping between symbol names and symbols.  */
6940 const struct {
6941   const char *name;
6942   void       *address;
6943 }
6944 lt__PROGRAM__LTX_preloaded_symbols[] =
6945 {
6946   { "@PROGRAM@", (void *) 0 },
6947 _LT_EOF
6948           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6949           cat <<\_LT_EOF >> conftest.$ac_ext
6950   {0, (void *) 0}
6951 };
6952
6953 /* This works around a problem in FreeBSD linker */
6954 #ifdef FREEBSD_WORKAROUND
6955 static const void *lt_preloaded_setup() {
6956   return lt__PROGRAM__LTX_preloaded_symbols;
6957 }
6958 #endif
6959
6960 #ifdef __cplusplus
6961 }
6962 #endif
6963 _LT_EOF
6964           # Now try linking the two files.
6965           mv conftest.$ac_objext conftstm.$ac_objext
6966           lt_save_LIBS="$LIBS"
6967           lt_save_CFLAGS="$CFLAGS"
6968           LIBS="conftstm.$ac_objext"
6969           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6970           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6971   (eval $ac_link) 2>&5
6972   ac_status=$?
6973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6975             pipe_works=yes
6976           fi
6977           LIBS="$lt_save_LIBS"
6978           CFLAGS="$lt_save_CFLAGS"
6979         else
6980           echo "cannot find nm_test_func in $nlist" >&5
6981         fi
6982       else
6983         echo "cannot find nm_test_var in $nlist" >&5
6984       fi
6985     else
6986       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6987     fi
6988   else
6989     echo "$progname: failed program was:" >&5
6990     cat conftest.$ac_ext >&5
6991   fi
6992   rm -rf conftest* conftst*
6993
6994   # Do not use the global_symbol_pipe unless it works.
6995   if test "$pipe_works" = yes; then
6996     break
6997   else
6998     lt_cv_sys_global_symbol_pipe=
6999   fi
7000 done
7001
7002 fi
7003
7004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7005   lt_cv_sys_global_symbol_to_cdecl=
7006 fi
7007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7009 $as_echo "failed" >&6; }
7010 else
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7012 $as_echo "ok" >&6; }
7013 fi
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036 # Check whether --enable-libtool-lock was given.
7037 if test "${enable_libtool_lock+set}" = set; then :
7038   enableval=$enable_libtool_lock;
7039 fi
7040
7041 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7042
7043 # Some flags need to be propagated to the compiler or linker for good
7044 # libtool support.
7045 case $host in
7046 ia64-*-hpux*)
7047   # Find out which ABI we are using.
7048   echo 'int i;' > conftest.$ac_ext
7049   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7050   (eval $ac_compile) 2>&5
7051   ac_status=$?
7052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7053   test $ac_status = 0; }; then
7054     case `/usr/bin/file conftest.$ac_objext` in
7055       *ELF-32*)
7056         HPUX_IA64_MODE="32"
7057         ;;
7058       *ELF-64*)
7059         HPUX_IA64_MODE="64"
7060         ;;
7061     esac
7062   fi
7063   rm -rf conftest*
7064   ;;
7065 *-*-irix6*)
7066   # Find out which ABI we are using.
7067   echo '#line 7067 "configure"' > conftest.$ac_ext
7068   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7069   (eval $ac_compile) 2>&5
7070   ac_status=$?
7071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072   test $ac_status = 0; }; then
7073     if test "$lt_cv_prog_gnu_ld" = yes; then
7074       case `/usr/bin/file conftest.$ac_objext` in
7075         *32-bit*)
7076           LD="${LD-ld} -melf32bsmip"
7077           ;;
7078         *N32*)
7079           LD="${LD-ld} -melf32bmipn32"
7080           ;;
7081         *64-bit*)
7082           LD="${LD-ld} -melf64bmip"
7083         ;;
7084       esac
7085     else
7086       case `/usr/bin/file conftest.$ac_objext` in
7087         *32-bit*)
7088           LD="${LD-ld} -32"
7089           ;;
7090         *N32*)
7091           LD="${LD-ld} -n32"
7092           ;;
7093         *64-bit*)
7094           LD="${LD-ld} -64"
7095           ;;
7096       esac
7097     fi
7098   fi
7099   rm -rf conftest*
7100   ;;
7101
7102 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7103 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7104   # Find out which ABI we are using.
7105   echo 'int i;' > conftest.$ac_ext
7106   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107   (eval $ac_compile) 2>&5
7108   ac_status=$?
7109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110   test $ac_status = 0; }; then
7111     case `/usr/bin/file conftest.o` in
7112       *32-bit*)
7113         case $host in
7114           x86_64-*kfreebsd*-gnu)
7115             LD="${LD-ld} -m elf_i386_fbsd"
7116             ;;
7117           x86_64-*linux*)
7118             LD="${LD-ld} -m elf_i386"
7119             ;;
7120           ppc64-*linux*|powerpc64-*linux*)
7121             LD="${LD-ld} -m elf32ppclinux"
7122             ;;
7123           s390x-*linux*)
7124             LD="${LD-ld} -m elf_s390"
7125             ;;
7126           sparc64-*linux*)
7127             LD="${LD-ld} -m elf32_sparc"
7128             ;;
7129         esac
7130         ;;
7131       *64-bit*)
7132         case $host in
7133           x86_64-*kfreebsd*-gnu)
7134             LD="${LD-ld} -m elf_x86_64_fbsd"
7135             ;;
7136           x86_64-*linux*)
7137             LD="${LD-ld} -m elf_x86_64"
7138             ;;
7139           ppc*-*linux*|powerpc*-*linux*)
7140             LD="${LD-ld} -m elf64ppc"
7141             ;;
7142           s390*-*linux*|s390*-*tpf*)
7143             LD="${LD-ld} -m elf64_s390"
7144             ;;
7145           sparc*-*linux*)
7146             LD="${LD-ld} -m elf64_sparc"
7147             ;;
7148         esac
7149         ;;
7150     esac
7151   fi
7152   rm -rf conftest*
7153   ;;
7154
7155 *-*-sco3.2v5*)
7156   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7157   SAVE_CFLAGS="$CFLAGS"
7158   CFLAGS="$CFLAGS -belf"
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7160 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7161 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   ac_ext=c
7165 ac_cpp='$CPP $CPPFLAGS'
7166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7169
7170      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h.  */
7172
7173 int
7174 main ()
7175 {
7176
7177   ;
7178   return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_link "$LINENO"; then :
7182   lt_cv_cc_needs_belf=yes
7183 else
7184   lt_cv_cc_needs_belf=no
7185 fi
7186 rm -f core conftest.err conftest.$ac_objext \
7187     conftest$ac_exeext conftest.$ac_ext
7188      ac_ext=c
7189 ac_cpp='$CPP $CPPFLAGS'
7190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7193
7194 fi
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7196 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7197   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7198     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7199     CFLAGS="$SAVE_CFLAGS"
7200   fi
7201   ;;
7202 sparc*-*solaris*)
7203   # Find out which ABI we are using.
7204   echo 'int i;' > conftest.$ac_ext
7205   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7206   (eval $ac_compile) 2>&5
7207   ac_status=$?
7208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7209   test $ac_status = 0; }; then
7210     case `/usr/bin/file conftest.o` in
7211     *64-bit*)
7212       case $lt_cv_prog_gnu_ld in
7213       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7214       *)
7215         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7216           LD="${LD-ld} -64"
7217         fi
7218         ;;
7219       esac
7220       ;;
7221     esac
7222   fi
7223   rm -rf conftest*
7224   ;;
7225 esac
7226
7227 need_locks="$enable_libtool_lock"
7228
7229
7230   case $host_os in
7231     rhapsody* | darwin*)
7232     if test -n "$ac_tool_prefix"; then
7233   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7238   $as_echo_n "(cached) " >&6
7239 else
7240   if test -n "$DSYMUTIL"; then
7241   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246   IFS=$as_save_IFS
7247   test -z "$as_dir" && as_dir=.
7248     for ac_exec_ext in '' $ac_executable_extensions; do
7249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252     break 2
7253   fi
7254 done
7255   done
7256 IFS=$as_save_IFS
7257
7258 fi
7259 fi
7260 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7261 if test -n "$DSYMUTIL"; then
7262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7263 $as_echo "$DSYMUTIL" >&6; }
7264 else
7265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7267 fi
7268
7269
7270 fi
7271 if test -z "$ac_cv_prog_DSYMUTIL"; then
7272   ac_ct_DSYMUTIL=$DSYMUTIL
7273   # Extract the first word of "dsymutil", so it can be a program name with args.
7274 set dummy dsymutil; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   if test -n "$ac_ct_DSYMUTIL"; then
7281   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288     for ac_exec_ext in '' $ac_executable_extensions; do
7289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295   done
7296 IFS=$as_save_IFS
7297
7298 fi
7299 fi
7300 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7301 if test -n "$ac_ct_DSYMUTIL"; then
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7303 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7304 else
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308
7309   if test "x$ac_ct_DSYMUTIL" = x; then
7310     DSYMUTIL=":"
7311   else
7312     case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7317 esac
7318     DSYMUTIL=$ac_ct_DSYMUTIL
7319   fi
7320 else
7321   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7322 fi
7323
7324     if test -n "$ac_tool_prefix"; then
7325   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   if test -n "$NMEDIT"; then
7333   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340     for ac_exec_ext in '' $ac_executable_extensions; do
7341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347   done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 NMEDIT=$ac_cv_prog_NMEDIT
7353 if test -n "$NMEDIT"; then
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7355 $as_echo "$NMEDIT" >&6; }
7356 else
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361
7362 fi
7363 if test -z "$ac_cv_prog_NMEDIT"; then
7364   ac_ct_NMEDIT=$NMEDIT
7365   # Extract the first word of "nmedit", so it can be a program name with args.
7366 set dummy nmedit; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7370   $as_echo_n "(cached) " >&6
7371 else
7372   if test -n "$ac_ct_NMEDIT"; then
7373   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380     for ac_exec_ext in '' $ac_executable_extensions; do
7381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384     break 2
7385   fi
7386 done
7387   done
7388 IFS=$as_save_IFS
7389
7390 fi
7391 fi
7392 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7393 if test -n "$ac_ct_NMEDIT"; then
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7395 $as_echo "$ac_ct_NMEDIT" >&6; }
7396 else
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400
7401   if test "x$ac_ct_NMEDIT" = x; then
7402     NMEDIT=":"
7403   else
7404     case $cross_compiling:$ac_tool_warned in
7405 yes:)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7409 esac
7410     NMEDIT=$ac_ct_NMEDIT
7411   fi
7412 else
7413   NMEDIT="$ac_cv_prog_NMEDIT"
7414 fi
7415
7416     if test -n "$ac_tool_prefix"; then
7417   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7418 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if test "${ac_cv_prog_LIPO+set}" = set; then :
7422   $as_echo_n "(cached) " >&6
7423 else
7424   if test -n "$LIPO"; then
7425   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432     for ac_exec_ext in '' $ac_executable_extensions; do
7433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439   done
7440 IFS=$as_save_IFS
7441
7442 fi
7443 fi
7444 LIPO=$ac_cv_prog_LIPO
7445 if test -n "$LIPO"; then
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7447 $as_echo "$LIPO" >&6; }
7448 else
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 fi
7452
7453
7454 fi
7455 if test -z "$ac_cv_prog_LIPO"; then
7456   ac_ct_LIPO=$LIPO
7457   # Extract the first word of "lipo", so it can be a program name with args.
7458 set dummy lipo; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464   if test -n "$ac_ct_LIPO"; then
7465   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472     for ac_exec_ext in '' $ac_executable_extensions; do
7473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474     ac_cv_prog_ac_ct_LIPO="lipo"
7475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479   done
7480 IFS=$as_save_IFS
7481
7482 fi
7483 fi
7484 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7485 if test -n "$ac_ct_LIPO"; then
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7487 $as_echo "$ac_ct_LIPO" >&6; }
7488 else
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 fi
7492
7493   if test "x$ac_ct_LIPO" = x; then
7494     LIPO=":"
7495   else
7496     case $cross_compiling:$ac_tool_warned in
7497 yes:)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502     LIPO=$ac_ct_LIPO
7503   fi
7504 else
7505   LIPO="$ac_cv_prog_LIPO"
7506 fi
7507
7508     if test -n "$ac_tool_prefix"; then
7509   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}otool; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   if test -n "$OTOOL"; then
7517   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524     for ac_exec_ext in '' $ac_executable_extensions; do
7525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531   done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 OTOOL=$ac_cv_prog_OTOOL
7537 if test -n "$OTOOL"; then
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7539 $as_echo "$OTOOL" >&6; }
7540 else
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_OTOOL"; then
7548   ac_ct_OTOOL=$OTOOL
7549   # Extract the first word of "otool", so it can be a program name with args.
7550 set dummy otool; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7554   $as_echo_n "(cached) " >&6
7555 else
7556   if test -n "$ac_ct_OTOOL"; then
7557   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564     for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_prog_ac_ct_OTOOL="otool"
7567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571   done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7577 if test -n "$ac_ct_OTOOL"; then
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7579 $as_echo "$ac_ct_OTOOL" >&6; }
7580 else
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585   if test "x$ac_ct_OTOOL" = x; then
7586     OTOOL=":"
7587   else
7588     case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594     OTOOL=$ac_ct_OTOOL
7595   fi
7596 else
7597   OTOOL="$ac_cv_prog_OTOOL"
7598 fi
7599
7600     if test -n "$ac_tool_prefix"; then
7601   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7606   $as_echo_n "(cached) " >&6
7607 else
7608   if test -n "$OTOOL64"; then
7609   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614   IFS=$as_save_IFS
7615   test -z "$as_dir" && as_dir=.
7616     for ac_exec_ext in '' $ac_executable_extensions; do
7617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620     break 2
7621   fi
7622 done
7623   done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 OTOOL64=$ac_cv_prog_OTOOL64
7629 if test -n "$OTOOL64"; then
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7631 $as_echo "$OTOOL64" >&6; }
7632 else
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638 fi
7639 if test -z "$ac_cv_prog_OTOOL64"; then
7640   ac_ct_OTOOL64=$OTOOL64
7641   # Extract the first word of "otool64", so it can be a program name with args.
7642 set dummy otool64; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   if test -n "$ac_ct_OTOOL64"; then
7649   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656     for ac_exec_ext in '' $ac_executable_extensions; do
7657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658     ac_cv_prog_ac_ct_OTOOL64="otool64"
7659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660     break 2
7661   fi
7662 done
7663   done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7669 if test -n "$ac_ct_OTOOL64"; then
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7671 $as_echo "$ac_ct_OTOOL64" >&6; }
7672 else
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 fi
7676
7677   if test "x$ac_ct_OTOOL64" = x; then
7678     OTOOL64=":"
7679   else
7680     case $cross_compiling:$ac_tool_warned in
7681 yes:)
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684 ac_tool_warned=yes ;;
7685 esac
7686     OTOOL64=$ac_ct_OTOOL64
7687   fi
7688 else
7689   OTOOL64="$ac_cv_prog_OTOOL64"
7690 fi
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7719 $as_echo_n "checking for -single_module linker flag... " >&6; }
7720 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7721   $as_echo_n "(cached) " >&6
7722 else
7723   lt_cv_apple_cc_single_mod=no
7724       if test -z "${LT_MULTI_MODULE}"; then
7725         # By default we will add the -single_module flag. You can override
7726         # by either setting the environment variable LT_MULTI_MODULE
7727         # non-empty at configure time, or by adding -multi_module to the
7728         # link flags.
7729         rm -rf libconftest.dylib*
7730         echo "int foo(void){return 1;}" > conftest.c
7731         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7732 -dynamiclib -Wl,-single_module conftest.c" >&5
7733         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7734           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7735         _lt_result=$?
7736         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7737           lt_cv_apple_cc_single_mod=yes
7738         else
7739           cat conftest.err >&5
7740         fi
7741         rm -rf libconftest.dylib*
7742         rm -f conftest.*
7743       fi
7744 fi
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7746 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7748 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7749 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   lt_cv_ld_exported_symbols_list=no
7753       save_LDFLAGS=$LDFLAGS
7754       echo "_main" > conftest.sym
7755       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7756       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h.  */
7758
7759 int
7760 main ()
7761 {
7762
7763   ;
7764   return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_link "$LINENO"; then :
7768   lt_cv_ld_exported_symbols_list=yes
7769 else
7770   lt_cv_ld_exported_symbols_list=no
7771 fi
7772 rm -f core conftest.err conftest.$ac_objext \
7773     conftest$ac_exeext conftest.$ac_ext
7774         LDFLAGS="$save_LDFLAGS"
7775
7776 fi
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7778 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7779     case $host_os in
7780     rhapsody* | darwin1.[012])
7781       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7782     darwin1.*)
7783       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7784     darwin*) # darwin 5.x on
7785       # if running on 10.5 or later, the deployment target defaults
7786       # to the OS version, if on x86, and 10.4, the deployment
7787       # target defaults to 10.4. Don't you love it?
7788       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7789         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7790           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7791         10.[012]*)
7792           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7793         10.*)
7794           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7795       esac
7796     ;;
7797   esac
7798     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7799       _lt_dar_single_mod='$single_module'
7800     fi
7801     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7802       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7803     else
7804       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7805     fi
7806     if test "$DSYMUTIL" != ":"; then
7807       _lt_dsymutil='~$DSYMUTIL $lib || :'
7808     else
7809       _lt_dsymutil=
7810     fi
7811     ;;
7812   esac
7813
7814 ac_ext=c
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7820 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7821 # On Suns, sometimes $CPP names a directory.
7822 if test -n "$CPP" && test -d "$CPP"; then
7823   CPP=
7824 fi
7825 if test -z "$CPP"; then
7826   if test "${ac_cv_prog_CPP+set}" = set; then :
7827   $as_echo_n "(cached) " >&6
7828 else
7829       # Double quotes because CPP needs to be expanded
7830     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7831     do
7832       ac_preproc_ok=false
7833 for ac_c_preproc_warn_flag in '' yes
7834 do
7835   # Use a header file that comes with gcc, so configuring glibc
7836   # with a fresh cross-compiler works.
7837   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7838   # <limits.h> exists even on freestanding compilers.
7839   # On the NeXT, cc -E runs the code through the compiler's parser,
7840   # not just through cpp. "Syntax error" is here to catch this case.
7841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h.  */
7843 #ifdef __STDC__
7844 # include <limits.h>
7845 #else
7846 # include <assert.h>
7847 #endif
7848                      Syntax error
7849 _ACEOF
7850 if ac_fn_c_try_cpp "$LINENO"; then :
7851
7852 else
7853   # Broken: fails on valid input.
7854 continue
7855 fi
7856 rm -f conftest.err conftest.$ac_ext
7857
7858   # OK, works on sane cases.  Now check whether nonexistent headers
7859   # can be detected and how.
7860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h.  */
7862 #include <ac_nonexistent.h>
7863 _ACEOF
7864 if ac_fn_c_try_cpp "$LINENO"; then :
7865   # Broken: success on invalid input.
7866 continue
7867 else
7868   # Passes both tests.
7869 ac_preproc_ok=:
7870 break
7871 fi
7872 rm -f conftest.err conftest.$ac_ext
7873
7874 done
7875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7876 rm -f conftest.err conftest.$ac_ext
7877 if $ac_preproc_ok; then :
7878   break
7879 fi
7880
7881     done
7882     ac_cv_prog_CPP=$CPP
7883
7884 fi
7885   CPP=$ac_cv_prog_CPP
7886 else
7887   ac_cv_prog_CPP=$CPP
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7890 $as_echo "$CPP" >&6; }
7891 ac_preproc_ok=false
7892 for ac_c_preproc_warn_flag in '' yes
7893 do
7894   # Use a header file that comes with gcc, so configuring glibc
7895   # with a fresh cross-compiler works.
7896   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7897   # <limits.h> exists even on freestanding compilers.
7898   # On the NeXT, cc -E runs the code through the compiler's parser,
7899   # not just through cpp. "Syntax error" is here to catch this case.
7900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h.  */
7902 #ifdef __STDC__
7903 # include <limits.h>
7904 #else
7905 # include <assert.h>
7906 #endif
7907                      Syntax error
7908 _ACEOF
7909 if ac_fn_c_try_cpp "$LINENO"; then :
7910
7911 else
7912   # Broken: fails on valid input.
7913 continue
7914 fi
7915 rm -f conftest.err conftest.$ac_ext
7916
7917   # OK, works on sane cases.  Now check whether nonexistent headers
7918   # can be detected and how.
7919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h.  */
7921 #include <ac_nonexistent.h>
7922 _ACEOF
7923 if ac_fn_c_try_cpp "$LINENO"; then :
7924   # Broken: success on invalid input.
7925 continue
7926 else
7927   # Passes both tests.
7928 ac_preproc_ok=:
7929 break
7930 fi
7931 rm -f conftest.err conftest.$ac_ext
7932
7933 done
7934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7935 rm -f conftest.err conftest.$ac_ext
7936 if $ac_preproc_ok; then :
7937
7938 else
7939   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7941 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7942 See \`config.log' for more details." "$LINENO" 5; }
7943 fi
7944
7945 ac_ext=c
7946 ac_cpp='$CPP $CPPFLAGS'
7947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7950
7951
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7953 $as_echo_n "checking for ANSI C header files... " >&6; }
7954 if test "${ac_cv_header_stdc+set}" = set; then :
7955   $as_echo_n "(cached) " >&6
7956 else
7957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h.  */
7959 #include <stdlib.h>
7960 #include <stdarg.h>
7961 #include <string.h>
7962 #include <float.h>
7963
7964 int
7965 main ()
7966 {
7967
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973   ac_cv_header_stdc=yes
7974 else
7975   ac_cv_header_stdc=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978
7979 if test $ac_cv_header_stdc = yes; then
7980   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h.  */
7983 #include <string.h>
7984
7985 _ACEOF
7986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7987   $EGREP "memchr" >/dev/null 2>&1; then :
7988
7989 else
7990   ac_cv_header_stdc=no
7991 fi
7992 rm -f conftest*
7993
7994 fi
7995
7996 if test $ac_cv_header_stdc = yes; then
7997   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h.  */
8000 #include <stdlib.h>
8001
8002 _ACEOF
8003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8004   $EGREP "free" >/dev/null 2>&1; then :
8005
8006 else
8007   ac_cv_header_stdc=no
8008 fi
8009 rm -f conftest*
8010
8011 fi
8012
8013 if test $ac_cv_header_stdc = yes; then
8014   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8015   if test "$cross_compiling" = yes; then :
8016   :
8017 else
8018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h.  */
8020 #include <ctype.h>
8021 #include <stdlib.h>
8022 #if ((' ' & 0x0FF) == 0x020)
8023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8025 #else
8026 # define ISLOWER(c) \
8027                    (('a' <= (c) && (c) <= 'i') \
8028                      || ('j' <= (c) && (c) <= 'r') \
8029                      || ('s' <= (c) && (c) <= 'z'))
8030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8031 #endif
8032
8033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8034 int
8035 main ()
8036 {
8037   int i;
8038   for (i = 0; i < 256; i++)
8039     if (XOR (islower (i), ISLOWER (i))
8040         || toupper (i) != TOUPPER (i))
8041       return 2;
8042   return 0;
8043 }
8044 _ACEOF
8045 if ac_fn_c_try_run "$LINENO"; then :
8046
8047 else
8048   ac_cv_header_stdc=no
8049 fi
8050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8051   conftest.$ac_objext conftest.beam conftest.$ac_ext
8052 fi
8053
8054 fi
8055 fi
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8057 $as_echo "$ac_cv_header_stdc" >&6; }
8058 if test $ac_cv_header_stdc = yes; then
8059
8060 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8061
8062 fi
8063
8064 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8065 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8066                   inttypes.h stdint.h unistd.h
8067 do :
8068   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8069 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8070 "
8071 eval as_val=\$$as_ac_Header
8072    if test "x$as_val" = x""yes; then :
8073   cat >>confdefs.h <<_ACEOF
8074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8075 _ACEOF
8076
8077 fi
8078
8079 done
8080
8081
8082 for ac_header in dlfcn.h
8083 do :
8084   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8085 "
8086 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8087   cat >>confdefs.h <<_ACEOF
8088 #define HAVE_DLFCN_H 1
8089 _ACEOF
8090
8091 fi
8092
8093 done
8094
8095
8096
8097 ac_ext=cpp
8098 ac_cpp='$CXXCPP $CPPFLAGS'
8099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8102 if test -z "$CXX"; then
8103   if test -n "$CCC"; then
8104     CXX=$CCC
8105   else
8106     if test -n "$ac_tool_prefix"; then
8107   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8108   do
8109     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if test "${ac_cv_prog_CXX+set}" = set; then :
8114   $as_echo_n "(cached) " >&6
8115 else
8116   if test -n "$CXX"; then
8117   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122   IFS=$as_save_IFS
8123   test -z "$as_dir" && as_dir=.
8124     for ac_exec_ext in '' $ac_executable_extensions; do
8125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128     break 2
8129   fi
8130 done
8131   done
8132 IFS=$as_save_IFS
8133
8134 fi
8135 fi
8136 CXX=$ac_cv_prog_CXX
8137 if test -n "$CXX"; then
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8139 $as_echo "$CXX" >&6; }
8140 else
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8143 fi
8144
8145
8146     test -n "$CXX" && break
8147   done
8148 fi
8149 if test -z "$CXX"; then
8150   ac_ct_CXX=$CXX
8151   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8152 do
8153   # Extract the first word of "$ac_prog", so it can be a program name with args.
8154 set dummy $ac_prog; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   if test -n "$ac_ct_CXX"; then
8161   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166   IFS=$as_save_IFS
8167   test -z "$as_dir" && as_dir=.
8168     for ac_exec_ext in '' $ac_executable_extensions; do
8169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170     ac_cv_prog_ac_ct_CXX="$ac_prog"
8171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172     break 2
8173   fi
8174 done
8175   done
8176 IFS=$as_save_IFS
8177
8178 fi
8179 fi
8180 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8181 if test -n "$ac_ct_CXX"; then
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8183 $as_echo "$ac_ct_CXX" >&6; }
8184 else
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8187 fi
8188
8189
8190   test -n "$ac_ct_CXX" && break
8191 done
8192
8193   if test "x$ac_ct_CXX" = x; then
8194     CXX="g++"
8195   else
8196     case $cross_compiling:$ac_tool_warned in
8197 yes:)
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8200 ac_tool_warned=yes ;;
8201 esac
8202     CXX=$ac_ct_CXX
8203   fi
8204 fi
8205
8206   fi
8207 fi
8208 # Provide some information about the compiler.
8209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8210 set X $ac_compile
8211 ac_compiler=$2
8212 for ac_option in --version -v -V -qversion; do
8213   { { ac_try="$ac_compiler $ac_option >&5"
8214 case "(($ac_try" in
8215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216   *) ac_try_echo=$ac_try;;
8217 esac
8218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8219 $as_echo "$ac_try_echo"; } >&5
8220   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8221   ac_status=$?
8222   if test -s conftest.err; then
8223     sed '10a\
8224 ... rest of stderr output deleted ...
8225          10q' conftest.err >conftest.er1
8226     cat conftest.er1 >&5
8227   fi
8228   rm -f conftest.er1 conftest.err
8229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8230   test $ac_status = 0; }
8231 done
8232
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8234 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8235 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h.  */
8240
8241 int
8242 main ()
8243 {
8244 #ifndef __GNUC__
8245        choke me
8246 #endif
8247
8248   ;
8249   return 0;
8250 }
8251 _ACEOF
8252 if ac_fn_cxx_try_compile "$LINENO"; then :
8253   ac_compiler_gnu=yes
8254 else
8255   ac_compiler_gnu=no
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8259
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8262 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8263 if test $ac_compiler_gnu = yes; then
8264   GXX=yes
8265 else
8266   GXX=
8267 fi
8268 ac_test_CXXFLAGS=${CXXFLAGS+set}
8269 ac_save_CXXFLAGS=$CXXFLAGS
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8271 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8272 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8273   $as_echo_n "(cached) " >&6
8274 else
8275   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8276    ac_cxx_werror_flag=yes
8277    ac_cv_prog_cxx_g=no
8278    CXXFLAGS="-g"
8279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h.  */
8281
8282 int
8283 main ()
8284 {
8285
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 if ac_fn_cxx_try_compile "$LINENO"; then :
8291   ac_cv_prog_cxx_g=yes
8292 else
8293   CXXFLAGS=""
8294       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h.  */
8296
8297 int
8298 main ()
8299 {
8300
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 if ac_fn_cxx_try_compile "$LINENO"; then :
8306
8307 else
8308   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8309          CXXFLAGS="-g"
8310          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h.  */
8312
8313 int
8314 main ()
8315 {
8316
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 if ac_fn_cxx_try_compile "$LINENO"; then :
8322   ac_cv_prog_cxx_g=yes
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8330 fi
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8332 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8333 if test "$ac_test_CXXFLAGS" = set; then
8334   CXXFLAGS=$ac_save_CXXFLAGS
8335 elif test $ac_cv_prog_cxx_g = yes; then
8336   if test "$GXX" = yes; then
8337     CXXFLAGS="-g -O2"
8338   else
8339     CXXFLAGS="-g"
8340   fi
8341 else
8342   if test "$GXX" = yes; then
8343     CXXFLAGS="-O2"
8344   else
8345     CXXFLAGS=
8346   fi
8347 fi
8348 ac_ext=c
8349 ac_cpp='$CPP $CPPFLAGS'
8350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8353
8354 depcc="$CXX"  am_compiler_list=
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8357 $as_echo_n "checking dependency style of $depcc... " >&6; }
8358 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8362   # We make a subdir and do the tests there.  Otherwise we can end up
8363   # making bogus files that we don't know about and never remove.  For
8364   # instance it was reported that on HP-UX the gcc test will end up
8365   # making a dummy file named `D' -- because `-MD' means `put the output
8366   # in D'.
8367   mkdir conftest.dir
8368   # Copy depcomp to subdir because otherwise we won't find it if we're
8369   # using a relative directory.
8370   cp "$am_depcomp" conftest.dir
8371   cd conftest.dir
8372   # We will build objects and dependencies in a subdirectory because
8373   # it helps to detect inapplicable dependency modes.  For instance
8374   # both Tru64's cc and ICC support -MD to output dependencies as a
8375   # side effect of compilation, but ICC will put the dependencies in
8376   # the current directory while Tru64 will put them in the object
8377   # directory.
8378   mkdir sub
8379
8380   am_cv_CXX_dependencies_compiler_type=none
8381   if test "$am_compiler_list" = ""; then
8382      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8383   fi
8384   am__universal=false
8385   case " $depcc " in #(
8386      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8387      esac
8388
8389   for depmode in $am_compiler_list; do
8390     # Setup a source with many dependencies, because some compilers
8391     # like to wrap large dependency lists on column 80 (with \), and
8392     # we should not choose a depcomp mode which is confused by this.
8393     #
8394     # We need to recreate these files for each test, as the compiler may
8395     # overwrite some of them when testing with obscure command lines.
8396     # This happens at least with the AIX C compiler.
8397     : > sub/conftest.c
8398     for i in 1 2 3 4 5 6; do
8399       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8400       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8401       # Solaris 8's {/usr,}/bin/sh.
8402       touch sub/conftst$i.h
8403     done
8404     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8405
8406     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8407     # mode.  It turns out that the SunPro C++ compiler does not properly
8408     # handle `-M -o', and we need to detect this.  Also, some Intel
8409     # versions had trouble with output in subdirs
8410     am__obj=sub/conftest.${OBJEXT-o}
8411     am__minus_obj="-o $am__obj"
8412     case $depmode in
8413     gcc)
8414       # This depmode causes a compiler race in universal mode.
8415       test "$am__universal" = false || continue
8416       ;;
8417     nosideeffect)
8418       # after this tag, mechanisms are not by side-effect, so they'll
8419       # only be used when explicitly requested
8420       if test "x$enable_dependency_tracking" = xyes; then
8421         continue
8422       else
8423         break
8424       fi
8425       ;;
8426     msvisualcpp | msvcmsys)
8427       # This compiler won't grok `-c -o', but also, the minuso test has
8428       # not run yet.  These depmodes are late enough in the game, and
8429       # so weak that their functioning should not be impacted.
8430       am__obj=conftest.${OBJEXT-o}
8431       am__minus_obj=
8432       ;;
8433     none) break ;;
8434     esac
8435     if depmode=$depmode \
8436        source=sub/conftest.c object=$am__obj \
8437        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8438        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8439          >/dev/null 2>conftest.err &&
8440        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8441        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8442        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8443        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8444       # icc doesn't choke on unknown options, it will just issue warnings
8445       # or remarks (even with -Werror).  So we grep stderr for any message
8446       # that says an option was ignored or not supported.
8447       # When given -MP, icc 7.0 and 7.1 complain thusly:
8448       #   icc: Command line warning: ignoring option '-M'; no argument required
8449       # The diagnosis changed in icc 8.0:
8450       #   icc: Command line remark: option '-MP' not supported
8451       if (grep 'ignoring option' conftest.err ||
8452           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8453         am_cv_CXX_dependencies_compiler_type=$depmode
8454         break
8455       fi
8456     fi
8457   done
8458
8459   cd ..
8460   rm -rf conftest.dir
8461 else
8462   am_cv_CXX_dependencies_compiler_type=none
8463 fi
8464
8465 fi
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8467 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8468 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8469
8470  if
8471   test "x$enable_dependency_tracking" != xno \
8472   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8473   am__fastdepCXX_TRUE=
8474   am__fastdepCXX_FALSE='#'
8475 else
8476   am__fastdepCXX_TRUE='#'
8477   am__fastdepCXX_FALSE=
8478 fi
8479
8480
8481 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8482     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8483     (test "X$CXX" != "Xg++"))) ; then
8484   ac_ext=cpp
8485 ac_cpp='$CXXCPP $CPPFLAGS'
8486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8490 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8491 if test -z "$CXXCPP"; then
8492   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8493   $as_echo_n "(cached) " >&6
8494 else
8495       # Double quotes because CXXCPP needs to be expanded
8496     for CXXCPP in "$CXX -E" "/lib/cpp"
8497     do
8498       ac_preproc_ok=false
8499 for ac_cxx_preproc_warn_flag in '' yes
8500 do
8501   # Use a header file that comes with gcc, so configuring glibc
8502   # with a fresh cross-compiler works.
8503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8504   # <limits.h> exists even on freestanding compilers.
8505   # On the NeXT, cc -E runs the code through the compiler's parser,
8506   # not just through cpp. "Syntax error" is here to catch this case.
8507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h.  */
8509 #ifdef __STDC__
8510 # include <limits.h>
8511 #else
8512 # include <assert.h>
8513 #endif
8514                      Syntax error
8515 _ACEOF
8516 if ac_fn_cxx_try_cpp "$LINENO"; then :
8517
8518 else
8519   # Broken: fails on valid input.
8520 continue
8521 fi
8522 rm -f conftest.err conftest.$ac_ext
8523
8524   # OK, works on sane cases.  Now check whether nonexistent headers
8525   # can be detected and how.
8526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h.  */
8528 #include <ac_nonexistent.h>
8529 _ACEOF
8530 if ac_fn_cxx_try_cpp "$LINENO"; then :
8531   # Broken: success on invalid input.
8532 continue
8533 else
8534   # Passes both tests.
8535 ac_preproc_ok=:
8536 break
8537 fi
8538 rm -f conftest.err conftest.$ac_ext
8539
8540 done
8541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8542 rm -f conftest.err conftest.$ac_ext
8543 if $ac_preproc_ok; then :
8544   break
8545 fi
8546
8547     done
8548     ac_cv_prog_CXXCPP=$CXXCPP
8549
8550 fi
8551   CXXCPP=$ac_cv_prog_CXXCPP
8552 else
8553   ac_cv_prog_CXXCPP=$CXXCPP
8554 fi
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8556 $as_echo "$CXXCPP" >&6; }
8557 ac_preproc_ok=false
8558 for ac_cxx_preproc_warn_flag in '' yes
8559 do
8560   # Use a header file that comes with gcc, so configuring glibc
8561   # with a fresh cross-compiler works.
8562   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8563   # <limits.h> exists even on freestanding compilers.
8564   # On the NeXT, cc -E runs the code through the compiler's parser,
8565   # not just through cpp. "Syntax error" is here to catch this case.
8566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h.  */
8568 #ifdef __STDC__
8569 # include <limits.h>
8570 #else
8571 # include <assert.h>
8572 #endif
8573                      Syntax error
8574 _ACEOF
8575 if ac_fn_cxx_try_cpp "$LINENO"; then :
8576
8577 else
8578   # Broken: fails on valid input.
8579 continue
8580 fi
8581 rm -f conftest.err conftest.$ac_ext
8582
8583   # OK, works on sane cases.  Now check whether nonexistent headers
8584   # can be detected and how.
8585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h.  */
8587 #include <ac_nonexistent.h>
8588 _ACEOF
8589 if ac_fn_cxx_try_cpp "$LINENO"; then :
8590   # Broken: success on invalid input.
8591 continue
8592 else
8593   # Passes both tests.
8594 ac_preproc_ok=:
8595 break
8596 fi
8597 rm -f conftest.err conftest.$ac_ext
8598
8599 done
8600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8601 rm -f conftest.err conftest.$ac_ext
8602 if $ac_preproc_ok; then :
8603
8604 else
8605   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8607 _lt_caught_CXX_error=yes; }
8608 fi
8609
8610 ac_ext=c
8611 ac_cpp='$CPP $CPPFLAGS'
8612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8615
8616 else
8617   _lt_caught_CXX_error=yes
8618 fi
8619
8620
8621
8622
8623
8624 # Set options
8625
8626
8627
8628         enable_dlopen=no
8629
8630
8631
8632
8633
8634
8635 # Check whether --with-pic was given.
8636 if test "${with_pic+set}" = set; then :
8637   withval=$with_pic; pic_mode="$withval"
8638 else
8639   pic_mode=default
8640 fi
8641
8642
8643 test -z "$pic_mode" && pic_mode=default
8644
8645
8646
8647
8648
8649
8650
8651   # Check whether --enable-fast-install was given.
8652 if test "${enable_fast_install+set}" = set; then :
8653   enableval=$enable_fast_install; p=${PACKAGE-default}
8654     case $enableval in
8655     yes) enable_fast_install=yes ;;
8656     no) enable_fast_install=no ;;
8657     *)
8658       enable_fast_install=no
8659       # Look at the argument we got.  We use all the common list separators.
8660       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8661       for pkg in $enableval; do
8662         IFS="$lt_save_ifs"
8663         if test "X$pkg" = "X$p"; then
8664           enable_fast_install=yes
8665         fi
8666       done
8667       IFS="$lt_save_ifs"
8668       ;;
8669     esac
8670 else
8671   enable_fast_install=yes
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684 # This can be used to rebuild libtool when needed
8685 LIBTOOL_DEPS="$ltmain"
8686
8687 # Always use our own libtool.
8688 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714 test -z "$LN_S" && LN_S="ln -s"
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729 if test -n "${ZSH_VERSION+set}" ; then
8730    setopt NO_GLOB_SUBST
8731 fi
8732
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8734 $as_echo_n "checking for objdir... " >&6; }
8735 if test "${lt_cv_objdir+set}" = set; then :
8736   $as_echo_n "(cached) " >&6
8737 else
8738   rm -f .libs 2>/dev/null
8739 mkdir .libs 2>/dev/null
8740 if test -d .libs; then
8741   lt_cv_objdir=.libs
8742 else
8743   # MS-DOS does not allow filenames that begin with a dot.
8744   lt_cv_objdir=_libs
8745 fi
8746 rmdir .libs 2>/dev/null
8747 fi
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8749 $as_echo "$lt_cv_objdir" >&6; }
8750 objdir=$lt_cv_objdir
8751
8752
8753
8754
8755
8756 cat >>confdefs.h <<_ACEOF
8757 #define LT_OBJDIR "$lt_cv_objdir/"
8758 _ACEOF
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776 case $host_os in
8777 aix3*)
8778   # AIX sometimes has problems with the GCC collect2 program.  For some
8779   # reason, if we set the COLLECT_NAMES environment variable, the problems
8780   # vanish in a puff of smoke.
8781   if test "X${COLLECT_NAMES+set}" != Xset; then
8782     COLLECT_NAMES=
8783     export COLLECT_NAMES
8784   fi
8785   ;;
8786 esac
8787
8788 # Sed substitution that helps us do robust quoting.  It backslashifies
8789 # metacharacters that are still active within double-quoted strings.
8790 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8791
8792 # Same as above, but do not quote variable references.
8793 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8794
8795 # Sed substitution to delay expansion of an escaped shell variable in a
8796 # double_quote_subst'ed string.
8797 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8798
8799 # Sed substitution to delay expansion of an escaped single quote.
8800 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8801
8802 # Sed substitution to avoid accidental globbing in evaled expressions
8803 no_glob_subst='s/\*/\\\*/g'
8804
8805 # Global variables:
8806 ofile=libtool
8807 can_build_shared=yes
8808
8809 # All known linkers require a `.a' archive for static linking (except MSVC,
8810 # which needs '.lib').
8811 libext=a
8812
8813 with_gnu_ld="$lt_cv_prog_gnu_ld"
8814
8815 old_CC="$CC"
8816 old_CFLAGS="$CFLAGS"
8817
8818 # Set sane defaults for various variables
8819 test -z "$CC" && CC=cc
8820 test -z "$LTCC" && LTCC=$CC
8821 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8822 test -z "$LD" && LD=ld
8823 test -z "$ac_objext" && ac_objext=o
8824
8825 for cc_temp in $compiler""; do
8826   case $cc_temp in
8827     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8828     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8829     \-*) ;;
8830     *) break;;
8831   esac
8832 done
8833 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8834
8835
8836 # Only perform the check for file, if the check method requires it
8837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8838 case $deplibs_check_method in
8839 file_magic*)
8840   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8842 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8843 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8844   $as_echo_n "(cached) " >&6
8845 else
8846   case $MAGIC_CMD in
8847 [\\/*] |  ?:[\\/]*)
8848   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8849   ;;
8850 *)
8851   lt_save_MAGIC_CMD="$MAGIC_CMD"
8852   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8853   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8854   for ac_dir in $ac_dummy; do
8855     IFS="$lt_save_ifs"
8856     test -z "$ac_dir" && ac_dir=.
8857     if test -f $ac_dir/${ac_tool_prefix}file; then
8858       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8859       if test -n "$file_magic_test_file"; then
8860         case $deplibs_check_method in
8861         "file_magic "*)
8862           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8863           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8864           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8865             $EGREP "$file_magic_regex" > /dev/null; then
8866             :
8867           else
8868             cat <<_LT_EOF 1>&2
8869
8870 *** Warning: the command libtool uses to detect shared libraries,
8871 *** $file_magic_cmd, produces output that libtool cannot recognize.
8872 *** The result is that libtool may fail to recognize shared libraries
8873 *** as such.  This will affect the creation of libtool libraries that
8874 *** depend on shared libraries, but programs linked with such libtool
8875 *** libraries will work regardless of this problem.  Nevertheless, you
8876 *** may want to report the problem to your system manager and/or to
8877 *** bug-libtool@gnu.org
8878
8879 _LT_EOF
8880           fi ;;
8881         esac
8882       fi
8883       break
8884     fi
8885   done
8886   IFS="$lt_save_ifs"
8887   MAGIC_CMD="$lt_save_MAGIC_CMD"
8888   ;;
8889 esac
8890 fi
8891
8892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8893 if test -n "$MAGIC_CMD"; then
8894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8895 $as_echo "$MAGIC_CMD" >&6; }
8896 else
8897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 $as_echo "no" >&6; }
8899 fi
8900
8901
8902
8903
8904
8905 if test -z "$lt_cv_path_MAGIC_CMD"; then
8906   if test -n "$ac_tool_prefix"; then
8907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8908 $as_echo_n "checking for file... " >&6; }
8909 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8910   $as_echo_n "(cached) " >&6
8911 else
8912   case $MAGIC_CMD in
8913 [\\/*] |  ?:[\\/]*)
8914   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8915   ;;
8916 *)
8917   lt_save_MAGIC_CMD="$MAGIC_CMD"
8918   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8919   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8920   for ac_dir in $ac_dummy; do
8921     IFS="$lt_save_ifs"
8922     test -z "$ac_dir" && ac_dir=.
8923     if test -f $ac_dir/file; then
8924       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8925       if test -n "$file_magic_test_file"; then
8926         case $deplibs_check_method in
8927         "file_magic "*)
8928           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8929           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8930           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8931             $EGREP "$file_magic_regex" > /dev/null; then
8932             :
8933           else
8934             cat <<_LT_EOF 1>&2
8935
8936 *** Warning: the command libtool uses to detect shared libraries,
8937 *** $file_magic_cmd, produces output that libtool cannot recognize.
8938 *** The result is that libtool may fail to recognize shared libraries
8939 *** as such.  This will affect the creation of libtool libraries that
8940 *** depend on shared libraries, but programs linked with such libtool
8941 *** libraries will work regardless of this problem.  Nevertheless, you
8942 *** may want to report the problem to your system manager and/or to
8943 *** bug-libtool@gnu.org
8944
8945 _LT_EOF
8946           fi ;;
8947         esac
8948       fi
8949       break
8950     fi
8951   done
8952   IFS="$lt_save_ifs"
8953   MAGIC_CMD="$lt_save_MAGIC_CMD"
8954   ;;
8955 esac
8956 fi
8957
8958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8959 if test -n "$MAGIC_CMD"; then
8960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8961 $as_echo "$MAGIC_CMD" >&6; }
8962 else
8963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8965 fi
8966
8967
8968   else
8969     MAGIC_CMD=:
8970   fi
8971 fi
8972
8973   fi
8974   ;;
8975 esac
8976
8977 # Use C for the default configuration in the libtool script
8978
8979 lt_save_CC="$CC"
8980 ac_ext=c
8981 ac_cpp='$CPP $CPPFLAGS'
8982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8985
8986
8987 # Source file extension for C test sources.
8988 ac_ext=c
8989
8990 # Object file extension for compiled C test sources.
8991 objext=o
8992 objext=$objext
8993
8994 # Code to be used in simple compile tests
8995 lt_simple_compile_test_code="int some_variable = 0;"
8996
8997 # Code to be used in simple link tests
8998 lt_simple_link_test_code='int main(){return(0);}'
8999
9000
9001
9002
9003
9004
9005
9006 # If no C compiler was specified, use CC.
9007 LTCC=${LTCC-"$CC"}
9008
9009 # If no C compiler flags were specified, use CFLAGS.
9010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9011
9012 # Allow CC to be a program name with arguments.
9013 compiler=$CC
9014
9015 # Save the default compiler, since it gets overwritten when the other
9016 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9017 compiler_DEFAULT=$CC
9018
9019 # save warnings/boilerplate of simple test code
9020 ac_outfile=conftest.$ac_objext
9021 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9022 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9023 _lt_compiler_boilerplate=`cat conftest.err`
9024 $RM conftest*
9025
9026 ac_outfile=conftest.$ac_objext
9027 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9028 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9029 _lt_linker_boilerplate=`cat conftest.err`
9030 $RM -r conftest*
9031
9032
9033 if test -n "$compiler"; then
9034
9035 lt_prog_compiler_no_builtin_flag=
9036
9037 if test "$GCC" = yes; then
9038   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9039
9040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9041 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9042 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045   lt_cv_prog_compiler_rtti_exceptions=no
9046    ac_outfile=conftest.$ac_objext
9047    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9048    lt_compiler_flag="-fno-rtti -fno-exceptions"
9049    # Insert the option either (1) after the last *FLAGS variable, or
9050    # (2) before a word containing "conftest.", or (3) at the end.
9051    # Note that $ac_compile itself does not contain backslashes and begins
9052    # with a dollar sign (not a hyphen), so the echo should work correctly.
9053    # The option is referenced via a variable to avoid confusing sed.
9054    lt_compile=`echo "$ac_compile" | $SED \
9055    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9056    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9057    -e 's:$: $lt_compiler_flag:'`
9058    (eval echo "\"\$as_me:9058: $lt_compile\"" >&5)
9059    (eval "$lt_compile" 2>conftest.err)
9060    ac_status=$?
9061    cat conftest.err >&5
9062    echo "$as_me:9062: \$? = $ac_status" >&5
9063    if (exit $ac_status) && test -s "$ac_outfile"; then
9064      # The compiler can only warn and ignore the option if not recognized
9065      # So say no if there are warnings other than the usual output.
9066      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9067      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9068      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9069        lt_cv_prog_compiler_rtti_exceptions=yes
9070      fi
9071    fi
9072    $RM conftest*
9073
9074 fi
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9076 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9077
9078 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9079     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9080 else
9081     :
9082 fi
9083
9084 fi
9085
9086
9087
9088
9089
9090
9091   lt_prog_compiler_wl=
9092 lt_prog_compiler_pic=
9093 lt_prog_compiler_static=
9094
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9096 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9097
9098   if test "$GCC" = yes; then
9099     lt_prog_compiler_wl='-Wl,'
9100     lt_prog_compiler_static='-static'
9101
9102     case $host_os in
9103       aix*)
9104       # All AIX code is PIC.
9105       if test "$host_cpu" = ia64; then
9106         # AIX 5 now supports IA64 processor
9107         lt_prog_compiler_static='-Bstatic'
9108       fi
9109       ;;
9110
9111     amigaos*)
9112       case $host_cpu in
9113       powerpc)
9114             # see comment about AmigaOS4 .so support
9115             lt_prog_compiler_pic='-fPIC'
9116         ;;
9117       m68k)
9118             # FIXME: we need at least 68020 code to build shared libraries, but
9119             # adding the `-m68020' flag to GCC prevents building anything better,
9120             # like `-m68040'.
9121             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9122         ;;
9123       esac
9124       ;;
9125
9126     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9127       # PIC is the default for these OSes.
9128       ;;
9129
9130     mingw* | cygwin* | pw32* | os2* | cegcc*)
9131       # This hack is so that the source file can tell whether it is being
9132       # built for inclusion in a dll (and should export symbols for example).
9133       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9134       # (--disable-auto-import) libraries
9135       lt_prog_compiler_pic='-DDLL_EXPORT'
9136       ;;
9137
9138     darwin* | rhapsody*)
9139       # PIC is the default on this platform
9140       # Common symbols not allowed in MH_DYLIB files
9141       lt_prog_compiler_pic='-fno-common'
9142       ;;
9143
9144     hpux*)
9145       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9146       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9147       # sets the default TLS model and affects inlining.
9148       case $host_cpu in
9149       hppa*64*)
9150         # +Z the default
9151         ;;
9152       *)
9153         lt_prog_compiler_pic='-fPIC'
9154         ;;
9155       esac
9156       ;;
9157
9158     interix[3-9]*)
9159       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9160       # Instead, we relocate shared libraries at runtime.
9161       ;;
9162
9163     msdosdjgpp*)
9164       # Just because we use GCC doesn't mean we suddenly get shared libraries
9165       # on systems that don't support them.
9166       lt_prog_compiler_can_build_shared=no
9167       enable_shared=no
9168       ;;
9169
9170     *nto* | *qnx*)
9171       # QNX uses GNU C++, but need to define -shared option too, otherwise
9172       # it will coredump.
9173       lt_prog_compiler_pic='-fPIC -shared'
9174       ;;
9175
9176     sysv4*MP*)
9177       if test -d /usr/nec; then
9178         lt_prog_compiler_pic=-Kconform_pic
9179       fi
9180       ;;
9181
9182     *)
9183       lt_prog_compiler_pic='-fPIC'
9184       ;;
9185     esac
9186   else
9187     # PORTME Check for flag to pass linker flags through the system compiler.
9188     case $host_os in
9189     aix*)
9190       lt_prog_compiler_wl='-Wl,'
9191       if test "$host_cpu" = ia64; then
9192         # AIX 5 now supports IA64 processor
9193         lt_prog_compiler_static='-Bstatic'
9194       else
9195         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9196       fi
9197       ;;
9198
9199     mingw* | cygwin* | pw32* | os2* | cegcc*)
9200       # This hack is so that the source file can tell whether it is being
9201       # built for inclusion in a dll (and should export symbols for example).
9202       lt_prog_compiler_pic='-DDLL_EXPORT'
9203       ;;
9204
9205     hpux9* | hpux10* | hpux11*)
9206       lt_prog_compiler_wl='-Wl,'
9207       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9208       # not for PA HP-UX.
9209       case $host_cpu in
9210       hppa*64*|ia64*)
9211         # +Z the default
9212         ;;
9213       *)
9214         lt_prog_compiler_pic='+Z'
9215         ;;
9216       esac
9217       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9218       lt_prog_compiler_static='${wl}-a ${wl}archive'
9219       ;;
9220
9221     irix5* | irix6* | nonstopux*)
9222       lt_prog_compiler_wl='-Wl,'
9223       # PIC (with -KPIC) is the default.
9224       lt_prog_compiler_static='-non_shared'
9225       ;;
9226
9227     linux* | k*bsd*-gnu)
9228       case $cc_basename in
9229       # old Intel for x86_64 which still supported -KPIC.
9230       ecc*)
9231         lt_prog_compiler_wl='-Wl,'
9232         lt_prog_compiler_pic='-KPIC'
9233         lt_prog_compiler_static='-static'
9234         ;;
9235       # icc used to be incompatible with GCC.
9236       # ICC 10 doesn't accept -KPIC any more.
9237       icc* | ifort*)
9238         lt_prog_compiler_wl='-Wl,'
9239         lt_prog_compiler_pic='-fPIC'
9240         lt_prog_compiler_static='-static'
9241         ;;
9242       # Lahey Fortran 8.1.
9243       lf95*)
9244         lt_prog_compiler_wl='-Wl,'
9245         lt_prog_compiler_pic='--shared'
9246         lt_prog_compiler_static='--static'
9247         ;;
9248       pgcc* | pgf77* | pgf90* | pgf95*)
9249         # Portland Group compilers (*not* the Pentium gcc compiler,
9250         # which looks to be a dead project)
9251         lt_prog_compiler_wl='-Wl,'
9252         lt_prog_compiler_pic='-fpic'
9253         lt_prog_compiler_static='-Bstatic'
9254         ;;
9255       ccc*)
9256         lt_prog_compiler_wl='-Wl,'
9257         # All Alpha code is PIC.
9258         lt_prog_compiler_static='-non_shared'
9259         ;;
9260       xl*)
9261         # IBM XL C 8.0/Fortran 10.1 on PPC
9262         lt_prog_compiler_wl='-Wl,'
9263         lt_prog_compiler_pic='-qpic'
9264         lt_prog_compiler_static='-qstaticlink'
9265         ;;
9266       *)
9267         case `$CC -V 2>&1 | sed 5q` in
9268         *Sun\ C*)
9269           # Sun C 5.9
9270           lt_prog_compiler_pic='-KPIC'
9271           lt_prog_compiler_static='-Bstatic'
9272           lt_prog_compiler_wl='-Wl,'
9273           ;;
9274         *Sun\ F*)
9275           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9276           lt_prog_compiler_pic='-KPIC'
9277           lt_prog_compiler_static='-Bstatic'
9278           lt_prog_compiler_wl=''
9279           ;;
9280         esac
9281         ;;
9282       esac
9283       ;;
9284
9285     newsos6)
9286       lt_prog_compiler_pic='-KPIC'
9287       lt_prog_compiler_static='-Bstatic'
9288       ;;
9289
9290     *nto* | *qnx*)
9291       # QNX uses GNU C++, but need to define -shared option too, otherwise
9292       # it will coredump.
9293       lt_prog_compiler_pic='-fPIC -shared'
9294       ;;
9295
9296     osf3* | osf4* | osf5*)
9297       lt_prog_compiler_wl='-Wl,'
9298       # All OSF/1 code is PIC.
9299       lt_prog_compiler_static='-non_shared'
9300       ;;
9301
9302     rdos*)
9303       lt_prog_compiler_static='-non_shared'
9304       ;;
9305
9306     solaris*)
9307       lt_prog_compiler_pic='-KPIC'
9308       lt_prog_compiler_static='-Bstatic'
9309       case $cc_basename in
9310       f77* | f90* | f95*)
9311         lt_prog_compiler_wl='-Qoption ld ';;
9312       *)
9313         lt_prog_compiler_wl='-Wl,';;
9314       esac
9315       ;;
9316
9317     sunos4*)
9318       lt_prog_compiler_wl='-Qoption ld '
9319       lt_prog_compiler_pic='-PIC'
9320       lt_prog_compiler_static='-Bstatic'
9321       ;;
9322
9323     sysv4 | sysv4.2uw2* | sysv4.3*)
9324       lt_prog_compiler_wl='-Wl,'
9325       lt_prog_compiler_pic='-KPIC'
9326       lt_prog_compiler_static='-Bstatic'
9327       ;;
9328
9329     sysv4*MP*)
9330       if test -d /usr/nec ;then
9331         lt_prog_compiler_pic='-Kconform_pic'
9332         lt_prog_compiler_static='-Bstatic'
9333       fi
9334       ;;
9335
9336     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9337       lt_prog_compiler_wl='-Wl,'
9338       lt_prog_compiler_pic='-KPIC'
9339       lt_prog_compiler_static='-Bstatic'
9340       ;;
9341
9342     unicos*)
9343       lt_prog_compiler_wl='-Wl,'
9344       lt_prog_compiler_can_build_shared=no
9345       ;;
9346
9347     uts4*)
9348       lt_prog_compiler_pic='-pic'
9349       lt_prog_compiler_static='-Bstatic'
9350       ;;
9351
9352     *)
9353       lt_prog_compiler_can_build_shared=no
9354       ;;
9355     esac
9356   fi
9357
9358 case $host_os in
9359   # For platforms which do not support PIC, -DPIC is meaningless:
9360   *djgpp*)
9361     lt_prog_compiler_pic=
9362     ;;
9363   *)
9364     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9365     ;;
9366 esac
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9368 $as_echo "$lt_prog_compiler_pic" >&6; }
9369
9370
9371
9372
9373
9374
9375 #
9376 # Check to make sure the PIC flag actually works.
9377 #
9378 if test -n "$lt_prog_compiler_pic"; then
9379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9380 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9381 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9382   $as_echo_n "(cached) " >&6
9383 else
9384   lt_cv_prog_compiler_pic_works=no
9385    ac_outfile=conftest.$ac_objext
9386    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9387    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9388    # Insert the option either (1) after the last *FLAGS variable, or
9389    # (2) before a word containing "conftest.", or (3) at the end.
9390    # Note that $ac_compile itself does not contain backslashes and begins
9391    # with a dollar sign (not a hyphen), so the echo should work correctly.
9392    # The option is referenced via a variable to avoid confusing sed.
9393    lt_compile=`echo "$ac_compile" | $SED \
9394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9396    -e 's:$: $lt_compiler_flag:'`
9397    (eval echo "\"\$as_me:9397: $lt_compile\"" >&5)
9398    (eval "$lt_compile" 2>conftest.err)
9399    ac_status=$?
9400    cat conftest.err >&5
9401    echo "$as_me:9401: \$? = $ac_status" >&5
9402    if (exit $ac_status) && test -s "$ac_outfile"; then
9403      # The compiler can only warn and ignore the option if not recognized
9404      # So say no if there are warnings other than the usual output.
9405      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9406      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9407      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9408        lt_cv_prog_compiler_pic_works=yes
9409      fi
9410    fi
9411    $RM conftest*
9412
9413 fi
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9415 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9416
9417 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9418     case $lt_prog_compiler_pic in
9419      "" | " "*) ;;
9420      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9421      esac
9422 else
9423     lt_prog_compiler_pic=
9424      lt_prog_compiler_can_build_shared=no
9425 fi
9426
9427 fi
9428
9429
9430
9431
9432
9433
9434 #
9435 # Check to make sure the static flag actually works.
9436 #
9437 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9439 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9440 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9441   $as_echo_n "(cached) " >&6
9442 else
9443   lt_cv_prog_compiler_static_works=no
9444    save_LDFLAGS="$LDFLAGS"
9445    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9446    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9447    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9448      # The linker can only warn and ignore the option if not recognized
9449      # So say no if there are warnings
9450      if test -s conftest.err; then
9451        # Append any errors to the config.log.
9452        cat conftest.err 1>&5
9453        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9454        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9455        if diff conftest.exp conftest.er2 >/dev/null; then
9456          lt_cv_prog_compiler_static_works=yes
9457        fi
9458      else
9459        lt_cv_prog_compiler_static_works=yes
9460      fi
9461    fi
9462    $RM -r conftest*
9463    LDFLAGS="$save_LDFLAGS"
9464
9465 fi
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9467 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9468
9469 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9470     :
9471 else
9472     lt_prog_compiler_static=
9473 fi
9474
9475
9476
9477
9478
9479
9480
9481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9482 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9483 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9484   $as_echo_n "(cached) " >&6
9485 else
9486   lt_cv_prog_compiler_c_o=no
9487    $RM -r conftest 2>/dev/null
9488    mkdir conftest
9489    cd conftest
9490    mkdir out
9491    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9492
9493    lt_compiler_flag="-o out/conftest2.$ac_objext"
9494    # Insert the option either (1) after the last *FLAGS variable, or
9495    # (2) before a word containing "conftest.", or (3) at the end.
9496    # Note that $ac_compile itself does not contain backslashes and begins
9497    # with a dollar sign (not a hyphen), so the echo should work correctly.
9498    lt_compile=`echo "$ac_compile" | $SED \
9499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9501    -e 's:$: $lt_compiler_flag:'`
9502    (eval echo "\"\$as_me:9502: $lt_compile\"" >&5)
9503    (eval "$lt_compile" 2>out/conftest.err)
9504    ac_status=$?
9505    cat out/conftest.err >&5
9506    echo "$as_me:9506: \$? = $ac_status" >&5
9507    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9508    then
9509      # The compiler can only warn and ignore the option if not recognized
9510      # So say no if there are warnings
9511      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9512      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9513      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9514        lt_cv_prog_compiler_c_o=yes
9515      fi
9516    fi
9517    chmod u+w . 2>&5
9518    $RM conftest*
9519    # SGI C++ compiler will create directory out/ii_files/ for
9520    # template instantiation
9521    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9522    $RM out/* && rmdir out
9523    cd ..
9524    $RM -r conftest
9525    $RM conftest*
9526
9527 fi
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9529 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9530
9531
9532
9533
9534
9535
9536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9537 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9538 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9539   $as_echo_n "(cached) " >&6
9540 else
9541   lt_cv_prog_compiler_c_o=no
9542    $RM -r conftest 2>/dev/null
9543    mkdir conftest
9544    cd conftest
9545    mkdir out
9546    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9547
9548    lt_compiler_flag="-o out/conftest2.$ac_objext"
9549    # Insert the option either (1) after the last *FLAGS variable, or
9550    # (2) before a word containing "conftest.", or (3) at the end.
9551    # Note that $ac_compile itself does not contain backslashes and begins
9552    # with a dollar sign (not a hyphen), so the echo should work correctly.
9553    lt_compile=`echo "$ac_compile" | $SED \
9554    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9555    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9556    -e 's:$: $lt_compiler_flag:'`
9557    (eval echo "\"\$as_me:9557: $lt_compile\"" >&5)
9558    (eval "$lt_compile" 2>out/conftest.err)
9559    ac_status=$?
9560    cat out/conftest.err >&5
9561    echo "$as_me:9561: \$? = $ac_status" >&5
9562    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9563    then
9564      # The compiler can only warn and ignore the option if not recognized
9565      # So say no if there are warnings
9566      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9567      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9568      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9569        lt_cv_prog_compiler_c_o=yes
9570      fi
9571    fi
9572    chmod u+w . 2>&5
9573    $RM conftest*
9574    # SGI C++ compiler will create directory out/ii_files/ for
9575    # template instantiation
9576    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9577    $RM out/* && rmdir out
9578    cd ..
9579    $RM -r conftest
9580    $RM conftest*
9581
9582 fi
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9584 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9585
9586
9587
9588
9589 hard_links="nottested"
9590 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9591   # do not overwrite the value of need_locks provided by the user
9592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9593 $as_echo_n "checking if we can lock with hard links... " >&6; }
9594   hard_links=yes
9595   $RM conftest*
9596   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9597   touch conftest.a
9598   ln conftest.a conftest.b 2>&5 || hard_links=no
9599   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9601 $as_echo "$hard_links" >&6; }
9602   if test "$hard_links" = no; then
9603     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9604 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9605     need_locks=warn
9606   fi
9607 else
9608   need_locks=no
9609 fi
9610
9611
9612
9613
9614
9615
9616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9617 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9618
9619   runpath_var=
9620   allow_undefined_flag=
9621   always_export_symbols=no
9622   archive_cmds=
9623   archive_expsym_cmds=
9624   compiler_needs_object=no
9625   enable_shared_with_static_runtimes=no
9626   export_dynamic_flag_spec=
9627   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9628   hardcode_automatic=no
9629   hardcode_direct=no
9630   hardcode_direct_absolute=no
9631   hardcode_libdir_flag_spec=
9632   hardcode_libdir_flag_spec_ld=
9633   hardcode_libdir_separator=
9634   hardcode_minus_L=no
9635   hardcode_shlibpath_var=unsupported
9636   inherit_rpath=no
9637   link_all_deplibs=unknown
9638   module_cmds=
9639   module_expsym_cmds=
9640   old_archive_from_new_cmds=
9641   old_archive_from_expsyms_cmds=
9642   thread_safe_flag_spec=
9643   whole_archive_flag_spec=
9644   # include_expsyms should be a list of space-separated symbols to be *always*
9645   # included in the symbol list
9646   include_expsyms=
9647   # exclude_expsyms can be an extended regexp of symbols to exclude
9648   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9649   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9650   # as well as any symbol that contains `d'.
9651   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9652   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9653   # platforms (ab)use it in PIC code, but their linkers get confused if
9654   # the symbol is explicitly referenced.  Since portable code cannot
9655   # rely on this symbol name, it's probably fine to never include it in
9656   # preloaded symbol tables.
9657   # Exclude shared library initialization/finalization symbols.
9658   extract_expsyms_cmds=
9659
9660   case $host_os in
9661   cygwin* | mingw* | pw32* | cegcc*)
9662     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9663     # When not using gcc, we currently assume that we are using
9664     # Microsoft Visual C++.
9665     if test "$GCC" != yes; then
9666       with_gnu_ld=no
9667     fi
9668     ;;
9669   interix*)
9670     # we just hope/assume this is gcc and not c89 (= MSVC++)
9671     with_gnu_ld=yes
9672     ;;
9673   openbsd*)
9674     with_gnu_ld=no
9675     ;;
9676   esac
9677
9678   ld_shlibs=yes
9679   if test "$with_gnu_ld" = yes; then
9680     # If archive_cmds runs LD, not CC, wlarc should be empty
9681     wlarc='${wl}'
9682
9683     # Set some defaults for GNU ld with shared library support. These
9684     # are reset later if shared libraries are not supported. Putting them
9685     # here allows them to be overridden if necessary.
9686     runpath_var=LD_RUN_PATH
9687     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9688     export_dynamic_flag_spec='${wl}--export-dynamic'
9689     # ancient GNU ld didn't support --whole-archive et. al.
9690     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9691       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9692     else
9693       whole_archive_flag_spec=
9694     fi
9695     supports_anon_versioning=no
9696     case `$LD -v 2>&1` in
9697       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9698       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9699       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9700       *\ 2.11.*) ;; # other 2.11 versions
9701       *) supports_anon_versioning=yes ;;
9702     esac
9703
9704     # See if GNU ld supports shared libraries.
9705     case $host_os in
9706     aix[3-9]*)
9707       # On AIX/PPC, the GNU linker is very broken
9708       if test "$host_cpu" != ia64; then
9709         ld_shlibs=no
9710         cat <<_LT_EOF 1>&2
9711
9712 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9713 *** to be unable to reliably create shared libraries on AIX.
9714 *** Therefore, libtool is disabling shared libraries support.  If you
9715 *** really care for shared libraries, you may want to modify your PATH
9716 *** so that a non-GNU linker is found, and then restart.
9717
9718 _LT_EOF
9719       fi
9720       ;;
9721
9722     amigaos*)
9723       case $host_cpu in
9724       powerpc)
9725             # see comment about AmigaOS4 .so support
9726             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727             archive_expsym_cmds=''
9728         ;;
9729       m68k)
9730             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)'
9731             hardcode_libdir_flag_spec='-L$libdir'
9732             hardcode_minus_L=yes
9733         ;;
9734       esac
9735       ;;
9736
9737     beos*)
9738       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9739         allow_undefined_flag=unsupported
9740         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9741         # support --undefined.  This deserves some investigation.  FIXME
9742         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743       else
9744         ld_shlibs=no
9745       fi
9746       ;;
9747
9748     cygwin* | mingw* | pw32* | cegcc*)
9749       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9750       # as there is no search path for DLLs.
9751       hardcode_libdir_flag_spec='-L$libdir'
9752       allow_undefined_flag=unsupported
9753       always_export_symbols=no
9754       enable_shared_with_static_runtimes=yes
9755       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9756
9757       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9759         # If the export-symbols file already is a .def file (1st line
9760         # is EXPORTS), use it as is; otherwise, prepend...
9761         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9762           cp $export_symbols $output_objdir/$soname.def;
9763         else
9764           echo EXPORTS > $output_objdir/$soname.def;
9765           cat $export_symbols >> $output_objdir/$soname.def;
9766         fi~
9767         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9768       else
9769         ld_shlibs=no
9770       fi
9771       ;;
9772
9773     interix[3-9]*)
9774       hardcode_direct=no
9775       hardcode_shlibpath_var=no
9776       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9777       export_dynamic_flag_spec='${wl}-E'
9778       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9779       # Instead, shared libraries are loaded at an image base (0x10000000 by
9780       # default) and relocated if they conflict, which is a slow very memory
9781       # consuming and fragmenting process.  To avoid this, we pick a random,
9782       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9783       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9784       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9785       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'
9786       ;;
9787
9788     gnu* | linux* | tpf* | k*bsd*-gnu)
9789       tmp_diet=no
9790       if test "$host_os" = linux-dietlibc; then
9791         case $cc_basename in
9792           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9793         esac
9794       fi
9795       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9796          && test "$tmp_diet" = no
9797       then
9798         tmp_addflag=
9799         tmp_sharedflag='-shared'
9800         case $cc_basename,$host_cpu in
9801         pgcc*)                          # Portland Group C compiler
9802           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'
9803           tmp_addflag=' $pic_flag'
9804           ;;
9805         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9806           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'
9807           tmp_addflag=' $pic_flag -Mnomain' ;;
9808         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9809           tmp_addflag=' -i_dynamic' ;;
9810         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9811           tmp_addflag=' -i_dynamic -nofor_main' ;;
9812         ifc* | ifort*)                  # Intel Fortran compiler
9813           tmp_addflag=' -nofor_main' ;;
9814         lf95*)                          # Lahey Fortran 8.1
9815           whole_archive_flag_spec=
9816           tmp_sharedflag='--shared' ;;
9817         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9818           tmp_sharedflag='-qmkshrobj'
9819           tmp_addflag= ;;
9820         esac
9821         case `$CC -V 2>&1 | sed 5q` in
9822         *Sun\ C*)                       # Sun C 5.9
9823           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'
9824           compiler_needs_object=yes
9825           tmp_sharedflag='-G' ;;
9826         *Sun\ F*)                       # Sun Fortran 8.3
9827           tmp_sharedflag='-G' ;;
9828         esac
9829         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9830
9831         if test "x$supports_anon_versioning" = xyes; then
9832           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9833             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9834             echo "local: *; };" >> $output_objdir/$libname.ver~
9835             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9836         fi
9837
9838         case $cc_basename in
9839         xlf*)
9840           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9841           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9842           hardcode_libdir_flag_spec=
9843           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9844           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9845           if test "x$supports_anon_versioning" = xyes; then
9846             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9847               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9848               echo "local: *; };" >> $output_objdir/$libname.ver~
9849               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9850           fi
9851           ;;
9852         esac
9853       else
9854         ld_shlibs=no
9855       fi
9856       ;;
9857
9858     netbsd*)
9859       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9860         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9861         wlarc=
9862       else
9863         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9864         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9865       fi
9866       ;;
9867
9868     solaris*)
9869       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9870         ld_shlibs=no
9871         cat <<_LT_EOF 1>&2
9872
9873 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9874 *** create shared libraries on Solaris systems.  Therefore, libtool
9875 *** is disabling shared libraries support.  We urge you to upgrade GNU
9876 *** binutils to release 2.9.1 or newer.  Another option is to modify
9877 *** your PATH or compiler configuration so that the native linker is
9878 *** used, and then restart.
9879
9880 _LT_EOF
9881       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9882         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9884       else
9885         ld_shlibs=no
9886       fi
9887       ;;
9888
9889     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9890       case `$LD -v 2>&1` in
9891         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9892         ld_shlibs=no
9893         cat <<_LT_EOF 1>&2
9894
9895 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9896 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9897 *** is disabling shared libraries support.  We urge you to upgrade GNU
9898 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9899 *** your PATH or compiler configuration so that the native linker is
9900 *** used, and then restart.
9901
9902 _LT_EOF
9903         ;;
9904         *)
9905           # For security reasons, it is highly recommended that you always
9906           # use absolute paths for naming shared libraries, and exclude the
9907           # DT_RUNPATH tag from executables and libraries.  But doing so
9908           # requires that you compile everything twice, which is a pain.
9909           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9910             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9911             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9912             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9913           else
9914             ld_shlibs=no
9915           fi
9916         ;;
9917       esac
9918       ;;
9919
9920     sunos4*)
9921       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9922       wlarc=
9923       hardcode_direct=yes
9924       hardcode_shlibpath_var=no
9925       ;;
9926
9927     *)
9928       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9929         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9930         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9931       else
9932         ld_shlibs=no
9933       fi
9934       ;;
9935     esac
9936
9937     if test "$ld_shlibs" = no; then
9938       runpath_var=
9939       hardcode_libdir_flag_spec=
9940       export_dynamic_flag_spec=
9941       whole_archive_flag_spec=
9942     fi
9943   else
9944     # PORTME fill in a description of your system's linker (not GNU ld)
9945     case $host_os in
9946     aix3*)
9947       allow_undefined_flag=unsupported
9948       always_export_symbols=yes
9949       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'
9950       # Note: this linker hardcodes the directories in LIBPATH if there
9951       # are no directories specified by -L.
9952       hardcode_minus_L=yes
9953       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9954         # Neither direct hardcoding nor static linking is supported with a
9955         # broken collect2.
9956         hardcode_direct=unsupported
9957       fi
9958       ;;
9959
9960     aix[4-9]*)
9961       if test "$host_cpu" = ia64; then
9962         # On IA64, the linker does run time linking by default, so we don't
9963         # have to do anything special.
9964         aix_use_runtimelinking=no
9965         exp_sym_flag='-Bexport'
9966         no_entry_flag=""
9967       else
9968         # If we're using GNU nm, then we don't want the "-C" option.
9969         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9970         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9971           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'
9972         else
9973           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'
9974         fi
9975         aix_use_runtimelinking=no
9976
9977         # Test if we are trying to use run time linking or normal
9978         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9979         # need to do runtime linking.
9980         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9981           for ld_flag in $LDFLAGS; do
9982           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9983             aix_use_runtimelinking=yes
9984             break
9985           fi
9986           done
9987           ;;
9988         esac
9989
9990         exp_sym_flag='-bexport'
9991         no_entry_flag='-bnoentry'
9992       fi
9993
9994       # When large executables or shared objects are built, AIX ld can
9995       # have problems creating the table of contents.  If linking a library
9996       # or program results in "error TOC overflow" add -mminimal-toc to
9997       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9998       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9999
10000       archive_cmds=''
10001       hardcode_direct=yes
10002       hardcode_direct_absolute=yes
10003       hardcode_libdir_separator=':'
10004       link_all_deplibs=yes
10005       file_list_spec='${wl}-f,'
10006
10007       if test "$GCC" = yes; then
10008         case $host_os in aix4.[012]|aix4.[012].*)
10009         # We only want to do this on AIX 4.2 and lower, the check
10010         # below for broken collect2 doesn't work under 4.3+
10011           collect2name=`${CC} -print-prog-name=collect2`
10012           if test -f "$collect2name" &&
10013            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10014           then
10015           # We have reworked collect2
10016           :
10017           else
10018           # We have old collect2
10019           hardcode_direct=unsupported
10020           # It fails to find uninstalled libraries when the uninstalled
10021           # path is not listed in the libpath.  Setting hardcode_minus_L
10022           # to unsupported forces relinking
10023           hardcode_minus_L=yes
10024           hardcode_libdir_flag_spec='-L$libdir'
10025           hardcode_libdir_separator=
10026           fi
10027           ;;
10028         esac
10029         shared_flag='-shared'
10030         if test "$aix_use_runtimelinking" = yes; then
10031           shared_flag="$shared_flag "'${wl}-G'
10032         fi
10033       else
10034         # not using gcc
10035         if test "$host_cpu" = ia64; then
10036         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10037         # chokes on -Wl,-G. The following line is correct:
10038           shared_flag='-G'
10039         else
10040           if test "$aix_use_runtimelinking" = yes; then
10041             shared_flag='${wl}-G'
10042           else
10043             shared_flag='${wl}-bM:SRE'
10044           fi
10045         fi
10046       fi
10047
10048       export_dynamic_flag_spec='${wl}-bexpall'
10049       # It seems that -bexpall does not export symbols beginning with
10050       # underscore (_), so it is better to generate a list of symbols to export.
10051       always_export_symbols=yes
10052       if test "$aix_use_runtimelinking" = yes; then
10053         # Warning - without using the other runtime loading flags (-brtl),
10054         # -berok will link without error, but may produce a broken library.
10055         allow_undefined_flag='-berok'
10056         # Determine the default libpath from the value encoded in an
10057         # empty executable.
10058         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h.  */
10060
10061 int
10062 main ()
10063 {
10064
10065   ;
10066   return 0;
10067 }
10068 _ACEOF
10069 if ac_fn_c_try_link "$LINENO"; then :
10070
10071 lt_aix_libpath_sed='
10072     /Import File Strings/,/^$/ {
10073         /^0/ {
10074             s/^0  *\(.*\)$/\1/
10075             p
10076         }
10077     }'
10078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10079 # Check for a 64-bit object if we didn't find anything.
10080 if test -z "$aix_libpath"; then
10081   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10082 fi
10083 fi
10084 rm -f core conftest.err conftest.$ac_objext \
10085     conftest$ac_exeext conftest.$ac_ext
10086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10087
10088         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10089         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"
10090       else
10091         if test "$host_cpu" = ia64; then
10092           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10093           allow_undefined_flag="-z nodefs"
10094           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"
10095         else
10096          # Determine the default libpath from the value encoded in an
10097          # empty executable.
10098          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h.  */
10100
10101 int
10102 main ()
10103 {
10104
10105   ;
10106   return 0;
10107 }
10108 _ACEOF
10109 if ac_fn_c_try_link "$LINENO"; then :
10110
10111 lt_aix_libpath_sed='
10112     /Import File Strings/,/^$/ {
10113         /^0/ {
10114             s/^0  *\(.*\)$/\1/
10115             p
10116         }
10117     }'
10118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10119 # Check for a 64-bit object if we didn't find anything.
10120 if test -z "$aix_libpath"; then
10121   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10122 fi
10123 fi
10124 rm -f core conftest.err conftest.$ac_objext \
10125     conftest$ac_exeext conftest.$ac_ext
10126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10127
10128          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10129           # Warning - without using the other run time loading flags,
10130           # -berok will link without error, but may produce a broken library.
10131           no_undefined_flag=' ${wl}-bernotok'
10132           allow_undefined_flag=' ${wl}-berok'
10133           # Exported symbols can be pulled into shared objects from archives
10134           whole_archive_flag_spec='$convenience'
10135           archive_cmds_need_lc=yes
10136           # This is similar to how AIX traditionally builds its shared libraries.
10137           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'
10138         fi
10139       fi
10140       ;;
10141
10142     amigaos*)
10143       case $host_cpu in
10144       powerpc)
10145             # see comment about AmigaOS4 .so support
10146             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10147             archive_expsym_cmds=''
10148         ;;
10149       m68k)
10150             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)'
10151             hardcode_libdir_flag_spec='-L$libdir'
10152             hardcode_minus_L=yes
10153         ;;
10154       esac
10155       ;;
10156
10157     bsdi[45]*)
10158       export_dynamic_flag_spec=-rdynamic
10159       ;;
10160
10161     cygwin* | mingw* | pw32* | cegcc*)
10162       # When not using gcc, we currently assume that we are using
10163       # Microsoft Visual C++.
10164       # hardcode_libdir_flag_spec is actually meaningless, as there is
10165       # no search path for DLLs.
10166       hardcode_libdir_flag_spec=' '
10167       allow_undefined_flag=unsupported
10168       # Tell ltmain to make .lib files, not .a files.
10169       libext=lib
10170       # Tell ltmain to make .dll files, not .so files.
10171       shrext_cmds=".dll"
10172       # FIXME: Setting linknames here is a bad hack.
10173       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10174       # The linker will automatically build a .lib file if we build a DLL.
10175       old_archive_from_new_cmds='true'
10176       # FIXME: Should let the user specify the lib program.
10177       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10178       fix_srcfile_path='`cygpath -w "$srcfile"`'
10179       enable_shared_with_static_runtimes=yes
10180       ;;
10181
10182     darwin* | rhapsody*)
10183
10184
10185   archive_cmds_need_lc=no
10186   hardcode_direct=no
10187   hardcode_automatic=yes
10188   hardcode_shlibpath_var=unsupported
10189   whole_archive_flag_spec=''
10190   link_all_deplibs=yes
10191   allow_undefined_flag="$_lt_dar_allow_undefined"
10192   case $cc_basename in
10193      ifort*) _lt_dar_can_shared=yes ;;
10194      *) _lt_dar_can_shared=$GCC ;;
10195   esac
10196   if test "$_lt_dar_can_shared" = "yes"; then
10197     output_verbose_link_cmd=echo
10198     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10199     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10200     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}"
10201     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}"
10202
10203   else
10204   ld_shlibs=no
10205   fi
10206
10207       ;;
10208
10209     dgux*)
10210       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211       hardcode_libdir_flag_spec='-L$libdir'
10212       hardcode_shlibpath_var=no
10213       ;;
10214
10215     freebsd1*)
10216       ld_shlibs=no
10217       ;;
10218
10219     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10220     # support.  Future versions do this automatically, but an explicit c++rt0.o
10221     # does not break anything, and helps significantly (at the cost of a little
10222     # extra space).
10223     freebsd2.2*)
10224       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10225       hardcode_libdir_flag_spec='-R$libdir'
10226       hardcode_direct=yes
10227       hardcode_shlibpath_var=no
10228       ;;
10229
10230     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10231     freebsd2*)
10232       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10233       hardcode_direct=yes
10234       hardcode_minus_L=yes
10235       hardcode_shlibpath_var=no
10236       ;;
10237
10238     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10239     freebsd* | dragonfly*)
10240       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10241       hardcode_libdir_flag_spec='-R$libdir'
10242       hardcode_direct=yes
10243       hardcode_shlibpath_var=no
10244       ;;
10245
10246     hpux9*)
10247       if test "$GCC" = yes; then
10248         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'
10249       else
10250         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'
10251       fi
10252       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10253       hardcode_libdir_separator=:
10254       hardcode_direct=yes
10255
10256       # hardcode_minus_L: Not really in the search PATH,
10257       # but as the default location of the library.
10258       hardcode_minus_L=yes
10259       export_dynamic_flag_spec='${wl}-E'
10260       ;;
10261
10262     hpux10*)
10263       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10264         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10265       else
10266         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10267       fi
10268       if test "$with_gnu_ld" = no; then
10269         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10270         hardcode_libdir_flag_spec_ld='+b $libdir'
10271         hardcode_libdir_separator=:
10272         hardcode_direct=yes
10273         hardcode_direct_absolute=yes
10274         export_dynamic_flag_spec='${wl}-E'
10275         # hardcode_minus_L: Not really in the search PATH,
10276         # but as the default location of the library.
10277         hardcode_minus_L=yes
10278       fi
10279       ;;
10280
10281     hpux11*)
10282       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10283         case $host_cpu in
10284         hppa*64*)
10285           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10286           ;;
10287         ia64*)
10288           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10289           ;;
10290         *)
10291           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10292           ;;
10293         esac
10294       else
10295         case $host_cpu in
10296         hppa*64*)
10297           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10298           ;;
10299         ia64*)
10300           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10301           ;;
10302         *)
10303           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10304           ;;
10305         esac
10306       fi
10307       if test "$with_gnu_ld" = no; then
10308         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10309         hardcode_libdir_separator=:
10310
10311         case $host_cpu in
10312         hppa*64*|ia64*)
10313           hardcode_direct=no
10314           hardcode_shlibpath_var=no
10315           ;;
10316         *)
10317           hardcode_direct=yes
10318           hardcode_direct_absolute=yes
10319           export_dynamic_flag_spec='${wl}-E'
10320
10321           # hardcode_minus_L: Not really in the search PATH,
10322           # but as the default location of the library.
10323           hardcode_minus_L=yes
10324           ;;
10325         esac
10326       fi
10327       ;;
10328
10329     irix5* | irix6* | nonstopux*)
10330       if test "$GCC" = yes; then
10331         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'
10332         # Try to use the -exported_symbol ld option, if it does not
10333         # work, assume that -exports_file does not work either and
10334         # implicitly export all symbols.
10335         save_LDFLAGS="$LDFLAGS"
10336         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10337         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h.  */
10339 int foo(void) {}
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"; then :
10342   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'
10343
10344 fi
10345 rm -f core conftest.err conftest.$ac_objext \
10346     conftest$ac_exeext conftest.$ac_ext
10347         LDFLAGS="$save_LDFLAGS"
10348       else
10349         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'
10350         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'
10351       fi
10352       archive_cmds_need_lc='no'
10353       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10354       hardcode_libdir_separator=:
10355       inherit_rpath=yes
10356       link_all_deplibs=yes
10357       ;;
10358
10359     netbsd*)
10360       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10361         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10362       else
10363         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10364       fi
10365       hardcode_libdir_flag_spec='-R$libdir'
10366       hardcode_direct=yes
10367       hardcode_shlibpath_var=no
10368       ;;
10369
10370     newsos6)
10371       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372       hardcode_direct=yes
10373       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10374       hardcode_libdir_separator=:
10375       hardcode_shlibpath_var=no
10376       ;;
10377
10378     *nto* | *qnx*)
10379       ;;
10380
10381     openbsd*)
10382       if test -f /usr/libexec/ld.so; then
10383         hardcode_direct=yes
10384         hardcode_shlibpath_var=no
10385         hardcode_direct_absolute=yes
10386         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10387           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10388           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10389           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10390           export_dynamic_flag_spec='${wl}-E'
10391         else
10392           case $host_os in
10393            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10394              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10395              hardcode_libdir_flag_spec='-R$libdir'
10396              ;;
10397            *)
10398              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10399              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10400              ;;
10401           esac
10402         fi
10403       else
10404         ld_shlibs=no
10405       fi
10406       ;;
10407
10408     os2*)
10409       hardcode_libdir_flag_spec='-L$libdir'
10410       hardcode_minus_L=yes
10411       allow_undefined_flag=unsupported
10412       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'
10413       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10414       ;;
10415
10416     osf3*)
10417       if test "$GCC" = yes; then
10418         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10419         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'
10420       else
10421         allow_undefined_flag=' -expect_unresolved \*'
10422         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'
10423       fi
10424       archive_cmds_need_lc='no'
10425       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10426       hardcode_libdir_separator=:
10427       ;;
10428
10429     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10430       if test "$GCC" = yes; then
10431         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10432         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'
10433         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10434       else
10435         allow_undefined_flag=' -expect_unresolved \*'
10436         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'
10437         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~
10438         $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'
10439
10440         # Both c and cxx compiler support -rpath directly
10441         hardcode_libdir_flag_spec='-rpath $libdir'
10442       fi
10443       archive_cmds_need_lc='no'
10444       hardcode_libdir_separator=:
10445       ;;
10446
10447     solaris*)
10448       no_undefined_flag=' -z defs'
10449       if test "$GCC" = yes; then
10450         wlarc='${wl}'
10451         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10452         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10453           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10454       else
10455         case `$CC -V 2>&1` in
10456         *"Compilers 5.0"*)
10457           wlarc=''
10458           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10460           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10461           ;;
10462         *)
10463           wlarc='${wl}'
10464           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10465           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10466           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10467           ;;
10468         esac
10469       fi
10470       hardcode_libdir_flag_spec='-R$libdir'
10471       hardcode_shlibpath_var=no
10472       case $host_os in
10473       solaris2.[0-5] | solaris2.[0-5].*) ;;
10474       *)
10475         # The compiler driver will combine and reorder linker options,
10476         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10477         # but is careful enough not to reorder.
10478         # Supported since Solaris 2.6 (maybe 2.5.1?)
10479         if test "$GCC" = yes; then
10480           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10481         else
10482           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10483         fi
10484         ;;
10485       esac
10486       link_all_deplibs=yes
10487       ;;
10488
10489     sunos4*)
10490       if test "x$host_vendor" = xsequent; then
10491         # Use $CC to link under sequent, because it throws in some extra .o
10492         # files that make .init and .fini sections work.
10493         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10494       else
10495         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10496       fi
10497       hardcode_libdir_flag_spec='-L$libdir'
10498       hardcode_direct=yes
10499       hardcode_minus_L=yes
10500       hardcode_shlibpath_var=no
10501       ;;
10502
10503     sysv4)
10504       case $host_vendor in
10505         sni)
10506           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507           hardcode_direct=yes # is this really true???
10508         ;;
10509         siemens)
10510           ## LD is ld it makes a PLAMLIB
10511           ## CC just makes a GrossModule.
10512           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10513           reload_cmds='$CC -r -o $output$reload_objs'
10514           hardcode_direct=no
10515         ;;
10516         motorola)
10517           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10519         ;;
10520       esac
10521       runpath_var='LD_RUN_PATH'
10522       hardcode_shlibpath_var=no
10523       ;;
10524
10525     sysv4.3*)
10526       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10527       hardcode_shlibpath_var=no
10528       export_dynamic_flag_spec='-Bexport'
10529       ;;
10530
10531     sysv4*MP*)
10532       if test -d /usr/nec; then
10533         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534         hardcode_shlibpath_var=no
10535         runpath_var=LD_RUN_PATH
10536         hardcode_runpath_var=yes
10537         ld_shlibs=yes
10538       fi
10539       ;;
10540
10541     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10542       no_undefined_flag='${wl}-z,text'
10543       archive_cmds_need_lc=no
10544       hardcode_shlibpath_var=no
10545       runpath_var='LD_RUN_PATH'
10546
10547       if test "$GCC" = yes; then
10548         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10549         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10550       else
10551         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10552         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10553       fi
10554       ;;
10555
10556     sysv5* | sco3.2v5* | sco5v6*)
10557       # Note: We can NOT use -z defs as we might desire, because we do not
10558       # link with -lc, and that would cause any symbols used from libc to
10559       # always be unresolved, which means just about no library would
10560       # ever link correctly.  If we're not using GNU ld we use -z text
10561       # though, which does catch some bad symbols but isn't as heavy-handed
10562       # as -z defs.
10563       no_undefined_flag='${wl}-z,text'
10564       allow_undefined_flag='${wl}-z,nodefs'
10565       archive_cmds_need_lc=no
10566       hardcode_shlibpath_var=no
10567       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10568       hardcode_libdir_separator=':'
10569       link_all_deplibs=yes
10570       export_dynamic_flag_spec='${wl}-Bexport'
10571       runpath_var='LD_RUN_PATH'
10572
10573       if test "$GCC" = yes; then
10574         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10575         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10576       else
10577         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10578         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10579       fi
10580       ;;
10581
10582     uts4*)
10583       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10584       hardcode_libdir_flag_spec='-L$libdir'
10585       hardcode_shlibpath_var=no
10586       ;;
10587
10588     *)
10589       ld_shlibs=no
10590       ;;
10591     esac
10592
10593     if test x$host_vendor = xsni; then
10594       case $host in
10595       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10596         export_dynamic_flag_spec='${wl}-Blargedynsym'
10597         ;;
10598       esac
10599     fi
10600   fi
10601
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10603 $as_echo "$ld_shlibs" >&6; }
10604 test "$ld_shlibs" = no && can_build_shared=no
10605
10606 with_gnu_ld=$with_gnu_ld
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622 #
10623 # Do we need to explicitly link libc?
10624 #
10625 case "x$archive_cmds_need_lc" in
10626 x|xyes)
10627   # Assume -lc should be added
10628   archive_cmds_need_lc=yes
10629
10630   if test "$enable_shared" = yes && test "$GCC" = yes; then
10631     case $archive_cmds in
10632     *'~'*)
10633       # FIXME: we may have to deal with multi-command sequences.
10634       ;;
10635     '$CC '*)
10636       # Test whether the compiler implicitly links with -lc since on some
10637       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10638       # to ld, don't add -lc before -lgcc.
10639       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10640 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10641       $RM conftest*
10642       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10643
10644       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10645   (eval $ac_compile) 2>&5
10646   ac_status=$?
10647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648   test $ac_status = 0; } 2>conftest.err; then
10649         soname=conftest
10650         lib=conftest
10651         libobjs=conftest.$ac_objext
10652         deplibs=
10653         wl=$lt_prog_compiler_wl
10654         pic_flag=$lt_prog_compiler_pic
10655         compiler_flags=-v
10656         linker_flags=-v
10657         verstring=
10658         output_objdir=.
10659         libname=conftest
10660         lt_save_allow_undefined_flag=$allow_undefined_flag
10661         allow_undefined_flag=
10662         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10663   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10664   ac_status=$?
10665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10666   test $ac_status = 0; }
10667         then
10668           archive_cmds_need_lc=no
10669         else
10670           archive_cmds_need_lc=yes
10671         fi
10672         allow_undefined_flag=$lt_save_allow_undefined_flag
10673       else
10674         cat conftest.err 1>&5
10675       fi
10676       $RM conftest*
10677       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10678 $as_echo "$archive_cmds_need_lc" >&6; }
10679       ;;
10680     esac
10681   fi
10682   ;;
10683 esac
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10842 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10843
10844 if test "$GCC" = yes; then
10845   case $host_os in
10846     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10847     *) lt_awk_arg="/^libraries:/" ;;
10848   esac
10849   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10850   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10851     # if the path contains ";" then we assume it to be the separator
10852     # otherwise default to the standard path separator (i.e. ":") - it is
10853     # assumed that no part of a normal pathname contains ";" but that should
10854     # okay in the real world where ";" in dirpaths is itself problematic.
10855     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10856   else
10857     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10858   fi
10859   # Ok, now we have the path, separated by spaces, we can step through it
10860   # and add multilib dir if necessary.
10861   lt_tmp_lt_search_path_spec=
10862   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10863   for lt_sys_path in $lt_search_path_spec; do
10864     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10865       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10866     else
10867       test -d "$lt_sys_path" && \
10868         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10869     fi
10870   done
10871   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10872 BEGIN {RS=" "; FS="/|\n";} {
10873   lt_foo="";
10874   lt_count=0;
10875   for (lt_i = NF; lt_i > 0; lt_i--) {
10876     if ($lt_i != "" && $lt_i != ".") {
10877       if ($lt_i == "..") {
10878         lt_count++;
10879       } else {
10880         if (lt_count == 0) {
10881           lt_foo="/" $lt_i lt_foo;
10882         } else {
10883           lt_count--;
10884         }
10885       }
10886     }
10887   }
10888   if (lt_foo != "") { lt_freq[lt_foo]++; }
10889   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10890 }'`
10891   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10892 else
10893   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10894 fi
10895 library_names_spec=
10896 libname_spec='lib$name'
10897 soname_spec=
10898 shrext_cmds=".so"
10899 postinstall_cmds=
10900 postuninstall_cmds=
10901 finish_cmds=
10902 finish_eval=
10903 shlibpath_var=
10904 shlibpath_overrides_runpath=unknown
10905 version_type=none
10906 dynamic_linker="$host_os ld.so"
10907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10908 need_lib_prefix=unknown
10909 hardcode_into_libs=no
10910
10911 # when you set need_version to no, make sure it does not cause -set_version
10912 # flags to be left without arguments
10913 need_version=unknown
10914
10915 case $host_os in
10916 aix3*)
10917   version_type=linux
10918   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10919   shlibpath_var=LIBPATH
10920
10921   # AIX 3 has no versioning support, so we append a major version to the name.
10922   soname_spec='${libname}${release}${shared_ext}$major'
10923   ;;
10924
10925 aix[4-9]*)
10926   version_type=linux
10927   need_lib_prefix=no
10928   need_version=no
10929   hardcode_into_libs=yes
10930   if test "$host_cpu" = ia64; then
10931     # AIX 5 supports IA64
10932     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10933     shlibpath_var=LD_LIBRARY_PATH
10934   else
10935     # With GCC up to 2.95.x, collect2 would create an import file
10936     # for dependence libraries.  The import file would start with
10937     # the line `#! .'.  This would cause the generated library to
10938     # depend on `.', always an invalid library.  This was fixed in
10939     # development snapshots of GCC prior to 3.0.
10940     case $host_os in
10941       aix4 | aix4.[01] | aix4.[01].*)
10942       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10943            echo ' yes '
10944            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10945         :
10946       else
10947         can_build_shared=no
10948       fi
10949       ;;
10950     esac
10951     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10952     # soname into executable. Probably we can add versioning support to
10953     # collect2, so additional links can be useful in future.
10954     if test "$aix_use_runtimelinking" = yes; then
10955       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10956       # instead of lib<name>.a to let people know that these are not
10957       # typical AIX shared libraries.
10958       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959     else
10960       # We preserve .a as extension for shared libraries through AIX4.2
10961       # and later when we are not doing run time linking.
10962       library_names_spec='${libname}${release}.a $libname.a'
10963       soname_spec='${libname}${release}${shared_ext}$major'
10964     fi
10965     shlibpath_var=LIBPATH
10966   fi
10967   ;;
10968
10969 amigaos*)
10970   case $host_cpu in
10971   powerpc)
10972     # Since July 2007 AmigaOS4 officially supports .so libraries.
10973     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975     ;;
10976   m68k)
10977     library_names_spec='$libname.ixlibrary $libname.a'
10978     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10979     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'
10980     ;;
10981   esac
10982   ;;
10983
10984 beos*)
10985   library_names_spec='${libname}${shared_ext}'
10986   dynamic_linker="$host_os ld.so"
10987   shlibpath_var=LIBRARY_PATH
10988   ;;
10989
10990 bsdi[45]*)
10991   version_type=linux
10992   need_version=no
10993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994   soname_spec='${libname}${release}${shared_ext}$major'
10995   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10996   shlibpath_var=LD_LIBRARY_PATH
10997   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10998   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10999   # the default ld.so.conf also contains /usr/contrib/lib and
11000   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11001   # libtool to hard-code these into programs
11002   ;;
11003
11004 cygwin* | mingw* | pw32* | cegcc*)
11005   version_type=windows
11006   shrext_cmds=".dll"
11007   need_version=no
11008   need_lib_prefix=no
11009
11010   case $GCC,$host_os in
11011   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11012     library_names_spec='$libname.dll.a'
11013     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11014     postinstall_cmds='base_file=`basename \${file}`~
11015       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11016       dldir=$destdir/`dirname \$dlpath`~
11017       test -d \$dldir || mkdir -p \$dldir~
11018       $install_prog $dir/$dlname \$dldir/$dlname~
11019       chmod a+x \$dldir/$dlname~
11020       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11021         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11022       fi'
11023     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11024       dlpath=$dir/\$dldll~
11025        $RM \$dlpath'
11026     shlibpath_overrides_runpath=yes
11027
11028     case $host_os in
11029     cygwin*)
11030       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11031       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11032       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11033       ;;
11034     mingw* | cegcc*)
11035       # MinGW DLLs use traditional 'lib' prefix
11036       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11037       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11038       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11039         # It is most probably a Windows format PATH printed by
11040         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11041         # path with ; separators, and with drive letters. We can handle the
11042         # drive letters (cygwin fileutils understands them), so leave them,
11043         # especially as we might pass files found there to a mingw objdump,
11044         # which wouldn't understand a cygwinified path. Ahh.
11045         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11046       else
11047         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11048       fi
11049       ;;
11050     pw32*)
11051       # pw32 DLLs use 'pw' prefix rather than 'lib'
11052       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11053       ;;
11054     esac
11055     ;;
11056
11057   *)
11058     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11059     ;;
11060   esac
11061   dynamic_linker='Win32 ld.exe'
11062   # FIXME: first we should search . and the directory the executable is in
11063   shlibpath_var=PATH
11064   ;;
11065
11066 darwin* | rhapsody*)
11067   dynamic_linker="$host_os dyld"
11068   version_type=darwin
11069   need_lib_prefix=no
11070   need_version=no
11071   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11072   soname_spec='${libname}${release}${major}$shared_ext'
11073   shlibpath_overrides_runpath=yes
11074   shlibpath_var=DYLD_LIBRARY_PATH
11075   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11076
11077   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11078   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11079   ;;
11080
11081 dgux*)
11082   version_type=linux
11083   need_lib_prefix=no
11084   need_version=no
11085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11086   soname_spec='${libname}${release}${shared_ext}$major'
11087   shlibpath_var=LD_LIBRARY_PATH
11088   ;;
11089
11090 freebsd1*)
11091   dynamic_linker=no
11092   ;;
11093
11094 freebsd* | dragonfly*)
11095   # DragonFly does not have aout.  When/if they implement a new
11096   # versioning mechanism, adjust this.
11097   if test -x /usr/bin/objformat; then
11098     objformat=`/usr/bin/objformat`
11099   else
11100     case $host_os in
11101     freebsd[123]*) objformat=aout ;;
11102     *) objformat=elf ;;
11103     esac
11104   fi
11105   version_type=freebsd-$objformat
11106   case $version_type in
11107     freebsd-elf*)
11108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11109       need_version=no
11110       need_lib_prefix=no
11111       ;;
11112     freebsd-*)
11113       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11114       need_version=yes
11115       ;;
11116   esac
11117   shlibpath_var=LD_LIBRARY_PATH
11118   case $host_os in
11119   freebsd2*)
11120     shlibpath_overrides_runpath=yes
11121     ;;
11122   freebsd3.[01]* | freebsdelf3.[01]*)
11123     shlibpath_overrides_runpath=yes
11124     hardcode_into_libs=yes
11125     ;;
11126   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11127   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11128     shlibpath_overrides_runpath=no
11129     hardcode_into_libs=yes
11130     ;;
11131   *) # from 4.6 on, and DragonFly
11132     shlibpath_overrides_runpath=yes
11133     hardcode_into_libs=yes
11134     ;;
11135   esac
11136   ;;
11137
11138 gnu*)
11139   version_type=linux
11140   need_lib_prefix=no
11141   need_version=no
11142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11143   soname_spec='${libname}${release}${shared_ext}$major'
11144   shlibpath_var=LD_LIBRARY_PATH
11145   hardcode_into_libs=yes
11146   ;;
11147
11148 hpux9* | hpux10* | hpux11*)
11149   # Give a soname corresponding to the major version so that dld.sl refuses to
11150   # link against other versions.
11151   version_type=sunos
11152   need_lib_prefix=no
11153   need_version=no
11154   case $host_cpu in
11155   ia64*)
11156     shrext_cmds='.so'
11157     hardcode_into_libs=yes
11158     dynamic_linker="$host_os dld.so"
11159     shlibpath_var=LD_LIBRARY_PATH
11160     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11161     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162     soname_spec='${libname}${release}${shared_ext}$major'
11163     if test "X$HPUX_IA64_MODE" = X32; then
11164       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11165     else
11166       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11167     fi
11168     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11169     ;;
11170   hppa*64*)
11171     shrext_cmds='.sl'
11172     hardcode_into_libs=yes
11173     dynamic_linker="$host_os dld.sl"
11174     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11175     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11176     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177     soname_spec='${libname}${release}${shared_ext}$major'
11178     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11179     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11180     ;;
11181   *)
11182     shrext_cmds='.sl'
11183     dynamic_linker="$host_os dld.sl"
11184     shlibpath_var=SHLIB_PATH
11185     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187     soname_spec='${libname}${release}${shared_ext}$major'
11188     ;;
11189   esac
11190   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11191   postinstall_cmds='chmod 555 $lib'
11192   ;;
11193
11194 interix[3-9]*)
11195   version_type=linux
11196   need_lib_prefix=no
11197   need_version=no
11198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11199   soname_spec='${libname}${release}${shared_ext}$major'
11200   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11201   shlibpath_var=LD_LIBRARY_PATH
11202   shlibpath_overrides_runpath=no
11203   hardcode_into_libs=yes
11204   ;;
11205
11206 irix5* | irix6* | nonstopux*)
11207   case $host_os in
11208     nonstopux*) version_type=nonstopux ;;
11209     *)
11210         if test "$lt_cv_prog_gnu_ld" = yes; then
11211                 version_type=linux
11212         else
11213                 version_type=irix
11214         fi ;;
11215   esac
11216   need_lib_prefix=no
11217   need_version=no
11218   soname_spec='${libname}${release}${shared_ext}$major'
11219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11220   case $host_os in
11221   irix5* | nonstopux*)
11222     libsuff= shlibsuff=
11223     ;;
11224   *)
11225     case $LD in # libtool.m4 will add one of these switches to LD
11226     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11227       libsuff= shlibsuff= libmagic=32-bit;;
11228     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11229       libsuff=32 shlibsuff=N32 libmagic=N32;;
11230     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11231       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11232     *) libsuff= shlibsuff= libmagic=never-match;;
11233     esac
11234     ;;
11235   esac
11236   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11237   shlibpath_overrides_runpath=no
11238   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11239   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11240   hardcode_into_libs=yes
11241   ;;
11242
11243 # No shared lib support for Linux oldld, aout, or coff.
11244 linux*oldld* | linux*aout* | linux*coff*)
11245   dynamic_linker=no
11246   ;;
11247
11248 # This must be Linux ELF.
11249 linux* | k*bsd*-gnu)
11250   version_type=linux
11251   need_lib_prefix=no
11252   need_version=no
11253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254   soname_spec='${libname}${release}${shared_ext}$major'
11255   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11256   shlibpath_var=LD_LIBRARY_PATH
11257   shlibpath_overrides_runpath=no
11258   # Some binutils ld are patched to set DT_RUNPATH
11259   save_LDFLAGS=$LDFLAGS
11260   save_libdir=$libdir
11261   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11262        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h.  */
11265
11266 int
11267 main ()
11268 {
11269
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"; then :
11275   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11276   shlibpath_overrides_runpath=yes
11277 fi
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext \
11280     conftest$ac_exeext conftest.$ac_ext
11281   LDFLAGS=$save_LDFLAGS
11282   libdir=$save_libdir
11283
11284   # This implies no fast_install, which is unacceptable.
11285   # Some rework will be needed to allow for fast_install
11286   # before this can be enabled.
11287   hardcode_into_libs=yes
11288
11289   # Append ld.so.conf contents to the search path
11290   if test -f /etc/ld.so.conf; then
11291     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' ' '`
11292     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11293   fi
11294
11295   # We used to test for /lib/ld.so.1 and disable shared libraries on
11296   # powerpc, because MkLinux only supported shared libraries with the
11297   # GNU dynamic linker.  Since this was broken with cross compilers,
11298   # most powerpc-linux boxes support dynamic linking these days and
11299   # people can always --disable-shared, the test was removed, and we
11300   # assume the GNU/Linux dynamic linker is in use.
11301   dynamic_linker='GNU/Linux ld.so'
11302   ;;
11303
11304 netbsd*)
11305   version_type=sunos
11306   need_lib_prefix=no
11307   need_version=no
11308   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11310     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11311     dynamic_linker='NetBSD (a.out) ld.so'
11312   else
11313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11314     soname_spec='${libname}${release}${shared_ext}$major'
11315     dynamic_linker='NetBSD ld.elf_so'
11316   fi
11317   shlibpath_var=LD_LIBRARY_PATH
11318   shlibpath_overrides_runpath=yes
11319   hardcode_into_libs=yes
11320   ;;
11321
11322 newsos6)
11323   version_type=linux
11324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11325   shlibpath_var=LD_LIBRARY_PATH
11326   shlibpath_overrides_runpath=yes
11327   ;;
11328
11329 *nto* | *qnx*)
11330   version_type=qnx
11331   need_lib_prefix=no
11332   need_version=no
11333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334   soname_spec='${libname}${release}${shared_ext}$major'
11335   shlibpath_var=LD_LIBRARY_PATH
11336   shlibpath_overrides_runpath=no
11337   hardcode_into_libs=yes
11338   dynamic_linker='ldqnx.so'
11339   ;;
11340
11341 openbsd*)
11342   version_type=sunos
11343   sys_lib_dlsearch_path_spec="/usr/lib"
11344   need_lib_prefix=no
11345   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11346   case $host_os in
11347     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11348     *)                          need_version=no  ;;
11349   esac
11350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11352   shlibpath_var=LD_LIBRARY_PATH
11353   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11354     case $host_os in
11355       openbsd2.[89] | openbsd2.[89].*)
11356         shlibpath_overrides_runpath=no
11357         ;;
11358       *)
11359         shlibpath_overrides_runpath=yes
11360         ;;
11361       esac
11362   else
11363     shlibpath_overrides_runpath=yes
11364   fi
11365   ;;
11366
11367 os2*)
11368   libname_spec='$name'
11369   shrext_cmds=".dll"
11370   need_lib_prefix=no
11371   library_names_spec='$libname${shared_ext} $libname.a'
11372   dynamic_linker='OS/2 ld.exe'
11373   shlibpath_var=LIBPATH
11374   ;;
11375
11376 osf3* | osf4* | osf5*)
11377   version_type=osf
11378   need_lib_prefix=no
11379   need_version=no
11380   soname_spec='${libname}${release}${shared_ext}$major'
11381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382   shlibpath_var=LD_LIBRARY_PATH
11383   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11384   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11385   ;;
11386
11387 rdos*)
11388   dynamic_linker=no
11389   ;;
11390
11391 solaris*)
11392   version_type=linux
11393   need_lib_prefix=no
11394   need_version=no
11395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396   soname_spec='${libname}${release}${shared_ext}$major'
11397   shlibpath_var=LD_LIBRARY_PATH
11398   shlibpath_overrides_runpath=yes
11399   hardcode_into_libs=yes
11400   # ldd complains unless libraries are executable
11401   postinstall_cmds='chmod +x $lib'
11402   ;;
11403
11404 sunos4*)
11405   version_type=sunos
11406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11407   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11408   shlibpath_var=LD_LIBRARY_PATH
11409   shlibpath_overrides_runpath=yes
11410   if test "$with_gnu_ld" = yes; then
11411     need_lib_prefix=no
11412   fi
11413   need_version=yes
11414   ;;
11415
11416 sysv4 | sysv4.3*)
11417   version_type=linux
11418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419   soname_spec='${libname}${release}${shared_ext}$major'
11420   shlibpath_var=LD_LIBRARY_PATH
11421   case $host_vendor in
11422     sni)
11423       shlibpath_overrides_runpath=no
11424       need_lib_prefix=no
11425       runpath_var=LD_RUN_PATH
11426       ;;
11427     siemens)
11428       need_lib_prefix=no
11429       ;;
11430     motorola)
11431       need_lib_prefix=no
11432       need_version=no
11433       shlibpath_overrides_runpath=no
11434       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11435       ;;
11436   esac
11437   ;;
11438
11439 sysv4*MP*)
11440   if test -d /usr/nec ;then
11441     version_type=linux
11442     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11443     soname_spec='$libname${shared_ext}.$major'
11444     shlibpath_var=LD_LIBRARY_PATH
11445   fi
11446   ;;
11447
11448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11449   version_type=freebsd-elf
11450   need_lib_prefix=no
11451   need_version=no
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11453   soname_spec='${libname}${release}${shared_ext}$major'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=yes
11456   hardcode_into_libs=yes
11457   if test "$with_gnu_ld" = yes; then
11458     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11459   else
11460     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11461     case $host_os in
11462       sco3.2v5*)
11463         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11464         ;;
11465     esac
11466   fi
11467   sys_lib_dlsearch_path_spec='/usr/lib'
11468   ;;
11469
11470 tpf*)
11471   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11472   version_type=linux
11473   need_lib_prefix=no
11474   need_version=no
11475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476   shlibpath_var=LD_LIBRARY_PATH
11477   shlibpath_overrides_runpath=no
11478   hardcode_into_libs=yes
11479   ;;
11480
11481 uts4*)
11482   version_type=linux
11483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484   soname_spec='${libname}${release}${shared_ext}$major'
11485   shlibpath_var=LD_LIBRARY_PATH
11486   ;;
11487
11488 *)
11489   dynamic_linker=no
11490   ;;
11491 esac
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11493 $as_echo "$dynamic_linker" >&6; }
11494 test "$dynamic_linker" = no && can_build_shared=no
11495
11496 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11497 if test "$GCC" = yes; then
11498   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11499 fi
11500
11501 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11502   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11503 fi
11504 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11505   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11506 fi
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11595 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11596 hardcode_action=
11597 if test -n "$hardcode_libdir_flag_spec" ||
11598    test -n "$runpath_var" ||
11599    test "X$hardcode_automatic" = "Xyes" ; then
11600
11601   # We can hardcode non-existent directories.
11602   if test "$hardcode_direct" != no &&
11603      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11604      # have to relink, otherwise we might link with an installed library
11605      # when we should be linking with a yet-to-be-installed one
11606      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11607      test "$hardcode_minus_L" != no; then
11608     # Linking always hardcodes the temporary library directory.
11609     hardcode_action=relink
11610   else
11611     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11612     hardcode_action=immediate
11613   fi
11614 else
11615   # We cannot hardcode anything, or else we can only hardcode existing
11616   # directories.
11617   hardcode_action=unsupported
11618 fi
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11620 $as_echo "$hardcode_action" >&6; }
11621
11622 if test "$hardcode_action" = relink ||
11623    test "$inherit_rpath" = yes; then
11624   # Fast installation is not supported
11625   enable_fast_install=no
11626 elif test "$shlibpath_overrides_runpath" = yes ||
11627      test "$enable_shared" = no; then
11628   # Fast installation is not necessary
11629   enable_fast_install=needless
11630 fi
11631
11632
11633
11634
11635
11636
11637   if test "x$enable_dlopen" != xyes; then
11638   enable_dlopen=unknown
11639   enable_dlopen_self=unknown
11640   enable_dlopen_self_static=unknown
11641 else
11642   lt_cv_dlopen=no
11643   lt_cv_dlopen_libs=
11644
11645   case $host_os in
11646   beos*)
11647     lt_cv_dlopen="load_add_on"
11648     lt_cv_dlopen_libs=
11649     lt_cv_dlopen_self=yes
11650     ;;
11651
11652   mingw* | pw32* | cegcc*)
11653     lt_cv_dlopen="LoadLibrary"
11654     lt_cv_dlopen_libs=
11655     ;;
11656
11657   cygwin*)
11658     lt_cv_dlopen="dlopen"
11659     lt_cv_dlopen_libs=
11660     ;;
11661
11662   darwin*)
11663   # if libdl is installed we need to link against it
11664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11667   $as_echo_n "(cached) " >&6
11668 else
11669   ac_check_lib_save_LIBS=$LIBS
11670 LIBS="-ldl  $LIBS"
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h.  */
11673
11674 /* Override any GCC internal prototype to avoid an error.
11675    Use char because int might match the return type of a GCC
11676    builtin and then its argument prototype would still apply.  */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 char dlopen ();
11681 int
11682 main ()
11683 {
11684 return dlopen ();
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 if ac_fn_c_try_link "$LINENO"; then :
11690   ac_cv_lib_dl_dlopen=yes
11691 else
11692   ac_cv_lib_dl_dlopen=no
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext \
11695     conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11700 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11701   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11702 else
11703
11704     lt_cv_dlopen="dyld"
11705     lt_cv_dlopen_libs=
11706     lt_cv_dlopen_self=yes
11707
11708 fi
11709
11710     ;;
11711
11712   *)
11713     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11714 if test "x$ac_cv_func_shl_load" = x""yes; then :
11715   lt_cv_dlopen="shl_load"
11716 else
11717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11718 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11719 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11720   $as_echo_n "(cached) " >&6
11721 else
11722   ac_check_lib_save_LIBS=$LIBS
11723 LIBS="-ldld  $LIBS"
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h.  */
11726
11727 /* Override any GCC internal prototype to avoid an error.
11728    Use char because int might match the return type of a GCC
11729    builtin and then its argument prototype would still apply.  */
11730 #ifdef __cplusplus
11731 extern "C"
11732 #endif
11733 char shl_load ();
11734 int
11735 main ()
11736 {
11737 return shl_load ();
11738   ;
11739   return 0;
11740 }
11741 _ACEOF
11742 if ac_fn_c_try_link "$LINENO"; then :
11743   ac_cv_lib_dld_shl_load=yes
11744 else
11745   ac_cv_lib_dld_shl_load=no
11746 fi
11747 rm -f core conftest.err conftest.$ac_objext \
11748     conftest$ac_exeext conftest.$ac_ext
11749 LIBS=$ac_check_lib_save_LIBS
11750 fi
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11752 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11753 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11754   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11755 else
11756   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11757 if test "x$ac_cv_func_dlopen" = x""yes; then :
11758   lt_cv_dlopen="dlopen"
11759 else
11760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11761 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11763   $as_echo_n "(cached) " >&6
11764 else
11765   ac_check_lib_save_LIBS=$LIBS
11766 LIBS="-ldl  $LIBS"
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h.  */
11769
11770 /* Override any GCC internal prototype to avoid an error.
11771    Use char because int might match the return type of a GCC
11772    builtin and then its argument prototype would still apply.  */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 char dlopen ();
11777 int
11778 main ()
11779 {
11780 return dlopen ();
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 if ac_fn_c_try_link "$LINENO"; then :
11786   ac_cv_lib_dl_dlopen=yes
11787 else
11788   ac_cv_lib_dl_dlopen=no
11789 fi
11790 rm -f core conftest.err conftest.$ac_objext \
11791     conftest$ac_exeext conftest.$ac_ext
11792 LIBS=$ac_check_lib_save_LIBS
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11795 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11796 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11797   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11798 else
11799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11800 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11801 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11802   $as_echo_n "(cached) " >&6
11803 else
11804   ac_check_lib_save_LIBS=$LIBS
11805 LIBS="-lsvld  $LIBS"
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h.  */
11808
11809 /* Override any GCC internal prototype to avoid an error.
11810    Use char because int might match the return type of a GCC
11811    builtin and then its argument prototype would still apply.  */
11812 #ifdef __cplusplus
11813 extern "C"
11814 #endif
11815 char dlopen ();
11816 int
11817 main ()
11818 {
11819 return dlopen ();
11820   ;
11821   return 0;
11822 }
11823 _ACEOF
11824 if ac_fn_c_try_link "$LINENO"; then :
11825   ac_cv_lib_svld_dlopen=yes
11826 else
11827   ac_cv_lib_svld_dlopen=no
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext \
11830     conftest$ac_exeext conftest.$ac_ext
11831 LIBS=$ac_check_lib_save_LIBS
11832 fi
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11834 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11835 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11836   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11837 else
11838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11839 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11840 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11841   $as_echo_n "(cached) " >&6
11842 else
11843   ac_check_lib_save_LIBS=$LIBS
11844 LIBS="-ldld  $LIBS"
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h.  */
11847
11848 /* Override any GCC internal prototype to avoid an error.
11849    Use char because int might match the return type of a GCC
11850    builtin and then its argument prototype would still apply.  */
11851 #ifdef __cplusplus
11852 extern "C"
11853 #endif
11854 char dld_link ();
11855 int
11856 main ()
11857 {
11858 return dld_link ();
11859   ;
11860   return 0;
11861 }
11862 _ACEOF
11863 if ac_fn_c_try_link "$LINENO"; then :
11864   ac_cv_lib_dld_dld_link=yes
11865 else
11866   ac_cv_lib_dld_dld_link=no
11867 fi
11868 rm -f core conftest.err conftest.$ac_objext \
11869     conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11871 fi
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11873 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11874 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11875   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11876 fi
11877
11878
11879 fi
11880
11881
11882 fi
11883
11884
11885 fi
11886
11887
11888 fi
11889
11890
11891 fi
11892
11893     ;;
11894   esac
11895
11896   if test "x$lt_cv_dlopen" != xno; then
11897     enable_dlopen=yes
11898   else
11899     enable_dlopen=no
11900   fi
11901
11902   case $lt_cv_dlopen in
11903   dlopen)
11904     save_CPPFLAGS="$CPPFLAGS"
11905     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11906
11907     save_LDFLAGS="$LDFLAGS"
11908     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11909
11910     save_LIBS="$LIBS"
11911     LIBS="$lt_cv_dlopen_libs $LIBS"
11912
11913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11914 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11915 if test "${lt_cv_dlopen_self+set}" = set; then :
11916   $as_echo_n "(cached) " >&6
11917 else
11918           if test "$cross_compiling" = yes; then :
11919   lt_cv_dlopen_self=cross
11920 else
11921   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11922   lt_status=$lt_dlunknown
11923   cat > conftest.$ac_ext <<_LT_EOF
11924 #line 11924 "configure"
11925 #include "confdefs.h"
11926
11927 #if HAVE_DLFCN_H
11928 #include <dlfcn.h>
11929 #endif
11930
11931 #include <stdio.h>
11932
11933 #ifdef RTLD_GLOBAL
11934 #  define LT_DLGLOBAL           RTLD_GLOBAL
11935 #else
11936 #  ifdef DL_GLOBAL
11937 #    define LT_DLGLOBAL         DL_GLOBAL
11938 #  else
11939 #    define LT_DLGLOBAL         0
11940 #  endif
11941 #endif
11942
11943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11944    find out it does not work in some platform. */
11945 #ifndef LT_DLLAZY_OR_NOW
11946 #  ifdef RTLD_LAZY
11947 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11948 #  else
11949 #    ifdef DL_LAZY
11950 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11951 #    else
11952 #      ifdef RTLD_NOW
11953 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11954 #      else
11955 #        ifdef DL_NOW
11956 #          define LT_DLLAZY_OR_NOW      DL_NOW
11957 #        else
11958 #          define LT_DLLAZY_OR_NOW      0
11959 #        endif
11960 #      endif
11961 #    endif
11962 #  endif
11963 #endif
11964
11965 void fnord() { int i=42;}
11966 int main ()
11967 {
11968   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11969   int status = $lt_dlunknown;
11970
11971   if (self)
11972     {
11973       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11974       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11975       /* dlclose (self); */
11976     }
11977   else
11978     puts (dlerror ());
11979
11980   return status;
11981 }
11982 _LT_EOF
11983   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11984   (eval $ac_link) 2>&5
11985   ac_status=$?
11986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11987   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11988     (./conftest; exit; ) >&5 2>/dev/null
11989     lt_status=$?
11990     case x$lt_status in
11991       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11992       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11993       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11994     esac
11995   else :
11996     # compilation failed
11997     lt_cv_dlopen_self=no
11998   fi
11999 fi
12000 rm -fr conftest*
12001
12002
12003 fi
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12005 $as_echo "$lt_cv_dlopen_self" >&6; }
12006
12007     if test "x$lt_cv_dlopen_self" = xyes; then
12008       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12009       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12010 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12011 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12012   $as_echo_n "(cached) " >&6
12013 else
12014           if test "$cross_compiling" = yes; then :
12015   lt_cv_dlopen_self_static=cross
12016 else
12017   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12018   lt_status=$lt_dlunknown
12019   cat > conftest.$ac_ext <<_LT_EOF
12020 #line 12020 "configure"
12021 #include "confdefs.h"
12022
12023 #if HAVE_DLFCN_H
12024 #include <dlfcn.h>
12025 #endif
12026
12027 #include <stdio.h>
12028
12029 #ifdef RTLD_GLOBAL
12030 #  define LT_DLGLOBAL           RTLD_GLOBAL
12031 #else
12032 #  ifdef DL_GLOBAL
12033 #    define LT_DLGLOBAL         DL_GLOBAL
12034 #  else
12035 #    define LT_DLGLOBAL         0
12036 #  endif
12037 #endif
12038
12039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12040    find out it does not work in some platform. */
12041 #ifndef LT_DLLAZY_OR_NOW
12042 #  ifdef RTLD_LAZY
12043 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12044 #  else
12045 #    ifdef DL_LAZY
12046 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12047 #    else
12048 #      ifdef RTLD_NOW
12049 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12050 #      else
12051 #        ifdef DL_NOW
12052 #          define LT_DLLAZY_OR_NOW      DL_NOW
12053 #        else
12054 #          define LT_DLLAZY_OR_NOW      0
12055 #        endif
12056 #      endif
12057 #    endif
12058 #  endif
12059 #endif
12060
12061 void fnord() { int i=42;}
12062 int main ()
12063 {
12064   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12065   int status = $lt_dlunknown;
12066
12067   if (self)
12068     {
12069       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12070       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12071       /* dlclose (self); */
12072     }
12073   else
12074     puts (dlerror ());
12075
12076   return status;
12077 }
12078 _LT_EOF
12079   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12080   (eval $ac_link) 2>&5
12081   ac_status=$?
12082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12083   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12084     (./conftest; exit; ) >&5 2>/dev/null
12085     lt_status=$?
12086     case x$lt_status in
12087       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12088       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12089       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12090     esac
12091   else :
12092     # compilation failed
12093     lt_cv_dlopen_self_static=no
12094   fi
12095 fi
12096 rm -fr conftest*
12097
12098
12099 fi
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12101 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12102     fi
12103
12104     CPPFLAGS="$save_CPPFLAGS"
12105     LDFLAGS="$save_LDFLAGS"
12106     LIBS="$save_LIBS"
12107     ;;
12108   esac
12109
12110   case $lt_cv_dlopen_self in
12111   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12112   *) enable_dlopen_self=unknown ;;
12113   esac
12114
12115   case $lt_cv_dlopen_self_static in
12116   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12117   *) enable_dlopen_self_static=unknown ;;
12118   esac
12119 fi
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137 striplib=
12138 old_striplib=
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12140 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12141 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12142   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12143   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12145 $as_echo "yes" >&6; }
12146 else
12147 # FIXME - insert some real tests, host_os isn't really good enough
12148   case $host_os in
12149   darwin*)
12150     if test -n "$STRIP" ; then
12151       striplib="$STRIP -x"
12152       old_striplib="$STRIP -S"
12153       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12154 $as_echo "yes" >&6; }
12155     else
12156       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158     fi
12159     ;;
12160   *)
12161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12163     ;;
12164   esac
12165 fi
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178   # Report which library types will actually be built
12179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12180 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12182 $as_echo "$can_build_shared" >&6; }
12183
12184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12185 $as_echo_n "checking whether to build shared libraries... " >&6; }
12186   test "$can_build_shared" = "no" && enable_shared=no
12187
12188   # On AIX, shared libraries and static libraries use the same namespace, and
12189   # are all built from PIC.
12190   case $host_os in
12191   aix3*)
12192     test "$enable_shared" = yes && enable_static=no
12193     if test -n "$RANLIB"; then
12194       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12195       postinstall_cmds='$RANLIB $lib'
12196     fi
12197     ;;
12198
12199   aix[4-9]*)
12200     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12201       test "$enable_shared" = yes && enable_static=no
12202     fi
12203     ;;
12204   esac
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12206 $as_echo "$enable_shared" >&6; }
12207
12208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12209 $as_echo_n "checking whether to build static libraries... " >&6; }
12210   # Make sure either enable_shared or enable_static is yes.
12211   test "$enable_shared" = yes || enable_static=yes
12212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12213 $as_echo "$enable_static" >&6; }
12214
12215
12216
12217
12218 fi
12219 ac_ext=c
12220 ac_cpp='$CPP $CPPFLAGS'
12221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12224
12225 CC="$lt_save_CC"
12226
12227
12228 ac_ext=cpp
12229 ac_cpp='$CXXCPP $CPPFLAGS'
12230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12233
12234 archive_cmds_need_lc_CXX=no
12235 allow_undefined_flag_CXX=
12236 always_export_symbols_CXX=no
12237 archive_expsym_cmds_CXX=
12238 compiler_needs_object_CXX=no
12239 export_dynamic_flag_spec_CXX=
12240 hardcode_direct_CXX=no
12241 hardcode_direct_absolute_CXX=no
12242 hardcode_libdir_flag_spec_CXX=
12243 hardcode_libdir_flag_spec_ld_CXX=
12244 hardcode_libdir_separator_CXX=
12245 hardcode_minus_L_CXX=no
12246 hardcode_shlibpath_var_CXX=unsupported
12247 hardcode_automatic_CXX=no
12248 inherit_rpath_CXX=no
12249 module_cmds_CXX=
12250 module_expsym_cmds_CXX=
12251 link_all_deplibs_CXX=unknown
12252 old_archive_cmds_CXX=$old_archive_cmds
12253 no_undefined_flag_CXX=
12254 whole_archive_flag_spec_CXX=
12255 enable_shared_with_static_runtimes_CXX=no
12256
12257 # Source file extension for C++ test sources.
12258 ac_ext=cpp
12259
12260 # Object file extension for compiled C++ test sources.
12261 objext=o
12262 objext_CXX=$objext
12263
12264 # No sense in running all these tests if we already determined that
12265 # the CXX compiler isn't working.  Some variables (like enable_shared)
12266 # are currently assumed to apply to all compilers on this platform,
12267 # and will be corrupted by setting them based on a non-working compiler.
12268 if test "$_lt_caught_CXX_error" != yes; then
12269   # Code to be used in simple compile tests
12270   lt_simple_compile_test_code="int some_variable = 0;"
12271
12272   # Code to be used in simple link tests
12273   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12274
12275   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12276
12277
12278
12279
12280
12281
12282 # If no C compiler was specified, use CC.
12283 LTCC=${LTCC-"$CC"}
12284
12285 # If no C compiler flags were specified, use CFLAGS.
12286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12287
12288 # Allow CC to be a program name with arguments.
12289 compiler=$CC
12290
12291
12292   # save warnings/boilerplate of simple test code
12293   ac_outfile=conftest.$ac_objext
12294 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12296 _lt_compiler_boilerplate=`cat conftest.err`
12297 $RM conftest*
12298
12299   ac_outfile=conftest.$ac_objext
12300 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12302 _lt_linker_boilerplate=`cat conftest.err`
12303 $RM -r conftest*
12304
12305
12306   # Allow CC to be a program name with arguments.
12307   lt_save_CC=$CC
12308   lt_save_LD=$LD
12309   lt_save_GCC=$GCC
12310   GCC=$GXX
12311   lt_save_with_gnu_ld=$with_gnu_ld
12312   lt_save_path_LD=$lt_cv_path_LD
12313   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12314     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12315   else
12316     $as_unset lt_cv_prog_gnu_ld
12317   fi
12318   if test -n "${lt_cv_path_LDCXX+set}"; then
12319     lt_cv_path_LD=$lt_cv_path_LDCXX
12320   else
12321     $as_unset lt_cv_path_LD
12322   fi
12323   test -z "${LDCXX+set}" || LD=$LDCXX
12324   CC=${CXX-"c++"}
12325   compiler=$CC
12326   compiler_CXX=$CC
12327   for cc_temp in $compiler""; do
12328   case $cc_temp in
12329     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12330     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12331     \-*) ;;
12332     *) break;;
12333   esac
12334 done
12335 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12336
12337
12338   if test -n "$compiler"; then
12339     # We don't want -fno-exception when compiling C++ code, so set the
12340     # no_builtin_flag separately
12341     if test "$GXX" = yes; then
12342       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12343     else
12344       lt_prog_compiler_no_builtin_flag_CXX=
12345     fi
12346
12347     if test "$GXX" = yes; then
12348       # Set up default GNU C++ configuration
12349
12350
12351
12352 # Check whether --with-gnu-ld was given.
12353 if test "${with_gnu_ld+set}" = set; then :
12354   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12355 else
12356   with_gnu_ld=no
12357 fi
12358
12359 ac_prog=ld
12360 if test "$GCC" = yes; then
12361   # Check if gcc -print-prog-name=ld gives a path.
12362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12363 $as_echo_n "checking for ld used by $CC... " >&6; }
12364   case $host in
12365   *-*-mingw*)
12366     # gcc leaves a trailing carriage return which upsets mingw
12367     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12368   *)
12369     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12370   esac
12371   case $ac_prog in
12372     # Accept absolute paths.
12373     [\\/]* | ?:[\\/]*)
12374       re_direlt='/[^/][^/]*/\.\./'
12375       # Canonicalize the pathname of ld
12376       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12377       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12378         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12379       done
12380       test -z "$LD" && LD="$ac_prog"
12381       ;;
12382   "")
12383     # If it fails, then pretend we aren't using GCC.
12384     ac_prog=ld
12385     ;;
12386   *)
12387     # If it is relative, then search for the first ld in PATH.
12388     with_gnu_ld=unknown
12389     ;;
12390   esac
12391 elif test "$with_gnu_ld" = yes; then
12392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12393 $as_echo_n "checking for GNU ld... " >&6; }
12394 else
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12396 $as_echo_n "checking for non-GNU ld... " >&6; }
12397 fi
12398 if test "${lt_cv_path_LD+set}" = set; then :
12399   $as_echo_n "(cached) " >&6
12400 else
12401   if test -z "$LD"; then
12402   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12403   for ac_dir in $PATH; do
12404     IFS="$lt_save_ifs"
12405     test -z "$ac_dir" && ac_dir=.
12406     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12407       lt_cv_path_LD="$ac_dir/$ac_prog"
12408       # Check to see if the program is GNU ld.  I'd rather use --version,
12409       # but apparently some variants of GNU ld only accept -v.
12410       # Break only if it was the GNU/non-GNU ld that we prefer.
12411       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12412       *GNU* | *'with BFD'*)
12413         test "$with_gnu_ld" != no && break
12414         ;;
12415       *)
12416         test "$with_gnu_ld" != yes && break
12417         ;;
12418       esac
12419     fi
12420   done
12421   IFS="$lt_save_ifs"
12422 else
12423   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12424 fi
12425 fi
12426
12427 LD="$lt_cv_path_LD"
12428 if test -n "$LD"; then
12429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12430 $as_echo "$LD" >&6; }
12431 else
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12434 fi
12435 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12437 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12438 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12439   $as_echo_n "(cached) " >&6
12440 else
12441   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12442 case `$LD -v 2>&1 </dev/null` in
12443 *GNU* | *'with BFD'*)
12444   lt_cv_prog_gnu_ld=yes
12445   ;;
12446 *)
12447   lt_cv_prog_gnu_ld=no
12448   ;;
12449 esac
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12452 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12453 with_gnu_ld=$lt_cv_prog_gnu_ld
12454
12455
12456
12457
12458
12459
12460
12461       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12462       # archiving commands below assume that GNU ld is being used.
12463       if test "$with_gnu_ld" = yes; then
12464         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12465         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12466
12467         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12468         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12469
12470         # If archive_cmds runs LD, not CC, wlarc should be empty
12471         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12472         #     investigate it a little bit more. (MM)
12473         wlarc='${wl}'
12474
12475         # ancient GNU ld didn't support --whole-archive et. al.
12476         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12477           $GREP 'no-whole-archive' > /dev/null; then
12478           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12479         else
12480           whole_archive_flag_spec_CXX=
12481         fi
12482       else
12483         with_gnu_ld=no
12484         wlarc=
12485
12486         # A generic and very simple default shared library creation
12487         # command for GNU C++ for the case where it uses the native
12488         # linker, instead of GNU ld.  If possible, this setting should
12489         # overridden to take advantage of the native linker features on
12490         # the platform it is being used on.
12491         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12492       fi
12493
12494       # Commands to make compiler produce verbose output that lists
12495       # what "hidden" libraries, object files and flags are used when
12496       # linking a shared library.
12497       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12498
12499     else
12500       GXX=no
12501       with_gnu_ld=no
12502       wlarc=
12503     fi
12504
12505     # PORTME: fill in a description of your system's C++ link characteristics
12506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12507 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12508     ld_shlibs_CXX=yes
12509     case $host_os in
12510       aix3*)
12511         # FIXME: insert proper C++ library support
12512         ld_shlibs_CXX=no
12513         ;;
12514       aix[4-9]*)
12515         if test "$host_cpu" = ia64; then
12516           # On IA64, the linker does run time linking by default, so we don't
12517           # have to do anything special.
12518           aix_use_runtimelinking=no
12519           exp_sym_flag='-Bexport'
12520           no_entry_flag=""
12521         else
12522           aix_use_runtimelinking=no
12523
12524           # Test if we are trying to use run time linking or normal
12525           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12526           # need to do runtime linking.
12527           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12528             for ld_flag in $LDFLAGS; do
12529               case $ld_flag in
12530               *-brtl*)
12531                 aix_use_runtimelinking=yes
12532                 break
12533                 ;;
12534               esac
12535             done
12536             ;;
12537           esac
12538
12539           exp_sym_flag='-bexport'
12540           no_entry_flag='-bnoentry'
12541         fi
12542
12543         # When large executables or shared objects are built, AIX ld can
12544         # have problems creating the table of contents.  If linking a library
12545         # or program results in "error TOC overflow" add -mminimal-toc to
12546         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12547         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12548
12549         archive_cmds_CXX=''
12550         hardcode_direct_CXX=yes
12551         hardcode_direct_absolute_CXX=yes
12552         hardcode_libdir_separator_CXX=':'
12553         link_all_deplibs_CXX=yes
12554         file_list_spec_CXX='${wl}-f,'
12555
12556         if test "$GXX" = yes; then
12557           case $host_os in aix4.[012]|aix4.[012].*)
12558           # We only want to do this on AIX 4.2 and lower, the check
12559           # below for broken collect2 doesn't work under 4.3+
12560           collect2name=`${CC} -print-prog-name=collect2`
12561           if test -f "$collect2name" &&
12562              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12563           then
12564             # We have reworked collect2
12565             :
12566           else
12567             # We have old collect2
12568             hardcode_direct_CXX=unsupported
12569             # It fails to find uninstalled libraries when the uninstalled
12570             # path is not listed in the libpath.  Setting hardcode_minus_L
12571             # to unsupported forces relinking
12572             hardcode_minus_L_CXX=yes
12573             hardcode_libdir_flag_spec_CXX='-L$libdir'
12574             hardcode_libdir_separator_CXX=
12575           fi
12576           esac
12577           shared_flag='-shared'
12578           if test "$aix_use_runtimelinking" = yes; then
12579             shared_flag="$shared_flag "'${wl}-G'
12580           fi
12581         else
12582           # not using gcc
12583           if test "$host_cpu" = ia64; then
12584           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12585           # chokes on -Wl,-G. The following line is correct:
12586           shared_flag='-G'
12587           else
12588             if test "$aix_use_runtimelinking" = yes; then
12589               shared_flag='${wl}-G'
12590             else
12591               shared_flag='${wl}-bM:SRE'
12592             fi
12593           fi
12594         fi
12595
12596         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12597         # It seems that -bexpall does not export symbols beginning with
12598         # underscore (_), so it is better to generate a list of symbols to
12599         # export.
12600         always_export_symbols_CXX=yes
12601         if test "$aix_use_runtimelinking" = yes; then
12602           # Warning - without using the other runtime loading flags (-brtl),
12603           # -berok will link without error, but may produce a broken library.
12604           allow_undefined_flag_CXX='-berok'
12605           # Determine the default libpath from the value encoded in an empty
12606           # executable.
12607           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h.  */
12609
12610 int
12611 main ()
12612 {
12613
12614   ;
12615   return 0;
12616 }
12617 _ACEOF
12618 if ac_fn_cxx_try_link "$LINENO"; then :
12619
12620 lt_aix_libpath_sed='
12621     /Import File Strings/,/^$/ {
12622         /^0/ {
12623             s/^0  *\(.*\)$/\1/
12624             p
12625         }
12626     }'
12627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12628 # Check for a 64-bit object if we didn't find anything.
12629 if test -z "$aix_libpath"; then
12630   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12631 fi
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext \
12634     conftest$ac_exeext conftest.$ac_ext
12635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12636
12637           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12638
12639           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12640         else
12641           if test "$host_cpu" = ia64; then
12642             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12643             allow_undefined_flag_CXX="-z nodefs"
12644             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12645           else
12646             # Determine the default libpath from the value encoded in an
12647             # empty executable.
12648             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h.  */
12650
12651 int
12652 main ()
12653 {
12654
12655   ;
12656   return 0;
12657 }
12658 _ACEOF
12659 if ac_fn_cxx_try_link "$LINENO"; then :
12660
12661 lt_aix_libpath_sed='
12662     /Import File Strings/,/^$/ {
12663         /^0/ {
12664             s/^0  *\(.*\)$/\1/
12665             p
12666         }
12667     }'
12668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12669 # Check for a 64-bit object if we didn't find anything.
12670 if test -z "$aix_libpath"; then
12671   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12672 fi
12673 fi
12674 rm -f core conftest.err conftest.$ac_objext \
12675     conftest$ac_exeext conftest.$ac_ext
12676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12677
12678             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12679             # Warning - without using the other run time loading flags,
12680             # -berok will link without error, but may produce a broken library.
12681             no_undefined_flag_CXX=' ${wl}-bernotok'
12682             allow_undefined_flag_CXX=' ${wl}-berok'
12683             # Exported symbols can be pulled into shared objects from archives
12684             whole_archive_flag_spec_CXX='$convenience'
12685             archive_cmds_need_lc_CXX=yes
12686             # This is similar to how AIX traditionally builds its shared
12687             # libraries.
12688             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12689           fi
12690         fi
12691         ;;
12692
12693       beos*)
12694         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12695           allow_undefined_flag_CXX=unsupported
12696           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12697           # support --undefined.  This deserves some investigation.  FIXME
12698           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12699         else
12700           ld_shlibs_CXX=no
12701         fi
12702         ;;
12703
12704       chorus*)
12705         case $cc_basename in
12706           *)
12707           # FIXME: insert proper C++ library support
12708           ld_shlibs_CXX=no
12709           ;;
12710         esac
12711         ;;
12712
12713       cygwin* | mingw* | pw32* | cegcc*)
12714         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12715         # as there is no search path for DLLs.
12716         hardcode_libdir_flag_spec_CXX='-L$libdir'
12717         allow_undefined_flag_CXX=unsupported
12718         always_export_symbols_CXX=no
12719         enable_shared_with_static_runtimes_CXX=yes
12720
12721         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12722           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12723           # If the export-symbols file already is a .def file (1st line
12724           # is EXPORTS), use it as is; otherwise, prepend...
12725           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12726             cp $export_symbols $output_objdir/$soname.def;
12727           else
12728             echo EXPORTS > $output_objdir/$soname.def;
12729             cat $export_symbols >> $output_objdir/$soname.def;
12730           fi~
12731           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12732         else
12733           ld_shlibs_CXX=no
12734         fi
12735         ;;
12736       darwin* | rhapsody*)
12737
12738
12739   archive_cmds_need_lc_CXX=no
12740   hardcode_direct_CXX=no
12741   hardcode_automatic_CXX=yes
12742   hardcode_shlibpath_var_CXX=unsupported
12743   whole_archive_flag_spec_CXX=''
12744   link_all_deplibs_CXX=yes
12745   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12746   case $cc_basename in
12747      ifort*) _lt_dar_can_shared=yes ;;
12748      *) _lt_dar_can_shared=$GCC ;;
12749   esac
12750   if test "$_lt_dar_can_shared" = "yes"; then
12751     output_verbose_link_cmd=echo
12752     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12753     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12754     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12755     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12756        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12757       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12758       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12759     fi
12760
12761   else
12762   ld_shlibs_CXX=no
12763   fi
12764
12765         ;;
12766
12767       dgux*)
12768         case $cc_basename in
12769           ec++*)
12770             # FIXME: insert proper C++ library support
12771             ld_shlibs_CXX=no
12772             ;;
12773           ghcx*)
12774             # Green Hills C++ Compiler
12775             # FIXME: insert proper C++ library support
12776             ld_shlibs_CXX=no
12777             ;;
12778           *)
12779             # FIXME: insert proper C++ library support
12780             ld_shlibs_CXX=no
12781             ;;
12782         esac
12783         ;;
12784
12785       freebsd[12]*)
12786         # C++ shared libraries reported to be fairly broken before
12787         # switch to ELF
12788         ld_shlibs_CXX=no
12789         ;;
12790
12791       freebsd-elf*)
12792         archive_cmds_need_lc_CXX=no
12793         ;;
12794
12795       freebsd* | dragonfly*)
12796         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12797         # conventions
12798         ld_shlibs_CXX=yes
12799         ;;
12800
12801       gnu*)
12802         ;;
12803
12804       hpux9*)
12805         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12806         hardcode_libdir_separator_CXX=:
12807         export_dynamic_flag_spec_CXX='${wl}-E'
12808         hardcode_direct_CXX=yes
12809         hardcode_minus_L_CXX=yes # Not in the search PATH,
12810                                              # but as the default
12811                                              # location of the library.
12812
12813         case $cc_basename in
12814           CC*)
12815             # FIXME: insert proper C++ library support
12816             ld_shlibs_CXX=no
12817             ;;
12818           aCC*)
12819             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12820             # Commands to make compiler produce verbose output that lists
12821             # what "hidden" libraries, object files and flags are used when
12822             # linking a shared library.
12823             #
12824             # There doesn't appear to be a way to prevent this compiler from
12825             # explicitly linking system object files so we need to strip them
12826             # from the output so that they don't get included in the library
12827             # dependencies.
12828             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12829             ;;
12830           *)
12831             if test "$GXX" = yes; then
12832               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12833             else
12834               # FIXME: insert proper C++ library support
12835               ld_shlibs_CXX=no
12836             fi
12837             ;;
12838         esac
12839         ;;
12840
12841       hpux10*|hpux11*)
12842         if test $with_gnu_ld = no; then
12843           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12844           hardcode_libdir_separator_CXX=:
12845
12846           case $host_cpu in
12847             hppa*64*|ia64*)
12848               ;;
12849             *)
12850               export_dynamic_flag_spec_CXX='${wl}-E'
12851               ;;
12852           esac
12853         fi
12854         case $host_cpu in
12855           hppa*64*|ia64*)
12856             hardcode_direct_CXX=no
12857             hardcode_shlibpath_var_CXX=no
12858             ;;
12859           *)
12860             hardcode_direct_CXX=yes
12861             hardcode_direct_absolute_CXX=yes
12862             hardcode_minus_L_CXX=yes # Not in the search PATH,
12863                                                  # but as the default
12864                                                  # location of the library.
12865             ;;
12866         esac
12867
12868         case $cc_basename in
12869           CC*)
12870             # FIXME: insert proper C++ library support
12871             ld_shlibs_CXX=no
12872             ;;
12873           aCC*)
12874             case $host_cpu in
12875               hppa*64*)
12876                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12877                 ;;
12878               ia64*)
12879                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12880                 ;;
12881               *)
12882                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12883                 ;;
12884             esac
12885             # Commands to make compiler produce verbose output that lists
12886             # what "hidden" libraries, object files and flags are used when
12887             # linking a shared library.
12888             #
12889             # There doesn't appear to be a way to prevent this compiler from
12890             # explicitly linking system object files so we need to strip them
12891             # from the output so that they don't get included in the library
12892             # dependencies.
12893             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12894             ;;
12895           *)
12896             if test "$GXX" = yes; then
12897               if test $with_gnu_ld = no; then
12898                 case $host_cpu in
12899                   hppa*64*)
12900                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12901                     ;;
12902                   ia64*)
12903                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12904                     ;;
12905                   *)
12906                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12907                     ;;
12908                 esac
12909               fi
12910             else
12911               # FIXME: insert proper C++ library support
12912               ld_shlibs_CXX=no
12913             fi
12914             ;;
12915         esac
12916         ;;
12917
12918       interix[3-9]*)
12919         hardcode_direct_CXX=no
12920         hardcode_shlibpath_var_CXX=no
12921         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12922         export_dynamic_flag_spec_CXX='${wl}-E'
12923         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12924         # Instead, shared libraries are loaded at an image base (0x10000000 by
12925         # default) and relocated if they conflict, which is a slow very memory
12926         # consuming and fragmenting process.  To avoid this, we pick a random,
12927         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12928         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12929         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12930         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12931         ;;
12932       irix5* | irix6*)
12933         case $cc_basename in
12934           CC*)
12935             # SGI C++
12936             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12937
12938             # Archives containing C++ object files must be created using
12939             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12940             # necessary to make sure instantiated templates are included
12941             # in the archive.
12942             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12943             ;;
12944           *)
12945             if test "$GXX" = yes; then
12946               if test "$with_gnu_ld" = no; then
12947                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12948               else
12949                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12950               fi
12951             fi
12952             link_all_deplibs_CXX=yes
12953             ;;
12954         esac
12955         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12956         hardcode_libdir_separator_CXX=:
12957         inherit_rpath_CXX=yes
12958         ;;
12959
12960       linux* | k*bsd*-gnu)
12961         case $cc_basename in
12962           KCC*)
12963             # Kuck and Associates, Inc. (KAI) C++ Compiler
12964
12965             # KCC will only create a shared library if the output file
12966             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12967             # to its proper name (with version) after linking.
12968             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12969             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12970             # Commands to make compiler produce verbose output that lists
12971             # what "hidden" libraries, object files and flags are used when
12972             # linking a shared library.
12973             #
12974             # There doesn't appear to be a way to prevent this compiler from
12975             # explicitly linking system object files so we need to strip them
12976             # from the output so that they don't get included in the library
12977             # dependencies.
12978             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12979
12980             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12981             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12982
12983             # Archives containing C++ object files must be created using
12984             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12985             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12986             ;;
12987           icpc* | ecpc* )
12988             # Intel C++
12989             with_gnu_ld=yes
12990             # version 8.0 and above of icpc choke on multiply defined symbols
12991             # if we add $predep_objects and $postdep_objects, however 7.1 and
12992             # earlier do not add the objects themselves.
12993             case `$CC -V 2>&1` in
12994               *"Version 7."*)
12995                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12997                 ;;
12998               *)  # Version 8.0 or newer
12999                 tmp_idyn=
13000                 case $host_cpu in
13001                   ia64*) tmp_idyn=' -i_dynamic';;
13002                 esac
13003                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13004                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13005                 ;;
13006             esac
13007             archive_cmds_need_lc_CXX=no
13008             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13009             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13010             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13011             ;;
13012           pgCC* | pgcpp*)
13013             # Portland Group C++ compiler
13014             case `$CC -V` in
13015             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13016               prelink_cmds_CXX='tpldir=Template.dir~
13017                 rm -rf $tpldir~
13018                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13019                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13020               old_archive_cmds_CXX='tpldir=Template.dir~
13021                 rm -rf $tpldir~
13022                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13023                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13024                 $RANLIB $oldlib'
13025               archive_cmds_CXX='tpldir=Template.dir~
13026                 rm -rf $tpldir~
13027                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13028                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13029               archive_expsym_cmds_CXX='tpldir=Template.dir~
13030                 rm -rf $tpldir~
13031                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13032                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13033               ;;
13034             *) # Version 6 will use weak symbols
13035               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13036               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13037               ;;
13038             esac
13039
13040             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13041             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13042             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13043             ;;
13044           cxx*)
13045             # Compaq C++
13046             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13047             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13048
13049             runpath_var=LD_RUN_PATH
13050             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13051             hardcode_libdir_separator_CXX=:
13052
13053             # Commands to make compiler produce verbose output that lists
13054             # what "hidden" libraries, object files and flags are used when
13055             # linking a shared library.
13056             #
13057             # There doesn't appear to be a way to prevent this compiler from
13058             # explicitly linking system object files so we need to strip them
13059             # from the output so that they don't get included in the library
13060             # dependencies.
13061             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13062             ;;
13063           xl*)
13064             # IBM XL 8.0 on PPC, with GNU ld
13065             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13066             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13067             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13068             if test "x$supports_anon_versioning" = xyes; then
13069               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13070                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13071                 echo "local: *; };" >> $output_objdir/$libname.ver~
13072                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13073             fi
13074             ;;
13075           *)
13076             case `$CC -V 2>&1 | sed 5q` in
13077             *Sun\ C*)
13078               # Sun C++ 5.9
13079               no_undefined_flag_CXX=' -zdefs'
13080               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13081               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13082               hardcode_libdir_flag_spec_CXX='-R$libdir'
13083               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13084               compiler_needs_object_CXX=yes
13085
13086               # Not sure whether something based on
13087               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13088               # would be better.
13089               output_verbose_link_cmd='echo'
13090
13091               # Archives containing C++ object files must be created using
13092               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13093               # necessary to make sure instantiated templates are included
13094               # in the archive.
13095               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13096               ;;
13097             esac
13098             ;;
13099         esac
13100         ;;
13101
13102       lynxos*)
13103         # FIXME: insert proper C++ library support
13104         ld_shlibs_CXX=no
13105         ;;
13106
13107       m88k*)
13108         # FIXME: insert proper C++ library support
13109         ld_shlibs_CXX=no
13110         ;;
13111
13112       mvs*)
13113         case $cc_basename in
13114           cxx*)
13115             # FIXME: insert proper C++ library support
13116             ld_shlibs_CXX=no
13117             ;;
13118           *)
13119             # FIXME: insert proper C++ library support
13120             ld_shlibs_CXX=no
13121             ;;
13122         esac
13123         ;;
13124
13125       netbsd*)
13126         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13127           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13128           wlarc=
13129           hardcode_libdir_flag_spec_CXX='-R$libdir'
13130           hardcode_direct_CXX=yes
13131           hardcode_shlibpath_var_CXX=no
13132         fi
13133         # Workaround some broken pre-1.5 toolchains
13134         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13135         ;;
13136
13137       *nto* | *qnx*)
13138         ld_shlibs_CXX=yes
13139         ;;
13140
13141       openbsd2*)
13142         # C++ shared libraries are fairly broken
13143         ld_shlibs_CXX=no
13144         ;;
13145
13146       openbsd*)
13147         if test -f /usr/libexec/ld.so; then
13148           hardcode_direct_CXX=yes
13149           hardcode_shlibpath_var_CXX=no
13150           hardcode_direct_absolute_CXX=yes
13151           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13152           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13153           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13154             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13155             export_dynamic_flag_spec_CXX='${wl}-E'
13156             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13157           fi
13158           output_verbose_link_cmd=echo
13159         else
13160           ld_shlibs_CXX=no
13161         fi
13162         ;;
13163
13164       osf3* | osf4* | osf5*)
13165         case $cc_basename in
13166           KCC*)
13167             # Kuck and Associates, Inc. (KAI) C++ Compiler
13168
13169             # KCC will only create a shared library if the output file
13170             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13171             # to its proper name (with version) after linking.
13172             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13173
13174             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13175             hardcode_libdir_separator_CXX=:
13176
13177             # Archives containing C++ object files must be created using
13178             # the KAI C++ compiler.
13179             case $host in
13180               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13181               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13182             esac
13183             ;;
13184           RCC*)
13185             # Rational C++ 2.4.1
13186             # FIXME: insert proper C++ library support
13187             ld_shlibs_CXX=no
13188             ;;
13189           cxx*)
13190             case $host in
13191               osf3*)
13192                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13193                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13194                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13195                 ;;
13196               *)
13197                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13198                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13199                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13200                   echo "-hidden">> $lib.exp~
13201                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13202                   $RM $lib.exp'
13203                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13204                 ;;
13205             esac
13206
13207             hardcode_libdir_separator_CXX=:
13208
13209             # Commands to make compiler produce verbose output that lists
13210             # what "hidden" libraries, object files and flags are used when
13211             # linking a shared library.
13212             #
13213             # There doesn't appear to be a way to prevent this compiler from
13214             # explicitly linking system object files so we need to strip them
13215             # from the output so that they don't get included in the library
13216             # dependencies.
13217             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13218             ;;
13219           *)
13220             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13221               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13222               case $host in
13223                 osf3*)
13224                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13225                   ;;
13226                 *)
13227                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13228                   ;;
13229               esac
13230
13231               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13232               hardcode_libdir_separator_CXX=:
13233
13234               # Commands to make compiler produce verbose output that lists
13235               # what "hidden" libraries, object files and flags are used when
13236               # linking a shared library.
13237               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13238
13239             else
13240               # FIXME: insert proper C++ library support
13241               ld_shlibs_CXX=no
13242             fi
13243             ;;
13244         esac
13245         ;;
13246
13247       psos*)
13248         # FIXME: insert proper C++ library support
13249         ld_shlibs_CXX=no
13250         ;;
13251
13252       sunos4*)
13253         case $cc_basename in
13254           CC*)
13255             # Sun C++ 4.x
13256             # FIXME: insert proper C++ library support
13257             ld_shlibs_CXX=no
13258             ;;
13259           lcc*)
13260             # Lucid
13261             # FIXME: insert proper C++ library support
13262             ld_shlibs_CXX=no
13263             ;;
13264           *)
13265             # FIXME: insert proper C++ library support
13266             ld_shlibs_CXX=no
13267             ;;
13268         esac
13269         ;;
13270
13271       solaris*)
13272         case $cc_basename in
13273           CC*)
13274             # Sun C++ 4.2, 5.x and Centerline C++
13275             archive_cmds_need_lc_CXX=yes
13276             no_undefined_flag_CXX=' -zdefs'
13277             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13278             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13279               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13280
13281             hardcode_libdir_flag_spec_CXX='-R$libdir'
13282             hardcode_shlibpath_var_CXX=no
13283             case $host_os in
13284               solaris2.[0-5] | solaris2.[0-5].*) ;;
13285               *)
13286                 # The compiler driver will combine and reorder linker options,
13287                 # but understands `-z linker_flag'.
13288                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13289                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13290                 ;;
13291             esac
13292             link_all_deplibs_CXX=yes
13293
13294             output_verbose_link_cmd='echo'
13295
13296             # Archives containing C++ object files must be created using
13297             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13298             # necessary to make sure instantiated templates are included
13299             # in the archive.
13300             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13301             ;;
13302           gcx*)
13303             # Green Hills C++ Compiler
13304             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13305
13306             # The C++ compiler must be used to create the archive.
13307             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13308             ;;
13309           *)
13310             # GNU C++ compiler with Solaris linker
13311             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13312               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13313               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13314                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13315                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13316                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13317
13318                 # Commands to make compiler produce verbose output that lists
13319                 # what "hidden" libraries, object files and flags are used when
13320                 # linking a shared library.
13321                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13322               else
13323                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13324                 # platform.
13325                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13326                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13327                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13328
13329                 # Commands to make compiler produce verbose output that lists
13330                 # what "hidden" libraries, object files and flags are used when
13331                 # linking a shared library.
13332                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13333               fi
13334
13335               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13336               case $host_os in
13337                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13338                 *)
13339                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13340                   ;;
13341               esac
13342             fi
13343             ;;
13344         esac
13345         ;;
13346
13347     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13348       no_undefined_flag_CXX='${wl}-z,text'
13349       archive_cmds_need_lc_CXX=no
13350       hardcode_shlibpath_var_CXX=no
13351       runpath_var='LD_RUN_PATH'
13352
13353       case $cc_basename in
13354         CC*)
13355           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13357           ;;
13358         *)
13359           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13360           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13361           ;;
13362       esac
13363       ;;
13364
13365       sysv5* | sco3.2v5* | sco5v6*)
13366         # Note: We can NOT use -z defs as we might desire, because we do not
13367         # link with -lc, and that would cause any symbols used from libc to
13368         # always be unresolved, which means just about no library would
13369         # ever link correctly.  If we're not using GNU ld we use -z text
13370         # though, which does catch some bad symbols but isn't as heavy-handed
13371         # as -z defs.
13372         no_undefined_flag_CXX='${wl}-z,text'
13373         allow_undefined_flag_CXX='${wl}-z,nodefs'
13374         archive_cmds_need_lc_CXX=no
13375         hardcode_shlibpath_var_CXX=no
13376         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13377         hardcode_libdir_separator_CXX=':'
13378         link_all_deplibs_CXX=yes
13379         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13380         runpath_var='LD_RUN_PATH'
13381
13382         case $cc_basename in
13383           CC*)
13384             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13385             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13386             ;;
13387           *)
13388             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13389             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13390             ;;
13391         esac
13392       ;;
13393
13394       tandem*)
13395         case $cc_basename in
13396           NCC*)
13397             # NonStop-UX NCC 3.20
13398             # FIXME: insert proper C++ library support
13399             ld_shlibs_CXX=no
13400             ;;
13401           *)
13402             # FIXME: insert proper C++ library support
13403             ld_shlibs_CXX=no
13404             ;;
13405         esac
13406         ;;
13407
13408       vxworks*)
13409         # FIXME: insert proper C++ library support
13410         ld_shlibs_CXX=no
13411         ;;
13412
13413       *)
13414         # FIXME: insert proper C++ library support
13415         ld_shlibs_CXX=no
13416         ;;
13417     esac
13418
13419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13420 $as_echo "$ld_shlibs_CXX" >&6; }
13421     test "$ld_shlibs_CXX" = no && can_build_shared=no
13422
13423     GCC_CXX="$GXX"
13424     LD_CXX="$LD"
13425
13426     ## CAVEAT EMPTOR:
13427     ## There is no encapsulation within the following macros, do not change
13428     ## the running order or otherwise move them around unless you know exactly
13429     ## what you are doing...
13430     # Dependencies to place before and after the object being linked:
13431 predep_objects_CXX=
13432 postdep_objects_CXX=
13433 predeps_CXX=
13434 postdeps_CXX=
13435 compiler_lib_search_path_CXX=
13436
13437 cat > conftest.$ac_ext <<_LT_EOF
13438 class Foo
13439 {
13440 public:
13441   Foo (void) { a = 0; }
13442 private:
13443   int a;
13444 };
13445 _LT_EOF
13446
13447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13448   (eval $ac_compile) 2>&5
13449   ac_status=$?
13450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13451   test $ac_status = 0; }; then
13452   # Parse the compiler output and extract the necessary
13453   # objects, libraries and library flags.
13454
13455   # Sentinel used to keep track of whether or not we are before
13456   # the conftest object file.
13457   pre_test_object_deps_done=no
13458
13459   for p in `eval "$output_verbose_link_cmd"`; do
13460     case $p in
13461
13462     -L* | -R* | -l*)
13463        # Some compilers place space between "-{L,R}" and the path.
13464        # Remove the space.
13465        if test $p = "-L" ||
13466           test $p = "-R"; then
13467          prev=$p
13468          continue
13469        else
13470          prev=
13471        fi
13472
13473        if test "$pre_test_object_deps_done" = no; then
13474          case $p in
13475          -L* | -R*)
13476            # Internal compiler library paths should come after those
13477            # provided the user.  The postdeps already come after the
13478            # user supplied libs so there is no need to process them.
13479            if test -z "$compiler_lib_search_path_CXX"; then
13480              compiler_lib_search_path_CXX="${prev}${p}"
13481            else
13482              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13483            fi
13484            ;;
13485          # The "-l" case would never come before the object being
13486          # linked, so don't bother handling this case.
13487          esac
13488        else
13489          if test -z "$postdeps_CXX"; then
13490            postdeps_CXX="${prev}${p}"
13491          else
13492            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13493          fi
13494        fi
13495        ;;
13496
13497     *.$objext)
13498        # This assumes that the test object file only shows up
13499        # once in the compiler output.
13500        if test "$p" = "conftest.$objext"; then
13501          pre_test_object_deps_done=yes
13502          continue
13503        fi
13504
13505        if test "$pre_test_object_deps_done" = no; then
13506          if test -z "$predep_objects_CXX"; then
13507            predep_objects_CXX="$p"
13508          else
13509            predep_objects_CXX="$predep_objects_CXX $p"
13510          fi
13511        else
13512          if test -z "$postdep_objects_CXX"; then
13513            postdep_objects_CXX="$p"
13514          else
13515            postdep_objects_CXX="$postdep_objects_CXX $p"
13516          fi
13517        fi
13518        ;;
13519
13520     *) ;; # Ignore the rest.
13521
13522     esac
13523   done
13524
13525   # Clean up.
13526   rm -f a.out a.exe
13527 else
13528   echo "libtool.m4: error: problem compiling CXX test program"
13529 fi
13530
13531 $RM -f confest.$objext
13532
13533 # PORTME: override above test on systems where it is broken
13534 case $host_os in
13535 interix[3-9]*)
13536   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13537   # hack all around it, let's just trust "g++" to DTRT.
13538   predep_objects_CXX=
13539   postdep_objects_CXX=
13540   postdeps_CXX=
13541   ;;
13542
13543 linux*)
13544   case `$CC -V 2>&1 | sed 5q` in
13545   *Sun\ C*)
13546     # Sun C++ 5.9
13547
13548     # The more standards-conforming stlport4 library is
13549     # incompatible with the Cstd library. Avoid specifying
13550     # it if it's in CXXFLAGS. Ignore libCrun as
13551     # -library=stlport4 depends on it.
13552     case " $CXX $CXXFLAGS " in
13553     *" -library=stlport4 "*)
13554       solaris_use_stlport4=yes
13555       ;;
13556     esac
13557
13558     if test "$solaris_use_stlport4" != yes; then
13559       postdeps_CXX='-library=Cstd -library=Crun'
13560     fi
13561     ;;
13562   esac
13563   ;;
13564
13565 solaris*)
13566   case $cc_basename in
13567   CC*)
13568     # The more standards-conforming stlport4 library is
13569     # incompatible with the Cstd library. Avoid specifying
13570     # it if it's in CXXFLAGS. Ignore libCrun as
13571     # -library=stlport4 depends on it.
13572     case " $CXX $CXXFLAGS " in
13573     *" -library=stlport4 "*)
13574       solaris_use_stlport4=yes
13575       ;;
13576     esac
13577
13578     # Adding this requires a known-good setup of shared libraries for
13579     # Sun compiler versions before 5.6, else PIC objects from an old
13580     # archive will be linked into the output, leading to subtle bugs.
13581     if test "$solaris_use_stlport4" != yes; then
13582       postdeps_CXX='-library=Cstd -library=Crun'
13583     fi
13584     ;;
13585   esac
13586   ;;
13587 esac
13588
13589
13590 case " $postdeps_CXX " in
13591 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13592 esac
13593  compiler_lib_search_dirs_CXX=
13594 if test -n "${compiler_lib_search_path_CXX}"; then
13595  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13596 fi
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628     lt_prog_compiler_wl_CXX=
13629 lt_prog_compiler_pic_CXX=
13630 lt_prog_compiler_static_CXX=
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13633 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13634
13635   # C++ specific cases for pic, static, wl, etc.
13636   if test "$GXX" = yes; then
13637     lt_prog_compiler_wl_CXX='-Wl,'
13638     lt_prog_compiler_static_CXX='-static'
13639
13640     case $host_os in
13641     aix*)
13642       # All AIX code is PIC.
13643       if test "$host_cpu" = ia64; then
13644         # AIX 5 now supports IA64 processor
13645         lt_prog_compiler_static_CXX='-Bstatic'
13646       fi
13647       ;;
13648
13649     amigaos*)
13650       case $host_cpu in
13651       powerpc)
13652             # see comment about AmigaOS4 .so support
13653             lt_prog_compiler_pic_CXX='-fPIC'
13654         ;;
13655       m68k)
13656             # FIXME: we need at least 68020 code to build shared libraries, but
13657             # adding the `-m68020' flag to GCC prevents building anything better,
13658             # like `-m68040'.
13659             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13660         ;;
13661       esac
13662       ;;
13663
13664     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13665       # PIC is the default for these OSes.
13666       ;;
13667     mingw* | cygwin* | os2* | pw32* | cegcc*)
13668       # This hack is so that the source file can tell whether it is being
13669       # built for inclusion in a dll (and should export symbols for example).
13670       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13671       # (--disable-auto-import) libraries
13672       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13673       ;;
13674     darwin* | rhapsody*)
13675       # PIC is the default on this platform
13676       # Common symbols not allowed in MH_DYLIB files
13677       lt_prog_compiler_pic_CXX='-fno-common'
13678       ;;
13679     *djgpp*)
13680       # DJGPP does not support shared libraries at all
13681       lt_prog_compiler_pic_CXX=
13682       ;;
13683     interix[3-9]*)
13684       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13685       # Instead, we relocate shared libraries at runtime.
13686       ;;
13687     sysv4*MP*)
13688       if test -d /usr/nec; then
13689         lt_prog_compiler_pic_CXX=-Kconform_pic
13690       fi
13691       ;;
13692     hpux*)
13693       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13694       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13695       # sets the default TLS model and affects inlining.
13696       case $host_cpu in
13697       hppa*64*)
13698         ;;
13699       *)
13700         lt_prog_compiler_pic_CXX='-fPIC'
13701         ;;
13702       esac
13703       ;;
13704     *qnx* | *nto*)
13705       # QNX uses GNU C++, but need to define -shared option too, otherwise
13706       # it will coredump.
13707       lt_prog_compiler_pic_CXX='-fPIC -shared'
13708       ;;
13709     *)
13710       lt_prog_compiler_pic_CXX='-fPIC'
13711       ;;
13712     esac
13713   else
13714     case $host_os in
13715       aix[4-9]*)
13716         # All AIX code is PIC.
13717         if test "$host_cpu" = ia64; then
13718           # AIX 5 now supports IA64 processor
13719           lt_prog_compiler_static_CXX='-Bstatic'
13720         else
13721           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13722         fi
13723         ;;
13724       chorus*)
13725         case $cc_basename in
13726         cxch68*)
13727           # Green Hills C++ Compiler
13728           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13729           ;;
13730         esac
13731         ;;
13732       dgux*)
13733         case $cc_basename in
13734           ec++*)
13735             lt_prog_compiler_pic_CXX='-KPIC'
13736             ;;
13737           ghcx*)
13738             # Green Hills C++ Compiler
13739             lt_prog_compiler_pic_CXX='-pic'
13740             ;;
13741           *)
13742             ;;
13743         esac
13744         ;;
13745       freebsd* | dragonfly*)
13746         # FreeBSD uses GNU C++
13747         ;;
13748       hpux9* | hpux10* | hpux11*)
13749         case $cc_basename in
13750           CC*)
13751             lt_prog_compiler_wl_CXX='-Wl,'
13752             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13753             if test "$host_cpu" != ia64; then
13754               lt_prog_compiler_pic_CXX='+Z'
13755             fi
13756             ;;
13757           aCC*)
13758             lt_prog_compiler_wl_CXX='-Wl,'
13759             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13760             case $host_cpu in
13761             hppa*64*|ia64*)
13762               # +Z the default
13763               ;;
13764             *)
13765               lt_prog_compiler_pic_CXX='+Z'
13766               ;;
13767             esac
13768             ;;
13769           *)
13770             ;;
13771         esac
13772         ;;
13773       interix*)
13774         # This is c89, which is MS Visual C++ (no shared libs)
13775         # Anyone wants to do a port?
13776         ;;
13777       irix5* | irix6* | nonstopux*)
13778         case $cc_basename in
13779           CC*)
13780             lt_prog_compiler_wl_CXX='-Wl,'
13781             lt_prog_compiler_static_CXX='-non_shared'
13782             # CC pic flag -KPIC is the default.
13783             ;;
13784           *)
13785             ;;
13786         esac
13787         ;;
13788       linux* | k*bsd*-gnu)
13789         case $cc_basename in
13790           KCC*)
13791             # KAI C++ Compiler
13792             lt_prog_compiler_wl_CXX='--backend -Wl,'
13793             lt_prog_compiler_pic_CXX='-fPIC'
13794             ;;
13795           ecpc* )
13796             # old Intel C++ for x86_64 which still supported -KPIC.
13797             lt_prog_compiler_wl_CXX='-Wl,'
13798             lt_prog_compiler_pic_CXX='-KPIC'
13799             lt_prog_compiler_static_CXX='-static'
13800             ;;
13801           icpc* )
13802             # Intel C++, used to be incompatible with GCC.
13803             # ICC 10 doesn't accept -KPIC any more.
13804             lt_prog_compiler_wl_CXX='-Wl,'
13805             lt_prog_compiler_pic_CXX='-fPIC'
13806             lt_prog_compiler_static_CXX='-static'
13807             ;;
13808           pgCC* | pgcpp*)
13809             # Portland Group C++ compiler
13810             lt_prog_compiler_wl_CXX='-Wl,'
13811             lt_prog_compiler_pic_CXX='-fpic'
13812             lt_prog_compiler_static_CXX='-Bstatic'
13813             ;;
13814           cxx*)
13815             # Compaq C++
13816             # Make sure the PIC flag is empty.  It appears that all Alpha
13817             # Linux and Compaq Tru64 Unix objects are PIC.
13818             lt_prog_compiler_pic_CXX=
13819             lt_prog_compiler_static_CXX='-non_shared'
13820             ;;
13821           xlc* | xlC*)
13822             # IBM XL 8.0 on PPC
13823             lt_prog_compiler_wl_CXX='-Wl,'
13824             lt_prog_compiler_pic_CXX='-qpic'
13825             lt_prog_compiler_static_CXX='-qstaticlink'
13826             ;;
13827           *)
13828             case `$CC -V 2>&1 | sed 5q` in
13829             *Sun\ C*)
13830               # Sun C++ 5.9
13831               lt_prog_compiler_pic_CXX='-KPIC'
13832               lt_prog_compiler_static_CXX='-Bstatic'
13833               lt_prog_compiler_wl_CXX='-Qoption ld '
13834               ;;
13835             esac
13836             ;;
13837         esac
13838         ;;
13839       lynxos*)
13840         ;;
13841       m88k*)
13842         ;;
13843       mvs*)
13844         case $cc_basename in
13845           cxx*)
13846             lt_prog_compiler_pic_CXX='-W c,exportall'
13847             ;;
13848           *)
13849             ;;
13850         esac
13851         ;;
13852       netbsd*)
13853         ;;
13854       *qnx* | *nto*)
13855         # QNX uses GNU C++, but need to define -shared option too, otherwise
13856         # it will coredump.
13857         lt_prog_compiler_pic_CXX='-fPIC -shared'
13858         ;;
13859       osf3* | osf4* | osf5*)
13860         case $cc_basename in
13861           KCC*)
13862             lt_prog_compiler_wl_CXX='--backend -Wl,'
13863             ;;
13864           RCC*)
13865             # Rational C++ 2.4.1
13866             lt_prog_compiler_pic_CXX='-pic'
13867             ;;
13868           cxx*)
13869             # Digital/Compaq C++
13870             lt_prog_compiler_wl_CXX='-Wl,'
13871             # Make sure the PIC flag is empty.  It appears that all Alpha
13872             # Linux and Compaq Tru64 Unix objects are PIC.
13873             lt_prog_compiler_pic_CXX=
13874             lt_prog_compiler_static_CXX='-non_shared'
13875             ;;
13876           *)
13877             ;;
13878         esac
13879         ;;
13880       psos*)
13881         ;;
13882       solaris*)
13883         case $cc_basename in
13884           CC*)
13885             # Sun C++ 4.2, 5.x and Centerline C++
13886             lt_prog_compiler_pic_CXX='-KPIC'
13887             lt_prog_compiler_static_CXX='-Bstatic'
13888             lt_prog_compiler_wl_CXX='-Qoption ld '
13889             ;;
13890           gcx*)
13891             # Green Hills C++ Compiler
13892             lt_prog_compiler_pic_CXX='-PIC'
13893             ;;
13894           *)
13895             ;;
13896         esac
13897         ;;
13898       sunos4*)
13899         case $cc_basename in
13900           CC*)
13901             # Sun C++ 4.x
13902             lt_prog_compiler_pic_CXX='-pic'
13903             lt_prog_compiler_static_CXX='-Bstatic'
13904             ;;
13905           lcc*)
13906             # Lucid
13907             lt_prog_compiler_pic_CXX='-pic'
13908             ;;
13909           *)
13910             ;;
13911         esac
13912         ;;
13913       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13914         case $cc_basename in
13915           CC*)
13916             lt_prog_compiler_wl_CXX='-Wl,'
13917             lt_prog_compiler_pic_CXX='-KPIC'
13918             lt_prog_compiler_static_CXX='-Bstatic'
13919             ;;
13920         esac
13921         ;;
13922       tandem*)
13923         case $cc_basename in
13924           NCC*)
13925             # NonStop-UX NCC 3.20
13926             lt_prog_compiler_pic_CXX='-KPIC'
13927             ;;
13928           *)
13929             ;;
13930         esac
13931         ;;
13932       vxworks*)
13933         ;;
13934       *)
13935         lt_prog_compiler_can_build_shared_CXX=no
13936         ;;
13937     esac
13938   fi
13939
13940 case $host_os in
13941   # For platforms which do not support PIC, -DPIC is meaningless:
13942   *djgpp*)
13943     lt_prog_compiler_pic_CXX=
13944     ;;
13945   *)
13946     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13947     ;;
13948 esac
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13950 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13951
13952
13953
13954 #
13955 # Check to make sure the PIC flag actually works.
13956 #
13957 if test -n "$lt_prog_compiler_pic_CXX"; then
13958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13959 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13960 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13961   $as_echo_n "(cached) " >&6
13962 else
13963   lt_cv_prog_compiler_pic_works_CXX=no
13964    ac_outfile=conftest.$ac_objext
13965    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13966    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13967    # Insert the option either (1) after the last *FLAGS variable, or
13968    # (2) before a word containing "conftest.", or (3) at the end.
13969    # Note that $ac_compile itself does not contain backslashes and begins
13970    # with a dollar sign (not a hyphen), so the echo should work correctly.
13971    # The option is referenced via a variable to avoid confusing sed.
13972    lt_compile=`echo "$ac_compile" | $SED \
13973    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13974    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13975    -e 's:$: $lt_compiler_flag:'`
13976    (eval echo "\"\$as_me:13976: $lt_compile\"" >&5)
13977    (eval "$lt_compile" 2>conftest.err)
13978    ac_status=$?
13979    cat conftest.err >&5
13980    echo "$as_me:13980: \$? = $ac_status" >&5
13981    if (exit $ac_status) && test -s "$ac_outfile"; then
13982      # The compiler can only warn and ignore the option if not recognized
13983      # So say no if there are warnings other than the usual output.
13984      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13985      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13986      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13987        lt_cv_prog_compiler_pic_works_CXX=yes
13988      fi
13989    fi
13990    $RM conftest*
13991
13992 fi
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13994 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13995
13996 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13997     case $lt_prog_compiler_pic_CXX in
13998      "" | " "*) ;;
13999      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14000      esac
14001 else
14002     lt_prog_compiler_pic_CXX=
14003      lt_prog_compiler_can_build_shared_CXX=no
14004 fi
14005
14006 fi
14007
14008
14009
14010 #
14011 # Check to make sure the static flag actually works.
14012 #
14013 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14015 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14016 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14017   $as_echo_n "(cached) " >&6
14018 else
14019   lt_cv_prog_compiler_static_works_CXX=no
14020    save_LDFLAGS="$LDFLAGS"
14021    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14022    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14023    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14024      # The linker can only warn and ignore the option if not recognized
14025      # So say no if there are warnings
14026      if test -s conftest.err; then
14027        # Append any errors to the config.log.
14028        cat conftest.err 1>&5
14029        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14030        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14031        if diff conftest.exp conftest.er2 >/dev/null; then
14032          lt_cv_prog_compiler_static_works_CXX=yes
14033        fi
14034      else
14035        lt_cv_prog_compiler_static_works_CXX=yes
14036      fi
14037    fi
14038    $RM -r conftest*
14039    LDFLAGS="$save_LDFLAGS"
14040
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14043 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14044
14045 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14046     :
14047 else
14048     lt_prog_compiler_static_CXX=
14049 fi
14050
14051
14052
14053
14054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14056 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14057   $as_echo_n "(cached) " >&6
14058 else
14059   lt_cv_prog_compiler_c_o_CXX=no
14060    $RM -r conftest 2>/dev/null
14061    mkdir conftest
14062    cd conftest
14063    mkdir out
14064    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14065
14066    lt_compiler_flag="-o out/conftest2.$ac_objext"
14067    # Insert the option either (1) after the last *FLAGS variable, or
14068    # (2) before a word containing "conftest.", or (3) at the end.
14069    # Note that $ac_compile itself does not contain backslashes and begins
14070    # with a dollar sign (not a hyphen), so the echo should work correctly.
14071    lt_compile=`echo "$ac_compile" | $SED \
14072    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14073    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14074    -e 's:$: $lt_compiler_flag:'`
14075    (eval echo "\"\$as_me:14075: $lt_compile\"" >&5)
14076    (eval "$lt_compile" 2>out/conftest.err)
14077    ac_status=$?
14078    cat out/conftest.err >&5
14079    echo "$as_me:14079: \$? = $ac_status" >&5
14080    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14081    then
14082      # The compiler can only warn and ignore the option if not recognized
14083      # So say no if there are warnings
14084      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14085      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14086      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14087        lt_cv_prog_compiler_c_o_CXX=yes
14088      fi
14089    fi
14090    chmod u+w . 2>&5
14091    $RM conftest*
14092    # SGI C++ compiler will create directory out/ii_files/ for
14093    # template instantiation
14094    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14095    $RM out/* && rmdir out
14096    cd ..
14097    $RM -r conftest
14098    $RM conftest*
14099
14100 fi
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14102 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14103
14104
14105
14106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14107 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14108 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14109   $as_echo_n "(cached) " >&6
14110 else
14111   lt_cv_prog_compiler_c_o_CXX=no
14112    $RM -r conftest 2>/dev/null
14113    mkdir conftest
14114    cd conftest
14115    mkdir out
14116    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14117
14118    lt_compiler_flag="-o out/conftest2.$ac_objext"
14119    # Insert the option either (1) after the last *FLAGS variable, or
14120    # (2) before a word containing "conftest.", or (3) at the end.
14121    # Note that $ac_compile itself does not contain backslashes and begins
14122    # with a dollar sign (not a hyphen), so the echo should work correctly.
14123    lt_compile=`echo "$ac_compile" | $SED \
14124    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14126    -e 's:$: $lt_compiler_flag:'`
14127    (eval echo "\"\$as_me:14127: $lt_compile\"" >&5)
14128    (eval "$lt_compile" 2>out/conftest.err)
14129    ac_status=$?
14130    cat out/conftest.err >&5
14131    echo "$as_me:14131: \$? = $ac_status" >&5
14132    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14133    then
14134      # The compiler can only warn and ignore the option if not recognized
14135      # So say no if there are warnings
14136      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14137      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14138      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14139        lt_cv_prog_compiler_c_o_CXX=yes
14140      fi
14141    fi
14142    chmod u+w . 2>&5
14143    $RM conftest*
14144    # SGI C++ compiler will create directory out/ii_files/ for
14145    # template instantiation
14146    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14147    $RM out/* && rmdir out
14148    cd ..
14149    $RM -r conftest
14150    $RM conftest*
14151
14152 fi
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14154 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14155
14156
14157
14158
14159 hard_links="nottested"
14160 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14161   # do not overwrite the value of need_locks provided by the user
14162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14163 $as_echo_n "checking if we can lock with hard links... " >&6; }
14164   hard_links=yes
14165   $RM conftest*
14166   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14167   touch conftest.a
14168   ln conftest.a conftest.b 2>&5 || hard_links=no
14169   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14171 $as_echo "$hard_links" >&6; }
14172   if test "$hard_links" = no; then
14173     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14174 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14175     need_locks=warn
14176   fi
14177 else
14178   need_locks=no
14179 fi
14180
14181
14182
14183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14184 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14185
14186   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14187   case $host_os in
14188   aix[4-9]*)
14189     # If we're using GNU nm, then we don't want the "-C" option.
14190     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14191     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14192       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14193     else
14194       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14195     fi
14196     ;;
14197   pw32*)
14198     export_symbols_cmds_CXX="$ltdll_cmds"
14199   ;;
14200   cygwin* | mingw* | cegcc*)
14201     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14202   ;;
14203   *)
14204     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14205   ;;
14206   esac
14207   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14208
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14210 $as_echo "$ld_shlibs_CXX" >&6; }
14211 test "$ld_shlibs_CXX" = no && can_build_shared=no
14212
14213 with_gnu_ld_CXX=$with_gnu_ld
14214
14215
14216
14217
14218
14219
14220 #
14221 # Do we need to explicitly link libc?
14222 #
14223 case "x$archive_cmds_need_lc_CXX" in
14224 x|xyes)
14225   # Assume -lc should be added
14226   archive_cmds_need_lc_CXX=yes
14227
14228   if test "$enable_shared" = yes && test "$GCC" = yes; then
14229     case $archive_cmds_CXX in
14230     *'~'*)
14231       # FIXME: we may have to deal with multi-command sequences.
14232       ;;
14233     '$CC '*)
14234       # Test whether the compiler implicitly links with -lc since on some
14235       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14236       # to ld, don't add -lc before -lgcc.
14237       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14238 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14239       $RM conftest*
14240       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14241
14242       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14243   (eval $ac_compile) 2>&5
14244   ac_status=$?
14245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246   test $ac_status = 0; } 2>conftest.err; then
14247         soname=conftest
14248         lib=conftest
14249         libobjs=conftest.$ac_objext
14250         deplibs=
14251         wl=$lt_prog_compiler_wl_CXX
14252         pic_flag=$lt_prog_compiler_pic_CXX
14253         compiler_flags=-v
14254         linker_flags=-v
14255         verstring=
14256         output_objdir=.
14257         libname=conftest
14258         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14259         allow_undefined_flag_CXX=
14260         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14261   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14262   ac_status=$?
14263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14264   test $ac_status = 0; }
14265         then
14266           archive_cmds_need_lc_CXX=no
14267         else
14268           archive_cmds_need_lc_CXX=yes
14269         fi
14270         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14271       else
14272         cat conftest.err 1>&5
14273       fi
14274       $RM conftest*
14275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14276 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14277       ;;
14278     esac
14279   fi
14280   ;;
14281 esac
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14347 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14348
14349 library_names_spec=
14350 libname_spec='lib$name'
14351 soname_spec=
14352 shrext_cmds=".so"
14353 postinstall_cmds=
14354 postuninstall_cmds=
14355 finish_cmds=
14356 finish_eval=
14357 shlibpath_var=
14358 shlibpath_overrides_runpath=unknown
14359 version_type=none
14360 dynamic_linker="$host_os ld.so"
14361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14362 need_lib_prefix=unknown
14363 hardcode_into_libs=no
14364
14365 # when you set need_version to no, make sure it does not cause -set_version
14366 # flags to be left without arguments
14367 need_version=unknown
14368
14369 case $host_os in
14370 aix3*)
14371   version_type=linux
14372   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14373   shlibpath_var=LIBPATH
14374
14375   # AIX 3 has no versioning support, so we append a major version to the name.
14376   soname_spec='${libname}${release}${shared_ext}$major'
14377   ;;
14378
14379 aix[4-9]*)
14380   version_type=linux
14381   need_lib_prefix=no
14382   need_version=no
14383   hardcode_into_libs=yes
14384   if test "$host_cpu" = ia64; then
14385     # AIX 5 supports IA64
14386     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14387     shlibpath_var=LD_LIBRARY_PATH
14388   else
14389     # With GCC up to 2.95.x, collect2 would create an import file
14390     # for dependence libraries.  The import file would start with
14391     # the line `#! .'.  This would cause the generated library to
14392     # depend on `.', always an invalid library.  This was fixed in
14393     # development snapshots of GCC prior to 3.0.
14394     case $host_os in
14395       aix4 | aix4.[01] | aix4.[01].*)
14396       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14397            echo ' yes '
14398            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14399         :
14400       else
14401         can_build_shared=no
14402       fi
14403       ;;
14404     esac
14405     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14406     # soname into executable. Probably we can add versioning support to
14407     # collect2, so additional links can be useful in future.
14408     if test "$aix_use_runtimelinking" = yes; then
14409       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14410       # instead of lib<name>.a to let people know that these are not
14411       # typical AIX shared libraries.
14412       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413     else
14414       # We preserve .a as extension for shared libraries through AIX4.2
14415       # and later when we are not doing run time linking.
14416       library_names_spec='${libname}${release}.a $libname.a'
14417       soname_spec='${libname}${release}${shared_ext}$major'
14418     fi
14419     shlibpath_var=LIBPATH
14420   fi
14421   ;;
14422
14423 amigaos*)
14424   case $host_cpu in
14425   powerpc)
14426     # Since July 2007 AmigaOS4 officially supports .so libraries.
14427     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429     ;;
14430   m68k)
14431     library_names_spec='$libname.ixlibrary $libname.a'
14432     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14433     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'
14434     ;;
14435   esac
14436   ;;
14437
14438 beos*)
14439   library_names_spec='${libname}${shared_ext}'
14440   dynamic_linker="$host_os ld.so"
14441   shlibpath_var=LIBRARY_PATH
14442   ;;
14443
14444 bsdi[45]*)
14445   version_type=linux
14446   need_version=no
14447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448   soname_spec='${libname}${release}${shared_ext}$major'
14449   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14450   shlibpath_var=LD_LIBRARY_PATH
14451   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14452   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14453   # the default ld.so.conf also contains /usr/contrib/lib and
14454   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14455   # libtool to hard-code these into programs
14456   ;;
14457
14458 cygwin* | mingw* | pw32* | cegcc*)
14459   version_type=windows
14460   shrext_cmds=".dll"
14461   need_version=no
14462   need_lib_prefix=no
14463
14464   case $GCC,$host_os in
14465   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14466     library_names_spec='$libname.dll.a'
14467     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14468     postinstall_cmds='base_file=`basename \${file}`~
14469       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14470       dldir=$destdir/`dirname \$dlpath`~
14471       test -d \$dldir || mkdir -p \$dldir~
14472       $install_prog $dir/$dlname \$dldir/$dlname~
14473       chmod a+x \$dldir/$dlname~
14474       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14475         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14476       fi'
14477     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14478       dlpath=$dir/\$dldll~
14479        $RM \$dlpath'
14480     shlibpath_overrides_runpath=yes
14481
14482     case $host_os in
14483     cygwin*)
14484       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14485       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14486       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14487       ;;
14488     mingw* | cegcc*)
14489       # MinGW DLLs use traditional 'lib' prefix
14490       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14491       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14492       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14493         # It is most probably a Windows format PATH printed by
14494         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14495         # path with ; separators, and with drive letters. We can handle the
14496         # drive letters (cygwin fileutils understands them), so leave them,
14497         # especially as we might pass files found there to a mingw objdump,
14498         # which wouldn't understand a cygwinified path. Ahh.
14499         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14500       else
14501         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14502       fi
14503       ;;
14504     pw32*)
14505       # pw32 DLLs use 'pw' prefix rather than 'lib'
14506       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14507       ;;
14508     esac
14509     ;;
14510
14511   *)
14512     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14513     ;;
14514   esac
14515   dynamic_linker='Win32 ld.exe'
14516   # FIXME: first we should search . and the directory the executable is in
14517   shlibpath_var=PATH
14518   ;;
14519
14520 darwin* | rhapsody*)
14521   dynamic_linker="$host_os dyld"
14522   version_type=darwin
14523   need_lib_prefix=no
14524   need_version=no
14525   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14526   soname_spec='${libname}${release}${major}$shared_ext'
14527   shlibpath_overrides_runpath=yes
14528   shlibpath_var=DYLD_LIBRARY_PATH
14529   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14530
14531   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14532   ;;
14533
14534 dgux*)
14535   version_type=linux
14536   need_lib_prefix=no
14537   need_version=no
14538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14539   soname_spec='${libname}${release}${shared_ext}$major'
14540   shlibpath_var=LD_LIBRARY_PATH
14541   ;;
14542
14543 freebsd1*)
14544   dynamic_linker=no
14545   ;;
14546
14547 freebsd* | dragonfly*)
14548   # DragonFly does not have aout.  When/if they implement a new
14549   # versioning mechanism, adjust this.
14550   if test -x /usr/bin/objformat; then
14551     objformat=`/usr/bin/objformat`
14552   else
14553     case $host_os in
14554     freebsd[123]*) objformat=aout ;;
14555     *) objformat=elf ;;
14556     esac
14557   fi
14558   version_type=freebsd-$objformat
14559   case $version_type in
14560     freebsd-elf*)
14561       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14562       need_version=no
14563       need_lib_prefix=no
14564       ;;
14565     freebsd-*)
14566       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14567       need_version=yes
14568       ;;
14569   esac
14570   shlibpath_var=LD_LIBRARY_PATH
14571   case $host_os in
14572   freebsd2*)
14573     shlibpath_overrides_runpath=yes
14574     ;;
14575   freebsd3.[01]* | freebsdelf3.[01]*)
14576     shlibpath_overrides_runpath=yes
14577     hardcode_into_libs=yes
14578     ;;
14579   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14580   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14581     shlibpath_overrides_runpath=no
14582     hardcode_into_libs=yes
14583     ;;
14584   *) # from 4.6 on, and DragonFly
14585     shlibpath_overrides_runpath=yes
14586     hardcode_into_libs=yes
14587     ;;
14588   esac
14589   ;;
14590
14591 gnu*)
14592   version_type=linux
14593   need_lib_prefix=no
14594   need_version=no
14595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14596   soname_spec='${libname}${release}${shared_ext}$major'
14597   shlibpath_var=LD_LIBRARY_PATH
14598   hardcode_into_libs=yes
14599   ;;
14600
14601 hpux9* | hpux10* | hpux11*)
14602   # Give a soname corresponding to the major version so that dld.sl refuses to
14603   # link against other versions.
14604   version_type=sunos
14605   need_lib_prefix=no
14606   need_version=no
14607   case $host_cpu in
14608   ia64*)
14609     shrext_cmds='.so'
14610     hardcode_into_libs=yes
14611     dynamic_linker="$host_os dld.so"
14612     shlibpath_var=LD_LIBRARY_PATH
14613     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615     soname_spec='${libname}${release}${shared_ext}$major'
14616     if test "X$HPUX_IA64_MODE" = X32; then
14617       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14618     else
14619       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14620     fi
14621     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14622     ;;
14623   hppa*64*)
14624     shrext_cmds='.sl'
14625     hardcode_into_libs=yes
14626     dynamic_linker="$host_os dld.sl"
14627     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14628     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630     soname_spec='${libname}${release}${shared_ext}$major'
14631     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14632     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14633     ;;
14634   *)
14635     shrext_cmds='.sl'
14636     dynamic_linker="$host_os dld.sl"
14637     shlibpath_var=SHLIB_PATH
14638     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640     soname_spec='${libname}${release}${shared_ext}$major'
14641     ;;
14642   esac
14643   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14644   postinstall_cmds='chmod 555 $lib'
14645   ;;
14646
14647 interix[3-9]*)
14648   version_type=linux
14649   need_lib_prefix=no
14650   need_version=no
14651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14652   soname_spec='${libname}${release}${shared_ext}$major'
14653   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14654   shlibpath_var=LD_LIBRARY_PATH
14655   shlibpath_overrides_runpath=no
14656   hardcode_into_libs=yes
14657   ;;
14658
14659 irix5* | irix6* | nonstopux*)
14660   case $host_os in
14661     nonstopux*) version_type=nonstopux ;;
14662     *)
14663         if test "$lt_cv_prog_gnu_ld" = yes; then
14664                 version_type=linux
14665         else
14666                 version_type=irix
14667         fi ;;
14668   esac
14669   need_lib_prefix=no
14670   need_version=no
14671   soname_spec='${libname}${release}${shared_ext}$major'
14672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14673   case $host_os in
14674   irix5* | nonstopux*)
14675     libsuff= shlibsuff=
14676     ;;
14677   *)
14678     case $LD in # libtool.m4 will add one of these switches to LD
14679     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14680       libsuff= shlibsuff= libmagic=32-bit;;
14681     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14682       libsuff=32 shlibsuff=N32 libmagic=N32;;
14683     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14684       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14685     *) libsuff= shlibsuff= libmagic=never-match;;
14686     esac
14687     ;;
14688   esac
14689   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14690   shlibpath_overrides_runpath=no
14691   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14692   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14693   hardcode_into_libs=yes
14694   ;;
14695
14696 # No shared lib support for Linux oldld, aout, or coff.
14697 linux*oldld* | linux*aout* | linux*coff*)
14698   dynamic_linker=no
14699   ;;
14700
14701 # This must be Linux ELF.
14702 linux* | k*bsd*-gnu)
14703   version_type=linux
14704   need_lib_prefix=no
14705   need_version=no
14706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707   soname_spec='${libname}${release}${shared_ext}$major'
14708   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14709   shlibpath_var=LD_LIBRARY_PATH
14710   shlibpath_overrides_runpath=no
14711   # Some binutils ld are patched to set DT_RUNPATH
14712   save_LDFLAGS=$LDFLAGS
14713   save_libdir=$libdir
14714   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14715        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h.  */
14718
14719 int
14720 main ()
14721 {
14722
14723   ;
14724   return 0;
14725 }
14726 _ACEOF
14727 if ac_fn_cxx_try_link "$LINENO"; then :
14728   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14729   shlibpath_overrides_runpath=yes
14730 fi
14731 fi
14732 rm -f core conftest.err conftest.$ac_objext \
14733     conftest$ac_exeext conftest.$ac_ext
14734   LDFLAGS=$save_LDFLAGS
14735   libdir=$save_libdir
14736
14737   # This implies no fast_install, which is unacceptable.
14738   # Some rework will be needed to allow for fast_install
14739   # before this can be enabled.
14740   hardcode_into_libs=yes
14741
14742   # Append ld.so.conf contents to the search path
14743   if test -f /etc/ld.so.conf; then
14744     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' ' '`
14745     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14746   fi
14747
14748   # We used to test for /lib/ld.so.1 and disable shared libraries on
14749   # powerpc, because MkLinux only supported shared libraries with the
14750   # GNU dynamic linker.  Since this was broken with cross compilers,
14751   # most powerpc-linux boxes support dynamic linking these days and
14752   # people can always --disable-shared, the test was removed, and we
14753   # assume the GNU/Linux dynamic linker is in use.
14754   dynamic_linker='GNU/Linux ld.so'
14755   ;;
14756
14757 netbsd*)
14758   version_type=sunos
14759   need_lib_prefix=no
14760   need_version=no
14761   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14763     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14764     dynamic_linker='NetBSD (a.out) ld.so'
14765   else
14766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14767     soname_spec='${libname}${release}${shared_ext}$major'
14768     dynamic_linker='NetBSD ld.elf_so'
14769   fi
14770   shlibpath_var=LD_LIBRARY_PATH
14771   shlibpath_overrides_runpath=yes
14772   hardcode_into_libs=yes
14773   ;;
14774
14775 newsos6)
14776   version_type=linux
14777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778   shlibpath_var=LD_LIBRARY_PATH
14779   shlibpath_overrides_runpath=yes
14780   ;;
14781
14782 *nto* | *qnx*)
14783   version_type=qnx
14784   need_lib_prefix=no
14785   need_version=no
14786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787   soname_spec='${libname}${release}${shared_ext}$major'
14788   shlibpath_var=LD_LIBRARY_PATH
14789   shlibpath_overrides_runpath=no
14790   hardcode_into_libs=yes
14791   dynamic_linker='ldqnx.so'
14792   ;;
14793
14794 openbsd*)
14795   version_type=sunos
14796   sys_lib_dlsearch_path_spec="/usr/lib"
14797   need_lib_prefix=no
14798   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14799   case $host_os in
14800     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14801     *)                          need_version=no  ;;
14802   esac
14803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14804   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14805   shlibpath_var=LD_LIBRARY_PATH
14806   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14807     case $host_os in
14808       openbsd2.[89] | openbsd2.[89].*)
14809         shlibpath_overrides_runpath=no
14810         ;;
14811       *)
14812         shlibpath_overrides_runpath=yes
14813         ;;
14814       esac
14815   else
14816     shlibpath_overrides_runpath=yes
14817   fi
14818   ;;
14819
14820 os2*)
14821   libname_spec='$name'
14822   shrext_cmds=".dll"
14823   need_lib_prefix=no
14824   library_names_spec='$libname${shared_ext} $libname.a'
14825   dynamic_linker='OS/2 ld.exe'
14826   shlibpath_var=LIBPATH
14827   ;;
14828
14829 osf3* | osf4* | osf5*)
14830   version_type=osf
14831   need_lib_prefix=no
14832   need_version=no
14833   soname_spec='${libname}${release}${shared_ext}$major'
14834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835   shlibpath_var=LD_LIBRARY_PATH
14836   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14837   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14838   ;;
14839
14840 rdos*)
14841   dynamic_linker=no
14842   ;;
14843
14844 solaris*)
14845   version_type=linux
14846   need_lib_prefix=no
14847   need_version=no
14848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849   soname_spec='${libname}${release}${shared_ext}$major'
14850   shlibpath_var=LD_LIBRARY_PATH
14851   shlibpath_overrides_runpath=yes
14852   hardcode_into_libs=yes
14853   # ldd complains unless libraries are executable
14854   postinstall_cmds='chmod +x $lib'
14855   ;;
14856
14857 sunos4*)
14858   version_type=sunos
14859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14860   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14861   shlibpath_var=LD_LIBRARY_PATH
14862   shlibpath_overrides_runpath=yes
14863   if test "$with_gnu_ld" = yes; then
14864     need_lib_prefix=no
14865   fi
14866   need_version=yes
14867   ;;
14868
14869 sysv4 | sysv4.3*)
14870   version_type=linux
14871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872   soname_spec='${libname}${release}${shared_ext}$major'
14873   shlibpath_var=LD_LIBRARY_PATH
14874   case $host_vendor in
14875     sni)
14876       shlibpath_overrides_runpath=no
14877       need_lib_prefix=no
14878       runpath_var=LD_RUN_PATH
14879       ;;
14880     siemens)
14881       need_lib_prefix=no
14882       ;;
14883     motorola)
14884       need_lib_prefix=no
14885       need_version=no
14886       shlibpath_overrides_runpath=no
14887       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14888       ;;
14889   esac
14890   ;;
14891
14892 sysv4*MP*)
14893   if test -d /usr/nec ;then
14894     version_type=linux
14895     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14896     soname_spec='$libname${shared_ext}.$major'
14897     shlibpath_var=LD_LIBRARY_PATH
14898   fi
14899   ;;
14900
14901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14902   version_type=freebsd-elf
14903   need_lib_prefix=no
14904   need_version=no
14905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14906   soname_spec='${libname}${release}${shared_ext}$major'
14907   shlibpath_var=LD_LIBRARY_PATH
14908   shlibpath_overrides_runpath=yes
14909   hardcode_into_libs=yes
14910   if test "$with_gnu_ld" = yes; then
14911     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14912   else
14913     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14914     case $host_os in
14915       sco3.2v5*)
14916         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14917         ;;
14918     esac
14919   fi
14920   sys_lib_dlsearch_path_spec='/usr/lib'
14921   ;;
14922
14923 tpf*)
14924   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14925   version_type=linux
14926   need_lib_prefix=no
14927   need_version=no
14928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929   shlibpath_var=LD_LIBRARY_PATH
14930   shlibpath_overrides_runpath=no
14931   hardcode_into_libs=yes
14932   ;;
14933
14934 uts4*)
14935   version_type=linux
14936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937   soname_spec='${libname}${release}${shared_ext}$major'
14938   shlibpath_var=LD_LIBRARY_PATH
14939   ;;
14940
14941 *)
14942   dynamic_linker=no
14943   ;;
14944 esac
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14946 $as_echo "$dynamic_linker" >&6; }
14947 test "$dynamic_linker" = no && can_build_shared=no
14948
14949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14950 if test "$GCC" = yes; then
14951   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14952 fi
14953
14954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14955   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14956 fi
14957 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14958   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14959 fi
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14997 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14998 hardcode_action_CXX=
14999 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15000    test -n "$runpath_var_CXX" ||
15001    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15002
15003   # We can hardcode non-existent directories.
15004   if test "$hardcode_direct_CXX" != no &&
15005      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15006      # have to relink, otherwise we might link with an installed library
15007      # when we should be linking with a yet-to-be-installed one
15008      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15009      test "$hardcode_minus_L_CXX" != no; then
15010     # Linking always hardcodes the temporary library directory.
15011     hardcode_action_CXX=relink
15012   else
15013     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15014     hardcode_action_CXX=immediate
15015   fi
15016 else
15017   # We cannot hardcode anything, or else we can only hardcode existing
15018   # directories.
15019   hardcode_action_CXX=unsupported
15020 fi
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15022 $as_echo "$hardcode_action_CXX" >&6; }
15023
15024 if test "$hardcode_action_CXX" = relink ||
15025    test "$inherit_rpath_CXX" = yes; then
15026   # Fast installation is not supported
15027   enable_fast_install=no
15028 elif test "$shlibpath_overrides_runpath" = yes ||
15029      test "$enable_shared" = no; then
15030   # Fast installation is not necessary
15031   enable_fast_install=needless
15032 fi
15033
15034
15035
15036
15037
15038
15039
15040   fi # test -n "$compiler"
15041
15042   CC=$lt_save_CC
15043   LDCXX=$LD
15044   LD=$lt_save_LD
15045   GCC=$lt_save_GCC
15046   with_gnu_ld=$lt_save_with_gnu_ld
15047   lt_cv_path_LDCXX=$lt_cv_path_LD
15048   lt_cv_path_LD=$lt_save_path_LD
15049   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15050   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15051 fi # test "$_lt_caught_CXX_error" != yes
15052
15053 ac_ext=c
15054 ac_cpp='$CPP $CPPFLAGS'
15055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071         ac_config_commands="$ac_config_commands libtool"
15072
15073
15074
15075
15076 # Only expand once:
15077
15078
15079 #
15080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15081 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15082 if test "${ac_cv_c_bigendian+set}" = set; then :
15083   $as_echo_n "(cached) " >&6
15084 else
15085   ac_cv_c_bigendian=unknown
15086     # See if we're dealing with a universal compiler.
15087     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h.  */
15089 #ifndef __APPLE_CC__
15090                not a universal capable compiler
15091              #endif
15092              typedef int dummy;
15093
15094 _ACEOF
15095 if ac_fn_c_try_compile "$LINENO"; then :
15096
15097         # Check for potential -arch flags.  It is not universal unless
15098         # there are at least two -arch flags with different values.
15099         ac_arch=
15100         ac_prev=
15101         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15102          if test -n "$ac_prev"; then
15103            case $ac_word in
15104              i?86 | x86_64 | ppc | ppc64)
15105                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15106                  ac_arch=$ac_word
15107                else
15108                  ac_cv_c_bigendian=universal
15109                  break
15110                fi
15111                ;;
15112            esac
15113            ac_prev=
15114          elif test "x$ac_word" = "x-arch"; then
15115            ac_prev=arch
15116          fi
15117        done
15118 fi
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120     if test $ac_cv_c_bigendian = unknown; then
15121       # See if sys/param.h defines the BYTE_ORDER macro.
15122       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h.  */
15124 #include <sys/types.h>
15125              #include <sys/param.h>
15126
15127 int
15128 main ()
15129 {
15130 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15131                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15132                      && LITTLE_ENDIAN)
15133               bogus endian macros
15134              #endif
15135
15136   ;
15137   return 0;
15138 }
15139 _ACEOF
15140 if ac_fn_c_try_compile "$LINENO"; then :
15141   # It does; now see whether it defined to BIG_ENDIAN or not.
15142          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h.  */
15144 #include <sys/types.h>
15145                 #include <sys/param.h>
15146
15147 int
15148 main ()
15149 {
15150 #if BYTE_ORDER != BIG_ENDIAN
15151                  not big endian
15152                 #endif
15153
15154   ;
15155   return 0;
15156 }
15157 _ACEOF
15158 if ac_fn_c_try_compile "$LINENO"; then :
15159   ac_cv_c_bigendian=yes
15160 else
15161   ac_cv_c_bigendian=no
15162 fi
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 fi
15165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15166     fi
15167     if test $ac_cv_c_bigendian = unknown; then
15168       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15169       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h.  */
15171 #include <limits.h>
15172
15173 int
15174 main ()
15175 {
15176 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15177               bogus endian macros
15178              #endif
15179
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 if ac_fn_c_try_compile "$LINENO"; then :
15185   # It does; now see whether it defined to _BIG_ENDIAN or not.
15186          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h.  */
15188 #include <limits.h>
15189
15190 int
15191 main ()
15192 {
15193 #ifndef _BIG_ENDIAN
15194                  not big endian
15195                 #endif
15196
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 if ac_fn_c_try_compile "$LINENO"; then :
15202   ac_cv_c_bigendian=yes
15203 else
15204   ac_cv_c_bigendian=no
15205 fi
15206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 fi
15208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209     fi
15210     if test $ac_cv_c_bigendian = unknown; then
15211       # Compile a test program.
15212       if test "$cross_compiling" = yes; then :
15213   # Try to guess by grepping values from an object file.
15214          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h.  */
15216 short int ascii_mm[] =
15217                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15218                 short int ascii_ii[] =
15219                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15220                 int use_ascii (int i) {
15221                   return ascii_mm[i] + ascii_ii[i];
15222                 }
15223                 short int ebcdic_ii[] =
15224                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15225                 short int ebcdic_mm[] =
15226                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15227                 int use_ebcdic (int i) {
15228                   return ebcdic_mm[i] + ebcdic_ii[i];
15229                 }
15230                 extern int foo;
15231
15232 int
15233 main ()
15234 {
15235 return use_ascii (foo) == use_ebcdic (foo);
15236   ;
15237   return 0;
15238 }
15239 _ACEOF
15240 if ac_fn_c_try_compile "$LINENO"; then :
15241   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15242               ac_cv_c_bigendian=yes
15243             fi
15244             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15245               if test "$ac_cv_c_bigendian" = unknown; then
15246                 ac_cv_c_bigendian=no
15247               else
15248                 # finding both strings is unlikely to happen, but who knows?
15249                 ac_cv_c_bigendian=unknown
15250               fi
15251             fi
15252 fi
15253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15254 else
15255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h.  */
15257 $ac_includes_default
15258 int
15259 main ()
15260 {
15261
15262              /* Are we little or big endian?  From Harbison&Steele.  */
15263              union
15264              {
15265                long int l;
15266                char c[sizeof (long int)];
15267              } u;
15268              u.l = 1;
15269              return u.c[sizeof (long int) - 1] == 1;
15270
15271   ;
15272   return 0;
15273 }
15274 _ACEOF
15275 if ac_fn_c_try_run "$LINENO"; then :
15276   ac_cv_c_bigendian=no
15277 else
15278   ac_cv_c_bigendian=yes
15279 fi
15280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15281   conftest.$ac_objext conftest.beam conftest.$ac_ext
15282 fi
15283
15284     fi
15285 fi
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15287 $as_echo "$ac_cv_c_bigendian" >&6; }
15288  case $ac_cv_c_bigendian in #(
15289    yes)
15290      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15291 ;; #(
15292    no)
15293       ;; #(
15294    universal)
15295
15296 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15297
15298      ;; #(
15299    *)
15300      as_fn_error "unknown endianness
15301  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15302  esac
15303
15304 #
15305 LDLIBS=""
15306 #
15307 LIB_MATH=""
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15309 $as_echo_n "checking for sqrt in -lm... " >&6; }
15310 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
15311   $as_echo_n "(cached) " >&6
15312 else
15313   ac_check_lib_save_LIBS=$LIBS
15314 LIBS="-lm  $LIBS"
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h.  */
15317
15318 /* Override any GCC internal prototype to avoid an error.
15319    Use char because int might match the return type of a GCC
15320    builtin and then its argument prototype would still apply.  */
15321 #ifdef __cplusplus
15322 extern "C"
15323 #endif
15324 char sqrt ();
15325 int
15326 main ()
15327 {
15328 return sqrt ();
15329   ;
15330   return 0;
15331 }
15332 _ACEOF
15333 if ac_fn_c_try_link "$LINENO"; then :
15334   ac_cv_lib_m_sqrt=yes
15335 else
15336   ac_cv_lib_m_sqrt=no
15337 fi
15338 rm -f core conftest.err conftest.$ac_objext \
15339     conftest$ac_exeext conftest.$ac_ext
15340 LIBS=$ac_check_lib_save_LIBS
15341 fi
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15343 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15344 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
15345   LIB_MATH="-lm"
15346 fi
15347
15348 LDLIBS=""
15349 #
15350 # Extract the first word of "pkg-config", so it can be a program name with args.
15351 set dummy pkg-config; ac_word=$2
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15353 $as_echo_n "checking for $ac_word... " >&6; }
15354 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
15355   $as_echo_n "(cached) " >&6
15356 else
15357   case $PKGCONFIG in
15358   [\\/]* | ?:[\\/]*)
15359   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15360   ;;
15361   *)
15362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363 for as_dir in $PATH
15364 do
15365   IFS=$as_save_IFS
15366   test -z "$as_dir" && as_dir=.
15367     for ac_exec_ext in '' $ac_executable_extensions; do
15368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15369     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15371     break 2
15372   fi
15373 done
15374   done
15375 IFS=$as_save_IFS
15376
15377   ;;
15378 esac
15379 fi
15380 PKGCONFIG=$ac_cv_path_PKGCONFIG
15381 if test -n "$PKGCONFIG"; then
15382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
15383 $as_echo "$PKGCONFIG" >&6; }
15384 else
15385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386 $as_echo "no" >&6; }
15387 fi
15388
15389
15390 #
15391 # ------------------------------
15392 # Test for PNG
15393 # ------------------------------
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
15395 $as_echo_n "checking whether to build with PNG support... " >&6; }
15396 pngincludes=""
15397 pnglibs=""
15398 png_header_found="no"
15399 with_libpng="yes"
15400 #
15401 # Check whether --enable-png was given.
15402 if test "${enable_png+set}" = set; then :
15403   enableval=$enable_png; test "$enable_png" = "no"  && with_libpng="no"
15404 fi
15405
15406 #
15407 if test "x$with_libpng" = xyes ; then
15408   with_libpng="no"
15409   # Extract the first word of "libpng-config", so it can be a program name with args.
15410 set dummy libpng-config; ac_word=$2
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15412 $as_echo_n "checking for $ac_word... " >&6; }
15413 if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then :
15414   $as_echo_n "(cached) " >&6
15415 else
15416   case $LIBPNG_CONFIG in
15417   [\\/]* | ?:[\\/]*)
15418   ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
15419   ;;
15420   *)
15421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15422 for as_dir in $PATH
15423 do
15424   IFS=$as_save_IFS
15425   test -z "$as_dir" && as_dir=.
15426     for ac_exec_ext in '' $ac_executable_extensions; do
15427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15428     ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15430     break 2
15431   fi
15432 done
15433   done
15434 IFS=$as_save_IFS
15435
15436   ;;
15437 esac
15438 fi
15439 LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
15440 if test -n "$LIBPNG_CONFIG"; then
15441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
15442 $as_echo "$LIBPNG_CONFIG" >&6; }
15443 else
15444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15445 $as_echo "no" >&6; }
15446 fi
15447
15448
15449 #
15450   pngheader=""
15451
15452 # Check whether --with-png_includes was given.
15453 if test "${with_png_includes+set}" = set; then :
15454   withval=$with_png_includes;
15455 fi
15456
15457   if test -n "$with_png_includes" ; then
15458    pngheader="$with_png_includes"
15459    pngincludes="-I$with_png_includes"
15460   else
15461    if test -n "$PKGCONFIG" ; then
15462      pngincludes="`$PKGCONFIG --variable=includedir libpng`"
15463    fi
15464    if test -n "$pngincludes" ; then
15465     pngheader="$pngincludes"
15466     pngincludes="-I$pngincludes"
15467    fi
15468   fi
15469   if test -n "$pngheader" ; then
15470    pngheader="$pngheader/png.h"
15471   else
15472    pngheader="png.h"
15473   fi
15474   as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
15475 ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
15476 eval as_val=\$$as_ac_Header
15477    if test "x$as_val" = x""yes; then :
15478   png_header_found="yes"
15479 fi
15480
15481
15482 #last resort
15483   if test "$png_header_found" = "no" ; then
15484    pngincludes=""
15485    pngheader=""
15486    if test -n "$LIBPNG_CONFIG" ; then
15487      pngincludes="`$LIBPNG_CONFIG --I_opts`"
15488      pngheader="`$LIBPNG_CONFIG --I_opts | $SED 's/-I//'`"
15489    fi
15490    if test -n "$pngheader" ; then
15491     pngheader="$pngheader/png.h"
15492     as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
15493 ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
15494 eval as_val=\$$as_ac_Header
15495    if test "x$as_val" = x""yes; then :
15496   png_header_found="yes"
15497 fi
15498
15499
15500    fi
15501   fi
15502 #
15503
15504 # Check whether --with-png_libraries was given.
15505 if test "${with_png_libraries+set}" = set; then :
15506   withval=$with_png_libraries;
15507 fi
15508
15509   if [ -n "$with_png_libraries" ] ; then
15510    pnglibs="-L$with_png_libraries -lpng -lz $LIB_MATH"
15511   else
15512     if test -n "$LIBPNG_CONFIG" ; then
15513      pnglibs="`$LIBPNG_CONFIG --ldflags` -lz $LIB_MATH"
15514     else
15515       if test -n "$PKGCONFIG" ; then
15516         pnglibs="`$PKGCONFIG --libs libpng` $LIB_MATH"
15517       fi
15518     fi
15519   fi
15520   if test -n "$pnglibs" ; then
15521     if test -n "$pngincludes" ; then
15522       with_libpng="yes"
15523       png_header_found="yes"
15524
15525 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
15526
15527     fi
15528   fi
15529 fi
15530 #
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: png is usable:$with_libpng" >&5
15532 $as_echo "png is usable:$with_libpng" >&6; }
15533  if test x$with_libpng = xyes; then
15534   with_libpng_TRUE=
15535   with_libpng_FALSE='#'
15536 else
15537   with_libpng_TRUE='#'
15538   with_libpng_FALSE=
15539 fi
15540
15541 LDLIBS="$LDLIBS $pnglibs"
15542
15543
15544 # -------------------------------
15545 # Test for TIFF
15546 # -------------------------------
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
15548 $as_echo_n "checking whether to build with TIFF support... " >&6; }
15549 tifflibs=""
15550 tiffincludes=""
15551 with_libtiff="yes"
15552 tiff_header_found="no"
15553 #
15554 # Check whether --enable-tiff was given.
15555 if test "${enable_tiff+set}" = set; then :
15556   enableval=$enable_tiff; test "$enable_tiff" = "no"  && with_libtiff="no"
15557 fi
15558
15559 #
15560 if test "x$with_libtiff" = xyes ; then
15561 #standard path
15562  with_libtiff="no"
15563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15564 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15565 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15566   $as_echo_n "(cached) " >&6
15567 else
15568   ac_check_lib_save_LIBS=$LIBS
15569 LIBS="-ltiff  $LIBS"
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h.  */
15572
15573 /* Override any GCC internal prototype to avoid an error.
15574    Use char because int might match the return type of a GCC
15575    builtin and then its argument prototype would still apply.  */
15576 #ifdef __cplusplus
15577 extern "C"
15578 #endif
15579 char TIFFOpen ();
15580 int
15581 main ()
15582 {
15583 return TIFFOpen ();
15584   ;
15585   return 0;
15586 }
15587 _ACEOF
15588 if ac_fn_c_try_link "$LINENO"; then :
15589   ac_cv_lib_tiff_TIFFOpen=yes
15590 else
15591   ac_cv_lib_tiff_TIFFOpen=no
15592 fi
15593 rm -f core conftest.err conftest.$ac_objext \
15594     conftest$ac_exeext conftest.$ac_ext
15595 LIBS=$ac_check_lib_save_LIBS
15596 fi
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15598 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15599 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15600   tifflibs=-ltiff
15601 fi
15602
15603  if test -n "$tifflibs" ; then
15604   ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
15605 if test "x$ac_cv_header_tiff_h" = x""yes; then :
15606   tiff_header_found="yes"
15607 fi
15608
15609
15610   if test "$tiff_header_found" = "yes" ; then
15611    with_libtiff="yes"
15612    LIBS="$LIBS -ltiff $LIB_MATH"
15613
15614 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15615
15616   fi
15617  fi
15618 #
15619  if test "x$with_libtiff" = xno ; then
15620 #non-standard path
15621
15622 # Check whether --with-tiff_includes was given.
15623 if test "${with_tiff_includes+set}" = set; then :
15624   withval=$with_tiff_includes;
15625 fi
15626
15627   if test -n "$with_tiff_includes" ; then
15628    tiffheader="$with_tiff_includes/tiff.h"
15629    as_ac_Header=`$as_echo "ac_cv_header_$tiffheader" | $as_tr_sh`
15630 ac_fn_c_check_header_mongrel "$LINENO" "$tiffheader" "$as_ac_Header" "$ac_includes_default"
15631 eval as_val=\$$as_ac_Header
15632    if test "x$as_val" = x""yes; then :
15633   tiff_header_found="yes"
15634 fi
15635
15636
15637    if test "$tiff_header_found" = "yes" ; then
15638      tiffincludes="-I$with_tiff_includes"
15639    fi
15640   fi
15641
15642 # Check whether --with-tiff_libraries was given.
15643 if test "${with_tiff_libraries+set}" = set; then :
15644   withval=$with_tiff_libraries;
15645 fi
15646
15647   if test -n "$with_tiff_libraries" ; then
15648    tifflibs="-L$with_tiff_libraries"
15649   fi
15650   tifflibs="$tifflibs -ltiff $LIB_MATH"
15651   savedLIBS="$LIBS"
15652   LIBS="$tifflibs"
15653   with_libtiff="no"
15654 #
15655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15656 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15657 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15658   $as_echo_n "(cached) " >&6
15659 else
15660   ac_check_lib_save_LIBS=$LIBS
15661 LIBS="-ltiff  $LIBS"
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h.  */
15664
15665 /* Override any GCC internal prototype to avoid an error.
15666    Use char because int might match the return type of a GCC
15667    builtin and then its argument prototype would still apply.  */
15668 #ifdef __cplusplus
15669 extern "C"
15670 #endif
15671 char TIFFOpen ();
15672 int
15673 main ()
15674 {
15675 return TIFFOpen ();
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 if ac_fn_c_try_link "$LINENO"; then :
15681   ac_cv_lib_tiff_TIFFOpen=yes
15682 else
15683   ac_cv_lib_tiff_TIFFOpen=no
15684 fi
15685 rm -f core conftest.err conftest.$ac_objext \
15686     conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15688 fi
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15690 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15691 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15692   cat >>confdefs.h <<_ACEOF
15693 #define HAVE_LIBTIFF 1
15694 _ACEOF
15695
15696   LIBS="-ltiff $LIBS"
15697
15698 else
15699   tifflibs=""
15700 fi
15701
15702 #
15703   if test -n "$tifflibs" ; then
15704    if test "$tiff_header_found" = "yes" ; then
15705     with_libtiff="yes"
15706
15707 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15708
15709    fi
15710   fi
15711   LIBS="$savedLIBS $tifflibs"
15712  fi
15713 fi
15714 #
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tiff is usable:$with_libtiff" >&5
15716 $as_echo "tiff is usable:$with_libtiff" >&6; }
15717  if test x$with_libtiff = xyes; then
15718   with_libtiff_TRUE=
15719   with_libtiff_FALSE='#'
15720 else
15721   with_libtiff_TRUE='#'
15722   with_libtiff_FALSE=
15723 fi
15724
15725 LDLIBS="$tifflibs $LDLIBS"
15726
15727
15728 # -------------------------------
15729 # Test for LCMS version 2.x
15730 # -------------------------------
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS support" >&5
15732 $as_echo_n "checking whether to build with LCMS support... " >&6; }
15733 lcms1includes=""
15734 lcms1libs=""
15735 lcms2includes=""
15736 lcms2libs=""
15737 with_liblcms1="no"
15738 lcms1_header_found="no"
15739 lcms2_header_found="no"
15740 have_lcms1_version=""
15741 have_lcms2_version=""
15742 with_liblcms2="yes"
15743 #
15744 # Check whether --enable-lcms2 was given.
15745 if test "${enable_lcms2+set}" = set; then :
15746   enableval=$enable_lcms2; test "$enable_lcms2" = "no"  && with_liblcms2="no"
15747 fi
15748
15749 #
15750 if test "x$with_liblcms2" = xyes ; then
15751   with_liblcms2="no"
15752   lcms2header=""
15753
15754 # Check whether --with-lcms2_includes was given.
15755 if test "${with_lcms2_includes+set}" = set; then :
15756   withval=$with_lcms2_includes;
15757 fi
15758
15759   if test -n "$with_lcms2_includes" ; then
15760    lcms2header="$with_lcms2_includes"
15761    lcms2includes="-I$with_lcms2_includes"
15762   else
15763    if test -n "$PKGCONFIG" ; then
15764      lcms2includes="`$PKGCONFIG --variable=prefix lcms2`"
15765    fi
15766    if test -n "$lcms2includes" ; then
15767     lcms2header="$lcms2_includes"
15768     lcms2includes="-I$lcms2includes/include"
15769    fi
15770   fi
15771   if test -n "$lcms2header" ; then
15772    lcms2header="$lcms2header/lcms2.h"
15773   else
15774    lcms2header="lcms2.h"
15775   fi
15776   as_ac_Header=`$as_echo "ac_cv_header_$lcms2header" | $as_tr_sh`
15777 ac_fn_c_check_header_mongrel "$LINENO" "$lcms2header" "$as_ac_Header" "$ac_includes_default"
15778 eval as_val=\$$as_ac_Header
15779    if test "x$as_val" = x""yes; then :
15780   lcms2_header_found="yes"
15781 fi
15782
15783
15784 #
15785
15786 # Check whether --with-lcms2_libraries was given.
15787 if test "${with_lcms2_libraries+set}" = set; then :
15788   withval=$with_lcms2_libraries;
15789 fi
15790
15791   if test -n "$with_lcms2_libraries" ; then
15792    lcms2libs="-L$with_lcms2_libraries -llcms2"
15793   else
15794    if test -n "$PKGCONFIG" ; then
15795      lcms2libs="`$PKGCONFIG --libs lcms2`"
15796    fi
15797    if test -z "$lcms2libs" ; then
15798     lcms2libs="-llcms2"
15799    fi
15800    lcms2libs="$lcms2libs $LIB_MATH"
15801   fi
15802   savedLIBS="$LIBS"
15803   LIBS="$lcms2libs"
15804   with_liblcms2="no"
15805 #
15806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
15807 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
15808 if test "${ac_cv_lib_lcms2_cmsOpenProfileFromFile+set}" = set; then :
15809   $as_echo_n "(cached) " >&6
15810 else
15811   ac_check_lib_save_LIBS=$LIBS
15812 LIBS="-llcms2  $LIBS"
15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h.  */
15815
15816 /* Override any GCC internal prototype to avoid an error.
15817    Use char because int might match the return type of a GCC
15818    builtin and then its argument prototype would still apply.  */
15819 #ifdef __cplusplus
15820 extern "C"
15821 #endif
15822 char cmsOpenProfileFromFile ();
15823 int
15824 main ()
15825 {
15826 return cmsOpenProfileFromFile ();
15827   ;
15828   return 0;
15829 }
15830 _ACEOF
15831 if ac_fn_c_try_link "$LINENO"; then :
15832   ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
15833 else
15834   ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
15835 fi
15836 rm -f core conftest.err conftest.$ac_objext \
15837     conftest$ac_exeext conftest.$ac_ext
15838 LIBS=$ac_check_lib_save_LIBS
15839 fi
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
15841 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
15842 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = x""yes; then :
15843   cat >>confdefs.h <<_ACEOF
15844 #define HAVE_LIBLCMS2 1
15845 _ACEOF
15846
15847   LIBS="-llcms2 $LIBS"
15848
15849 else
15850   lcms2libs=""
15851 fi
15852
15853 #
15854   if test -n "$lcms2libs" ; then
15855    if test "$lcms2_header_found" = "yes" ; then
15856     with_liblcms2="yes"
15857
15858 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
15859
15860     if test -n "$PKGCONFIG" ; then
15861       have_lcms2_version="`$PKGCONFIG --modversion lcms2`"
15862     fi
15863    fi
15864   fi
15865   if test "$with_liblcms2" = "no" ; then
15866     lcms2libs=""
15867     lcms2includes=""
15868     lcms2libs=""
15869   fi
15870   LIBS="$savedLIBS $lcms2libs"
15871 fi
15872 #
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2 is usable:$with_liblcms2" >&5
15874 $as_echo "lcms2 is usable:$with_liblcms2" >&6; }
15875  if test x$with_liblmcs2 = xyes; then
15876   with_liblcms2_TRUE=
15877   with_liblcms2_FALSE='#'
15878 else
15879   with_liblcms2_TRUE='#'
15880   with_liblcms2_FALSE=
15881 fi
15882
15883 LDLIBS="$lcms2libs $LDLIBS"
15884
15885
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2libs:$lcms2libs" >&5
15887 $as_echo "lcms2libs:$lcms2libs" >&6; }
15888 # ----------------------------
15889 # Test for LCMS version 1.x
15890 # ----------------------------
15891 if [ -z "$lcms2libs" ] ; then
15892  with_liblcms1="yes"
15893  # Check whether --enable-lcms1 was given.
15894 if test "${enable_lcms1+set}" = set; then :
15895   enableval=$enable_lcms1; test "$enable_lcms1" = "no"  && with_liblcms1="no"
15896 fi
15897
15898 #
15899  if test "x$with_liblcms1" = xyes ; then
15900    with_liblcms1="no"
15901    lcms1header=""
15902
15903 # Check whether --with-lcms1_includes was given.
15904 if test "${with_lcms1_includes+set}" = set; then :
15905   withval=$with_lcms1_includes;
15906 fi
15907
15908    if test -n "$with_lcms1_includes" ; then
15909     lcms1header="$with_lcms1_includes"
15910     lcms1includes="-I$with_lcms1_includes"
15911    else
15912     if test -n "$PKGCONFIG" ; then
15913       lcms1includes="`$PKGCONFIG --variable=includedir lcms`"
15914     fi
15915     if test -n "$lcms1includes" ; then
15916      lcms1header="$lcms1includes"
15917      lcms1includes="-I$lcms1includes"
15918     fi
15919    fi
15920    if test -n "$lcms1header" ; then
15921     lcms1header="$lcms1header/lcms.h"
15922    else
15923     lcms1header="lcms.h"
15924    fi
15925    as_ac_Header=`$as_echo "ac_cv_header_$lcms1header" | $as_tr_sh`
15926 ac_fn_c_check_header_mongrel "$LINENO" "$lcms1header" "$as_ac_Header" "$ac_includes_default"
15927 eval as_val=\$$as_ac_Header
15928    if test "x$as_val" = x""yes; then :
15929   lcms1_header_found="yes"
15930 fi
15931
15932
15933 #
15934
15935 # Check whether --with-lcms1_libraries was given.
15936 if test "${with_lcms1_libraries+set}" = set; then :
15937   withval=$with_lcms1_libraries;
15938 fi
15939
15940    if test -n "$with_lcms1_libraries" ; then
15941     lcms1libs="-L$with_lcms1_libraries -llcms"
15942    else
15943     if test -n "$PKGCONFIG" ; then
15944       lcms1libs="`$PKGCONFIG --libs lcms`"
15945     fi
15946     if test -z "$lcms1libs" ; then
15947      lcms1libs="-llcms"
15948     fi
15949     lcms1libs="$lcms1libs $LIB_MATH"
15950    fi
15951    savedLIBS="$LIBS"
15952    LIBS="$lcms1libs"
15953    with_liblcms1="no"
15954 #
15955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
15956 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
15957 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
15958   $as_echo_n "(cached) " >&6
15959 else
15960   ac_check_lib_save_LIBS=$LIBS
15961 LIBS="-llcms  $LIBS"
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h.  */
15964
15965 /* Override any GCC internal prototype to avoid an error.
15966    Use char because int might match the return type of a GCC
15967    builtin and then its argument prototype would still apply.  */
15968 #ifdef __cplusplus
15969 extern "C"
15970 #endif
15971 char cmsOpenProfileFromFile ();
15972 int
15973 main ()
15974 {
15975 return cmsOpenProfileFromFile ();
15976   ;
15977   return 0;
15978 }
15979 _ACEOF
15980 if ac_fn_c_try_link "$LINENO"; then :
15981   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
15982 else
15983   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
15984 fi
15985 rm -f core conftest.err conftest.$ac_objext \
15986     conftest$ac_exeext conftest.$ac_ext
15987 LIBS=$ac_check_lib_save_LIBS
15988 fi
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
15990 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
15991 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
15992   cat >>confdefs.h <<_ACEOF
15993 #define HAVE_LIBLCMS 1
15994 _ACEOF
15995
15996   LIBS="-llcms $LIBS"
15997
15998 else
15999   lcms1libs=""
16000 fi
16001
16002 #
16003    if test -n "$lcms1libs" ; then
16004     if test "$lcms1_header_found" = "yes" ; then
16005      with_liblcms1="yes"
16006
16007 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
16008
16009      if test -n "$PKGCONFIG" ; then
16010        have_lcms1_version="`$PKGCONFIG --modversion lcms`"
16011      fi
16012     fi
16013    fi
16014    if test "$with_liblcms1" = "no" ; then
16015      lcms1libs=""
16016      lcms1includes=""
16017      lcms1libs=""
16018    fi
16019    LIBS="$savedLIBS $lcms1libs"
16020  fi
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms is usable:$with_liblcms1" >&5
16022 $as_echo "lcms is usable:$with_liblcms1" >&6; }
16023 fi
16024 #
16025  if test x$with_liblcms1 = xyes; then
16026   with_liblcms1_TRUE=
16027   with_liblcms1_FALSE='#'
16028 else
16029   with_liblcms1_TRUE='#'
16030   with_liblcms1_FALSE=
16031 fi
16032
16033 LDLIBS="$lcms1libs $LDLIBS"
16034
16035
16036 #
16037 # -------------------------------
16038 # Test for USE_JPWL
16039 # -------------------------------
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with JPWL support" >&5
16041 $as_echo_n "checking whether to build with JPWL support... " >&6; }
16042 with_libjpwl="no"
16043 jpwl_dir=""
16044 # Check whether --enable-jpwl was given.
16045 if test "${enable_jpwl+set}" = set; then :
16046   enableval=$enable_jpwl; test "$enable_jpwl" = "yes" && with_libjpwl="yes"
16047 fi
16048
16049 #
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libjpwl" >&5
16051 $as_echo "$with_libjpwl" >&6; }
16052  if test x$with_libjpwl = xyes; then
16053   with_libjpwl_TRUE=
16054   with_libjpwl_FALSE='#'
16055 else
16056   with_libjpwl_TRUE='#'
16057   with_libjpwl_FALSE=
16058 fi
16059
16060 if test "$with_libjpwl" = "yes" ; then
16061  jpwl_dir="jpwl"
16062 fi
16063
16064 #
16065 # -------------------------------
16066 # Test for creating SHARED LIBS
16067 # -------------------------------
16068 with_sharedlibs="yes"
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16070 $as_echo_n "checking whether to build shared libraries... " >&6; }
16071 # Check whether --enable-shared was given.
16072 if test "${enable_shared+set}" = set; then :
16073   enableval=$enable_shared; test "$enable_shared" = "no" && with_sharedlibs="no"
16074 fi
16075
16076 #
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sharedlibs" >&5
16078 $as_echo "$with_sharedlibs" >&6; }
16079  if test x$with_sharedlibs = xyes; then
16080   with_sharedlibs_TRUE=
16081   with_sharedlibs_FALSE='#'
16082 else
16083   with_sharedlibs_TRUE='#'
16084   with_sharedlibs_FALSE=
16085 fi
16086
16087 #
16088 # -------------------------------
16089 # Test for creating JP3D
16090 # -------------------------------
16091 with_jp3d="no"
16092 jp3d_dir=""
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JP3D library" >&5
16094 $as_echo_n "checking whether to build the JP3D library... " >&6; }
16095 # Check whether --enable-jp3d was given.
16096 if test "${enable_jp3d+set}" = set; then :
16097   enableval=$enable_jp3d; test "$enable_jp3d" = "yes" && with_jp3d="yes"
16098 fi
16099
16100 #
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jp3d" >&5
16102 $as_echo "$with_jp3d" >&6; }
16103 if test "$with_jp3d" = "yes" ; then
16104  jp3d_dir="jp3d"
16105 fi
16106
16107 #
16108
16109 #
16110 # Extract the first word of "doxygen", so it can be a program name with args.
16111 set dummy doxygen; ac_word=$2
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16113 $as_echo_n "checking for $ac_word... " >&6; }
16114 if test "${ac_cv_prog_with_doxygen+set}" = set; then :
16115   $as_echo_n "(cached) " >&6
16116 else
16117   if test -n "$with_doxygen"; then
16118   ac_cv_prog_with_doxygen="$with_doxygen" # Let the user override the test.
16119 else
16120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16121 for as_dir in $PATH
16122 do
16123   IFS=$as_save_IFS
16124   test -z "$as_dir" && as_dir=.
16125     for ac_exec_ext in '' $ac_executable_extensions; do
16126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16127     ac_cv_prog_with_doxygen="yes"
16128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16129     break 2
16130   fi
16131 done
16132   done
16133 IFS=$as_save_IFS
16134
16135   test -z "$ac_cv_prog_with_doxygen" && ac_cv_prog_with_doxygen="no"
16136 fi
16137 fi
16138 with_doxygen=$ac_cv_prog_with_doxygen
16139 if test -n "$with_doxygen"; then
16140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doxygen" >&5
16141 $as_echo "$with_doxygen" >&6; }
16142 else
16143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16144 $as_echo "no" >&6; }
16145 fi
16146
16147
16148  if test x$with_doxygen = xyes; then
16149   with_doxygen_TRUE=
16150   with_doxygen_FALSE='#'
16151 else
16152   with_doxygen_TRUE='#'
16153   with_doxygen_FALSE=
16154 fi
16155
16156 #
16157 ac_config_files="$ac_config_files Makefile"
16158
16159 ac_config_files="$ac_config_files libopenjpeg.pc"
16160
16161 ac_config_files="$ac_config_files libopenjpeg/Makefile"
16162
16163 ac_config_files="$ac_config_files jpwl/Makefile"
16164
16165 ac_config_files="$ac_config_files codec/Makefile"
16166
16167 ac_config_files="$ac_config_files mj2/Makefile"
16168
16169 ac_config_files="$ac_config_files doc/Makefile"
16170
16171 ac_config_files="$ac_config_files jp3d/Makefile"
16172
16173 ac_config_files="$ac_config_files jp3d/libjp3dvm/Makefile"
16174
16175 ac_config_files="$ac_config_files jp3d/codec/Makefile"
16176
16177 cat >confcache <<\_ACEOF
16178 # This file is a shell script that caches the results of configure
16179 # tests run on this system so they can be shared between configure
16180 # scripts and configure runs, see configure's option --config-cache.
16181 # It is not useful on other systems.  If it contains results you don't
16182 # want to keep, you may remove or edit it.
16183 #
16184 # config.status only pays attention to the cache file if you give it
16185 # the --recheck option to rerun configure.
16186 #
16187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16189 # following values.
16190
16191 _ACEOF
16192
16193 # The following way of writing the cache mishandles newlines in values,
16194 # but we know of no workaround that is simple, portable, and efficient.
16195 # So, we kill variables containing newlines.
16196 # Ultrix sh set writes to stderr and can't be redirected directly,
16197 # and sets the high bit in the cache file unless we assign to the vars.
16198 (
16199   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16200     eval ac_val=\$$ac_var
16201     case $ac_val in #(
16202     *${as_nl}*)
16203       case $ac_var in #(
16204       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16206       esac
16207       case $ac_var in #(
16208       _ | IFS | as_nl) ;; #(
16209       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16210       *) { eval $ac_var=; unset $ac_var;} ;;
16211       esac ;;
16212     esac
16213   done
16214
16215   (set) 2>&1 |
16216     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16217     *${as_nl}ac_space=\ *)
16218       # `set' does not quote correctly, so add quotes: double-quote
16219       # substitution turns \\\\ into \\, and sed turns \\ into \.
16220       sed -n \
16221         "s/'/'\\\\''/g;
16222           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16223       ;; #(
16224     *)
16225       # `set' quotes correctly as required by POSIX, so do not add quotes.
16226       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16227       ;;
16228     esac |
16229     sort
16230 ) |
16231   sed '
16232      /^ac_cv_env_/b end
16233      t clear
16234      :clear
16235      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16236      t end
16237      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16238      :end' >>confcache
16239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16240   if test -w "$cache_file"; then
16241     test "x$cache_file" != "x/dev/null" &&
16242       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16243 $as_echo "$as_me: updating cache $cache_file" >&6;}
16244     cat confcache >$cache_file
16245   else
16246     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16247 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16248   fi
16249 fi
16250 rm -f confcache
16251
16252 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16253 # Let make expand exec_prefix.
16254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16255
16256 DEFS=-DHAVE_CONFIG_H
16257
16258 ac_libobjs=
16259 ac_ltlibobjs=
16260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16261   # 1. Remove the extension, and $U if already installed.
16262   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16263   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16264   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16265   #    will be set to the directory where LIBOBJS objects are built.
16266   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16267   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16268 done
16269 LIBOBJS=$ac_libobjs
16270
16271 LTLIBOBJS=$ac_ltlibobjs
16272
16273
16274  if test -n "$EXEEXT"; then
16275   am__EXEEXT_TRUE=
16276   am__EXEEXT_FALSE='#'
16277 else
16278   am__EXEEXT_TRUE='#'
16279   am__EXEEXT_FALSE=
16280 fi
16281
16282 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16283   as_fn_error "conditional \"AMDEP\" was never defined.
16284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16285 fi
16286 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16287   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16289 fi
16290 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16291   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16293 fi
16294 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16295   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16297 fi
16298
16299 if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
16300   as_fn_error "conditional \"with_libpng\" was never defined.
16301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16302 fi
16303 if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
16304   as_fn_error "conditional \"with_libtiff\" was never defined.
16305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16306 fi
16307 if test -z "${with_liblcms2_TRUE}" && test -z "${with_liblcms2_FALSE}"; then
16308   as_fn_error "conditional \"with_liblcms2\" was never defined.
16309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16310 fi
16311 if test -z "${with_liblcms1_TRUE}" && test -z "${with_liblcms1_FALSE}"; then
16312   as_fn_error "conditional \"with_liblcms1\" was never defined.
16313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16314 fi
16315 if test -z "${with_libjpwl_TRUE}" && test -z "${with_libjpwl_FALSE}"; then
16316   as_fn_error "conditional \"with_libjpwl\" was never defined.
16317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16318 fi
16319 if test -z "${with_sharedlibs_TRUE}" && test -z "${with_sharedlibs_FALSE}"; then
16320   as_fn_error "conditional \"with_sharedlibs\" was never defined.
16321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16322 fi
16323 if test -z "${with_doxygen_TRUE}" && test -z "${with_doxygen_FALSE}"; then
16324   as_fn_error "conditional \"with_doxygen\" was never defined.
16325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16326 fi
16327
16328 : ${CONFIG_STATUS=./config.status}
16329 ac_write_fail=0
16330 ac_clean_files_save=$ac_clean_files
16331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16333 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16334 as_write_fail=0
16335 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16336 #! $SHELL
16337 # Generated by $as_me.
16338 # Run this file to recreate the current configuration.
16339 # Compiler output produced by configure, useful for debugging
16340 # configure, is in config.log if it exists.
16341
16342 debug=false
16343 ac_cs_recheck=false
16344 ac_cs_silent=false
16345
16346 SHELL=\${CONFIG_SHELL-$SHELL}
16347 export SHELL
16348 _ASEOF
16349 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16350 ## -------------------- ##
16351 ## M4sh Initialization. ##
16352 ## -------------------- ##
16353
16354 # Be more Bourne compatible
16355 DUALCASE=1; export DUALCASE # for MKS sh
16356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16357   emulate sh
16358   NULLCMD=:
16359   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16360   # is contrary to our usage.  Disable this feature.
16361   alias -g '${1+"$@"}'='"$@"'
16362   setopt NO_GLOB_SUBST
16363 else
16364   case `(set -o) 2>/dev/null` in #(
16365   *posix*) :
16366     set -o posix ;; #(
16367   *) :
16368      ;;
16369 esac
16370 fi
16371
16372
16373 as_nl='
16374 '
16375 export as_nl
16376 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16377 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16379 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16380 # Prefer a ksh shell builtin over an external printf program on Solaris,
16381 # but without wasting forks for bash or zsh.
16382 if test -z "$BASH_VERSION$ZSH_VERSION" \
16383     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16384   as_echo='print -r --'
16385   as_echo_n='print -rn --'
16386 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16387   as_echo='printf %s\n'
16388   as_echo_n='printf %s'
16389 else
16390   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16391     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16392     as_echo_n='/usr/ucb/echo -n'
16393   else
16394     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16395     as_echo_n_body='eval
16396       arg=$1;
16397       case $arg in #(
16398       *"$as_nl"*)
16399         expr "X$arg" : "X\\(.*\\)$as_nl";
16400         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16401       esac;
16402       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16403     '
16404     export as_echo_n_body
16405     as_echo_n='sh -c $as_echo_n_body as_echo'
16406   fi
16407   export as_echo_body
16408   as_echo='sh -c $as_echo_body as_echo'
16409 fi
16410
16411 # The user is always right.
16412 if test "${PATH_SEPARATOR+set}" != set; then
16413   PATH_SEPARATOR=:
16414   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16415     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16416       PATH_SEPARATOR=';'
16417   }
16418 fi
16419
16420
16421 # IFS
16422 # We need space, tab and new line, in precisely that order.  Quoting is
16423 # there to prevent editors from complaining about space-tab.
16424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16425 # splitting by setting IFS to empty value.)
16426 IFS=" ""        $as_nl"
16427
16428 # Find who we are.  Look in the path if we contain no directory separator.
16429 case $0 in #((
16430   *[\\/]* ) as_myself=$0 ;;
16431   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $PATH
16433 do
16434   IFS=$as_save_IFS
16435   test -z "$as_dir" && as_dir=.
16436     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16437   done
16438 IFS=$as_save_IFS
16439
16440      ;;
16441 esac
16442 # We did not find ourselves, most probably we were run as `sh COMMAND'
16443 # in which case we are not to be found in the path.
16444 if test "x$as_myself" = x; then
16445   as_myself=$0
16446 fi
16447 if test ! -f "$as_myself"; then
16448   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16449   exit 1
16450 fi
16451
16452 # Unset variables that we do not need and which cause bugs (e.g. in
16453 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16454 # suppresses any "Segmentation fault" message there.  '((' could
16455 # trigger a bug in pdksh 5.2.14.
16456 for as_var in BASH_ENV ENV MAIL MAILPATH
16457 do eval test x\${$as_var+set} = xset \
16458   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16459 done
16460 PS1='$ '
16461 PS2='> '
16462 PS4='+ '
16463
16464 # NLS nuisances.
16465 LC_ALL=C
16466 export LC_ALL
16467 LANGUAGE=C
16468 export LANGUAGE
16469
16470 # CDPATH.
16471 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16472
16473
16474 # as_fn_error ERROR [LINENO LOG_FD]
16475 # ---------------------------------
16476 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16477 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16478 # script with status $?, using 1 if that was 0.
16479 as_fn_error ()
16480 {
16481   as_status=$?; test $as_status -eq 0 && as_status=1
16482   if test "$3"; then
16483     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16484     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16485   fi
16486   $as_echo "$as_me: error: $1" >&2
16487   as_fn_exit $as_status
16488 } # as_fn_error
16489
16490
16491 # as_fn_set_status STATUS
16492 # -----------------------
16493 # Set $? to STATUS, without forking.
16494 as_fn_set_status ()
16495 {
16496   return $1
16497 } # as_fn_set_status
16498
16499 # as_fn_exit STATUS
16500 # -----------------
16501 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16502 as_fn_exit ()
16503 {
16504   set +e
16505   as_fn_set_status $1
16506   exit $1
16507 } # as_fn_exit
16508
16509 # as_fn_unset VAR
16510 # ---------------
16511 # Portably unset VAR.
16512 as_fn_unset ()
16513 {
16514   { eval $1=; unset $1;}
16515 }
16516 as_unset=as_fn_unset
16517 # as_fn_append VAR VALUE
16518 # ----------------------
16519 # Append the text in VALUE to the end of the definition contained in VAR. Take
16520 # advantage of any shell optimizations that allow amortized linear growth over
16521 # repeated appends, instead of the typical quadratic growth present in naive
16522 # implementations.
16523 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16524   eval 'as_fn_append ()
16525   {
16526     eval $1+=\$2
16527   }'
16528 else
16529   as_fn_append ()
16530   {
16531     eval $1=\$$1\$2
16532   }
16533 fi # as_fn_append
16534
16535 # as_fn_arith ARG...
16536 # ------------------
16537 # Perform arithmetic evaluation on the ARGs, and store the result in the
16538 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16539 # must be portable across $(()) and expr.
16540 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16541   eval 'as_fn_arith ()
16542   {
16543     as_val=$(( $* ))
16544   }'
16545 else
16546   as_fn_arith ()
16547   {
16548     as_val=`expr "$@" || test $? -eq 1`
16549   }
16550 fi # as_fn_arith
16551
16552
16553 if expr a : '\(a\)' >/dev/null 2>&1 &&
16554    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16555   as_expr=expr
16556 else
16557   as_expr=false
16558 fi
16559
16560 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16561   as_basename=basename
16562 else
16563   as_basename=false
16564 fi
16565
16566 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16567   as_dirname=dirname
16568 else
16569   as_dirname=false
16570 fi
16571
16572 as_me=`$as_basename -- "$0" ||
16573 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16574          X"$0" : 'X\(//\)$' \| \
16575          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16576 $as_echo X/"$0" |
16577     sed '/^.*\/\([^/][^/]*\)\/*$/{
16578             s//\1/
16579             q
16580           }
16581           /^X\/\(\/\/\)$/{
16582             s//\1/
16583             q
16584           }
16585           /^X\/\(\/\).*/{
16586             s//\1/
16587             q
16588           }
16589           s/.*/./; q'`
16590
16591 # Avoid depending upon Character Ranges.
16592 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16593 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16594 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16595 as_cr_digits='0123456789'
16596 as_cr_alnum=$as_cr_Letters$as_cr_digits
16597
16598 ECHO_C= ECHO_N= ECHO_T=
16599 case `echo -n x` in #(((((
16600 -n*)
16601   case `echo 'xy\c'` in
16602   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16603   xy)  ECHO_C='\c';;
16604   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16605        ECHO_T=' ';;
16606   esac;;
16607 *)
16608   ECHO_N='-n';;
16609 esac
16610
16611 rm -f conf$$ conf$$.exe conf$$.file
16612 if test -d conf$$.dir; then
16613   rm -f conf$$.dir/conf$$.file
16614 else
16615   rm -f conf$$.dir
16616   mkdir conf$$.dir 2>/dev/null
16617 fi
16618 if (echo >conf$$.file) 2>/dev/null; then
16619   if ln -s conf$$.file conf$$ 2>/dev/null; then
16620     as_ln_s='ln -s'
16621     # ... but there are two gotchas:
16622     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16623     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16624     # In both cases, we have to default to `cp -p'.
16625     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16626       as_ln_s='cp -p'
16627   elif ln conf$$.file conf$$ 2>/dev/null; then
16628     as_ln_s=ln
16629   else
16630     as_ln_s='cp -p'
16631   fi
16632 else
16633   as_ln_s='cp -p'
16634 fi
16635 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16636 rmdir conf$$.dir 2>/dev/null
16637
16638
16639 # as_fn_mkdir_p
16640 # -------------
16641 # Create "$as_dir" as a directory, including parents if necessary.
16642 as_fn_mkdir_p ()
16643 {
16644
16645   case $as_dir in #(
16646   -*) as_dir=./$as_dir;;
16647   esac
16648   test -d "$as_dir" || eval $as_mkdir_p || {
16649     as_dirs=
16650     while :; do
16651       case $as_dir in #(
16652       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16653       *) as_qdir=$as_dir;;
16654       esac
16655       as_dirs="'$as_qdir' $as_dirs"
16656       as_dir=`$as_dirname -- "$as_dir" ||
16657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16658          X"$as_dir" : 'X\(//\)[^/]' \| \
16659          X"$as_dir" : 'X\(//\)$' \| \
16660          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16661 $as_echo X"$as_dir" |
16662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16663             s//\1/
16664             q
16665           }
16666           /^X\(\/\/\)[^/].*/{
16667             s//\1/
16668             q
16669           }
16670           /^X\(\/\/\)$/{
16671             s//\1/
16672             q
16673           }
16674           /^X\(\/\).*/{
16675             s//\1/
16676             q
16677           }
16678           s/.*/./; q'`
16679       test -d "$as_dir" && break
16680     done
16681     test -z "$as_dirs" || eval "mkdir $as_dirs"
16682   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16683
16684
16685 } # as_fn_mkdir_p
16686 if mkdir -p . 2>/dev/null; then
16687   as_mkdir_p='mkdir -p "$as_dir"'
16688 else
16689   test -d ./-p && rmdir ./-p
16690   as_mkdir_p=false
16691 fi
16692
16693 if test -x / >/dev/null 2>&1; then
16694   as_test_x='test -x'
16695 else
16696   if ls -dL / >/dev/null 2>&1; then
16697     as_ls_L_option=L
16698   else
16699     as_ls_L_option=
16700   fi
16701   as_test_x='
16702     eval sh -c '\''
16703       if test -d "$1"; then
16704         test -d "$1/.";
16705       else
16706         case $1 in #(
16707         -*)set "./$1";;
16708         esac;
16709         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16710         ???[sx]*):;;*)false;;esac;fi
16711     '\'' sh
16712   '
16713 fi
16714 as_executable_p=$as_test_x
16715
16716 # Sed expression to map a string onto a valid CPP name.
16717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16718
16719 # Sed expression to map a string onto a valid variable name.
16720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16721
16722
16723 exec 6>&1
16724 ## ----------------------------------- ##
16725 ## Main body of $CONFIG_STATUS script. ##
16726 ## ----------------------------------- ##
16727 _ASEOF
16728 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16729
16730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16731 # Save the log message, to keep $0 and so on meaningful, and to
16732 # report actual input values of CONFIG_FILES etc. instead of their
16733 # values after options handling.
16734 ac_log="
16735 This file was extended by OpenJPEG $as_me 1.4.0, which was
16736 generated by GNU Autoconf 2.65.  Invocation command line was
16737
16738   CONFIG_FILES    = $CONFIG_FILES
16739   CONFIG_HEADERS  = $CONFIG_HEADERS
16740   CONFIG_LINKS    = $CONFIG_LINKS
16741   CONFIG_COMMANDS = $CONFIG_COMMANDS
16742   $ $0 $@
16743
16744 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16745 "
16746
16747 _ACEOF
16748
16749 case $ac_config_files in *"
16750 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16751 esac
16752
16753 case $ac_config_headers in *"
16754 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16755 esac
16756
16757
16758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16759 # Files that config.status was made for.
16760 config_files="$ac_config_files"
16761 config_headers="$ac_config_headers"
16762 config_commands="$ac_config_commands"
16763
16764 _ACEOF
16765
16766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16767 ac_cs_usage="\
16768 \`$as_me' instantiates files and other configuration actions
16769 from templates according to the current configuration.  Unless the files
16770 and actions are specified as TAGs, all are instantiated by default.
16771
16772 Usage: $0 [OPTION]... [TAG]...
16773
16774   -h, --help       print this help, then exit
16775   -V, --version    print version number and configuration settings, then exit
16776       --config     print configuration, then exit
16777   -q, --quiet, --silent
16778                    do not print progress messages
16779   -d, --debug      don't remove temporary files
16780       --recheck    update $as_me by reconfiguring in the same conditions
16781       --file=FILE[:TEMPLATE]
16782                    instantiate the configuration file FILE
16783       --header=FILE[:TEMPLATE]
16784                    instantiate the configuration header FILE
16785
16786 Configuration files:
16787 $config_files
16788
16789 Configuration headers:
16790 $config_headers
16791
16792 Configuration commands:
16793 $config_commands
16794
16795 Report bugs to <http://code.google.com/p/openjpeg/>.
16796 OpenJPEG home page: <http://www.openjpeg.org/>."
16797
16798 _ACEOF
16799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16800 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16801 ac_cs_version="\\
16802 OpenJPEG config.status 1.4.0
16803 configured by $0, generated by GNU Autoconf 2.65,
16804   with options \\"\$ac_cs_config\\"
16805
16806 Copyright (C) 2009 Free Software Foundation, Inc.
16807 This config.status script is free software; the Free Software Foundation
16808 gives unlimited permission to copy, distribute and modify it."
16809
16810 ac_pwd='$ac_pwd'
16811 srcdir='$srcdir'
16812 INSTALL='$INSTALL'
16813 MKDIR_P='$MKDIR_P'
16814 AWK='$AWK'
16815 test -n "\$AWK" || AWK=awk
16816 _ACEOF
16817
16818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16819 # The default lists apply if the user does not specify any file.
16820 ac_need_defaults=:
16821 while test $# != 0
16822 do
16823   case $1 in
16824   --*=*)
16825     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16826     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16827     ac_shift=:
16828     ;;
16829   *)
16830     ac_option=$1
16831     ac_optarg=$2
16832     ac_shift=shift
16833     ;;
16834   esac
16835
16836   case $ac_option in
16837   # Handling of the options.
16838   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16839     ac_cs_recheck=: ;;
16840   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16841     $as_echo "$ac_cs_version"; exit ;;
16842   --config | --confi | --conf | --con | --co | --c )
16843     $as_echo "$ac_cs_config"; exit ;;
16844   --debug | --debu | --deb | --de | --d | -d )
16845     debug=: ;;
16846   --file | --fil | --fi | --f )
16847     $ac_shift
16848     case $ac_optarg in
16849     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16850     esac
16851     as_fn_append CONFIG_FILES " '$ac_optarg'"
16852     ac_need_defaults=false;;
16853   --header | --heade | --head | --hea )
16854     $ac_shift
16855     case $ac_optarg in
16856     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16857     esac
16858     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16859     ac_need_defaults=false;;
16860   --he | --h)
16861     # Conflict between --help and --header
16862     as_fn_error "ambiguous option: \`$1'
16863 Try \`$0 --help' for more information.";;
16864   --help | --hel | -h )
16865     $as_echo "$ac_cs_usage"; exit ;;
16866   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16867   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16868     ac_cs_silent=: ;;
16869
16870   # This is an error.
16871   -*) as_fn_error "unrecognized option: \`$1'
16872 Try \`$0 --help' for more information." ;;
16873
16874   *) as_fn_append ac_config_targets " $1"
16875      ac_need_defaults=false ;;
16876
16877   esac
16878   shift
16879 done
16880
16881 ac_configure_extra_args=
16882
16883 if $ac_cs_silent; then
16884   exec 6>/dev/null
16885   ac_configure_extra_args="$ac_configure_extra_args --silent"
16886 fi
16887
16888 _ACEOF
16889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16890 if \$ac_cs_recheck; then
16891   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16892   shift
16893   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16894   CONFIG_SHELL='$SHELL'
16895   export CONFIG_SHELL
16896   exec "\$@"
16897 fi
16898
16899 _ACEOF
16900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16901 exec 5>>config.log
16902 {
16903   echo
16904   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16905 ## Running $as_me. ##
16906 _ASBOX
16907   $as_echo "$ac_log"
16908 } >&5
16909
16910 _ACEOF
16911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16912 #
16913 # INIT-COMMANDS
16914 #
16915 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16916
16917
16918 # The HP-UX ksh and POSIX shell print the target directory to stdout
16919 # if CDPATH is set.
16920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16921
16922 sed_quote_subst='$sed_quote_subst'
16923 double_quote_subst='$double_quote_subst'
16924 delay_variable_subst='$delay_variable_subst'
16925 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16926 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16927 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16928 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16929 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16930 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16931 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16932 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16933 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16934 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16935 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16936 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16937 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16938 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16939 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16940 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16941 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16942 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16943 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16944 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16945 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16946 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16947 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16948 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16949 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16950 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16951 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16952 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16953 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16954 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16955 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16956 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16957 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16958 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16959 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16960 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16961 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16962 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16963 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16964 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16965 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16966 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16967 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16968 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16969 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16970 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16971 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"`'
16972 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"`'
16973 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16974 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16975 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16976 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16977 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16978 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16979 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16980 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16981 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16982 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16983 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16984 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16985 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16986 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16987 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16988 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16989 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16990 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16991 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16992 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16993 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16994 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16995 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16996 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16997 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16998 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16999 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17000 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17001 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17002 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17003 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17004 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17005 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17006 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17007 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17008 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17009 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17010 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17011 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17012 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17013 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17014 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17015 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17016 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17017 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17018 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17019 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17020 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17021 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17022 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17023 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17024 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17025 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17026 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17027 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17028 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17029 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17030 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17031 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17032 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17033 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17034 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17035 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17036 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17037 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17038 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17039 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17040 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17041 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17042 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17043 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17044 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17045 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17046 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17047 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17048 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17049 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17050 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17051 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17052 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17053 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17054 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17055 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17056 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17057 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17058 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17059 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17060 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17061 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17062 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17063 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17064 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17065 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17066 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17067 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17068 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17069 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17070 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17071 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17072 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17073 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17074 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17075 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17076 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17077 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17078 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17079 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17080 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17081 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17082 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17083 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17084 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17085 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17086 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17087 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17088 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17089 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17090 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17091 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17092 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17093 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17094 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17095 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17096 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17097 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17098
17099 LTCC='$LTCC'
17100 LTCFLAGS='$LTCFLAGS'
17101 compiler='$compiler_DEFAULT'
17102
17103 # Quote evaled strings.
17104 for var in SED \
17105 GREP \
17106 EGREP \
17107 FGREP \
17108 LD \
17109 NM \
17110 LN_S \
17111 lt_SP2NL \
17112 lt_NL2SP \
17113 reload_flag \
17114 deplibs_check_method \
17115 file_magic_cmd \
17116 AR \
17117 AR_FLAGS \
17118 STRIP \
17119 RANLIB \
17120 CC \
17121 CFLAGS \
17122 compiler \
17123 lt_cv_sys_global_symbol_pipe \
17124 lt_cv_sys_global_symbol_to_cdecl \
17125 lt_cv_sys_global_symbol_to_c_name_address \
17126 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17127 SHELL \
17128 ECHO \
17129 lt_prog_compiler_no_builtin_flag \
17130 lt_prog_compiler_wl \
17131 lt_prog_compiler_pic \
17132 lt_prog_compiler_static \
17133 lt_cv_prog_compiler_c_o \
17134 need_locks \
17135 DSYMUTIL \
17136 NMEDIT \
17137 LIPO \
17138 OTOOL \
17139 OTOOL64 \
17140 shrext_cmds \
17141 export_dynamic_flag_spec \
17142 whole_archive_flag_spec \
17143 compiler_needs_object \
17144 with_gnu_ld \
17145 allow_undefined_flag \
17146 no_undefined_flag \
17147 hardcode_libdir_flag_spec \
17148 hardcode_libdir_flag_spec_ld \
17149 hardcode_libdir_separator \
17150 fix_srcfile_path \
17151 exclude_expsyms \
17152 include_expsyms \
17153 file_list_spec \
17154 variables_saved_for_relink \
17155 libname_spec \
17156 library_names_spec \
17157 soname_spec \
17158 finish_eval \
17159 old_striplib \
17160 striplib \
17161 compiler_lib_search_dirs \
17162 predep_objects \
17163 postdep_objects \
17164 predeps \
17165 postdeps \
17166 compiler_lib_search_path \
17167 LD_CXX \
17168 compiler_CXX \
17169 lt_prog_compiler_no_builtin_flag_CXX \
17170 lt_prog_compiler_wl_CXX \
17171 lt_prog_compiler_pic_CXX \
17172 lt_prog_compiler_static_CXX \
17173 lt_cv_prog_compiler_c_o_CXX \
17174 export_dynamic_flag_spec_CXX \
17175 whole_archive_flag_spec_CXX \
17176 compiler_needs_object_CXX \
17177 with_gnu_ld_CXX \
17178 allow_undefined_flag_CXX \
17179 no_undefined_flag_CXX \
17180 hardcode_libdir_flag_spec_CXX \
17181 hardcode_libdir_flag_spec_ld_CXX \
17182 hardcode_libdir_separator_CXX \
17183 fix_srcfile_path_CXX \
17184 exclude_expsyms_CXX \
17185 include_expsyms_CXX \
17186 file_list_spec_CXX \
17187 compiler_lib_search_dirs_CXX \
17188 predep_objects_CXX \
17189 postdep_objects_CXX \
17190 predeps_CXX \
17191 postdeps_CXX \
17192 compiler_lib_search_path_CXX; do
17193     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17194     *[\\\\\\\`\\"\\\$]*)
17195       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17196       ;;
17197     *)
17198       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17199       ;;
17200     esac
17201 done
17202
17203 # Double-quote double-evaled strings.
17204 for var in reload_cmds \
17205 old_postinstall_cmds \
17206 old_postuninstall_cmds \
17207 old_archive_cmds \
17208 extract_expsyms_cmds \
17209 old_archive_from_new_cmds \
17210 old_archive_from_expsyms_cmds \
17211 archive_cmds \
17212 archive_expsym_cmds \
17213 module_cmds \
17214 module_expsym_cmds \
17215 export_symbols_cmds \
17216 prelink_cmds \
17217 postinstall_cmds \
17218 postuninstall_cmds \
17219 finish_cmds \
17220 sys_lib_search_path_spec \
17221 sys_lib_dlsearch_path_spec \
17222 old_archive_cmds_CXX \
17223 old_archive_from_new_cmds_CXX \
17224 old_archive_from_expsyms_cmds_CXX \
17225 archive_cmds_CXX \
17226 archive_expsym_cmds_CXX \
17227 module_cmds_CXX \
17228 module_expsym_cmds_CXX \
17229 export_symbols_cmds_CXX \
17230 prelink_cmds_CXX; do
17231     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17232     *[\\\\\\\`\\"\\\$]*)
17233       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17234       ;;
17235     *)
17236       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17237       ;;
17238     esac
17239 done
17240
17241 # Fix-up fallback echo if it was mangled by the above quoting rules.
17242 case \$lt_ECHO in
17243 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17244   ;;
17245 esac
17246
17247 ac_aux_dir='$ac_aux_dir'
17248 xsi_shell='$xsi_shell'
17249 lt_shell_append='$lt_shell_append'
17250
17251 # See if we are running on zsh, and set the options which allow our
17252 # commands through without removal of \ escapes INIT.
17253 if test -n "\${ZSH_VERSION+set}" ; then
17254    setopt NO_GLOB_SUBST
17255 fi
17256
17257
17258     PACKAGE='$PACKAGE'
17259     VERSION='$VERSION'
17260     TIMESTAMP='$TIMESTAMP'
17261     RM='$RM'
17262     ofile='$ofile'
17263
17264
17265
17266
17267
17268
17269 _ACEOF
17270
17271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17272
17273 # Handling of arguments.
17274 for ac_config_target in $ac_config_targets
17275 do
17276   case $ac_config_target in
17277     "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
17278     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17279     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17280     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17281     "libopenjpeg.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg.pc" ;;
17282     "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
17283     "jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES jpwl/Makefile" ;;
17284     "codec/Makefile") CONFIG_FILES="$CONFIG_FILES codec/Makefile" ;;
17285     "mj2/Makefile") CONFIG_FILES="$CONFIG_FILES mj2/Makefile" ;;
17286     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17287     "jp3d/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/Makefile" ;;
17288     "jp3d/libjp3dvm/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/libjp3dvm/Makefile" ;;
17289     "jp3d/codec/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/codec/Makefile" ;;
17290
17291   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17292   esac
17293 done
17294
17295
17296 # If the user did not use the arguments to specify the items to instantiate,
17297 # then the envvar interface is used.  Set only those that are not.
17298 # We use the long form for the default assignment because of an extremely
17299 # bizarre bug on SunOS 4.1.3.
17300 if $ac_need_defaults; then
17301   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17302   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17303   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17304 fi
17305
17306 # Have a temporary directory for convenience.  Make it in the build tree
17307 # simply because there is no reason against having it here, and in addition,
17308 # creating and moving files from /tmp can sometimes cause problems.
17309 # Hook for its removal unless debugging.
17310 # Note that there is a small window in which the directory will not be cleaned:
17311 # after its creation but before its name has been assigned to `$tmp'.
17312 $debug ||
17313 {
17314   tmp=
17315   trap 'exit_status=$?
17316   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17317 ' 0
17318   trap 'as_fn_exit 1' 1 2 13 15
17319 }
17320 # Create a (secure) tmp directory for tmp files.
17321
17322 {
17323   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17324   test -n "$tmp" && test -d "$tmp"
17325 }  ||
17326 {
17327   tmp=./conf$$-$RANDOM
17328   (umask 077 && mkdir "$tmp")
17329 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17330
17331 # Set up the scripts for CONFIG_FILES section.
17332 # No need to generate them if there are no CONFIG_FILES.
17333 # This happens for instance with `./config.status config.h'.
17334 if test -n "$CONFIG_FILES"; then
17335
17336
17337 ac_cr=`echo X | tr X '\015'`
17338 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17339 # But we know of no other shell where ac_cr would be empty at this
17340 # point, so we can use a bashism as a fallback.
17341 if test "x$ac_cr" = x; then
17342   eval ac_cr=\$\'\\r\'
17343 fi
17344 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17345 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17346   ac_cs_awk_cr='\r'
17347 else
17348   ac_cs_awk_cr=$ac_cr
17349 fi
17350
17351 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17352 _ACEOF
17353
17354
17355 {
17356   echo "cat >conf$$subs.awk <<_ACEOF" &&
17357   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17358   echo "_ACEOF"
17359 } >conf$$subs.sh ||
17360   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17361 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17362 ac_delim='%!_!# '
17363 for ac_last_try in false false false false false :; do
17364   . ./conf$$subs.sh ||
17365     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17366
17367   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17368   if test $ac_delim_n = $ac_delim_num; then
17369     break
17370   elif $ac_last_try; then
17371     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17372   else
17373     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17374   fi
17375 done
17376 rm -f conf$$subs.sh
17377
17378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17379 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17380 _ACEOF
17381 sed -n '
17382 h
17383 s/^/S["/; s/!.*/"]=/
17384 p
17385 g
17386 s/^[^!]*!//
17387 :repl
17388 t repl
17389 s/'"$ac_delim"'$//
17390 t delim
17391 :nl
17392 h
17393 s/\(.\{148\}\)..*/\1/
17394 t more1
17395 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17396 p
17397 n
17398 b repl
17399 :more1
17400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17401 p
17402 g
17403 s/.\{148\}//
17404 t nl
17405 :delim
17406 h
17407 s/\(.\{148\}\)..*/\1/
17408 t more2
17409 s/["\\]/\\&/g; s/^/"/; s/$/"/
17410 p
17411 b
17412 :more2
17413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17414 p
17415 g
17416 s/.\{148\}//
17417 t delim
17418 ' <conf$$subs.awk | sed '
17419 /^[^""]/{
17420   N
17421   s/\n//
17422 }
17423 ' >>$CONFIG_STATUS || ac_write_fail=1
17424 rm -f conf$$subs.awk
17425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17426 _ACAWK
17427 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17428   for (key in S) S_is_set[key] = 1
17429   FS = "\a"
17430
17431 }
17432 {
17433   line = $ 0
17434   nfields = split(line, field, "@")
17435   substed = 0
17436   len = length(field[1])
17437   for (i = 2; i < nfields; i++) {
17438     key = field[i]
17439     keylen = length(key)
17440     if (S_is_set[key]) {
17441       value = S[key]
17442       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17443       len += length(value) + length(field[++i])
17444       substed = 1
17445     } else
17446       len += 1 + keylen
17447   }
17448
17449   print line
17450 }
17451
17452 _ACAWK
17453 _ACEOF
17454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17455 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17456   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17457 else
17458   cat
17459 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17460   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17461 _ACEOF
17462
17463 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17464 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17465 # trailing colons and then remove the whole line if VPATH becomes empty
17466 # (actually we leave an empty line to preserve line numbers).
17467 if test "x$srcdir" = x.; then
17468   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17469 s/:*\$(srcdir):*/:/
17470 s/:*\${srcdir}:*/:/
17471 s/:*@srcdir@:*/:/
17472 s/^\([^=]*=[     ]*\):*/\1/
17473 s/:*$//
17474 s/^[^=]*=[       ]*$//
17475 }'
17476 fi
17477
17478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17479 fi # test -n "$CONFIG_FILES"
17480
17481 # Set up the scripts for CONFIG_HEADERS section.
17482 # No need to generate them if there are no CONFIG_HEADERS.
17483 # This happens for instance with `./config.status Makefile'.
17484 if test -n "$CONFIG_HEADERS"; then
17485 cat >"$tmp/defines.awk" <<\_ACAWK ||
17486 BEGIN {
17487 _ACEOF
17488
17489 # Transform confdefs.h into an awk script `defines.awk', embedded as
17490 # here-document in config.status, that substitutes the proper values into
17491 # config.h.in to produce config.h.
17492
17493 # Create a delimiter string that does not exist in confdefs.h, to ease
17494 # handling of long lines.
17495 ac_delim='%!_!# '
17496 for ac_last_try in false false :; do
17497   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17498   if test -z "$ac_t"; then
17499     break
17500   elif $ac_last_try; then
17501     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17502   else
17503     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17504   fi
17505 done
17506
17507 # For the awk script, D is an array of macro values keyed by name,
17508 # likewise P contains macro parameters if any.  Preserve backslash
17509 # newline sequences.
17510
17511 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17512 sed -n '
17513 s/.\{148\}/&'"$ac_delim"'/g
17514 t rset
17515 :rset
17516 s/^[     ]*#[    ]*define[       ][      ]*/ /
17517 t def
17518 d
17519 :def
17520 s/\\$//
17521 t bsnl
17522 s/["\\]/\\&/g
17523 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17524 D["\1"]=" \3"/p
17525 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17526 d
17527 :bsnl
17528 s/["\\]/\\&/g
17529 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17530 D["\1"]=" \3\\\\\\n"\\/p
17531 t cont
17532 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17533 t cont
17534 d
17535 :cont
17536 n
17537 s/.\{148\}/&'"$ac_delim"'/g
17538 t clear
17539 :clear
17540 s/\\$//
17541 t bsnlc
17542 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17543 d
17544 :bsnlc
17545 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17546 b cont
17547 ' <confdefs.h | sed '
17548 s/'"$ac_delim"'/"\\\
17549 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17550
17551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17552   for (key in D) D_is_set[key] = 1
17553   FS = "\a"
17554 }
17555 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17556   line = \$ 0
17557   split(line, arg, " ")
17558   if (arg[1] == "#") {
17559     defundef = arg[2]
17560     mac1 = arg[3]
17561   } else {
17562     defundef = substr(arg[1], 2)
17563     mac1 = arg[2]
17564   }
17565   split(mac1, mac2, "(") #)
17566   macro = mac2[1]
17567   prefix = substr(line, 1, index(line, defundef) - 1)
17568   if (D_is_set[macro]) {
17569     # Preserve the white space surrounding the "#".
17570     print prefix "define", macro P[macro] D[macro]
17571     next
17572   } else {
17573     # Replace #undef with comments.  This is necessary, for example,
17574     # in the case of _POSIX_SOURCE, which is predefined and required
17575     # on some systems where configure will not decide to define it.
17576     if (defundef == "undef") {
17577       print "/*", prefix defundef, macro, "*/"
17578       next
17579     }
17580   }
17581 }
17582 { print }
17583 _ACAWK
17584 _ACEOF
17585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17586   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17587 fi # test -n "$CONFIG_HEADERS"
17588
17589
17590 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17591 shift
17592 for ac_tag
17593 do
17594   case $ac_tag in
17595   :[FHLC]) ac_mode=$ac_tag; continue;;
17596   esac
17597   case $ac_mode$ac_tag in
17598   :[FHL]*:*);;
17599   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17600   :[FH]-) ac_tag=-:-;;
17601   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17602   esac
17603   ac_save_IFS=$IFS
17604   IFS=:
17605   set x $ac_tag
17606   IFS=$ac_save_IFS
17607   shift
17608   ac_file=$1
17609   shift
17610
17611   case $ac_mode in
17612   :L) ac_source=$1;;
17613   :[FH])
17614     ac_file_inputs=
17615     for ac_f
17616     do
17617       case $ac_f in
17618       -) ac_f="$tmp/stdin";;
17619       *) # Look for the file first in the build tree, then in the source tree
17620          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17621          # because $ac_f cannot contain `:'.
17622          test -f "$ac_f" ||
17623            case $ac_f in
17624            [\\/$]*) false;;
17625            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17626            esac ||
17627            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17628       esac
17629       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17630       as_fn_append ac_file_inputs " '$ac_f'"
17631     done
17632
17633     # Let's still pretend it is `configure' which instantiates (i.e., don't
17634     # use $as_me), people would be surprised to read:
17635     #    /* config.h.  Generated by config.status.  */
17636     configure_input='Generated from '`
17637           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17638         `' by configure.'
17639     if test x"$ac_file" != x-; then
17640       configure_input="$ac_file.  $configure_input"
17641       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17642 $as_echo "$as_me: creating $ac_file" >&6;}
17643     fi
17644     # Neutralize special characters interpreted by sed in replacement strings.
17645     case $configure_input in #(
17646     *\&* | *\|* | *\\* )
17647        ac_sed_conf_input=`$as_echo "$configure_input" |
17648        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17649     *) ac_sed_conf_input=$configure_input;;
17650     esac
17651
17652     case $ac_tag in
17653     *:-:* | *:-) cat >"$tmp/stdin" \
17654       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17655     esac
17656     ;;
17657   esac
17658
17659   ac_dir=`$as_dirname -- "$ac_file" ||
17660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17661          X"$ac_file" : 'X\(//\)[^/]' \| \
17662          X"$ac_file" : 'X\(//\)$' \| \
17663          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17664 $as_echo X"$ac_file" |
17665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17666             s//\1/
17667             q
17668           }
17669           /^X\(\/\/\)[^/].*/{
17670             s//\1/
17671             q
17672           }
17673           /^X\(\/\/\)$/{
17674             s//\1/
17675             q
17676           }
17677           /^X\(\/\).*/{
17678             s//\1/
17679             q
17680           }
17681           s/.*/./; q'`
17682   as_dir="$ac_dir"; as_fn_mkdir_p
17683   ac_builddir=.
17684
17685 case "$ac_dir" in
17686 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17687 *)
17688   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17689   # A ".." for each directory in $ac_dir_suffix.
17690   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17691   case $ac_top_builddir_sub in
17692   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17693   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17694   esac ;;
17695 esac
17696 ac_abs_top_builddir=$ac_pwd
17697 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17698 # for backward compatibility:
17699 ac_top_builddir=$ac_top_build_prefix
17700
17701 case $srcdir in
17702   .)  # We are building in place.
17703     ac_srcdir=.
17704     ac_top_srcdir=$ac_top_builddir_sub
17705     ac_abs_top_srcdir=$ac_pwd ;;
17706   [\\/]* | ?:[\\/]* )  # Absolute name.
17707     ac_srcdir=$srcdir$ac_dir_suffix;
17708     ac_top_srcdir=$srcdir
17709     ac_abs_top_srcdir=$srcdir ;;
17710   *) # Relative name.
17711     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17712     ac_top_srcdir=$ac_top_build_prefix$srcdir
17713     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17714 esac
17715 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17716
17717
17718   case $ac_mode in
17719   :F)
17720   #
17721   # CONFIG_FILE
17722   #
17723
17724   case $INSTALL in
17725   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17726   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17727   esac
17728   ac_MKDIR_P=$MKDIR_P
17729   case $MKDIR_P in
17730   [\\/$]* | ?:[\\/]* ) ;;
17731   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17732   esac
17733 _ACEOF
17734
17735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17736 # If the template does not know about datarootdir, expand it.
17737 # FIXME: This hack should be removed a few years after 2.60.
17738 ac_datarootdir_hack=; ac_datarootdir_seen=
17739 ac_sed_dataroot='
17740 /datarootdir/ {
17741   p
17742   q
17743 }
17744 /@datadir@/p
17745 /@docdir@/p
17746 /@infodir@/p
17747 /@localedir@/p
17748 /@mandir@/p'
17749 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17750 *datarootdir*) ac_datarootdir_seen=yes;;
17751 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17752   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17753 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17754 _ACEOF
17755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17756   ac_datarootdir_hack='
17757   s&@datadir@&$datadir&g
17758   s&@docdir@&$docdir&g
17759   s&@infodir@&$infodir&g
17760   s&@localedir@&$localedir&g
17761   s&@mandir@&$mandir&g
17762   s&\\\${datarootdir}&$datarootdir&g' ;;
17763 esac
17764 _ACEOF
17765
17766 # Neutralize VPATH when `$srcdir' = `.'.
17767 # Shell code in configure.ac might set extrasub.
17768 # FIXME: do we really want to maintain this feature?
17769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770 ac_sed_extra="$ac_vpsub
17771 $extrasub
17772 _ACEOF
17773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17774 :t
17775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17776 s|@configure_input@|$ac_sed_conf_input|;t t
17777 s&@top_builddir@&$ac_top_builddir_sub&;t t
17778 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17779 s&@srcdir@&$ac_srcdir&;t t
17780 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17781 s&@top_srcdir@&$ac_top_srcdir&;t t
17782 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17783 s&@builddir@&$ac_builddir&;t t
17784 s&@abs_builddir@&$ac_abs_builddir&;t t
17785 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17786 s&@INSTALL@&$ac_INSTALL&;t t
17787 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17788 $ac_datarootdir_hack
17789 "
17790 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17791   || as_fn_error "could not create $ac_file" "$LINENO" 5
17792
17793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17794   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17795   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17796   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17797 which seems to be undefined.  Please make sure it is defined." >&5
17798 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17799 which seems to be undefined.  Please make sure it is defined." >&2;}
17800
17801   rm -f "$tmp/stdin"
17802   case $ac_file in
17803   -) cat "$tmp/out" && rm -f "$tmp/out";;
17804   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17805   esac \
17806   || as_fn_error "could not create $ac_file" "$LINENO" 5
17807  ;;
17808   :H)
17809   #
17810   # CONFIG_HEADER
17811   #
17812   if test x"$ac_file" != x-; then
17813     {
17814       $as_echo "/* $configure_input  */" \
17815       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17816     } >"$tmp/config.h" \
17817       || as_fn_error "could not create $ac_file" "$LINENO" 5
17818     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17819       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17820 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17821     else
17822       rm -f "$ac_file"
17823       mv "$tmp/config.h" "$ac_file" \
17824         || as_fn_error "could not create $ac_file" "$LINENO" 5
17825     fi
17826   else
17827     $as_echo "/* $configure_input  */" \
17828       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17829       || as_fn_error "could not create -" "$LINENO" 5
17830   fi
17831 # Compute "$ac_file"'s index in $config_headers.
17832 _am_arg="$ac_file"
17833 _am_stamp_count=1
17834 for _am_header in $config_headers :; do
17835   case $_am_header in
17836     $_am_arg | $_am_arg:* )
17837       break ;;
17838     * )
17839       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17840   esac
17841 done
17842 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17843 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17844          X"$_am_arg" : 'X\(//\)[^/]' \| \
17845          X"$_am_arg" : 'X\(//\)$' \| \
17846          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17847 $as_echo X"$_am_arg" |
17848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17849             s//\1/
17850             q
17851           }
17852           /^X\(\/\/\)[^/].*/{
17853             s//\1/
17854             q
17855           }
17856           /^X\(\/\/\)$/{
17857             s//\1/
17858             q
17859           }
17860           /^X\(\/\).*/{
17861             s//\1/
17862             q
17863           }
17864           s/.*/./; q'`/stamp-h$_am_stamp_count
17865  ;;
17866
17867   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17868 $as_echo "$as_me: executing $ac_file commands" >&6;}
17869  ;;
17870   esac
17871
17872
17873   case $ac_file$ac_mode in
17874     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17875   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17876   # are listed without --file.  Let's play safe and only enable the eval
17877   # if we detect the quoting.
17878   case $CONFIG_FILES in
17879   *\'*) eval set x "$CONFIG_FILES" ;;
17880   *)   set x $CONFIG_FILES ;;
17881   esac
17882   shift
17883   for mf
17884   do
17885     # Strip MF so we end up with the name of the file.
17886     mf=`echo "$mf" | sed -e 's/:.*$//'`
17887     # Check whether this is an Automake generated Makefile or not.
17888     # We used to match only the files named `Makefile.in', but
17889     # some people rename them; so instead we look at the file content.
17890     # Grep'ing the first line is not enough: some people post-process
17891     # each Makefile.in and add a new line on top of each file to say so.
17892     # Grep'ing the whole file is not good either: AIX grep has a line
17893     # limit of 2048, but all sed's we know have understand at least 4000.
17894     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17895       dirpart=`$as_dirname -- "$mf" ||
17896 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17897          X"$mf" : 'X\(//\)[^/]' \| \
17898          X"$mf" : 'X\(//\)$' \| \
17899          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17900 $as_echo X"$mf" |
17901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17902             s//\1/
17903             q
17904           }
17905           /^X\(\/\/\)[^/].*/{
17906             s//\1/
17907             q
17908           }
17909           /^X\(\/\/\)$/{
17910             s//\1/
17911             q
17912           }
17913           /^X\(\/\).*/{
17914             s//\1/
17915             q
17916           }
17917           s/.*/./; q'`
17918     else
17919       continue
17920     fi
17921     # Extract the definition of DEPDIR, am__include, and am__quote
17922     # from the Makefile without running `make'.
17923     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17924     test -z "$DEPDIR" && continue
17925     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17926     test -z "am__include" && continue
17927     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17928     # When using ansi2knr, U may be empty or an underscore; expand it
17929     U=`sed -n 's/^U = //p' < "$mf"`
17930     # Find all dependency output files, they are included files with
17931     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17932     # simplest approach to changing $(DEPDIR) to its actual value in the
17933     # expansion.
17934     for file in `sed -n "
17935       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17936          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17937       # Make sure the directory exists.
17938       test -f "$dirpart/$file" && continue
17939       fdir=`$as_dirname -- "$file" ||
17940 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17941          X"$file" : 'X\(//\)[^/]' \| \
17942          X"$file" : 'X\(//\)$' \| \
17943          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17944 $as_echo X"$file" |
17945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17946             s//\1/
17947             q
17948           }
17949           /^X\(\/\/\)[^/].*/{
17950             s//\1/
17951             q
17952           }
17953           /^X\(\/\/\)$/{
17954             s//\1/
17955             q
17956           }
17957           /^X\(\/\).*/{
17958             s//\1/
17959             q
17960           }
17961           s/.*/./; q'`
17962       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17963       # echo "creating $dirpart/$file"
17964       echo '# dummy' > "$dirpart/$file"
17965     done
17966   done
17967 }
17968  ;;
17969     "libtool":C)
17970
17971     # See if we are running on zsh, and set the options which allow our
17972     # commands through without removal of \ escapes.
17973     if test -n "${ZSH_VERSION+set}" ; then
17974       setopt NO_GLOB_SUBST
17975     fi
17976
17977     cfgfile="${ofile}T"
17978     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17979     $RM "$cfgfile"
17980
17981     cat <<_LT_EOF >> "$cfgfile"
17982 #! $SHELL
17983
17984 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17985 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17986 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17987 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17988 #
17989 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17990 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17991 #   Written by Gordon Matzigkeit, 1996
17992 #
17993 #   This file is part of GNU Libtool.
17994 #
17995 # GNU Libtool is free software; you can redistribute it and/or
17996 # modify it under the terms of the GNU General Public License as
17997 # published by the Free Software Foundation; either version 2 of
17998 # the License, or (at your option) any later version.
17999 #
18000 # As a special exception to the GNU General Public License,
18001 # if you distribute this file as part of a program or library that
18002 # is built using GNU Libtool, you may include this file under the
18003 # same distribution terms that you use for the rest of that program.
18004 #
18005 # GNU Libtool is distributed in the hope that it will be useful,
18006 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18007 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18008 # GNU General Public License for more details.
18009 #
18010 # You should have received a copy of the GNU General Public License
18011 # along with GNU Libtool; see the file COPYING.  If not, a copy
18012 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18013 # obtained by writing to the Free Software Foundation, Inc.,
18014 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18015
18016
18017 # The names of the tagged configurations supported by this script.
18018 available_tags="CXX "
18019
18020 # ### BEGIN LIBTOOL CONFIG
18021
18022 # Whether or not to build shared libraries.
18023 build_libtool_libs=$enable_shared
18024
18025 # Whether or not to build static libraries.
18026 build_old_libs=$enable_static
18027
18028 # Assembler program.
18029 AS=$AS
18030
18031 # DLL creation program.
18032 DLLTOOL=$DLLTOOL
18033
18034 # Object dumper program.
18035 OBJDUMP=$OBJDUMP
18036
18037 # Which release of libtool.m4 was used?
18038 macro_version=$macro_version
18039 macro_revision=$macro_revision
18040
18041 # What type of objects to build.
18042 pic_mode=$pic_mode
18043
18044 # Whether or not to optimize for fast installation.
18045 fast_install=$enable_fast_install
18046
18047 # The host system.
18048 host_alias=$host_alias
18049 host=$host
18050 host_os=$host_os
18051
18052 # The build system.
18053 build_alias=$build_alias
18054 build=$build
18055 build_os=$build_os
18056
18057 # A sed program that does not truncate output.
18058 SED=$lt_SED
18059
18060 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18061 Xsed="\$SED -e 1s/^X//"
18062
18063 # A grep program that handles long lines.
18064 GREP=$lt_GREP
18065
18066 # An ERE matcher.
18067 EGREP=$lt_EGREP
18068
18069 # A literal string matcher.
18070 FGREP=$lt_FGREP
18071
18072 # A BSD- or MS-compatible name lister.
18073 NM=$lt_NM
18074
18075 # Whether we need soft or hard links.
18076 LN_S=$lt_LN_S
18077
18078 # What is the maximum length of a command?
18079 max_cmd_len=$max_cmd_len
18080
18081 # Object file suffix (normally "o").
18082 objext=$ac_objext
18083
18084 # Executable file suffix (normally "").
18085 exeext=$exeext
18086
18087 # whether the shell understands "unset".
18088 lt_unset=$lt_unset
18089
18090 # turn spaces into newlines.
18091 SP2NL=$lt_lt_SP2NL
18092
18093 # turn newlines into spaces.
18094 NL2SP=$lt_lt_NL2SP
18095
18096 # How to create reloadable object files.
18097 reload_flag=$lt_reload_flag
18098 reload_cmds=$lt_reload_cmds
18099
18100 # Method to check whether dependent libraries are shared objects.
18101 deplibs_check_method=$lt_deplibs_check_method
18102
18103 # Command to use when deplibs_check_method == "file_magic".
18104 file_magic_cmd=$lt_file_magic_cmd
18105
18106 # The archiver.
18107 AR=$lt_AR
18108 AR_FLAGS=$lt_AR_FLAGS
18109
18110 # A symbol stripping program.
18111 STRIP=$lt_STRIP
18112
18113 # Commands used to install an old-style archive.
18114 RANLIB=$lt_RANLIB
18115 old_postinstall_cmds=$lt_old_postinstall_cmds
18116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18117
18118 # A C compiler.
18119 LTCC=$lt_CC
18120
18121 # LTCC compiler flags.
18122 LTCFLAGS=$lt_CFLAGS
18123
18124 # Take the output of nm and produce a listing of raw symbols and C names.
18125 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18126
18127 # Transform the output of nm in a proper C declaration.
18128 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18129
18130 # Transform the output of nm in a C name address pair.
18131 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18132
18133 # Transform the output of nm in a C name address pair when lib prefix is needed.
18134 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18135
18136 # The name of the directory that contains temporary libtool files.
18137 objdir=$objdir
18138
18139 # Shell to use when invoking shell scripts.
18140 SHELL=$lt_SHELL
18141
18142 # An echo program that does not interpret backslashes.
18143 ECHO=$lt_ECHO
18144
18145 # Used to examine libraries when file_magic_cmd begins with "file".
18146 MAGIC_CMD=$MAGIC_CMD
18147
18148 # Must we lock files when doing compilation?
18149 need_locks=$lt_need_locks
18150
18151 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18152 DSYMUTIL=$lt_DSYMUTIL
18153
18154 # Tool to change global to local symbols on Mac OS X.
18155 NMEDIT=$lt_NMEDIT
18156
18157 # Tool to manipulate fat objects and archives on Mac OS X.
18158 LIPO=$lt_LIPO
18159
18160 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18161 OTOOL=$lt_OTOOL
18162
18163 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18164 OTOOL64=$lt_OTOOL64
18165
18166 # Old archive suffix (normally "a").
18167 libext=$libext
18168
18169 # Shared library suffix (normally ".so").
18170 shrext_cmds=$lt_shrext_cmds
18171
18172 # The commands to extract the exported symbol list from a shared archive.
18173 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18174
18175 # Variables whose values should be saved in libtool wrapper scripts and
18176 # restored at link time.
18177 variables_saved_for_relink=$lt_variables_saved_for_relink
18178
18179 # Do we need the "lib" prefix for modules?
18180 need_lib_prefix=$need_lib_prefix
18181
18182 # Do we need a version for libraries?
18183 need_version=$need_version
18184
18185 # Library versioning type.
18186 version_type=$version_type
18187
18188 # Shared library runtime path variable.
18189 runpath_var=$runpath_var
18190
18191 # Shared library path variable.
18192 shlibpath_var=$shlibpath_var
18193
18194 # Is shlibpath searched before the hard-coded library search path?
18195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18196
18197 # Format of library name prefix.
18198 libname_spec=$lt_libname_spec
18199
18200 # List of archive names.  First name is the real one, the rest are links.
18201 # The last name is the one that the linker finds with -lNAME
18202 library_names_spec=$lt_library_names_spec
18203
18204 # The coded name of the library, if different from the real name.
18205 soname_spec=$lt_soname_spec
18206
18207 # Command to use after installation of a shared archive.
18208 postinstall_cmds=$lt_postinstall_cmds
18209
18210 # Command to use after uninstallation of a shared archive.
18211 postuninstall_cmds=$lt_postuninstall_cmds
18212
18213 # Commands used to finish a libtool library installation in a directory.
18214 finish_cmds=$lt_finish_cmds
18215
18216 # As "finish_cmds", except a single script fragment to be evaled but
18217 # not shown.
18218 finish_eval=$lt_finish_eval
18219
18220 # Whether we should hardcode library paths into libraries.
18221 hardcode_into_libs=$hardcode_into_libs
18222
18223 # Compile-time system search path for libraries.
18224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18225
18226 # Run-time system search path for libraries.
18227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18228
18229 # Whether dlopen is supported.
18230 dlopen_support=$enable_dlopen
18231
18232 # Whether dlopen of programs is supported.
18233 dlopen_self=$enable_dlopen_self
18234
18235 # Whether dlopen of statically linked programs is supported.
18236 dlopen_self_static=$enable_dlopen_self_static
18237
18238 # Commands to strip libraries.
18239 old_striplib=$lt_old_striplib
18240 striplib=$lt_striplib
18241
18242
18243 # The linker used to build libraries.
18244 LD=$lt_LD
18245
18246 # Commands used to build an old-style archive.
18247 old_archive_cmds=$lt_old_archive_cmds
18248
18249 # A language specific compiler.
18250 CC=$lt_compiler
18251
18252 # Is the compiler the GNU compiler?
18253 with_gcc=$GCC
18254
18255 # Compiler flag to turn off builtin functions.
18256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18257
18258 # How to pass a linker flag through the compiler.
18259 wl=$lt_lt_prog_compiler_wl
18260
18261 # Additional compiler flags for building library objects.
18262 pic_flag=$lt_lt_prog_compiler_pic
18263
18264 # Compiler flag to prevent dynamic linking.
18265 link_static_flag=$lt_lt_prog_compiler_static
18266
18267 # Does compiler simultaneously support -c and -o options?
18268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18269
18270 # Whether or not to add -lc for building shared libraries.
18271 build_libtool_need_lc=$archive_cmds_need_lc
18272
18273 # Whether or not to disallow shared libs when runtime libs are static.
18274 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18275
18276 # Compiler flag to allow reflexive dlopens.
18277 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18278
18279 # Compiler flag to generate shared objects directly from archives.
18280 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18281
18282 # Whether the compiler copes with passing no objects directly.
18283 compiler_needs_object=$lt_compiler_needs_object
18284
18285 # Create an old-style archive from a shared archive.
18286 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18287
18288 # Create a temporary old-style archive to link instead of a shared archive.
18289 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18290
18291 # Commands used to build a shared archive.
18292 archive_cmds=$lt_archive_cmds
18293 archive_expsym_cmds=$lt_archive_expsym_cmds
18294
18295 # Commands used to build a loadable module if different from building
18296 # a shared archive.
18297 module_cmds=$lt_module_cmds
18298 module_expsym_cmds=$lt_module_expsym_cmds
18299
18300 # Whether we are building with GNU ld or not.
18301 with_gnu_ld=$lt_with_gnu_ld
18302
18303 # Flag that allows shared libraries with undefined symbols to be built.
18304 allow_undefined_flag=$lt_allow_undefined_flag
18305
18306 # Flag that enforces no undefined symbols.
18307 no_undefined_flag=$lt_no_undefined_flag
18308
18309 # Flag to hardcode \$libdir into a binary during linking.
18310 # This must work even if \$libdir does not exist
18311 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18312
18313 # If ld is used when linking, flag to hardcode \$libdir into a binary
18314 # during linking.  This must work even if \$libdir does not exist.
18315 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18316
18317 # Whether we need a single "-rpath" flag with a separated argument.
18318 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18319
18320 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18321 # DIR into the resulting binary.
18322 hardcode_direct=$hardcode_direct
18323
18324 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18325 # DIR into the resulting binary and the resulting library dependency is
18326 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18327 # library is relocated.
18328 hardcode_direct_absolute=$hardcode_direct_absolute
18329
18330 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18331 # into the resulting binary.
18332 hardcode_minus_L=$hardcode_minus_L
18333
18334 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18335 # into the resulting binary.
18336 hardcode_shlibpath_var=$hardcode_shlibpath_var
18337
18338 # Set to "yes" if building a shared library automatically hardcodes DIR
18339 # into the library and all subsequent libraries and executables linked
18340 # against it.
18341 hardcode_automatic=$hardcode_automatic
18342
18343 # Set to yes if linker adds runtime paths of dependent libraries
18344 # to runtime path list.
18345 inherit_rpath=$inherit_rpath
18346
18347 # Whether libtool must link a program against all its dependency libraries.
18348 link_all_deplibs=$link_all_deplibs
18349
18350 # Fix the shell variable \$srcfile for the compiler.
18351 fix_srcfile_path=$lt_fix_srcfile_path
18352
18353 # Set to "yes" if exported symbols are required.
18354 always_export_symbols=$always_export_symbols
18355
18356 # The commands to list exported symbols.
18357 export_symbols_cmds=$lt_export_symbols_cmds
18358
18359 # Symbols that should not be listed in the preloaded symbols.
18360 exclude_expsyms=$lt_exclude_expsyms
18361
18362 # Symbols that must always be exported.
18363 include_expsyms=$lt_include_expsyms
18364
18365 # Commands necessary for linking programs (against libraries) with templates.
18366 prelink_cmds=$lt_prelink_cmds
18367
18368 # Specify filename containing input files.
18369 file_list_spec=$lt_file_list_spec
18370
18371 # How to hardcode a shared library path into an executable.
18372 hardcode_action=$hardcode_action
18373
18374 # The directories searched by this compiler when creating a shared library.
18375 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18376
18377 # Dependencies to place before and after the objects being linked to
18378 # create a shared library.
18379 predep_objects=$lt_predep_objects
18380 postdep_objects=$lt_postdep_objects
18381 predeps=$lt_predeps
18382 postdeps=$lt_postdeps
18383
18384 # The library search path used internally by the compiler when linking
18385 # a shared library.
18386 compiler_lib_search_path=$lt_compiler_lib_search_path
18387
18388 # ### END LIBTOOL CONFIG
18389
18390 _LT_EOF
18391
18392   case $host_os in
18393   aix3*)
18394     cat <<\_LT_EOF >> "$cfgfile"
18395 # AIX sometimes has problems with the GCC collect2 program.  For some
18396 # reason, if we set the COLLECT_NAMES environment variable, the problems
18397 # vanish in a puff of smoke.
18398 if test "X${COLLECT_NAMES+set}" != Xset; then
18399   COLLECT_NAMES=
18400   export COLLECT_NAMES
18401 fi
18402 _LT_EOF
18403     ;;
18404   esac
18405
18406
18407 ltmain="$ac_aux_dir/ltmain.sh"
18408
18409
18410   # We use sed instead of cat because bash on DJGPP gets confused if
18411   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18412   # text mode, it properly converts lines to CR/LF.  This bash problem
18413   # is reportedly fixed, but why not run on old versions too?
18414   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18415     || (rm -f "$cfgfile"; exit 1)
18416
18417   case $xsi_shell in
18418   yes)
18419     cat << \_LT_EOF >> "$cfgfile"
18420
18421 # func_dirname file append nondir_replacement
18422 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18423 # otherwise set result to NONDIR_REPLACEMENT.
18424 func_dirname ()
18425 {
18426   case ${1} in
18427     */*) func_dirname_result="${1%/*}${2}" ;;
18428     *  ) func_dirname_result="${3}" ;;
18429   esac
18430 }
18431
18432 # func_basename file
18433 func_basename ()
18434 {
18435   func_basename_result="${1##*/}"
18436 }
18437
18438 # func_dirname_and_basename file append nondir_replacement
18439 # perform func_basename and func_dirname in a single function
18440 # call:
18441 #   dirname:  Compute the dirname of FILE.  If nonempty,
18442 #             add APPEND to the result, otherwise set result
18443 #             to NONDIR_REPLACEMENT.
18444 #             value returned in "$func_dirname_result"
18445 #   basename: Compute filename of FILE.
18446 #             value retuned in "$func_basename_result"
18447 # Implementation must be kept synchronized with func_dirname
18448 # and func_basename. For efficiency, we do not delegate to
18449 # those functions but instead duplicate the functionality here.
18450 func_dirname_and_basename ()
18451 {
18452   case ${1} in
18453     */*) func_dirname_result="${1%/*}${2}" ;;
18454     *  ) func_dirname_result="${3}" ;;
18455   esac
18456   func_basename_result="${1##*/}"
18457 }
18458
18459 # func_stripname prefix suffix name
18460 # strip PREFIX and SUFFIX off of NAME.
18461 # PREFIX and SUFFIX must not contain globbing or regex special
18462 # characters, hashes, percent signs, but SUFFIX may contain a leading
18463 # dot (in which case that matches only a dot).
18464 func_stripname ()
18465 {
18466   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18467   # positional parameters, so assign one to ordinary parameter first.
18468   func_stripname_result=${3}
18469   func_stripname_result=${func_stripname_result#"${1}"}
18470   func_stripname_result=${func_stripname_result%"${2}"}
18471 }
18472
18473 # func_opt_split
18474 func_opt_split ()
18475 {
18476   func_opt_split_opt=${1%%=*}
18477   func_opt_split_arg=${1#*=}
18478 }
18479
18480 # func_lo2o object
18481 func_lo2o ()
18482 {
18483   case ${1} in
18484     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18485     *)    func_lo2o_result=${1} ;;
18486   esac
18487 }
18488
18489 # func_xform libobj-or-source
18490 func_xform ()
18491 {
18492   func_xform_result=${1%.*}.lo
18493 }
18494
18495 # func_arith arithmetic-term...
18496 func_arith ()
18497 {
18498   func_arith_result=$(( $* ))
18499 }
18500
18501 # func_len string
18502 # STRING may not start with a hyphen.
18503 func_len ()
18504 {
18505   func_len_result=${#1}
18506 }
18507
18508 _LT_EOF
18509     ;;
18510   *) # Bourne compatible functions.
18511     cat << \_LT_EOF >> "$cfgfile"
18512
18513 # func_dirname file append nondir_replacement
18514 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18515 # otherwise set result to NONDIR_REPLACEMENT.
18516 func_dirname ()
18517 {
18518   # Extract subdirectory from the argument.
18519   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18520   if test "X$func_dirname_result" = "X${1}"; then
18521     func_dirname_result="${3}"
18522   else
18523     func_dirname_result="$func_dirname_result${2}"
18524   fi
18525 }
18526
18527 # func_basename file
18528 func_basename ()
18529 {
18530   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18531 }
18532
18533
18534 # func_stripname prefix suffix name
18535 # strip PREFIX and SUFFIX off of NAME.
18536 # PREFIX and SUFFIX must not contain globbing or regex special
18537 # characters, hashes, percent signs, but SUFFIX may contain a leading
18538 # dot (in which case that matches only a dot).
18539 # func_strip_suffix prefix name
18540 func_stripname ()
18541 {
18542   case ${2} in
18543     .*) func_stripname_result=`$ECHO "X${3}" \
18544            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18545     *)  func_stripname_result=`$ECHO "X${3}" \
18546            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18547   esac
18548 }
18549
18550 # sed scripts:
18551 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18552 my_sed_long_arg='1s/^-[^=]*=//'
18553
18554 # func_opt_split
18555 func_opt_split ()
18556 {
18557   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18558   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18559 }
18560
18561 # func_lo2o object
18562 func_lo2o ()
18563 {
18564   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18565 }
18566
18567 # func_xform libobj-or-source
18568 func_xform ()
18569 {
18570   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18571 }
18572
18573 # func_arith arithmetic-term...
18574 func_arith ()
18575 {
18576   func_arith_result=`expr "$@"`
18577 }
18578
18579 # func_len string
18580 # STRING may not start with a hyphen.
18581 func_len ()
18582 {
18583   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18584 }
18585
18586 _LT_EOF
18587 esac
18588
18589 case $lt_shell_append in
18590   yes)
18591     cat << \_LT_EOF >> "$cfgfile"
18592
18593 # func_append var value
18594 # Append VALUE to the end of shell variable VAR.
18595 func_append ()
18596 {
18597   eval "$1+=\$2"
18598 }
18599 _LT_EOF
18600     ;;
18601   *)
18602     cat << \_LT_EOF >> "$cfgfile"
18603
18604 # func_append var value
18605 # Append VALUE to the end of shell variable VAR.
18606 func_append ()
18607 {
18608   eval "$1=\$$1\$2"
18609 }
18610
18611 _LT_EOF
18612     ;;
18613   esac
18614
18615
18616   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18617     || (rm -f "$cfgfile"; exit 1)
18618
18619   mv -f "$cfgfile" "$ofile" ||
18620     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18621   chmod +x "$ofile"
18622
18623
18624     cat <<_LT_EOF >> "$ofile"
18625
18626 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18627
18628 # The linker used to build libraries.
18629 LD=$lt_LD_CXX
18630
18631 # Commands used to build an old-style archive.
18632 old_archive_cmds=$lt_old_archive_cmds_CXX
18633
18634 # A language specific compiler.
18635 CC=$lt_compiler_CXX
18636
18637 # Is the compiler the GNU compiler?
18638 with_gcc=$GCC_CXX
18639
18640 # Compiler flag to turn off builtin functions.
18641 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18642
18643 # How to pass a linker flag through the compiler.
18644 wl=$lt_lt_prog_compiler_wl_CXX
18645
18646 # Additional compiler flags for building library objects.
18647 pic_flag=$lt_lt_prog_compiler_pic_CXX
18648
18649 # Compiler flag to prevent dynamic linking.
18650 link_static_flag=$lt_lt_prog_compiler_static_CXX
18651
18652 # Does compiler simultaneously support -c and -o options?
18653 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18654
18655 # Whether or not to add -lc for building shared libraries.
18656 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18657
18658 # Whether or not to disallow shared libs when runtime libs are static.
18659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18660
18661 # Compiler flag to allow reflexive dlopens.
18662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18663
18664 # Compiler flag to generate shared objects directly from archives.
18665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18666
18667 # Whether the compiler copes with passing no objects directly.
18668 compiler_needs_object=$lt_compiler_needs_object_CXX
18669
18670 # Create an old-style archive from a shared archive.
18671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18672
18673 # Create a temporary old-style archive to link instead of a shared archive.
18674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18675
18676 # Commands used to build a shared archive.
18677 archive_cmds=$lt_archive_cmds_CXX
18678 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18679
18680 # Commands used to build a loadable module if different from building
18681 # a shared archive.
18682 module_cmds=$lt_module_cmds_CXX
18683 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18684
18685 # Whether we are building with GNU ld or not.
18686 with_gnu_ld=$lt_with_gnu_ld_CXX
18687
18688 # Flag that allows shared libraries with undefined symbols to be built.
18689 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18690
18691 # Flag that enforces no undefined symbols.
18692 no_undefined_flag=$lt_no_undefined_flag_CXX
18693
18694 # Flag to hardcode \$libdir into a binary during linking.
18695 # This must work even if \$libdir does not exist
18696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18697
18698 # If ld is used when linking, flag to hardcode \$libdir into a binary
18699 # during linking.  This must work even if \$libdir does not exist.
18700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18701
18702 # Whether we need a single "-rpath" flag with a separated argument.
18703 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18704
18705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18706 # DIR into the resulting binary.
18707 hardcode_direct=$hardcode_direct_CXX
18708
18709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18710 # DIR into the resulting binary and the resulting library dependency is
18711 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18712 # library is relocated.
18713 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18714
18715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18716 # into the resulting binary.
18717 hardcode_minus_L=$hardcode_minus_L_CXX
18718
18719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18720 # into the resulting binary.
18721 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18722
18723 # Set to "yes" if building a shared library automatically hardcodes DIR
18724 # into the library and all subsequent libraries and executables linked
18725 # against it.
18726 hardcode_automatic=$hardcode_automatic_CXX
18727
18728 # Set to yes if linker adds runtime paths of dependent libraries
18729 # to runtime path list.
18730 inherit_rpath=$inherit_rpath_CXX
18731
18732 # Whether libtool must link a program against all its dependency libraries.
18733 link_all_deplibs=$link_all_deplibs_CXX
18734
18735 # Fix the shell variable \$srcfile for the compiler.
18736 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18737
18738 # Set to "yes" if exported symbols are required.
18739 always_export_symbols=$always_export_symbols_CXX
18740
18741 # The commands to list exported symbols.
18742 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18743
18744 # Symbols that should not be listed in the preloaded symbols.
18745 exclude_expsyms=$lt_exclude_expsyms_CXX
18746
18747 # Symbols that must always be exported.
18748 include_expsyms=$lt_include_expsyms_CXX
18749
18750 # Commands necessary for linking programs (against libraries) with templates.
18751 prelink_cmds=$lt_prelink_cmds_CXX
18752
18753 # Specify filename containing input files.
18754 file_list_spec=$lt_file_list_spec_CXX
18755
18756 # How to hardcode a shared library path into an executable.
18757 hardcode_action=$hardcode_action_CXX
18758
18759 # The directories searched by this compiler when creating a shared library.
18760 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18761
18762 # Dependencies to place before and after the objects being linked to
18763 # create a shared library.
18764 predep_objects=$lt_predep_objects_CXX
18765 postdep_objects=$lt_postdep_objects_CXX
18766 predeps=$lt_predeps_CXX
18767 postdeps=$lt_postdeps_CXX
18768
18769 # The library search path used internally by the compiler when linking
18770 # a shared library.
18771 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18772
18773 # ### END LIBTOOL TAG CONFIG: CXX
18774 _LT_EOF
18775
18776  ;;
18777
18778   esac
18779 done # for ac_tag
18780
18781
18782 as_fn_exit 0
18783 _ACEOF
18784 ac_clean_files=$ac_clean_files_save
18785
18786 test $ac_write_fail = 0 ||
18787   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18788
18789
18790 # configure is writing to config.log, and then calls config.status.
18791 # config.status does its own redirection, appending to config.log.
18792 # Unfortunately, on DOS this fails, as config.log is still kept open
18793 # by configure, so config.status won't be able to write to it; its
18794 # output is simply discarded.  So we exec the FD to /dev/null,
18795 # effectively closing config.log, so it can be properly (re)opened and
18796 # appended to by config.status.  When coming back to configure, we
18797 # need to make the FD available again.
18798 if test "$no_create" != yes; then
18799   ac_cs_success=:
18800   ac_config_status_args=
18801   test "$silent" = yes &&
18802     ac_config_status_args="$ac_config_status_args --quiet"
18803   exec 5>/dev/null
18804   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18805   exec 5>>config.log
18806   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18807   # would make configure fail if this is the last instruction.
18808   $ac_cs_success || as_fn_exit $?
18809 fi
18810 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18811   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18812 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18813 fi
18814
18815 #
18816 echo "----------------------------------------------"
18817 echo "           your configuration"
18818 echo ""
18819 echo "--with-png-libraries: $with_libpng"
18820 echo "libpng header       : $png_header_found"
18821 echo "--enable-tiff       : $with_libtiff"
18822 echo "libtiff header      : $tiff_header_found"
18823 echo "--enable-lcms2      : $with_liblcms2"
18824 echo "lcms2 header        : $lcms2_header_found"
18825 echo "lcms2 version       : $have_lcms2_version"
18826 echo "--enable-lcms1      : $with_liblcms1"
18827 echo "lcms1 header        : $lcms1_header_found"
18828 echo "lcms1 version       : $have_lcms1_version"
18829 echo "--enable-jpwl       : $with_libjpwl"
18830 echo "--enable-jp3d       : $with_jp3d"
18831 echo "--enable-shared     : $with_sharedlibs"
18832 echo "----------------------------------------------"