Added files to let people build openjpeg with configure tools ; Added makefiles to...
[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 doxy_dir
751 with_doxygen
752 LDLIBS
753 jp3d_dir
754 with_sharedlibs_FALSE
755 with_sharedlibs_TRUE
756 jpwl_dir
757 with_libjpwl_FALSE
758 with_libjpwl_TRUE
759 lcms1libs
760 lcms1includes
761 with_liblcms1_FALSE
762 with_liblcms1_TRUE
763 lcms2libs
764 lcms2includes
765 with_liblcms2_FALSE
766 with_liblcms2_TRUE
767 tifflibs
768 tiffincludes
769 with_libtiff_FALSE
770 with_libtiff_TRUE
771 pnglibs
772 pngincludes
773 with_libpng_FALSE
774 with_libpng_TRUE
775 LIBPNG_CONFIG
776 PKGCONFIG
777 CXXCPP
778 CPP
779 OTOOL64
780 OTOOL
781 LIPO
782 NMEDIT
783 DSYMUTIL
784 lt_ECHO
785 AR
786 NM
787 ac_ct_DUMPBIN
788 DUMPBIN
789 LD
790 FGREP
791 EGREP
792 GREP
793 LIBTOOL
794 OBJDUMP
795 DLLTOOL
796 AS
797 SED
798 LN_S
799 RANLIB
800 am__fastdepCXX_FALSE
801 am__fastdepCXX_TRUE
802 CXXDEPMODE
803 ac_ct_CXX
804 CXXFLAGS
805 CXX
806 am__fastdepCC_FALSE
807 am__fastdepCC_TRUE
808 CCDEPMODE
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__quote
813 am__include
814 DEPDIR
815 OBJEXT
816 EXEEXT
817 ac_ct_CC
818 CPPFLAGS
819 LDFLAGS
820 CFLAGS
821 CC
822 JP3D_BUILD_NR
823 JP3D_MINOR_NR
824 JP3D_MAJOR_NR
825 BUILD_NR
826 MINOR_NR
827 MAJOR_NR
828 am__untar
829 am__tar
830 AMTAR
831 am__leading_dot
832 SET_MAKE
833 AWK
834 mkdir_p
835 MKDIR_P
836 INSTALL_STRIP_PROGRAM
837 STRIP
838 install_sh
839 MAKEINFO
840 AUTOHEADER
841 AUTOMAKE
842 AUTOCONF
843 ACLOCAL
844 VERSION
845 PACKAGE
846 CYGPATH_W
847 am__isrc
848 INSTALL_DATA
849 INSTALL_SCRIPT
850 INSTALL_PROGRAM
851 target_os
852 target_vendor
853 target_cpu
854 target
855 host_os
856 host_vendor
857 host_cpu
858 host
859 build_os
860 build_vendor
861 build_cpu
862 build
863 target_alias
864 host_alias
865 build_alias
866 LIBS
867 ECHO_T
868 ECHO_N
869 ECHO_C
870 DEFS
871 mandir
872 localedir
873 libdir
874 psdir
875 pdfdir
876 dvidir
877 htmldir
878 infodir
879 docdir
880 oldincludedir
881 includedir
882 localstatedir
883 sharedstatedir
884 sysconfdir
885 datadir
886 datarootdir
887 libexecdir
888 sbindir
889 bindir
890 program_transform_name
891 prefix
892 exec_prefix
893 PACKAGE_URL
894 PACKAGE_BUGREPORT
895 PACKAGE_STRING
896 PACKAGE_VERSION
897 PACKAGE_TARNAME
898 PACKAGE_NAME
899 PATH_SEPARATOR
900 SHELL'
901 ac_subst_files=''
902 ac_user_opts='
903 enable_option_checking
904 enable_dependency_tracking
905 enable_largefile
906 enable_shared
907 enable_static
908 with_pic
909 enable_fast_install
910 with_gnu_ld
911 enable_libtool_lock
912 enable_png
913 with_png_includes
914 with_png_libraries
915 enable_tiff
916 with_tiff_includes
917 with_tiff_libraries
918 enable_lcms2
919 with_lcms2_includes
920 with_lcms2_libraries
921 enable_lcms1
922 with_lcms1_includes
923 with_lcms1_libraries
924 enable_jpwl
925 enable_jp3d
926 '
927       ac_precious_vars='build_alias
928 host_alias
929 target_alias
930 CC
931 CFLAGS
932 LDFLAGS
933 LIBS
934 CPPFLAGS
935 CXX
936 CXXFLAGS
937 CCC
938 CPP
939 CXXCPP'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994   # If the previous option needs an argument, assign it.
995   if test -n "$ac_prev"; then
996     eval $ac_prev=\$ac_option
997     ac_prev=
998     continue
999   fi
1000
1001   case $ac_option in
1002   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003   *)    ac_optarg=yes ;;
1004   esac
1005
1006   # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008   case $ac_dashdash$ac_option in
1009   --)
1010     ac_dashdash=yes ;;
1011
1012   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013     ac_prev=bindir ;;
1014   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015     bindir=$ac_optarg ;;
1016
1017   -build | --build | --buil | --bui | --bu)
1018     ac_prev=build_alias ;;
1019   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020     build_alias=$ac_optarg ;;
1021
1022   -cache-file | --cache-file | --cache-fil | --cache-fi \
1023   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024     ac_prev=cache_file ;;
1025   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027     cache_file=$ac_optarg ;;
1028
1029   --config-cache | -C)
1030     cache_file=config.cache ;;
1031
1032   -datadir | --datadir | --datadi | --datad)
1033     ac_prev=datadir ;;
1034   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035     datadir=$ac_optarg ;;
1036
1037   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038   | --dataroo | --dataro | --datar)
1039     ac_prev=datarootdir ;;
1040   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042     datarootdir=$ac_optarg ;;
1043
1044   -disable-* | --disable-*)
1045     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048       as_fn_error "invalid feature name: $ac_useropt"
1049     ac_useropt_orig=$ac_useropt
1050     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051     case $ac_user_opts in
1052       *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056          ac_unrecognized_sep=', ';;
1057     esac
1058     eval enable_$ac_useropt=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074       as_fn_error "invalid feature name: $ac_useropt"
1075     ac_useropt_orig=$ac_useropt
1076     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077     case $ac_user_opts in
1078       *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082          ac_unrecognized_sep=', ';;
1083     esac
1084     eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088   | --exec | --exe | --ex)
1089     ac_prev=exec_prefix ;;
1090   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092   | --exec=* | --exe=* | --ex=*)
1093     exec_prefix=$ac_optarg ;;
1094
1095   -gas | --gas | --ga | --g)
1096     # Obsolete; use --with-gas.
1097     with_gas=yes ;;
1098
1099   -help | --help | --hel | --he | -h)
1100     ac_init_help=long ;;
1101   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102     ac_init_help=recursive ;;
1103   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104     ac_init_help=short ;;
1105
1106   -host | --host | --hos | --ho)
1107     ac_prev=host_alias ;;
1108   -host=* | --host=* | --hos=* | --ho=*)
1109     host_alias=$ac_optarg ;;
1110
1111   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112     ac_prev=htmldir ;;
1113   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114   | --ht=*)
1115     htmldir=$ac_optarg ;;
1116
1117   -includedir | --includedir | --includedi | --included | --include \
1118   | --includ | --inclu | --incl | --inc)
1119     ac_prev=includedir ;;
1120   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121   | --includ=* | --inclu=* | --incl=* | --inc=*)
1122     includedir=$ac_optarg ;;
1123
1124   -infodir | --infodir | --infodi | --infod | --info | --inf)
1125     ac_prev=infodir ;;
1126   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127     infodir=$ac_optarg ;;
1128
1129   -libdir | --libdir | --libdi | --libd)
1130     ac_prev=libdir ;;
1131   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132     libdir=$ac_optarg ;;
1133
1134   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135   | --libexe | --libex | --libe)
1136     ac_prev=libexecdir ;;
1137   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138   | --libexe=* | --libex=* | --libe=*)
1139     libexecdir=$ac_optarg ;;
1140
1141   -localedir | --localedir | --localedi | --localed | --locale)
1142     ac_prev=localedir ;;
1143   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144     localedir=$ac_optarg ;;
1145
1146   -localstatedir | --localstatedir | --localstatedi | --localstated \
1147   | --localstate | --localstat | --localsta | --localst | --locals)
1148     ac_prev=localstatedir ;;
1149   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151     localstatedir=$ac_optarg ;;
1152
1153   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154     ac_prev=mandir ;;
1155   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156     mandir=$ac_optarg ;;
1157
1158   -nfp | --nfp | --nf)
1159     # Obsolete; use --without-fp.
1160     with_fp=no ;;
1161
1162   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163   | --no-cr | --no-c | -n)
1164     no_create=yes ;;
1165
1166   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168     no_recursion=yes ;;
1169
1170   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172   | --oldin | --oldi | --old | --ol | --o)
1173     ac_prev=oldincludedir ;;
1174   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177     oldincludedir=$ac_optarg ;;
1178
1179   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180     ac_prev=prefix ;;
1181   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182     prefix=$ac_optarg ;;
1183
1184   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185   | --program-pre | --program-pr | --program-p)
1186     ac_prev=program_prefix ;;
1187   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189     program_prefix=$ac_optarg ;;
1190
1191   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192   | --program-suf | --program-su | --program-s)
1193     ac_prev=program_suffix ;;
1194   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196     program_suffix=$ac_optarg ;;
1197
1198   -program-transform-name | --program-transform-name \
1199   | --program-transform-nam | --program-transform-na \
1200   | --program-transform-n | --program-transform- \
1201   | --program-transform | --program-transfor \
1202   | --program-transfo | --program-transf \
1203   | --program-trans | --program-tran \
1204   | --progr-tra | --program-tr | --program-t)
1205     ac_prev=program_transform_name ;;
1206   -program-transform-name=* | --program-transform-name=* \
1207   | --program-transform-nam=* | --program-transform-na=* \
1208   | --program-transform-n=* | --program-transform-=* \
1209   | --program-transform=* | --program-transfor=* \
1210   | --program-transfo=* | --program-transf=* \
1211   | --program-trans=* | --program-tran=* \
1212   | --progr-tra=* | --program-tr=* | --program-t=*)
1213     program_transform_name=$ac_optarg ;;
1214
1215   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216     ac_prev=pdfdir ;;
1217   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218     pdfdir=$ac_optarg ;;
1219
1220   -psdir | --psdir | --psdi | --psd | --ps)
1221     ac_prev=psdir ;;
1222   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223     psdir=$ac_optarg ;;
1224
1225   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226   | -silent | --silent | --silen | --sile | --sil)
1227     silent=yes ;;
1228
1229   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230     ac_prev=sbindir ;;
1231   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232   | --sbi=* | --sb=*)
1233     sbindir=$ac_optarg ;;
1234
1235   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237   | --sharedst | --shareds | --shared | --share | --shar \
1238   | --sha | --sh)
1239     ac_prev=sharedstatedir ;;
1240   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243   | --sha=* | --sh=*)
1244     sharedstatedir=$ac_optarg ;;
1245
1246   -site | --site | --sit)
1247     ac_prev=site ;;
1248   -site=* | --site=* | --sit=*)
1249     site=$ac_optarg ;;
1250
1251   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252     ac_prev=srcdir ;;
1253   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254     srcdir=$ac_optarg ;;
1255
1256   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257   | --syscon | --sysco | --sysc | --sys | --sy)
1258     ac_prev=sysconfdir ;;
1259   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261     sysconfdir=$ac_optarg ;;
1262
1263   -target | --target | --targe | --targ | --tar | --ta | --t)
1264     ac_prev=target_alias ;;
1265   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266     target_alias=$ac_optarg ;;
1267
1268   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269     verbose=yes ;;
1270
1271   -version | --version | --versio | --versi | --vers | -V)
1272     ac_init_version=: ;;
1273
1274   -with-* | --with-*)
1275     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278       as_fn_error "invalid package name: $ac_useropt"
1279     ac_useropt_orig=$ac_useropt
1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281     case $ac_user_opts in
1282       *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286          ac_unrecognized_sep=', ';;
1287     esac
1288     eval with_$ac_useropt=\$ac_optarg ;;
1289
1290   -without-* | --without-*)
1291     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294       as_fn_error "invalid package name: $ac_useropt"
1295     ac_useropt_orig=$ac_useropt
1296     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297     case $ac_user_opts in
1298       *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302          ac_unrecognized_sep=', ';;
1303     esac
1304     eval with_$ac_useropt=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1326     ;;
1327
1328   *=*)
1329     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330     # Reject names that are not valid shell variable names.
1331     case $ac_envvar in #(
1332       '' | [0-9]* | *[!_$as_cr_alnum]* )
1333       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334     esac
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   as_fn_error "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355   case $enable_option_checking in
1356     no) ;;
1357     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359   esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364                 datadir sysconfdir sharedstatedir localstatedir includedir \
1365                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366                 libdir localedir mandir
1367 do
1368   eval ac_val=\$$ac_var
1369   # Remove trailing slashes.
1370   case $ac_val in
1371     */ )
1372       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373       eval $ac_var=\$ac_val;;
1374   esac
1375   # Be sure to have absolute directory names.
1376   case $ac_val in
1377     [\\/$]* | ?:[\\/]* )  continue;;
1378     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379   esac
1380   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392   if test "x$build_alias" = x; then
1393     cross_compiling=maybe
1394     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395     If a cross compiler is detected then cross compile mode will be used." >&2
1396   elif test "x$build_alias" != "x$host_alias"; then
1397     cross_compiling=yes
1398   fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410   as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412   as_fn_error "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417   ac_srcdir_defaulted=yes
1418   # Try the directory containing this script, then the parent directory.
1419   ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421          X"$as_myself" : 'X\(//\)[^/]' \| \
1422          X"$as_myself" : 'X\(//\)$' \| \
1423          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)[^/].*/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\/\)$/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\).*/{
1438             s//\1/
1439             q
1440           }
1441           s/.*/./; q'`
1442   srcdir=$ac_confdir
1443   if test ! -r "$srcdir/$ac_unique_file"; then
1444     srcdir=..
1445   fi
1446 else
1447   ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456         pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459   srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_env_${ac_var}_value=\$${ac_var}
1470   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478   # Omit some internal or obsolete options to make the list less imposing.
1479   # This message is too long to be a string in the A/UX 3.1 sh.
1480   cat <<_ACEOF
1481 \`configure' configures OpenJPEG 1.4.0 to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491   -h, --help              display this help and exit
1492       --help=short        display options specific to this package
1493       --help=recursive    display the short help of all the included packages
1494   -V, --version           display version information and exit
1495   -q, --quiet, --silent   do not print \`checking...' messages
1496       --cache-file=FILE   cache test results in FILE [disabled]
1497   -C, --config-cache      alias for \`--cache-file=config.cache'
1498   -n, --no-create         do not create output files
1499       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502   --prefix=PREFIX         install architecture-independent files in PREFIX
1503                           [$ac_default_prefix]
1504   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505                           [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515   --bindir=DIR            user executables [EPREFIX/bin]
1516   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1517   --libexecdir=DIR        program executables [EPREFIX/libexec]
1518   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1519   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1520   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1521   --libdir=DIR            object code libraries [EPREFIX/lib]
1522   --includedir=DIR        C header files [PREFIX/include]
1523   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526   --infodir=DIR           info documentation [DATAROOTDIR/info]
1527   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528   --mandir=DIR            man documentation [DATAROOTDIR/man]
1529   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjpeg-1.4.0]
1530   --htmldir=DIR           html documentation [DOCDIR]
1531   --dvidir=DIR            dvi documentation [DOCDIR]
1532   --pdfdir=DIR            pdf documentation [DOCDIR]
1533   --psdir=DIR             ps documentation [DOCDIR]
1534 _ACEOF
1535
1536   cat <<\_ACEOF
1537
1538 Program names:
1539   --program-prefix=PREFIX            prepend PREFIX to installed program names
1540   --program-suffix=SUFFIX            append SUFFIX to installed program names
1541   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542
1543 System types:
1544   --build=BUILD     configure for building on BUILD [guessed]
1545   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546   --target=TARGET   configure for building compilers for TARGET [HOST]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551   case $ac_init_help in
1552      short | recursive ) echo "Configuration of OpenJPEG 1.4.0:";;
1553    esac
1554   cat <<\_ACEOF
1555
1556 Optional Features:
1557   --disable-option-checking  ignore unrecognized --enable/--with options
1558   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1559   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1560   --disable-dependency-tracking  speeds up one-time build
1561   --enable-dependency-tracking   do not reject slow dependency extractors
1562   --disable-largefile     omit support for large files
1563   --enable-shared[=PKGS]  build shared libraries [default=yes]
1564   --enable-static[=PKGS]  build static libraries [default=yes]
1565   --enable-fast-install[=PKGS]
1566                           optimize for fast installation [default=yes]
1567   --disable-libtool-lock  avoid locking (might break parallel builds)
1568   --enable-png=[yes|no]          Build with PNG support  [default=yes]
1569   --enable-tiff=[yes|no]         Build with TIFF support  [default=yes]
1570   --enable-lcms2=[yes|no]        Build with LCMS-2 support  [default=yes]
1571   --enable-lcms1=[yes|no]        Build with LCMS-1 support  [default=yes]
1572   --enable-jpwl=[yes|no]         Build with JPWL support  [default=no]
1573   --enable-shared=[yes|no]       Build shared libs  [default=no]
1574   --enable-jp3d=[yes|no]         Build jp3d libs  [default=no]
1575
1576 Optional Packages:
1577   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1578   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1579   --with-pic              try to use only PIC/non-PIC objects [default=use
1580                           both]
1581   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1582   --with-png-includes=DIR         PNG includes in nonstandard DIR
1583   --with-png-libraries=DIR        PNG library in nonstandard DIR
1584   --with-tiff-includes=DIR        TIFF includes in nonstandard DIR
1585   --with-tiff-libraries=DIR       TIFF library in nonstandard DIR
1586   --with-lcms2-includes=DIR       LCMS-2 includes in nonstandard DIR
1587   --with-lcms2-libraries=DIR      LCMS-2 library in nonstandard DIR
1588   --with-lcms1-includes=DIR       LCMS-1 includes in nonstandard DIR
1589   --with-lcms1-libraries=DIR      LCMS-1 library in nonstandard DIR
1590
1591 Some influential environment variables:
1592   CC          C compiler command
1593   CFLAGS      C compiler flags
1594   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1595               nonstandard directory <lib dir>
1596   LIBS        libraries to pass to the linker, e.g. -l<library>
1597   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598               you have headers in a nonstandard directory <include dir>
1599   CXX         C++ compiler command
1600   CXXFLAGS    C++ compiler flags
1601   CPP         C preprocessor
1602   CXXCPP      C++ preprocessor
1603
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1606
1607 Report bugs to <http://code.google.com/p/openjpeg/>.
1608 OpenJPEG home page: <http://www.openjpeg.org/>.
1609 _ACEOF
1610 ac_status=$?
1611 fi
1612
1613 if test "$ac_init_help" = "recursive"; then
1614   # If there are subdirs, report their specific --help.
1615   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616     test -d "$ac_dir" ||
1617       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618       continue
1619     ac_builddir=.
1620
1621 case "$ac_dir" in
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *)
1624   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625   # A ".." for each directory in $ac_dir_suffix.
1626   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627   case $ac_top_builddir_sub in
1628   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630   esac ;;
1631 esac
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1636
1637 case $srcdir in
1638   .)  # We are building in place.
1639     ac_srcdir=.
1640     ac_top_srcdir=$ac_top_builddir_sub
1641     ac_abs_top_srcdir=$ac_pwd ;;
1642   [\\/]* | ?:[\\/]* )  # Absolute name.
1643     ac_srcdir=$srcdir$ac_dir_suffix;
1644     ac_top_srcdir=$srcdir
1645     ac_abs_top_srcdir=$srcdir ;;
1646   *) # Relative name.
1647     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648     ac_top_srcdir=$ac_top_build_prefix$srcdir
1649     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 esac
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653     cd "$ac_dir" || { ac_status=$?; continue; }
1654     # Check for guested configure.
1655     if test -f "$ac_srcdir/configure.gnu"; then
1656       echo &&
1657       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658     elif test -f "$ac_srcdir/configure"; then
1659       echo &&
1660       $SHELL "$ac_srcdir/configure" --help=recursive
1661     else
1662       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663     fi || ac_status=$?
1664     cd "$ac_pwd" || { ac_status=$?; break; }
1665   done
1666 fi
1667
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1670   cat <<\_ACEOF
1671 OpenJPEG configure 1.4.0
1672 generated by GNU Autoconf 2.65
1673
1674 Copyright (C) 2009 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1677 _ACEOF
1678   exit
1679 fi
1680
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1684
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1689 {
1690   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691   rm -f conftest.$ac_objext
1692   if { { ac_try="$ac_compile"
1693 case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_compile") 2>conftest.err
1700   ac_status=$?
1701   if test -s conftest.err; then
1702     grep -v '^ *+' conftest.err >conftest.er1
1703     cat conftest.er1 >&5
1704     mv -f conftest.er1 conftest.err
1705   fi
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; } && {
1708          test -z "$ac_c_werror_flag" ||
1709          test ! -s conftest.err
1710        } && test -s conftest.$ac_objext; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716         ac_retval=1
1717 fi
1718   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719   as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_compile
1722
1723 # ac_fn_cxx_try_compile LINENO
1724 # ----------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_compile ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   rm -f conftest.$ac_objext
1730   if { { ac_try="$ac_compile"
1731 case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_compile") 2>conftest.err
1738   ac_status=$?
1739   if test -s conftest.err; then
1740     grep -v '^ *+' conftest.err >conftest.er1
1741     cat conftest.er1 >&5
1742     mv -f conftest.er1 conftest.err
1743   fi
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; } && {
1746          test -z "$ac_cxx_werror_flag" ||
1747          test ! -s conftest.err
1748        } && test -s conftest.$ac_objext; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754         ac_retval=1
1755 fi
1756   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_cxx_try_compile
1760
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_link ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   rm -f conftest.$ac_objext conftest$ac_exeext
1768   if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771   *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775   (eval "$ac_link") 2>conftest.err
1776   ac_status=$?
1777   if test -s conftest.err; then
1778     grep -v '^ *+' conftest.err >conftest.er1
1779     cat conftest.er1 >&5
1780     mv -f conftest.er1 conftest.err
1781   fi
1782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783   test $ac_status = 0; } && {
1784          test -z "$ac_c_werror_flag" ||
1785          test ! -s conftest.err
1786        } && test -s conftest$ac_exeext && {
1787          test "$cross_compiling" = yes ||
1788          $as_test_x conftest$ac_exeext
1789        }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795         ac_retval=1
1796 fi
1797   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799   # interfere with the next link command; also delete a directory that is
1800   # left behind by Apple's compiler.  We do this before executing the actions.
1801   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803   as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_link
1806
1807 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists and can be compiled using the include files in
1810 # INCLUDES, setting the cache variable VAR accordingly.
1811 ac_fn_c_check_header_compile ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817   $as_echo_n "(cached) " >&6
1818 else
1819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 $4
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825   eval "$3=yes"
1826 else
1827   eval "$3=no"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835
1836 } # ac_fn_c_check_header_compile
1837
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_cpp ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852   ac_status=$?
1853   if test -s conftest.err; then
1854     grep -v '^ *+' conftest.err >conftest.er1
1855     cat conftest.er1 >&5
1856     mv -f conftest.er1 conftest.err
1857   fi
1858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859   test $ac_status = 0; } >/dev/null && {
1860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861          test ! -s conftest.err
1862        }; then :
1863   ac_retval=0
1864 else
1865   $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868     ac_retval=1
1869 fi
1870   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871   as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_cpp
1874
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1879 ac_fn_c_try_run ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885   *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889   (eval "$ac_link") 2>&5
1890   ac_status=$?
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893   { { case "(($ac_try" in
1894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895   *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899   (eval "$ac_try") 2>&5
1900   ac_status=$?
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; }; }; then :
1903   ac_retval=0
1904 else
1905   $as_echo "$as_me: program exited with status $ac_status" >&5
1906        $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909        ac_retval=$ac_status
1910 fi
1911   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913   as_fn_set_status $ac_retval
1914
1915 } # ac_fn_c_try_run
1916
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926   $as_echo_n "(cached) " >&6
1927 else
1928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1932 #define $2 innocuous_$2
1933
1934 /* System header to define __stub macros and hopefully few prototypes,
1935     which can conflict with char $2 (); below.
1936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937     <limits.h> exists even on freestanding compilers.  */
1938
1939 #ifdef __STDC__
1940 # include <limits.h>
1941 #else
1942 # include <assert.h>
1943 #endif
1944
1945 #undef $2
1946
1947 /* Override any GCC internal prototype to avoid an error.
1948    Use char because int might match the return type of a GCC
1949    builtin and then its argument prototype would still apply.  */
1950 #ifdef __cplusplus
1951 extern "C"
1952 #endif
1953 char $2 ();
1954 /* The GNU C library defines this for functions which it implements
1955     to always fail with ENOSYS.  Some functions are actually named
1956     something starting with __ and the normal name is an alias.  */
1957 #if defined __stub_$2 || defined __stub___$2
1958 choke me
1959 #endif
1960
1961 int
1962 main ()
1963 {
1964 return $2 ();
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_link "$LINENO"; then :
1970   eval "$3=yes"
1971 else
1972   eval "$3=no"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext \
1975     conftest$ac_exeext conftest.$ac_ext
1976 fi
1977 eval ac_res=\$$3
1978                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981
1982 } # ac_fn_c_check_func
1983
1984 # ac_fn_cxx_try_cpp LINENO
1985 # ------------------------
1986 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_cxx_try_cpp ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   if { { ac_try="$ac_cpp conftest.$ac_ext"
1991 case "(($ac_try" in
1992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993   *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1998   ac_status=$?
1999   if test -s conftest.err; then
2000     grep -v '^ *+' conftest.err >conftest.er1
2001     cat conftest.er1 >&5
2002     mv -f conftest.er1 conftest.err
2003   fi
2004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005   test $ac_status = 0; } >/dev/null && {
2006          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2007          test ! -s conftest.err
2008        }; then :
2009   ac_retval=0
2010 else
2011   $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014     ac_retval=1
2015 fi
2016   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017   as_fn_set_status $ac_retval
2018
2019 } # ac_fn_cxx_try_cpp
2020
2021 # ac_fn_cxx_try_link LINENO
2022 # -------------------------
2023 # Try to link conftest.$ac_ext, and return whether this succeeded.
2024 ac_fn_cxx_try_link ()
2025 {
2026   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027   rm -f conftest.$ac_objext conftest$ac_exeext
2028   if { { ac_try="$ac_link"
2029 case "(($ac_try" in
2030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031   *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035   (eval "$ac_link") 2>conftest.err
2036   ac_status=$?
2037   if test -s conftest.err; then
2038     grep -v '^ *+' conftest.err >conftest.er1
2039     cat conftest.er1 >&5
2040     mv -f conftest.er1 conftest.err
2041   fi
2042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043   test $ac_status = 0; } && {
2044          test -z "$ac_cxx_werror_flag" ||
2045          test ! -s conftest.err
2046        } && test -s conftest$ac_exeext && {
2047          test "$cross_compiling" = yes ||
2048          $as_test_x conftest$ac_exeext
2049        }; then :
2050   ac_retval=0
2051 else
2052   $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055         ac_retval=1
2056 fi
2057   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2058   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2059   # interfere with the next link command; also delete a directory that is
2060   # left behind by Apple's compiler.  We do this before executing the actions.
2061   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2062   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063   as_fn_set_status $ac_retval
2064
2065 } # ac_fn_cxx_try_link
2066
2067 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2068 # -------------------------------------------------------
2069 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2070 # the include files in INCLUDES and setting the cache variable VAR
2071 # accordingly.
2072 ac_fn_c_check_header_mongrel ()
2073 {
2074   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2079   $as_echo_n "(cached) " >&6
2080 fi
2081 eval ac_res=\$$3
2082                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 else
2085   # Is the header compilable?
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2087 $as_echo_n "checking $2 usability... " >&6; }
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 $4
2091 #include <$2>
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094   ac_header_compiler=yes
2095 else
2096   ac_header_compiler=no
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2100 $as_echo "$ac_header_compiler" >&6; }
2101
2102 # Is the header present?
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2104 $as_echo_n "checking $2 presence... " >&6; }
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 #include <$2>
2108 _ACEOF
2109 if ac_fn_c_try_cpp "$LINENO"; then :
2110   ac_header_preproc=yes
2111 else
2112   ac_header_preproc=no
2113 fi
2114 rm -f conftest.err conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2116 $as_echo "$ac_header_preproc" >&6; }
2117
2118 # So?  What about this header?
2119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2120   yes:no: )
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2122 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2124 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2125     ;;
2126   no:yes:* )
2127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2128 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2130 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2131     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2132 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2133     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2134 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2135     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2136 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2137 ( cat <<\_ASBOX
2138 ## ------------------------------------------------- ##
2139 ## Report this to http://code.google.com/p/openjpeg/ ##
2140 ## ------------------------------------------------- ##
2141 _ASBOX
2142      ) | sed "s/^/$as_me: WARNING:     /" >&2
2143     ;;
2144 esac
2145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2148   $as_echo_n "(cached) " >&6
2149 else
2150   eval "$3=\$ac_header_compiler"
2151 fi
2152 eval ac_res=\$$3
2153                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 fi
2156   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2157
2158 } # ac_fn_c_check_header_mongrel
2159 cat >config.log <<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2162
2163 It was created by OpenJPEG $as_me 1.4.0, which was
2164 generated by GNU Autoconf 2.65.  Invocation command line was
2165
2166   $ $0 $@
2167
2168 _ACEOF
2169 exec 5>>config.log
2170 {
2171 cat <<_ASUNAME
2172 ## --------- ##
2173 ## Platform. ##
2174 ## --------- ##
2175
2176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181
2182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2184
2185 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2186 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2189 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2190 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2191 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2192
2193 _ASUNAME
2194
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198   IFS=$as_save_IFS
2199   test -z "$as_dir" && as_dir=.
2200     $as_echo "PATH: $as_dir"
2201   done
2202 IFS=$as_save_IFS
2203
2204 } >&5
2205
2206 cat >&5 <<_ACEOF
2207
2208
2209 ## ----------- ##
2210 ## Core tests. ##
2211 ## ----------- ##
2212
2213 _ACEOF
2214
2215
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2221 ac_configure_args=
2222 ac_configure_args0=
2223 ac_configure_args1=
2224 ac_must_keep_next=false
2225 for ac_pass in 1 2
2226 do
2227   for ac_arg
2228   do
2229     case $ac_arg in
2230     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232     | -silent | --silent | --silen | --sile | --sil)
2233       continue ;;
2234     *\'*)
2235       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236     esac
2237     case $ac_pass in
2238     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2239     2)
2240       as_fn_append ac_configure_args1 " '$ac_arg'"
2241       if test $ac_must_keep_next = true; then
2242         ac_must_keep_next=false # Got value, back to normal.
2243       else
2244         case $ac_arg in
2245           *=* | --config-cache | -C | -disable-* | --disable-* \
2246           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248           | -with-* | --with-* | -without-* | --without-* | --x)
2249             case "$ac_configure_args0 " in
2250               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251             esac
2252             ;;
2253           -* ) ac_must_keep_next=true ;;
2254         esac
2255       fi
2256       as_fn_append ac_configure_args " '$ac_arg'"
2257       ;;
2258     esac
2259   done
2260 done
2261 { ac_configure_args0=; unset ac_configure_args0;}
2262 { ac_configure_args1=; unset ac_configure_args1;}
2263
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log.  We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270   # Save into config.log some information that might help in debugging.
2271   {
2272     echo
2273
2274     cat <<\_ASBOX
2275 ## ---------------- ##
2276 ## Cache variables. ##
2277 ## ---------------- ##
2278 _ASBOX
2279     echo
2280     # The following way of writing the cache mishandles newlines in values,
2281 (
2282   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283     eval ac_val=\$$ac_var
2284     case $ac_val in #(
2285     *${as_nl}*)
2286       case $ac_var in #(
2287       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2288 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2289       esac
2290       case $ac_var in #(
2291       _ | IFS | as_nl) ;; #(
2292       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293       *) { eval $ac_var=; unset $ac_var;} ;;
2294       esac ;;
2295     esac
2296   done
2297   (set) 2>&1 |
2298     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2299     *${as_nl}ac_space=\ *)
2300       sed -n \
2301         "s/'\''/'\''\\\\'\'''\''/g;
2302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2303       ;; #(
2304     *)
2305       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2306       ;;
2307     esac |
2308     sort
2309 )
2310     echo
2311
2312     cat <<\_ASBOX
2313 ## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##
2316 _ASBOX
2317     echo
2318     for ac_var in $ac_subst_vars
2319     do
2320       eval ac_val=\$$ac_var
2321       case $ac_val in
2322       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323       esac
2324       $as_echo "$ac_var='\''$ac_val'\''"
2325     done | sort
2326     echo
2327
2328     if test -n "$ac_subst_files"; then
2329       cat <<\_ASBOX
2330 ## ------------------- ##
2331 ## File substitutions. ##
2332 ## ------------------- ##
2333 _ASBOX
2334       echo
2335       for ac_var in $ac_subst_files
2336       do
2337         eval ac_val=\$$ac_var
2338         case $ac_val in
2339         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340         esac
2341         $as_echo "$ac_var='\''$ac_val'\''"
2342       done | sort
2343       echo
2344     fi
2345
2346     if test -s confdefs.h; then
2347       cat <<\_ASBOX
2348 ## ----------- ##
2349 ## confdefs.h. ##
2350 ## ----------- ##
2351 _ASBOX
2352       echo
2353       cat confdefs.h
2354       echo
2355     fi
2356     test "$ac_signal" != 0 &&
2357       $as_echo "$as_me: caught signal $ac_signal"
2358     $as_echo "$as_me: exit $exit_status"
2359   } >&5
2360   rm -f core *.core core.conftest.* &&
2361     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2362     exit $exit_status
2363 ' 0
2364 for ac_signal in 1 2 13 15; do
2365   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2366 done
2367 ac_signal=0
2368
2369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2370 rm -f -r conftest* confdefs.h
2371
2372 $as_echo "/* confdefs.h */" > confdefs.h
2373
2374 # Predefined preprocessor variables.
2375
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_NAME "$PACKAGE_NAME"
2378 _ACEOF
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2382 _ACEOF
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_STRING "$PACKAGE_STRING"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_URL "$PACKAGE_URL"
2398 _ACEOF
2399
2400
2401 # Let the site file select an alternate cache file if it wants to.
2402 # Prefer an explicitly selected file to automatically selected ones.
2403 ac_site_file1=NONE
2404 ac_site_file2=NONE
2405 if test -n "$CONFIG_SITE"; then
2406   ac_site_file1=$CONFIG_SITE
2407 elif test "x$prefix" != xNONE; then
2408   ac_site_file1=$prefix/share/config.site
2409   ac_site_file2=$prefix/etc/config.site
2410 else
2411   ac_site_file1=$ac_default_prefix/share/config.site
2412   ac_site_file2=$ac_default_prefix/etc/config.site
2413 fi
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415 do
2416   test "x$ac_site_file" = xNONE && continue
2417   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420     sed 's/^/| /' "$ac_site_file" >&5
2421     . "$ac_site_file"
2422   fi
2423 done
2424
2425 if test -r "$cache_file"; then
2426   # Some versions of bash will fail to source /dev/null (special files
2427   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2428   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2429     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2430 $as_echo "$as_me: loading cache $cache_file" >&6;}
2431     case $cache_file in
2432       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2433       *)                      . "./$cache_file";;
2434     esac
2435   fi
2436 else
2437   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2438 $as_echo "$as_me: creating cache $cache_file" >&6;}
2439   >$cache_file
2440 fi
2441
2442 # Check that the precious variables saved in the cache have kept the same
2443 # value.
2444 ac_cache_corrupted=false
2445 for ac_var in $ac_precious_vars; do
2446   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2447   eval ac_new_set=\$ac_env_${ac_var}_set
2448   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2449   eval ac_new_val=\$ac_env_${ac_var}_value
2450   case $ac_old_set,$ac_new_set in
2451     set,)
2452       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2453 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454       ac_cache_corrupted=: ;;
2455     ,set)
2456       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2458       ac_cache_corrupted=: ;;
2459     ,);;
2460     *)
2461       if test "x$ac_old_val" != "x$ac_new_val"; then
2462         # differences in whitespace do not lead to failure.
2463         ac_old_val_w=`echo x $ac_old_val`
2464         ac_new_val_w=`echo x $ac_new_val`
2465         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2467 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2468           ac_cache_corrupted=:
2469         else
2470           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2471 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472           eval $ac_var=\$ac_old_val
2473         fi
2474         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2475 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2476         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2477 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2478       fi;;
2479   esac
2480   # Pass precious variables to config.status.
2481   if test "$ac_new_set" = set; then
2482     case $ac_new_val in
2483     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2484     *) ac_arg=$ac_var=$ac_new_val ;;
2485     esac
2486     case " $ac_configure_args " in
2487       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2488       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2489     esac
2490   fi
2491 done
2492 if $ac_cache_corrupted; then
2493   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2496 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2497   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2498 fi
2499 ## -------------------- ##
2500 ## Main body of script. ##
2501 ## -------------------- ##
2502
2503 ac_ext=c
2504 ac_cpp='$CPP $CPPFLAGS'
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2508
2509
2510
2511 ac_config_headers="$ac_config_headers opj_config.h"
2512
2513 #
2514 ac_aux_dir=
2515 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2516   for ac_t in install-sh install.sh shtool; do
2517     if test -f "$ac_dir/$ac_t"; then
2518       ac_aux_dir=$ac_dir
2519       ac_install_sh="$ac_aux_dir/$ac_t -c"
2520       break 2
2521     fi
2522   done
2523 done
2524 if test -z "$ac_aux_dir"; then
2525   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2526 fi
2527
2528 # These three variables are undocumented and unsupported,
2529 # and are intended to be withdrawn in a future Autoconf release.
2530 # They can cause serious problems if a builder's source tree is in a directory
2531 # whose full name contains unusual characters.
2532 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2533 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2534 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2535
2536
2537 # Make sure we can run config.sub.
2538 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2539   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2542 $as_echo_n "checking build system type... " >&6; }
2543 if test "${ac_cv_build+set}" = set; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   ac_build_alias=$build_alias
2547 test "x$ac_build_alias" = x &&
2548   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2549 test "x$ac_build_alias" = x &&
2550   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2551 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2552   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2553
2554 fi
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2556 $as_echo "$ac_cv_build" >&6; }
2557 case $ac_cv_build in
2558 *-*-*) ;;
2559 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2560 esac
2561 build=$ac_cv_build
2562 ac_save_IFS=$IFS; IFS='-'
2563 set x $ac_cv_build
2564 shift
2565 build_cpu=$1
2566 build_vendor=$2
2567 shift; shift
2568 # Remember, the first character of IFS is used to create $*,
2569 # except with old shells:
2570 build_os=$*
2571 IFS=$ac_save_IFS
2572 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2573
2574
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2576 $as_echo_n "checking host system type... " >&6; }
2577 if test "${ac_cv_host+set}" = set; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   if test "x$host_alias" = x; then
2581   ac_cv_host=$ac_cv_build
2582 else
2583   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2584     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2585 fi
2586
2587 fi
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2589 $as_echo "$ac_cv_host" >&6; }
2590 case $ac_cv_host in
2591 *-*-*) ;;
2592 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2593 esac
2594 host=$ac_cv_host
2595 ac_save_IFS=$IFS; IFS='-'
2596 set x $ac_cv_host
2597 shift
2598 host_cpu=$1
2599 host_vendor=$2
2600 shift; shift
2601 # Remember, the first character of IFS is used to create $*,
2602 # except with old shells:
2603 host_os=$*
2604 IFS=$ac_save_IFS
2605 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2606
2607
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2609 $as_echo_n "checking target system type... " >&6; }
2610 if test "${ac_cv_target+set}" = set; then :
2611   $as_echo_n "(cached) " >&6
2612 else
2613   if test "x$target_alias" = x; then
2614   ac_cv_target=$ac_cv_host
2615 else
2616   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2617     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2618 fi
2619
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2622 $as_echo "$ac_cv_target" >&6; }
2623 case $ac_cv_target in
2624 *-*-*) ;;
2625 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2626 esac
2627 target=$ac_cv_target
2628 ac_save_IFS=$IFS; IFS='-'
2629 set x $ac_cv_target
2630 shift
2631 target_cpu=$1
2632 target_vendor=$2
2633 shift; shift
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2636 target_os=$*
2637 IFS=$ac_save_IFS
2638 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2639
2640
2641 # The aliases save the names the user supplied, while $host etc.
2642 # will get canonicalized.
2643 test -n "$target_alias" &&
2644   test "$program_prefix$program_suffix$program_transform_name" = \
2645     NONENONEs,x,x, &&
2646   program_prefix=${target_alias}-
2647
2648 #foreign:package will not follow the GNU Standards
2649 am__api_version='1.11'
2650
2651 # Find a good install program.  We prefer a C program (faster),
2652 # so one script is as good as another.  But avoid the broken or
2653 # incompatible versions:
2654 # SysV /etc/install, /usr/sbin/install
2655 # SunOS /usr/etc/install
2656 # IRIX /sbin/install
2657 # AIX /bin/install
2658 # AmigaOS /C/install, which installs bootblocks on floppy discs
2659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2662 # OS/2's system install, which has a completely different semantic
2663 # ./install, which can be erroneously created by make from ./install.sh.
2664 # Reject install programs that cannot install multiple files.
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2666 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2667 if test -z "$INSTALL"; then
2668 if test "${ac_cv_path_install+set}" = set; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674   IFS=$as_save_IFS
2675   test -z "$as_dir" && as_dir=.
2676     # Account for people who put trailing slashes in PATH elements.
2677 case $as_dir/ in #((
2678   ./ | .// | /[cC]/* | \
2679   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2680   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2681   /usr/ucb/* ) ;;
2682   *)
2683     # OSF1 and SCO ODT 3.0 have their own names for install.
2684     # Don't use installbsd from OSF since it installs stuff as root
2685     # by default.
2686     for ac_prog in ginstall scoinst install; do
2687       for ac_exec_ext in '' $ac_executable_extensions; do
2688         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2689           if test $ac_prog = install &&
2690             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691             # AIX install.  It has an incompatible calling convention.
2692             :
2693           elif test $ac_prog = install &&
2694             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695             # program-specific install script used by HP pwplus--don't use.
2696             :
2697           else
2698             rm -rf conftest.one conftest.two conftest.dir
2699             echo one > conftest.one
2700             echo two > conftest.two
2701             mkdir conftest.dir
2702             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2703               test -s conftest.one && test -s conftest.two &&
2704               test -s conftest.dir/conftest.one &&
2705               test -s conftest.dir/conftest.two
2706             then
2707               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2708               break 3
2709             fi
2710           fi
2711         fi
2712       done
2713     done
2714     ;;
2715 esac
2716
2717   done
2718 IFS=$as_save_IFS
2719
2720 rm -rf conftest.one conftest.two conftest.dir
2721
2722 fi
2723   if test "${ac_cv_path_install+set}" = set; then
2724     INSTALL=$ac_cv_path_install
2725   else
2726     # As a last resort, use the slow shell script.  Don't cache a
2727     # value for INSTALL within a source directory, because that will
2728     # break other packages using the cache if that directory is
2729     # removed, or if the value is a relative name.
2730     INSTALL=$ac_install_sh
2731   fi
2732 fi
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2734 $as_echo "$INSTALL" >&6; }
2735
2736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737 # It thinks the first close brace ends the variable substitution.
2738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2739
2740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2741
2742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2745 $as_echo_n "checking whether build environment is sane... " >&6; }
2746 # Just in case
2747 sleep 1
2748 echo timestamp > conftest.file
2749 # Reject unsafe characters in $srcdir or the absolute working directory
2750 # name.  Accept space and tab only in the latter.
2751 am_lf='
2752 '
2753 case `pwd` in
2754   *[\\\"\#\$\&\'\`$am_lf]*)
2755     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2756 esac
2757 case $srcdir in
2758   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2759     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2760 esac
2761
2762 # Do `set' in a subshell so we don't clobber the current shell's
2763 # arguments.  Must try -L first in case configure is actually a
2764 # symlink; some systems play weird games with the mod time of symlinks
2765 # (eg FreeBSD returns the mod time of the symlink's containing
2766 # directory).
2767 if (
2768    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2769    if test "$*" = "X"; then
2770       # -L didn't work.
2771       set X `ls -t "$srcdir/configure" conftest.file`
2772    fi
2773    rm -f conftest.file
2774    if test "$*" != "X $srcdir/configure conftest.file" \
2775       && test "$*" != "X conftest.file $srcdir/configure"; then
2776
2777       # If neither matched, then we have a broken ls.  This can happen
2778       # if, for instance, CONFIG_SHELL is bash and it inherits a
2779       # broken ls alias from the environment.  This has actually
2780       # happened.  Such a system could not be considered "sane".
2781       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2782 alias in your environment" "$LINENO" 5
2783    fi
2784
2785    test "$2" = conftest.file
2786    )
2787 then
2788    # Ok.
2789    :
2790 else
2791    as_fn_error "newly created file is older than distributed files!
2792 Check your system clock" "$LINENO" 5
2793 fi
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 $as_echo "yes" >&6; }
2796 test "$program_prefix" != NONE &&
2797   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2798 # Use a double $ so make ignores it.
2799 test "$program_suffix" != NONE &&
2800   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2801 # Double any \ or $.
2802 # By default was `s,x,x', remove it if useless.
2803 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2804 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2805
2806 # expand $ac_aux_dir to an absolute path
2807 am_aux_dir=`cd $ac_aux_dir && pwd`
2808
2809 if test x"${MISSING+set}" != xset; then
2810   case $am_aux_dir in
2811   *\ * | *\     *)
2812     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2813   *)
2814     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2815   esac
2816 fi
2817 # Use eval to expand $SHELL
2818 if eval "$MISSING --run true"; then
2819   am_missing_run="$MISSING --run "
2820 else
2821   am_missing_run=
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2823 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2824 fi
2825
2826 if test x"${install_sh}" != xset; then
2827   case $am_aux_dir in
2828   *\ * | *\     *)
2829     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2830   *)
2831     install_sh="\${SHELL} $am_aux_dir/install-sh"
2832   esac
2833 fi
2834
2835 # Installed binaries are usually stripped using `strip' when the user
2836 # run `make install-strip'.  However `strip' might not be the right
2837 # tool to use in cross-compilation environments, therefore Automake
2838 # will honor the `STRIP' environment variable to overrule this program.
2839 if test "$cross_compiling" != no; then
2840   if test -n "$ac_tool_prefix"; then
2841   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}strip; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if test "${ac_cv_prog_STRIP+set}" = set; then :
2846   $as_echo_n "(cached) " >&6
2847 else
2848   if test -n "$STRIP"; then
2849   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854   IFS=$as_save_IFS
2855   test -z "$as_dir" && as_dir=.
2856     for ac_exec_ext in '' $ac_executable_extensions; do
2857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860     break 2
2861   fi
2862 done
2863   done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 STRIP=$ac_cv_prog_STRIP
2869 if test -n "$STRIP"; then
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2871 $as_echo "$STRIP" >&6; }
2872 else
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877
2878 fi
2879 if test -z "$ac_cv_prog_STRIP"; then
2880   ac_ct_STRIP=$STRIP
2881   # Extract the first word of "strip", so it can be a program name with args.
2882 set dummy strip; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2886   $as_echo_n "(cached) " >&6
2887 else
2888   if test -n "$ac_ct_STRIP"; then
2889   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894   IFS=$as_save_IFS
2895   test -z "$as_dir" && as_dir=.
2896     for ac_exec_ext in '' $ac_executable_extensions; do
2897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898     ac_cv_prog_ac_ct_STRIP="strip"
2899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900     break 2
2901   fi
2902 done
2903   done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2909 if test -n "$ac_ct_STRIP"; then
2910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2911 $as_echo "$ac_ct_STRIP" >&6; }
2912 else
2913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917   if test "x$ac_ct_STRIP" = x; then
2918     STRIP=":"
2919   else
2920     case $cross_compiling:$ac_tool_warned in
2921 yes:)
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2924 ac_tool_warned=yes ;;
2925 esac
2926     STRIP=$ac_ct_STRIP
2927   fi
2928 else
2929   STRIP="$ac_cv_prog_STRIP"
2930 fi
2931
2932 fi
2933 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2934
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2936 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2937 if test -z "$MKDIR_P"; then
2938   if test "${ac_cv_path_mkdir+set}" = set; then :
2939   $as_echo_n "(cached) " >&6
2940 else
2941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946     for ac_prog in mkdir gmkdir; do
2947          for ac_exec_ext in '' $ac_executable_extensions; do
2948            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2949            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2950              'mkdir (GNU coreutils) '* | \
2951              'mkdir (coreutils) '* | \
2952              'mkdir (fileutils) '4.1*)
2953                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2954                break 3;;
2955            esac
2956          done
2957        done
2958   done
2959 IFS=$as_save_IFS
2960
2961 fi
2962
2963   test -d ./--version && rmdir ./--version
2964   if test "${ac_cv_path_mkdir+set}" = set; then
2965     MKDIR_P="$ac_cv_path_mkdir -p"
2966   else
2967     # As a last resort, use the slow shell script.  Don't cache a
2968     # value for MKDIR_P within a source directory, because that will
2969     # break other packages using the cache if that directory is
2970     # removed, or if the value is a relative name.
2971     MKDIR_P="$ac_install_sh -d"
2972   fi
2973 fi
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2975 $as_echo "$MKDIR_P" >&6; }
2976
2977 mkdir_p="$MKDIR_P"
2978 case $mkdir_p in
2979   [\\/$]* | ?:[\\/]*) ;;
2980   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2981 esac
2982
2983 for ac_prog in gawk mawk nawk awk
2984 do
2985   # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_AWK+set}" = set; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if test -n "$AWK"; then
2993   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002     ac_cv_prog_AWK="$ac_prog"
3003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005   fi
3006 done
3007   done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 AWK=$ac_cv_prog_AWK
3013 if test -n "$AWK"; then
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3015 $as_echo "$AWK" >&6; }
3016 else
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022   test -n "$AWK" && break
3023 done
3024
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3026 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3027 set x ${MAKE-make}
3028 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3029 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   cat >conftest.make <<\_ACEOF
3033 SHELL = /bin/sh
3034 all:
3035         @echo '@@@%%%=$(MAKE)=@@@%%%'
3036 _ACEOF
3037 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3038 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3039   *@@@%%%=?*=@@@%%%*)
3040     eval ac_cv_prog_make_${ac_make}_set=yes;;
3041   *)
3042     eval ac_cv_prog_make_${ac_make}_set=no;;
3043 esac
3044 rm -f conftest.make
3045 fi
3046 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3049   SET_MAKE=
3050 else
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053   SET_MAKE="MAKE=${MAKE-make}"
3054 fi
3055
3056 rm -rf .tst 2>/dev/null
3057 mkdir .tst 2>/dev/null
3058 if test -d .tst; then
3059   am__leading_dot=.
3060 else
3061   am__leading_dot=_
3062 fi
3063 rmdir .tst 2>/dev/null
3064
3065 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3066   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3067   # is not polluted with repeated "-I."
3068   am__isrc=' -I$(srcdir)'
3069   # test to see if srcdir already configured
3070   if test -f $srcdir/config.status; then
3071     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3072   fi
3073 fi
3074
3075 # test whether we have cygpath
3076 if test -z "$CYGPATH_W"; then
3077   if (cygpath --version) >/dev/null 2>/dev/null; then
3078     CYGPATH_W='cygpath -w'
3079   else
3080     CYGPATH_W=echo
3081   fi
3082 fi
3083
3084
3085 # Define the identity of the package.
3086  PACKAGE='openjpeg-1.4.0'
3087  VERSION='1.4.0'
3088
3089
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE "$PACKAGE"
3092 _ACEOF
3093
3094
3095 cat >>confdefs.h <<_ACEOF
3096 #define VERSION "$VERSION"
3097 _ACEOF
3098
3099 # Some tools Automake needs.
3100
3101 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3102
3103
3104 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3105
3106
3107 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3108
3109
3110 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3111
3112
3113 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3114
3115 # We need awk for the "check" target.  The system "awk" is bad on
3116 # some platforms.
3117 # Always define AMTAR for backward compatibility.
3118
3119 AMTAR=${AMTAR-"${am_missing_run}tar"}
3120
3121 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3122
3123
3124
3125
3126
3127 #
3128 MAJOR_NR=1
3129 MINOR_NR=4
3130 BUILD_NR=0
3131
3132
3133
3134 #
3135 JP3D_MAJOR_NR=1
3136 JP3D_MINOR_NR=3
3137 JP3D_BUILD_NR=0
3138
3139
3140
3141 #
3142 # Checks for programs.
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 if test -n "$ac_tool_prefix"; then
3149   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if test "${ac_cv_prog_CC+set}" = set; then :
3154   $as_echo_n "(cached) " >&6
3155 else
3156   if test -n "$CC"; then
3157   ac_cv_prog_CC="$CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164     for ac_exec_ext in '' $ac_executable_extensions; do
3165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168     break 2
3169   fi
3170 done
3171   done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3180 else
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186 fi
3187 if test -z "$ac_cv_prog_CC"; then
3188   ac_ct_CC=$CC
3189   # Extract the first word of "gcc", so it can be a program name with args.
3190 set dummy gcc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   if test -n "$ac_ct_CC"; then
3197   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_ac_ct_CC="gcc"
3207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225   if test "x$ac_ct_CC" = x; then
3226     CC=""
3227   else
3228     case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234     CC=$ac_ct_CC
3235   fi
3236 else
3237   CC="$ac_cv_prog_CC"
3238 fi
3239
3240 if test -z "$CC"; then
3241           if test -n "$ac_tool_prefix"; then
3242     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}cc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if test "${ac_cv_prog_CC+set}" = set; then :
3247   $as_echo_n "(cached) " >&6
3248 else
3249   if test -n "$CC"; then
3250   ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255   IFS=$as_save_IFS
3256   test -z "$as_dir" && as_dir=.
3257     for ac_exec_ext in '' $ac_executable_extensions; do
3258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259     ac_cv_prog_CC="${ac_tool_prefix}cc"
3260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261     break 2
3262   fi
3263 done
3264   done
3265 IFS=$as_save_IFS
3266
3267 fi
3268 fi
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278
3279   fi
3280 fi
3281 if test -z "$CC"; then
3282   # Extract the first word of "cc", so it can be a program name with args.
3283 set dummy cc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if test "${ac_cv_prog_CC+set}" = set; then :
3287   $as_echo_n "(cached) " >&6
3288 else
3289   if test -n "$CC"; then
3290   ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292   ac_prog_rejected=no
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298     for ac_exec_ext in '' $ac_executable_extensions; do
3299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3301        ac_prog_rejected=yes
3302        continue
3303      fi
3304     ac_cv_prog_CC="cc"
3305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306     break 2
3307   fi
3308 done
3309   done
3310 IFS=$as_save_IFS
3311
3312 if test $ac_prog_rejected = yes; then
3313   # We found a bogon in the path, so make sure we never use it.
3314   set dummy $ac_cv_prog_CC
3315   shift
3316   if test $# != 0; then
3317     # We chose a different compiler from the bogus one.
3318     # However, it has the same basename, so the bogon will be chosen
3319     # first if we set CC to just the basename; use the full file name.
3320     shift
3321     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3322   fi
3323 fi
3324 fi
3325 fi
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 fi
3337 if test -z "$CC"; then
3338   if test -n "$ac_tool_prefix"; then
3339   for ac_prog in cl.exe
3340   do
3341     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then :
3346   $as_echo_n "(cached) " >&6
3347 else
3348   if test -n "$CC"; then
3349   ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354   IFS=$as_save_IFS
3355   test -z "$as_dir" && as_dir=.
3356     for ac_exec_ext in '' $ac_executable_extensions; do
3357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360     break 2
3361   fi
3362 done
3363   done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3372 else
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 fi
3376
3377
3378     test -n "$CC" && break
3379   done
3380 fi
3381 if test -z "$CC"; then
3382   ac_ct_CC=$CC
3383   for ac_prog in cl.exe
3384 do
3385   # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$ac_ct_CC"; then
3393   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400     for ac_exec_ext in '' $ac_executable_extensions; do
3401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402     ac_cv_prog_ac_ct_CC="$ac_prog"
3403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407   done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3416 else
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422   test -n "$ac_ct_CC" && break
3423 done
3424
3425   if test "x$ac_ct_CC" = x; then
3426     CC=""
3427   else
3428     case $cross_compiling:$ac_tool_warned in
3429 yes:)
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432 ac_tool_warned=yes ;;
3433 esac
3434     CC=$ac_ct_CC
3435   fi
3436 fi
3437
3438 fi
3439
3440
3441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error "no acceptable C compiler found in \$PATH
3444 See \`config.log' for more details." "$LINENO" 5; }
3445
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3448 set X $ac_compile
3449 ac_compiler=$2
3450 for ac_option in --version -v -V -qversion; do
3451   { { ac_try="$ac_compiler $ac_option >&5"
3452 case "(($ac_try" in
3453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454   *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3459   ac_status=$?
3460   if test -s conftest.err; then
3461     sed '10a\
3462 ... rest of stderr output deleted ...
3463          10q' conftest.err >conftest.er1
3464     cat conftest.er1 >&5
3465   fi
3466   rm -f conftest.er1 conftest.err
3467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468   test $ac_status = 0; }
3469 done
3470
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h.  */
3473
3474 int
3475 main ()
3476 {
3477
3478   ;
3479   return 0;
3480 }
3481 _ACEOF
3482 ac_clean_files_save=$ac_clean_files
3483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3484 # Try to create an executable without -o first, disregard a.out.
3485 # It will help us diagnose broken compilers, and finding out an intuition
3486 # of exeext.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3488 $as_echo_n "checking whether the C compiler works... " >&6; }
3489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3490
3491 # The possible output files:
3492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3493
3494 ac_rmfiles=
3495 for ac_file in $ac_files
3496 do
3497   case $ac_file in
3498     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3500   esac
3501 done
3502 rm -f $ac_rmfiles
3503
3504 if { { ac_try="$ac_link_default"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511   (eval "$ac_link_default") 2>&5
3512   ac_status=$?
3513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514   test $ac_status = 0; }; then :
3515   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3518 # so that the user can short-circuit this test for compilers unknown to
3519 # Autoconf.
3520 for ac_file in $ac_files ''
3521 do
3522   test -f "$ac_file" || continue
3523   case $ac_file in
3524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3525         ;;
3526     [ab].out )
3527         # We found the default executable, but exeext='' is most
3528         # certainly right.
3529         break;;
3530     *.* )
3531         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3532         then :; else
3533            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534         fi
3535         # We set ac_cv_exeext here because the later test for it is not
3536         # safe: cross compilers may not add the suffix if given an `-o'
3537         # argument, so we may need to know it at that point already.
3538         # Even if this section looks crufty: it has the advantage of
3539         # actually working.
3540         break;;
3541     * )
3542         break;;
3543   esac
3544 done
3545 test "$ac_cv_exeext" = no && ac_cv_exeext=
3546
3547 else
3548   ac_file=''
3549 fi
3550 if test -z "$ac_file"; then :
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 { as_fn_set_status 77
3559 as_fn_error "C compiler cannot create executables
3560 See \`config.log' for more details." "$LINENO" 5; }; }
3561 else
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3563 $as_echo "yes" >&6; }
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3566 $as_echo_n "checking for C compiler default output file name... " >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3568 $as_echo "$ac_file" >&6; }
3569 ac_exeext=$ac_cv_exeext
3570
3571 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3572 ac_clean_files=$ac_clean_files_save
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3574 $as_echo_n "checking for suffix of executables... " >&6; }
3575 if { { ac_try="$ac_link"
3576 case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582   (eval "$ac_link") 2>&5
3583   ac_status=$?
3584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585   test $ac_status = 0; }; then :
3586   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3587 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3588 # work properly (i.e., refer to `conftest.exe'), while it won't with
3589 # `rm'.
3590 for ac_file in conftest.exe conftest conftest.*; do
3591   test -f "$ac_file" || continue
3592   case $ac_file in
3593     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3594     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3595           break;;
3596     * ) break;;
3597   esac
3598 done
3599 else
3600   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 as_fn_error "cannot compute suffix of executables: cannot compile and link
3603 See \`config.log' for more details." "$LINENO" 5; }
3604 fi
3605 rm -f conftest conftest$ac_cv_exeext
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3607 $as_echo "$ac_cv_exeext" >&6; }
3608
3609 rm -f conftest.$ac_ext
3610 EXEEXT=$ac_cv_exeext
3611 ac_exeext=$EXEEXT
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h.  */
3614 #include <stdio.h>
3615 int
3616 main ()
3617 {
3618 FILE *f = fopen ("conftest.out", "w");
3619  return ferror (f) || fclose (f) != 0;
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 ac_clean_files="$ac_clean_files conftest.out"
3626 # Check that the compiler produces executables we can run.  If not, either
3627 # the compiler is broken, or we cross compile.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3629 $as_echo_n "checking whether we are cross compiling... " >&6; }
3630 if test "$cross_compiling" != yes; then
3631   { { ac_try="$ac_link"
3632 case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638   (eval "$ac_link") 2>&5
3639   ac_status=$?
3640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641   test $ac_status = 0; }
3642   if { ac_try='./conftest$ac_cv_exeext'
3643   { { case "(($ac_try" in
3644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645   *) ac_try_echo=$ac_try;;
3646 esac
3647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648 $as_echo "$ac_try_echo"; } >&5
3649   (eval "$ac_try") 2>&5
3650   ac_status=$?
3651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652   test $ac_status = 0; }; }; then
3653     cross_compiling=no
3654   else
3655     if test "$cross_compiling" = maybe; then
3656         cross_compiling=yes
3657     else
3658         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 as_fn_error "cannot run C compiled programs.
3661 If you meant to cross compile, use \`--host'.
3662 See \`config.log' for more details." "$LINENO" 5; }
3663     fi
3664   fi
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3667 $as_echo "$cross_compiling" >&6; }
3668
3669 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3670 ac_clean_files=$ac_clean_files_save
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3672 $as_echo_n "checking for suffix of object files... " >&6; }
3673 if test "${ac_cv_objext+set}" = set; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h.  */
3678
3679 int
3680 main ()
3681 {
3682
3683   ;
3684   return 0;
3685 }
3686 _ACEOF
3687 rm -f conftest.o conftest.obj
3688 if { { ac_try="$ac_compile"
3689 case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695   (eval "$ac_compile") 2>&5
3696   ac_status=$?
3697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698   test $ac_status = 0; }; then :
3699   for ac_file in conftest.o conftest.obj conftest.*; do
3700   test -f "$ac_file" || continue;
3701   case $ac_file in
3702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3703     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3704        break;;
3705   esac
3706 done
3707 else
3708   $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error "cannot compute suffix of object files: cannot compile
3714 See \`config.log' for more details." "$LINENO" 5; }
3715 fi
3716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3719 $as_echo "$ac_cv_objext" >&6; }
3720 OBJEXT=$ac_cv_objext
3721 ac_objext=$OBJEXT
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3723 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3724 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3725   $as_echo_n "(cached) " >&6
3726 else
3727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h.  */
3729
3730 int
3731 main ()
3732 {
3733 #ifndef __GNUC__
3734        choke me
3735 #endif
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742   ac_compiler_gnu=yes
3743 else
3744   ac_compiler_gnu=no
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3748
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3751 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3752 if test $ac_compiler_gnu = yes; then
3753   GCC=yes
3754 else
3755   GCC=
3756 fi
3757 ac_test_CFLAGS=${CFLAGS+set}
3758 ac_save_CFLAGS=$CFLAGS
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3760 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3761 if test "${ac_cv_prog_cc_g+set}" = set; then :
3762   $as_echo_n "(cached) " >&6
3763 else
3764   ac_save_c_werror_flag=$ac_c_werror_flag
3765    ac_c_werror_flag=yes
3766    ac_cv_prog_cc_g=no
3767    CFLAGS="-g"
3768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h.  */
3770
3771 int
3772 main ()
3773 {
3774
3775   ;
3776   return 0;
3777 }
3778 _ACEOF
3779 if ac_fn_c_try_compile "$LINENO"; then :
3780   ac_cv_prog_cc_g=yes
3781 else
3782   CFLAGS=""
3783       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h.  */
3785
3786 int
3787 main ()
3788 {
3789
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795
3796 else
3797   ac_c_werror_flag=$ac_save_c_werror_flag
3798          CFLAGS="-g"
3799          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h.  */
3801
3802 int
3803 main ()
3804 {
3805
3806   ;
3807   return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811   ac_cv_prog_cc_g=yes
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 fi
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818    ac_c_werror_flag=$ac_save_c_werror_flag
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3821 $as_echo "$ac_cv_prog_cc_g" >&6; }
3822 if test "$ac_test_CFLAGS" = set; then
3823   CFLAGS=$ac_save_CFLAGS
3824 elif test $ac_cv_prog_cc_g = yes; then
3825   if test "$GCC" = yes; then
3826     CFLAGS="-g -O2"
3827   else
3828     CFLAGS="-g"
3829   fi
3830 else
3831   if test "$GCC" = yes; then
3832     CFLAGS="-O2"
3833   else
3834     CFLAGS=
3835   fi
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3838 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3839 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3840   $as_echo_n "(cached) " >&6
3841 else
3842   ac_cv_prog_cc_c89=no
3843 ac_save_CC=$CC
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h.  */
3846 #include <stdarg.h>
3847 #include <stdio.h>
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3854      char **p;
3855      int i;
3856 {
3857   return p[i];
3858 }
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3860 {
3861   char *s;
3862   va_list v;
3863   va_start (v,p);
3864   s = g (p, va_arg (v,int));
3865   va_end (v);
3866   return s;
3867 }
3868
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3870    function prototypes and stuff, but not '\xHH' hex character constants.
3871    These don't provoke an error unfortunately, instead are silently treated
3872    as 'x'.  The following induces an error, until -std is added to get
3873    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3874    array size at least.  It's necessary to write '\x00'==0 to get something
3875    that's true only with -std.  */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3877
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879    inside strings and character constants.  */
3880 #define FOO(x) 'x'
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3882
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887 int argc;
3888 char **argv;
3889 int
3890 main ()
3891 {
3892 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3893   ;
3894   return 0;
3895 }
3896 _ACEOF
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3899 do
3900   CC="$ac_save_CC $ac_arg"
3901   if ac_fn_c_try_compile "$LINENO"; then :
3902   ac_cv_prog_cc_c89=$ac_arg
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext
3905   test "x$ac_cv_prog_cc_c89" != "xno" && break
3906 done
3907 rm -f conftest.$ac_ext
3908 CC=$ac_save_CC
3909
3910 fi
3911 # AC_CACHE_VAL
3912 case "x$ac_cv_prog_cc_c89" in
3913   x)
3914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3915 $as_echo "none needed" >&6; } ;;
3916   xno)
3917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3918 $as_echo "unsupported" >&6; } ;;
3919   *)
3920     CC="$CC $ac_cv_prog_cc_c89"
3921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3922 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3923 esac
3924 if test "x$ac_cv_prog_cc_c89" != xno; then :
3925
3926 fi
3927
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933 DEPDIR="${am__leading_dot}deps"
3934
3935 ac_config_commands="$ac_config_commands depfiles"
3936
3937
3938 am_make=${MAKE-make}
3939 cat > confinc << 'END'
3940 am__doit:
3941         @echo this is the am__doit target
3942 .PHONY: am__doit
3943 END
3944 # If we don't find an include directive, just comment out the code.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3946 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3947 am__include="#"
3948 am__quote=
3949 _am_result=none
3950 # First try GNU make style include.
3951 echo "include confinc" > confmf
3952 # Ignore all kinds of additional output from `make'.
3953 case `$am_make -s -f confmf 2> /dev/null` in #(
3954 *the\ am__doit\ target*)
3955   am__include=include
3956   am__quote=
3957   _am_result=GNU
3958   ;;
3959 esac
3960 # Now try BSD make style include.
3961 if test "$am__include" = "#"; then
3962    echo '.include "confinc"' > confmf
3963    case `$am_make -s -f confmf 2> /dev/null` in #(
3964    *the\ am__doit\ target*)
3965      am__include=.include
3966      am__quote="\""
3967      _am_result=BSD
3968      ;;
3969    esac
3970 fi
3971
3972
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3974 $as_echo "$_am_result" >&6; }
3975 rm -f confinc confmf
3976
3977 # Check whether --enable-dependency-tracking was given.
3978 if test "${enable_dependency_tracking+set}" = set; then :
3979   enableval=$enable_dependency_tracking;
3980 fi
3981
3982 if test "x$enable_dependency_tracking" != xno; then
3983   am_depcomp="$ac_aux_dir/depcomp"
3984   AMDEPBACKSLASH='\'
3985 fi
3986  if test "x$enable_dependency_tracking" != xno; then
3987   AMDEP_TRUE=
3988   AMDEP_FALSE='#'
3989 else
3990   AMDEP_TRUE='#'
3991   AMDEP_FALSE=
3992 fi
3993
3994
3995
3996 depcc="$CC"   am_compiler_list=
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3999 $as_echo_n "checking dependency style of $depcc... " >&6; }
4000 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4004   # We make a subdir and do the tests there.  Otherwise we can end up
4005   # making bogus files that we don't know about and never remove.  For
4006   # instance it was reported that on HP-UX the gcc test will end up
4007   # making a dummy file named `D' -- because `-MD' means `put the output
4008   # in D'.
4009   mkdir conftest.dir
4010   # Copy depcomp to subdir because otherwise we won't find it if we're
4011   # using a relative directory.
4012   cp "$am_depcomp" conftest.dir
4013   cd conftest.dir
4014   # We will build objects and dependencies in a subdirectory because
4015   # it helps to detect inapplicable dependency modes.  For instance
4016   # both Tru64's cc and ICC support -MD to output dependencies as a
4017   # side effect of compilation, but ICC will put the dependencies in
4018   # the current directory while Tru64 will put them in the object
4019   # directory.
4020   mkdir sub
4021
4022   am_cv_CC_dependencies_compiler_type=none
4023   if test "$am_compiler_list" = ""; then
4024      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4025   fi
4026   am__universal=false
4027   case " $depcc " in #(
4028      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4029      esac
4030
4031   for depmode in $am_compiler_list; do
4032     # Setup a source with many dependencies, because some compilers
4033     # like to wrap large dependency lists on column 80 (with \), and
4034     # we should not choose a depcomp mode which is confused by this.
4035     #
4036     # We need to recreate these files for each test, as the compiler may
4037     # overwrite some of them when testing with obscure command lines.
4038     # This happens at least with the AIX C compiler.
4039     : > sub/conftest.c
4040     for i in 1 2 3 4 5 6; do
4041       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4042       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4043       # Solaris 8's {/usr,}/bin/sh.
4044       touch sub/conftst$i.h
4045     done
4046     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4047
4048     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4049     # mode.  It turns out that the SunPro C++ compiler does not properly
4050     # handle `-M -o', and we need to detect this.  Also, some Intel
4051     # versions had trouble with output in subdirs
4052     am__obj=sub/conftest.${OBJEXT-o}
4053     am__minus_obj="-o $am__obj"
4054     case $depmode in
4055     gcc)
4056       # This depmode causes a compiler race in universal mode.
4057       test "$am__universal" = false || continue
4058       ;;
4059     nosideeffect)
4060       # after this tag, mechanisms are not by side-effect, so they'll
4061       # only be used when explicitly requested
4062       if test "x$enable_dependency_tracking" = xyes; then
4063         continue
4064       else
4065         break
4066       fi
4067       ;;
4068     msvisualcpp | msvcmsys)
4069       # This compiler won't grok `-c -o', but also, the minuso test has
4070       # not run yet.  These depmodes are late enough in the game, and
4071       # so weak that their functioning should not be impacted.
4072       am__obj=conftest.${OBJEXT-o}
4073       am__minus_obj=
4074       ;;
4075     none) break ;;
4076     esac
4077     if depmode=$depmode \
4078        source=sub/conftest.c object=$am__obj \
4079        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4080        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4081          >/dev/null 2>conftest.err &&
4082        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4083        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4084        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4085        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4086       # icc doesn't choke on unknown options, it will just issue warnings
4087       # or remarks (even with -Werror).  So we grep stderr for any message
4088       # that says an option was ignored or not supported.
4089       # When given -MP, icc 7.0 and 7.1 complain thusly:
4090       #   icc: Command line warning: ignoring option '-M'; no argument required
4091       # The diagnosis changed in icc 8.0:
4092       #   icc: Command line remark: option '-MP' not supported
4093       if (grep 'ignoring option' conftest.err ||
4094           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4095         am_cv_CC_dependencies_compiler_type=$depmode
4096         break
4097       fi
4098     fi
4099   done
4100
4101   cd ..
4102   rm -rf conftest.dir
4103 else
4104   am_cv_CC_dependencies_compiler_type=none
4105 fi
4106
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4109 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4110 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4111
4112  if
4113   test "x$enable_dependency_tracking" != xno \
4114   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4115   am__fastdepCC_TRUE=
4116   am__fastdepCC_FALSE='#'
4117 else
4118   am__fastdepCC_TRUE='#'
4119   am__fastdepCC_FALSE=
4120 fi
4121
4122
4123 ac_ext=cpp
4124 ac_cpp='$CXXCPP $CPPFLAGS'
4125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4128 if test -z "$CXX"; then
4129   if test -n "$CCC"; then
4130     CXX=$CCC
4131   else
4132     if test -n "$ac_tool_prefix"; then
4133   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4134   do
4135     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if test "${ac_cv_prog_CXX+set}" = set; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142   if test -n "$CXX"; then
4143   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4144 else
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148   IFS=$as_save_IFS
4149   test -z "$as_dir" && as_dir=.
4150     for ac_exec_ext in '' $ac_executable_extensions; do
4151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154     break 2
4155   fi
4156 done
4157   done
4158 IFS=$as_save_IFS
4159
4160 fi
4161 fi
4162 CXX=$ac_cv_prog_CXX
4163 if test -n "$CXX"; then
4164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4165 $as_echo "$CXX" >&6; }
4166 else
4167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4169 fi
4170
4171
4172     test -n "$CXX" && break
4173   done
4174 fi
4175 if test -z "$CXX"; then
4176   ac_ct_CXX=$CXX
4177   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4178 do
4179   # Extract the first word of "$ac_prog", so it can be a program name with args.
4180 set dummy $ac_prog; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4184   $as_echo_n "(cached) " >&6
4185 else
4186   if test -n "$ac_ct_CXX"; then
4187   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194     for ac_exec_ext in '' $ac_executable_extensions; do
4195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196     ac_cv_prog_ac_ct_CXX="$ac_prog"
4197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198     break 2
4199   fi
4200 done
4201   done
4202 IFS=$as_save_IFS
4203
4204 fi
4205 fi
4206 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4207 if test -n "$ac_ct_CXX"; then
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4209 $as_echo "$ac_ct_CXX" >&6; }
4210 else
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4213 fi
4214
4215
4216   test -n "$ac_ct_CXX" && break
4217 done
4218
4219   if test "x$ac_ct_CXX" = x; then
4220     CXX="g++"
4221   else
4222     case $cross_compiling:$ac_tool_warned in
4223 yes:)
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4226 ac_tool_warned=yes ;;
4227 esac
4228     CXX=$ac_ct_CXX
4229   fi
4230 fi
4231
4232   fi
4233 fi
4234 # Provide some information about the compiler.
4235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4236 set X $ac_compile
4237 ac_compiler=$2
4238 for ac_option in --version -v -V -qversion; do
4239   { { ac_try="$ac_compiler $ac_option >&5"
4240 case "(($ac_try" in
4241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242   *) ac_try_echo=$ac_try;;
4243 esac
4244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245 $as_echo "$ac_try_echo"; } >&5
4246   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4247   ac_status=$?
4248   if test -s conftest.err; then
4249     sed '10a\
4250 ... rest of stderr output deleted ...
4251          10q' conftest.err >conftest.er1
4252     cat conftest.er1 >&5
4253   fi
4254   rm -f conftest.er1 conftest.err
4255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256   test $ac_status = 0; }
4257 done
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4260 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4261 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4262   $as_echo_n "(cached) " >&6
4263 else
4264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h.  */
4266
4267 int
4268 main ()
4269 {
4270 #ifndef __GNUC__
4271        choke me
4272 #endif
4273
4274   ;
4275   return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_cxx_try_compile "$LINENO"; then :
4279   ac_compiler_gnu=yes
4280 else
4281   ac_compiler_gnu=no
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4285
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4288 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4289 if test $ac_compiler_gnu = yes; then
4290   GXX=yes
4291 else
4292   GXX=
4293 fi
4294 ac_test_CXXFLAGS=${CXXFLAGS+set}
4295 ac_save_CXXFLAGS=$CXXFLAGS
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4297 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4298 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4299   $as_echo_n "(cached) " >&6
4300 else
4301   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4302    ac_cxx_werror_flag=yes
4303    ac_cv_prog_cxx_g=no
4304    CXXFLAGS="-g"
4305    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h.  */
4307
4308 int
4309 main ()
4310 {
4311
4312   ;
4313   return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_cxx_try_compile "$LINENO"; then :
4317   ac_cv_prog_cxx_g=yes
4318 else
4319   CXXFLAGS=""
4320       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h.  */
4322
4323 int
4324 main ()
4325 {
4326
4327   ;
4328   return 0;
4329 }
4330 _ACEOF
4331 if ac_fn_cxx_try_compile "$LINENO"; then :
4332
4333 else
4334   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4335          CXXFLAGS="-g"
4336          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h.  */
4338
4339 int
4340 main ()
4341 {
4342
4343   ;
4344   return 0;
4345 }
4346 _ACEOF
4347 if ac_fn_cxx_try_compile "$LINENO"; then :
4348   ac_cv_prog_cxx_g=yes
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 fi
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4358 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4359 if test "$ac_test_CXXFLAGS" = set; then
4360   CXXFLAGS=$ac_save_CXXFLAGS
4361 elif test $ac_cv_prog_cxx_g = yes; then
4362   if test "$GXX" = yes; then
4363     CXXFLAGS="-g -O2"
4364   else
4365     CXXFLAGS="-g"
4366   fi
4367 else
4368   if test "$GXX" = yes; then
4369     CXXFLAGS="-O2"
4370   else
4371     CXXFLAGS=
4372   fi
4373 fi
4374 ac_ext=c
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379
4380 depcc="$CXX"  am_compiler_list=
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4383 $as_echo_n "checking dependency style of $depcc... " >&6; }
4384 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4388   # We make a subdir and do the tests there.  Otherwise we can end up
4389   # making bogus files that we don't know about and never remove.  For
4390   # instance it was reported that on HP-UX the gcc test will end up
4391   # making a dummy file named `D' -- because `-MD' means `put the output
4392   # in D'.
4393   mkdir conftest.dir
4394   # Copy depcomp to subdir because otherwise we won't find it if we're
4395   # using a relative directory.
4396   cp "$am_depcomp" conftest.dir
4397   cd conftest.dir
4398   # We will build objects and dependencies in a subdirectory because
4399   # it helps to detect inapplicable dependency modes.  For instance
4400   # both Tru64's cc and ICC support -MD to output dependencies as a
4401   # side effect of compilation, but ICC will put the dependencies in
4402   # the current directory while Tru64 will put them in the object
4403   # directory.
4404   mkdir sub
4405
4406   am_cv_CXX_dependencies_compiler_type=none
4407   if test "$am_compiler_list" = ""; then
4408      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4409   fi
4410   am__universal=false
4411   case " $depcc " in #(
4412      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4413      esac
4414
4415   for depmode in $am_compiler_list; do
4416     # Setup a source with many dependencies, because some compilers
4417     # like to wrap large dependency lists on column 80 (with \), and
4418     # we should not choose a depcomp mode which is confused by this.
4419     #
4420     # We need to recreate these files for each test, as the compiler may
4421     # overwrite some of them when testing with obscure command lines.
4422     # This happens at least with the AIX C compiler.
4423     : > sub/conftest.c
4424     for i in 1 2 3 4 5 6; do
4425       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4426       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4427       # Solaris 8's {/usr,}/bin/sh.
4428       touch sub/conftst$i.h
4429     done
4430     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4431
4432     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4433     # mode.  It turns out that the SunPro C++ compiler does not properly
4434     # handle `-M -o', and we need to detect this.  Also, some Intel
4435     # versions had trouble with output in subdirs
4436     am__obj=sub/conftest.${OBJEXT-o}
4437     am__minus_obj="-o $am__obj"
4438     case $depmode in
4439     gcc)
4440       # This depmode causes a compiler race in universal mode.
4441       test "$am__universal" = false || continue
4442       ;;
4443     nosideeffect)
4444       # after this tag, mechanisms are not by side-effect, so they'll
4445       # only be used when explicitly requested
4446       if test "x$enable_dependency_tracking" = xyes; then
4447         continue
4448       else
4449         break
4450       fi
4451       ;;
4452     msvisualcpp | msvcmsys)
4453       # This compiler won't grok `-c -o', but also, the minuso test has
4454       # not run yet.  These depmodes are late enough in the game, and
4455       # so weak that their functioning should not be impacted.
4456       am__obj=conftest.${OBJEXT-o}
4457       am__minus_obj=
4458       ;;
4459     none) break ;;
4460     esac
4461     if depmode=$depmode \
4462        source=sub/conftest.c object=$am__obj \
4463        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4464        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4465          >/dev/null 2>conftest.err &&
4466        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4467        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4468        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4469        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4470       # icc doesn't choke on unknown options, it will just issue warnings
4471       # or remarks (even with -Werror).  So we grep stderr for any message
4472       # that says an option was ignored or not supported.
4473       # When given -MP, icc 7.0 and 7.1 complain thusly:
4474       #   icc: Command line warning: ignoring option '-M'; no argument required
4475       # The diagnosis changed in icc 8.0:
4476       #   icc: Command line remark: option '-MP' not supported
4477       if (grep 'ignoring option' conftest.err ||
4478           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4479         am_cv_CXX_dependencies_compiler_type=$depmode
4480         break
4481       fi
4482     fi
4483   done
4484
4485   cd ..
4486   rm -rf conftest.dir
4487 else
4488   am_cv_CXX_dependencies_compiler_type=none
4489 fi
4490
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4493 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4494 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4495
4496  if
4497   test "x$enable_dependency_tracking" != xno \
4498   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4499   am__fastdepCXX_TRUE=
4500   am__fastdepCXX_FALSE='#'
4501 else
4502   am__fastdepCXX_TRUE='#'
4503   am__fastdepCXX_FALSE=
4504 fi
4505
4506
4507 if test -n "$ac_tool_prefix"; then
4508   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4509 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4513   $as_echo_n "(cached) " >&6
4514 else
4515   if test -n "$RANLIB"; then
4516   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523     for ac_exec_ext in '' $ac_executable_extensions; do
4524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530   done
4531 IFS=$as_save_IFS
4532
4533 fi
4534 fi
4535 RANLIB=$ac_cv_prog_RANLIB
4536 if test -n "$RANLIB"; then
4537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4538 $as_echo "$RANLIB" >&6; }
4539 else
4540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4542 fi
4543
4544
4545 fi
4546 if test -z "$ac_cv_prog_RANLIB"; then
4547   ac_ct_RANLIB=$RANLIB
4548   # Extract the first word of "ranlib", so it can be a program name with args.
4549 set dummy ranlib; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4553   $as_echo_n "(cached) " >&6
4554 else
4555   if test -n "$ac_ct_RANLIB"; then
4556   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561   IFS=$as_save_IFS
4562   test -z "$as_dir" && as_dir=.
4563     for ac_exec_ext in '' $ac_executable_extensions; do
4564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565     ac_cv_prog_ac_ct_RANLIB="ranlib"
4566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567     break 2
4568   fi
4569 done
4570   done
4571 IFS=$as_save_IFS
4572
4573 fi
4574 fi
4575 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4576 if test -n "$ac_ct_RANLIB"; then
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4578 $as_echo "$ac_ct_RANLIB" >&6; }
4579 else
4580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4582 fi
4583
4584   if test "x$ac_ct_RANLIB" = x; then
4585     RANLIB=":"
4586   else
4587     case $cross_compiling:$ac_tool_warned in
4588 yes:)
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591 ac_tool_warned=yes ;;
4592 esac
4593     RANLIB=$ac_ct_RANLIB
4594   fi
4595 else
4596   RANLIB="$ac_cv_prog_RANLIB"
4597 fi
4598
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4601 $as_echo_n "checking whether ln -s works... " >&6; }
4602 LN_S=$as_ln_s
4603 if test "$LN_S" = "ln -s"; then
4604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4605 $as_echo "yes" >&6; }
4606 else
4607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4608 $as_echo "no, using $LN_S" >&6; }
4609 fi
4610
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4612 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4613 if test "${ac_cv_path_SED+set}" = set; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4617      for ac_i in 1 2 3 4 5 6 7; do
4618        ac_script="$ac_script$as_nl$ac_script"
4619      done
4620      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4621      { ac_script=; unset ac_script;}
4622      if test -z "$SED"; then
4623   ac_path_SED_found=false
4624   # Loop through the user's path and test for each of PROGNAME-LIST
4625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630     for ac_prog in sed gsed; do
4631     for ac_exec_ext in '' $ac_executable_extensions; do
4632       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4633       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4634 # Check for GNU ac_path_SED and select it if it is found.
4635   # Check for GNU $ac_path_SED
4636 case `"$ac_path_SED" --version 2>&1` in
4637 *GNU*)
4638   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4639 *)
4640   ac_count=0
4641   $as_echo_n 0123456789 >"conftest.in"
4642   while :
4643   do
4644     cat "conftest.in" "conftest.in" >"conftest.tmp"
4645     mv "conftest.tmp" "conftest.in"
4646     cp "conftest.in" "conftest.nl"
4647     $as_echo '' >> "conftest.nl"
4648     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650     as_fn_arith $ac_count + 1 && ac_count=$as_val
4651     if test $ac_count -gt ${ac_path_SED_max-0}; then
4652       # Best one so far, save it but keep looking for a better one
4653       ac_cv_path_SED="$ac_path_SED"
4654       ac_path_SED_max=$ac_count
4655     fi
4656     # 10*(2^10) chars as input seems more than enough
4657     test $ac_count -gt 10 && break
4658   done
4659   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660 esac
4661
4662       $ac_path_SED_found && break 3
4663     done
4664   done
4665   done
4666 IFS=$as_save_IFS
4667   if test -z "$ac_cv_path_SED"; then
4668     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4669   fi
4670 else
4671   ac_cv_path_SED=$SED
4672 fi
4673
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4676 $as_echo "$ac_cv_path_SED" >&6; }
4677  SED="$ac_cv_path_SED"
4678   rm -f conftest.sed
4679
4680
4681 # Check whether --enable-largefile was given.
4682 if test "${enable_largefile+set}" = set; then :
4683   enableval=$enable_largefile;
4684 fi
4685
4686 if test "$enable_largefile" != no; then
4687
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4689 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4690 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   ac_cv_sys_largefile_CC=no
4694      if test "$GCC" != yes; then
4695        ac_save_CC=$CC
4696        while :; do
4697          # IRIX 6.2 and later do not support large files by default,
4698          # so use the C compiler's -n32 option if that helps.
4699          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h.  */
4701 #include <sys/types.h>
4702  /* Check that off_t can represent 2**63 - 1 correctly.
4703     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4704     since some C++ compilers masquerading as C compilers
4705     incorrectly reject 9223372036854775807.  */
4706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4707   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4708                        && LARGE_OFF_T % 2147483647 == 1)
4709                       ? 1 : -1];
4710 int
4711 main ()
4712 {
4713
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718          if ac_fn_c_try_compile "$LINENO"; then :
4719   break
4720 fi
4721 rm -f core conftest.err conftest.$ac_objext
4722          CC="$CC -n32"
4723          if ac_fn_c_try_compile "$LINENO"; then :
4724   ac_cv_sys_largefile_CC=' -n32'; break
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext
4727          break
4728        done
4729        CC=$ac_save_CC
4730        rm -f conftest.$ac_ext
4731     fi
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4734 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4735   if test "$ac_cv_sys_largefile_CC" != no; then
4736     CC=$CC$ac_cv_sys_largefile_CC
4737   fi
4738
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4740 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4741 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   while :; do
4745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h.  */
4747 #include <sys/types.h>
4748  /* Check that off_t can represent 2**63 - 1 correctly.
4749     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4750     since some C++ compilers masquerading as C compilers
4751     incorrectly reject 9223372036854775807.  */
4752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4753   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4754                        && LARGE_OFF_T % 2147483647 == 1)
4755                       ? 1 : -1];
4756 int
4757 main ()
4758 {
4759
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765   ac_cv_sys_file_offset_bits=no; break
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h.  */
4770 #define _FILE_OFFSET_BITS 64
4771 #include <sys/types.h>
4772  /* Check that off_t can represent 2**63 - 1 correctly.
4773     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4774     since some C++ compilers masquerading as C compilers
4775     incorrectly reject 9223372036854775807.  */
4776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4777   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4778                        && LARGE_OFF_T % 2147483647 == 1)
4779                       ? 1 : -1];
4780 int
4781 main ()
4782 {
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789   ac_cv_sys_file_offset_bits=64; break
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792   ac_cv_sys_file_offset_bits=unknown
4793   break
4794 done
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4797 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4798 case $ac_cv_sys_file_offset_bits in #(
4799   no | unknown) ;;
4800   *)
4801 cat >>confdefs.h <<_ACEOF
4802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4803 _ACEOF
4804 ;;
4805 esac
4806 rm -rf conftest*
4807   if test $ac_cv_sys_file_offset_bits = unknown; then
4808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4809 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4810 if test "${ac_cv_sys_large_files+set}" = set; then :
4811   $as_echo_n "(cached) " >&6
4812 else
4813   while :; do
4814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h.  */
4816 #include <sys/types.h>
4817  /* Check that off_t can represent 2**63 - 1 correctly.
4818     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4819     since some C++ compilers masquerading as C compilers
4820     incorrectly reject 9223372036854775807.  */
4821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4822   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4823                        && LARGE_OFF_T % 2147483647 == 1)
4824                       ? 1 : -1];
4825 int
4826 main ()
4827 {
4828
4829   ;
4830   return 0;
4831 }
4832 _ACEOF
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834   ac_cv_sys_large_files=no; break
4835 fi
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h.  */
4839 #define _LARGE_FILES 1
4840 #include <sys/types.h>
4841  /* Check that off_t can represent 2**63 - 1 correctly.
4842     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4843     since some C++ compilers masquerading as C compilers
4844     incorrectly reject 9223372036854775807.  */
4845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4846   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4847                        && LARGE_OFF_T % 2147483647 == 1)
4848                       ? 1 : -1];
4849 int
4850 main ()
4851 {
4852
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858   ac_cv_sys_large_files=1; break
4859 fi
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861   ac_cv_sys_large_files=unknown
4862   break
4863 done
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4866 $as_echo "$ac_cv_sys_large_files" >&6; }
4867 case $ac_cv_sys_large_files in #(
4868   no | unknown) ;;
4869   *)
4870 cat >>confdefs.h <<_ACEOF
4871 #define _LARGE_FILES $ac_cv_sys_large_files
4872 _ACEOF
4873 ;;
4874 esac
4875 rm -rf conftest*
4876   fi
4877 fi
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4880 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4881 if test "${ac_cv_sys_largefile_source+set}" = set; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   while :; do
4885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h.  */
4887 #include <sys/types.h> /* for off_t */
4888      #include <stdio.h>
4889 int
4890 main ()
4891 {
4892 int (*fp) (FILE *, off_t, int) = fseeko;
4893      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4894   ;
4895   return 0;
4896 }
4897 _ACEOF
4898 if ac_fn_c_try_link "$LINENO"; then :
4899   ac_cv_sys_largefile_source=no; break
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext \
4902     conftest$ac_exeext conftest.$ac_ext
4903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h.  */
4905 #define _LARGEFILE_SOURCE 1
4906 #include <sys/types.h> /* for off_t */
4907      #include <stdio.h>
4908 int
4909 main ()
4910 {
4911 int (*fp) (FILE *, off_t, int) = fseeko;
4912      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4913   ;
4914   return 0;
4915 }
4916 _ACEOF
4917 if ac_fn_c_try_link "$LINENO"; then :
4918   ac_cv_sys_largefile_source=1; break
4919 fi
4920 rm -f core conftest.err conftest.$ac_objext \
4921     conftest$ac_exeext conftest.$ac_ext
4922   ac_cv_sys_largefile_source=unknown
4923   break
4924 done
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4927 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4928 case $ac_cv_sys_largefile_source in #(
4929   no | unknown) ;;
4930   *)
4931 cat >>confdefs.h <<_ACEOF
4932 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4933 _ACEOF
4934 ;;
4935 esac
4936 rm -rf conftest*
4937
4938 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4939 # in glibc 2.1.3, but that breaks too many other things.
4940 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4941 if test $ac_cv_sys_largefile_source != unknown; then
4942
4943 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4944
4945 fi
4946
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4948 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4949 set x ${MAKE-make}
4950 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4951 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   cat >conftest.make <<\_ACEOF
4955 SHELL = /bin/sh
4956 all:
4957         @echo '@@@%%%=$(MAKE)=@@@%%%'
4958 _ACEOF
4959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4960 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4961   *@@@%%%=?*=@@@%%%*)
4962     eval ac_cv_prog_make_${ac_make}_set=yes;;
4963   *)
4964     eval ac_cv_prog_make_${ac_make}_set=no;;
4965 esac
4966 rm -f conftest.make
4967 fi
4968 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4970 $as_echo "yes" >&6; }
4971   SET_MAKE=
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975   SET_MAKE="MAKE=${MAKE-make}"
4976 fi
4977
4978 #AC_HEADER_DIRENT
4979 #
4980 # Tests for Windows
4981 #
4982
4983
4984 #
4985 # Configure libtool
4986 # Check whether --enable-shared was given.
4987 if test "${enable_shared+set}" = set; then :
4988   enableval=$enable_shared; p=${PACKAGE-default}
4989     case $enableval in
4990     yes) enable_shared=yes ;;
4991     no) enable_shared=no ;;
4992     *)
4993       enable_shared=no
4994       # Look at the argument we got.  We use all the common list separators.
4995       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4996       for pkg in $enableval; do
4997         IFS="$lt_save_ifs"
4998         if test "X$pkg" = "X$p"; then
4999           enable_shared=yes
5000         fi
5001       done
5002       IFS="$lt_save_ifs"
5003       ;;
5004     esac
5005 else
5006   enable_shared=yes
5007 fi
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017 # Check whether --enable-static was given.
5018 if test "${enable_static+set}" = set; then :
5019   enableval=$enable_static; p=${PACKAGE-default}
5020     case $enableval in
5021     yes) enable_static=yes ;;
5022     no) enable_static=no ;;
5023     *)
5024      enable_static=no
5025       # Look at the argument we got.  We use all the common list separators.
5026       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5027       for pkg in $enableval; do
5028         IFS="$lt_save_ifs"
5029         if test "X$pkg" = "X$p"; then
5030           enable_static=yes
5031         fi
5032       done
5033       IFS="$lt_save_ifs"
5034       ;;
5035     esac
5036 else
5037   enable_static=yes
5038 fi
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 enable_win32_dll=yes
5049
5050 case $host in
5051 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5052   if test -n "$ac_tool_prefix"; then
5053   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5054 set dummy ${ac_tool_prefix}as; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if test "${ac_cv_prog_AS+set}" = set; then :
5058   $as_echo_n "(cached) " >&6
5059 else
5060   if test -n "$AS"; then
5061   ac_cv_prog_AS="$AS" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066   IFS=$as_save_IFS
5067   test -z "$as_dir" && as_dir=.
5068     for ac_exec_ext in '' $ac_executable_extensions; do
5069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070     ac_cv_prog_AS="${ac_tool_prefix}as"
5071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072     break 2
5073   fi
5074 done
5075   done
5076 IFS=$as_save_IFS
5077
5078 fi
5079 fi
5080 AS=$ac_cv_prog_AS
5081 if test -n "$AS"; then
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5083 $as_echo "$AS" >&6; }
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088
5089
5090 fi
5091 if test -z "$ac_cv_prog_AS"; then
5092   ac_ct_AS=$AS
5093   # Extract the first word of "as", so it can be a program name with args.
5094 set dummy as; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5098   $as_echo_n "(cached) " >&6
5099 else
5100   if test -n "$ac_ct_AS"; then
5101   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108     for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_prog_ac_ct_AS="as"
5111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115   done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5121 if test -n "$ac_ct_AS"; then
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5123 $as_echo "$ac_ct_AS" >&6; }
5124 else
5125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129   if test "x$ac_ct_AS" = x; then
5130     AS="false"
5131   else
5132     case $cross_compiling:$ac_tool_warned in
5133 yes:)
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136 ac_tool_warned=yes ;;
5137 esac
5138     AS=$ac_ct_AS
5139   fi
5140 else
5141   AS="$ac_cv_prog_AS"
5142 fi
5143
5144   if test -n "$ac_tool_prefix"; then
5145   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5146 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5150   $as_echo_n "(cached) " >&6
5151 else
5152   if test -n "$DLLTOOL"; then
5153   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160     for ac_exec_ext in '' $ac_executable_extensions; do
5161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164     break 2
5165   fi
5166 done
5167   done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 DLLTOOL=$ac_cv_prog_DLLTOOL
5173 if test -n "$DLLTOOL"; then
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5175 $as_echo "$DLLTOOL" >&6; }
5176 else
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182 fi
5183 if test -z "$ac_cv_prog_DLLTOOL"; then
5184   ac_ct_DLLTOOL=$DLLTOOL
5185   # Extract the first word of "dlltool", so it can be a program name with args.
5186 set dummy dlltool; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192   if test -n "$ac_ct_DLLTOOL"; then
5193   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200     for ac_exec_ext in '' $ac_executable_extensions; do
5201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207   done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5213 if test -n "$ac_ct_DLLTOOL"; then
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5215 $as_echo "$ac_ct_DLLTOOL" >&6; }
5216 else
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221   if test "x$ac_ct_DLLTOOL" = x; then
5222     DLLTOOL="false"
5223   else
5224     case $cross_compiling:$ac_tool_warned in
5225 yes:)
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned=yes ;;
5229 esac
5230     DLLTOOL=$ac_ct_DLLTOOL
5231   fi
5232 else
5233   DLLTOOL="$ac_cv_prog_DLLTOOL"
5234 fi
5235
5236   if test -n "$ac_tool_prefix"; then
5237   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5238 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5242   $as_echo_n "(cached) " >&6
5243 else
5244   if test -n "$OBJDUMP"; then
5245   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252     for ac_exec_ext in '' $ac_executable_extensions; do
5253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256     break 2
5257   fi
5258 done
5259   done
5260 IFS=$as_save_IFS
5261
5262 fi
5263 fi
5264 OBJDUMP=$ac_cv_prog_OBJDUMP
5265 if test -n "$OBJDUMP"; then
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5267 $as_echo "$OBJDUMP" >&6; }
5268 else
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5271 fi
5272
5273
5274 fi
5275 if test -z "$ac_cv_prog_OBJDUMP"; then
5276   ac_ct_OBJDUMP=$OBJDUMP
5277   # Extract the first word of "objdump", so it can be a program name with args.
5278 set dummy objdump; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   if test -n "$ac_ct_OBJDUMP"; then
5285   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292     for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299   done
5300 IFS=$as_save_IFS
5301
5302 fi
5303 fi
5304 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5305 if test -n "$ac_ct_OBJDUMP"; then
5306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5307 $as_echo "$ac_ct_OBJDUMP" >&6; }
5308 else
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5311 fi
5312
5313   if test "x$ac_ct_OBJDUMP" = x; then
5314     OBJDUMP="false"
5315   else
5316     case $cross_compiling:$ac_tool_warned in
5317 yes:)
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5320 ac_tool_warned=yes ;;
5321 esac
5322     OBJDUMP=$ac_ct_OBJDUMP
5323   fi
5324 else
5325   OBJDUMP="$ac_cv_prog_OBJDUMP"
5326 fi
5327
5328   ;;
5329 esac
5330
5331 test -z "$AS" && AS=as
5332
5333
5334
5335
5336
5337 test -z "$DLLTOOL" && DLLTOOL=dlltool
5338
5339
5340
5341
5342
5343 test -z "$OBJDUMP" && OBJDUMP=objdump
5344
5345
5346
5347
5348
5349
5350
5351
5352 case `pwd` in
5353   *\ * | *\     *)
5354     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5355 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5356 esac
5357
5358
5359
5360 macro_version='2.2.6b'
5361 macro_revision='1.3017'
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375 ltmain="$ac_aux_dir/ltmain.sh"
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5378 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5379 if test "${ac_cv_path_SED+set}" = set; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5383      for ac_i in 1 2 3 4 5 6 7; do
5384        ac_script="$ac_script$as_nl$ac_script"
5385      done
5386      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5387      { ac_script=; unset ac_script;}
5388      if test -z "$SED"; then
5389   ac_path_SED_found=false
5390   # Loop through the user's path and test for each of PROGNAME-LIST
5391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396     for ac_prog in sed gsed; do
5397     for ac_exec_ext in '' $ac_executable_extensions; do
5398       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5399       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5400 # Check for GNU ac_path_SED and select it if it is found.
5401   # Check for GNU $ac_path_SED
5402 case `"$ac_path_SED" --version 2>&1` in
5403 *GNU*)
5404   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5405 *)
5406   ac_count=0
5407   $as_echo_n 0123456789 >"conftest.in"
5408   while :
5409   do
5410     cat "conftest.in" "conftest.in" >"conftest.tmp"
5411     mv "conftest.tmp" "conftest.in"
5412     cp "conftest.in" "conftest.nl"
5413     $as_echo '' >> "conftest.nl"
5414     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5415     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5416     as_fn_arith $ac_count + 1 && ac_count=$as_val
5417     if test $ac_count -gt ${ac_path_SED_max-0}; then
5418       # Best one so far, save it but keep looking for a better one
5419       ac_cv_path_SED="$ac_path_SED"
5420       ac_path_SED_max=$ac_count
5421     fi
5422     # 10*(2^10) chars as input seems more than enough
5423     test $ac_count -gt 10 && break
5424   done
5425   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5426 esac
5427
5428       $ac_path_SED_found && break 3
5429     done
5430   done
5431   done
5432 IFS=$as_save_IFS
5433   if test -z "$ac_cv_path_SED"; then
5434     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5435   fi
5436 else
5437   ac_cv_path_SED=$SED
5438 fi
5439
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5442 $as_echo "$ac_cv_path_SED" >&6; }
5443  SED="$ac_cv_path_SED"
5444   rm -f conftest.sed
5445
5446 test -z "$SED" && SED=sed
5447 Xsed="$SED -e 1s/^X//"
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5460 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5461 if test "${ac_cv_path_GREP+set}" = set; then :
5462   $as_echo_n "(cached) " >&6
5463 else
5464   if test -z "$GREP"; then
5465   ac_path_GREP_found=false
5466   # Loop through the user's path and test for each of PROGNAME-LIST
5467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472     for ac_prog in grep ggrep; do
5473     for ac_exec_ext in '' $ac_executable_extensions; do
5474       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5475       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5476 # Check for GNU ac_path_GREP and select it if it is found.
5477   # Check for GNU $ac_path_GREP
5478 case `"$ac_path_GREP" --version 2>&1` in
5479 *GNU*)
5480   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5481 *)
5482   ac_count=0
5483   $as_echo_n 0123456789 >"conftest.in"
5484   while :
5485   do
5486     cat "conftest.in" "conftest.in" >"conftest.tmp"
5487     mv "conftest.tmp" "conftest.in"
5488     cp "conftest.in" "conftest.nl"
5489     $as_echo 'GREP' >> "conftest.nl"
5490     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492     as_fn_arith $ac_count + 1 && ac_count=$as_val
5493     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5494       # Best one so far, save it but keep looking for a better one
5495       ac_cv_path_GREP="$ac_path_GREP"
5496       ac_path_GREP_max=$ac_count
5497     fi
5498     # 10*(2^10) chars as input seems more than enough
5499     test $ac_count -gt 10 && break
5500   done
5501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502 esac
5503
5504       $ac_path_GREP_found && break 3
5505     done
5506   done
5507   done
5508 IFS=$as_save_IFS
5509   if test -z "$ac_cv_path_GREP"; then
5510     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5511   fi
5512 else
5513   ac_cv_path_GREP=$GREP
5514 fi
5515
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5518 $as_echo "$ac_cv_path_GREP" >&6; }
5519  GREP="$ac_cv_path_GREP"
5520
5521
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5523 $as_echo_n "checking for egrep... " >&6; }
5524 if test "${ac_cv_path_EGREP+set}" = set; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5528    then ac_cv_path_EGREP="$GREP -E"
5529    else
5530      if test -z "$EGREP"; then
5531   ac_path_EGREP_found=false
5532   # Loop through the user's path and test for each of PROGNAME-LIST
5533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5535 do
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538     for ac_prog in egrep; do
5539     for ac_exec_ext in '' $ac_executable_extensions; do
5540       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5541       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5542 # Check for GNU ac_path_EGREP and select it if it is found.
5543   # Check for GNU $ac_path_EGREP
5544 case `"$ac_path_EGREP" --version 2>&1` in
5545 *GNU*)
5546   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5547 *)
5548   ac_count=0
5549   $as_echo_n 0123456789 >"conftest.in"
5550   while :
5551   do
5552     cat "conftest.in" "conftest.in" >"conftest.tmp"
5553     mv "conftest.tmp" "conftest.in"
5554     cp "conftest.in" "conftest.nl"
5555     $as_echo 'EGREP' >> "conftest.nl"
5556     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5557     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5558     as_fn_arith $ac_count + 1 && ac_count=$as_val
5559     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5560       # Best one so far, save it but keep looking for a better one
5561       ac_cv_path_EGREP="$ac_path_EGREP"
5562       ac_path_EGREP_max=$ac_count
5563     fi
5564     # 10*(2^10) chars as input seems more than enough
5565     test $ac_count -gt 10 && break
5566   done
5567   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5568 esac
5569
5570       $ac_path_EGREP_found && break 3
5571     done
5572   done
5573   done
5574 IFS=$as_save_IFS
5575   if test -z "$ac_cv_path_EGREP"; then
5576     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5577   fi
5578 else
5579   ac_cv_path_EGREP=$EGREP
5580 fi
5581
5582    fi
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5585 $as_echo "$ac_cv_path_EGREP" >&6; }
5586  EGREP="$ac_cv_path_EGREP"
5587
5588
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5590 $as_echo_n "checking for fgrep... " >&6; }
5591 if test "${ac_cv_path_FGREP+set}" = set; then :
5592   $as_echo_n "(cached) " >&6
5593 else
5594   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5595    then ac_cv_path_FGREP="$GREP -F"
5596    else
5597      if test -z "$FGREP"; then
5598   ac_path_FGREP_found=false
5599   # Loop through the user's path and test for each of PROGNAME-LIST
5600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605     for ac_prog in fgrep; do
5606     for ac_exec_ext in '' $ac_executable_extensions; do
5607       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5608       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5609 # Check for GNU ac_path_FGREP and select it if it is found.
5610   # Check for GNU $ac_path_FGREP
5611 case `"$ac_path_FGREP" --version 2>&1` in
5612 *GNU*)
5613   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5614 *)
5615   ac_count=0
5616   $as_echo_n 0123456789 >"conftest.in"
5617   while :
5618   do
5619     cat "conftest.in" "conftest.in" >"conftest.tmp"
5620     mv "conftest.tmp" "conftest.in"
5621     cp "conftest.in" "conftest.nl"
5622     $as_echo 'FGREP' >> "conftest.nl"
5623     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5625     as_fn_arith $ac_count + 1 && ac_count=$as_val
5626     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5627       # Best one so far, save it but keep looking for a better one
5628       ac_cv_path_FGREP="$ac_path_FGREP"
5629       ac_path_FGREP_max=$ac_count
5630     fi
5631     # 10*(2^10) chars as input seems more than enough
5632     test $ac_count -gt 10 && break
5633   done
5634   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5635 esac
5636
5637       $ac_path_FGREP_found && break 3
5638     done
5639   done
5640   done
5641 IFS=$as_save_IFS
5642   if test -z "$ac_cv_path_FGREP"; then
5643     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5644   fi
5645 else
5646   ac_cv_path_FGREP=$FGREP
5647 fi
5648
5649    fi
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5652 $as_echo "$ac_cv_path_FGREP" >&6; }
5653  FGREP="$ac_cv_path_FGREP"
5654
5655
5656 test -z "$GREP" && GREP=grep
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676 # Check whether --with-gnu-ld was given.
5677 if test "${with_gnu_ld+set}" = set; then :
5678   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5679 else
5680   with_gnu_ld=no
5681 fi
5682
5683 ac_prog=ld
5684 if test "$GCC" = yes; then
5685   # Check if gcc -print-prog-name=ld gives a path.
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5687 $as_echo_n "checking for ld used by $CC... " >&6; }
5688   case $host in
5689   *-*-mingw*)
5690     # gcc leaves a trailing carriage return which upsets mingw
5691     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5692   *)
5693     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5694   esac
5695   case $ac_prog in
5696     # Accept absolute paths.
5697     [\\/]* | ?:[\\/]*)
5698       re_direlt='/[^/][^/]*/\.\./'
5699       # Canonicalize the pathname of ld
5700       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5701       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5702         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5703       done
5704       test -z "$LD" && LD="$ac_prog"
5705       ;;
5706   "")
5707     # If it fails, then pretend we aren't using GCC.
5708     ac_prog=ld
5709     ;;
5710   *)
5711     # If it is relative, then search for the first ld in PATH.
5712     with_gnu_ld=unknown
5713     ;;
5714   esac
5715 elif test "$with_gnu_ld" = yes; then
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5717 $as_echo_n "checking for GNU ld... " >&6; }
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5720 $as_echo_n "checking for non-GNU ld... " >&6; }
5721 fi
5722 if test "${lt_cv_path_LD+set}" = set; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   if test -z "$LD"; then
5726   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5727   for ac_dir in $PATH; do
5728     IFS="$lt_save_ifs"
5729     test -z "$ac_dir" && ac_dir=.
5730     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5731       lt_cv_path_LD="$ac_dir/$ac_prog"
5732       # Check to see if the program is GNU ld.  I'd rather use --version,
5733       # but apparently some variants of GNU ld only accept -v.
5734       # Break only if it was the GNU/non-GNU ld that we prefer.
5735       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5736       *GNU* | *'with BFD'*)
5737         test "$with_gnu_ld" != no && break
5738         ;;
5739       *)
5740         test "$with_gnu_ld" != yes && break
5741         ;;
5742       esac
5743     fi
5744   done
5745   IFS="$lt_save_ifs"
5746 else
5747   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5748 fi
5749 fi
5750
5751 LD="$lt_cv_path_LD"
5752 if test -n "$LD"; then
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5754 $as_echo "$LD" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5761 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5762 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5763   $as_echo_n "(cached) " >&6
5764 else
5765   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5766 case `$LD -v 2>&1 </dev/null` in
5767 *GNU* | *'with BFD'*)
5768   lt_cv_prog_gnu_ld=yes
5769   ;;
5770 *)
5771   lt_cv_prog_gnu_ld=no
5772   ;;
5773 esac
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5776 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5777 with_gnu_ld=$lt_cv_prog_gnu_ld
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5788 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5789 if test "${lt_cv_path_NM+set}" = set; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792   if test -n "$NM"; then
5793   # Let the user override the test.
5794   lt_cv_path_NM="$NM"
5795 else
5796   lt_nm_to_check="${ac_tool_prefix}nm"
5797   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5798     lt_nm_to_check="$lt_nm_to_check nm"
5799   fi
5800   for lt_tmp_nm in $lt_nm_to_check; do
5801     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5803       IFS="$lt_save_ifs"
5804       test -z "$ac_dir" && ac_dir=.
5805       tmp_nm="$ac_dir/$lt_tmp_nm"
5806       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5807         # Check to see if the nm accepts a BSD-compat flag.
5808         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5809         #   nm: unknown option "B" ignored
5810         # Tru64's nm complains that /dev/null is an invalid object file
5811         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5812         */dev/null* | *'Invalid file or object type'*)
5813           lt_cv_path_NM="$tmp_nm -B"
5814           break
5815           ;;
5816         *)
5817           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5818           */dev/null*)
5819             lt_cv_path_NM="$tmp_nm -p"
5820             break
5821             ;;
5822           *)
5823             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5824             continue # so that we can try to find one that supports BSD flags
5825             ;;
5826           esac
5827           ;;
5828         esac
5829       fi
5830     done
5831     IFS="$lt_save_ifs"
5832   done
5833   : ${lt_cv_path_NM=no}
5834 fi
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5837 $as_echo "$lt_cv_path_NM" >&6; }
5838 if test "$lt_cv_path_NM" != "no"; then
5839   NM="$lt_cv_path_NM"
5840 else
5841   # Didn't find any BSD compatible name lister, look for dumpbin.
5842   if test -n "$ac_tool_prefix"; then
5843   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5844   do
5845     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if test -n "$DUMPBIN"; then
5853   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860     for ac_exec_ext in '' $ac_executable_extensions; do
5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867   done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 DUMPBIN=$ac_cv_prog_DUMPBIN
5873 if test -n "$DUMPBIN"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5875 $as_echo "$DUMPBIN" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882     test -n "$DUMPBIN" && break
5883   done
5884 fi
5885 if test -z "$DUMPBIN"; then
5886   ac_ct_DUMPBIN=$DUMPBIN
5887   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5888 do
5889   # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5894   $as_echo_n "(cached) " >&6
5895 else
5896   if test -n "$ac_ct_DUMPBIN"; then
5897   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904     for ac_exec_ext in '' $ac_executable_extensions; do
5905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911   done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5917 if test -n "$ac_ct_DUMPBIN"; then
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5919 $as_echo "$ac_ct_DUMPBIN" >&6; }
5920 else
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925
5926   test -n "$ac_ct_DUMPBIN" && break
5927 done
5928
5929   if test "x$ac_ct_DUMPBIN" = x; then
5930     DUMPBIN=":"
5931   else
5932     case $cross_compiling:$ac_tool_warned in
5933 yes:)
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5937 esac
5938     DUMPBIN=$ac_ct_DUMPBIN
5939   fi
5940 fi
5941
5942
5943   if test "$DUMPBIN" != ":"; then
5944     NM="$DUMPBIN"
5945   fi
5946 fi
5947 test -z "$NM" && NM=nm
5948
5949
5950
5951
5952
5953
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5955 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5956 if test "${lt_cv_nm_interface+set}" = set; then :
5957   $as_echo_n "(cached) " >&6
5958 else
5959   lt_cv_nm_interface="BSD nm"
5960   echo "int some_variable = 0;" > conftest.$ac_ext
5961   (eval echo "\"\$as_me:5961: $ac_compile\"" >&5)
5962   (eval "$ac_compile" 2>conftest.err)
5963   cat conftest.err >&5
5964   (eval echo "\"\$as_me:5964: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5965   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5966   cat conftest.err >&5
5967   (eval echo "\"\$as_me:5967: output\"" >&5)
5968   cat conftest.out >&5
5969   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5970     lt_cv_nm_interface="MS dumpbin"
5971   fi
5972   rm -f conftest*
5973 fi
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5975 $as_echo "$lt_cv_nm_interface" >&6; }
5976
5977 # find the maximum length of command line arguments
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5979 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983     i=0
5984   teststring="ABCD"
5985
5986   case $build_os in
5987   msdosdjgpp*)
5988     # On DJGPP, this test can blow up pretty badly due to problems in libc
5989     # (any single argument exceeding 2000 bytes causes a buffer overrun
5990     # during glob expansion).  Even if it were fixed, the result of this
5991     # check would be larger than it should be.
5992     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5993     ;;
5994
5995   gnu*)
5996     # Under GNU Hurd, this test is not required because there is
5997     # no limit to the length of command line arguments.
5998     # Libtool will interpret -1 as no limit whatsoever
5999     lt_cv_sys_max_cmd_len=-1;
6000     ;;
6001
6002   cygwin* | mingw* | cegcc*)
6003     # On Win9x/ME, this test blows up -- it succeeds, but takes
6004     # about 5 minutes as the teststring grows exponentially.
6005     # Worse, since 9x/ME are not pre-emptively multitasking,
6006     # you end up with a "frozen" computer, even though with patience
6007     # the test eventually succeeds (with a max line length of 256k).
6008     # Instead, let's just punt: use the minimum linelength reported by
6009     # all of the supported platforms: 8192 (on NT/2K/XP).
6010     lt_cv_sys_max_cmd_len=8192;
6011     ;;
6012
6013   amigaos*)
6014     # On AmigaOS with pdksh, this test takes hours, literally.
6015     # So we just punt and use a minimum line length of 8192.
6016     lt_cv_sys_max_cmd_len=8192;
6017     ;;
6018
6019   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6020     # This has been around since 386BSD, at least.  Likely further.
6021     if test -x /sbin/sysctl; then
6022       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6023     elif test -x /usr/sbin/sysctl; then
6024       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6025     else
6026       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6027     fi
6028     # And add a safety zone
6029     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6030     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6031     ;;
6032
6033   interix*)
6034     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6035     lt_cv_sys_max_cmd_len=196608
6036     ;;
6037
6038   osf*)
6039     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6040     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6041     # nice to cause kernel panics so lets avoid the loop below.
6042     # First set a reasonable default.
6043     lt_cv_sys_max_cmd_len=16384
6044     #
6045     if test -x /sbin/sysconfig; then
6046       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6047         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6048       esac
6049     fi
6050     ;;
6051   sco3.2v5*)
6052     lt_cv_sys_max_cmd_len=102400
6053     ;;
6054   sysv5* | sco5v6* | sysv4.2uw2*)
6055     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6056     if test -n "$kargmax"; then
6057       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6058     else
6059       lt_cv_sys_max_cmd_len=32768
6060     fi
6061     ;;
6062   *)
6063     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6064     if test -n "$lt_cv_sys_max_cmd_len"; then
6065       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6067     else
6068       # Make teststring a little bigger before we do anything with it.
6069       # a 1K string should be a reasonable start.
6070       for i in 1 2 3 4 5 6 7 8 ; do
6071         teststring=$teststring$teststring
6072       done
6073       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6074       # If test is not a shell built-in, we'll probably end up computing a
6075       # maximum length that is only half of the actual maximum length, but
6076       # we can't tell.
6077       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6078                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6079               test $i != 17 # 1/2 MB should be enough
6080       do
6081         i=`expr $i + 1`
6082         teststring=$teststring$teststring
6083       done
6084       # Only check the string length outside the loop.
6085       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6086       teststring=
6087       # Add a significant safety factor because C++ compilers can tack on
6088       # massive amounts of additional arguments before passing them to the
6089       # linker.  It appears as though 1/2 is a usable value.
6090       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6091     fi
6092     ;;
6093   esac
6094
6095 fi
6096
6097 if test -n $lt_cv_sys_max_cmd_len ; then
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6099 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6100 else
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6102 $as_echo "none" >&6; }
6103 fi
6104 max_cmd_len=$lt_cv_sys_max_cmd_len
6105
6106
6107
6108
6109
6110
6111 : ${CP="cp -f"}
6112 : ${MV="mv -f"}
6113 : ${RM="rm -f"}
6114
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6116 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6117 # Try some XSI features
6118 xsi_shell=no
6119 ( _lt_dummy="a/b/c"
6120   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6121       = c,a/b,, \
6122     && eval 'test $(( 1 + 1 )) -eq 2 \
6123     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6124   && xsi_shell=yes
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6126 $as_echo "$xsi_shell" >&6; }
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6130 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6131 lt_shell_append=no
6132 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6133     >/dev/null 2>&1 \
6134   && lt_shell_append=yes
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6136 $as_echo "$lt_shell_append" >&6; }
6137
6138
6139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6140   lt_unset=unset
6141 else
6142   lt_unset=false
6143 fi
6144
6145
6146
6147
6148
6149 # test EBCDIC or ASCII
6150 case `echo X|tr X '\101'` in
6151  A) # ASCII based system
6152     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6153   lt_SP2NL='tr \040 \012'
6154   lt_NL2SP='tr \015\012 \040\040'
6155   ;;
6156  *) # EBCDIC based system
6157   lt_SP2NL='tr \100 \n'
6158   lt_NL2SP='tr \r\n \100\100'
6159   ;;
6160 esac
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6171 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6172 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6173   $as_echo_n "(cached) " >&6
6174 else
6175   lt_cv_ld_reload_flag='-r'
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6178 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6179 reload_flag=$lt_cv_ld_reload_flag
6180 case $reload_flag in
6181 "" | " "*) ;;
6182 *) reload_flag=" $reload_flag" ;;
6183 esac
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185 case $host_os in
6186   darwin*)
6187     if test "$GCC" = yes; then
6188       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6189     else
6190       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191     fi
6192     ;;
6193 esac
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 if test -n "$ac_tool_prefix"; then
6204   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6209   $as_echo_n "(cached) " >&6
6210 else
6211   if test -n "$OBJDUMP"; then
6212   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217   IFS=$as_save_IFS
6218   test -z "$as_dir" && as_dir=.
6219     for ac_exec_ext in '' $ac_executable_extensions; do
6220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223     break 2
6224   fi
6225 done
6226   done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 OBJDUMP=$ac_cv_prog_OBJDUMP
6232 if test -n "$OBJDUMP"; then
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6234 $as_echo "$OBJDUMP" >&6; }
6235 else
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239
6240
6241 fi
6242 if test -z "$ac_cv_prog_OBJDUMP"; then
6243   ac_ct_OBJDUMP=$OBJDUMP
6244   # Extract the first word of "objdump", so it can be a program name with args.
6245 set dummy objdump; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   if test -n "$ac_ct_OBJDUMP"; then
6252   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259     for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266   done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6272 if test -n "$ac_ct_OBJDUMP"; then
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6274 $as_echo "$ac_ct_OBJDUMP" >&6; }
6275 else
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280   if test "x$ac_ct_OBJDUMP" = x; then
6281     OBJDUMP="false"
6282   else
6283     case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289     OBJDUMP=$ac_ct_OBJDUMP
6290   fi
6291 else
6292   OBJDUMP="$ac_cv_prog_OBJDUMP"
6293 fi
6294
6295 test -z "$OBJDUMP" && OBJDUMP=objdump
6296
6297
6298
6299
6300
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6303 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6304 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6305   $as_echo_n "(cached) " >&6
6306 else
6307   lt_cv_file_magic_cmd='$MAGIC_CMD'
6308 lt_cv_file_magic_test_file=
6309 lt_cv_deplibs_check_method='unknown'
6310 # Need to set the preceding variable on all platforms that support
6311 # interlibrary dependencies.
6312 # 'none' -- dependencies not supported.
6313 # `unknown' -- same as none, but documents that we really don't know.
6314 # 'pass_all' -- all dependencies passed with no checks.
6315 # 'test_compile' -- check by making test program.
6316 # 'file_magic [[regex]]' -- check by looking for files in library path
6317 # which responds to the $file_magic_cmd with a given extended regex.
6318 # If you have `file' or equivalent on your system and you're not sure
6319 # whether `pass_all' will *always* work, you probably want this one.
6320
6321 case $host_os in
6322 aix[4-9]*)
6323   lt_cv_deplibs_check_method=pass_all
6324   ;;
6325
6326 beos*)
6327   lt_cv_deplibs_check_method=pass_all
6328   ;;
6329
6330 bsdi[45]*)
6331   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6332   lt_cv_file_magic_cmd='/usr/bin/file -L'
6333   lt_cv_file_magic_test_file=/shlib/libc.so
6334   ;;
6335
6336 cygwin*)
6337   # func_win32_libid is a shell function defined in ltmain.sh
6338   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6339   lt_cv_file_magic_cmd='func_win32_libid'
6340   ;;
6341
6342 mingw* | pw32*)
6343   # Base MSYS/MinGW do not provide the 'file' command needed by
6344   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6345   # unless we find 'file', for example because we are cross-compiling.
6346   if ( file / ) >/dev/null 2>&1; then
6347     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6348     lt_cv_file_magic_cmd='func_win32_libid'
6349   else
6350     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6351     lt_cv_file_magic_cmd='$OBJDUMP -f'
6352   fi
6353   ;;
6354
6355 cegcc)
6356   # use the weaker test based on 'objdump'. See mingw*.
6357   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6358   lt_cv_file_magic_cmd='$OBJDUMP -f'
6359   ;;
6360
6361 darwin* | rhapsody*)
6362   lt_cv_deplibs_check_method=pass_all
6363   ;;
6364
6365 freebsd* | dragonfly*)
6366   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6367     case $host_cpu in
6368     i*86 )
6369       # Not sure whether the presence of OpenBSD here was a mistake.
6370       # Let's accept both of them until this is cleared up.
6371       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6372       lt_cv_file_magic_cmd=/usr/bin/file
6373       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6374       ;;
6375     esac
6376   else
6377     lt_cv_deplibs_check_method=pass_all
6378   fi
6379   ;;
6380
6381 gnu*)
6382   lt_cv_deplibs_check_method=pass_all
6383   ;;
6384
6385 hpux10.20* | hpux11*)
6386   lt_cv_file_magic_cmd=/usr/bin/file
6387   case $host_cpu in
6388   ia64*)
6389     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6390     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6391     ;;
6392   hppa*64*)
6393     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]'
6394     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6395     ;;
6396   *)
6397     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6398     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6399     ;;
6400   esac
6401   ;;
6402
6403 interix[3-9]*)
6404   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6405   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6406   ;;
6407
6408 irix5* | irix6* | nonstopux*)
6409   case $LD in
6410   *-32|*"-32 ") libmagic=32-bit;;
6411   *-n32|*"-n32 ") libmagic=N32;;
6412   *-64|*"-64 ") libmagic=64-bit;;
6413   *) libmagic=never-match;;
6414   esac
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417
6418 # This must be Linux ELF.
6419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6420   lt_cv_deplibs_check_method=pass_all
6421   ;;
6422
6423 netbsd* | netbsdelf*-gnu)
6424   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6425     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6426   else
6427     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6428   fi
6429   ;;
6430
6431 newos6*)
6432   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6433   lt_cv_file_magic_cmd=/usr/bin/file
6434   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6435   ;;
6436
6437 *nto* | *qnx*)
6438   lt_cv_deplibs_check_method=pass_all
6439   ;;
6440
6441 openbsd*)
6442   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6443     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6444   else
6445     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6446   fi
6447   ;;
6448
6449 osf3* | osf4* | osf5*)
6450   lt_cv_deplibs_check_method=pass_all
6451   ;;
6452
6453 rdos*)
6454   lt_cv_deplibs_check_method=pass_all
6455   ;;
6456
6457 solaris*)
6458   lt_cv_deplibs_check_method=pass_all
6459   ;;
6460
6461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6462   lt_cv_deplibs_check_method=pass_all
6463   ;;
6464
6465 sysv4 | sysv4.3*)
6466   case $host_vendor in
6467   motorola)
6468     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]'
6469     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6470     ;;
6471   ncr)
6472     lt_cv_deplibs_check_method=pass_all
6473     ;;
6474   sequent)
6475     lt_cv_file_magic_cmd='/bin/file'
6476     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6477     ;;
6478   sni)
6479     lt_cv_file_magic_cmd='/bin/file'
6480     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6481     lt_cv_file_magic_test_file=/lib/libc.so
6482     ;;
6483   siemens)
6484     lt_cv_deplibs_check_method=pass_all
6485     ;;
6486   pc)
6487     lt_cv_deplibs_check_method=pass_all
6488     ;;
6489   esac
6490   ;;
6491
6492 tpf*)
6493   lt_cv_deplibs_check_method=pass_all
6494   ;;
6495 esac
6496
6497 fi
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6499 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6500 file_magic_cmd=$lt_cv_file_magic_cmd
6501 deplibs_check_method=$lt_cv_deplibs_check_method
6502 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515 if test -n "$ac_tool_prefix"; then
6516   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6517 set dummy ${ac_tool_prefix}ar; ac_word=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if test "${ac_cv_prog_AR+set}" = set; then :
6521   $as_echo_n "(cached) " >&6
6522 else
6523   if test -n "$AR"; then
6524   ac_cv_prog_AR="$AR" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531     for ac_exec_ext in '' $ac_executable_extensions; do
6532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533     ac_cv_prog_AR="${ac_tool_prefix}ar"
6534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535     break 2
6536   fi
6537 done
6538   done
6539 IFS=$as_save_IFS
6540
6541 fi
6542 fi
6543 AR=$ac_cv_prog_AR
6544 if test -n "$AR"; then
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6546 $as_echo "$AR" >&6; }
6547 else
6548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6550 fi
6551
6552
6553 fi
6554 if test -z "$ac_cv_prog_AR"; then
6555   ac_ct_AR=$AR
6556   # Extract the first word of "ar", so it can be a program name with args.
6557 set dummy ar; ac_word=$2
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 $as_echo_n "checking for $ac_word... " >&6; }
6560 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6561   $as_echo_n "(cached) " >&6
6562 else
6563   if test -n "$ac_ct_AR"; then
6564   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569   IFS=$as_save_IFS
6570   test -z "$as_dir" && as_dir=.
6571     for ac_exec_ext in '' $ac_executable_extensions; do
6572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573     ac_cv_prog_ac_ct_AR="ar"
6574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6575     break 2
6576   fi
6577 done
6578   done
6579 IFS=$as_save_IFS
6580
6581 fi
6582 fi
6583 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6584 if test -n "$ac_ct_AR"; then
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6586 $as_echo "$ac_ct_AR" >&6; }
6587 else
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6590 fi
6591
6592   if test "x$ac_ct_AR" = x; then
6593     AR="false"
6594   else
6595     case $cross_compiling:$ac_tool_warned in
6596 yes:)
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599 ac_tool_warned=yes ;;
6600 esac
6601     AR=$ac_ct_AR
6602   fi
6603 else
6604   AR="$ac_cv_prog_AR"
6605 fi
6606
6607 test -z "$AR" && AR=ar
6608 test -z "$AR_FLAGS" && AR_FLAGS=cru
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620 if test -n "$ac_tool_prefix"; then
6621   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}strip; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if test "${ac_cv_prog_STRIP+set}" = set; then :
6626   $as_echo_n "(cached) " >&6
6627 else
6628   if test -n "$STRIP"; then
6629   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636     for ac_exec_ext in '' $ac_executable_extensions; do
6637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643   done
6644 IFS=$as_save_IFS
6645
6646 fi
6647 fi
6648 STRIP=$ac_cv_prog_STRIP
6649 if test -n "$STRIP"; then
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6651 $as_echo "$STRIP" >&6; }
6652 else
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6655 fi
6656
6657
6658 fi
6659 if test -z "$ac_cv_prog_STRIP"; then
6660   ac_ct_STRIP=$STRIP
6661   # Extract the first word of "strip", so it can be a program name with args.
6662 set dummy strip; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6666   $as_echo_n "(cached) " >&6
6667 else
6668   if test -n "$ac_ct_STRIP"; then
6669   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   test -z "$as_dir" && as_dir=.
6676     for ac_exec_ext in '' $ac_executable_extensions; do
6677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678     ac_cv_prog_ac_ct_STRIP="strip"
6679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680     break 2
6681   fi
6682 done
6683   done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6689 if test -n "$ac_ct_STRIP"; then
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6691 $as_echo "$ac_ct_STRIP" >&6; }
6692 else
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6695 fi
6696
6697   if test "x$ac_ct_STRIP" = x; then
6698     STRIP=":"
6699   else
6700     case $cross_compiling:$ac_tool_warned in
6701 yes:)
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6704 ac_tool_warned=yes ;;
6705 esac
6706     STRIP=$ac_ct_STRIP
6707   fi
6708 else
6709   STRIP="$ac_cv_prog_STRIP"
6710 fi
6711
6712 test -z "$STRIP" && STRIP=:
6713
6714
6715
6716
6717
6718
6719 if test -n "$ac_tool_prefix"; then
6720   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6725   $as_echo_n "(cached) " >&6
6726 else
6727   if test -n "$RANLIB"; then
6728   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735     for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742   done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 RANLIB=$ac_cv_prog_RANLIB
6748 if test -n "$RANLIB"; then
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6750 $as_echo "$RANLIB" >&6; }
6751 else
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756
6757 fi
6758 if test -z "$ac_cv_prog_RANLIB"; then
6759   ac_ct_RANLIB=$RANLIB
6760   # Extract the first word of "ranlib", so it can be a program name with args.
6761 set dummy ranlib; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   if test -n "$ac_ct_RANLIB"; then
6768   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   test -z "$as_dir" && as_dir=.
6775     for ac_exec_ext in '' $ac_executable_extensions; do
6776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777     ac_cv_prog_ac_ct_RANLIB="ranlib"
6778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780   fi
6781 done
6782   done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6788 if test -n "$ac_ct_RANLIB"; then
6789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6790 $as_echo "$ac_ct_RANLIB" >&6; }
6791 else
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795
6796   if test "x$ac_ct_RANLIB" = x; then
6797     RANLIB=":"
6798   else
6799     case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805     RANLIB=$ac_ct_RANLIB
6806   fi
6807 else
6808   RANLIB="$ac_cv_prog_RANLIB"
6809 fi
6810
6811 test -z "$RANLIB" && RANLIB=:
6812
6813
6814
6815
6816
6817
6818 # Determine commands to create old-style static archives.
6819 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6820 old_postinstall_cmds='chmod 644 $oldlib'
6821 old_postuninstall_cmds=
6822
6823 if test -n "$RANLIB"; then
6824   case $host_os in
6825   openbsd*)
6826     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6827     ;;
6828   *)
6829     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6830     ;;
6831   esac
6832   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6833 fi
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 # If no C compiler was specified, use CC.
6869 LTCC=${LTCC-"$CC"}
6870
6871 # If no C compiler flags were specified, use CFLAGS.
6872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6873
6874 # Allow CC to be a program name with arguments.
6875 compiler=$CC
6876
6877
6878 # Check for command to grab the raw symbol name followed by C symbol from nm.
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6880 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6881 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884
6885 # These are sane defaults that work on at least a few old systems.
6886 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6887
6888 # Character class describing NM global symbol codes.
6889 symcode='[BCDEGRST]'
6890
6891 # Regexp to match symbols that can be accessed directly from C.
6892 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6893
6894 # Define system-specific variables.
6895 case $host_os in
6896 aix*)
6897   symcode='[BCDT]'
6898   ;;
6899 cygwin* | mingw* | pw32* | cegcc*)
6900   symcode='[ABCDGISTW]'
6901   ;;
6902 hpux*)
6903   if test "$host_cpu" = ia64; then
6904     symcode='[ABCDEGRST]'
6905   fi
6906   ;;
6907 irix* | nonstopux*)
6908   symcode='[BCDEGRST]'
6909   ;;
6910 osf*)
6911   symcode='[BCDEGQRST]'
6912   ;;
6913 solaris*)
6914   symcode='[BDRT]'
6915   ;;
6916 sco3.2v5*)
6917   symcode='[DT]'
6918   ;;
6919 sysv4.2uw2*)
6920   symcode='[DT]'
6921   ;;
6922 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6923   symcode='[ABDT]'
6924   ;;
6925 sysv4)
6926   symcode='[DFNSTU]'
6927   ;;
6928 esac
6929
6930 # If we're using GNU nm, then use its standard symbol codes.
6931 case `$NM -V 2>&1` in
6932 *GNU* | *'with BFD'*)
6933   symcode='[ABCDGIRSTW]' ;;
6934 esac
6935
6936 # Transform an extracted symbol line into a proper C declaration.
6937 # Some systems (esp. on ia64) link data and code symbols differently,
6938 # so use this general approach.
6939 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6940
6941 # Transform an extracted symbol line into symbol name and symbol address
6942 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6943 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'"
6944
6945 # Handle CRLF in mingw tool chain
6946 opt_cr=
6947 case $build_os in
6948 mingw*)
6949   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6950   ;;
6951 esac
6952
6953 # Try without a prefix underscore, then with it.
6954 for ac_symprfx in "" "_"; do
6955
6956   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6957   symxfrm="\\1 $ac_symprfx\\2 \\2"
6958
6959   # Write the raw and C identifiers.
6960   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6961     # Fake it for dumpbin and say T for any non-static function
6962     # and D for any global variable.
6963     # Also find C++ and __fastcall symbols from MSVC++,
6964     # which start with @ or ?.
6965     lt_cv_sys_global_symbol_pipe="$AWK '"\
6966 "     {last_section=section; section=\$ 3};"\
6967 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6968 "     \$ 0!~/External *\|/{next};"\
6969 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6970 "     {if(hide[section]) next};"\
6971 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6972 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6973 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6974 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6975 "     ' prfx=^$ac_symprfx"
6976   else
6977     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6978   fi
6979
6980   # Check to see that the pipe works correctly.
6981   pipe_works=no
6982
6983   rm -f conftest*
6984   cat > conftest.$ac_ext <<_LT_EOF
6985 #ifdef __cplusplus
6986 extern "C" {
6987 #endif
6988 char nm_test_var;
6989 void nm_test_func(void);
6990 void nm_test_func(void){}
6991 #ifdef __cplusplus
6992 }
6993 #endif
6994 int main(){nm_test_var='a';nm_test_func();return(0);}
6995 _LT_EOF
6996
6997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6998   (eval $ac_compile) 2>&5
6999   ac_status=$?
7000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001   test $ac_status = 0; }; then
7002     # Now try to grab the symbols.
7003     nlist=conftest.nm
7004     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7005   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7006   ac_status=$?
7007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008   test $ac_status = 0; } && test -s "$nlist"; then
7009       # Try sorting and uniquifying the output.
7010       if sort "$nlist" | uniq > "$nlist"T; then
7011         mv -f "$nlist"T "$nlist"
7012       else
7013         rm -f "$nlist"T
7014       fi
7015
7016       # Make sure that we snagged all the symbols we need.
7017       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7018         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7019           cat <<_LT_EOF > conftest.$ac_ext
7020 #ifdef __cplusplus
7021 extern "C" {
7022 #endif
7023
7024 _LT_EOF
7025           # Now generate the symbol file.
7026           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7027
7028           cat <<_LT_EOF >> conftest.$ac_ext
7029
7030 /* The mapping between symbol names and symbols.  */
7031 const struct {
7032   const char *name;
7033   void       *address;
7034 }
7035 lt__PROGRAM__LTX_preloaded_symbols[] =
7036 {
7037   { "@PROGRAM@", (void *) 0 },
7038 _LT_EOF
7039           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7040           cat <<\_LT_EOF >> conftest.$ac_ext
7041   {0, (void *) 0}
7042 };
7043
7044 /* This works around a problem in FreeBSD linker */
7045 #ifdef FREEBSD_WORKAROUND
7046 static const void *lt_preloaded_setup() {
7047   return lt__PROGRAM__LTX_preloaded_symbols;
7048 }
7049 #endif
7050
7051 #ifdef __cplusplus
7052 }
7053 #endif
7054 _LT_EOF
7055           # Now try linking the two files.
7056           mv conftest.$ac_objext conftstm.$ac_objext
7057           lt_save_LIBS="$LIBS"
7058           lt_save_CFLAGS="$CFLAGS"
7059           LIBS="conftstm.$ac_objext"
7060           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7061           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7062   (eval $ac_link) 2>&5
7063   ac_status=$?
7064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7066             pipe_works=yes
7067           fi
7068           LIBS="$lt_save_LIBS"
7069           CFLAGS="$lt_save_CFLAGS"
7070         else
7071           echo "cannot find nm_test_func in $nlist" >&5
7072         fi
7073       else
7074         echo "cannot find nm_test_var in $nlist" >&5
7075       fi
7076     else
7077       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7078     fi
7079   else
7080     echo "$progname: failed program was:" >&5
7081     cat conftest.$ac_ext >&5
7082   fi
7083   rm -rf conftest* conftst*
7084
7085   # Do not use the global_symbol_pipe unless it works.
7086   if test "$pipe_works" = yes; then
7087     break
7088   else
7089     lt_cv_sys_global_symbol_pipe=
7090   fi
7091 done
7092
7093 fi
7094
7095 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7096   lt_cv_sys_global_symbol_to_cdecl=
7097 fi
7098 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7100 $as_echo "failed" >&6; }
7101 else
7102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7103 $as_echo "ok" >&6; }
7104 fi
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127 # Check whether --enable-libtool-lock was given.
7128 if test "${enable_libtool_lock+set}" = set; then :
7129   enableval=$enable_libtool_lock;
7130 fi
7131
7132 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7133
7134 # Some flags need to be propagated to the compiler or linker for good
7135 # libtool support.
7136 case $host in
7137 ia64-*-hpux*)
7138   # Find out which ABI we are using.
7139   echo 'int i;' > conftest.$ac_ext
7140   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7141   (eval $ac_compile) 2>&5
7142   ac_status=$?
7143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144   test $ac_status = 0; }; then
7145     case `/usr/bin/file conftest.$ac_objext` in
7146       *ELF-32*)
7147         HPUX_IA64_MODE="32"
7148         ;;
7149       *ELF-64*)
7150         HPUX_IA64_MODE="64"
7151         ;;
7152     esac
7153   fi
7154   rm -rf conftest*
7155   ;;
7156 *-*-irix6*)
7157   # Find out which ABI we are using.
7158   echo '#line 7158 "configure"' > conftest.$ac_ext
7159   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7160   (eval $ac_compile) 2>&5
7161   ac_status=$?
7162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163   test $ac_status = 0; }; then
7164     if test "$lt_cv_prog_gnu_ld" = yes; then
7165       case `/usr/bin/file conftest.$ac_objext` in
7166         *32-bit*)
7167           LD="${LD-ld} -melf32bsmip"
7168           ;;
7169         *N32*)
7170           LD="${LD-ld} -melf32bmipn32"
7171           ;;
7172         *64-bit*)
7173           LD="${LD-ld} -melf64bmip"
7174         ;;
7175       esac
7176     else
7177       case `/usr/bin/file conftest.$ac_objext` in
7178         *32-bit*)
7179           LD="${LD-ld} -32"
7180           ;;
7181         *N32*)
7182           LD="${LD-ld} -n32"
7183           ;;
7184         *64-bit*)
7185           LD="${LD-ld} -64"
7186           ;;
7187       esac
7188     fi
7189   fi
7190   rm -rf conftest*
7191   ;;
7192
7193 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7194 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7195   # Find out which ABI we are using.
7196   echo 'int i;' > conftest.$ac_ext
7197   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198   (eval $ac_compile) 2>&5
7199   ac_status=$?
7200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201   test $ac_status = 0; }; then
7202     case `/usr/bin/file conftest.o` in
7203       *32-bit*)
7204         case $host in
7205           x86_64-*kfreebsd*-gnu)
7206             LD="${LD-ld} -m elf_i386_fbsd"
7207             ;;
7208           x86_64-*linux*)
7209             LD="${LD-ld} -m elf_i386"
7210             ;;
7211           ppc64-*linux*|powerpc64-*linux*)
7212             LD="${LD-ld} -m elf32ppclinux"
7213             ;;
7214           s390x-*linux*)
7215             LD="${LD-ld} -m elf_s390"
7216             ;;
7217           sparc64-*linux*)
7218             LD="${LD-ld} -m elf32_sparc"
7219             ;;
7220         esac
7221         ;;
7222       *64-bit*)
7223         case $host in
7224           x86_64-*kfreebsd*-gnu)
7225             LD="${LD-ld} -m elf_x86_64_fbsd"
7226             ;;
7227           x86_64-*linux*)
7228             LD="${LD-ld} -m elf_x86_64"
7229             ;;
7230           ppc*-*linux*|powerpc*-*linux*)
7231             LD="${LD-ld} -m elf64ppc"
7232             ;;
7233           s390*-*linux*|s390*-*tpf*)
7234             LD="${LD-ld} -m elf64_s390"
7235             ;;
7236           sparc*-*linux*)
7237             LD="${LD-ld} -m elf64_sparc"
7238             ;;
7239         esac
7240         ;;
7241     esac
7242   fi
7243   rm -rf conftest*
7244   ;;
7245
7246 *-*-sco3.2v5*)
7247   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7248   SAVE_CFLAGS="$CFLAGS"
7249   CFLAGS="$CFLAGS -belf"
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7251 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7252 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   ac_ext=c
7256 ac_cpp='$CPP $CPPFLAGS'
7257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7260
7261      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h.  */
7263
7264 int
7265 main ()
7266 {
7267
7268   ;
7269   return 0;
7270 }
7271 _ACEOF
7272 if ac_fn_c_try_link "$LINENO"; then :
7273   lt_cv_cc_needs_belf=yes
7274 else
7275   lt_cv_cc_needs_belf=no
7276 fi
7277 rm -f core conftest.err conftest.$ac_objext \
7278     conftest$ac_exeext conftest.$ac_ext
7279      ac_ext=c
7280 ac_cpp='$CPP $CPPFLAGS'
7281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7284
7285 fi
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7287 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7288   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7289     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7290     CFLAGS="$SAVE_CFLAGS"
7291   fi
7292   ;;
7293 sparc*-*solaris*)
7294   # Find out which ABI we are using.
7295   echo 'int i;' > conftest.$ac_ext
7296   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7297   (eval $ac_compile) 2>&5
7298   ac_status=$?
7299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300   test $ac_status = 0; }; then
7301     case `/usr/bin/file conftest.o` in
7302     *64-bit*)
7303       case $lt_cv_prog_gnu_ld in
7304       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7305       *)
7306         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7307           LD="${LD-ld} -64"
7308         fi
7309         ;;
7310       esac
7311       ;;
7312     esac
7313   fi
7314   rm -rf conftest*
7315   ;;
7316 esac
7317
7318 need_locks="$enable_libtool_lock"
7319
7320
7321   case $host_os in
7322     rhapsody* | darwin*)
7323     if test -n "$ac_tool_prefix"; then
7324   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -n "$DSYMUTIL"; then
7332   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339     for ac_exec_ext in '' $ac_executable_extensions; do
7340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346   done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7352 if test -n "$DSYMUTIL"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7354 $as_echo "$DSYMUTIL" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361 fi
7362 if test -z "$ac_cv_prog_DSYMUTIL"; then
7363   ac_ct_DSYMUTIL=$DSYMUTIL
7364   # Extract the first word of "dsymutil", so it can be a program name with args.
7365 set dummy dsymutil; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   if test -n "$ac_ct_DSYMUTIL"; then
7372   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379     for ac_exec_ext in '' $ac_executable_extensions; do
7380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386   done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7392 if test -n "$ac_ct_DSYMUTIL"; then
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7394 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7395 else
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400   if test "x$ac_ct_DSYMUTIL" = x; then
7401     DSYMUTIL=":"
7402   else
7403     case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409     DSYMUTIL=$ac_ct_DSYMUTIL
7410   fi
7411 else
7412   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7413 fi
7414
7415     if test -n "$ac_tool_prefix"; then
7416   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   if test -n "$NMEDIT"; then
7424   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431     for ac_exec_ext in '' $ac_executable_extensions; do
7432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438   done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 NMEDIT=$ac_cv_prog_NMEDIT
7444 if test -n "$NMEDIT"; then
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7446 $as_echo "$NMEDIT" >&6; }
7447 else
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452
7453 fi
7454 if test -z "$ac_cv_prog_NMEDIT"; then
7455   ac_ct_NMEDIT=$NMEDIT
7456   # Extract the first word of "nmedit", so it can be a program name with args.
7457 set dummy nmedit; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   if test -n "$ac_ct_NMEDIT"; then
7464   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471     for ac_exec_ext in '' $ac_executable_extensions; do
7472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478   done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7484 if test -n "$ac_ct_NMEDIT"; then
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7486 $as_echo "$ac_ct_NMEDIT" >&6; }
7487 else
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492   if test "x$ac_ct_NMEDIT" = x; then
7493     NMEDIT=":"
7494   else
7495     case $cross_compiling:$ac_tool_warned in
7496 yes:)
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499 ac_tool_warned=yes ;;
7500 esac
7501     NMEDIT=$ac_ct_NMEDIT
7502   fi
7503 else
7504   NMEDIT="$ac_cv_prog_NMEDIT"
7505 fi
7506
7507     if test -n "$ac_tool_prefix"; then
7508   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if test "${ac_cv_prog_LIPO+set}" = set; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   if test -n "$LIPO"; then
7516   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523     for ac_exec_ext in '' $ac_executable_extensions; do
7524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530   done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 LIPO=$ac_cv_prog_LIPO
7536 if test -n "$LIPO"; then
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7538 $as_echo "$LIPO" >&6; }
7539 else
7540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7542 fi
7543
7544
7545 fi
7546 if test -z "$ac_cv_prog_LIPO"; then
7547   ac_ct_LIPO=$LIPO
7548   # Extract the first word of "lipo", so it can be a program name with args.
7549 set dummy lipo; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   if test -n "$ac_ct_LIPO"; then
7556   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563     for ac_exec_ext in '' $ac_executable_extensions; do
7564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565     ac_cv_prog_ac_ct_LIPO="lipo"
7566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570   done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7576 if test -n "$ac_ct_LIPO"; then
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7578 $as_echo "$ac_ct_LIPO" >&6; }
7579 else
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7582 fi
7583
7584   if test "x$ac_ct_LIPO" = x; then
7585     LIPO=":"
7586   else
7587     case $cross_compiling:$ac_tool_warned in
7588 yes:)
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7592 esac
7593     LIPO=$ac_ct_LIPO
7594   fi
7595 else
7596   LIPO="$ac_cv_prog_LIPO"
7597 fi
7598
7599     if test -n "$ac_tool_prefix"; then
7600   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7601 set dummy ${ac_tool_prefix}otool; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   if test -n "$OTOOL"; then
7608   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613   IFS=$as_save_IFS
7614   test -z "$as_dir" && as_dir=.
7615     for ac_exec_ext in '' $ac_executable_extensions; do
7616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619     break 2
7620   fi
7621 done
7622   done
7623 IFS=$as_save_IFS
7624
7625 fi
7626 fi
7627 OTOOL=$ac_cv_prog_OTOOL
7628 if test -n "$OTOOL"; then
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7630 $as_echo "$OTOOL" >&6; }
7631 else
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636
7637 fi
7638 if test -z "$ac_cv_prog_OTOOL"; then
7639   ac_ct_OTOOL=$OTOOL
7640   # Extract the first word of "otool", so it can be a program name with args.
7641 set dummy otool; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7645   $as_echo_n "(cached) " >&6
7646 else
7647   if test -n "$ac_ct_OTOOL"; then
7648   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655     for ac_exec_ext in '' $ac_executable_extensions; do
7656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657     ac_cv_prog_ac_ct_OTOOL="otool"
7658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662   done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7668 if test -n "$ac_ct_OTOOL"; then
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7670 $as_echo "$ac_ct_OTOOL" >&6; }
7671 else
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7674 fi
7675
7676   if test "x$ac_ct_OTOOL" = x; then
7677     OTOOL=":"
7678   else
7679     case $cross_compiling:$ac_tool_warned in
7680 yes:)
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7683 ac_tool_warned=yes ;;
7684 esac
7685     OTOOL=$ac_ct_OTOOL
7686   fi
7687 else
7688   OTOOL="$ac_cv_prog_OTOOL"
7689 fi
7690
7691     if test -n "$ac_tool_prefix"; then
7692   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   if test -n "$OTOOL64"; then
7700   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707     for ac_exec_ext in '' $ac_executable_extensions; do
7708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714   done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 OTOOL64=$ac_cv_prog_OTOOL64
7720 if test -n "$OTOOL64"; then
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7722 $as_echo "$OTOOL64" >&6; }
7723 else
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729 fi
7730 if test -z "$ac_cv_prog_OTOOL64"; then
7731   ac_ct_OTOOL64=$OTOOL64
7732   # Extract the first word of "otool64", so it can be a program name with args.
7733 set dummy otool64; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   if test -n "$ac_ct_OTOOL64"; then
7740   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747     for ac_exec_ext in '' $ac_executable_extensions; do
7748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749     ac_cv_prog_ac_ct_OTOOL64="otool64"
7750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754   done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7760 if test -n "$ac_ct_OTOOL64"; then
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7762 $as_echo "$ac_ct_OTOOL64" >&6; }
7763 else
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768   if test "x$ac_ct_OTOOL64" = x; then
7769     OTOOL64=":"
7770   else
7771     case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777     OTOOL64=$ac_ct_OTOOL64
7778   fi
7779 else
7780   OTOOL64="$ac_cv_prog_OTOOL64"
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7810 $as_echo_n "checking for -single_module linker flag... " >&6; }
7811 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814   lt_cv_apple_cc_single_mod=no
7815       if test -z "${LT_MULTI_MODULE}"; then
7816         # By default we will add the -single_module flag. You can override
7817         # by either setting the environment variable LT_MULTI_MODULE
7818         # non-empty at configure time, or by adding -multi_module to the
7819         # link flags.
7820         rm -rf libconftest.dylib*
7821         echo "int foo(void){return 1;}" > conftest.c
7822         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7823 -dynamiclib -Wl,-single_module conftest.c" >&5
7824         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7825           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7826         _lt_result=$?
7827         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7828           lt_cv_apple_cc_single_mod=yes
7829         else
7830           cat conftest.err >&5
7831         fi
7832         rm -rf libconftest.dylib*
7833         rm -f conftest.*
7834       fi
7835 fi
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7837 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7839 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7840 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7841   $as_echo_n "(cached) " >&6
7842 else
7843   lt_cv_ld_exported_symbols_list=no
7844       save_LDFLAGS=$LDFLAGS
7845       echo "_main" > conftest.sym
7846       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7847       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h.  */
7849
7850 int
7851 main ()
7852 {
7853
7854   ;
7855   return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_link "$LINENO"; then :
7859   lt_cv_ld_exported_symbols_list=yes
7860 else
7861   lt_cv_ld_exported_symbols_list=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext \
7864     conftest$ac_exeext conftest.$ac_ext
7865         LDFLAGS="$save_LDFLAGS"
7866
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7869 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7870     case $host_os in
7871     rhapsody* | darwin1.[012])
7872       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7873     darwin1.*)
7874       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7875     darwin*) # darwin 5.x on
7876       # if running on 10.5 or later, the deployment target defaults
7877       # to the OS version, if on x86, and 10.4, the deployment
7878       # target defaults to 10.4. Don't you love it?
7879       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7880         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7881           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7882         10.[012]*)
7883           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7884         10.*)
7885           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7886       esac
7887     ;;
7888   esac
7889     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7890       _lt_dar_single_mod='$single_module'
7891     fi
7892     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7893       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7894     else
7895       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7896     fi
7897     if test "$DSYMUTIL" != ":"; then
7898       _lt_dsymutil='~$DSYMUTIL $lib || :'
7899     else
7900       _lt_dsymutil=
7901     fi
7902     ;;
7903   esac
7904
7905 ac_ext=c
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7911 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7912 # On Suns, sometimes $CPP names a directory.
7913 if test -n "$CPP" && test -d "$CPP"; then
7914   CPP=
7915 fi
7916 if test -z "$CPP"; then
7917   if test "${ac_cv_prog_CPP+set}" = set; then :
7918   $as_echo_n "(cached) " >&6
7919 else
7920       # Double quotes because CPP needs to be expanded
7921     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7922     do
7923       ac_preproc_ok=false
7924 for ac_c_preproc_warn_flag in '' yes
7925 do
7926   # Use a header file that comes with gcc, so configuring glibc
7927   # with a fresh cross-compiler works.
7928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7929   # <limits.h> exists even on freestanding compilers.
7930   # On the NeXT, cc -E runs the code through the compiler's parser,
7931   # not just through cpp. "Syntax error" is here to catch this case.
7932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h.  */
7934 #ifdef __STDC__
7935 # include <limits.h>
7936 #else
7937 # include <assert.h>
7938 #endif
7939                      Syntax error
7940 _ACEOF
7941 if ac_fn_c_try_cpp "$LINENO"; then :
7942
7943 else
7944   # Broken: fails on valid input.
7945 continue
7946 fi
7947 rm -f conftest.err conftest.$ac_ext
7948
7949   # OK, works on sane cases.  Now check whether nonexistent headers
7950   # can be detected and how.
7951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h.  */
7953 #include <ac_nonexistent.h>
7954 _ACEOF
7955 if ac_fn_c_try_cpp "$LINENO"; then :
7956   # Broken: success on invalid input.
7957 continue
7958 else
7959   # Passes both tests.
7960 ac_preproc_ok=:
7961 break
7962 fi
7963 rm -f conftest.err conftest.$ac_ext
7964
7965 done
7966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7967 rm -f conftest.err conftest.$ac_ext
7968 if $ac_preproc_ok; then :
7969   break
7970 fi
7971
7972     done
7973     ac_cv_prog_CPP=$CPP
7974
7975 fi
7976   CPP=$ac_cv_prog_CPP
7977 else
7978   ac_cv_prog_CPP=$CPP
7979 fi
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7981 $as_echo "$CPP" >&6; }
7982 ac_preproc_ok=false
7983 for ac_c_preproc_warn_flag in '' yes
7984 do
7985   # Use a header file that comes with gcc, so configuring glibc
7986   # with a fresh cross-compiler works.
7987   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7988   # <limits.h> exists even on freestanding compilers.
7989   # On the NeXT, cc -E runs the code through the compiler's parser,
7990   # not just through cpp. "Syntax error" is here to catch this case.
7991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h.  */
7993 #ifdef __STDC__
7994 # include <limits.h>
7995 #else
7996 # include <assert.h>
7997 #endif
7998                      Syntax error
7999 _ACEOF
8000 if ac_fn_c_try_cpp "$LINENO"; then :
8001
8002 else
8003   # Broken: fails on valid input.
8004 continue
8005 fi
8006 rm -f conftest.err conftest.$ac_ext
8007
8008   # OK, works on sane cases.  Now check whether nonexistent headers
8009   # can be detected and how.
8010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h.  */
8012 #include <ac_nonexistent.h>
8013 _ACEOF
8014 if ac_fn_c_try_cpp "$LINENO"; then :
8015   # Broken: success on invalid input.
8016 continue
8017 else
8018   # Passes both tests.
8019 ac_preproc_ok=:
8020 break
8021 fi
8022 rm -f conftest.err conftest.$ac_ext
8023
8024 done
8025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8026 rm -f conftest.err conftest.$ac_ext
8027 if $ac_preproc_ok; then :
8028
8029 else
8030   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8032 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8033 See \`config.log' for more details." "$LINENO" 5; }
8034 fi
8035
8036 ac_ext=c
8037 ac_cpp='$CPP $CPPFLAGS'
8038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8041
8042
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8044 $as_echo_n "checking for ANSI C header files... " >&6; }
8045 if test "${ac_cv_header_stdc+set}" = set; then :
8046   $as_echo_n "(cached) " >&6
8047 else
8048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h.  */
8050 #include <stdlib.h>
8051 #include <stdarg.h>
8052 #include <string.h>
8053 #include <float.h>
8054
8055 int
8056 main ()
8057 {
8058
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 if ac_fn_c_try_compile "$LINENO"; then :
8064   ac_cv_header_stdc=yes
8065 else
8066   ac_cv_header_stdc=no
8067 fi
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069
8070 if test $ac_cv_header_stdc = yes; then
8071   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h.  */
8074 #include <string.h>
8075
8076 _ACEOF
8077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8078   $EGREP "memchr" >/dev/null 2>&1; then :
8079
8080 else
8081   ac_cv_header_stdc=no
8082 fi
8083 rm -f conftest*
8084
8085 fi
8086
8087 if test $ac_cv_header_stdc = yes; then
8088   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h.  */
8091 #include <stdlib.h>
8092
8093 _ACEOF
8094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8095   $EGREP "free" >/dev/null 2>&1; then :
8096
8097 else
8098   ac_cv_header_stdc=no
8099 fi
8100 rm -f conftest*
8101
8102 fi
8103
8104 if test $ac_cv_header_stdc = yes; then
8105   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8106   if test "$cross_compiling" = yes; then :
8107   :
8108 else
8109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h.  */
8111 #include <ctype.h>
8112 #include <stdlib.h>
8113 #if ((' ' & 0x0FF) == 0x020)
8114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8116 #else
8117 # define ISLOWER(c) \
8118                    (('a' <= (c) && (c) <= 'i') \
8119                      || ('j' <= (c) && (c) <= 'r') \
8120                      || ('s' <= (c) && (c) <= 'z'))
8121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8122 #endif
8123
8124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8125 int
8126 main ()
8127 {
8128   int i;
8129   for (i = 0; i < 256; i++)
8130     if (XOR (islower (i), ISLOWER (i))
8131         || toupper (i) != TOUPPER (i))
8132       return 2;
8133   return 0;
8134 }
8135 _ACEOF
8136 if ac_fn_c_try_run "$LINENO"; then :
8137
8138 else
8139   ac_cv_header_stdc=no
8140 fi
8141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8142   conftest.$ac_objext conftest.beam conftest.$ac_ext
8143 fi
8144
8145 fi
8146 fi
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8148 $as_echo "$ac_cv_header_stdc" >&6; }
8149 if test $ac_cv_header_stdc = yes; then
8150
8151 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8152
8153 fi
8154
8155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8156 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8157                   inttypes.h stdint.h unistd.h
8158 do :
8159   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8160 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8161 "
8162 eval as_val=\$$as_ac_Header
8163    if test "x$as_val" = x""yes; then :
8164   cat >>confdefs.h <<_ACEOF
8165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8166 _ACEOF
8167
8168 fi
8169
8170 done
8171
8172
8173 for ac_header in dlfcn.h
8174 do :
8175   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8176 "
8177 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8178   cat >>confdefs.h <<_ACEOF
8179 #define HAVE_DLFCN_H 1
8180 _ACEOF
8181
8182 fi
8183
8184 done
8185
8186
8187
8188 ac_ext=cpp
8189 ac_cpp='$CXXCPP $CPPFLAGS'
8190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8193 if test -z "$CXX"; then
8194   if test -n "$CCC"; then
8195     CXX=$CCC
8196   else
8197     if test -n "$ac_tool_prefix"; then
8198   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8199   do
8200     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if test "${ac_cv_prog_CXX+set}" = set; then :
8205   $as_echo_n "(cached) " >&6
8206 else
8207   if test -n "$CXX"; then
8208   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8209 else
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213   IFS=$as_save_IFS
8214   test -z "$as_dir" && as_dir=.
8215     for ac_exec_ext in '' $ac_executable_extensions; do
8216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219     break 2
8220   fi
8221 done
8222   done
8223 IFS=$as_save_IFS
8224
8225 fi
8226 fi
8227 CXX=$ac_cv_prog_CXX
8228 if test -n "$CXX"; then
8229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8230 $as_echo "$CXX" >&6; }
8231 else
8232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8234 fi
8235
8236
8237     test -n "$CXX" && break
8238   done
8239 fi
8240 if test -z "$CXX"; then
8241   ac_ct_CXX=$CXX
8242   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8243 do
8244   # Extract the first word of "$ac_prog", so it can be a program name with args.
8245 set dummy $ac_prog; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8249   $as_echo_n "(cached) " >&6
8250 else
8251   if test -n "$ac_ct_CXX"; then
8252   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8256 do
8257   IFS=$as_save_IFS
8258   test -z "$as_dir" && as_dir=.
8259     for ac_exec_ext in '' $ac_executable_extensions; do
8260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261     ac_cv_prog_ac_ct_CXX="$ac_prog"
8262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263     break 2
8264   fi
8265 done
8266   done
8267 IFS=$as_save_IFS
8268
8269 fi
8270 fi
8271 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8272 if test -n "$ac_ct_CXX"; then
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8274 $as_echo "$ac_ct_CXX" >&6; }
8275 else
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279
8280
8281   test -n "$ac_ct_CXX" && break
8282 done
8283
8284   if test "x$ac_ct_CXX" = x; then
8285     CXX="g++"
8286   else
8287     case $cross_compiling:$ac_tool_warned in
8288 yes:)
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8291 ac_tool_warned=yes ;;
8292 esac
8293     CXX=$ac_ct_CXX
8294   fi
8295 fi
8296
8297   fi
8298 fi
8299 # Provide some information about the compiler.
8300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8301 set X $ac_compile
8302 ac_compiler=$2
8303 for ac_option in --version -v -V -qversion; do
8304   { { ac_try="$ac_compiler $ac_option >&5"
8305 case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8310 $as_echo "$ac_try_echo"; } >&5
8311   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8312   ac_status=$?
8313   if test -s conftest.err; then
8314     sed '10a\
8315 ... rest of stderr output deleted ...
8316          10q' conftest.err >conftest.er1
8317     cat conftest.er1 >&5
8318   fi
8319   rm -f conftest.er1 conftest.err
8320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8321   test $ac_status = 0; }
8322 done
8323
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8325 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8326 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h.  */
8331
8332 int
8333 main ()
8334 {
8335 #ifndef __GNUC__
8336        choke me
8337 #endif
8338
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 if ac_fn_cxx_try_compile "$LINENO"; then :
8344   ac_compiler_gnu=yes
8345 else
8346   ac_compiler_gnu=no
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8350
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8353 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8354 if test $ac_compiler_gnu = yes; then
8355   GXX=yes
8356 else
8357   GXX=
8358 fi
8359 ac_test_CXXFLAGS=${CXXFLAGS+set}
8360 ac_save_CXXFLAGS=$CXXFLAGS
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8362 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8363 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8367    ac_cxx_werror_flag=yes
8368    ac_cv_prog_cxx_g=no
8369    CXXFLAGS="-g"
8370    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h.  */
8372
8373 int
8374 main ()
8375 {
8376
8377   ;
8378   return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_cxx_try_compile "$LINENO"; then :
8382   ac_cv_prog_cxx_g=yes
8383 else
8384   CXXFLAGS=""
8385       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h.  */
8387
8388 int
8389 main ()
8390 {
8391
8392   ;
8393   return 0;
8394 }
8395 _ACEOF
8396 if ac_fn_cxx_try_compile "$LINENO"; then :
8397
8398 else
8399   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8400          CXXFLAGS="-g"
8401          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h.  */
8403
8404 int
8405 main ()
8406 {
8407
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_cxx_try_compile "$LINENO"; then :
8413   ac_cv_prog_cxx_g=yes
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 fi
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8421 fi
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8423 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8424 if test "$ac_test_CXXFLAGS" = set; then
8425   CXXFLAGS=$ac_save_CXXFLAGS
8426 elif test $ac_cv_prog_cxx_g = yes; then
8427   if test "$GXX" = yes; then
8428     CXXFLAGS="-g -O2"
8429   else
8430     CXXFLAGS="-g"
8431   fi
8432 else
8433   if test "$GXX" = yes; then
8434     CXXFLAGS="-O2"
8435   else
8436     CXXFLAGS=
8437   fi
8438 fi
8439 ac_ext=c
8440 ac_cpp='$CPP $CPPFLAGS'
8441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8444
8445 depcc="$CXX"  am_compiler_list=
8446
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8448 $as_echo_n "checking dependency style of $depcc... " >&6; }
8449 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8450   $as_echo_n "(cached) " >&6
8451 else
8452   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8453   # We make a subdir and do the tests there.  Otherwise we can end up
8454   # making bogus files that we don't know about and never remove.  For
8455   # instance it was reported that on HP-UX the gcc test will end up
8456   # making a dummy file named `D' -- because `-MD' means `put the output
8457   # in D'.
8458   mkdir conftest.dir
8459   # Copy depcomp to subdir because otherwise we won't find it if we're
8460   # using a relative directory.
8461   cp "$am_depcomp" conftest.dir
8462   cd conftest.dir
8463   # We will build objects and dependencies in a subdirectory because
8464   # it helps to detect inapplicable dependency modes.  For instance
8465   # both Tru64's cc and ICC support -MD to output dependencies as a
8466   # side effect of compilation, but ICC will put the dependencies in
8467   # the current directory while Tru64 will put them in the object
8468   # directory.
8469   mkdir sub
8470
8471   am_cv_CXX_dependencies_compiler_type=none
8472   if test "$am_compiler_list" = ""; then
8473      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8474   fi
8475   am__universal=false
8476   case " $depcc " in #(
8477      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8478      esac
8479
8480   for depmode in $am_compiler_list; do
8481     # Setup a source with many dependencies, because some compilers
8482     # like to wrap large dependency lists on column 80 (with \), and
8483     # we should not choose a depcomp mode which is confused by this.
8484     #
8485     # We need to recreate these files for each test, as the compiler may
8486     # overwrite some of them when testing with obscure command lines.
8487     # This happens at least with the AIX C compiler.
8488     : > sub/conftest.c
8489     for i in 1 2 3 4 5 6; do
8490       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8491       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8492       # Solaris 8's {/usr,}/bin/sh.
8493       touch sub/conftst$i.h
8494     done
8495     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8496
8497     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8498     # mode.  It turns out that the SunPro C++ compiler does not properly
8499     # handle `-M -o', and we need to detect this.  Also, some Intel
8500     # versions had trouble with output in subdirs
8501     am__obj=sub/conftest.${OBJEXT-o}
8502     am__minus_obj="-o $am__obj"
8503     case $depmode in
8504     gcc)
8505       # This depmode causes a compiler race in universal mode.
8506       test "$am__universal" = false || continue
8507       ;;
8508     nosideeffect)
8509       # after this tag, mechanisms are not by side-effect, so they'll
8510       # only be used when explicitly requested
8511       if test "x$enable_dependency_tracking" = xyes; then
8512         continue
8513       else
8514         break
8515       fi
8516       ;;
8517     msvisualcpp | msvcmsys)
8518       # This compiler won't grok `-c -o', but also, the minuso test has
8519       # not run yet.  These depmodes are late enough in the game, and
8520       # so weak that their functioning should not be impacted.
8521       am__obj=conftest.${OBJEXT-o}
8522       am__minus_obj=
8523       ;;
8524     none) break ;;
8525     esac
8526     if depmode=$depmode \
8527        source=sub/conftest.c object=$am__obj \
8528        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8529        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8530          >/dev/null 2>conftest.err &&
8531        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8532        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8533        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8534        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8535       # icc doesn't choke on unknown options, it will just issue warnings
8536       # or remarks (even with -Werror).  So we grep stderr for any message
8537       # that says an option was ignored or not supported.
8538       # When given -MP, icc 7.0 and 7.1 complain thusly:
8539       #   icc: Command line warning: ignoring option '-M'; no argument required
8540       # The diagnosis changed in icc 8.0:
8541       #   icc: Command line remark: option '-MP' not supported
8542       if (grep 'ignoring option' conftest.err ||
8543           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8544         am_cv_CXX_dependencies_compiler_type=$depmode
8545         break
8546       fi
8547     fi
8548   done
8549
8550   cd ..
8551   rm -rf conftest.dir
8552 else
8553   am_cv_CXX_dependencies_compiler_type=none
8554 fi
8555
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8558 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8559 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8560
8561  if
8562   test "x$enable_dependency_tracking" != xno \
8563   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8564   am__fastdepCXX_TRUE=
8565   am__fastdepCXX_FALSE='#'
8566 else
8567   am__fastdepCXX_TRUE='#'
8568   am__fastdepCXX_FALSE=
8569 fi
8570
8571
8572 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8573     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8574     (test "X$CXX" != "Xg++"))) ; then
8575   ac_ext=cpp
8576 ac_cpp='$CXXCPP $CPPFLAGS'
8577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8581 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8582 if test -z "$CXXCPP"; then
8583   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8584   $as_echo_n "(cached) " >&6
8585 else
8586       # Double quotes because CXXCPP needs to be expanded
8587     for CXXCPP in "$CXX -E" "/lib/cpp"
8588     do
8589       ac_preproc_ok=false
8590 for ac_cxx_preproc_warn_flag in '' yes
8591 do
8592   # Use a header file that comes with gcc, so configuring glibc
8593   # with a fresh cross-compiler works.
8594   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8595   # <limits.h> exists even on freestanding compilers.
8596   # On the NeXT, cc -E runs the code through the compiler's parser,
8597   # not just through cpp. "Syntax error" is here to catch this case.
8598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h.  */
8600 #ifdef __STDC__
8601 # include <limits.h>
8602 #else
8603 # include <assert.h>
8604 #endif
8605                      Syntax error
8606 _ACEOF
8607 if ac_fn_cxx_try_cpp "$LINENO"; then :
8608
8609 else
8610   # Broken: fails on valid input.
8611 continue
8612 fi
8613 rm -f conftest.err conftest.$ac_ext
8614
8615   # OK, works on sane cases.  Now check whether nonexistent headers
8616   # can be detected and how.
8617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h.  */
8619 #include <ac_nonexistent.h>
8620 _ACEOF
8621 if ac_fn_cxx_try_cpp "$LINENO"; then :
8622   # Broken: success on invalid input.
8623 continue
8624 else
8625   # Passes both tests.
8626 ac_preproc_ok=:
8627 break
8628 fi
8629 rm -f conftest.err conftest.$ac_ext
8630
8631 done
8632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8633 rm -f conftest.err conftest.$ac_ext
8634 if $ac_preproc_ok; then :
8635   break
8636 fi
8637
8638     done
8639     ac_cv_prog_CXXCPP=$CXXCPP
8640
8641 fi
8642   CXXCPP=$ac_cv_prog_CXXCPP
8643 else
8644   ac_cv_prog_CXXCPP=$CXXCPP
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8647 $as_echo "$CXXCPP" >&6; }
8648 ac_preproc_ok=false
8649 for ac_cxx_preproc_warn_flag in '' yes
8650 do
8651   # Use a header file that comes with gcc, so configuring glibc
8652   # with a fresh cross-compiler works.
8653   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654   # <limits.h> exists even on freestanding compilers.
8655   # On the NeXT, cc -E runs the code through the compiler's parser,
8656   # not just through cpp. "Syntax error" is here to catch this case.
8657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h.  */
8659 #ifdef __STDC__
8660 # include <limits.h>
8661 #else
8662 # include <assert.h>
8663 #endif
8664                      Syntax error
8665 _ACEOF
8666 if ac_fn_cxx_try_cpp "$LINENO"; then :
8667
8668 else
8669   # Broken: fails on valid input.
8670 continue
8671 fi
8672 rm -f conftest.err conftest.$ac_ext
8673
8674   # OK, works on sane cases.  Now check whether nonexistent headers
8675   # can be detected and how.
8676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h.  */
8678 #include <ac_nonexistent.h>
8679 _ACEOF
8680 if ac_fn_cxx_try_cpp "$LINENO"; then :
8681   # Broken: success on invalid input.
8682 continue
8683 else
8684   # Passes both tests.
8685 ac_preproc_ok=:
8686 break
8687 fi
8688 rm -f conftest.err conftest.$ac_ext
8689
8690 done
8691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8692 rm -f conftest.err conftest.$ac_ext
8693 if $ac_preproc_ok; then :
8694
8695 else
8696   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8698 _lt_caught_CXX_error=yes; }
8699 fi
8700
8701 ac_ext=c
8702 ac_cpp='$CPP $CPPFLAGS'
8703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8706
8707 else
8708   _lt_caught_CXX_error=yes
8709 fi
8710
8711
8712
8713
8714
8715 # Set options
8716
8717
8718
8719         enable_dlopen=no
8720
8721
8722
8723
8724
8725
8726 # Check whether --with-pic was given.
8727 if test "${with_pic+set}" = set; then :
8728   withval=$with_pic; pic_mode="$withval"
8729 else
8730   pic_mode=default
8731 fi
8732
8733
8734 test -z "$pic_mode" && pic_mode=default
8735
8736
8737
8738
8739
8740
8741
8742   # Check whether --enable-fast-install was given.
8743 if test "${enable_fast_install+set}" = set; then :
8744   enableval=$enable_fast_install; p=${PACKAGE-default}
8745     case $enableval in
8746     yes) enable_fast_install=yes ;;
8747     no) enable_fast_install=no ;;
8748     *)
8749       enable_fast_install=no
8750       # Look at the argument we got.  We use all the common list separators.
8751       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8752       for pkg in $enableval; do
8753         IFS="$lt_save_ifs"
8754         if test "X$pkg" = "X$p"; then
8755           enable_fast_install=yes
8756         fi
8757       done
8758       IFS="$lt_save_ifs"
8759       ;;
8760     esac
8761 else
8762   enable_fast_install=yes
8763 fi
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775 # This can be used to rebuild libtool when needed
8776 LIBTOOL_DEPS="$ltmain"
8777
8778 # Always use our own libtool.
8779 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805 test -z "$LN_S" && LN_S="ln -s"
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820 if test -n "${ZSH_VERSION+set}" ; then
8821    setopt NO_GLOB_SUBST
8822 fi
8823
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8825 $as_echo_n "checking for objdir... " >&6; }
8826 if test "${lt_cv_objdir+set}" = set; then :
8827   $as_echo_n "(cached) " >&6
8828 else
8829   rm -f .libs 2>/dev/null
8830 mkdir .libs 2>/dev/null
8831 if test -d .libs; then
8832   lt_cv_objdir=.libs
8833 else
8834   # MS-DOS does not allow filenames that begin with a dot.
8835   lt_cv_objdir=_libs
8836 fi
8837 rmdir .libs 2>/dev/null
8838 fi
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8840 $as_echo "$lt_cv_objdir" >&6; }
8841 objdir=$lt_cv_objdir
8842
8843
8844
8845
8846
8847 cat >>confdefs.h <<_ACEOF
8848 #define LT_OBJDIR "$lt_cv_objdir/"
8849 _ACEOF
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867 case $host_os in
8868 aix3*)
8869   # AIX sometimes has problems with the GCC collect2 program.  For some
8870   # reason, if we set the COLLECT_NAMES environment variable, the problems
8871   # vanish in a puff of smoke.
8872   if test "X${COLLECT_NAMES+set}" != Xset; then
8873     COLLECT_NAMES=
8874     export COLLECT_NAMES
8875   fi
8876   ;;
8877 esac
8878
8879 # Sed substitution that helps us do robust quoting.  It backslashifies
8880 # metacharacters that are still active within double-quoted strings.
8881 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8882
8883 # Same as above, but do not quote variable references.
8884 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8885
8886 # Sed substitution to delay expansion of an escaped shell variable in a
8887 # double_quote_subst'ed string.
8888 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8889
8890 # Sed substitution to delay expansion of an escaped single quote.
8891 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8892
8893 # Sed substitution to avoid accidental globbing in evaled expressions
8894 no_glob_subst='s/\*/\\\*/g'
8895
8896 # Global variables:
8897 ofile=libtool
8898 can_build_shared=yes
8899
8900 # All known linkers require a `.a' archive for static linking (except MSVC,
8901 # which needs '.lib').
8902 libext=a
8903
8904 with_gnu_ld="$lt_cv_prog_gnu_ld"
8905
8906 old_CC="$CC"
8907 old_CFLAGS="$CFLAGS"
8908
8909 # Set sane defaults for various variables
8910 test -z "$CC" && CC=cc
8911 test -z "$LTCC" && LTCC=$CC
8912 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8913 test -z "$LD" && LD=ld
8914 test -z "$ac_objext" && ac_objext=o
8915
8916 for cc_temp in $compiler""; do
8917   case $cc_temp in
8918     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8919     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8920     \-*) ;;
8921     *) break;;
8922   esac
8923 done
8924 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8925
8926
8927 # Only perform the check for file, if the check method requires it
8928 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8929 case $deplibs_check_method in
8930 file_magic*)
8931   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8933 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8935   $as_echo_n "(cached) " >&6
8936 else
8937   case $MAGIC_CMD in
8938 [\\/*] |  ?:[\\/]*)
8939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8940   ;;
8941 *)
8942   lt_save_MAGIC_CMD="$MAGIC_CMD"
8943   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8944   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8945   for ac_dir in $ac_dummy; do
8946     IFS="$lt_save_ifs"
8947     test -z "$ac_dir" && ac_dir=.
8948     if test -f $ac_dir/${ac_tool_prefix}file; then
8949       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8950       if test -n "$file_magic_test_file"; then
8951         case $deplibs_check_method in
8952         "file_magic "*)
8953           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8954           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8955           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8956             $EGREP "$file_magic_regex" > /dev/null; then
8957             :
8958           else
8959             cat <<_LT_EOF 1>&2
8960
8961 *** Warning: the command libtool uses to detect shared libraries,
8962 *** $file_magic_cmd, produces output that libtool cannot recognize.
8963 *** The result is that libtool may fail to recognize shared libraries
8964 *** as such.  This will affect the creation of libtool libraries that
8965 *** depend on shared libraries, but programs linked with such libtool
8966 *** libraries will work regardless of this problem.  Nevertheless, you
8967 *** may want to report the problem to your system manager and/or to
8968 *** bug-libtool@gnu.org
8969
8970 _LT_EOF
8971           fi ;;
8972         esac
8973       fi
8974       break
8975     fi
8976   done
8977   IFS="$lt_save_ifs"
8978   MAGIC_CMD="$lt_save_MAGIC_CMD"
8979   ;;
8980 esac
8981 fi
8982
8983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8984 if test -n "$MAGIC_CMD"; then
8985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8986 $as_echo "$MAGIC_CMD" >&6; }
8987 else
8988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8990 fi
8991
8992
8993
8994
8995
8996 if test -z "$lt_cv_path_MAGIC_CMD"; then
8997   if test -n "$ac_tool_prefix"; then
8998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8999 $as_echo_n "checking for file... " >&6; }
9000 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9001   $as_echo_n "(cached) " >&6
9002 else
9003   case $MAGIC_CMD in
9004 [\\/*] |  ?:[\\/]*)
9005   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9006   ;;
9007 *)
9008   lt_save_MAGIC_CMD="$MAGIC_CMD"
9009   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9010   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9011   for ac_dir in $ac_dummy; do
9012     IFS="$lt_save_ifs"
9013     test -z "$ac_dir" && ac_dir=.
9014     if test -f $ac_dir/file; then
9015       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9016       if test -n "$file_magic_test_file"; then
9017         case $deplibs_check_method in
9018         "file_magic "*)
9019           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9020           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9021           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9022             $EGREP "$file_magic_regex" > /dev/null; then
9023             :
9024           else
9025             cat <<_LT_EOF 1>&2
9026
9027 *** Warning: the command libtool uses to detect shared libraries,
9028 *** $file_magic_cmd, produces output that libtool cannot recognize.
9029 *** The result is that libtool may fail to recognize shared libraries
9030 *** as such.  This will affect the creation of libtool libraries that
9031 *** depend on shared libraries, but programs linked with such libtool
9032 *** libraries will work regardless of this problem.  Nevertheless, you
9033 *** may want to report the problem to your system manager and/or to
9034 *** bug-libtool@gnu.org
9035
9036 _LT_EOF
9037           fi ;;
9038         esac
9039       fi
9040       break
9041     fi
9042   done
9043   IFS="$lt_save_ifs"
9044   MAGIC_CMD="$lt_save_MAGIC_CMD"
9045   ;;
9046 esac
9047 fi
9048
9049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9050 if test -n "$MAGIC_CMD"; then
9051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9052 $as_echo "$MAGIC_CMD" >&6; }
9053 else
9054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9056 fi
9057
9058
9059   else
9060     MAGIC_CMD=:
9061   fi
9062 fi
9063
9064   fi
9065   ;;
9066 esac
9067
9068 # Use C for the default configuration in the libtool script
9069
9070 lt_save_CC="$CC"
9071 ac_ext=c
9072 ac_cpp='$CPP $CPPFLAGS'
9073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9076
9077
9078 # Source file extension for C test sources.
9079 ac_ext=c
9080
9081 # Object file extension for compiled C test sources.
9082 objext=o
9083 objext=$objext
9084
9085 # Code to be used in simple compile tests
9086 lt_simple_compile_test_code="int some_variable = 0;"
9087
9088 # Code to be used in simple link tests
9089 lt_simple_link_test_code='int main(){return(0);}'
9090
9091
9092
9093
9094
9095
9096
9097 # If no C compiler was specified, use CC.
9098 LTCC=${LTCC-"$CC"}
9099
9100 # If no C compiler flags were specified, use CFLAGS.
9101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9102
9103 # Allow CC to be a program name with arguments.
9104 compiler=$CC
9105
9106 # Save the default compiler, since it gets overwritten when the other
9107 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9108 compiler_DEFAULT=$CC
9109
9110 # save warnings/boilerplate of simple test code
9111 ac_outfile=conftest.$ac_objext
9112 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9114 _lt_compiler_boilerplate=`cat conftest.err`
9115 $RM conftest*
9116
9117 ac_outfile=conftest.$ac_objext
9118 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9120 _lt_linker_boilerplate=`cat conftest.err`
9121 $RM -r conftest*
9122
9123
9124 if test -n "$compiler"; then
9125
9126 lt_prog_compiler_no_builtin_flag=
9127
9128 if test "$GCC" = yes; then
9129   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9130
9131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9134   $as_echo_n "(cached) " >&6
9135 else
9136   lt_cv_prog_compiler_rtti_exceptions=no
9137    ac_outfile=conftest.$ac_objext
9138    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9139    lt_compiler_flag="-fno-rtti -fno-exceptions"
9140    # Insert the option either (1) after the last *FLAGS variable, or
9141    # (2) before a word containing "conftest.", or (3) at the end.
9142    # Note that $ac_compile itself does not contain backslashes and begins
9143    # with a dollar sign (not a hyphen), so the echo should work correctly.
9144    # The option is referenced via a variable to avoid confusing sed.
9145    lt_compile=`echo "$ac_compile" | $SED \
9146    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9148    -e 's:$: $lt_compiler_flag:'`
9149    (eval echo "\"\$as_me:9149: $lt_compile\"" >&5)
9150    (eval "$lt_compile" 2>conftest.err)
9151    ac_status=$?
9152    cat conftest.err >&5
9153    echo "$as_me:9153: \$? = $ac_status" >&5
9154    if (exit $ac_status) && test -s "$ac_outfile"; then
9155      # The compiler can only warn and ignore the option if not recognized
9156      # So say no if there are warnings other than the usual output.
9157      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9158      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9159      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9160        lt_cv_prog_compiler_rtti_exceptions=yes
9161      fi
9162    fi
9163    $RM conftest*
9164
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9168
9169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9170     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9171 else
9172     :
9173 fi
9174
9175 fi
9176
9177
9178
9179
9180
9181
9182   lt_prog_compiler_wl=
9183 lt_prog_compiler_pic=
9184 lt_prog_compiler_static=
9185
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9187 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9188
9189   if test "$GCC" = yes; then
9190     lt_prog_compiler_wl='-Wl,'
9191     lt_prog_compiler_static='-static'
9192
9193     case $host_os in
9194       aix*)
9195       # All AIX code is PIC.
9196       if test "$host_cpu" = ia64; then
9197         # AIX 5 now supports IA64 processor
9198         lt_prog_compiler_static='-Bstatic'
9199       fi
9200       ;;
9201
9202     amigaos*)
9203       case $host_cpu in
9204       powerpc)
9205             # see comment about AmigaOS4 .so support
9206             lt_prog_compiler_pic='-fPIC'
9207         ;;
9208       m68k)
9209             # FIXME: we need at least 68020 code to build shared libraries, but
9210             # adding the `-m68020' flag to GCC prevents building anything better,
9211             # like `-m68040'.
9212             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9213         ;;
9214       esac
9215       ;;
9216
9217     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9218       # PIC is the default for these OSes.
9219       ;;
9220
9221     mingw* | cygwin* | pw32* | os2* | cegcc*)
9222       # This hack is so that the source file can tell whether it is being
9223       # built for inclusion in a dll (and should export symbols for example).
9224       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9225       # (--disable-auto-import) libraries
9226       lt_prog_compiler_pic='-DDLL_EXPORT'
9227       ;;
9228
9229     darwin* | rhapsody*)
9230       # PIC is the default on this platform
9231       # Common symbols not allowed in MH_DYLIB files
9232       lt_prog_compiler_pic='-fno-common'
9233       ;;
9234
9235     hpux*)
9236       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9237       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9238       # sets the default TLS model and affects inlining.
9239       case $host_cpu in
9240       hppa*64*)
9241         # +Z the default
9242         ;;
9243       *)
9244         lt_prog_compiler_pic='-fPIC'
9245         ;;
9246       esac
9247       ;;
9248
9249     interix[3-9]*)
9250       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9251       # Instead, we relocate shared libraries at runtime.
9252       ;;
9253
9254     msdosdjgpp*)
9255       # Just because we use GCC doesn't mean we suddenly get shared libraries
9256       # on systems that don't support them.
9257       lt_prog_compiler_can_build_shared=no
9258       enable_shared=no
9259       ;;
9260
9261     *nto* | *qnx*)
9262       # QNX uses GNU C++, but need to define -shared option too, otherwise
9263       # it will coredump.
9264       lt_prog_compiler_pic='-fPIC -shared'
9265       ;;
9266
9267     sysv4*MP*)
9268       if test -d /usr/nec; then
9269         lt_prog_compiler_pic=-Kconform_pic
9270       fi
9271       ;;
9272
9273     *)
9274       lt_prog_compiler_pic='-fPIC'
9275       ;;
9276     esac
9277   else
9278     # PORTME Check for flag to pass linker flags through the system compiler.
9279     case $host_os in
9280     aix*)
9281       lt_prog_compiler_wl='-Wl,'
9282       if test "$host_cpu" = ia64; then
9283         # AIX 5 now supports IA64 processor
9284         lt_prog_compiler_static='-Bstatic'
9285       else
9286         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9287       fi
9288       ;;
9289
9290     mingw* | cygwin* | pw32* | os2* | cegcc*)
9291       # This hack is so that the source file can tell whether it is being
9292       # built for inclusion in a dll (and should export symbols for example).
9293       lt_prog_compiler_pic='-DDLL_EXPORT'
9294       ;;
9295
9296     hpux9* | hpux10* | hpux11*)
9297       lt_prog_compiler_wl='-Wl,'
9298       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9299       # not for PA HP-UX.
9300       case $host_cpu in
9301       hppa*64*|ia64*)
9302         # +Z the default
9303         ;;
9304       *)
9305         lt_prog_compiler_pic='+Z'
9306         ;;
9307       esac
9308       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9309       lt_prog_compiler_static='${wl}-a ${wl}archive'
9310       ;;
9311
9312     irix5* | irix6* | nonstopux*)
9313       lt_prog_compiler_wl='-Wl,'
9314       # PIC (with -KPIC) is the default.
9315       lt_prog_compiler_static='-non_shared'
9316       ;;
9317
9318     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9319       case $cc_basename in
9320       # old Intel for x86_64 which still supported -KPIC.
9321       ecc*)
9322         lt_prog_compiler_wl='-Wl,'
9323         lt_prog_compiler_pic='-KPIC'
9324         lt_prog_compiler_static='-static'
9325         ;;
9326       # icc used to be incompatible with GCC.
9327       # ICC 10 doesn't accept -KPIC any more.
9328       icc* | ifort*)
9329         lt_prog_compiler_wl='-Wl,'
9330         lt_prog_compiler_pic='-fPIC'
9331         lt_prog_compiler_static='-static'
9332         ;;
9333       # Lahey Fortran 8.1.
9334       lf95*)
9335         lt_prog_compiler_wl='-Wl,'
9336         lt_prog_compiler_pic='--shared'
9337         lt_prog_compiler_static='--static'
9338         ;;
9339       pgcc* | pgf77* | pgf90* | pgf95*)
9340         # Portland Group compilers (*not* the Pentium gcc compiler,
9341         # which looks to be a dead project)
9342         lt_prog_compiler_wl='-Wl,'
9343         lt_prog_compiler_pic='-fpic'
9344         lt_prog_compiler_static='-Bstatic'
9345         ;;
9346       ccc*)
9347         lt_prog_compiler_wl='-Wl,'
9348         # All Alpha code is PIC.
9349         lt_prog_compiler_static='-non_shared'
9350         ;;
9351       xl*)
9352         # IBM XL C 8.0/Fortran 10.1 on PPC
9353         lt_prog_compiler_wl='-Wl,'
9354         lt_prog_compiler_pic='-qpic'
9355         lt_prog_compiler_static='-qstaticlink'
9356         ;;
9357       *)
9358         case `$CC -V 2>&1 | sed 5q` in
9359         *Sun\ C*)
9360           # Sun C 5.9
9361           lt_prog_compiler_pic='-KPIC'
9362           lt_prog_compiler_static='-Bstatic'
9363           lt_prog_compiler_wl='-Wl,'
9364           ;;
9365         *Sun\ F*)
9366           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9367           lt_prog_compiler_pic='-KPIC'
9368           lt_prog_compiler_static='-Bstatic'
9369           lt_prog_compiler_wl=''
9370           ;;
9371         esac
9372         ;;
9373       esac
9374       ;;
9375
9376     newsos6)
9377       lt_prog_compiler_pic='-KPIC'
9378       lt_prog_compiler_static='-Bstatic'
9379       ;;
9380
9381     *nto* | *qnx*)
9382       # QNX uses GNU C++, but need to define -shared option too, otherwise
9383       # it will coredump.
9384       lt_prog_compiler_pic='-fPIC -shared'
9385       ;;
9386
9387     osf3* | osf4* | osf5*)
9388       lt_prog_compiler_wl='-Wl,'
9389       # All OSF/1 code is PIC.
9390       lt_prog_compiler_static='-non_shared'
9391       ;;
9392
9393     rdos*)
9394       lt_prog_compiler_static='-non_shared'
9395       ;;
9396
9397     solaris*)
9398       lt_prog_compiler_pic='-KPIC'
9399       lt_prog_compiler_static='-Bstatic'
9400       case $cc_basename in
9401       f77* | f90* | f95*)
9402         lt_prog_compiler_wl='-Qoption ld ';;
9403       *)
9404         lt_prog_compiler_wl='-Wl,';;
9405       esac
9406       ;;
9407
9408     sunos4*)
9409       lt_prog_compiler_wl='-Qoption ld '
9410       lt_prog_compiler_pic='-PIC'
9411       lt_prog_compiler_static='-Bstatic'
9412       ;;
9413
9414     sysv4 | sysv4.2uw2* | sysv4.3*)
9415       lt_prog_compiler_wl='-Wl,'
9416       lt_prog_compiler_pic='-KPIC'
9417       lt_prog_compiler_static='-Bstatic'
9418       ;;
9419
9420     sysv4*MP*)
9421       if test -d /usr/nec ;then
9422         lt_prog_compiler_pic='-Kconform_pic'
9423         lt_prog_compiler_static='-Bstatic'
9424       fi
9425       ;;
9426
9427     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9428       lt_prog_compiler_wl='-Wl,'
9429       lt_prog_compiler_pic='-KPIC'
9430       lt_prog_compiler_static='-Bstatic'
9431       ;;
9432
9433     unicos*)
9434       lt_prog_compiler_wl='-Wl,'
9435       lt_prog_compiler_can_build_shared=no
9436       ;;
9437
9438     uts4*)
9439       lt_prog_compiler_pic='-pic'
9440       lt_prog_compiler_static='-Bstatic'
9441       ;;
9442
9443     *)
9444       lt_prog_compiler_can_build_shared=no
9445       ;;
9446     esac
9447   fi
9448
9449 case $host_os in
9450   # For platforms which do not support PIC, -DPIC is meaningless:
9451   *djgpp*)
9452     lt_prog_compiler_pic=
9453     ;;
9454   *)
9455     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9456     ;;
9457 esac
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9459 $as_echo "$lt_prog_compiler_pic" >&6; }
9460
9461
9462
9463
9464
9465
9466 #
9467 # Check to make sure the PIC flag actually works.
9468 #
9469 if test -n "$lt_prog_compiler_pic"; then
9470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9471 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9472 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9473   $as_echo_n "(cached) " >&6
9474 else
9475   lt_cv_prog_compiler_pic_works=no
9476    ac_outfile=conftest.$ac_objext
9477    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9478    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9479    # Insert the option either (1) after the last *FLAGS variable, or
9480    # (2) before a word containing "conftest.", or (3) at the end.
9481    # Note that $ac_compile itself does not contain backslashes and begins
9482    # with a dollar sign (not a hyphen), so the echo should work correctly.
9483    # The option is referenced via a variable to avoid confusing sed.
9484    lt_compile=`echo "$ac_compile" | $SED \
9485    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9487    -e 's:$: $lt_compiler_flag:'`
9488    (eval echo "\"\$as_me:9488: $lt_compile\"" >&5)
9489    (eval "$lt_compile" 2>conftest.err)
9490    ac_status=$?
9491    cat conftest.err >&5
9492    echo "$as_me:9492: \$? = $ac_status" >&5
9493    if (exit $ac_status) && test -s "$ac_outfile"; then
9494      # The compiler can only warn and ignore the option if not recognized
9495      # So say no if there are warnings other than the usual output.
9496      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9497      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9498      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9499        lt_cv_prog_compiler_pic_works=yes
9500      fi
9501    fi
9502    $RM conftest*
9503
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9506 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9507
9508 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9509     case $lt_prog_compiler_pic in
9510      "" | " "*) ;;
9511      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9512      esac
9513 else
9514     lt_prog_compiler_pic=
9515      lt_prog_compiler_can_build_shared=no
9516 fi
9517
9518 fi
9519
9520
9521
9522
9523
9524
9525 #
9526 # Check to make sure the static flag actually works.
9527 #
9528 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9530 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9531 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9532   $as_echo_n "(cached) " >&6
9533 else
9534   lt_cv_prog_compiler_static_works=no
9535    save_LDFLAGS="$LDFLAGS"
9536    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9537    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9538    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9539      # The linker can only warn and ignore the option if not recognized
9540      # So say no if there are warnings
9541      if test -s conftest.err; then
9542        # Append any errors to the config.log.
9543        cat conftest.err 1>&5
9544        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9545        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9546        if diff conftest.exp conftest.er2 >/dev/null; then
9547          lt_cv_prog_compiler_static_works=yes
9548        fi
9549      else
9550        lt_cv_prog_compiler_static_works=yes
9551      fi
9552    fi
9553    $RM -r conftest*
9554    LDFLAGS="$save_LDFLAGS"
9555
9556 fi
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9558 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9559
9560 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9561     :
9562 else
9563     lt_prog_compiler_static=
9564 fi
9565
9566
9567
9568
9569
9570
9571
9572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9574 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9575   $as_echo_n "(cached) " >&6
9576 else
9577   lt_cv_prog_compiler_c_o=no
9578    $RM -r conftest 2>/dev/null
9579    mkdir conftest
9580    cd conftest
9581    mkdir out
9582    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9583
9584    lt_compiler_flag="-o out/conftest2.$ac_objext"
9585    # Insert the option either (1) after the last *FLAGS variable, or
9586    # (2) before a word containing "conftest.", or (3) at the end.
9587    # Note that $ac_compile itself does not contain backslashes and begins
9588    # with a dollar sign (not a hyphen), so the echo should work correctly.
9589    lt_compile=`echo "$ac_compile" | $SED \
9590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9592    -e 's:$: $lt_compiler_flag:'`
9593    (eval echo "\"\$as_me:9593: $lt_compile\"" >&5)
9594    (eval "$lt_compile" 2>out/conftest.err)
9595    ac_status=$?
9596    cat out/conftest.err >&5
9597    echo "$as_me:9597: \$? = $ac_status" >&5
9598    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9599    then
9600      # The compiler can only warn and ignore the option if not recognized
9601      # So say no if there are warnings
9602      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9603      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9604      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9605        lt_cv_prog_compiler_c_o=yes
9606      fi
9607    fi
9608    chmod u+w . 2>&5
9609    $RM conftest*
9610    # SGI C++ compiler will create directory out/ii_files/ for
9611    # template instantiation
9612    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9613    $RM out/* && rmdir out
9614    cd ..
9615    $RM -r conftest
9616    $RM conftest*
9617
9618 fi
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9620 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9621
9622
9623
9624
9625
9626
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9628 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9629 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9630   $as_echo_n "(cached) " >&6
9631 else
9632   lt_cv_prog_compiler_c_o=no
9633    $RM -r conftest 2>/dev/null
9634    mkdir conftest
9635    cd conftest
9636    mkdir out
9637    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9638
9639    lt_compiler_flag="-o out/conftest2.$ac_objext"
9640    # Insert the option either (1) after the last *FLAGS variable, or
9641    # (2) before a word containing "conftest.", or (3) at the end.
9642    # Note that $ac_compile itself does not contain backslashes and begins
9643    # with a dollar sign (not a hyphen), so the echo should work correctly.
9644    lt_compile=`echo "$ac_compile" | $SED \
9645    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9646    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9647    -e 's:$: $lt_compiler_flag:'`
9648    (eval echo "\"\$as_me:9648: $lt_compile\"" >&5)
9649    (eval "$lt_compile" 2>out/conftest.err)
9650    ac_status=$?
9651    cat out/conftest.err >&5
9652    echo "$as_me:9652: \$? = $ac_status" >&5
9653    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9654    then
9655      # The compiler can only warn and ignore the option if not recognized
9656      # So say no if there are warnings
9657      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9658      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9659      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9660        lt_cv_prog_compiler_c_o=yes
9661      fi
9662    fi
9663    chmod u+w . 2>&5
9664    $RM conftest*
9665    # SGI C++ compiler will create directory out/ii_files/ for
9666    # template instantiation
9667    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9668    $RM out/* && rmdir out
9669    cd ..
9670    $RM -r conftest
9671    $RM conftest*
9672
9673 fi
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9675 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9676
9677
9678
9679
9680 hard_links="nottested"
9681 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9682   # do not overwrite the value of need_locks provided by the user
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9684 $as_echo_n "checking if we can lock with hard links... " >&6; }
9685   hard_links=yes
9686   $RM conftest*
9687   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9688   touch conftest.a
9689   ln conftest.a conftest.b 2>&5 || hard_links=no
9690   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9692 $as_echo "$hard_links" >&6; }
9693   if test "$hard_links" = no; then
9694     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9695 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9696     need_locks=warn
9697   fi
9698 else
9699   need_locks=no
9700 fi
9701
9702
9703
9704
9705
9706
9707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9708 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9709
9710   runpath_var=
9711   allow_undefined_flag=
9712   always_export_symbols=no
9713   archive_cmds=
9714   archive_expsym_cmds=
9715   compiler_needs_object=no
9716   enable_shared_with_static_runtimes=no
9717   export_dynamic_flag_spec=
9718   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9719   hardcode_automatic=no
9720   hardcode_direct=no
9721   hardcode_direct_absolute=no
9722   hardcode_libdir_flag_spec=
9723   hardcode_libdir_flag_spec_ld=
9724   hardcode_libdir_separator=
9725   hardcode_minus_L=no
9726   hardcode_shlibpath_var=unsupported
9727   inherit_rpath=no
9728   link_all_deplibs=unknown
9729   module_cmds=
9730   module_expsym_cmds=
9731   old_archive_from_new_cmds=
9732   old_archive_from_expsyms_cmds=
9733   thread_safe_flag_spec=
9734   whole_archive_flag_spec=
9735   # include_expsyms should be a list of space-separated symbols to be *always*
9736   # included in the symbol list
9737   include_expsyms=
9738   # exclude_expsyms can be an extended regexp of symbols to exclude
9739   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9740   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9741   # as well as any symbol that contains `d'.
9742   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9743   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9744   # platforms (ab)use it in PIC code, but their linkers get confused if
9745   # the symbol is explicitly referenced.  Since portable code cannot
9746   # rely on this symbol name, it's probably fine to never include it in
9747   # preloaded symbol tables.
9748   # Exclude shared library initialization/finalization symbols.
9749   extract_expsyms_cmds=
9750
9751   case $host_os in
9752   cygwin* | mingw* | pw32* | cegcc*)
9753     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9754     # When not using gcc, we currently assume that we are using
9755     # Microsoft Visual C++.
9756     if test "$GCC" != yes; then
9757       with_gnu_ld=no
9758     fi
9759     ;;
9760   interix*)
9761     # we just hope/assume this is gcc and not c89 (= MSVC++)
9762     with_gnu_ld=yes
9763     ;;
9764   openbsd*)
9765     with_gnu_ld=no
9766     ;;
9767   linux* | k*bsd*-gnu)
9768     link_all_deplibs=no
9769     ;;
9770   esac
9771
9772   ld_shlibs=yes
9773   if test "$with_gnu_ld" = yes; then
9774     # If archive_cmds runs LD, not CC, wlarc should be empty
9775     wlarc='${wl}'
9776
9777     # Set some defaults for GNU ld with shared library support. These
9778     # are reset later if shared libraries are not supported. Putting them
9779     # here allows them to be overridden if necessary.
9780     runpath_var=LD_RUN_PATH
9781     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782     export_dynamic_flag_spec='${wl}--export-dynamic'
9783     # ancient GNU ld didn't support --whole-archive et. al.
9784     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9785       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9786     else
9787       whole_archive_flag_spec=
9788     fi
9789     supports_anon_versioning=no
9790     case `$LD -v 2>&1` in
9791       *GNU\ gold*) supports_anon_versioning=yes ;;
9792       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9793       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9794       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9795       *\ 2.11.*) ;; # other 2.11 versions
9796       *) supports_anon_versioning=yes ;;
9797     esac
9798
9799     # See if GNU ld supports shared libraries.
9800     case $host_os in
9801     aix[3-9]*)
9802       # On AIX/PPC, the GNU linker is very broken
9803       if test "$host_cpu" != ia64; then
9804         ld_shlibs=no
9805         cat <<_LT_EOF 1>&2
9806
9807 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9808 *** to be unable to reliably create shared libraries on AIX.
9809 *** Therefore, libtool is disabling shared libraries support.  If you
9810 *** really care for shared libraries, you may want to modify your PATH
9811 *** so that a non-GNU linker is found, and then restart.
9812
9813 _LT_EOF
9814       fi
9815       ;;
9816
9817     amigaos*)
9818       case $host_cpu in
9819       powerpc)
9820             # see comment about AmigaOS4 .so support
9821             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822             archive_expsym_cmds=''
9823         ;;
9824       m68k)
9825             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)'
9826             hardcode_libdir_flag_spec='-L$libdir'
9827             hardcode_minus_L=yes
9828         ;;
9829       esac
9830       ;;
9831
9832     beos*)
9833       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9834         allow_undefined_flag=unsupported
9835         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9836         # support --undefined.  This deserves some investigation.  FIXME
9837         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9838       else
9839         ld_shlibs=no
9840       fi
9841       ;;
9842
9843     cygwin* | mingw* | pw32* | cegcc*)
9844       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9845       # as there is no search path for DLLs.
9846       hardcode_libdir_flag_spec='-L$libdir'
9847       allow_undefined_flag=unsupported
9848       always_export_symbols=no
9849       enable_shared_with_static_runtimes=yes
9850       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9851
9852       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9853         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9854         # If the export-symbols file already is a .def file (1st line
9855         # is EXPORTS), use it as is; otherwise, prepend...
9856         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857           cp $export_symbols $output_objdir/$soname.def;
9858         else
9859           echo EXPORTS > $output_objdir/$soname.def;
9860           cat $export_symbols >> $output_objdir/$soname.def;
9861         fi~
9862         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9863       else
9864         ld_shlibs=no
9865       fi
9866       ;;
9867
9868     interix[3-9]*)
9869       hardcode_direct=no
9870       hardcode_shlibpath_var=no
9871       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872       export_dynamic_flag_spec='${wl}-E'
9873       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9874       # Instead, shared libraries are loaded at an image base (0x10000000 by
9875       # default) and relocated if they conflict, which is a slow very memory
9876       # consuming and fragmenting process.  To avoid this, we pick a random,
9877       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9878       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9879       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9880       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'
9881       ;;
9882
9883     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9884       tmp_diet=no
9885       if test "$host_os" = linux-dietlibc; then
9886         case $cc_basename in
9887           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9888         esac
9889       fi
9890       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9891          && test "$tmp_diet" = no
9892       then
9893         tmp_addflag=
9894         tmp_sharedflag='-shared'
9895         case $cc_basename,$host_cpu in
9896         pgcc*)                          # Portland Group C compiler
9897           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'
9898           tmp_addflag=' $pic_flag'
9899           ;;
9900         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9901           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'
9902           tmp_addflag=' $pic_flag -Mnomain' ;;
9903         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9904           tmp_addflag=' -i_dynamic' ;;
9905         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9906           tmp_addflag=' -i_dynamic -nofor_main' ;;
9907         ifc* | ifort*)                  # Intel Fortran compiler
9908           tmp_addflag=' -nofor_main' ;;
9909         lf95*)                          # Lahey Fortran 8.1
9910           whole_archive_flag_spec=
9911           tmp_sharedflag='--shared' ;;
9912         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9913           tmp_sharedflag='-qmkshrobj'
9914           tmp_addflag= ;;
9915         esac
9916         case `$CC -V 2>&1 | sed 5q` in
9917         *Sun\ C*)                       # Sun C 5.9
9918           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'
9919           compiler_needs_object=yes
9920           tmp_sharedflag='-G' ;;
9921         *Sun\ F*)                       # Sun Fortran 8.3
9922           tmp_sharedflag='-G' ;;
9923         esac
9924         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9925
9926         if test "x$supports_anon_versioning" = xyes; then
9927           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9928             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9929             echo "local: *; };" >> $output_objdir/$libname.ver~
9930             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9931         fi
9932
9933         case $cc_basename in
9934         xlf*)
9935           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9936           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9937           hardcode_libdir_flag_spec=
9938           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9939           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9940           if test "x$supports_anon_versioning" = xyes; then
9941             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9942               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9943               echo "local: *; };" >> $output_objdir/$libname.ver~
9944               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9945           fi
9946           ;;
9947         esac
9948       else
9949         ld_shlibs=no
9950       fi
9951       ;;
9952
9953     netbsd* | netbsdelf*-gnu)
9954       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9955         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9956         wlarc=
9957       else
9958         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9959         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9960       fi
9961       ;;
9962
9963     solaris*)
9964       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9965         ld_shlibs=no
9966         cat <<_LT_EOF 1>&2
9967
9968 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9969 *** create shared libraries on Solaris systems.  Therefore, libtool
9970 *** is disabling shared libraries support.  We urge you to upgrade GNU
9971 *** binutils to release 2.9.1 or newer.  Another option is to modify
9972 *** your PATH or compiler configuration so that the native linker is
9973 *** used, and then restart.
9974
9975 _LT_EOF
9976       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9977         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9978         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9979       else
9980         ld_shlibs=no
9981       fi
9982       ;;
9983
9984     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9985       case `$LD -v 2>&1` in
9986         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9987         ld_shlibs=no
9988         cat <<_LT_EOF 1>&2
9989
9990 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9991 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9992 *** is disabling shared libraries support.  We urge you to upgrade GNU
9993 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9994 *** your PATH or compiler configuration so that the native linker is
9995 *** used, and then restart.
9996
9997 _LT_EOF
9998         ;;
9999         *)
10000           # For security reasons, it is highly recommended that you always
10001           # use absolute paths for naming shared libraries, and exclude the
10002           # DT_RUNPATH tag from executables and libraries.  But doing so
10003           # requires that you compile everything twice, which is a pain.
10004           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10005             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10007             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10008           else
10009             ld_shlibs=no
10010           fi
10011         ;;
10012       esac
10013       ;;
10014
10015     sunos4*)
10016       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10017       wlarc=
10018       hardcode_direct=yes
10019       hardcode_shlibpath_var=no
10020       ;;
10021
10022     *)
10023       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10024         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10025         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10026       else
10027         ld_shlibs=no
10028       fi
10029       ;;
10030     esac
10031
10032     if test "$ld_shlibs" = no; then
10033       runpath_var=
10034       hardcode_libdir_flag_spec=
10035       export_dynamic_flag_spec=
10036       whole_archive_flag_spec=
10037     fi
10038   else
10039     # PORTME fill in a description of your system's linker (not GNU ld)
10040     case $host_os in
10041     aix3*)
10042       allow_undefined_flag=unsupported
10043       always_export_symbols=yes
10044       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'
10045       # Note: this linker hardcodes the directories in LIBPATH if there
10046       # are no directories specified by -L.
10047       hardcode_minus_L=yes
10048       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10049         # Neither direct hardcoding nor static linking is supported with a
10050         # broken collect2.
10051         hardcode_direct=unsupported
10052       fi
10053       ;;
10054
10055     aix[4-9]*)
10056       if test "$host_cpu" = ia64; then
10057         # On IA64, the linker does run time linking by default, so we don't
10058         # have to do anything special.
10059         aix_use_runtimelinking=no
10060         exp_sym_flag='-Bexport'
10061         no_entry_flag=""
10062       else
10063         # If we're using GNU nm, then we don't want the "-C" option.
10064         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10065         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10066           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'
10067         else
10068           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'
10069         fi
10070         aix_use_runtimelinking=no
10071
10072         # Test if we are trying to use run time linking or normal
10073         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10074         # need to do runtime linking.
10075         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10076           for ld_flag in $LDFLAGS; do
10077           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10078             aix_use_runtimelinking=yes
10079             break
10080           fi
10081           done
10082           ;;
10083         esac
10084
10085         exp_sym_flag='-bexport'
10086         no_entry_flag='-bnoentry'
10087       fi
10088
10089       # When large executables or shared objects are built, AIX ld can
10090       # have problems creating the table of contents.  If linking a library
10091       # or program results in "error TOC overflow" add -mminimal-toc to
10092       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10093       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10094
10095       archive_cmds=''
10096       hardcode_direct=yes
10097       hardcode_direct_absolute=yes
10098       hardcode_libdir_separator=':'
10099       link_all_deplibs=yes
10100       file_list_spec='${wl}-f,'
10101
10102       if test "$GCC" = yes; then
10103         case $host_os in aix4.[012]|aix4.[012].*)
10104         # We only want to do this on AIX 4.2 and lower, the check
10105         # below for broken collect2 doesn't work under 4.3+
10106           collect2name=`${CC} -print-prog-name=collect2`
10107           if test -f "$collect2name" &&
10108            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10109           then
10110           # We have reworked collect2
10111           :
10112           else
10113           # We have old collect2
10114           hardcode_direct=unsupported
10115           # It fails to find uninstalled libraries when the uninstalled
10116           # path is not listed in the libpath.  Setting hardcode_minus_L
10117           # to unsupported forces relinking
10118           hardcode_minus_L=yes
10119           hardcode_libdir_flag_spec='-L$libdir'
10120           hardcode_libdir_separator=
10121           fi
10122           ;;
10123         esac
10124         shared_flag='-shared'
10125         if test "$aix_use_runtimelinking" = yes; then
10126           shared_flag="$shared_flag "'${wl}-G'
10127         fi
10128         link_all_deplibs=no
10129       else
10130         # not using gcc
10131         if test "$host_cpu" = ia64; then
10132         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10133         # chokes on -Wl,-G. The following line is correct:
10134           shared_flag='-G'
10135         else
10136           if test "$aix_use_runtimelinking" = yes; then
10137             shared_flag='${wl}-G'
10138           else
10139             shared_flag='${wl}-bM:SRE'
10140           fi
10141         fi
10142       fi
10143
10144       export_dynamic_flag_spec='${wl}-bexpall'
10145       # It seems that -bexpall does not export symbols beginning with
10146       # underscore (_), so it is better to generate a list of symbols to export.
10147       always_export_symbols=yes
10148       if test "$aix_use_runtimelinking" = yes; then
10149         # Warning - without using the other runtime loading flags (-brtl),
10150         # -berok will link without error, but may produce a broken library.
10151         allow_undefined_flag='-berok'
10152         # Determine the default libpath from the value encoded in an
10153         # empty executable.
10154         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h.  */
10156
10157 int
10158 main ()
10159 {
10160
10161   ;
10162   return 0;
10163 }
10164 _ACEOF
10165 if ac_fn_c_try_link "$LINENO"; then :
10166
10167 lt_aix_libpath_sed='
10168     /Import File Strings/,/^$/ {
10169         /^0/ {
10170             s/^0  *\(.*\)$/\1/
10171             p
10172         }
10173     }'
10174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10175 # Check for a 64-bit object if we didn't find anything.
10176 if test -z "$aix_libpath"; then
10177   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10178 fi
10179 fi
10180 rm -f core conftest.err conftest.$ac_objext \
10181     conftest$ac_exeext conftest.$ac_ext
10182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10183
10184         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10185         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"
10186       else
10187         if test "$host_cpu" = ia64; then
10188           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10189           allow_undefined_flag="-z nodefs"
10190           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"
10191         else
10192          # Determine the default libpath from the value encoded in an
10193          # empty executable.
10194          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h.  */
10196
10197 int
10198 main ()
10199 {
10200
10201   ;
10202   return 0;
10203 }
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"; then :
10206
10207 lt_aix_libpath_sed='
10208     /Import File Strings/,/^$/ {
10209         /^0/ {
10210             s/^0  *\(.*\)$/\1/
10211             p
10212         }
10213     }'
10214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10215 # Check for a 64-bit object if we didn't find anything.
10216 if test -z "$aix_libpath"; then
10217   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10218 fi
10219 fi
10220 rm -f core conftest.err conftest.$ac_objext \
10221     conftest$ac_exeext conftest.$ac_ext
10222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10223
10224          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10225           # Warning - without using the other run time loading flags,
10226           # -berok will link without error, but may produce a broken library.
10227           no_undefined_flag=' ${wl}-bernotok'
10228           allow_undefined_flag=' ${wl}-berok'
10229           # Exported symbols can be pulled into shared objects from archives
10230           whole_archive_flag_spec='$convenience'
10231           archive_cmds_need_lc=yes
10232           # This is similar to how AIX traditionally builds its shared libraries.
10233           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'
10234         fi
10235       fi
10236       ;;
10237
10238     amigaos*)
10239       case $host_cpu in
10240       powerpc)
10241             # see comment about AmigaOS4 .so support
10242             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10243             archive_expsym_cmds=''
10244         ;;
10245       m68k)
10246             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)'
10247             hardcode_libdir_flag_spec='-L$libdir'
10248             hardcode_minus_L=yes
10249         ;;
10250       esac
10251       ;;
10252
10253     bsdi[45]*)
10254       export_dynamic_flag_spec=-rdynamic
10255       ;;
10256
10257     cygwin* | mingw* | pw32* | cegcc*)
10258       # When not using gcc, we currently assume that we are using
10259       # Microsoft Visual C++.
10260       # hardcode_libdir_flag_spec is actually meaningless, as there is
10261       # no search path for DLLs.
10262       hardcode_libdir_flag_spec=' '
10263       allow_undefined_flag=unsupported
10264       # Tell ltmain to make .lib files, not .a files.
10265       libext=lib
10266       # Tell ltmain to make .dll files, not .so files.
10267       shrext_cmds=".dll"
10268       # FIXME: Setting linknames here is a bad hack.
10269       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10270       # The linker will automatically build a .lib file if we build a DLL.
10271       old_archive_from_new_cmds='true'
10272       # FIXME: Should let the user specify the lib program.
10273       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10274       fix_srcfile_path='`cygpath -w "$srcfile"`'
10275       enable_shared_with_static_runtimes=yes
10276       ;;
10277
10278     darwin* | rhapsody*)
10279
10280
10281   archive_cmds_need_lc=no
10282   hardcode_direct=no
10283   hardcode_automatic=yes
10284   hardcode_shlibpath_var=unsupported
10285   whole_archive_flag_spec=''
10286   link_all_deplibs=yes
10287   allow_undefined_flag="$_lt_dar_allow_undefined"
10288   case $cc_basename in
10289      ifort*) _lt_dar_can_shared=yes ;;
10290      *) _lt_dar_can_shared=$GCC ;;
10291   esac
10292   if test "$_lt_dar_can_shared" = "yes"; then
10293     output_verbose_link_cmd=echo
10294     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10295     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10296     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}"
10297     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}"
10298
10299   else
10300   ld_shlibs=no
10301   fi
10302
10303       ;;
10304
10305     dgux*)
10306       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307       hardcode_libdir_flag_spec='-L$libdir'
10308       hardcode_shlibpath_var=no
10309       ;;
10310
10311     freebsd1*)
10312       ld_shlibs=no
10313       ;;
10314
10315     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10316     # support.  Future versions do this automatically, but an explicit c++rt0.o
10317     # does not break anything, and helps significantly (at the cost of a little
10318     # extra space).
10319     freebsd2.2*)
10320       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10321       hardcode_libdir_flag_spec='-R$libdir'
10322       hardcode_direct=yes
10323       hardcode_shlibpath_var=no
10324       ;;
10325
10326     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10327     freebsd2*)
10328       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10329       hardcode_direct=yes
10330       hardcode_minus_L=yes
10331       hardcode_shlibpath_var=no
10332       ;;
10333
10334     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10335     freebsd* | dragonfly*)
10336       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10337       hardcode_libdir_flag_spec='-R$libdir'
10338       hardcode_direct=yes
10339       hardcode_shlibpath_var=no
10340       ;;
10341
10342     hpux9*)
10343       if test "$GCC" = yes; then
10344         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'
10345       else
10346         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'
10347       fi
10348       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10349       hardcode_libdir_separator=:
10350       hardcode_direct=yes
10351
10352       # hardcode_minus_L: Not really in the search PATH,
10353       # but as the default location of the library.
10354       hardcode_minus_L=yes
10355       export_dynamic_flag_spec='${wl}-E'
10356       ;;
10357
10358     hpux10*)
10359       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10360         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10361       else
10362         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10363       fi
10364       if test "$with_gnu_ld" = no; then
10365         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10366         hardcode_libdir_flag_spec_ld='+b $libdir'
10367         hardcode_libdir_separator=:
10368         hardcode_direct=yes
10369         hardcode_direct_absolute=yes
10370         export_dynamic_flag_spec='${wl}-E'
10371         # hardcode_minus_L: Not really in the search PATH,
10372         # but as the default location of the library.
10373         hardcode_minus_L=yes
10374       fi
10375       ;;
10376
10377     hpux11*)
10378       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10379         case $host_cpu in
10380         hppa*64*)
10381           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10382           ;;
10383         ia64*)
10384           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10385           ;;
10386         *)
10387           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10388           ;;
10389         esac
10390       else
10391         case $host_cpu in
10392         hppa*64*)
10393           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10394           ;;
10395         ia64*)
10396           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10397           ;;
10398         *)
10399           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10400           ;;
10401         esac
10402       fi
10403       if test "$with_gnu_ld" = no; then
10404         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10405         hardcode_libdir_separator=:
10406
10407         case $host_cpu in
10408         hppa*64*|ia64*)
10409           hardcode_direct=no
10410           hardcode_shlibpath_var=no
10411           ;;
10412         *)
10413           hardcode_direct=yes
10414           hardcode_direct_absolute=yes
10415           export_dynamic_flag_spec='${wl}-E'
10416
10417           # hardcode_minus_L: Not really in the search PATH,
10418           # but as the default location of the library.
10419           hardcode_minus_L=yes
10420           ;;
10421         esac
10422       fi
10423       ;;
10424
10425     irix5* | irix6* | nonstopux*)
10426       if test "$GCC" = yes; then
10427         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'
10428         # Try to use the -exported_symbol ld option, if it does not
10429         # work, assume that -exports_file does not work either and
10430         # implicitly export all symbols.
10431         save_LDFLAGS="$LDFLAGS"
10432         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10433         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h.  */
10435 int foo(void) {}
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"; then :
10438   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'
10439
10440 fi
10441 rm -f core conftest.err conftest.$ac_objext \
10442     conftest$ac_exeext conftest.$ac_ext
10443         LDFLAGS="$save_LDFLAGS"
10444       else
10445         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'
10446         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'
10447       fi
10448       archive_cmds_need_lc='no'
10449       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10450       hardcode_libdir_separator=:
10451       inherit_rpath=yes
10452       link_all_deplibs=yes
10453       ;;
10454
10455     netbsd* | netbsdelf*-gnu)
10456       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10457         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10458       else
10459         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10460       fi
10461       hardcode_libdir_flag_spec='-R$libdir'
10462       hardcode_direct=yes
10463       hardcode_shlibpath_var=no
10464       ;;
10465
10466     newsos6)
10467       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468       hardcode_direct=yes
10469       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10470       hardcode_libdir_separator=:
10471       hardcode_shlibpath_var=no
10472       ;;
10473
10474     *nto* | *qnx*)
10475       ;;
10476
10477     openbsd*)
10478       if test -f /usr/libexec/ld.so; then
10479         hardcode_direct=yes
10480         hardcode_shlibpath_var=no
10481         hardcode_direct_absolute=yes
10482         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10483           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10484           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10485           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10486           export_dynamic_flag_spec='${wl}-E'
10487         else
10488           case $host_os in
10489            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10490              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10491              hardcode_libdir_flag_spec='-R$libdir'
10492              ;;
10493            *)
10494              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10496              ;;
10497           esac
10498         fi
10499       else
10500         ld_shlibs=no
10501       fi
10502       ;;
10503
10504     os2*)
10505       hardcode_libdir_flag_spec='-L$libdir'
10506       hardcode_minus_L=yes
10507       allow_undefined_flag=unsupported
10508       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'
10509       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10510       ;;
10511
10512     osf3*)
10513       if test "$GCC" = yes; then
10514         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10515         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'
10516       else
10517         allow_undefined_flag=' -expect_unresolved \*'
10518         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'
10519       fi
10520       archive_cmds_need_lc='no'
10521       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10522       hardcode_libdir_separator=:
10523       ;;
10524
10525     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10526       if test "$GCC" = yes; then
10527         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10528         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'
10529         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10530       else
10531         allow_undefined_flag=' -expect_unresolved \*'
10532         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'
10533         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~
10534         $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'
10535
10536         # Both c and cxx compiler support -rpath directly
10537         hardcode_libdir_flag_spec='-rpath $libdir'
10538       fi
10539       archive_cmds_need_lc='no'
10540       hardcode_libdir_separator=:
10541       ;;
10542
10543     solaris*)
10544       no_undefined_flag=' -z defs'
10545       if test "$GCC" = yes; then
10546         wlarc='${wl}'
10547         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10548         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10549           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10550       else
10551         case `$CC -V 2>&1` in
10552         *"Compilers 5.0"*)
10553           wlarc=''
10554           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10555           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10556           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10557           ;;
10558         *)
10559           wlarc='${wl}'
10560           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10561           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10562           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10563           ;;
10564         esac
10565       fi
10566       hardcode_libdir_flag_spec='-R$libdir'
10567       hardcode_shlibpath_var=no
10568       case $host_os in
10569       solaris2.[0-5] | solaris2.[0-5].*) ;;
10570       *)
10571         # The compiler driver will combine and reorder linker options,
10572         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10573         # but is careful enough not to reorder.
10574         # Supported since Solaris 2.6 (maybe 2.5.1?)
10575         if test "$GCC" = yes; then
10576           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10577         else
10578           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10579         fi
10580         ;;
10581       esac
10582       link_all_deplibs=yes
10583       ;;
10584
10585     sunos4*)
10586       if test "x$host_vendor" = xsequent; then
10587         # Use $CC to link under sequent, because it throws in some extra .o
10588         # files that make .init and .fini sections work.
10589         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10590       else
10591         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10592       fi
10593       hardcode_libdir_flag_spec='-L$libdir'
10594       hardcode_direct=yes
10595       hardcode_minus_L=yes
10596       hardcode_shlibpath_var=no
10597       ;;
10598
10599     sysv4)
10600       case $host_vendor in
10601         sni)
10602           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603           hardcode_direct=yes # is this really true???
10604         ;;
10605         siemens)
10606           ## LD is ld it makes a PLAMLIB
10607           ## CC just makes a GrossModule.
10608           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10609           reload_cmds='$CC -r -o $output$reload_objs'
10610           hardcode_direct=no
10611         ;;
10612         motorola)
10613           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10615         ;;
10616       esac
10617       runpath_var='LD_RUN_PATH'
10618       hardcode_shlibpath_var=no
10619       ;;
10620
10621     sysv4.3*)
10622       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623       hardcode_shlibpath_var=no
10624       export_dynamic_flag_spec='-Bexport'
10625       ;;
10626
10627     sysv4*MP*)
10628       if test -d /usr/nec; then
10629         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10630         hardcode_shlibpath_var=no
10631         runpath_var=LD_RUN_PATH
10632         hardcode_runpath_var=yes
10633         ld_shlibs=yes
10634       fi
10635       ;;
10636
10637     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10638       no_undefined_flag='${wl}-z,text'
10639       archive_cmds_need_lc=no
10640       hardcode_shlibpath_var=no
10641       runpath_var='LD_RUN_PATH'
10642
10643       if test "$GCC" = yes; then
10644         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646       else
10647         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649       fi
10650       ;;
10651
10652     sysv5* | sco3.2v5* | sco5v6*)
10653       # Note: We can NOT use -z defs as we might desire, because we do not
10654       # link with -lc, and that would cause any symbols used from libc to
10655       # always be unresolved, which means just about no library would
10656       # ever link correctly.  If we're not using GNU ld we use -z text
10657       # though, which does catch some bad symbols but isn't as heavy-handed
10658       # as -z defs.
10659       no_undefined_flag='${wl}-z,text'
10660       allow_undefined_flag='${wl}-z,nodefs'
10661       archive_cmds_need_lc=no
10662       hardcode_shlibpath_var=no
10663       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10664       hardcode_libdir_separator=':'
10665       link_all_deplibs=yes
10666       export_dynamic_flag_spec='${wl}-Bexport'
10667       runpath_var='LD_RUN_PATH'
10668
10669       if test "$GCC" = yes; then
10670         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672       else
10673         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10674         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675       fi
10676       ;;
10677
10678     uts4*)
10679       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680       hardcode_libdir_flag_spec='-L$libdir'
10681       hardcode_shlibpath_var=no
10682       ;;
10683
10684     *)
10685       ld_shlibs=no
10686       ;;
10687     esac
10688
10689     if test x$host_vendor = xsni; then
10690       case $host in
10691       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10692         export_dynamic_flag_spec='${wl}-Blargedynsym'
10693         ;;
10694       esac
10695     fi
10696   fi
10697
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10699 $as_echo "$ld_shlibs" >&6; }
10700 test "$ld_shlibs" = no && can_build_shared=no
10701
10702 with_gnu_ld=$with_gnu_ld
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718 #
10719 # Do we need to explicitly link libc?
10720 #
10721 case "x$archive_cmds_need_lc" in
10722 x|xyes)
10723   # Assume -lc should be added
10724   archive_cmds_need_lc=yes
10725
10726   if test "$enable_shared" = yes && test "$GCC" = yes; then
10727     case $archive_cmds in
10728     *'~'*)
10729       # FIXME: we may have to deal with multi-command sequences.
10730       ;;
10731     '$CC '*)
10732       # Test whether the compiler implicitly links with -lc since on some
10733       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10734       # to ld, don't add -lc before -lgcc.
10735       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10736 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10737       $RM conftest*
10738       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10739
10740       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10741   (eval $ac_compile) 2>&5
10742   ac_status=$?
10743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10744   test $ac_status = 0; } 2>conftest.err; then
10745         soname=conftest
10746         lib=conftest
10747         libobjs=conftest.$ac_objext
10748         deplibs=
10749         wl=$lt_prog_compiler_wl
10750         pic_flag=$lt_prog_compiler_pic
10751         compiler_flags=-v
10752         linker_flags=-v
10753         verstring=
10754         output_objdir=.
10755         libname=conftest
10756         lt_save_allow_undefined_flag=$allow_undefined_flag
10757         allow_undefined_flag=
10758         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10759   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10760   ac_status=$?
10761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10762   test $ac_status = 0; }
10763         then
10764           archive_cmds_need_lc=no
10765         else
10766           archive_cmds_need_lc=yes
10767         fi
10768         allow_undefined_flag=$lt_save_allow_undefined_flag
10769       else
10770         cat conftest.err 1>&5
10771       fi
10772       $RM conftest*
10773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10774 $as_echo "$archive_cmds_need_lc" >&6; }
10775       ;;
10776     esac
10777   fi
10778   ;;
10779 esac
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
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10938 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10939
10940 if test "$GCC" = yes; then
10941   case $host_os in
10942     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10943     *) lt_awk_arg="/^libraries:/" ;;
10944   esac
10945   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10946   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10947     # if the path contains ";" then we assume it to be the separator
10948     # otherwise default to the standard path separator (i.e. ":") - it is
10949     # assumed that no part of a normal pathname contains ";" but that should
10950     # okay in the real world where ";" in dirpaths is itself problematic.
10951     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10952   else
10953     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10954   fi
10955   # Ok, now we have the path, separated by spaces, we can step through it
10956   # and add multilib dir if necessary.
10957   lt_tmp_lt_search_path_spec=
10958   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10959   for lt_sys_path in $lt_search_path_spec; do
10960     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10961       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10962     else
10963       test -d "$lt_sys_path" && \
10964         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10965     fi
10966   done
10967   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10968 BEGIN {RS=" "; FS="/|\n";} {
10969   lt_foo="";
10970   lt_count=0;
10971   for (lt_i = NF; lt_i > 0; lt_i--) {
10972     if ($lt_i != "" && $lt_i != ".") {
10973       if ($lt_i == "..") {
10974         lt_count++;
10975       } else {
10976         if (lt_count == 0) {
10977           lt_foo="/" $lt_i lt_foo;
10978         } else {
10979           lt_count--;
10980         }
10981       }
10982     }
10983   }
10984   if (lt_foo != "") { lt_freq[lt_foo]++; }
10985   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10986 }'`
10987   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10988 else
10989   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10990 fi
10991 library_names_spec=
10992 libname_spec='lib$name'
10993 soname_spec=
10994 shrext_cmds=".so"
10995 postinstall_cmds=
10996 postuninstall_cmds=
10997 finish_cmds=
10998 finish_eval=
10999 shlibpath_var=
11000 shlibpath_overrides_runpath=unknown
11001 version_type=none
11002 dynamic_linker="$host_os ld.so"
11003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11004 need_lib_prefix=unknown
11005 hardcode_into_libs=no
11006
11007 # when you set need_version to no, make sure it does not cause -set_version
11008 # flags to be left without arguments
11009 need_version=unknown
11010
11011 case $host_os in
11012 aix3*)
11013   version_type=linux
11014   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11015   shlibpath_var=LIBPATH
11016
11017   # AIX 3 has no versioning support, so we append a major version to the name.
11018   soname_spec='${libname}${release}${shared_ext}$major'
11019   ;;
11020
11021 aix[4-9]*)
11022   version_type=linux
11023   need_lib_prefix=no
11024   need_version=no
11025   hardcode_into_libs=yes
11026   if test "$host_cpu" = ia64; then
11027     # AIX 5 supports IA64
11028     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11029     shlibpath_var=LD_LIBRARY_PATH
11030   else
11031     # With GCC up to 2.95.x, collect2 would create an import file
11032     # for dependence libraries.  The import file would start with
11033     # the line `#! .'.  This would cause the generated library to
11034     # depend on `.', always an invalid library.  This was fixed in
11035     # development snapshots of GCC prior to 3.0.
11036     case $host_os in
11037       aix4 | aix4.[01] | aix4.[01].*)
11038       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11039            echo ' yes '
11040            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11041         :
11042       else
11043         can_build_shared=no
11044       fi
11045       ;;
11046     esac
11047     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11048     # soname into executable. Probably we can add versioning support to
11049     # collect2, so additional links can be useful in future.
11050     if test "$aix_use_runtimelinking" = yes; then
11051       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11052       # instead of lib<name>.a to let people know that these are not
11053       # typical AIX shared libraries.
11054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055     else
11056       # We preserve .a as extension for shared libraries through AIX4.2
11057       # and later when we are not doing run time linking.
11058       library_names_spec='${libname}${release}.a $libname.a'
11059       soname_spec='${libname}${release}${shared_ext}$major'
11060     fi
11061     shlibpath_var=LIBPATH
11062   fi
11063   ;;
11064
11065 amigaos*)
11066   case $host_cpu in
11067   powerpc)
11068     # Since July 2007 AmigaOS4 officially supports .so libraries.
11069     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071     ;;
11072   m68k)
11073     library_names_spec='$libname.ixlibrary $libname.a'
11074     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11075     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'
11076     ;;
11077   esac
11078   ;;
11079
11080 beos*)
11081   library_names_spec='${libname}${shared_ext}'
11082   dynamic_linker="$host_os ld.so"
11083   shlibpath_var=LIBRARY_PATH
11084   ;;
11085
11086 bsdi[45]*)
11087   version_type=linux
11088   need_version=no
11089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090   soname_spec='${libname}${release}${shared_ext}$major'
11091   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11092   shlibpath_var=LD_LIBRARY_PATH
11093   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11094   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11095   # the default ld.so.conf also contains /usr/contrib/lib and
11096   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11097   # libtool to hard-code these into programs
11098   ;;
11099
11100 cygwin* | mingw* | pw32* | cegcc*)
11101   version_type=windows
11102   shrext_cmds=".dll"
11103   need_version=no
11104   need_lib_prefix=no
11105
11106   case $GCC,$host_os in
11107   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11108     library_names_spec='$libname.dll.a'
11109     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11110     postinstall_cmds='base_file=`basename \${file}`~
11111       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11112       dldir=$destdir/`dirname \$dlpath`~
11113       test -d \$dldir || mkdir -p \$dldir~
11114       $install_prog $dir/$dlname \$dldir/$dlname~
11115       chmod a+x \$dldir/$dlname~
11116       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11117         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11118       fi'
11119     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11120       dlpath=$dir/\$dldll~
11121        $RM \$dlpath'
11122     shlibpath_overrides_runpath=yes
11123
11124     case $host_os in
11125     cygwin*)
11126       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11127       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11128       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11129       ;;
11130     mingw* | cegcc*)
11131       # MinGW DLLs use traditional 'lib' prefix
11132       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11133       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11134       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11135         # It is most probably a Windows format PATH printed by
11136         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11137         # path with ; separators, and with drive letters. We can handle the
11138         # drive letters (cygwin fileutils understands them), so leave them,
11139         # especially as we might pass files found there to a mingw objdump,
11140         # which wouldn't understand a cygwinified path. Ahh.
11141         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11142       else
11143         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11144       fi
11145       ;;
11146     pw32*)
11147       # pw32 DLLs use 'pw' prefix rather than 'lib'
11148       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11149       ;;
11150     esac
11151     ;;
11152
11153   *)
11154     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11155     ;;
11156   esac
11157   dynamic_linker='Win32 ld.exe'
11158   # FIXME: first we should search . and the directory the executable is in
11159   shlibpath_var=PATH
11160   ;;
11161
11162 darwin* | rhapsody*)
11163   dynamic_linker="$host_os dyld"
11164   version_type=darwin
11165   need_lib_prefix=no
11166   need_version=no
11167   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11168   soname_spec='${libname}${release}${major}$shared_ext'
11169   shlibpath_overrides_runpath=yes
11170   shlibpath_var=DYLD_LIBRARY_PATH
11171   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11172
11173   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11174   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11175   ;;
11176
11177 dgux*)
11178   version_type=linux
11179   need_lib_prefix=no
11180   need_version=no
11181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11182   soname_spec='${libname}${release}${shared_ext}$major'
11183   shlibpath_var=LD_LIBRARY_PATH
11184   ;;
11185
11186 freebsd1*)
11187   dynamic_linker=no
11188   ;;
11189
11190 freebsd* | dragonfly*)
11191   # DragonFly does not have aout.  When/if they implement a new
11192   # versioning mechanism, adjust this.
11193   if test -x /usr/bin/objformat; then
11194     objformat=`/usr/bin/objformat`
11195   else
11196     case $host_os in
11197     freebsd[123]*) objformat=aout ;;
11198     *) objformat=elf ;;
11199     esac
11200   fi
11201   version_type=freebsd-$objformat
11202   case $version_type in
11203     freebsd-elf*)
11204       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11205       need_version=no
11206       need_lib_prefix=no
11207       ;;
11208     freebsd-*)
11209       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11210       need_version=yes
11211       ;;
11212   esac
11213   shlibpath_var=LD_LIBRARY_PATH
11214   case $host_os in
11215   freebsd2*)
11216     shlibpath_overrides_runpath=yes
11217     ;;
11218   freebsd3.[01]* | freebsdelf3.[01]*)
11219     shlibpath_overrides_runpath=yes
11220     hardcode_into_libs=yes
11221     ;;
11222   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11223   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11224     shlibpath_overrides_runpath=no
11225     hardcode_into_libs=yes
11226     ;;
11227   *) # from 4.6 on, and DragonFly
11228     shlibpath_overrides_runpath=yes
11229     hardcode_into_libs=yes
11230     ;;
11231   esac
11232   ;;
11233
11234 gnu*)
11235   version_type=linux
11236   need_lib_prefix=no
11237   need_version=no
11238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11239   soname_spec='${libname}${release}${shared_ext}$major'
11240   shlibpath_var=LD_LIBRARY_PATH
11241   hardcode_into_libs=yes
11242   ;;
11243
11244 hpux9* | hpux10* | hpux11*)
11245   # Give a soname corresponding to the major version so that dld.sl refuses to
11246   # link against other versions.
11247   version_type=sunos
11248   need_lib_prefix=no
11249   need_version=no
11250   case $host_cpu in
11251   ia64*)
11252     shrext_cmds='.so'
11253     hardcode_into_libs=yes
11254     dynamic_linker="$host_os dld.so"
11255     shlibpath_var=LD_LIBRARY_PATH
11256     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258     soname_spec='${libname}${release}${shared_ext}$major'
11259     if test "X$HPUX_IA64_MODE" = X32; then
11260       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11261     else
11262       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11263     fi
11264     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11265     ;;
11266   hppa*64*)
11267     shrext_cmds='.sl'
11268     hardcode_into_libs=yes
11269     dynamic_linker="$host_os dld.sl"
11270     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11271     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273     soname_spec='${libname}${release}${shared_ext}$major'
11274     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11275     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11276     ;;
11277   *)
11278     shrext_cmds='.sl'
11279     dynamic_linker="$host_os dld.sl"
11280     shlibpath_var=SHLIB_PATH
11281     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283     soname_spec='${libname}${release}${shared_ext}$major'
11284     ;;
11285   esac
11286   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11287   postinstall_cmds='chmod 555 $lib'
11288   ;;
11289
11290 interix[3-9]*)
11291   version_type=linux
11292   need_lib_prefix=no
11293   need_version=no
11294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11295   soname_spec='${libname}${release}${shared_ext}$major'
11296   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11297   shlibpath_var=LD_LIBRARY_PATH
11298   shlibpath_overrides_runpath=no
11299   hardcode_into_libs=yes
11300   ;;
11301
11302 irix5* | irix6* | nonstopux*)
11303   case $host_os in
11304     nonstopux*) version_type=nonstopux ;;
11305     *)
11306         if test "$lt_cv_prog_gnu_ld" = yes; then
11307                 version_type=linux
11308         else
11309                 version_type=irix
11310         fi ;;
11311   esac
11312   need_lib_prefix=no
11313   need_version=no
11314   soname_spec='${libname}${release}${shared_ext}$major'
11315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11316   case $host_os in
11317   irix5* | nonstopux*)
11318     libsuff= shlibsuff=
11319     ;;
11320   *)
11321     case $LD in # libtool.m4 will add one of these switches to LD
11322     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11323       libsuff= shlibsuff= libmagic=32-bit;;
11324     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11325       libsuff=32 shlibsuff=N32 libmagic=N32;;
11326     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11327       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11328     *) libsuff= shlibsuff= libmagic=never-match;;
11329     esac
11330     ;;
11331   esac
11332   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11333   shlibpath_overrides_runpath=no
11334   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11335   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11336   hardcode_into_libs=yes
11337   ;;
11338
11339 # No shared lib support for Linux oldld, aout, or coff.
11340 linux*oldld* | linux*aout* | linux*coff*)
11341   dynamic_linker=no
11342   ;;
11343
11344 # This must be Linux ELF.
11345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11346   version_type=linux
11347   need_lib_prefix=no
11348   need_version=no
11349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350   soname_spec='${libname}${release}${shared_ext}$major'
11351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11352   shlibpath_var=LD_LIBRARY_PATH
11353   shlibpath_overrides_runpath=no
11354   # Some binutils ld are patched to set DT_RUNPATH
11355   save_LDFLAGS=$LDFLAGS
11356   save_libdir=$libdir
11357   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11358        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h.  */
11361
11362 int
11363 main ()
11364 {
11365
11366   ;
11367   return 0;
11368 }
11369 _ACEOF
11370 if ac_fn_c_try_link "$LINENO"; then :
11371   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11372   shlibpath_overrides_runpath=yes
11373 fi
11374 fi
11375 rm -f core conftest.err conftest.$ac_objext \
11376     conftest$ac_exeext conftest.$ac_ext
11377   LDFLAGS=$save_LDFLAGS
11378   libdir=$save_libdir
11379
11380   # This implies no fast_install, which is unacceptable.
11381   # Some rework will be needed to allow for fast_install
11382   # before this can be enabled.
11383   hardcode_into_libs=yes
11384
11385   # Append ld.so.conf contents to the search path
11386   if test -f /etc/ld.so.conf; then
11387     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' ' '`
11388     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11389   fi
11390
11391   # We used to test for /lib/ld.so.1 and disable shared libraries on
11392   # powerpc, because MkLinux only supported shared libraries with the
11393   # GNU dynamic linker.  Since this was broken with cross compilers,
11394   # most powerpc-linux boxes support dynamic linking these days and
11395   # people can always --disable-shared, the test was removed, and we
11396   # assume the GNU/Linux dynamic linker is in use.
11397   dynamic_linker='GNU/Linux ld.so'
11398   ;;
11399
11400 netbsdelf*-gnu)
11401   version_type=linux
11402   need_lib_prefix=no
11403   need_version=no
11404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11405   soname_spec='${libname}${release}${shared_ext}$major'
11406   shlibpath_var=LD_LIBRARY_PATH
11407   shlibpath_overrides_runpath=no
11408   hardcode_into_libs=yes
11409   dynamic_linker='NetBSD ld.elf_so'
11410   ;;
11411
11412 netbsd*)
11413   version_type=sunos
11414   need_lib_prefix=no
11415   need_version=no
11416   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11418     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11419     dynamic_linker='NetBSD (a.out) ld.so'
11420   else
11421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11422     soname_spec='${libname}${release}${shared_ext}$major'
11423     dynamic_linker='NetBSD ld.elf_so'
11424   fi
11425   shlibpath_var=LD_LIBRARY_PATH
11426   shlibpath_overrides_runpath=yes
11427   hardcode_into_libs=yes
11428   ;;
11429
11430 newsos6)
11431   version_type=linux
11432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433   shlibpath_var=LD_LIBRARY_PATH
11434   shlibpath_overrides_runpath=yes
11435   ;;
11436
11437 *nto* | *qnx*)
11438   version_type=qnx
11439   need_lib_prefix=no
11440   need_version=no
11441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442   soname_spec='${libname}${release}${shared_ext}$major'
11443   shlibpath_var=LD_LIBRARY_PATH
11444   shlibpath_overrides_runpath=no
11445   hardcode_into_libs=yes
11446   dynamic_linker='ldqnx.so'
11447   ;;
11448
11449 openbsd*)
11450   version_type=sunos
11451   sys_lib_dlsearch_path_spec="/usr/lib"
11452   need_lib_prefix=no
11453   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11454   case $host_os in
11455     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11456     *)                          need_version=no  ;;
11457   esac
11458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11460   shlibpath_var=LD_LIBRARY_PATH
11461   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11462     case $host_os in
11463       openbsd2.[89] | openbsd2.[89].*)
11464         shlibpath_overrides_runpath=no
11465         ;;
11466       *)
11467         shlibpath_overrides_runpath=yes
11468         ;;
11469       esac
11470   else
11471     shlibpath_overrides_runpath=yes
11472   fi
11473   ;;
11474
11475 os2*)
11476   libname_spec='$name'
11477   shrext_cmds=".dll"
11478   need_lib_prefix=no
11479   library_names_spec='$libname${shared_ext} $libname.a'
11480   dynamic_linker='OS/2 ld.exe'
11481   shlibpath_var=LIBPATH
11482   ;;
11483
11484 osf3* | osf4* | osf5*)
11485   version_type=osf
11486   need_lib_prefix=no
11487   need_version=no
11488   soname_spec='${libname}${release}${shared_ext}$major'
11489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490   shlibpath_var=LD_LIBRARY_PATH
11491   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11492   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11493   ;;
11494
11495 rdos*)
11496   dynamic_linker=no
11497   ;;
11498
11499 solaris*)
11500   version_type=linux
11501   need_lib_prefix=no
11502   need_version=no
11503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504   soname_spec='${libname}${release}${shared_ext}$major'
11505   shlibpath_var=LD_LIBRARY_PATH
11506   shlibpath_overrides_runpath=yes
11507   hardcode_into_libs=yes
11508   # ldd complains unless libraries are executable
11509   postinstall_cmds='chmod +x $lib'
11510   ;;
11511
11512 sunos4*)
11513   version_type=sunos
11514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11515   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11516   shlibpath_var=LD_LIBRARY_PATH
11517   shlibpath_overrides_runpath=yes
11518   if test "$with_gnu_ld" = yes; then
11519     need_lib_prefix=no
11520   fi
11521   need_version=yes
11522   ;;
11523
11524 sysv4 | sysv4.3*)
11525   version_type=linux
11526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527   soname_spec='${libname}${release}${shared_ext}$major'
11528   shlibpath_var=LD_LIBRARY_PATH
11529   case $host_vendor in
11530     sni)
11531       shlibpath_overrides_runpath=no
11532       need_lib_prefix=no
11533       runpath_var=LD_RUN_PATH
11534       ;;
11535     siemens)
11536       need_lib_prefix=no
11537       ;;
11538     motorola)
11539       need_lib_prefix=no
11540       need_version=no
11541       shlibpath_overrides_runpath=no
11542       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11543       ;;
11544   esac
11545   ;;
11546
11547 sysv4*MP*)
11548   if test -d /usr/nec ;then
11549     version_type=linux
11550     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11551     soname_spec='$libname${shared_ext}.$major'
11552     shlibpath_var=LD_LIBRARY_PATH
11553   fi
11554   ;;
11555
11556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11557   version_type=freebsd-elf
11558   need_lib_prefix=no
11559   need_version=no
11560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11561   soname_spec='${libname}${release}${shared_ext}$major'
11562   shlibpath_var=LD_LIBRARY_PATH
11563   shlibpath_overrides_runpath=yes
11564   hardcode_into_libs=yes
11565   if test "$with_gnu_ld" = yes; then
11566     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11567   else
11568     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11569     case $host_os in
11570       sco3.2v5*)
11571         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11572         ;;
11573     esac
11574   fi
11575   sys_lib_dlsearch_path_spec='/usr/lib'
11576   ;;
11577
11578 tpf*)
11579   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11580   version_type=linux
11581   need_lib_prefix=no
11582   need_version=no
11583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584   shlibpath_var=LD_LIBRARY_PATH
11585   shlibpath_overrides_runpath=no
11586   hardcode_into_libs=yes
11587   ;;
11588
11589 uts4*)
11590   version_type=linux
11591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592   soname_spec='${libname}${release}${shared_ext}$major'
11593   shlibpath_var=LD_LIBRARY_PATH
11594   ;;
11595
11596 *)
11597   dynamic_linker=no
11598   ;;
11599 esac
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11601 $as_echo "$dynamic_linker" >&6; }
11602 test "$dynamic_linker" = no && can_build_shared=no
11603
11604 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11605 if test "$GCC" = yes; then
11606   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11607 fi
11608
11609 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11610   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11611 fi
11612 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11613   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11614 fi
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11703 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11704 hardcode_action=
11705 if test -n "$hardcode_libdir_flag_spec" ||
11706    test -n "$runpath_var" ||
11707    test "X$hardcode_automatic" = "Xyes" ; then
11708
11709   # We can hardcode non-existent directories.
11710   if test "$hardcode_direct" != no &&
11711      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11712      # have to relink, otherwise we might link with an installed library
11713      # when we should be linking with a yet-to-be-installed one
11714      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11715      test "$hardcode_minus_L" != no; then
11716     # Linking always hardcodes the temporary library directory.
11717     hardcode_action=relink
11718   else
11719     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11720     hardcode_action=immediate
11721   fi
11722 else
11723   # We cannot hardcode anything, or else we can only hardcode existing
11724   # directories.
11725   hardcode_action=unsupported
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11728 $as_echo "$hardcode_action" >&6; }
11729
11730 if test "$hardcode_action" = relink ||
11731    test "$inherit_rpath" = yes; then
11732   # Fast installation is not supported
11733   enable_fast_install=no
11734 elif test "$shlibpath_overrides_runpath" = yes ||
11735      test "$enable_shared" = no; then
11736   # Fast installation is not necessary
11737   enable_fast_install=needless
11738 fi
11739
11740
11741
11742
11743
11744
11745   if test "x$enable_dlopen" != xyes; then
11746   enable_dlopen=unknown
11747   enable_dlopen_self=unknown
11748   enable_dlopen_self_static=unknown
11749 else
11750   lt_cv_dlopen=no
11751   lt_cv_dlopen_libs=
11752
11753   case $host_os in
11754   beos*)
11755     lt_cv_dlopen="load_add_on"
11756     lt_cv_dlopen_libs=
11757     lt_cv_dlopen_self=yes
11758     ;;
11759
11760   mingw* | pw32* | cegcc*)
11761     lt_cv_dlopen="LoadLibrary"
11762     lt_cv_dlopen_libs=
11763     ;;
11764
11765   cygwin*)
11766     lt_cv_dlopen="dlopen"
11767     lt_cv_dlopen_libs=
11768     ;;
11769
11770   darwin*)
11771   # if libdl is installed we need to link against it
11772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11773 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11774 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11775   $as_echo_n "(cached) " >&6
11776 else
11777   ac_check_lib_save_LIBS=$LIBS
11778 LIBS="-ldl  $LIBS"
11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h.  */
11781
11782 /* Override any GCC internal prototype to avoid an error.
11783    Use char because int might match the return type of a GCC
11784    builtin and then its argument prototype would still apply.  */
11785 #ifdef __cplusplus
11786 extern "C"
11787 #endif
11788 char dlopen ();
11789 int
11790 main ()
11791 {
11792 return dlopen ();
11793   ;
11794   return 0;
11795 }
11796 _ACEOF
11797 if ac_fn_c_try_link "$LINENO"; then :
11798   ac_cv_lib_dl_dlopen=yes
11799 else
11800   ac_cv_lib_dl_dlopen=no
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext \
11803     conftest$ac_exeext conftest.$ac_ext
11804 LIBS=$ac_check_lib_save_LIBS
11805 fi
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11807 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11808 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11809   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11810 else
11811
11812     lt_cv_dlopen="dyld"
11813     lt_cv_dlopen_libs=
11814     lt_cv_dlopen_self=yes
11815
11816 fi
11817
11818     ;;
11819
11820   *)
11821     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11822 if test "x$ac_cv_func_shl_load" = x""yes; then :
11823   lt_cv_dlopen="shl_load"
11824 else
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11826 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11827 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11828   $as_echo_n "(cached) " >&6
11829 else
11830   ac_check_lib_save_LIBS=$LIBS
11831 LIBS="-ldld  $LIBS"
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h.  */
11834
11835 /* Override any GCC internal prototype to avoid an error.
11836    Use char because int might match the return type of a GCC
11837    builtin and then its argument prototype would still apply.  */
11838 #ifdef __cplusplus
11839 extern "C"
11840 #endif
11841 char shl_load ();
11842 int
11843 main ()
11844 {
11845 return shl_load ();
11846   ;
11847   return 0;
11848 }
11849 _ACEOF
11850 if ac_fn_c_try_link "$LINENO"; then :
11851   ac_cv_lib_dld_shl_load=yes
11852 else
11853   ac_cv_lib_dld_shl_load=no
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext \
11856     conftest$ac_exeext conftest.$ac_ext
11857 LIBS=$ac_check_lib_save_LIBS
11858 fi
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11860 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11861 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11862   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11863 else
11864   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11865 if test "x$ac_cv_func_dlopen" = x""yes; then :
11866   lt_cv_dlopen="dlopen"
11867 else
11868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11869 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11870 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11871   $as_echo_n "(cached) " >&6
11872 else
11873   ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-ldl  $LIBS"
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h.  */
11877
11878 /* Override any GCC internal prototype to avoid an error.
11879    Use char because int might match the return type of a GCC
11880    builtin and then its argument prototype would still apply.  */
11881 #ifdef __cplusplus
11882 extern "C"
11883 #endif
11884 char dlopen ();
11885 int
11886 main ()
11887 {
11888 return dlopen ();
11889   ;
11890   return 0;
11891 }
11892 _ACEOF
11893 if ac_fn_c_try_link "$LINENO"; then :
11894   ac_cv_lib_dl_dlopen=yes
11895 else
11896   ac_cv_lib_dl_dlopen=no
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext \
11899     conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11901 fi
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11903 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11904 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11905   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11906 else
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11908 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11909 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912   ac_check_lib_save_LIBS=$LIBS
11913 LIBS="-lsvld  $LIBS"
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h.  */
11916
11917 /* Override any GCC internal prototype to avoid an error.
11918    Use char because int might match the return type of a GCC
11919    builtin and then its argument prototype would still apply.  */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 char dlopen ();
11924 int
11925 main ()
11926 {
11927 return dlopen ();
11928   ;
11929   return 0;
11930 }
11931 _ACEOF
11932 if ac_fn_c_try_link "$LINENO"; then :
11933   ac_cv_lib_svld_dlopen=yes
11934 else
11935   ac_cv_lib_svld_dlopen=no
11936 fi
11937 rm -f core conftest.err conftest.$ac_objext \
11938     conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11940 fi
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11942 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11943 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11944   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11945 else
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11947 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11948 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-ldld  $LIBS"
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h.  */
11955
11956 /* Override any GCC internal prototype to avoid an error.
11957    Use char because int might match the return type of a GCC
11958    builtin and then its argument prototype would still apply.  */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char dld_link ();
11963 int
11964 main ()
11965 {
11966 return dld_link ();
11967   ;
11968   return 0;
11969 }
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972   ac_cv_lib_dld_dld_link=yes
11973 else
11974   ac_cv_lib_dld_dld_link=no
11975 fi
11976 rm -f core conftest.err conftest.$ac_objext \
11977     conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11981 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11982 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11983   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11984 fi
11985
11986
11987 fi
11988
11989
11990 fi
11991
11992
11993 fi
11994
11995
11996 fi
11997
11998
11999 fi
12000
12001     ;;
12002   esac
12003
12004   if test "x$lt_cv_dlopen" != xno; then
12005     enable_dlopen=yes
12006   else
12007     enable_dlopen=no
12008   fi
12009
12010   case $lt_cv_dlopen in
12011   dlopen)
12012     save_CPPFLAGS="$CPPFLAGS"
12013     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12014
12015     save_LDFLAGS="$LDFLAGS"
12016     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12017
12018     save_LIBS="$LIBS"
12019     LIBS="$lt_cv_dlopen_libs $LIBS"
12020
12021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12022 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12023 if test "${lt_cv_dlopen_self+set}" = set; then :
12024   $as_echo_n "(cached) " >&6
12025 else
12026           if test "$cross_compiling" = yes; then :
12027   lt_cv_dlopen_self=cross
12028 else
12029   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12030   lt_status=$lt_dlunknown
12031   cat > conftest.$ac_ext <<_LT_EOF
12032 #line 12032 "configure"
12033 #include "confdefs.h"
12034
12035 #if HAVE_DLFCN_H
12036 #include <dlfcn.h>
12037 #endif
12038
12039 #include <stdio.h>
12040
12041 #ifdef RTLD_GLOBAL
12042 #  define LT_DLGLOBAL           RTLD_GLOBAL
12043 #else
12044 #  ifdef DL_GLOBAL
12045 #    define LT_DLGLOBAL         DL_GLOBAL
12046 #  else
12047 #    define LT_DLGLOBAL         0
12048 #  endif
12049 #endif
12050
12051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12052    find out it does not work in some platform. */
12053 #ifndef LT_DLLAZY_OR_NOW
12054 #  ifdef RTLD_LAZY
12055 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12056 #  else
12057 #    ifdef DL_LAZY
12058 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12059 #    else
12060 #      ifdef RTLD_NOW
12061 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12062 #      else
12063 #        ifdef DL_NOW
12064 #          define LT_DLLAZY_OR_NOW      DL_NOW
12065 #        else
12066 #          define LT_DLLAZY_OR_NOW      0
12067 #        endif
12068 #      endif
12069 #    endif
12070 #  endif
12071 #endif
12072
12073 void fnord() { int i=42;}
12074 int main ()
12075 {
12076   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12077   int status = $lt_dlunknown;
12078
12079   if (self)
12080     {
12081       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12082       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12083       /* dlclose (self); */
12084     }
12085   else
12086     puts (dlerror ());
12087
12088   return status;
12089 }
12090 _LT_EOF
12091   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12092   (eval $ac_link) 2>&5
12093   ac_status=$?
12094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12095   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12096     (./conftest; exit; ) >&5 2>/dev/null
12097     lt_status=$?
12098     case x$lt_status in
12099       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12100       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12101       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12102     esac
12103   else :
12104     # compilation failed
12105     lt_cv_dlopen_self=no
12106   fi
12107 fi
12108 rm -fr conftest*
12109
12110
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12113 $as_echo "$lt_cv_dlopen_self" >&6; }
12114
12115     if test "x$lt_cv_dlopen_self" = xyes; then
12116       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12117       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12118 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12119 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12120   $as_echo_n "(cached) " >&6
12121 else
12122           if test "$cross_compiling" = yes; then :
12123   lt_cv_dlopen_self_static=cross
12124 else
12125   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12126   lt_status=$lt_dlunknown
12127   cat > conftest.$ac_ext <<_LT_EOF
12128 #line 12128 "configure"
12129 #include "confdefs.h"
12130
12131 #if HAVE_DLFCN_H
12132 #include <dlfcn.h>
12133 #endif
12134
12135 #include <stdio.h>
12136
12137 #ifdef RTLD_GLOBAL
12138 #  define LT_DLGLOBAL           RTLD_GLOBAL
12139 #else
12140 #  ifdef DL_GLOBAL
12141 #    define LT_DLGLOBAL         DL_GLOBAL
12142 #  else
12143 #    define LT_DLGLOBAL         0
12144 #  endif
12145 #endif
12146
12147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12148    find out it does not work in some platform. */
12149 #ifndef LT_DLLAZY_OR_NOW
12150 #  ifdef RTLD_LAZY
12151 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12152 #  else
12153 #    ifdef DL_LAZY
12154 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12155 #    else
12156 #      ifdef RTLD_NOW
12157 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12158 #      else
12159 #        ifdef DL_NOW
12160 #          define LT_DLLAZY_OR_NOW      DL_NOW
12161 #        else
12162 #          define LT_DLLAZY_OR_NOW      0
12163 #        endif
12164 #      endif
12165 #    endif
12166 #  endif
12167 #endif
12168
12169 void fnord() { int i=42;}
12170 int main ()
12171 {
12172   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12173   int status = $lt_dlunknown;
12174
12175   if (self)
12176     {
12177       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12178       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12179       /* dlclose (self); */
12180     }
12181   else
12182     puts (dlerror ());
12183
12184   return status;
12185 }
12186 _LT_EOF
12187   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12188   (eval $ac_link) 2>&5
12189   ac_status=$?
12190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12191   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12192     (./conftest; exit; ) >&5 2>/dev/null
12193     lt_status=$?
12194     case x$lt_status in
12195       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12196       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12197       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12198     esac
12199   else :
12200     # compilation failed
12201     lt_cv_dlopen_self_static=no
12202   fi
12203 fi
12204 rm -fr conftest*
12205
12206
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12209 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12210     fi
12211
12212     CPPFLAGS="$save_CPPFLAGS"
12213     LDFLAGS="$save_LDFLAGS"
12214     LIBS="$save_LIBS"
12215     ;;
12216   esac
12217
12218   case $lt_cv_dlopen_self in
12219   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12220   *) enable_dlopen_self=unknown ;;
12221   esac
12222
12223   case $lt_cv_dlopen_self_static in
12224   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12225   *) enable_dlopen_self_static=unknown ;;
12226   esac
12227 fi
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245 striplib=
12246 old_striplib=
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12248 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12249 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12250   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12251   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12253 $as_echo "yes" >&6; }
12254 else
12255 # FIXME - insert some real tests, host_os isn't really good enough
12256   case $host_os in
12257   darwin*)
12258     if test -n "$STRIP" ; then
12259       striplib="$STRIP -x"
12260       old_striplib="$STRIP -S"
12261       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12262 $as_echo "yes" >&6; }
12263     else
12264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12266     fi
12267     ;;
12268   *)
12269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12271     ;;
12272   esac
12273 fi
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286   # Report which library types will actually be built
12287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12288 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12290 $as_echo "$can_build_shared" >&6; }
12291
12292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12293 $as_echo_n "checking whether to build shared libraries... " >&6; }
12294   test "$can_build_shared" = "no" && enable_shared=no
12295
12296   # On AIX, shared libraries and static libraries use the same namespace, and
12297   # are all built from PIC.
12298   case $host_os in
12299   aix3*)
12300     test "$enable_shared" = yes && enable_static=no
12301     if test -n "$RANLIB"; then
12302       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12303       postinstall_cmds='$RANLIB $lib'
12304     fi
12305     ;;
12306
12307   aix[4-9]*)
12308     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12309       test "$enable_shared" = yes && enable_static=no
12310     fi
12311     ;;
12312   esac
12313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12314 $as_echo "$enable_shared" >&6; }
12315
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12317 $as_echo_n "checking whether to build static libraries... " >&6; }
12318   # Make sure either enable_shared or enable_static is yes.
12319   test "$enable_shared" = yes || enable_static=yes
12320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12321 $as_echo "$enable_static" >&6; }
12322
12323
12324
12325
12326 fi
12327 ac_ext=c
12328 ac_cpp='$CPP $CPPFLAGS'
12329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12332
12333 CC="$lt_save_CC"
12334
12335
12336 ac_ext=cpp
12337 ac_cpp='$CXXCPP $CPPFLAGS'
12338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12341
12342 archive_cmds_need_lc_CXX=no
12343 allow_undefined_flag_CXX=
12344 always_export_symbols_CXX=no
12345 archive_expsym_cmds_CXX=
12346 compiler_needs_object_CXX=no
12347 export_dynamic_flag_spec_CXX=
12348 hardcode_direct_CXX=no
12349 hardcode_direct_absolute_CXX=no
12350 hardcode_libdir_flag_spec_CXX=
12351 hardcode_libdir_flag_spec_ld_CXX=
12352 hardcode_libdir_separator_CXX=
12353 hardcode_minus_L_CXX=no
12354 hardcode_shlibpath_var_CXX=unsupported
12355 hardcode_automatic_CXX=no
12356 inherit_rpath_CXX=no
12357 module_cmds_CXX=
12358 module_expsym_cmds_CXX=
12359 link_all_deplibs_CXX=unknown
12360 old_archive_cmds_CXX=$old_archive_cmds
12361 no_undefined_flag_CXX=
12362 whole_archive_flag_spec_CXX=
12363 enable_shared_with_static_runtimes_CXX=no
12364
12365 # Source file extension for C++ test sources.
12366 ac_ext=cpp
12367
12368 # Object file extension for compiled C++ test sources.
12369 objext=o
12370 objext_CXX=$objext
12371
12372 # No sense in running all these tests if we already determined that
12373 # the CXX compiler isn't working.  Some variables (like enable_shared)
12374 # are currently assumed to apply to all compilers on this platform,
12375 # and will be corrupted by setting them based on a non-working compiler.
12376 if test "$_lt_caught_CXX_error" != yes; then
12377   # Code to be used in simple compile tests
12378   lt_simple_compile_test_code="int some_variable = 0;"
12379
12380   # Code to be used in simple link tests
12381   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12382
12383   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12384
12385
12386
12387
12388
12389
12390 # If no C compiler was specified, use CC.
12391 LTCC=${LTCC-"$CC"}
12392
12393 # If no C compiler flags were specified, use CFLAGS.
12394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12395
12396 # Allow CC to be a program name with arguments.
12397 compiler=$CC
12398
12399
12400   # save warnings/boilerplate of simple test code
12401   ac_outfile=conftest.$ac_objext
12402 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12404 _lt_compiler_boilerplate=`cat conftest.err`
12405 $RM conftest*
12406
12407   ac_outfile=conftest.$ac_objext
12408 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12410 _lt_linker_boilerplate=`cat conftest.err`
12411 $RM -r conftest*
12412
12413
12414   # Allow CC to be a program name with arguments.
12415   lt_save_CC=$CC
12416   lt_save_LD=$LD
12417   lt_save_GCC=$GCC
12418   GCC=$GXX
12419   lt_save_with_gnu_ld=$with_gnu_ld
12420   lt_save_path_LD=$lt_cv_path_LD
12421   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12422     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12423   else
12424     $as_unset lt_cv_prog_gnu_ld
12425   fi
12426   if test -n "${lt_cv_path_LDCXX+set}"; then
12427     lt_cv_path_LD=$lt_cv_path_LDCXX
12428   else
12429     $as_unset lt_cv_path_LD
12430   fi
12431   test -z "${LDCXX+set}" || LD=$LDCXX
12432   CC=${CXX-"c++"}
12433   compiler=$CC
12434   compiler_CXX=$CC
12435   for cc_temp in $compiler""; do
12436   case $cc_temp in
12437     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12438     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12439     \-*) ;;
12440     *) break;;
12441   esac
12442 done
12443 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12444
12445
12446   if test -n "$compiler"; then
12447     # We don't want -fno-exception when compiling C++ code, so set the
12448     # no_builtin_flag separately
12449     if test "$GXX" = yes; then
12450       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12451     else
12452       lt_prog_compiler_no_builtin_flag_CXX=
12453     fi
12454
12455     if test "$GXX" = yes; then
12456       # Set up default GNU C++ configuration
12457
12458
12459
12460 # Check whether --with-gnu-ld was given.
12461 if test "${with_gnu_ld+set}" = set; then :
12462   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12463 else
12464   with_gnu_ld=no
12465 fi
12466
12467 ac_prog=ld
12468 if test "$GCC" = yes; then
12469   # Check if gcc -print-prog-name=ld gives a path.
12470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12471 $as_echo_n "checking for ld used by $CC... " >&6; }
12472   case $host in
12473   *-*-mingw*)
12474     # gcc leaves a trailing carriage return which upsets mingw
12475     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12476   *)
12477     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12478   esac
12479   case $ac_prog in
12480     # Accept absolute paths.
12481     [\\/]* | ?:[\\/]*)
12482       re_direlt='/[^/][^/]*/\.\./'
12483       # Canonicalize the pathname of ld
12484       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12485       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12486         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12487       done
12488       test -z "$LD" && LD="$ac_prog"
12489       ;;
12490   "")
12491     # If it fails, then pretend we aren't using GCC.
12492     ac_prog=ld
12493     ;;
12494   *)
12495     # If it is relative, then search for the first ld in PATH.
12496     with_gnu_ld=unknown
12497     ;;
12498   esac
12499 elif test "$with_gnu_ld" = yes; then
12500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12501 $as_echo_n "checking for GNU ld... " >&6; }
12502 else
12503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12504 $as_echo_n "checking for non-GNU ld... " >&6; }
12505 fi
12506 if test "${lt_cv_path_LD+set}" = set; then :
12507   $as_echo_n "(cached) " >&6
12508 else
12509   if test -z "$LD"; then
12510   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12511   for ac_dir in $PATH; do
12512     IFS="$lt_save_ifs"
12513     test -z "$ac_dir" && ac_dir=.
12514     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12515       lt_cv_path_LD="$ac_dir/$ac_prog"
12516       # Check to see if the program is GNU ld.  I'd rather use --version,
12517       # but apparently some variants of GNU ld only accept -v.
12518       # Break only if it was the GNU/non-GNU ld that we prefer.
12519       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12520       *GNU* | *'with BFD'*)
12521         test "$with_gnu_ld" != no && break
12522         ;;
12523       *)
12524         test "$with_gnu_ld" != yes && break
12525         ;;
12526       esac
12527     fi
12528   done
12529   IFS="$lt_save_ifs"
12530 else
12531   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12532 fi
12533 fi
12534
12535 LD="$lt_cv_path_LD"
12536 if test -n "$LD"; then
12537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12538 $as_echo "$LD" >&6; }
12539 else
12540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12542 fi
12543 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12545 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12546 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12550 case `$LD -v 2>&1 </dev/null` in
12551 *GNU* | *'with BFD'*)
12552   lt_cv_prog_gnu_ld=yes
12553   ;;
12554 *)
12555   lt_cv_prog_gnu_ld=no
12556   ;;
12557 esac
12558 fi
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12560 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12561 with_gnu_ld=$lt_cv_prog_gnu_ld
12562
12563
12564
12565
12566
12567
12568
12569       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12570       # archiving commands below assume that GNU ld is being used.
12571       if test "$with_gnu_ld" = yes; then
12572         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12573         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'
12574
12575         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12576         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12577
12578         # If archive_cmds runs LD, not CC, wlarc should be empty
12579         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12580         #     investigate it a little bit more. (MM)
12581         wlarc='${wl}'
12582
12583         # ancient GNU ld didn't support --whole-archive et. al.
12584         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12585           $GREP 'no-whole-archive' > /dev/null; then
12586           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12587         else
12588           whole_archive_flag_spec_CXX=
12589         fi
12590       else
12591         with_gnu_ld=no
12592         wlarc=
12593
12594         # A generic and very simple default shared library creation
12595         # command for GNU C++ for the case where it uses the native
12596         # linker, instead of GNU ld.  If possible, this setting should
12597         # overridden to take advantage of the native linker features on
12598         # the platform it is being used on.
12599         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12600       fi
12601
12602       # Commands to make compiler produce verbose output that lists
12603       # what "hidden" libraries, object files and flags are used when
12604       # linking a shared library.
12605       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12606
12607     else
12608       GXX=no
12609       with_gnu_ld=no
12610       wlarc=
12611     fi
12612
12613     # PORTME: fill in a description of your system's C++ link characteristics
12614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12615 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12616     ld_shlibs_CXX=yes
12617     case $host_os in
12618       aix3*)
12619         # FIXME: insert proper C++ library support
12620         ld_shlibs_CXX=no
12621         ;;
12622       aix[4-9]*)
12623         if test "$host_cpu" = ia64; then
12624           # On IA64, the linker does run time linking by default, so we don't
12625           # have to do anything special.
12626           aix_use_runtimelinking=no
12627           exp_sym_flag='-Bexport'
12628           no_entry_flag=""
12629         else
12630           aix_use_runtimelinking=no
12631
12632           # Test if we are trying to use run time linking or normal
12633           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12634           # need to do runtime linking.
12635           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12636             for ld_flag in $LDFLAGS; do
12637               case $ld_flag in
12638               *-brtl*)
12639                 aix_use_runtimelinking=yes
12640                 break
12641                 ;;
12642               esac
12643             done
12644             ;;
12645           esac
12646
12647           exp_sym_flag='-bexport'
12648           no_entry_flag='-bnoentry'
12649         fi
12650
12651         # When large executables or shared objects are built, AIX ld can
12652         # have problems creating the table of contents.  If linking a library
12653         # or program results in "error TOC overflow" add -mminimal-toc to
12654         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12655         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12656
12657         archive_cmds_CXX=''
12658         hardcode_direct_CXX=yes
12659         hardcode_direct_absolute_CXX=yes
12660         hardcode_libdir_separator_CXX=':'
12661         link_all_deplibs_CXX=yes
12662         file_list_spec_CXX='${wl}-f,'
12663
12664         if test "$GXX" = yes; then
12665           case $host_os in aix4.[012]|aix4.[012].*)
12666           # We only want to do this on AIX 4.2 and lower, the check
12667           # below for broken collect2 doesn't work under 4.3+
12668           collect2name=`${CC} -print-prog-name=collect2`
12669           if test -f "$collect2name" &&
12670              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12671           then
12672             # We have reworked collect2
12673             :
12674           else
12675             # We have old collect2
12676             hardcode_direct_CXX=unsupported
12677             # It fails to find uninstalled libraries when the uninstalled
12678             # path is not listed in the libpath.  Setting hardcode_minus_L
12679             # to unsupported forces relinking
12680             hardcode_minus_L_CXX=yes
12681             hardcode_libdir_flag_spec_CXX='-L$libdir'
12682             hardcode_libdir_separator_CXX=
12683           fi
12684           esac
12685           shared_flag='-shared'
12686           if test "$aix_use_runtimelinking" = yes; then
12687             shared_flag="$shared_flag "'${wl}-G'
12688           fi
12689         else
12690           # not using gcc
12691           if test "$host_cpu" = ia64; then
12692           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12693           # chokes on -Wl,-G. The following line is correct:
12694           shared_flag='-G'
12695           else
12696             if test "$aix_use_runtimelinking" = yes; then
12697               shared_flag='${wl}-G'
12698             else
12699               shared_flag='${wl}-bM:SRE'
12700             fi
12701           fi
12702         fi
12703
12704         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12705         # It seems that -bexpall does not export symbols beginning with
12706         # underscore (_), so it is better to generate a list of symbols to
12707         # export.
12708         always_export_symbols_CXX=yes
12709         if test "$aix_use_runtimelinking" = yes; then
12710           # Warning - without using the other runtime loading flags (-brtl),
12711           # -berok will link without error, but may produce a broken library.
12712           allow_undefined_flag_CXX='-berok'
12713           # Determine the default libpath from the value encoded in an empty
12714           # executable.
12715           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h.  */
12717
12718 int
12719 main ()
12720 {
12721
12722   ;
12723   return 0;
12724 }
12725 _ACEOF
12726 if ac_fn_cxx_try_link "$LINENO"; then :
12727
12728 lt_aix_libpath_sed='
12729     /Import File Strings/,/^$/ {
12730         /^0/ {
12731             s/^0  *\(.*\)$/\1/
12732             p
12733         }
12734     }'
12735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12736 # Check for a 64-bit object if we didn't find anything.
12737 if test -z "$aix_libpath"; then
12738   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12739 fi
12740 fi
12741 rm -f core conftest.err conftest.$ac_objext \
12742     conftest$ac_exeext conftest.$ac_ext
12743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12744
12745           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12746
12747           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"
12748         else
12749           if test "$host_cpu" = ia64; then
12750             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12751             allow_undefined_flag_CXX="-z nodefs"
12752             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"
12753           else
12754             # Determine the default libpath from the value encoded in an
12755             # empty executable.
12756             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h.  */
12758
12759 int
12760 main ()
12761 {
12762
12763   ;
12764   return 0;
12765 }
12766 _ACEOF
12767 if ac_fn_cxx_try_link "$LINENO"; then :
12768
12769 lt_aix_libpath_sed='
12770     /Import File Strings/,/^$/ {
12771         /^0/ {
12772             s/^0  *\(.*\)$/\1/
12773             p
12774         }
12775     }'
12776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12777 # Check for a 64-bit object if we didn't find anything.
12778 if test -z "$aix_libpath"; then
12779   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12780 fi
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext \
12783     conftest$ac_exeext conftest.$ac_ext
12784 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12785
12786             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12787             # Warning - without using the other run time loading flags,
12788             # -berok will link without error, but may produce a broken library.
12789             no_undefined_flag_CXX=' ${wl}-bernotok'
12790             allow_undefined_flag_CXX=' ${wl}-berok'
12791             # Exported symbols can be pulled into shared objects from archives
12792             whole_archive_flag_spec_CXX='$convenience'
12793             archive_cmds_need_lc_CXX=yes
12794             # This is similar to how AIX traditionally builds its shared
12795             # libraries.
12796             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'
12797           fi
12798         fi
12799         ;;
12800
12801       beos*)
12802         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12803           allow_undefined_flag_CXX=unsupported
12804           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12805           # support --undefined.  This deserves some investigation.  FIXME
12806           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12807         else
12808           ld_shlibs_CXX=no
12809         fi
12810         ;;
12811
12812       chorus*)
12813         case $cc_basename in
12814           *)
12815           # FIXME: insert proper C++ library support
12816           ld_shlibs_CXX=no
12817           ;;
12818         esac
12819         ;;
12820
12821       cygwin* | mingw* | pw32* | cegcc*)
12822         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12823         # as there is no search path for DLLs.
12824         hardcode_libdir_flag_spec_CXX='-L$libdir'
12825         allow_undefined_flag_CXX=unsupported
12826         always_export_symbols_CXX=no
12827         enable_shared_with_static_runtimes_CXX=yes
12828
12829         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12830           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'
12831           # If the export-symbols file already is a .def file (1st line
12832           # is EXPORTS), use it as is; otherwise, prepend...
12833           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12834             cp $export_symbols $output_objdir/$soname.def;
12835           else
12836             echo EXPORTS > $output_objdir/$soname.def;
12837             cat $export_symbols >> $output_objdir/$soname.def;
12838           fi~
12839           $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'
12840         else
12841           ld_shlibs_CXX=no
12842         fi
12843         ;;
12844       darwin* | rhapsody*)
12845
12846
12847   archive_cmds_need_lc_CXX=no
12848   hardcode_direct_CXX=no
12849   hardcode_automatic_CXX=yes
12850   hardcode_shlibpath_var_CXX=unsupported
12851   whole_archive_flag_spec_CXX=''
12852   link_all_deplibs_CXX=yes
12853   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12854   case $cc_basename in
12855      ifort*) _lt_dar_can_shared=yes ;;
12856      *) _lt_dar_can_shared=$GCC ;;
12857   esac
12858   if test "$_lt_dar_can_shared" = "yes"; then
12859     output_verbose_link_cmd=echo
12860     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}"
12861     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12862     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}"
12863     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}"
12864        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12865       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}"
12866       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}"
12867     fi
12868
12869   else
12870   ld_shlibs_CXX=no
12871   fi
12872
12873         ;;
12874
12875       dgux*)
12876         case $cc_basename in
12877           ec++*)
12878             # FIXME: insert proper C++ library support
12879             ld_shlibs_CXX=no
12880             ;;
12881           ghcx*)
12882             # Green Hills C++ Compiler
12883             # FIXME: insert proper C++ library support
12884             ld_shlibs_CXX=no
12885             ;;
12886           *)
12887             # FIXME: insert proper C++ library support
12888             ld_shlibs_CXX=no
12889             ;;
12890         esac
12891         ;;
12892
12893       freebsd[12]*)
12894         # C++ shared libraries reported to be fairly broken before
12895         # switch to ELF
12896         ld_shlibs_CXX=no
12897         ;;
12898
12899       freebsd-elf*)
12900         archive_cmds_need_lc_CXX=no
12901         ;;
12902
12903       freebsd* | dragonfly*)
12904         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12905         # conventions
12906         ld_shlibs_CXX=yes
12907         ;;
12908
12909       gnu*)
12910         ;;
12911
12912       hpux9*)
12913         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12914         hardcode_libdir_separator_CXX=:
12915         export_dynamic_flag_spec_CXX='${wl}-E'
12916         hardcode_direct_CXX=yes
12917         hardcode_minus_L_CXX=yes # Not in the search PATH,
12918                                              # but as the default
12919                                              # location of the library.
12920
12921         case $cc_basename in
12922           CC*)
12923             # FIXME: insert proper C++ library support
12924             ld_shlibs_CXX=no
12925             ;;
12926           aCC*)
12927             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'
12928             # Commands to make compiler produce verbose output that lists
12929             # what "hidden" libraries, object files and flags are used when
12930             # linking a shared library.
12931             #
12932             # There doesn't appear to be a way to prevent this compiler from
12933             # explicitly linking system object files so we need to strip them
12934             # from the output so that they don't get included in the library
12935             # dependencies.
12936             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'
12937             ;;
12938           *)
12939             if test "$GXX" = yes; then
12940               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'
12941             else
12942               # FIXME: insert proper C++ library support
12943               ld_shlibs_CXX=no
12944             fi
12945             ;;
12946         esac
12947         ;;
12948
12949       hpux10*|hpux11*)
12950         if test $with_gnu_ld = no; then
12951           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12952           hardcode_libdir_separator_CXX=:
12953
12954           case $host_cpu in
12955             hppa*64*|ia64*)
12956               ;;
12957             *)
12958               export_dynamic_flag_spec_CXX='${wl}-E'
12959               ;;
12960           esac
12961         fi
12962         case $host_cpu in
12963           hppa*64*|ia64*)
12964             hardcode_direct_CXX=no
12965             hardcode_shlibpath_var_CXX=no
12966             ;;
12967           *)
12968             hardcode_direct_CXX=yes
12969             hardcode_direct_absolute_CXX=yes
12970             hardcode_minus_L_CXX=yes # Not in the search PATH,
12971                                                  # but as the default
12972                                                  # location of the library.
12973             ;;
12974         esac
12975
12976         case $cc_basename in
12977           CC*)
12978             # FIXME: insert proper C++ library support
12979             ld_shlibs_CXX=no
12980             ;;
12981           aCC*)
12982             case $host_cpu in
12983               hppa*64*)
12984                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12985                 ;;
12986               ia64*)
12987                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12988                 ;;
12989               *)
12990                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12991                 ;;
12992             esac
12993             # Commands to make compiler produce verbose output that lists
12994             # what "hidden" libraries, object files and flags are used when
12995             # linking a shared library.
12996             #
12997             # There doesn't appear to be a way to prevent this compiler from
12998             # explicitly linking system object files so we need to strip them
12999             # from the output so that they don't get included in the library
13000             # dependencies.
13001             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'
13002             ;;
13003           *)
13004             if test "$GXX" = yes; then
13005               if test $with_gnu_ld = no; then
13006                 case $host_cpu in
13007                   hppa*64*)
13008                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13009                     ;;
13010                   ia64*)
13011                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13012                     ;;
13013                   *)
13014                     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'
13015                     ;;
13016                 esac
13017               fi
13018             else
13019               # FIXME: insert proper C++ library support
13020               ld_shlibs_CXX=no
13021             fi
13022             ;;
13023         esac
13024         ;;
13025
13026       interix[3-9]*)
13027         hardcode_direct_CXX=no
13028         hardcode_shlibpath_var_CXX=no
13029         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13030         export_dynamic_flag_spec_CXX='${wl}-E'
13031         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13032         # Instead, shared libraries are loaded at an image base (0x10000000 by
13033         # default) and relocated if they conflict, which is a slow very memory
13034         # consuming and fragmenting process.  To avoid this, we pick a random,
13035         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13036         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13037         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'
13038         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'
13039         ;;
13040       irix5* | irix6*)
13041         case $cc_basename in
13042           CC*)
13043             # SGI C++
13044             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'
13045
13046             # Archives containing C++ object files must be created using
13047             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13048             # necessary to make sure instantiated templates are included
13049             # in the archive.
13050             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13051             ;;
13052           *)
13053             if test "$GXX" = yes; then
13054               if test "$with_gnu_ld" = no; then
13055                 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'
13056               else
13057                 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'
13058               fi
13059             fi
13060             link_all_deplibs_CXX=yes
13061             ;;
13062         esac
13063         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13064         hardcode_libdir_separator_CXX=:
13065         inherit_rpath_CXX=yes
13066         ;;
13067
13068       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13069         case $cc_basename in
13070           KCC*)
13071             # Kuck and Associates, Inc. (KAI) C++ Compiler
13072
13073             # KCC will only create a shared library if the output file
13074             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13075             # to its proper name (with version) after linking.
13076             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'
13077             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'
13078             # Commands to make compiler produce verbose output that lists
13079             # what "hidden" libraries, object files and flags are used when
13080             # linking a shared library.
13081             #
13082             # There doesn't appear to be a way to prevent this compiler from
13083             # explicitly linking system object files so we need to strip them
13084             # from the output so that they don't get included in the library
13085             # dependencies.
13086             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'
13087
13088             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13089             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13090
13091             # Archives containing C++ object files must be created using
13092             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13093             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13094             ;;
13095           icpc* | ecpc* )
13096             # Intel C++
13097             with_gnu_ld=yes
13098             # version 8.0 and above of icpc choke on multiply defined symbols
13099             # if we add $predep_objects and $postdep_objects, however 7.1 and
13100             # earlier do not add the objects themselves.
13101             case `$CC -V 2>&1` in
13102               *"Version 7."*)
13103                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13104                 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'
13105                 ;;
13106               *)  # Version 8.0 or newer
13107                 tmp_idyn=
13108                 case $host_cpu in
13109                   ia64*) tmp_idyn=' -i_dynamic';;
13110                 esac
13111                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13112                 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'
13113                 ;;
13114             esac
13115             archive_cmds_need_lc_CXX=no
13116             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13117             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13118             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13119             ;;
13120           pgCC* | pgcpp*)
13121             # Portland Group C++ compiler
13122             case `$CC -V` in
13123             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13124               prelink_cmds_CXX='tpldir=Template.dir~
13125                 rm -rf $tpldir~
13126                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13127                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13128               old_archive_cmds_CXX='tpldir=Template.dir~
13129                 rm -rf $tpldir~
13130                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13131                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13132                 $RANLIB $oldlib'
13133               archive_cmds_CXX='tpldir=Template.dir~
13134                 rm -rf $tpldir~
13135                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13136                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13137               archive_expsym_cmds_CXX='tpldir=Template.dir~
13138                 rm -rf $tpldir~
13139                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13140                 $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'
13141               ;;
13142             *) # Version 6 will use weak symbols
13143               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13144               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'
13145               ;;
13146             esac
13147
13148             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13149             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13150             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'
13151             ;;
13152           cxx*)
13153             # Compaq C++
13154             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13155             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'
13156
13157             runpath_var=LD_RUN_PATH
13158             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13159             hardcode_libdir_separator_CXX=:
13160
13161             # Commands to make compiler produce verbose output that lists
13162             # what "hidden" libraries, object files and flags are used when
13163             # linking a shared library.
13164             #
13165             # There doesn't appear to be a way to prevent this compiler from
13166             # explicitly linking system object files so we need to strip them
13167             # from the output so that they don't get included in the library
13168             # dependencies.
13169             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'
13170             ;;
13171           xl*)
13172             # IBM XL 8.0 on PPC, with GNU ld
13173             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13174             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13175             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13176             if test "x$supports_anon_versioning" = xyes; then
13177               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13178                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13179                 echo "local: *; };" >> $output_objdir/$libname.ver~
13180                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13181             fi
13182             ;;
13183           *)
13184             case `$CC -V 2>&1 | sed 5q` in
13185             *Sun\ C*)
13186               # Sun C++ 5.9
13187               no_undefined_flag_CXX=' -zdefs'
13188               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13189               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'
13190               hardcode_libdir_flag_spec_CXX='-R$libdir'
13191               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'
13192               compiler_needs_object_CXX=yes
13193
13194               # Not sure whether something based on
13195               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13196               # would be better.
13197               output_verbose_link_cmd='echo'
13198
13199               # Archives containing C++ object files must be created using
13200               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13201               # necessary to make sure instantiated templates are included
13202               # in the archive.
13203               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13204               ;;
13205             esac
13206             ;;
13207         esac
13208         ;;
13209
13210       lynxos*)
13211         # FIXME: insert proper C++ library support
13212         ld_shlibs_CXX=no
13213         ;;
13214
13215       m88k*)
13216         # FIXME: insert proper C++ library support
13217         ld_shlibs_CXX=no
13218         ;;
13219
13220       mvs*)
13221         case $cc_basename in
13222           cxx*)
13223             # FIXME: insert proper C++ library support
13224             ld_shlibs_CXX=no
13225             ;;
13226           *)
13227             # FIXME: insert proper C++ library support
13228             ld_shlibs_CXX=no
13229             ;;
13230         esac
13231         ;;
13232
13233       netbsd*)
13234         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13235           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13236           wlarc=
13237           hardcode_libdir_flag_spec_CXX='-R$libdir'
13238           hardcode_direct_CXX=yes
13239           hardcode_shlibpath_var_CXX=no
13240         fi
13241         # Workaround some broken pre-1.5 toolchains
13242         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13243         ;;
13244
13245       *nto* | *qnx*)
13246         ld_shlibs_CXX=yes
13247         ;;
13248
13249       openbsd2*)
13250         # C++ shared libraries are fairly broken
13251         ld_shlibs_CXX=no
13252         ;;
13253
13254       openbsd*)
13255         if test -f /usr/libexec/ld.so; then
13256           hardcode_direct_CXX=yes
13257           hardcode_shlibpath_var_CXX=no
13258           hardcode_direct_absolute_CXX=yes
13259           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13260           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13261           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13262             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13263             export_dynamic_flag_spec_CXX='${wl}-E'
13264             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13265           fi
13266           output_verbose_link_cmd=echo
13267         else
13268           ld_shlibs_CXX=no
13269         fi
13270         ;;
13271
13272       osf3* | osf4* | osf5*)
13273         case $cc_basename in
13274           KCC*)
13275             # Kuck and Associates, Inc. (KAI) C++ Compiler
13276
13277             # KCC will only create a shared library if the output file
13278             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13279             # to its proper name (with version) after linking.
13280             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'
13281
13282             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13283             hardcode_libdir_separator_CXX=:
13284
13285             # Archives containing C++ object files must be created using
13286             # the KAI C++ compiler.
13287             case $host in
13288               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13289               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13290             esac
13291             ;;
13292           RCC*)
13293             # Rational C++ 2.4.1
13294             # FIXME: insert proper C++ library support
13295             ld_shlibs_CXX=no
13296             ;;
13297           cxx*)
13298             case $host in
13299               osf3*)
13300                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13301                 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'
13302                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13303                 ;;
13304               *)
13305                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13306                 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'
13307                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13308                   echo "-hidden">> $lib.exp~
13309                   $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~
13310                   $RM $lib.exp'
13311                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13312                 ;;
13313             esac
13314
13315             hardcode_libdir_separator_CXX=:
13316
13317             # Commands to make compiler produce verbose output that lists
13318             # what "hidden" libraries, object files and flags are used when
13319             # linking a shared library.
13320             #
13321             # There doesn't appear to be a way to prevent this compiler from
13322             # explicitly linking system object files so we need to strip them
13323             # from the output so that they don't get included in the library
13324             # dependencies.
13325             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'
13326             ;;
13327           *)
13328             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13329               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13330               case $host in
13331                 osf3*)
13332                   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'
13333                   ;;
13334                 *)
13335                   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'
13336                   ;;
13337               esac
13338
13339               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340               hardcode_libdir_separator_CXX=:
13341
13342               # Commands to make compiler produce verbose output that lists
13343               # what "hidden" libraries, object files and flags are used when
13344               # linking a shared library.
13345               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13346
13347             else
13348               # FIXME: insert proper C++ library support
13349               ld_shlibs_CXX=no
13350             fi
13351             ;;
13352         esac
13353         ;;
13354
13355       psos*)
13356         # FIXME: insert proper C++ library support
13357         ld_shlibs_CXX=no
13358         ;;
13359
13360       sunos4*)
13361         case $cc_basename in
13362           CC*)
13363             # Sun C++ 4.x
13364             # FIXME: insert proper C++ library support
13365             ld_shlibs_CXX=no
13366             ;;
13367           lcc*)
13368             # Lucid
13369             # FIXME: insert proper C++ library support
13370             ld_shlibs_CXX=no
13371             ;;
13372           *)
13373             # FIXME: insert proper C++ library support
13374             ld_shlibs_CXX=no
13375             ;;
13376         esac
13377         ;;
13378
13379       solaris*)
13380         case $cc_basename in
13381           CC*)
13382             # Sun C++ 4.2, 5.x and Centerline C++
13383             archive_cmds_need_lc_CXX=yes
13384             no_undefined_flag_CXX=' -zdefs'
13385             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13386             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13387               $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'
13388
13389             hardcode_libdir_flag_spec_CXX='-R$libdir'
13390             hardcode_shlibpath_var_CXX=no
13391             case $host_os in
13392               solaris2.[0-5] | solaris2.[0-5].*) ;;
13393               *)
13394                 # The compiler driver will combine and reorder linker options,
13395                 # but understands `-z linker_flag'.
13396                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13397                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13398                 ;;
13399             esac
13400             link_all_deplibs_CXX=yes
13401
13402             output_verbose_link_cmd='echo'
13403
13404             # Archives containing C++ object files must be created using
13405             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13406             # necessary to make sure instantiated templates are included
13407             # in the archive.
13408             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13409             ;;
13410           gcx*)
13411             # Green Hills C++ Compiler
13412             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13413
13414             # The C++ compiler must be used to create the archive.
13415             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13416             ;;
13417           *)
13418             # GNU C++ compiler with Solaris linker
13419             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13420               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13421               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13422                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13423                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13424                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13425
13426                 # Commands to make compiler produce verbose output that lists
13427                 # what "hidden" libraries, object files and flags are used when
13428                 # linking a shared library.
13429                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13430               else
13431                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13432                 # platform.
13433                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13434                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13435                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13436
13437                 # Commands to make compiler produce verbose output that lists
13438                 # what "hidden" libraries, object files and flags are used when
13439                 # linking a shared library.
13440                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13441               fi
13442
13443               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13444               case $host_os in
13445                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13446                 *)
13447                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13448                   ;;
13449               esac
13450             fi
13451             ;;
13452         esac
13453         ;;
13454
13455     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13456       no_undefined_flag_CXX='${wl}-z,text'
13457       archive_cmds_need_lc_CXX=no
13458       hardcode_shlibpath_var_CXX=no
13459       runpath_var='LD_RUN_PATH'
13460
13461       case $cc_basename in
13462         CC*)
13463           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465           ;;
13466         *)
13467           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13469           ;;
13470       esac
13471       ;;
13472
13473       sysv5* | sco3.2v5* | sco5v6*)
13474         # Note: We can NOT use -z defs as we might desire, because we do not
13475         # link with -lc, and that would cause any symbols used from libc to
13476         # always be unresolved, which means just about no library would
13477         # ever link correctly.  If we're not using GNU ld we use -z text
13478         # though, which does catch some bad symbols but isn't as heavy-handed
13479         # as -z defs.
13480         no_undefined_flag_CXX='${wl}-z,text'
13481         allow_undefined_flag_CXX='${wl}-z,nodefs'
13482         archive_cmds_need_lc_CXX=no
13483         hardcode_shlibpath_var_CXX=no
13484         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13485         hardcode_libdir_separator_CXX=':'
13486         link_all_deplibs_CXX=yes
13487         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13488         runpath_var='LD_RUN_PATH'
13489
13490         case $cc_basename in
13491           CC*)
13492             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13493             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494             ;;
13495           *)
13496             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13497             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13498             ;;
13499         esac
13500       ;;
13501
13502       tandem*)
13503         case $cc_basename in
13504           NCC*)
13505             # NonStop-UX NCC 3.20
13506             # FIXME: insert proper C++ library support
13507             ld_shlibs_CXX=no
13508             ;;
13509           *)
13510             # FIXME: insert proper C++ library support
13511             ld_shlibs_CXX=no
13512             ;;
13513         esac
13514         ;;
13515
13516       vxworks*)
13517         # FIXME: insert proper C++ library support
13518         ld_shlibs_CXX=no
13519         ;;
13520
13521       *)
13522         # FIXME: insert proper C++ library support
13523         ld_shlibs_CXX=no
13524         ;;
13525     esac
13526
13527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13528 $as_echo "$ld_shlibs_CXX" >&6; }
13529     test "$ld_shlibs_CXX" = no && can_build_shared=no
13530
13531     GCC_CXX="$GXX"
13532     LD_CXX="$LD"
13533
13534     ## CAVEAT EMPTOR:
13535     ## There is no encapsulation within the following macros, do not change
13536     ## the running order or otherwise move them around unless you know exactly
13537     ## what you are doing...
13538     # Dependencies to place before and after the object being linked:
13539 predep_objects_CXX=
13540 postdep_objects_CXX=
13541 predeps_CXX=
13542 postdeps_CXX=
13543 compiler_lib_search_path_CXX=
13544
13545 cat > conftest.$ac_ext <<_LT_EOF
13546 class Foo
13547 {
13548 public:
13549   Foo (void) { a = 0; }
13550 private:
13551   int a;
13552 };
13553 _LT_EOF
13554
13555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13556   (eval $ac_compile) 2>&5
13557   ac_status=$?
13558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13559   test $ac_status = 0; }; then
13560   # Parse the compiler output and extract the necessary
13561   # objects, libraries and library flags.
13562
13563   # Sentinel used to keep track of whether or not we are before
13564   # the conftest object file.
13565   pre_test_object_deps_done=no
13566
13567   for p in `eval "$output_verbose_link_cmd"`; do
13568     case $p in
13569
13570     -L* | -R* | -l*)
13571        # Some compilers place space between "-{L,R}" and the path.
13572        # Remove the space.
13573        if test $p = "-L" ||
13574           test $p = "-R"; then
13575          prev=$p
13576          continue
13577        else
13578          prev=
13579        fi
13580
13581        if test "$pre_test_object_deps_done" = no; then
13582          case $p in
13583          -L* | -R*)
13584            # Internal compiler library paths should come after those
13585            # provided the user.  The postdeps already come after the
13586            # user supplied libs so there is no need to process them.
13587            if test -z "$compiler_lib_search_path_CXX"; then
13588              compiler_lib_search_path_CXX="${prev}${p}"
13589            else
13590              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13591            fi
13592            ;;
13593          # The "-l" case would never come before the object being
13594          # linked, so don't bother handling this case.
13595          esac
13596        else
13597          if test -z "$postdeps_CXX"; then
13598            postdeps_CXX="${prev}${p}"
13599          else
13600            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13601          fi
13602        fi
13603        ;;
13604
13605     *.$objext)
13606        # This assumes that the test object file only shows up
13607        # once in the compiler output.
13608        if test "$p" = "conftest.$objext"; then
13609          pre_test_object_deps_done=yes
13610          continue
13611        fi
13612
13613        if test "$pre_test_object_deps_done" = no; then
13614          if test -z "$predep_objects_CXX"; then
13615            predep_objects_CXX="$p"
13616          else
13617            predep_objects_CXX="$predep_objects_CXX $p"
13618          fi
13619        else
13620          if test -z "$postdep_objects_CXX"; then
13621            postdep_objects_CXX="$p"
13622          else
13623            postdep_objects_CXX="$postdep_objects_CXX $p"
13624          fi
13625        fi
13626        ;;
13627
13628     *) ;; # Ignore the rest.
13629
13630     esac
13631   done
13632
13633   # Clean up.
13634   rm -f a.out a.exe
13635 else
13636   echo "libtool.m4: error: problem compiling CXX test program"
13637 fi
13638
13639 $RM -f confest.$objext
13640
13641 # PORTME: override above test on systems where it is broken
13642 case $host_os in
13643 interix[3-9]*)
13644   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13645   # hack all around it, let's just trust "g++" to DTRT.
13646   predep_objects_CXX=
13647   postdep_objects_CXX=
13648   postdeps_CXX=
13649   ;;
13650
13651 linux*)
13652   case `$CC -V 2>&1 | sed 5q` in
13653   *Sun\ C*)
13654     # Sun C++ 5.9
13655
13656     # The more standards-conforming stlport4 library is
13657     # incompatible with the Cstd library. Avoid specifying
13658     # it if it's in CXXFLAGS. Ignore libCrun as
13659     # -library=stlport4 depends on it.
13660     case " $CXX $CXXFLAGS " in
13661     *" -library=stlport4 "*)
13662       solaris_use_stlport4=yes
13663       ;;
13664     esac
13665
13666     if test "$solaris_use_stlport4" != yes; then
13667       postdeps_CXX='-library=Cstd -library=Crun'
13668     fi
13669     ;;
13670   esac
13671   ;;
13672
13673 solaris*)
13674   case $cc_basename in
13675   CC*)
13676     # The more standards-conforming stlport4 library is
13677     # incompatible with the Cstd library. Avoid specifying
13678     # it if it's in CXXFLAGS. Ignore libCrun as
13679     # -library=stlport4 depends on it.
13680     case " $CXX $CXXFLAGS " in
13681     *" -library=stlport4 "*)
13682       solaris_use_stlport4=yes
13683       ;;
13684     esac
13685
13686     # Adding this requires a known-good setup of shared libraries for
13687     # Sun compiler versions before 5.6, else PIC objects from an old
13688     # archive will be linked into the output, leading to subtle bugs.
13689     if test "$solaris_use_stlport4" != yes; then
13690       postdeps_CXX='-library=Cstd -library=Crun'
13691     fi
13692     ;;
13693   esac
13694   ;;
13695 esac
13696
13697
13698 case " $postdeps_CXX " in
13699 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13700 esac
13701  compiler_lib_search_dirs_CXX=
13702 if test -n "${compiler_lib_search_path_CXX}"; then
13703  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13704 fi
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736     lt_prog_compiler_wl_CXX=
13737 lt_prog_compiler_pic_CXX=
13738 lt_prog_compiler_static_CXX=
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13741 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13742
13743   # C++ specific cases for pic, static, wl, etc.
13744   if test "$GXX" = yes; then
13745     lt_prog_compiler_wl_CXX='-Wl,'
13746     lt_prog_compiler_static_CXX='-static'
13747
13748     case $host_os in
13749     aix*)
13750       # All AIX code is PIC.
13751       if test "$host_cpu" = ia64; then
13752         # AIX 5 now supports IA64 processor
13753         lt_prog_compiler_static_CXX='-Bstatic'
13754       fi
13755       ;;
13756
13757     amigaos*)
13758       case $host_cpu in
13759       powerpc)
13760             # see comment about AmigaOS4 .so support
13761             lt_prog_compiler_pic_CXX='-fPIC'
13762         ;;
13763       m68k)
13764             # FIXME: we need at least 68020 code to build shared libraries, but
13765             # adding the `-m68020' flag to GCC prevents building anything better,
13766             # like `-m68040'.
13767             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13768         ;;
13769       esac
13770       ;;
13771
13772     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13773       # PIC is the default for these OSes.
13774       ;;
13775     mingw* | cygwin* | os2* | pw32* | cegcc*)
13776       # This hack is so that the source file can tell whether it is being
13777       # built for inclusion in a dll (and should export symbols for example).
13778       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13779       # (--disable-auto-import) libraries
13780       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13781       ;;
13782     darwin* | rhapsody*)
13783       # PIC is the default on this platform
13784       # Common symbols not allowed in MH_DYLIB files
13785       lt_prog_compiler_pic_CXX='-fno-common'
13786       ;;
13787     *djgpp*)
13788       # DJGPP does not support shared libraries at all
13789       lt_prog_compiler_pic_CXX=
13790       ;;
13791     interix[3-9]*)
13792       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13793       # Instead, we relocate shared libraries at runtime.
13794       ;;
13795     sysv4*MP*)
13796       if test -d /usr/nec; then
13797         lt_prog_compiler_pic_CXX=-Kconform_pic
13798       fi
13799       ;;
13800     hpux*)
13801       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13802       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13803       # sets the default TLS model and affects inlining.
13804       case $host_cpu in
13805       hppa*64*)
13806         ;;
13807       *)
13808         lt_prog_compiler_pic_CXX='-fPIC'
13809         ;;
13810       esac
13811       ;;
13812     *qnx* | *nto*)
13813       # QNX uses GNU C++, but need to define -shared option too, otherwise
13814       # it will coredump.
13815       lt_prog_compiler_pic_CXX='-fPIC -shared'
13816       ;;
13817     *)
13818       lt_prog_compiler_pic_CXX='-fPIC'
13819       ;;
13820     esac
13821   else
13822     case $host_os in
13823       aix[4-9]*)
13824         # All AIX code is PIC.
13825         if test "$host_cpu" = ia64; then
13826           # AIX 5 now supports IA64 processor
13827           lt_prog_compiler_static_CXX='-Bstatic'
13828         else
13829           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13830         fi
13831         ;;
13832       chorus*)
13833         case $cc_basename in
13834         cxch68*)
13835           # Green Hills C++ Compiler
13836           # _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"
13837           ;;
13838         esac
13839         ;;
13840       dgux*)
13841         case $cc_basename in
13842           ec++*)
13843             lt_prog_compiler_pic_CXX='-KPIC'
13844             ;;
13845           ghcx*)
13846             # Green Hills C++ Compiler
13847             lt_prog_compiler_pic_CXX='-pic'
13848             ;;
13849           *)
13850             ;;
13851         esac
13852         ;;
13853       freebsd* | dragonfly*)
13854         # FreeBSD uses GNU C++
13855         ;;
13856       hpux9* | hpux10* | hpux11*)
13857         case $cc_basename in
13858           CC*)
13859             lt_prog_compiler_wl_CXX='-Wl,'
13860             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13861             if test "$host_cpu" != ia64; then
13862               lt_prog_compiler_pic_CXX='+Z'
13863             fi
13864             ;;
13865           aCC*)
13866             lt_prog_compiler_wl_CXX='-Wl,'
13867             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13868             case $host_cpu in
13869             hppa*64*|ia64*)
13870               # +Z the default
13871               ;;
13872             *)
13873               lt_prog_compiler_pic_CXX='+Z'
13874               ;;
13875             esac
13876             ;;
13877           *)
13878             ;;
13879         esac
13880         ;;
13881       interix*)
13882         # This is c89, which is MS Visual C++ (no shared libs)
13883         # Anyone wants to do a port?
13884         ;;
13885       irix5* | irix6* | nonstopux*)
13886         case $cc_basename in
13887           CC*)
13888             lt_prog_compiler_wl_CXX='-Wl,'
13889             lt_prog_compiler_static_CXX='-non_shared'
13890             # CC pic flag -KPIC is the default.
13891             ;;
13892           *)
13893             ;;
13894         esac
13895         ;;
13896       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13897         case $cc_basename in
13898           KCC*)
13899             # KAI C++ Compiler
13900             lt_prog_compiler_wl_CXX='--backend -Wl,'
13901             lt_prog_compiler_pic_CXX='-fPIC'
13902             ;;
13903           ecpc* )
13904             # old Intel C++ for x86_64 which still supported -KPIC.
13905             lt_prog_compiler_wl_CXX='-Wl,'
13906             lt_prog_compiler_pic_CXX='-KPIC'
13907             lt_prog_compiler_static_CXX='-static'
13908             ;;
13909           icpc* )
13910             # Intel C++, used to be incompatible with GCC.
13911             # ICC 10 doesn't accept -KPIC any more.
13912             lt_prog_compiler_wl_CXX='-Wl,'
13913             lt_prog_compiler_pic_CXX='-fPIC'
13914             lt_prog_compiler_static_CXX='-static'
13915             ;;
13916           pgCC* | pgcpp*)
13917             # Portland Group C++ compiler
13918             lt_prog_compiler_wl_CXX='-Wl,'
13919             lt_prog_compiler_pic_CXX='-fpic'
13920             lt_prog_compiler_static_CXX='-Bstatic'
13921             ;;
13922           cxx*)
13923             # Compaq C++
13924             # Make sure the PIC flag is empty.  It appears that all Alpha
13925             # Linux and Compaq Tru64 Unix objects are PIC.
13926             lt_prog_compiler_pic_CXX=
13927             lt_prog_compiler_static_CXX='-non_shared'
13928             ;;
13929           xlc* | xlC*)
13930             # IBM XL 8.0 on PPC
13931             lt_prog_compiler_wl_CXX='-Wl,'
13932             lt_prog_compiler_pic_CXX='-qpic'
13933             lt_prog_compiler_static_CXX='-qstaticlink'
13934             ;;
13935           *)
13936             case `$CC -V 2>&1 | sed 5q` in
13937             *Sun\ C*)
13938               # Sun C++ 5.9
13939               lt_prog_compiler_pic_CXX='-KPIC'
13940               lt_prog_compiler_static_CXX='-Bstatic'
13941               lt_prog_compiler_wl_CXX='-Qoption ld '
13942               ;;
13943             esac
13944             ;;
13945         esac
13946         ;;
13947       lynxos*)
13948         ;;
13949       m88k*)
13950         ;;
13951       mvs*)
13952         case $cc_basename in
13953           cxx*)
13954             lt_prog_compiler_pic_CXX='-W c,exportall'
13955             ;;
13956           *)
13957             ;;
13958         esac
13959         ;;
13960       netbsd* | netbsdelf*-gnu)
13961         ;;
13962       *qnx* | *nto*)
13963         # QNX uses GNU C++, but need to define -shared option too, otherwise
13964         # it will coredump.
13965         lt_prog_compiler_pic_CXX='-fPIC -shared'
13966         ;;
13967       osf3* | osf4* | osf5*)
13968         case $cc_basename in
13969           KCC*)
13970             lt_prog_compiler_wl_CXX='--backend -Wl,'
13971             ;;
13972           RCC*)
13973             # Rational C++ 2.4.1
13974             lt_prog_compiler_pic_CXX='-pic'
13975             ;;
13976           cxx*)
13977             # Digital/Compaq C++
13978             lt_prog_compiler_wl_CXX='-Wl,'
13979             # Make sure the PIC flag is empty.  It appears that all Alpha
13980             # Linux and Compaq Tru64 Unix objects are PIC.
13981             lt_prog_compiler_pic_CXX=
13982             lt_prog_compiler_static_CXX='-non_shared'
13983             ;;
13984           *)
13985             ;;
13986         esac
13987         ;;
13988       psos*)
13989         ;;
13990       solaris*)
13991         case $cc_basename in
13992           CC*)
13993             # Sun C++ 4.2, 5.x and Centerline C++
13994             lt_prog_compiler_pic_CXX='-KPIC'
13995             lt_prog_compiler_static_CXX='-Bstatic'
13996             lt_prog_compiler_wl_CXX='-Qoption ld '
13997             ;;
13998           gcx*)
13999             # Green Hills C++ Compiler
14000             lt_prog_compiler_pic_CXX='-PIC'
14001             ;;
14002           *)
14003             ;;
14004         esac
14005         ;;
14006       sunos4*)
14007         case $cc_basename in
14008           CC*)
14009             # Sun C++ 4.x
14010             lt_prog_compiler_pic_CXX='-pic'
14011             lt_prog_compiler_static_CXX='-Bstatic'
14012             ;;
14013           lcc*)
14014             # Lucid
14015             lt_prog_compiler_pic_CXX='-pic'
14016             ;;
14017           *)
14018             ;;
14019         esac
14020         ;;
14021       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14022         case $cc_basename in
14023           CC*)
14024             lt_prog_compiler_wl_CXX='-Wl,'
14025             lt_prog_compiler_pic_CXX='-KPIC'
14026             lt_prog_compiler_static_CXX='-Bstatic'
14027             ;;
14028         esac
14029         ;;
14030       tandem*)
14031         case $cc_basename in
14032           NCC*)
14033             # NonStop-UX NCC 3.20
14034             lt_prog_compiler_pic_CXX='-KPIC'
14035             ;;
14036           *)
14037             ;;
14038         esac
14039         ;;
14040       vxworks*)
14041         ;;
14042       *)
14043         lt_prog_compiler_can_build_shared_CXX=no
14044         ;;
14045     esac
14046   fi
14047
14048 case $host_os in
14049   # For platforms which do not support PIC, -DPIC is meaningless:
14050   *djgpp*)
14051     lt_prog_compiler_pic_CXX=
14052     ;;
14053   *)
14054     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14055     ;;
14056 esac
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14058 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14059
14060
14061
14062 #
14063 # Check to make sure the PIC flag actually works.
14064 #
14065 if test -n "$lt_prog_compiler_pic_CXX"; then
14066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14067 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14068 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14069   $as_echo_n "(cached) " >&6
14070 else
14071   lt_cv_prog_compiler_pic_works_CXX=no
14072    ac_outfile=conftest.$ac_objext
14073    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14074    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14075    # Insert the option either (1) after the last *FLAGS variable, or
14076    # (2) before a word containing "conftest.", or (3) at the end.
14077    # Note that $ac_compile itself does not contain backslashes and begins
14078    # with a dollar sign (not a hyphen), so the echo should work correctly.
14079    # The option is referenced via a variable to avoid confusing sed.
14080    lt_compile=`echo "$ac_compile" | $SED \
14081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14083    -e 's:$: $lt_compiler_flag:'`
14084    (eval echo "\"\$as_me:14084: $lt_compile\"" >&5)
14085    (eval "$lt_compile" 2>conftest.err)
14086    ac_status=$?
14087    cat conftest.err >&5
14088    echo "$as_me:14088: \$? = $ac_status" >&5
14089    if (exit $ac_status) && test -s "$ac_outfile"; then
14090      # The compiler can only warn and ignore the option if not recognized
14091      # So say no if there are warnings other than the usual output.
14092      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14093      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14094      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14095        lt_cv_prog_compiler_pic_works_CXX=yes
14096      fi
14097    fi
14098    $RM conftest*
14099
14100 fi
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14102 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14103
14104 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14105     case $lt_prog_compiler_pic_CXX in
14106      "" | " "*) ;;
14107      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14108      esac
14109 else
14110     lt_prog_compiler_pic_CXX=
14111      lt_prog_compiler_can_build_shared_CXX=no
14112 fi
14113
14114 fi
14115
14116
14117
14118 #
14119 # Check to make sure the static flag actually works.
14120 #
14121 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14123 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14124 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14125   $as_echo_n "(cached) " >&6
14126 else
14127   lt_cv_prog_compiler_static_works_CXX=no
14128    save_LDFLAGS="$LDFLAGS"
14129    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14130    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14131    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14132      # The linker can only warn and ignore the option if not recognized
14133      # So say no if there are warnings
14134      if test -s conftest.err; then
14135        # Append any errors to the config.log.
14136        cat conftest.err 1>&5
14137        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14138        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14139        if diff conftest.exp conftest.er2 >/dev/null; then
14140          lt_cv_prog_compiler_static_works_CXX=yes
14141        fi
14142      else
14143        lt_cv_prog_compiler_static_works_CXX=yes
14144      fi
14145    fi
14146    $RM -r conftest*
14147    LDFLAGS="$save_LDFLAGS"
14148
14149 fi
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14151 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14152
14153 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14154     :
14155 else
14156     lt_prog_compiler_static_CXX=
14157 fi
14158
14159
14160
14161
14162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14164 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14165   $as_echo_n "(cached) " >&6
14166 else
14167   lt_cv_prog_compiler_c_o_CXX=no
14168    $RM -r conftest 2>/dev/null
14169    mkdir conftest
14170    cd conftest
14171    mkdir out
14172    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14173
14174    lt_compiler_flag="-o out/conftest2.$ac_objext"
14175    # Insert the option either (1) after the last *FLAGS variable, or
14176    # (2) before a word containing "conftest.", or (3) at the end.
14177    # Note that $ac_compile itself does not contain backslashes and begins
14178    # with a dollar sign (not a hyphen), so the echo should work correctly.
14179    lt_compile=`echo "$ac_compile" | $SED \
14180    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14181    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14182    -e 's:$: $lt_compiler_flag:'`
14183    (eval echo "\"\$as_me:14183: $lt_compile\"" >&5)
14184    (eval "$lt_compile" 2>out/conftest.err)
14185    ac_status=$?
14186    cat out/conftest.err >&5
14187    echo "$as_me:14187: \$? = $ac_status" >&5
14188    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14189    then
14190      # The compiler can only warn and ignore the option if not recognized
14191      # So say no if there are warnings
14192      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14193      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14194      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14195        lt_cv_prog_compiler_c_o_CXX=yes
14196      fi
14197    fi
14198    chmod u+w . 2>&5
14199    $RM conftest*
14200    # SGI C++ compiler will create directory out/ii_files/ for
14201    # template instantiation
14202    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14203    $RM out/* && rmdir out
14204    cd ..
14205    $RM -r conftest
14206    $RM conftest*
14207
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14210 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14211
14212
14213
14214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14216 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14217   $as_echo_n "(cached) " >&6
14218 else
14219   lt_cv_prog_compiler_c_o_CXX=no
14220    $RM -r conftest 2>/dev/null
14221    mkdir conftest
14222    cd conftest
14223    mkdir out
14224    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14225
14226    lt_compiler_flag="-o out/conftest2.$ac_objext"
14227    # Insert the option either (1) after the last *FLAGS variable, or
14228    # (2) before a word containing "conftest.", or (3) at the end.
14229    # Note that $ac_compile itself does not contain backslashes and begins
14230    # with a dollar sign (not a hyphen), so the echo should work correctly.
14231    lt_compile=`echo "$ac_compile" | $SED \
14232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14234    -e 's:$: $lt_compiler_flag:'`
14235    (eval echo "\"\$as_me:14235: $lt_compile\"" >&5)
14236    (eval "$lt_compile" 2>out/conftest.err)
14237    ac_status=$?
14238    cat out/conftest.err >&5
14239    echo "$as_me:14239: \$? = $ac_status" >&5
14240    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14241    then
14242      # The compiler can only warn and ignore the option if not recognized
14243      # So say no if there are warnings
14244      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14245      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14246      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14247        lt_cv_prog_compiler_c_o_CXX=yes
14248      fi
14249    fi
14250    chmod u+w . 2>&5
14251    $RM conftest*
14252    # SGI C++ compiler will create directory out/ii_files/ for
14253    # template instantiation
14254    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14255    $RM out/* && rmdir out
14256    cd ..
14257    $RM -r conftest
14258    $RM conftest*
14259
14260 fi
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14262 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14263
14264
14265
14266
14267 hard_links="nottested"
14268 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14269   # do not overwrite the value of need_locks provided by the user
14270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14271 $as_echo_n "checking if we can lock with hard links... " >&6; }
14272   hard_links=yes
14273   $RM conftest*
14274   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14275   touch conftest.a
14276   ln conftest.a conftest.b 2>&5 || hard_links=no
14277   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14279 $as_echo "$hard_links" >&6; }
14280   if test "$hard_links" = no; then
14281     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14282 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14283     need_locks=warn
14284   fi
14285 else
14286   need_locks=no
14287 fi
14288
14289
14290
14291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14292 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14293
14294   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14295   case $host_os in
14296   aix[4-9]*)
14297     # If we're using GNU nm, then we don't want the "-C" option.
14298     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14299     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14300       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'
14301     else
14302       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'
14303     fi
14304     ;;
14305   pw32*)
14306     export_symbols_cmds_CXX="$ltdll_cmds"
14307   ;;
14308   cygwin* | mingw* | cegcc*)
14309     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'
14310   ;;
14311   linux* | k*bsd*-gnu)
14312     link_all_deplibs_CXX=no
14313   ;;
14314   *)
14315     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14316   ;;
14317   esac
14318   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14319
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14321 $as_echo "$ld_shlibs_CXX" >&6; }
14322 test "$ld_shlibs_CXX" = no && can_build_shared=no
14323
14324 with_gnu_ld_CXX=$with_gnu_ld
14325
14326
14327
14328
14329
14330
14331 #
14332 # Do we need to explicitly link libc?
14333 #
14334 case "x$archive_cmds_need_lc_CXX" in
14335 x|xyes)
14336   # Assume -lc should be added
14337   archive_cmds_need_lc_CXX=yes
14338
14339   if test "$enable_shared" = yes && test "$GCC" = yes; then
14340     case $archive_cmds_CXX in
14341     *'~'*)
14342       # FIXME: we may have to deal with multi-command sequences.
14343       ;;
14344     '$CC '*)
14345       # Test whether the compiler implicitly links with -lc since on some
14346       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14347       # to ld, don't add -lc before -lgcc.
14348       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14349 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14350       $RM conftest*
14351       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14352
14353       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14354   (eval $ac_compile) 2>&5
14355   ac_status=$?
14356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14357   test $ac_status = 0; } 2>conftest.err; then
14358         soname=conftest
14359         lib=conftest
14360         libobjs=conftest.$ac_objext
14361         deplibs=
14362         wl=$lt_prog_compiler_wl_CXX
14363         pic_flag=$lt_prog_compiler_pic_CXX
14364         compiler_flags=-v
14365         linker_flags=-v
14366         verstring=
14367         output_objdir=.
14368         libname=conftest
14369         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14370         allow_undefined_flag_CXX=
14371         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14372   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14373   ac_status=$?
14374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14375   test $ac_status = 0; }
14376         then
14377           archive_cmds_need_lc_CXX=no
14378         else
14379           archive_cmds_need_lc_CXX=yes
14380         fi
14381         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14382       else
14383         cat conftest.err 1>&5
14384       fi
14385       $RM conftest*
14386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14387 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14388       ;;
14389     esac
14390   fi
14391   ;;
14392 esac
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14458 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14459
14460 library_names_spec=
14461 libname_spec='lib$name'
14462 soname_spec=
14463 shrext_cmds=".so"
14464 postinstall_cmds=
14465 postuninstall_cmds=
14466 finish_cmds=
14467 finish_eval=
14468 shlibpath_var=
14469 shlibpath_overrides_runpath=unknown
14470 version_type=none
14471 dynamic_linker="$host_os ld.so"
14472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14473 need_lib_prefix=unknown
14474 hardcode_into_libs=no
14475
14476 # when you set need_version to no, make sure it does not cause -set_version
14477 # flags to be left without arguments
14478 need_version=unknown
14479
14480 case $host_os in
14481 aix3*)
14482   version_type=linux
14483   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14484   shlibpath_var=LIBPATH
14485
14486   # AIX 3 has no versioning support, so we append a major version to the name.
14487   soname_spec='${libname}${release}${shared_ext}$major'
14488   ;;
14489
14490 aix[4-9]*)
14491   version_type=linux
14492   need_lib_prefix=no
14493   need_version=no
14494   hardcode_into_libs=yes
14495   if test "$host_cpu" = ia64; then
14496     # AIX 5 supports IA64
14497     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14498     shlibpath_var=LD_LIBRARY_PATH
14499   else
14500     # With GCC up to 2.95.x, collect2 would create an import file
14501     # for dependence libraries.  The import file would start with
14502     # the line `#! .'.  This would cause the generated library to
14503     # depend on `.', always an invalid library.  This was fixed in
14504     # development snapshots of GCC prior to 3.0.
14505     case $host_os in
14506       aix4 | aix4.[01] | aix4.[01].*)
14507       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14508            echo ' yes '
14509            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14510         :
14511       else
14512         can_build_shared=no
14513       fi
14514       ;;
14515     esac
14516     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14517     # soname into executable. Probably we can add versioning support to
14518     # collect2, so additional links can be useful in future.
14519     if test "$aix_use_runtimelinking" = yes; then
14520       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14521       # instead of lib<name>.a to let people know that these are not
14522       # typical AIX shared libraries.
14523       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524     else
14525       # We preserve .a as extension for shared libraries through AIX4.2
14526       # and later when we are not doing run time linking.
14527       library_names_spec='${libname}${release}.a $libname.a'
14528       soname_spec='${libname}${release}${shared_ext}$major'
14529     fi
14530     shlibpath_var=LIBPATH
14531   fi
14532   ;;
14533
14534 amigaos*)
14535   case $host_cpu in
14536   powerpc)
14537     # Since July 2007 AmigaOS4 officially supports .so libraries.
14538     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540     ;;
14541   m68k)
14542     library_names_spec='$libname.ixlibrary $libname.a'
14543     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14544     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'
14545     ;;
14546   esac
14547   ;;
14548
14549 beos*)
14550   library_names_spec='${libname}${shared_ext}'
14551   dynamic_linker="$host_os ld.so"
14552   shlibpath_var=LIBRARY_PATH
14553   ;;
14554
14555 bsdi[45]*)
14556   version_type=linux
14557   need_version=no
14558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559   soname_spec='${libname}${release}${shared_ext}$major'
14560   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14561   shlibpath_var=LD_LIBRARY_PATH
14562   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14563   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14564   # the default ld.so.conf also contains /usr/contrib/lib and
14565   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14566   # libtool to hard-code these into programs
14567   ;;
14568
14569 cygwin* | mingw* | pw32* | cegcc*)
14570   version_type=windows
14571   shrext_cmds=".dll"
14572   need_version=no
14573   need_lib_prefix=no
14574
14575   case $GCC,$host_os in
14576   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14577     library_names_spec='$libname.dll.a'
14578     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14579     postinstall_cmds='base_file=`basename \${file}`~
14580       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14581       dldir=$destdir/`dirname \$dlpath`~
14582       test -d \$dldir || mkdir -p \$dldir~
14583       $install_prog $dir/$dlname \$dldir/$dlname~
14584       chmod a+x \$dldir/$dlname~
14585       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14586         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14587       fi'
14588     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14589       dlpath=$dir/\$dldll~
14590        $RM \$dlpath'
14591     shlibpath_overrides_runpath=yes
14592
14593     case $host_os in
14594     cygwin*)
14595       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14596       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14597       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14598       ;;
14599     mingw* | cegcc*)
14600       # MinGW DLLs use traditional 'lib' prefix
14601       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14602       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14603       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14604         # It is most probably a Windows format PATH printed by
14605         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14606         # path with ; separators, and with drive letters. We can handle the
14607         # drive letters (cygwin fileutils understands them), so leave them,
14608         # especially as we might pass files found there to a mingw objdump,
14609         # which wouldn't understand a cygwinified path. Ahh.
14610         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14611       else
14612         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14613       fi
14614       ;;
14615     pw32*)
14616       # pw32 DLLs use 'pw' prefix rather than 'lib'
14617       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14618       ;;
14619     esac
14620     ;;
14621
14622   *)
14623     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14624     ;;
14625   esac
14626   dynamic_linker='Win32 ld.exe'
14627   # FIXME: first we should search . and the directory the executable is in
14628   shlibpath_var=PATH
14629   ;;
14630
14631 darwin* | rhapsody*)
14632   dynamic_linker="$host_os dyld"
14633   version_type=darwin
14634   need_lib_prefix=no
14635   need_version=no
14636   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14637   soname_spec='${libname}${release}${major}$shared_ext'
14638   shlibpath_overrides_runpath=yes
14639   shlibpath_var=DYLD_LIBRARY_PATH
14640   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14641
14642   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14643   ;;
14644
14645 dgux*)
14646   version_type=linux
14647   need_lib_prefix=no
14648   need_version=no
14649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14650   soname_spec='${libname}${release}${shared_ext}$major'
14651   shlibpath_var=LD_LIBRARY_PATH
14652   ;;
14653
14654 freebsd1*)
14655   dynamic_linker=no
14656   ;;
14657
14658 freebsd* | dragonfly*)
14659   # DragonFly does not have aout.  When/if they implement a new
14660   # versioning mechanism, adjust this.
14661   if test -x /usr/bin/objformat; then
14662     objformat=`/usr/bin/objformat`
14663   else
14664     case $host_os in
14665     freebsd[123]*) objformat=aout ;;
14666     *) objformat=elf ;;
14667     esac
14668   fi
14669   version_type=freebsd-$objformat
14670   case $version_type in
14671     freebsd-elf*)
14672       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14673       need_version=no
14674       need_lib_prefix=no
14675       ;;
14676     freebsd-*)
14677       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14678       need_version=yes
14679       ;;
14680   esac
14681   shlibpath_var=LD_LIBRARY_PATH
14682   case $host_os in
14683   freebsd2*)
14684     shlibpath_overrides_runpath=yes
14685     ;;
14686   freebsd3.[01]* | freebsdelf3.[01]*)
14687     shlibpath_overrides_runpath=yes
14688     hardcode_into_libs=yes
14689     ;;
14690   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14691   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14692     shlibpath_overrides_runpath=no
14693     hardcode_into_libs=yes
14694     ;;
14695   *) # from 4.6 on, and DragonFly
14696     shlibpath_overrides_runpath=yes
14697     hardcode_into_libs=yes
14698     ;;
14699   esac
14700   ;;
14701
14702 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   shlibpath_var=LD_LIBRARY_PATH
14709   hardcode_into_libs=yes
14710   ;;
14711
14712 hpux9* | hpux10* | hpux11*)
14713   # Give a soname corresponding to the major version so that dld.sl refuses to
14714   # link against other versions.
14715   version_type=sunos
14716   need_lib_prefix=no
14717   need_version=no
14718   case $host_cpu in
14719   ia64*)
14720     shrext_cmds='.so'
14721     hardcode_into_libs=yes
14722     dynamic_linker="$host_os dld.so"
14723     shlibpath_var=LD_LIBRARY_PATH
14724     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726     soname_spec='${libname}${release}${shared_ext}$major'
14727     if test "X$HPUX_IA64_MODE" = X32; then
14728       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14729     else
14730       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14731     fi
14732     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14733     ;;
14734   hppa*64*)
14735     shrext_cmds='.sl'
14736     hardcode_into_libs=yes
14737     dynamic_linker="$host_os dld.sl"
14738     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14739     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14740     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741     soname_spec='${libname}${release}${shared_ext}$major'
14742     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14743     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14744     ;;
14745   *)
14746     shrext_cmds='.sl'
14747     dynamic_linker="$host_os dld.sl"
14748     shlibpath_var=SHLIB_PATH
14749     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14750     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751     soname_spec='${libname}${release}${shared_ext}$major'
14752     ;;
14753   esac
14754   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14755   postinstall_cmds='chmod 555 $lib'
14756   ;;
14757
14758 interix[3-9]*)
14759   version_type=linux
14760   need_lib_prefix=no
14761   need_version=no
14762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763   soname_spec='${libname}${release}${shared_ext}$major'
14764   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14765   shlibpath_var=LD_LIBRARY_PATH
14766   shlibpath_overrides_runpath=no
14767   hardcode_into_libs=yes
14768   ;;
14769
14770 irix5* | irix6* | nonstopux*)
14771   case $host_os in
14772     nonstopux*) version_type=nonstopux ;;
14773     *)
14774         if test "$lt_cv_prog_gnu_ld" = yes; then
14775                 version_type=linux
14776         else
14777                 version_type=irix
14778         fi ;;
14779   esac
14780   need_lib_prefix=no
14781   need_version=no
14782   soname_spec='${libname}${release}${shared_ext}$major'
14783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14784   case $host_os in
14785   irix5* | nonstopux*)
14786     libsuff= shlibsuff=
14787     ;;
14788   *)
14789     case $LD in # libtool.m4 will add one of these switches to LD
14790     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14791       libsuff= shlibsuff= libmagic=32-bit;;
14792     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14793       libsuff=32 shlibsuff=N32 libmagic=N32;;
14794     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14795       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14796     *) libsuff= shlibsuff= libmagic=never-match;;
14797     esac
14798     ;;
14799   esac
14800   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14801   shlibpath_overrides_runpath=no
14802   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14803   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14804   hardcode_into_libs=yes
14805   ;;
14806
14807 # No shared lib support for Linux oldld, aout, or coff.
14808 linux*oldld* | linux*aout* | linux*coff*)
14809   dynamic_linker=no
14810   ;;
14811
14812 # This must be Linux ELF.
14813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14814   version_type=linux
14815   need_lib_prefix=no
14816   need_version=no
14817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818   soname_spec='${libname}${release}${shared_ext}$major'
14819   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14820   shlibpath_var=LD_LIBRARY_PATH
14821   shlibpath_overrides_runpath=no
14822   # Some binutils ld are patched to set DT_RUNPATH
14823   save_LDFLAGS=$LDFLAGS
14824   save_libdir=$libdir
14825   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14826        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h.  */
14829
14830 int
14831 main ()
14832 {
14833
14834   ;
14835   return 0;
14836 }
14837 _ACEOF
14838 if ac_fn_cxx_try_link "$LINENO"; then :
14839   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14840   shlibpath_overrides_runpath=yes
14841 fi
14842 fi
14843 rm -f core conftest.err conftest.$ac_objext \
14844     conftest$ac_exeext conftest.$ac_ext
14845   LDFLAGS=$save_LDFLAGS
14846   libdir=$save_libdir
14847
14848   # This implies no fast_install, which is unacceptable.
14849   # Some rework will be needed to allow for fast_install
14850   # before this can be enabled.
14851   hardcode_into_libs=yes
14852
14853   # Append ld.so.conf contents to the search path
14854   if test -f /etc/ld.so.conf; then
14855     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' ' '`
14856     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14857   fi
14858
14859   # We used to test for /lib/ld.so.1 and disable shared libraries on
14860   # powerpc, because MkLinux only supported shared libraries with the
14861   # GNU dynamic linker.  Since this was broken with cross compilers,
14862   # most powerpc-linux boxes support dynamic linking these days and
14863   # people can always --disable-shared, the test was removed, and we
14864   # assume the GNU/Linux dynamic linker is in use.
14865   dynamic_linker='GNU/Linux ld.so'
14866   ;;
14867
14868 netbsdelf*-gnu)
14869   version_type=linux
14870   need_lib_prefix=no
14871   need_version=no
14872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14873   soname_spec='${libname}${release}${shared_ext}$major'
14874   shlibpath_var=LD_LIBRARY_PATH
14875   shlibpath_overrides_runpath=no
14876   hardcode_into_libs=yes
14877   dynamic_linker='NetBSD ld.elf_so'
14878   ;;
14879
14880 netbsd*)
14881   version_type=sunos
14882   need_lib_prefix=no
14883   need_version=no
14884   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14886     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14887     dynamic_linker='NetBSD (a.out) ld.so'
14888   else
14889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14890     soname_spec='${libname}${release}${shared_ext}$major'
14891     dynamic_linker='NetBSD ld.elf_so'
14892   fi
14893   shlibpath_var=LD_LIBRARY_PATH
14894   shlibpath_overrides_runpath=yes
14895   hardcode_into_libs=yes
14896   ;;
14897
14898 newsos6)
14899   version_type=linux
14900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901   shlibpath_var=LD_LIBRARY_PATH
14902   shlibpath_overrides_runpath=yes
14903   ;;
14904
14905 *nto* | *qnx*)
14906   version_type=qnx
14907   need_lib_prefix=no
14908   need_version=no
14909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910   soname_spec='${libname}${release}${shared_ext}$major'
14911   shlibpath_var=LD_LIBRARY_PATH
14912   shlibpath_overrides_runpath=no
14913   hardcode_into_libs=yes
14914   dynamic_linker='ldqnx.so'
14915   ;;
14916
14917 openbsd*)
14918   version_type=sunos
14919   sys_lib_dlsearch_path_spec="/usr/lib"
14920   need_lib_prefix=no
14921   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14922   case $host_os in
14923     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14924     *)                          need_version=no  ;;
14925   esac
14926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14927   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14928   shlibpath_var=LD_LIBRARY_PATH
14929   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14930     case $host_os in
14931       openbsd2.[89] | openbsd2.[89].*)
14932         shlibpath_overrides_runpath=no
14933         ;;
14934       *)
14935         shlibpath_overrides_runpath=yes
14936         ;;
14937       esac
14938   else
14939     shlibpath_overrides_runpath=yes
14940   fi
14941   ;;
14942
14943 os2*)
14944   libname_spec='$name'
14945   shrext_cmds=".dll"
14946   need_lib_prefix=no
14947   library_names_spec='$libname${shared_ext} $libname.a'
14948   dynamic_linker='OS/2 ld.exe'
14949   shlibpath_var=LIBPATH
14950   ;;
14951
14952 osf3* | osf4* | osf5*)
14953   version_type=osf
14954   need_lib_prefix=no
14955   need_version=no
14956   soname_spec='${libname}${release}${shared_ext}$major'
14957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958   shlibpath_var=LD_LIBRARY_PATH
14959   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14960   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14961   ;;
14962
14963 rdos*)
14964   dynamic_linker=no
14965   ;;
14966
14967 solaris*)
14968   version_type=linux
14969   need_lib_prefix=no
14970   need_version=no
14971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972   soname_spec='${libname}${release}${shared_ext}$major'
14973   shlibpath_var=LD_LIBRARY_PATH
14974   shlibpath_overrides_runpath=yes
14975   hardcode_into_libs=yes
14976   # ldd complains unless libraries are executable
14977   postinstall_cmds='chmod +x $lib'
14978   ;;
14979
14980 sunos4*)
14981   version_type=sunos
14982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14983   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14984   shlibpath_var=LD_LIBRARY_PATH
14985   shlibpath_overrides_runpath=yes
14986   if test "$with_gnu_ld" = yes; then
14987     need_lib_prefix=no
14988   fi
14989   need_version=yes
14990   ;;
14991
14992 sysv4 | sysv4.3*)
14993   version_type=linux
14994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995   soname_spec='${libname}${release}${shared_ext}$major'
14996   shlibpath_var=LD_LIBRARY_PATH
14997   case $host_vendor in
14998     sni)
14999       shlibpath_overrides_runpath=no
15000       need_lib_prefix=no
15001       runpath_var=LD_RUN_PATH
15002       ;;
15003     siemens)
15004       need_lib_prefix=no
15005       ;;
15006     motorola)
15007       need_lib_prefix=no
15008       need_version=no
15009       shlibpath_overrides_runpath=no
15010       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15011       ;;
15012   esac
15013   ;;
15014
15015 sysv4*MP*)
15016   if test -d /usr/nec ;then
15017     version_type=linux
15018     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15019     soname_spec='$libname${shared_ext}.$major'
15020     shlibpath_var=LD_LIBRARY_PATH
15021   fi
15022   ;;
15023
15024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15025   version_type=freebsd-elf
15026   need_lib_prefix=no
15027   need_version=no
15028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15029   soname_spec='${libname}${release}${shared_ext}$major'
15030   shlibpath_var=LD_LIBRARY_PATH
15031   shlibpath_overrides_runpath=yes
15032   hardcode_into_libs=yes
15033   if test "$with_gnu_ld" = yes; then
15034     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15035   else
15036     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15037     case $host_os in
15038       sco3.2v5*)
15039         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15040         ;;
15041     esac
15042   fi
15043   sys_lib_dlsearch_path_spec='/usr/lib'
15044   ;;
15045
15046 tpf*)
15047   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15048   version_type=linux
15049   need_lib_prefix=no
15050   need_version=no
15051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052   shlibpath_var=LD_LIBRARY_PATH
15053   shlibpath_overrides_runpath=no
15054   hardcode_into_libs=yes
15055   ;;
15056
15057 uts4*)
15058   version_type=linux
15059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060   soname_spec='${libname}${release}${shared_ext}$major'
15061   shlibpath_var=LD_LIBRARY_PATH
15062   ;;
15063
15064 *)
15065   dynamic_linker=no
15066   ;;
15067 esac
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15069 $as_echo "$dynamic_linker" >&6; }
15070 test "$dynamic_linker" = no && can_build_shared=no
15071
15072 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15073 if test "$GCC" = yes; then
15074   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15075 fi
15076
15077 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15078   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15079 fi
15080 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15081   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15082 fi
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15120 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15121 hardcode_action_CXX=
15122 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15123    test -n "$runpath_var_CXX" ||
15124    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15125
15126   # We can hardcode non-existent directories.
15127   if test "$hardcode_direct_CXX" != no &&
15128      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15129      # have to relink, otherwise we might link with an installed library
15130      # when we should be linking with a yet-to-be-installed one
15131      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15132      test "$hardcode_minus_L_CXX" != no; then
15133     # Linking always hardcodes the temporary library directory.
15134     hardcode_action_CXX=relink
15135   else
15136     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15137     hardcode_action_CXX=immediate
15138   fi
15139 else
15140   # We cannot hardcode anything, or else we can only hardcode existing
15141   # directories.
15142   hardcode_action_CXX=unsupported
15143 fi
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15145 $as_echo "$hardcode_action_CXX" >&6; }
15146
15147 if test "$hardcode_action_CXX" = relink ||
15148    test "$inherit_rpath_CXX" = yes; then
15149   # Fast installation is not supported
15150   enable_fast_install=no
15151 elif test "$shlibpath_overrides_runpath" = yes ||
15152      test "$enable_shared" = no; then
15153   # Fast installation is not necessary
15154   enable_fast_install=needless
15155 fi
15156
15157
15158
15159
15160
15161
15162
15163   fi # test -n "$compiler"
15164
15165   CC=$lt_save_CC
15166   LDCXX=$LD
15167   LD=$lt_save_LD
15168   GCC=$lt_save_GCC
15169   with_gnu_ld=$lt_save_with_gnu_ld
15170   lt_cv_path_LDCXX=$lt_cv_path_LD
15171   lt_cv_path_LD=$lt_save_path_LD
15172   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15173   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15174 fi # test "$_lt_caught_CXX_error" != yes
15175
15176 ac_ext=c
15177 ac_cpp='$CPP $CPPFLAGS'
15178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194         ac_config_commands="$ac_config_commands libtool"
15195
15196
15197
15198
15199 # Only expand once:
15200
15201
15202 #
15203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15204 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15205 if test "${ac_cv_c_bigendian+set}" = set; then :
15206   $as_echo_n "(cached) " >&6
15207 else
15208   ac_cv_c_bigendian=unknown
15209     # See if we're dealing with a universal compiler.
15210     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h.  */
15212 #ifndef __APPLE_CC__
15213                not a universal capable compiler
15214              #endif
15215              typedef int dummy;
15216
15217 _ACEOF
15218 if ac_fn_c_try_compile "$LINENO"; then :
15219
15220         # Check for potential -arch flags.  It is not universal unless
15221         # there are at least two -arch flags with different values.
15222         ac_arch=
15223         ac_prev=
15224         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15225          if test -n "$ac_prev"; then
15226            case $ac_word in
15227              i?86 | x86_64 | ppc | ppc64)
15228                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15229                  ac_arch=$ac_word
15230                else
15231                  ac_cv_c_bigendian=universal
15232                  break
15233                fi
15234                ;;
15235            esac
15236            ac_prev=
15237          elif test "x$ac_word" = "x-arch"; then
15238            ac_prev=arch
15239          fi
15240        done
15241 fi
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243     if test $ac_cv_c_bigendian = unknown; then
15244       # See if sys/param.h defines the BYTE_ORDER macro.
15245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h.  */
15247 #include <sys/types.h>
15248              #include <sys/param.h>
15249
15250 int
15251 main ()
15252 {
15253 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15254                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15255                      && LITTLE_ENDIAN)
15256               bogus endian macros
15257              #endif
15258
15259   ;
15260   return 0;
15261 }
15262 _ACEOF
15263 if ac_fn_c_try_compile "$LINENO"; then :
15264   # It does; now see whether it defined to BIG_ENDIAN or not.
15265          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h.  */
15267 #include <sys/types.h>
15268                 #include <sys/param.h>
15269
15270 int
15271 main ()
15272 {
15273 #if BYTE_ORDER != BIG_ENDIAN
15274                  not big endian
15275                 #endif
15276
15277   ;
15278   return 0;
15279 }
15280 _ACEOF
15281 if ac_fn_c_try_compile "$LINENO"; then :
15282   ac_cv_c_bigendian=yes
15283 else
15284   ac_cv_c_bigendian=no
15285 fi
15286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287 fi
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289     fi
15290     if test $ac_cv_c_bigendian = unknown; then
15291       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15292       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h.  */
15294 #include <limits.h>
15295
15296 int
15297 main ()
15298 {
15299 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15300               bogus endian macros
15301              #endif
15302
15303   ;
15304   return 0;
15305 }
15306 _ACEOF
15307 if ac_fn_c_try_compile "$LINENO"; then :
15308   # It does; now see whether it defined to _BIG_ENDIAN or not.
15309          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h.  */
15311 #include <limits.h>
15312
15313 int
15314 main ()
15315 {
15316 #ifndef _BIG_ENDIAN
15317                  not big endian
15318                 #endif
15319
15320   ;
15321   return 0;
15322 }
15323 _ACEOF
15324 if ac_fn_c_try_compile "$LINENO"; then :
15325   ac_cv_c_bigendian=yes
15326 else
15327   ac_cv_c_bigendian=no
15328 fi
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330 fi
15331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15332     fi
15333     if test $ac_cv_c_bigendian = unknown; then
15334       # Compile a test program.
15335       if test "$cross_compiling" = yes; then :
15336   # Try to guess by grepping values from an object file.
15337          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h.  */
15339 short int ascii_mm[] =
15340                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15341                 short int ascii_ii[] =
15342                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15343                 int use_ascii (int i) {
15344                   return ascii_mm[i] + ascii_ii[i];
15345                 }
15346                 short int ebcdic_ii[] =
15347                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15348                 short int ebcdic_mm[] =
15349                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15350                 int use_ebcdic (int i) {
15351                   return ebcdic_mm[i] + ebcdic_ii[i];
15352                 }
15353                 extern int foo;
15354
15355 int
15356 main ()
15357 {
15358 return use_ascii (foo) == use_ebcdic (foo);
15359   ;
15360   return 0;
15361 }
15362 _ACEOF
15363 if ac_fn_c_try_compile "$LINENO"; then :
15364   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15365               ac_cv_c_bigendian=yes
15366             fi
15367             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15368               if test "$ac_cv_c_bigendian" = unknown; then
15369                 ac_cv_c_bigendian=no
15370               else
15371                 # finding both strings is unlikely to happen, but who knows?
15372                 ac_cv_c_bigendian=unknown
15373               fi
15374             fi
15375 fi
15376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15377 else
15378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h.  */
15380 $ac_includes_default
15381 int
15382 main ()
15383 {
15384
15385              /* Are we little or big endian?  From Harbison&Steele.  */
15386              union
15387              {
15388                long int l;
15389                char c[sizeof (long int)];
15390              } u;
15391              u.l = 1;
15392              return u.c[sizeof (long int) - 1] == 1;
15393
15394   ;
15395   return 0;
15396 }
15397 _ACEOF
15398 if ac_fn_c_try_run "$LINENO"; then :
15399   ac_cv_c_bigendian=no
15400 else
15401   ac_cv_c_bigendian=yes
15402 fi
15403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15404   conftest.$ac_objext conftest.beam conftest.$ac_ext
15405 fi
15406
15407     fi
15408 fi
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15410 $as_echo "$ac_cv_c_bigendian" >&6; }
15411  case $ac_cv_c_bigendian in #(
15412    yes)
15413      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15414 ;; #(
15415    no)
15416       ;; #(
15417    universal)
15418
15419 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15420
15421      ;; #(
15422    *)
15423      as_fn_error "unknown endianness
15424  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15425  esac
15426
15427 #
15428 LDLIBS=""
15429 #
15430 LIB_MATH=""
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15432 $as_echo_n "checking for sqrt in -lm... " >&6; }
15433 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
15434   $as_echo_n "(cached) " >&6
15435 else
15436   ac_check_lib_save_LIBS=$LIBS
15437 LIBS="-lm  $LIBS"
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h.  */
15440
15441 /* Override any GCC internal prototype to avoid an error.
15442    Use char because int might match the return type of a GCC
15443    builtin and then its argument prototype would still apply.  */
15444 #ifdef __cplusplus
15445 extern "C"
15446 #endif
15447 char sqrt ();
15448 int
15449 main ()
15450 {
15451 return sqrt ();
15452   ;
15453   return 0;
15454 }
15455 _ACEOF
15456 if ac_fn_c_try_link "$LINENO"; then :
15457   ac_cv_lib_m_sqrt=yes
15458 else
15459   ac_cv_lib_m_sqrt=no
15460 fi
15461 rm -f core conftest.err conftest.$ac_objext \
15462     conftest$ac_exeext conftest.$ac_ext
15463 LIBS=$ac_check_lib_save_LIBS
15464 fi
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15466 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15467 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
15468   LIB_MATH="-lm"
15469 fi
15470
15471 LDLIBS=""
15472 #
15473 # Extract the first word of "pkg-config", so it can be a program name with args.
15474 set dummy pkg-config; ac_word=$2
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15476 $as_echo_n "checking for $ac_word... " >&6; }
15477 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
15478   $as_echo_n "(cached) " >&6
15479 else
15480   case $PKGCONFIG in
15481   [\\/]* | ?:[\\/]*)
15482   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15483   ;;
15484   *)
15485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15486 for as_dir in $PATH
15487 do
15488   IFS=$as_save_IFS
15489   test -z "$as_dir" && as_dir=.
15490     for ac_exec_ext in '' $ac_executable_extensions; do
15491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15492     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15494     break 2
15495   fi
15496 done
15497   done
15498 IFS=$as_save_IFS
15499
15500   ;;
15501 esac
15502 fi
15503 PKGCONFIG=$ac_cv_path_PKGCONFIG
15504 if test -n "$PKGCONFIG"; then
15505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
15506 $as_echo "$PKGCONFIG" >&6; }
15507 else
15508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15510 fi
15511
15512
15513 #
15514 # ------------------------------
15515 # Test for PNG
15516 # ------------------------------
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
15518 $as_echo_n "checking whether to build with PNG support... " >&6; }
15519 pngincludes=""
15520 pnglibs=""
15521 png_header_found="no"
15522 with_libpng="yes"
15523 #
15524 # Check whether --enable-png was given.
15525 if test "${enable_png+set}" = set; then :
15526   enableval=$enable_png; test "$enable_png" = "no"  && with_libpng="no"
15527 fi
15528
15529 #
15530 if test "x$with_libpng" = xyes ; then
15531   with_libpng="no"
15532   # Extract the first word of "libpng-config", so it can be a program name with args.
15533 set dummy libpng-config; ac_word=$2
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15535 $as_echo_n "checking for $ac_word... " >&6; }
15536 if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then :
15537   $as_echo_n "(cached) " >&6
15538 else
15539   case $LIBPNG_CONFIG in
15540   [\\/]* | ?:[\\/]*)
15541   ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
15542   ;;
15543   *)
15544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545 for as_dir in $PATH
15546 do
15547   IFS=$as_save_IFS
15548   test -z "$as_dir" && as_dir=.
15549     for ac_exec_ext in '' $ac_executable_extensions; do
15550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15551     ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15553     break 2
15554   fi
15555 done
15556   done
15557 IFS=$as_save_IFS
15558
15559   ;;
15560 esac
15561 fi
15562 LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
15563 if test -n "$LIBPNG_CONFIG"; then
15564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
15565 $as_echo "$LIBPNG_CONFIG" >&6; }
15566 else
15567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15568 $as_echo "no" >&6; }
15569 fi
15570
15571
15572 #
15573   pngheader=""
15574
15575 # Check whether --with-png_includes was given.
15576 if test "${with_png_includes+set}" = set; then :
15577   withval=$with_png_includes;
15578 fi
15579
15580   if test -n "$with_png_includes" ; then
15581    pngheader="$with_png_includes"
15582    pngincludes="-I$with_png_includes"
15583   else
15584    if test -n "$PKGCONFIG" ; then
15585      pngincludes="`$PKGCONFIG --variable=includedir libpng`"
15586    fi
15587    if test -n "$pngincludes" ; then
15588     pngheader="$pngincludes"
15589     pngincludes="-I$pngincludes"
15590    fi
15591   fi
15592   if test -n "$pngheader" ; then
15593    pngheader="$pngheader/png.h"
15594   else
15595    pngheader="png.h"
15596   fi
15597   as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
15598 ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
15599 eval as_val=\$$as_ac_Header
15600    if test "x$as_val" = x""yes; then :
15601   png_header_found="yes"
15602 fi
15603
15604
15605 #last resort
15606   if test "$png_header_found" = "no" ; then
15607    pngincludes=""
15608    pngheader=""
15609    if test -n "$LIBPNG_CONFIG" ; then
15610      pngincludes="`$LIBPNG_CONFIG --I_opts`"
15611      pngheader="`$LIBPNG_CONFIG --I_opts | $SED 's/-I//'`"
15612    fi
15613    if test -n "$pngheader" ; then
15614     pngheader="$pngheader/png.h"
15615     as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
15616 ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
15617 eval as_val=\$$as_ac_Header
15618    if test "x$as_val" = x""yes; then :
15619   png_header_found="yes"
15620 fi
15621
15622
15623    fi
15624   fi
15625 #
15626
15627 # Check whether --with-png_libraries was given.
15628 if test "${with_png_libraries+set}" = set; then :
15629   withval=$with_png_libraries;
15630 fi
15631
15632   if [ -n "$with_png_libraries" ] ; then
15633    pnglibs="-L$with_png_libraries -lpng -lz $LIB_MATH"
15634   else
15635     if test -n "$LIBPNG_CONFIG" ; then
15636      pnglibs="`$LIBPNG_CONFIG --ldflags` -lz $LIB_MATH"
15637     fi
15638   fi
15639   if test -n "$pnglibs" ; then
15640     if test -n "$pngincludes" ; then
15641       with_libpng="yes"
15642       png_header_found="yes"
15643
15644 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
15645
15646     fi
15647   fi
15648 fi
15649 #
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: png is usable:$with_libpng" >&5
15651 $as_echo "png is usable:$with_libpng" >&6; }
15652  if test x$with_libpng = xyes; then
15653   with_libpng_TRUE=
15654   with_libpng_FALSE='#'
15655 else
15656   with_libpng_TRUE='#'
15657   with_libpng_FALSE=
15658 fi
15659
15660 LDLIBS="$LDLIBS $pnglibs"
15661
15662
15663 # -------------------------------
15664 # Test for TIFF
15665 # -------------------------------
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
15667 $as_echo_n "checking whether to build with TIFF support... " >&6; }
15668 tifflibs=""
15669 tiffincludes=""
15670 with_libtiff="yes"
15671 tiff_header_found="no"
15672 #
15673 # Check whether --enable-tiff was given.
15674 if test "${enable_tiff+set}" = set; then :
15675   enableval=$enable_tiff; test "$enable_tiff" = "no"  && with_libtiff="no"
15676 fi
15677
15678 #
15679 if test "x$with_libtiff" = xyes ; then
15680 #standard path
15681  with_libtiff="no"
15682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15683 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15684 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15685   $as_echo_n "(cached) " >&6
15686 else
15687   ac_check_lib_save_LIBS=$LIBS
15688 LIBS="-ltiff  $LIBS"
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h.  */
15691
15692 /* Override any GCC internal prototype to avoid an error.
15693    Use char because int might match the return type of a GCC
15694    builtin and then its argument prototype would still apply.  */
15695 #ifdef __cplusplus
15696 extern "C"
15697 #endif
15698 char TIFFOpen ();
15699 int
15700 main ()
15701 {
15702 return TIFFOpen ();
15703   ;
15704   return 0;
15705 }
15706 _ACEOF
15707 if ac_fn_c_try_link "$LINENO"; then :
15708   ac_cv_lib_tiff_TIFFOpen=yes
15709 else
15710   ac_cv_lib_tiff_TIFFOpen=no
15711 fi
15712 rm -f core conftest.err conftest.$ac_objext \
15713     conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15715 fi
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15717 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15718 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15719   tifflibs=-ltiff
15720 fi
15721
15722  if test -n "$tifflibs" ; then
15723   ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
15724 if test "x$ac_cv_header_tiff_h" = x""yes; then :
15725   tiff_header_found="yes"
15726 fi
15727
15728
15729   if test "$tiff_header_found" = "yes" ; then
15730    with_libtiff="yes"
15731    LIBS="$LIBS -ltiff $LIB_MATH"
15732
15733 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15734
15735   fi
15736  fi
15737 #
15738  if test "x$with_libtiff" = xno ; then
15739 #non-standard path
15740
15741 # Check whether --with-tiff_includes was given.
15742 if test "${with_tiff_includes+set}" = set; then :
15743   withval=$with_tiff_includes;
15744 fi
15745
15746   if test -n "$with_tiff_includes" ; then
15747    tiffheader="$with_tiff_includes/tiff.h"
15748    as_ac_Header=`$as_echo "ac_cv_header_$tiffheader" | $as_tr_sh`
15749 ac_fn_c_check_header_mongrel "$LINENO" "$tiffheader" "$as_ac_Header" "$ac_includes_default"
15750 eval as_val=\$$as_ac_Header
15751    if test "x$as_val" = x""yes; then :
15752   tiff_header_found="yes"
15753 fi
15754
15755
15756    if test "$tiff_header_found" = "yes" ; then
15757      tiffincludes="-I$with_tiff_includes"
15758    fi
15759   fi
15760
15761 # Check whether --with-tiff_libraries was given.
15762 if test "${with_tiff_libraries+set}" = set; then :
15763   withval=$with_tiff_libraries;
15764 fi
15765
15766   if test -n "$with_tiff_libraries" ; then
15767    tifflibs="-L$with_tiff_libraries"
15768   fi
15769   tifflibs="$tifflibs -ltiff $LIB_MATH"
15770   savedLIBS="$LIBS"
15771   LIBS="$tifflibs"
15772   with_libtiff="no"
15773 #
15774   ac_fn_c_check_func "$LINENO" "TIFFOpen" "ac_cv_func_TIFFOpen"
15775 if test "x$ac_cv_func_TIFFOpen" = x""yes; then :
15776   true
15777 else
15778   tifflibs=""
15779 fi
15780
15781 #
15782   if test -n "$tifflibs" ; then
15783    if test "$tiff_header_found" = "yes" ; then
15784     with_libtiff="yes"
15785
15786 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15787
15788    fi
15789   fi
15790   LIBS="$savedLIBS $tifflibs"
15791  fi
15792 fi
15793 #
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tiff is usable:$with_libtiff" >&5
15795 $as_echo "tiff is usable:$with_libtiff" >&6; }
15796  if test x$with_libtiff = xyes; then
15797   with_libtiff_TRUE=
15798   with_libtiff_FALSE='#'
15799 else
15800   with_libtiff_TRUE='#'
15801   with_libtiff_FALSE=
15802 fi
15803
15804 LDLIBS="$tifflibs $LDLIBS"
15805
15806
15807 # -------------------------------
15808 # Test for LCMS version 2.x
15809 # -------------------------------
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS support" >&5
15811 $as_echo_n "checking whether to build with LCMS support... " >&6; }
15812 lcms1includes=""
15813 lcms1libs=""
15814 lcms2includes=""
15815 lcms2libs=""
15816 with_liblcms1="no"
15817 lcms1_header_found="no"
15818 lcms2_header_found="no"
15819 have_lcms1_version=""
15820 have_lcms2_version=""
15821 with_liblcms2="yes"
15822 #
15823 # Check whether --enable-lcms2 was given.
15824 if test "${enable_lcms2+set}" = set; then :
15825   enableval=$enable_lcms2; test "$enable_lcms2" = "no"  && with_liblcms2="no"
15826 fi
15827
15828 #
15829 if test "x$with_liblcms2" = xyes ; then
15830   with_liblcms2="no"
15831   lcms2header=""
15832
15833 # Check whether --with-lcms2_includes was given.
15834 if test "${with_lcms2_includes+set}" = set; then :
15835   withval=$with_lcms2_includes;
15836 fi
15837
15838   if test -n "$with_lcms2_includes" ; then
15839    lcms2header="$with_lcms2_includes"
15840    lcms2includes="-I$with_lcms2_includes"
15841   else
15842    if test -n "$PKGCONFIG" ; then
15843      lcms2includes="`$PKGCONFIG --variable=prefix lcms2`"
15844    fi
15845    if test -n "$lcms2includes" ; then
15846     lcms2header="$lcms2_includes"
15847     lcms2includes="-I$lcms2includes/include"
15848    fi
15849   fi
15850   if test -n "$lcms2header" ; then
15851    lcms2header="$lcms2header/lcms2.h"
15852   else
15853    lcms2header="lcms2.h"
15854   fi
15855   as_ac_Header=`$as_echo "ac_cv_header_$lcms2header" | $as_tr_sh`
15856 ac_fn_c_check_header_mongrel "$LINENO" "$lcms2header" "$as_ac_Header" "$ac_includes_default"
15857 eval as_val=\$$as_ac_Header
15858    if test "x$as_val" = x""yes; then :
15859   lcms2_header_found="yes"
15860 fi
15861
15862
15863 #
15864
15865 # Check whether --with-lcms2_libraries was given.
15866 if test "${with_lcms2_libraries+set}" = set; then :
15867   withval=$with_lcms2_libraries;
15868 fi
15869
15870   if test -n "$with_lcms2_libraries" ; then
15871    lcms2libs="-L$with_lcms2_libraries -llcms2"
15872   else
15873    if test -n "$PKGCONFIG" ; then
15874      lcms2libs="`$PKGCONFIG --libs lcms2`"
15875    fi
15876    if test -z "$lcms2libs" ; then
15877     lcms2libs="-llcms2"
15878    fi
15879    lcms2libs="$lcms2libs $LIB_MATH"
15880   fi
15881   savedLIBS="$LIBS"
15882   LIBS="$lcms2libs"
15883   with_liblcms2="no"
15884 #
15885   ac_fn_c_check_func "$LINENO" "cmsOpenProfileFromFile" "ac_cv_func_cmsOpenProfileFromFile"
15886 if test "x$ac_cv_func_cmsOpenProfileFromFile" = x""yes; then :
15887   true
15888 else
15889   lcms2libs=""
15890 fi
15891
15892 #
15893   if test -n "$lcms2libs" ; then
15894    if test "$lcms2_header_found" = "yes" ; then
15895     with_liblcms2="yes"
15896
15897 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
15898
15899     if test -n "$PKGCONFIG" ; then
15900       have_lcms2_version="`$PKGCONFIG --modversion lcms2`"
15901     fi
15902    fi
15903   fi
15904   if test "$with_liblcms2" = "no" ; then
15905     lcms2libs=""
15906     lcms2includes=""
15907     lcms2libs=""
15908   fi
15909   LIBS="$savedLIBS $lcms2libs"
15910 fi
15911 #
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2 is usable:$with_liblcms2" >&5
15913 $as_echo "lcms2 is usable:$with_liblcms2" >&6; }
15914  if test x$with_liblmcs2 = xyes; then
15915   with_liblcms2_TRUE=
15916   with_liblcms2_FALSE='#'
15917 else
15918   with_liblcms2_TRUE='#'
15919   with_liblcms2_FALSE=
15920 fi
15921
15922 LDLIBS="$lcms2libs $LDLIBS"
15923
15924
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2libs:$lcms2libs" >&5
15926 $as_echo "lcms2libs:$lcms2libs" >&6; }
15927 # ----------------------------
15928 # Test for LCMS version 1.x
15929 # ----------------------------
15930 if [ -z "$lcms2libs" ] ; then
15931  with_liblcms1="yes"
15932  # Check whether --enable-lcms1 was given.
15933 if test "${enable_lcms1+set}" = set; then :
15934   enableval=$enable_lcms1; test "$enable_lcms1" = "no"  && with_liblcms1="no"
15935 fi
15936
15937 #
15938  if test "x$with_liblcms1" = xyes ; then
15939    with_liblcms1="no"
15940    lcms1header=""
15941
15942 # Check whether --with-lcms1_includes was given.
15943 if test "${with_lcms1_includes+set}" = set; then :
15944   withval=$with_lcms1_includes;
15945 fi
15946
15947    if test -n "$with_lcms1_includes" ; then
15948     lcms1header="$with_lcms1_includes"
15949     lcms1includes="-I$with_lcms1_includes"
15950    else
15951     if test -n "$PKGCONFIG" ; then
15952       lcms1includes="`$PKGCONFIG --variable=includedir lcms`"
15953     fi
15954     if test -n "$lcms1includes" ; then
15955      lcms1header="$lcms1includes"
15956      lcms1includes="-I$lcms1includes"
15957     fi
15958    fi
15959    if test -n "$lcms1header" ; then
15960     lcms1header="$lcms1header/lcms.h"
15961    else
15962     lcms1header="lcms.h"
15963    fi
15964    as_ac_Header=`$as_echo "ac_cv_header_$lcms1header" | $as_tr_sh`
15965 ac_fn_c_check_header_mongrel "$LINENO" "$lcms1header" "$as_ac_Header" "$ac_includes_default"
15966 eval as_val=\$$as_ac_Header
15967    if test "x$as_val" = x""yes; then :
15968   lcms1_header_found="yes"
15969 fi
15970
15971
15972 #
15973
15974 # Check whether --with-lcms1_libraries was given.
15975 if test "${with_lcms1_libraries+set}" = set; then :
15976   withval=$with_lcms1_libraries;
15977 fi
15978
15979    if test -n "$with_lcms1_libraries" ; then
15980     lcms1libs="-L$with_lcms1_libraries -llcms"
15981    else
15982     if test -n "$PKGCONFIG" ; then
15983       lcms1libs="`$PKGCONFIG --libs lcms`"
15984     fi
15985     if test -z "$lcms1libs" ; then
15986      lcms1libs="-llcms"
15987     fi
15988     lcms1libs="$lcms1libs $LIB_MATH"
15989    fi
15990    savedLIBS="$LIBS"
15991    LIBS="$lcms1libs"
15992    with_liblcms1="no"
15993 #
15994    ac_fn_c_check_func "$LINENO" "cmsOpenProfileFromFile" "ac_cv_func_cmsOpenProfileFromFile"
15995 if test "x$ac_cv_func_cmsOpenProfileFromFile" = x""yes; then :
15996   true
15997 else
15998   lcms1libs=""
15999 fi
16000
16001 #
16002    if test -n "$lcms1libs" ; then
16003     if test "$lcms1_header_found" = "yes" ; then
16004      with_liblcms1="yes"
16005
16006 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
16007
16008      if test -n "$PKGCONFIG" ; then
16009        have_lcms1_version="`$PKGCONFIG --modversion lcms`"
16010      fi
16011     fi
16012    fi
16013    if test "$with_liblcms1" = "no" ; then
16014      lcms1libs=""
16015      lcms1includes=""
16016      lcms1libs=""
16017    fi
16018    LIBS="$savedLIBS $lcms1libs"
16019  fi
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms is usable:$with_liblcms1" >&5
16021 $as_echo "lcms is usable:$with_liblcms1" >&6; }
16022 fi
16023 #
16024  if test x$with_liblcms1 = xyes; then
16025   with_liblcms1_TRUE=
16026   with_liblcms1_FALSE='#'
16027 else
16028   with_liblcms1_TRUE='#'
16029   with_liblcms1_FALSE=
16030 fi
16031
16032 LDLIBS="$lcms1libs $LDLIBS"
16033
16034
16035 #
16036 # -------------------------------
16037 # Test for USE_JPWL
16038 # -------------------------------
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with JPWL support" >&5
16040 $as_echo_n "checking whether to build with JPWL support... " >&6; }
16041 with_libjpwl="no"
16042 jpwl_dir=""
16043 # Check whether --enable-jpwl was given.
16044 if test "${enable_jpwl+set}" = set; then :
16045   enableval=$enable_jpwl; test "$enable_jpwl" = "yes" && with_libjpwl="yes"
16046 fi
16047
16048 #
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libjpwl" >&5
16050 $as_echo "$with_libjpwl" >&6; }
16051  if test x$with_libjpwl = xyes; then
16052   with_libjpwl_TRUE=
16053   with_libjpwl_FALSE='#'
16054 else
16055   with_libjpwl_TRUE='#'
16056   with_libjpwl_FALSE=
16057 fi
16058
16059 if test "$with_libjpwl" = "yes" ; then
16060  jpwl_dir="jpwl"
16061 fi
16062
16063 #
16064 # -------------------------------
16065 # Test for creating SHARED LIBS
16066 # -------------------------------
16067 with_sharedlibs="no"
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16069 $as_echo_n "checking whether to build shared libraries... " >&6; }
16070 # Check whether --enable-shared was given.
16071 if test "${enable_shared+set}" = set; then :
16072   enableval=$enable_shared; test "$enable_shared" = "yes" && with_sharedlibs="yes"
16073 fi
16074
16075 #
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sharedlibs" >&5
16077 $as_echo "$with_sharedlibs" >&6; }
16078  if test x$with_sharedlibs = xyes; then
16079   with_sharedlibs_TRUE=
16080   with_sharedlibs_FALSE='#'
16081 else
16082   with_sharedlibs_TRUE='#'
16083   with_sharedlibs_FALSE=
16084 fi
16085
16086 #
16087 # -------------------------------
16088 # Test for creating JP3D
16089 # -------------------------------
16090 with_jp3d="no"
16091 jp3d_dir=""
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JP3D library" >&5
16093 $as_echo_n "checking whether to build the JP3D library... " >&6; }
16094 # Check whether --enable-jp3d was given.
16095 if test "${enable_jp3d+set}" = set; then :
16096   enableval=$enable_jp3d; test "$enable_jp3d" = "yes" && with_jp3d="yes"
16097 fi
16098
16099 #
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jp3d" >&5
16101 $as_echo "$with_jp3d" >&6; }
16102 if test "$with_jp3d" = "yes" ; then
16103  jp3d_dir="jp3d"
16104 fi
16105
16106 #
16107
16108 #
16109 # Extract the first word of "doxygen", so it can be a program name with args.
16110 set dummy doxygen; ac_word=$2
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16112 $as_echo_n "checking for $ac_word... " >&6; }
16113 if test "${ac_cv_prog_with_doxygen+set}" = set; then :
16114   $as_echo_n "(cached) " >&6
16115 else
16116   if test -n "$with_doxygen"; then
16117   ac_cv_prog_with_doxygen="$with_doxygen" # Let the user override the test.
16118 else
16119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16120 for as_dir in $PATH
16121 do
16122   IFS=$as_save_IFS
16123   test -z "$as_dir" && as_dir=.
16124     for ac_exec_ext in '' $ac_executable_extensions; do
16125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16126     ac_cv_prog_with_doxygen="yes"
16127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16128     break 2
16129   fi
16130 done
16131   done
16132 IFS=$as_save_IFS
16133
16134   test -z "$ac_cv_prog_with_doxygen" && ac_cv_prog_with_doxygen="no"
16135 fi
16136 fi
16137 with_doxygen=$ac_cv_prog_with_doxygen
16138 if test -n "$with_doxygen"; then
16139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doxygen" >&5
16140 $as_echo "$with_doxygen" >&6; }
16141 else
16142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143 $as_echo "no" >&6; }
16144 fi
16145
16146
16147 doxy_dir=""
16148 if test "$with_doxygen" = "yes" ; then
16149  dox_dir="doc"
16150 fi
16151
16152 #
16153 ac_config_files="$ac_config_files Makefile"
16154
16155 ac_config_files="$ac_config_files libopenjpeg/Makefile"
16156
16157 ac_config_files="$ac_config_files jpwl/Makefile"
16158
16159 ac_config_files="$ac_config_files codec/Makefile"
16160
16161 ac_config_files="$ac_config_files mj2/Makefile"
16162
16163 ac_config_files="$ac_config_files doc/Makefile"
16164
16165 ac_config_files="$ac_config_files jp3d/Makefile"
16166
16167 ac_config_files="$ac_config_files jp3d/libjp3dvm/Makefile"
16168
16169 ac_config_files="$ac_config_files jp3d/codec/Makefile"
16170
16171 cat >confcache <<\_ACEOF
16172 # This file is a shell script that caches the results of configure
16173 # tests run on this system so they can be shared between configure
16174 # scripts and configure runs, see configure's option --config-cache.
16175 # It is not useful on other systems.  If it contains results you don't
16176 # want to keep, you may remove or edit it.
16177 #
16178 # config.status only pays attention to the cache file if you give it
16179 # the --recheck option to rerun configure.
16180 #
16181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16183 # following values.
16184
16185 _ACEOF
16186
16187 # The following way of writing the cache mishandles newlines in values,
16188 # but we know of no workaround that is simple, portable, and efficient.
16189 # So, we kill variables containing newlines.
16190 # Ultrix sh set writes to stderr and can't be redirected directly,
16191 # and sets the high bit in the cache file unless we assign to the vars.
16192 (
16193   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16194     eval ac_val=\$$ac_var
16195     case $ac_val in #(
16196     *${as_nl}*)
16197       case $ac_var in #(
16198       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16199 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16200       esac
16201       case $ac_var in #(
16202       _ | IFS | as_nl) ;; #(
16203       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16204       *) { eval $ac_var=; unset $ac_var;} ;;
16205       esac ;;
16206     esac
16207   done
16208
16209   (set) 2>&1 |
16210     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16211     *${as_nl}ac_space=\ *)
16212       # `set' does not quote correctly, so add quotes: double-quote
16213       # substitution turns \\\\ into \\, and sed turns \\ into \.
16214       sed -n \
16215         "s/'/'\\\\''/g;
16216           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16217       ;; #(
16218     *)
16219       # `set' quotes correctly as required by POSIX, so do not add quotes.
16220       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16221       ;;
16222     esac |
16223     sort
16224 ) |
16225   sed '
16226      /^ac_cv_env_/b end
16227      t clear
16228      :clear
16229      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16230      t end
16231      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16232      :end' >>confcache
16233 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16234   if test -w "$cache_file"; then
16235     test "x$cache_file" != "x/dev/null" &&
16236       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16237 $as_echo "$as_me: updating cache $cache_file" >&6;}
16238     cat confcache >$cache_file
16239   else
16240     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16241 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16242   fi
16243 fi
16244 rm -f confcache
16245
16246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16247 # Let make expand exec_prefix.
16248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16249
16250 DEFS=-DHAVE_CONFIG_H
16251
16252 ac_libobjs=
16253 ac_ltlibobjs=
16254 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16255   # 1. Remove the extension, and $U if already installed.
16256   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16257   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16258   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16259   #    will be set to the directory where LIBOBJS objects are built.
16260   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16261   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16262 done
16263 LIBOBJS=$ac_libobjs
16264
16265 LTLIBOBJS=$ac_ltlibobjs
16266
16267
16268  if test -n "$EXEEXT"; then
16269   am__EXEEXT_TRUE=
16270   am__EXEEXT_FALSE='#'
16271 else
16272   am__EXEEXT_TRUE='#'
16273   am__EXEEXT_FALSE=
16274 fi
16275
16276 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16277   as_fn_error "conditional \"AMDEP\" was never defined.
16278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16279 fi
16280 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16281   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16283 fi
16284 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16285   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16287 fi
16288 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16289   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16291 fi
16292
16293 if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
16294   as_fn_error "conditional \"with_libpng\" was never defined.
16295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16296 fi
16297 if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
16298   as_fn_error "conditional \"with_libtiff\" was never defined.
16299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16300 fi
16301 if test -z "${with_liblcms2_TRUE}" && test -z "${with_liblcms2_FALSE}"; then
16302   as_fn_error "conditional \"with_liblcms2\" was never defined.
16303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16304 fi
16305 if test -z "${with_liblcms1_TRUE}" && test -z "${with_liblcms1_FALSE}"; then
16306   as_fn_error "conditional \"with_liblcms1\" was never defined.
16307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16308 fi
16309 if test -z "${with_libjpwl_TRUE}" && test -z "${with_libjpwl_FALSE}"; then
16310   as_fn_error "conditional \"with_libjpwl\" was never defined.
16311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16312 fi
16313 if test -z "${with_sharedlibs_TRUE}" && test -z "${with_sharedlibs_FALSE}"; then
16314   as_fn_error "conditional \"with_sharedlibs\" was never defined.
16315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16316 fi
16317
16318 : ${CONFIG_STATUS=./config.status}
16319 ac_write_fail=0
16320 ac_clean_files_save=$ac_clean_files
16321 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16323 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16324 as_write_fail=0
16325 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16326 #! $SHELL
16327 # Generated by $as_me.
16328 # Run this file to recreate the current configuration.
16329 # Compiler output produced by configure, useful for debugging
16330 # configure, is in config.log if it exists.
16331
16332 debug=false
16333 ac_cs_recheck=false
16334 ac_cs_silent=false
16335
16336 SHELL=\${CONFIG_SHELL-$SHELL}
16337 export SHELL
16338 _ASEOF
16339 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16340 ## -------------------- ##
16341 ## M4sh Initialization. ##
16342 ## -------------------- ##
16343
16344 # Be more Bourne compatible
16345 DUALCASE=1; export DUALCASE # for MKS sh
16346 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16347   emulate sh
16348   NULLCMD=:
16349   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16350   # is contrary to our usage.  Disable this feature.
16351   alias -g '${1+"$@"}'='"$@"'
16352   setopt NO_GLOB_SUBST
16353 else
16354   case `(set -o) 2>/dev/null` in #(
16355   *posix*) :
16356     set -o posix ;; #(
16357   *) :
16358      ;;
16359 esac
16360 fi
16361
16362
16363 as_nl='
16364 '
16365 export as_nl
16366 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16367 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16368 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16369 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16370 # Prefer a ksh shell builtin over an external printf program on Solaris,
16371 # but without wasting forks for bash or zsh.
16372 if test -z "$BASH_VERSION$ZSH_VERSION" \
16373     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16374   as_echo='print -r --'
16375   as_echo_n='print -rn --'
16376 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16377   as_echo='printf %s\n'
16378   as_echo_n='printf %s'
16379 else
16380   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16381     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16382     as_echo_n='/usr/ucb/echo -n'
16383   else
16384     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16385     as_echo_n_body='eval
16386       arg=$1;
16387       case $arg in #(
16388       *"$as_nl"*)
16389         expr "X$arg" : "X\\(.*\\)$as_nl";
16390         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16391       esac;
16392       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16393     '
16394     export as_echo_n_body
16395     as_echo_n='sh -c $as_echo_n_body as_echo'
16396   fi
16397   export as_echo_body
16398   as_echo='sh -c $as_echo_body as_echo'
16399 fi
16400
16401 # The user is always right.
16402 if test "${PATH_SEPARATOR+set}" != set; then
16403   PATH_SEPARATOR=:
16404   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16405     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16406       PATH_SEPARATOR=';'
16407   }
16408 fi
16409
16410
16411 # IFS
16412 # We need space, tab and new line, in precisely that order.  Quoting is
16413 # there to prevent editors from complaining about space-tab.
16414 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16415 # splitting by setting IFS to empty value.)
16416 IFS=" ""        $as_nl"
16417
16418 # Find who we are.  Look in the path if we contain no directory separator.
16419 case $0 in #((
16420   *[\\/]* ) as_myself=$0 ;;
16421   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16422 for as_dir in $PATH
16423 do
16424   IFS=$as_save_IFS
16425   test -z "$as_dir" && as_dir=.
16426     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16427   done
16428 IFS=$as_save_IFS
16429
16430      ;;
16431 esac
16432 # We did not find ourselves, most probably we were run as `sh COMMAND'
16433 # in which case we are not to be found in the path.
16434 if test "x$as_myself" = x; then
16435   as_myself=$0
16436 fi
16437 if test ! -f "$as_myself"; then
16438   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16439   exit 1
16440 fi
16441
16442 # Unset variables that we do not need and which cause bugs (e.g. in
16443 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16444 # suppresses any "Segmentation fault" message there.  '((' could
16445 # trigger a bug in pdksh 5.2.14.
16446 for as_var in BASH_ENV ENV MAIL MAILPATH
16447 do eval test x\${$as_var+set} = xset \
16448   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16449 done
16450 PS1='$ '
16451 PS2='> '
16452 PS4='+ '
16453
16454 # NLS nuisances.
16455 LC_ALL=C
16456 export LC_ALL
16457 LANGUAGE=C
16458 export LANGUAGE
16459
16460 # CDPATH.
16461 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16462
16463
16464 # as_fn_error ERROR [LINENO LOG_FD]
16465 # ---------------------------------
16466 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16467 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16468 # script with status $?, using 1 if that was 0.
16469 as_fn_error ()
16470 {
16471   as_status=$?; test $as_status -eq 0 && as_status=1
16472   if test "$3"; then
16473     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16474     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16475   fi
16476   $as_echo "$as_me: error: $1" >&2
16477   as_fn_exit $as_status
16478 } # as_fn_error
16479
16480
16481 # as_fn_set_status STATUS
16482 # -----------------------
16483 # Set $? to STATUS, without forking.
16484 as_fn_set_status ()
16485 {
16486   return $1
16487 } # as_fn_set_status
16488
16489 # as_fn_exit STATUS
16490 # -----------------
16491 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16492 as_fn_exit ()
16493 {
16494   set +e
16495   as_fn_set_status $1
16496   exit $1
16497 } # as_fn_exit
16498
16499 # as_fn_unset VAR
16500 # ---------------
16501 # Portably unset VAR.
16502 as_fn_unset ()
16503 {
16504   { eval $1=; unset $1;}
16505 }
16506 as_unset=as_fn_unset
16507 # as_fn_append VAR VALUE
16508 # ----------------------
16509 # Append the text in VALUE to the end of the definition contained in VAR. Take
16510 # advantage of any shell optimizations that allow amortized linear growth over
16511 # repeated appends, instead of the typical quadratic growth present in naive
16512 # implementations.
16513 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16514   eval 'as_fn_append ()
16515   {
16516     eval $1+=\$2
16517   }'
16518 else
16519   as_fn_append ()
16520   {
16521     eval $1=\$$1\$2
16522   }
16523 fi # as_fn_append
16524
16525 # as_fn_arith ARG...
16526 # ------------------
16527 # Perform arithmetic evaluation on the ARGs, and store the result in the
16528 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16529 # must be portable across $(()) and expr.
16530 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16531   eval 'as_fn_arith ()
16532   {
16533     as_val=$(( $* ))
16534   }'
16535 else
16536   as_fn_arith ()
16537   {
16538     as_val=`expr "$@" || test $? -eq 1`
16539   }
16540 fi # as_fn_arith
16541
16542
16543 if expr a : '\(a\)' >/dev/null 2>&1 &&
16544    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16545   as_expr=expr
16546 else
16547   as_expr=false
16548 fi
16549
16550 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16551   as_basename=basename
16552 else
16553   as_basename=false
16554 fi
16555
16556 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16557   as_dirname=dirname
16558 else
16559   as_dirname=false
16560 fi
16561
16562 as_me=`$as_basename -- "$0" ||
16563 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16564          X"$0" : 'X\(//\)$' \| \
16565          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16566 $as_echo X/"$0" |
16567     sed '/^.*\/\([^/][^/]*\)\/*$/{
16568             s//\1/
16569             q
16570           }
16571           /^X\/\(\/\/\)$/{
16572             s//\1/
16573             q
16574           }
16575           /^X\/\(\/\).*/{
16576             s//\1/
16577             q
16578           }
16579           s/.*/./; q'`
16580
16581 # Avoid depending upon Character Ranges.
16582 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16583 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16584 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16585 as_cr_digits='0123456789'
16586 as_cr_alnum=$as_cr_Letters$as_cr_digits
16587
16588 ECHO_C= ECHO_N= ECHO_T=
16589 case `echo -n x` in #(((((
16590 -n*)
16591   case `echo 'xy\c'` in
16592   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16593   xy)  ECHO_C='\c';;
16594   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16595        ECHO_T=' ';;
16596   esac;;
16597 *)
16598   ECHO_N='-n';;
16599 esac
16600
16601 rm -f conf$$ conf$$.exe conf$$.file
16602 if test -d conf$$.dir; then
16603   rm -f conf$$.dir/conf$$.file
16604 else
16605   rm -f conf$$.dir
16606   mkdir conf$$.dir 2>/dev/null
16607 fi
16608 if (echo >conf$$.file) 2>/dev/null; then
16609   if ln -s conf$$.file conf$$ 2>/dev/null; then
16610     as_ln_s='ln -s'
16611     # ... but there are two gotchas:
16612     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16613     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16614     # In both cases, we have to default to `cp -p'.
16615     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16616       as_ln_s='cp -p'
16617   elif ln conf$$.file conf$$ 2>/dev/null; then
16618     as_ln_s=ln
16619   else
16620     as_ln_s='cp -p'
16621   fi
16622 else
16623   as_ln_s='cp -p'
16624 fi
16625 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16626 rmdir conf$$.dir 2>/dev/null
16627
16628
16629 # as_fn_mkdir_p
16630 # -------------
16631 # Create "$as_dir" as a directory, including parents if necessary.
16632 as_fn_mkdir_p ()
16633 {
16634
16635   case $as_dir in #(
16636   -*) as_dir=./$as_dir;;
16637   esac
16638   test -d "$as_dir" || eval $as_mkdir_p || {
16639     as_dirs=
16640     while :; do
16641       case $as_dir in #(
16642       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16643       *) as_qdir=$as_dir;;
16644       esac
16645       as_dirs="'$as_qdir' $as_dirs"
16646       as_dir=`$as_dirname -- "$as_dir" ||
16647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16648          X"$as_dir" : 'X\(//\)[^/]' \| \
16649          X"$as_dir" : 'X\(//\)$' \| \
16650          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16651 $as_echo X"$as_dir" |
16652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16653             s//\1/
16654             q
16655           }
16656           /^X\(\/\/\)[^/].*/{
16657             s//\1/
16658             q
16659           }
16660           /^X\(\/\/\)$/{
16661             s//\1/
16662             q
16663           }
16664           /^X\(\/\).*/{
16665             s//\1/
16666             q
16667           }
16668           s/.*/./; q'`
16669       test -d "$as_dir" && break
16670     done
16671     test -z "$as_dirs" || eval "mkdir $as_dirs"
16672   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16673
16674
16675 } # as_fn_mkdir_p
16676 if mkdir -p . 2>/dev/null; then
16677   as_mkdir_p='mkdir -p "$as_dir"'
16678 else
16679   test -d ./-p && rmdir ./-p
16680   as_mkdir_p=false
16681 fi
16682
16683 if test -x / >/dev/null 2>&1; then
16684   as_test_x='test -x'
16685 else
16686   if ls -dL / >/dev/null 2>&1; then
16687     as_ls_L_option=L
16688   else
16689     as_ls_L_option=
16690   fi
16691   as_test_x='
16692     eval sh -c '\''
16693       if test -d "$1"; then
16694         test -d "$1/.";
16695       else
16696         case $1 in #(
16697         -*)set "./$1";;
16698         esac;
16699         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16700         ???[sx]*):;;*)false;;esac;fi
16701     '\'' sh
16702   '
16703 fi
16704 as_executable_p=$as_test_x
16705
16706 # Sed expression to map a string onto a valid CPP name.
16707 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16708
16709 # Sed expression to map a string onto a valid variable name.
16710 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16711
16712
16713 exec 6>&1
16714 ## ----------------------------------- ##
16715 ## Main body of $CONFIG_STATUS script. ##
16716 ## ----------------------------------- ##
16717 _ASEOF
16718 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16719
16720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16721 # Save the log message, to keep $0 and so on meaningful, and to
16722 # report actual input values of CONFIG_FILES etc. instead of their
16723 # values after options handling.
16724 ac_log="
16725 This file was extended by OpenJPEG $as_me 1.4.0, which was
16726 generated by GNU Autoconf 2.65.  Invocation command line was
16727
16728   CONFIG_FILES    = $CONFIG_FILES
16729   CONFIG_HEADERS  = $CONFIG_HEADERS
16730   CONFIG_LINKS    = $CONFIG_LINKS
16731   CONFIG_COMMANDS = $CONFIG_COMMANDS
16732   $ $0 $@
16733
16734 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16735 "
16736
16737 _ACEOF
16738
16739 case $ac_config_files in *"
16740 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16741 esac
16742
16743 case $ac_config_headers in *"
16744 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16745 esac
16746
16747
16748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16749 # Files that config.status was made for.
16750 config_files="$ac_config_files"
16751 config_headers="$ac_config_headers"
16752 config_commands="$ac_config_commands"
16753
16754 _ACEOF
16755
16756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16757 ac_cs_usage="\
16758 \`$as_me' instantiates files and other configuration actions
16759 from templates according to the current configuration.  Unless the files
16760 and actions are specified as TAGs, all are instantiated by default.
16761
16762 Usage: $0 [OPTION]... [TAG]...
16763
16764   -h, --help       print this help, then exit
16765   -V, --version    print version number and configuration settings, then exit
16766       --config     print configuration, then exit
16767   -q, --quiet, --silent
16768                    do not print progress messages
16769   -d, --debug      don't remove temporary files
16770       --recheck    update $as_me by reconfiguring in the same conditions
16771       --file=FILE[:TEMPLATE]
16772                    instantiate the configuration file FILE
16773       --header=FILE[:TEMPLATE]
16774                    instantiate the configuration header FILE
16775
16776 Configuration files:
16777 $config_files
16778
16779 Configuration headers:
16780 $config_headers
16781
16782 Configuration commands:
16783 $config_commands
16784
16785 Report bugs to <http://code.google.com/p/openjpeg/>.
16786 OpenJPEG home page: <http://www.openjpeg.org/>."
16787
16788 _ACEOF
16789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16790 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16791 ac_cs_version="\\
16792 OpenJPEG config.status 1.4.0
16793 configured by $0, generated by GNU Autoconf 2.65,
16794   with options \\"\$ac_cs_config\\"
16795
16796 Copyright (C) 2009 Free Software Foundation, Inc.
16797 This config.status script is free software; the Free Software Foundation
16798 gives unlimited permission to copy, distribute and modify it."
16799
16800 ac_pwd='$ac_pwd'
16801 srcdir='$srcdir'
16802 INSTALL='$INSTALL'
16803 MKDIR_P='$MKDIR_P'
16804 AWK='$AWK'
16805 test -n "\$AWK" || AWK=awk
16806 _ACEOF
16807
16808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16809 # The default lists apply if the user does not specify any file.
16810 ac_need_defaults=:
16811 while test $# != 0
16812 do
16813   case $1 in
16814   --*=*)
16815     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16816     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16817     ac_shift=:
16818     ;;
16819   *)
16820     ac_option=$1
16821     ac_optarg=$2
16822     ac_shift=shift
16823     ;;
16824   esac
16825
16826   case $ac_option in
16827   # Handling of the options.
16828   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16829     ac_cs_recheck=: ;;
16830   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16831     $as_echo "$ac_cs_version"; exit ;;
16832   --config | --confi | --conf | --con | --co | --c )
16833     $as_echo "$ac_cs_config"; exit ;;
16834   --debug | --debu | --deb | --de | --d | -d )
16835     debug=: ;;
16836   --file | --fil | --fi | --f )
16837     $ac_shift
16838     case $ac_optarg in
16839     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16840     esac
16841     as_fn_append CONFIG_FILES " '$ac_optarg'"
16842     ac_need_defaults=false;;
16843   --header | --heade | --head | --hea )
16844     $ac_shift
16845     case $ac_optarg in
16846     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16847     esac
16848     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16849     ac_need_defaults=false;;
16850   --he | --h)
16851     # Conflict between --help and --header
16852     as_fn_error "ambiguous option: \`$1'
16853 Try \`$0 --help' for more information.";;
16854   --help | --hel | -h )
16855     $as_echo "$ac_cs_usage"; exit ;;
16856   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16857   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16858     ac_cs_silent=: ;;
16859
16860   # This is an error.
16861   -*) as_fn_error "unrecognized option: \`$1'
16862 Try \`$0 --help' for more information." ;;
16863
16864   *) as_fn_append ac_config_targets " $1"
16865      ac_need_defaults=false ;;
16866
16867   esac
16868   shift
16869 done
16870
16871 ac_configure_extra_args=
16872
16873 if $ac_cs_silent; then
16874   exec 6>/dev/null
16875   ac_configure_extra_args="$ac_configure_extra_args --silent"
16876 fi
16877
16878 _ACEOF
16879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16880 if \$ac_cs_recheck; then
16881   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16882   shift
16883   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16884   CONFIG_SHELL='$SHELL'
16885   export CONFIG_SHELL
16886   exec "\$@"
16887 fi
16888
16889 _ACEOF
16890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16891 exec 5>>config.log
16892 {
16893   echo
16894   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16895 ## Running $as_me. ##
16896 _ASBOX
16897   $as_echo "$ac_log"
16898 } >&5
16899
16900 _ACEOF
16901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16902 #
16903 # INIT-COMMANDS
16904 #
16905 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16906
16907
16908 # The HP-UX ksh and POSIX shell print the target directory to stdout
16909 # if CDPATH is set.
16910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16911
16912 sed_quote_subst='$sed_quote_subst'
16913 double_quote_subst='$double_quote_subst'
16914 delay_variable_subst='$delay_variable_subst'
16915 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16916 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16917 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16918 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16919 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16920 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16921 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16922 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16923 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16924 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16925 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16926 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16927 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16928 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16929 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16930 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16931 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16932 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16933 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16934 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16935 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16936 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16937 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16938 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16939 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16940 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16941 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16942 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16943 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16944 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16945 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16946 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16947 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16948 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16949 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16950 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16951 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16952 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16953 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16954 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16955 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16956 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16957 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16958 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16959 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16960 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16961 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"`'
16962 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"`'
16963 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16964 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16965 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16966 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16967 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16968 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16969 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16970 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16971 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16972 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16973 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16974 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16975 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16976 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16977 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16978 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16979 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16980 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16981 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16982 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16983 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16984 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16985 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16986 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16987 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16988 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16989 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16990 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16991 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16992 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16993 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16994 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16995 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16996 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16997 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16998 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16999 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17000 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17001 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17002 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17003 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17004 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17005 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17006 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17007 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17008 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17009 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17010 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17011 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17012 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17013 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17014 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17015 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17016 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17017 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17018 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17019 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17020 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17021 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17022 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17023 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17024 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17025 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17026 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17027 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17028 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17029 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17030 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17031 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17032 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17033 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17034 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17035 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17036 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17037 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17038 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17039 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17040 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17041 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17042 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17043 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17044 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17045 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17046 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17047 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17048 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17049 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17050 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17051 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17052 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17053 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17054 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17055 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17056 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17057 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17058 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17059 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17060 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17061 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17062 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17063 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17064 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17065 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17066 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17067 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17068 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17069 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17070 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17071 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17072 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17073 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17074 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17075 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17076 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17077 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17078 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17079 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17080 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17081 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17082 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17083 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17084 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17085 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17086 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17087 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17088
17089 LTCC='$LTCC'
17090 LTCFLAGS='$LTCFLAGS'
17091 compiler='$compiler_DEFAULT'
17092
17093 # Quote evaled strings.
17094 for var in SED \
17095 GREP \
17096 EGREP \
17097 FGREP \
17098 LD \
17099 NM \
17100 LN_S \
17101 lt_SP2NL \
17102 lt_NL2SP \
17103 reload_flag \
17104 deplibs_check_method \
17105 file_magic_cmd \
17106 AR \
17107 AR_FLAGS \
17108 STRIP \
17109 RANLIB \
17110 CC \
17111 CFLAGS \
17112 compiler \
17113 lt_cv_sys_global_symbol_pipe \
17114 lt_cv_sys_global_symbol_to_cdecl \
17115 lt_cv_sys_global_symbol_to_c_name_address \
17116 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17117 SHELL \
17118 ECHO \
17119 lt_prog_compiler_no_builtin_flag \
17120 lt_prog_compiler_wl \
17121 lt_prog_compiler_pic \
17122 lt_prog_compiler_static \
17123 lt_cv_prog_compiler_c_o \
17124 need_locks \
17125 DSYMUTIL \
17126 NMEDIT \
17127 LIPO \
17128 OTOOL \
17129 OTOOL64 \
17130 shrext_cmds \
17131 export_dynamic_flag_spec \
17132 whole_archive_flag_spec \
17133 compiler_needs_object \
17134 with_gnu_ld \
17135 allow_undefined_flag \
17136 no_undefined_flag \
17137 hardcode_libdir_flag_spec \
17138 hardcode_libdir_flag_spec_ld \
17139 hardcode_libdir_separator \
17140 fix_srcfile_path \
17141 exclude_expsyms \
17142 include_expsyms \
17143 file_list_spec \
17144 variables_saved_for_relink \
17145 libname_spec \
17146 library_names_spec \
17147 soname_spec \
17148 finish_eval \
17149 old_striplib \
17150 striplib \
17151 compiler_lib_search_dirs \
17152 predep_objects \
17153 postdep_objects \
17154 predeps \
17155 postdeps \
17156 compiler_lib_search_path \
17157 LD_CXX \
17158 compiler_CXX \
17159 lt_prog_compiler_no_builtin_flag_CXX \
17160 lt_prog_compiler_wl_CXX \
17161 lt_prog_compiler_pic_CXX \
17162 lt_prog_compiler_static_CXX \
17163 lt_cv_prog_compiler_c_o_CXX \
17164 export_dynamic_flag_spec_CXX \
17165 whole_archive_flag_spec_CXX \
17166 compiler_needs_object_CXX \
17167 with_gnu_ld_CXX \
17168 allow_undefined_flag_CXX \
17169 no_undefined_flag_CXX \
17170 hardcode_libdir_flag_spec_CXX \
17171 hardcode_libdir_flag_spec_ld_CXX \
17172 hardcode_libdir_separator_CXX \
17173 fix_srcfile_path_CXX \
17174 exclude_expsyms_CXX \
17175 include_expsyms_CXX \
17176 file_list_spec_CXX \
17177 compiler_lib_search_dirs_CXX \
17178 predep_objects_CXX \
17179 postdep_objects_CXX \
17180 predeps_CXX \
17181 postdeps_CXX \
17182 compiler_lib_search_path_CXX; do
17183     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17184     *[\\\\\\\`\\"\\\$]*)
17185       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17186       ;;
17187     *)
17188       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17189       ;;
17190     esac
17191 done
17192
17193 # Double-quote double-evaled strings.
17194 for var in reload_cmds \
17195 old_postinstall_cmds \
17196 old_postuninstall_cmds \
17197 old_archive_cmds \
17198 extract_expsyms_cmds \
17199 old_archive_from_new_cmds \
17200 old_archive_from_expsyms_cmds \
17201 archive_cmds \
17202 archive_expsym_cmds \
17203 module_cmds \
17204 module_expsym_cmds \
17205 export_symbols_cmds \
17206 prelink_cmds \
17207 postinstall_cmds \
17208 postuninstall_cmds \
17209 finish_cmds \
17210 sys_lib_search_path_spec \
17211 sys_lib_dlsearch_path_spec \
17212 old_archive_cmds_CXX \
17213 old_archive_from_new_cmds_CXX \
17214 old_archive_from_expsyms_cmds_CXX \
17215 archive_cmds_CXX \
17216 archive_expsym_cmds_CXX \
17217 module_cmds_CXX \
17218 module_expsym_cmds_CXX \
17219 export_symbols_cmds_CXX \
17220 prelink_cmds_CXX; do
17221     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17222     *[\\\\\\\`\\"\\\$]*)
17223       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17224       ;;
17225     *)
17226       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17227       ;;
17228     esac
17229 done
17230
17231 # Fix-up fallback echo if it was mangled by the above quoting rules.
17232 case \$lt_ECHO in
17233 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17234   ;;
17235 esac
17236
17237 ac_aux_dir='$ac_aux_dir'
17238 xsi_shell='$xsi_shell'
17239 lt_shell_append='$lt_shell_append'
17240
17241 # See if we are running on zsh, and set the options which allow our
17242 # commands through without removal of \ escapes INIT.
17243 if test -n "\${ZSH_VERSION+set}" ; then
17244    setopt NO_GLOB_SUBST
17245 fi
17246
17247
17248     PACKAGE='$PACKAGE'
17249     VERSION='$VERSION'
17250     TIMESTAMP='$TIMESTAMP'
17251     RM='$RM'
17252     ofile='$ofile'
17253
17254
17255
17256
17257
17258
17259 _ACEOF
17260
17261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17262
17263 # Handling of arguments.
17264 for ac_config_target in $ac_config_targets
17265 do
17266   case $ac_config_target in
17267     "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
17268     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17269     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17270     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17271     "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
17272     "jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES jpwl/Makefile" ;;
17273     "codec/Makefile") CONFIG_FILES="$CONFIG_FILES codec/Makefile" ;;
17274     "mj2/Makefile") CONFIG_FILES="$CONFIG_FILES mj2/Makefile" ;;
17275     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17276     "jp3d/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/Makefile" ;;
17277     "jp3d/libjp3dvm/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/libjp3dvm/Makefile" ;;
17278     "jp3d/codec/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/codec/Makefile" ;;
17279
17280   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17281   esac
17282 done
17283
17284
17285 # If the user did not use the arguments to specify the items to instantiate,
17286 # then the envvar interface is used.  Set only those that are not.
17287 # We use the long form for the default assignment because of an extremely
17288 # bizarre bug on SunOS 4.1.3.
17289 if $ac_need_defaults; then
17290   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17291   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17292   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17293 fi
17294
17295 # Have a temporary directory for convenience.  Make it in the build tree
17296 # simply because there is no reason against having it here, and in addition,
17297 # creating and moving files from /tmp can sometimes cause problems.
17298 # Hook for its removal unless debugging.
17299 # Note that there is a small window in which the directory will not be cleaned:
17300 # after its creation but before its name has been assigned to `$tmp'.
17301 $debug ||
17302 {
17303   tmp=
17304   trap 'exit_status=$?
17305   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17306 ' 0
17307   trap 'as_fn_exit 1' 1 2 13 15
17308 }
17309 # Create a (secure) tmp directory for tmp files.
17310
17311 {
17312   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17313   test -n "$tmp" && test -d "$tmp"
17314 }  ||
17315 {
17316   tmp=./conf$$-$RANDOM
17317   (umask 077 && mkdir "$tmp")
17318 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17319
17320 # Set up the scripts for CONFIG_FILES section.
17321 # No need to generate them if there are no CONFIG_FILES.
17322 # This happens for instance with `./config.status config.h'.
17323 if test -n "$CONFIG_FILES"; then
17324
17325
17326 ac_cr=`echo X | tr X '\015'`
17327 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17328 # But we know of no other shell where ac_cr would be empty at this
17329 # point, so we can use a bashism as a fallback.
17330 if test "x$ac_cr" = x; then
17331   eval ac_cr=\$\'\\r\'
17332 fi
17333 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17334 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17335   ac_cs_awk_cr='\r'
17336 else
17337   ac_cs_awk_cr=$ac_cr
17338 fi
17339
17340 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17341 _ACEOF
17342
17343
17344 {
17345   echo "cat >conf$$subs.awk <<_ACEOF" &&
17346   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17347   echo "_ACEOF"
17348 } >conf$$subs.sh ||
17349   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17350 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17351 ac_delim='%!_!# '
17352 for ac_last_try in false false false false false :; do
17353   . ./conf$$subs.sh ||
17354     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17355
17356   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17357   if test $ac_delim_n = $ac_delim_num; then
17358     break
17359   elif $ac_last_try; then
17360     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17361   else
17362     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17363   fi
17364 done
17365 rm -f conf$$subs.sh
17366
17367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17368 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17369 _ACEOF
17370 sed -n '
17371 h
17372 s/^/S["/; s/!.*/"]=/
17373 p
17374 g
17375 s/^[^!]*!//
17376 :repl
17377 t repl
17378 s/'"$ac_delim"'$//
17379 t delim
17380 :nl
17381 h
17382 s/\(.\{148\}\)..*/\1/
17383 t more1
17384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17385 p
17386 n
17387 b repl
17388 :more1
17389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17390 p
17391 g
17392 s/.\{148\}//
17393 t nl
17394 :delim
17395 h
17396 s/\(.\{148\}\)..*/\1/
17397 t more2
17398 s/["\\]/\\&/g; s/^/"/; s/$/"/
17399 p
17400 b
17401 :more2
17402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17403 p
17404 g
17405 s/.\{148\}//
17406 t delim
17407 ' <conf$$subs.awk | sed '
17408 /^[^""]/{
17409   N
17410   s/\n//
17411 }
17412 ' >>$CONFIG_STATUS || ac_write_fail=1
17413 rm -f conf$$subs.awk
17414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17415 _ACAWK
17416 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17417   for (key in S) S_is_set[key] = 1
17418   FS = "\a"
17419
17420 }
17421 {
17422   line = $ 0
17423   nfields = split(line, field, "@")
17424   substed = 0
17425   len = length(field[1])
17426   for (i = 2; i < nfields; i++) {
17427     key = field[i]
17428     keylen = length(key)
17429     if (S_is_set[key]) {
17430       value = S[key]
17431       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17432       len += length(value) + length(field[++i])
17433       substed = 1
17434     } else
17435       len += 1 + keylen
17436   }
17437
17438   print line
17439 }
17440
17441 _ACAWK
17442 _ACEOF
17443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17444 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17445   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17446 else
17447   cat
17448 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17449   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17450 _ACEOF
17451
17452 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17453 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17454 # trailing colons and then remove the whole line if VPATH becomes empty
17455 # (actually we leave an empty line to preserve line numbers).
17456 if test "x$srcdir" = x.; then
17457   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17458 s/:*\$(srcdir):*/:/
17459 s/:*\${srcdir}:*/:/
17460 s/:*@srcdir@:*/:/
17461 s/^\([^=]*=[     ]*\):*/\1/
17462 s/:*$//
17463 s/^[^=]*=[       ]*$//
17464 }'
17465 fi
17466
17467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17468 fi # test -n "$CONFIG_FILES"
17469
17470 # Set up the scripts for CONFIG_HEADERS section.
17471 # No need to generate them if there are no CONFIG_HEADERS.
17472 # This happens for instance with `./config.status Makefile'.
17473 if test -n "$CONFIG_HEADERS"; then
17474 cat >"$tmp/defines.awk" <<\_ACAWK ||
17475 BEGIN {
17476 _ACEOF
17477
17478 # Transform confdefs.h into an awk script `defines.awk', embedded as
17479 # here-document in config.status, that substitutes the proper values into
17480 # config.h.in to produce config.h.
17481
17482 # Create a delimiter string that does not exist in confdefs.h, to ease
17483 # handling of long lines.
17484 ac_delim='%!_!# '
17485 for ac_last_try in false false :; do
17486   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17487   if test -z "$ac_t"; then
17488     break
17489   elif $ac_last_try; then
17490     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17491   else
17492     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17493   fi
17494 done
17495
17496 # For the awk script, D is an array of macro values keyed by name,
17497 # likewise P contains macro parameters if any.  Preserve backslash
17498 # newline sequences.
17499
17500 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17501 sed -n '
17502 s/.\{148\}/&'"$ac_delim"'/g
17503 t rset
17504 :rset
17505 s/^[     ]*#[    ]*define[       ][      ]*/ /
17506 t def
17507 d
17508 :def
17509 s/\\$//
17510 t bsnl
17511 s/["\\]/\\&/g
17512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17513 D["\1"]=" \3"/p
17514 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17515 d
17516 :bsnl
17517 s/["\\]/\\&/g
17518 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17519 D["\1"]=" \3\\\\\\n"\\/p
17520 t cont
17521 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17522 t cont
17523 d
17524 :cont
17525 n
17526 s/.\{148\}/&'"$ac_delim"'/g
17527 t clear
17528 :clear
17529 s/\\$//
17530 t bsnlc
17531 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17532 d
17533 :bsnlc
17534 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17535 b cont
17536 ' <confdefs.h | sed '
17537 s/'"$ac_delim"'/"\\\
17538 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17539
17540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17541   for (key in D) D_is_set[key] = 1
17542   FS = "\a"
17543 }
17544 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17545   line = \$ 0
17546   split(line, arg, " ")
17547   if (arg[1] == "#") {
17548     defundef = arg[2]
17549     mac1 = arg[3]
17550   } else {
17551     defundef = substr(arg[1], 2)
17552     mac1 = arg[2]
17553   }
17554   split(mac1, mac2, "(") #)
17555   macro = mac2[1]
17556   prefix = substr(line, 1, index(line, defundef) - 1)
17557   if (D_is_set[macro]) {
17558     # Preserve the white space surrounding the "#".
17559     print prefix "define", macro P[macro] D[macro]
17560     next
17561   } else {
17562     # Replace #undef with comments.  This is necessary, for example,
17563     # in the case of _POSIX_SOURCE, which is predefined and required
17564     # on some systems where configure will not decide to define it.
17565     if (defundef == "undef") {
17566       print "/*", prefix defundef, macro, "*/"
17567       next
17568     }
17569   }
17570 }
17571 { print }
17572 _ACAWK
17573 _ACEOF
17574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17575   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17576 fi # test -n "$CONFIG_HEADERS"
17577
17578
17579 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17580 shift
17581 for ac_tag
17582 do
17583   case $ac_tag in
17584   :[FHLC]) ac_mode=$ac_tag; continue;;
17585   esac
17586   case $ac_mode$ac_tag in
17587   :[FHL]*:*);;
17588   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17589   :[FH]-) ac_tag=-:-;;
17590   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17591   esac
17592   ac_save_IFS=$IFS
17593   IFS=:
17594   set x $ac_tag
17595   IFS=$ac_save_IFS
17596   shift
17597   ac_file=$1
17598   shift
17599
17600   case $ac_mode in
17601   :L) ac_source=$1;;
17602   :[FH])
17603     ac_file_inputs=
17604     for ac_f
17605     do
17606       case $ac_f in
17607       -) ac_f="$tmp/stdin";;
17608       *) # Look for the file first in the build tree, then in the source tree
17609          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17610          # because $ac_f cannot contain `:'.
17611          test -f "$ac_f" ||
17612            case $ac_f in
17613            [\\/$]*) false;;
17614            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17615            esac ||
17616            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17617       esac
17618       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17619       as_fn_append ac_file_inputs " '$ac_f'"
17620     done
17621
17622     # Let's still pretend it is `configure' which instantiates (i.e., don't
17623     # use $as_me), people would be surprised to read:
17624     #    /* config.h.  Generated by config.status.  */
17625     configure_input='Generated from '`
17626           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17627         `' by configure.'
17628     if test x"$ac_file" != x-; then
17629       configure_input="$ac_file.  $configure_input"
17630       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17631 $as_echo "$as_me: creating $ac_file" >&6;}
17632     fi
17633     # Neutralize special characters interpreted by sed in replacement strings.
17634     case $configure_input in #(
17635     *\&* | *\|* | *\\* )
17636        ac_sed_conf_input=`$as_echo "$configure_input" |
17637        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17638     *) ac_sed_conf_input=$configure_input;;
17639     esac
17640
17641     case $ac_tag in
17642     *:-:* | *:-) cat >"$tmp/stdin" \
17643       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17644     esac
17645     ;;
17646   esac
17647
17648   ac_dir=`$as_dirname -- "$ac_file" ||
17649 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17650          X"$ac_file" : 'X\(//\)[^/]' \| \
17651          X"$ac_file" : 'X\(//\)$' \| \
17652          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17653 $as_echo X"$ac_file" |
17654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17655             s//\1/
17656             q
17657           }
17658           /^X\(\/\/\)[^/].*/{
17659             s//\1/
17660             q
17661           }
17662           /^X\(\/\/\)$/{
17663             s//\1/
17664             q
17665           }
17666           /^X\(\/\).*/{
17667             s//\1/
17668             q
17669           }
17670           s/.*/./; q'`
17671   as_dir="$ac_dir"; as_fn_mkdir_p
17672   ac_builddir=.
17673
17674 case "$ac_dir" in
17675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17676 *)
17677   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17678   # A ".." for each directory in $ac_dir_suffix.
17679   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17680   case $ac_top_builddir_sub in
17681   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17682   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17683   esac ;;
17684 esac
17685 ac_abs_top_builddir=$ac_pwd
17686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17687 # for backward compatibility:
17688 ac_top_builddir=$ac_top_build_prefix
17689
17690 case $srcdir in
17691   .)  # We are building in place.
17692     ac_srcdir=.
17693     ac_top_srcdir=$ac_top_builddir_sub
17694     ac_abs_top_srcdir=$ac_pwd ;;
17695   [\\/]* | ?:[\\/]* )  # Absolute name.
17696     ac_srcdir=$srcdir$ac_dir_suffix;
17697     ac_top_srcdir=$srcdir
17698     ac_abs_top_srcdir=$srcdir ;;
17699   *) # Relative name.
17700     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17701     ac_top_srcdir=$ac_top_build_prefix$srcdir
17702     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17703 esac
17704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17705
17706
17707   case $ac_mode in
17708   :F)
17709   #
17710   # CONFIG_FILE
17711   #
17712
17713   case $INSTALL in
17714   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17715   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17716   esac
17717   ac_MKDIR_P=$MKDIR_P
17718   case $MKDIR_P in
17719   [\\/$]* | ?:[\\/]* ) ;;
17720   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17721   esac
17722 _ACEOF
17723
17724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17725 # If the template does not know about datarootdir, expand it.
17726 # FIXME: This hack should be removed a few years after 2.60.
17727 ac_datarootdir_hack=; ac_datarootdir_seen=
17728 ac_sed_dataroot='
17729 /datarootdir/ {
17730   p
17731   q
17732 }
17733 /@datadir@/p
17734 /@docdir@/p
17735 /@infodir@/p
17736 /@localedir@/p
17737 /@mandir@/p'
17738 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17739 *datarootdir*) ac_datarootdir_seen=yes;;
17740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17741   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17742 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17743 _ACEOF
17744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17745   ac_datarootdir_hack='
17746   s&@datadir@&$datadir&g
17747   s&@docdir@&$docdir&g
17748   s&@infodir@&$infodir&g
17749   s&@localedir@&$localedir&g
17750   s&@mandir@&$mandir&g
17751   s&\\\${datarootdir}&$datarootdir&g' ;;
17752 esac
17753 _ACEOF
17754
17755 # Neutralize VPATH when `$srcdir' = `.'.
17756 # Shell code in configure.ac might set extrasub.
17757 # FIXME: do we really want to maintain this feature?
17758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17759 ac_sed_extra="$ac_vpsub
17760 $extrasub
17761 _ACEOF
17762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17763 :t
17764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17765 s|@configure_input@|$ac_sed_conf_input|;t t
17766 s&@top_builddir@&$ac_top_builddir_sub&;t t
17767 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17768 s&@srcdir@&$ac_srcdir&;t t
17769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17770 s&@top_srcdir@&$ac_top_srcdir&;t t
17771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17772 s&@builddir@&$ac_builddir&;t t
17773 s&@abs_builddir@&$ac_abs_builddir&;t t
17774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17775 s&@INSTALL@&$ac_INSTALL&;t t
17776 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17777 $ac_datarootdir_hack
17778 "
17779 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17780   || as_fn_error "could not create $ac_file" "$LINENO" 5
17781
17782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17783   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17784   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17785   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17786 which seems to be undefined.  Please make sure it is defined." >&5
17787 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17788 which seems to be undefined.  Please make sure it is defined." >&2;}
17789
17790   rm -f "$tmp/stdin"
17791   case $ac_file in
17792   -) cat "$tmp/out" && rm -f "$tmp/out";;
17793   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17794   esac \
17795   || as_fn_error "could not create $ac_file" "$LINENO" 5
17796  ;;
17797   :H)
17798   #
17799   # CONFIG_HEADER
17800   #
17801   if test x"$ac_file" != x-; then
17802     {
17803       $as_echo "/* $configure_input  */" \
17804       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17805     } >"$tmp/config.h" \
17806       || as_fn_error "could not create $ac_file" "$LINENO" 5
17807     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17808       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17809 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17810     else
17811       rm -f "$ac_file"
17812       mv "$tmp/config.h" "$ac_file" \
17813         || as_fn_error "could not create $ac_file" "$LINENO" 5
17814     fi
17815   else
17816     $as_echo "/* $configure_input  */" \
17817       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17818       || as_fn_error "could not create -" "$LINENO" 5
17819   fi
17820 # Compute "$ac_file"'s index in $config_headers.
17821 _am_arg="$ac_file"
17822 _am_stamp_count=1
17823 for _am_header in $config_headers :; do
17824   case $_am_header in
17825     $_am_arg | $_am_arg:* )
17826       break ;;
17827     * )
17828       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17829   esac
17830 done
17831 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17832 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17833          X"$_am_arg" : 'X\(//\)[^/]' \| \
17834          X"$_am_arg" : 'X\(//\)$' \| \
17835          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17836 $as_echo X"$_am_arg" |
17837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17838             s//\1/
17839             q
17840           }
17841           /^X\(\/\/\)[^/].*/{
17842             s//\1/
17843             q
17844           }
17845           /^X\(\/\/\)$/{
17846             s//\1/
17847             q
17848           }
17849           /^X\(\/\).*/{
17850             s//\1/
17851             q
17852           }
17853           s/.*/./; q'`/stamp-h$_am_stamp_count
17854  ;;
17855
17856   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17857 $as_echo "$as_me: executing $ac_file commands" >&6;}
17858  ;;
17859   esac
17860
17861
17862   case $ac_file$ac_mode in
17863     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17864   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17865   # are listed without --file.  Let's play safe and only enable the eval
17866   # if we detect the quoting.
17867   case $CONFIG_FILES in
17868   *\'*) eval set x "$CONFIG_FILES" ;;
17869   *)   set x $CONFIG_FILES ;;
17870   esac
17871   shift
17872   for mf
17873   do
17874     # Strip MF so we end up with the name of the file.
17875     mf=`echo "$mf" | sed -e 's/:.*$//'`
17876     # Check whether this is an Automake generated Makefile or not.
17877     # We used to match only the files named `Makefile.in', but
17878     # some people rename them; so instead we look at the file content.
17879     # Grep'ing the first line is not enough: some people post-process
17880     # each Makefile.in and add a new line on top of each file to say so.
17881     # Grep'ing the whole file is not good either: AIX grep has a line
17882     # limit of 2048, but all sed's we know have understand at least 4000.
17883     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17884       dirpart=`$as_dirname -- "$mf" ||
17885 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17886          X"$mf" : 'X\(//\)[^/]' \| \
17887          X"$mf" : 'X\(//\)$' \| \
17888          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17889 $as_echo X"$mf" |
17890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17891             s//\1/
17892             q
17893           }
17894           /^X\(\/\/\)[^/].*/{
17895             s//\1/
17896             q
17897           }
17898           /^X\(\/\/\)$/{
17899             s//\1/
17900             q
17901           }
17902           /^X\(\/\).*/{
17903             s//\1/
17904             q
17905           }
17906           s/.*/./; q'`
17907     else
17908       continue
17909     fi
17910     # Extract the definition of DEPDIR, am__include, and am__quote
17911     # from the Makefile without running `make'.
17912     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17913     test -z "$DEPDIR" && continue
17914     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17915     test -z "am__include" && continue
17916     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17917     # When using ansi2knr, U may be empty or an underscore; expand it
17918     U=`sed -n 's/^U = //p' < "$mf"`
17919     # Find all dependency output files, they are included files with
17920     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17921     # simplest approach to changing $(DEPDIR) to its actual value in the
17922     # expansion.
17923     for file in `sed -n "
17924       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17925          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17926       # Make sure the directory exists.
17927       test -f "$dirpart/$file" && continue
17928       fdir=`$as_dirname -- "$file" ||
17929 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17930          X"$file" : 'X\(//\)[^/]' \| \
17931          X"$file" : 'X\(//\)$' \| \
17932          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17933 $as_echo X"$file" |
17934     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17935             s//\1/
17936             q
17937           }
17938           /^X\(\/\/\)[^/].*/{
17939             s//\1/
17940             q
17941           }
17942           /^X\(\/\/\)$/{
17943             s//\1/
17944             q
17945           }
17946           /^X\(\/\).*/{
17947             s//\1/
17948             q
17949           }
17950           s/.*/./; q'`
17951       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17952       # echo "creating $dirpart/$file"
17953       echo '# dummy' > "$dirpart/$file"
17954     done
17955   done
17956 }
17957  ;;
17958     "libtool":C)
17959
17960     # See if we are running on zsh, and set the options which allow our
17961     # commands through without removal of \ escapes.
17962     if test -n "${ZSH_VERSION+set}" ; then
17963       setopt NO_GLOB_SUBST
17964     fi
17965
17966     cfgfile="${ofile}T"
17967     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17968     $RM "$cfgfile"
17969
17970     cat <<_LT_EOF >> "$cfgfile"
17971 #! $SHELL
17972
17973 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17974 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17975 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17976 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17977 #
17978 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17979 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17980 #   Written by Gordon Matzigkeit, 1996
17981 #
17982 #   This file is part of GNU Libtool.
17983 #
17984 # GNU Libtool is free software; you can redistribute it and/or
17985 # modify it under the terms of the GNU General Public License as
17986 # published by the Free Software Foundation; either version 2 of
17987 # the License, or (at your option) any later version.
17988 #
17989 # As a special exception to the GNU General Public License,
17990 # if you distribute this file as part of a program or library that
17991 # is built using GNU Libtool, you may include this file under the
17992 # same distribution terms that you use for the rest of that program.
17993 #
17994 # GNU Libtool is distributed in the hope that it will be useful,
17995 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17996 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17997 # GNU General Public License for more details.
17998 #
17999 # You should have received a copy of the GNU General Public License
18000 # along with GNU Libtool; see the file COPYING.  If not, a copy
18001 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18002 # obtained by writing to the Free Software Foundation, Inc.,
18003 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18004
18005
18006 # The names of the tagged configurations supported by this script.
18007 available_tags="CXX "
18008
18009 # ### BEGIN LIBTOOL CONFIG
18010
18011 # Whether or not to build shared libraries.
18012 build_libtool_libs=$enable_shared
18013
18014 # Whether or not to build static libraries.
18015 build_old_libs=$enable_static
18016
18017 # Assembler program.
18018 AS=$AS
18019
18020 # DLL creation program.
18021 DLLTOOL=$DLLTOOL
18022
18023 # Object dumper program.
18024 OBJDUMP=$OBJDUMP
18025
18026 # Which release of libtool.m4 was used?
18027 macro_version=$macro_version
18028 macro_revision=$macro_revision
18029
18030 # What type of objects to build.
18031 pic_mode=$pic_mode
18032
18033 # Whether or not to optimize for fast installation.
18034 fast_install=$enable_fast_install
18035
18036 # The host system.
18037 host_alias=$host_alias
18038 host=$host
18039 host_os=$host_os
18040
18041 # The build system.
18042 build_alias=$build_alias
18043 build=$build
18044 build_os=$build_os
18045
18046 # A sed program that does not truncate output.
18047 SED=$lt_SED
18048
18049 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18050 Xsed="\$SED -e 1s/^X//"
18051
18052 # A grep program that handles long lines.
18053 GREP=$lt_GREP
18054
18055 # An ERE matcher.
18056 EGREP=$lt_EGREP
18057
18058 # A literal string matcher.
18059 FGREP=$lt_FGREP
18060
18061 # A BSD- or MS-compatible name lister.
18062 NM=$lt_NM
18063
18064 # Whether we need soft or hard links.
18065 LN_S=$lt_LN_S
18066
18067 # What is the maximum length of a command?
18068 max_cmd_len=$max_cmd_len
18069
18070 # Object file suffix (normally "o").
18071 objext=$ac_objext
18072
18073 # Executable file suffix (normally "").
18074 exeext=$exeext
18075
18076 # whether the shell understands "unset".
18077 lt_unset=$lt_unset
18078
18079 # turn spaces into newlines.
18080 SP2NL=$lt_lt_SP2NL
18081
18082 # turn newlines into spaces.
18083 NL2SP=$lt_lt_NL2SP
18084
18085 # How to create reloadable object files.
18086 reload_flag=$lt_reload_flag
18087 reload_cmds=$lt_reload_cmds
18088
18089 # Method to check whether dependent libraries are shared objects.
18090 deplibs_check_method=$lt_deplibs_check_method
18091
18092 # Command to use when deplibs_check_method == "file_magic".
18093 file_magic_cmd=$lt_file_magic_cmd
18094
18095 # The archiver.
18096 AR=$lt_AR
18097 AR_FLAGS=$lt_AR_FLAGS
18098
18099 # A symbol stripping program.
18100 STRIP=$lt_STRIP
18101
18102 # Commands used to install an old-style archive.
18103 RANLIB=$lt_RANLIB
18104 old_postinstall_cmds=$lt_old_postinstall_cmds
18105 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18106
18107 # A C compiler.
18108 LTCC=$lt_CC
18109
18110 # LTCC compiler flags.
18111 LTCFLAGS=$lt_CFLAGS
18112
18113 # Take the output of nm and produce a listing of raw symbols and C names.
18114 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18115
18116 # Transform the output of nm in a proper C declaration.
18117 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18118
18119 # Transform the output of nm in a C name address pair.
18120 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18121
18122 # Transform the output of nm in a C name address pair when lib prefix is needed.
18123 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18124
18125 # The name of the directory that contains temporary libtool files.
18126 objdir=$objdir
18127
18128 # Shell to use when invoking shell scripts.
18129 SHELL=$lt_SHELL
18130
18131 # An echo program that does not interpret backslashes.
18132 ECHO=$lt_ECHO
18133
18134 # Used to examine libraries when file_magic_cmd begins with "file".
18135 MAGIC_CMD=$MAGIC_CMD
18136
18137 # Must we lock files when doing compilation?
18138 need_locks=$lt_need_locks
18139
18140 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18141 DSYMUTIL=$lt_DSYMUTIL
18142
18143 # Tool to change global to local symbols on Mac OS X.
18144 NMEDIT=$lt_NMEDIT
18145
18146 # Tool to manipulate fat objects and archives on Mac OS X.
18147 LIPO=$lt_LIPO
18148
18149 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18150 OTOOL=$lt_OTOOL
18151
18152 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18153 OTOOL64=$lt_OTOOL64
18154
18155 # Old archive suffix (normally "a").
18156 libext=$libext
18157
18158 # Shared library suffix (normally ".so").
18159 shrext_cmds=$lt_shrext_cmds
18160
18161 # The commands to extract the exported symbol list from a shared archive.
18162 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18163
18164 # Variables whose values should be saved in libtool wrapper scripts and
18165 # restored at link time.
18166 variables_saved_for_relink=$lt_variables_saved_for_relink
18167
18168 # Do we need the "lib" prefix for modules?
18169 need_lib_prefix=$need_lib_prefix
18170
18171 # Do we need a version for libraries?
18172 need_version=$need_version
18173
18174 # Library versioning type.
18175 version_type=$version_type
18176
18177 # Shared library runtime path variable.
18178 runpath_var=$runpath_var
18179
18180 # Shared library path variable.
18181 shlibpath_var=$shlibpath_var
18182
18183 # Is shlibpath searched before the hard-coded library search path?
18184 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18185
18186 # Format of library name prefix.
18187 libname_spec=$lt_libname_spec
18188
18189 # List of archive names.  First name is the real one, the rest are links.
18190 # The last name is the one that the linker finds with -lNAME
18191 library_names_spec=$lt_library_names_spec
18192
18193 # The coded name of the library, if different from the real name.
18194 soname_spec=$lt_soname_spec
18195
18196 # Command to use after installation of a shared archive.
18197 postinstall_cmds=$lt_postinstall_cmds
18198
18199 # Command to use after uninstallation of a shared archive.
18200 postuninstall_cmds=$lt_postuninstall_cmds
18201
18202 # Commands used to finish a libtool library installation in a directory.
18203 finish_cmds=$lt_finish_cmds
18204
18205 # As "finish_cmds", except a single script fragment to be evaled but
18206 # not shown.
18207 finish_eval=$lt_finish_eval
18208
18209 # Whether we should hardcode library paths into libraries.
18210 hardcode_into_libs=$hardcode_into_libs
18211
18212 # Compile-time system search path for libraries.
18213 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18214
18215 # Run-time system search path for libraries.
18216 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18217
18218 # Whether dlopen is supported.
18219 dlopen_support=$enable_dlopen
18220
18221 # Whether dlopen of programs is supported.
18222 dlopen_self=$enable_dlopen_self
18223
18224 # Whether dlopen of statically linked programs is supported.
18225 dlopen_self_static=$enable_dlopen_self_static
18226
18227 # Commands to strip libraries.
18228 old_striplib=$lt_old_striplib
18229 striplib=$lt_striplib
18230
18231
18232 # The linker used to build libraries.
18233 LD=$lt_LD
18234
18235 # Commands used to build an old-style archive.
18236 old_archive_cmds=$lt_old_archive_cmds
18237
18238 # A language specific compiler.
18239 CC=$lt_compiler
18240
18241 # Is the compiler the GNU compiler?
18242 with_gcc=$GCC
18243
18244 # Compiler flag to turn off builtin functions.
18245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18246
18247 # How to pass a linker flag through the compiler.
18248 wl=$lt_lt_prog_compiler_wl
18249
18250 # Additional compiler flags for building library objects.
18251 pic_flag=$lt_lt_prog_compiler_pic
18252
18253 # Compiler flag to prevent dynamic linking.
18254 link_static_flag=$lt_lt_prog_compiler_static
18255
18256 # Does compiler simultaneously support -c and -o options?
18257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18258
18259 # Whether or not to add -lc for building shared libraries.
18260 build_libtool_need_lc=$archive_cmds_need_lc
18261
18262 # Whether or not to disallow shared libs when runtime libs are static.
18263 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18264
18265 # Compiler flag to allow reflexive dlopens.
18266 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18267
18268 # Compiler flag to generate shared objects directly from archives.
18269 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18270
18271 # Whether the compiler copes with passing no objects directly.
18272 compiler_needs_object=$lt_compiler_needs_object
18273
18274 # Create an old-style archive from a shared archive.
18275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18276
18277 # Create a temporary old-style archive to link instead of a shared archive.
18278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18279
18280 # Commands used to build a shared archive.
18281 archive_cmds=$lt_archive_cmds
18282 archive_expsym_cmds=$lt_archive_expsym_cmds
18283
18284 # Commands used to build a loadable module if different from building
18285 # a shared archive.
18286 module_cmds=$lt_module_cmds
18287 module_expsym_cmds=$lt_module_expsym_cmds
18288
18289 # Whether we are building with GNU ld or not.
18290 with_gnu_ld=$lt_with_gnu_ld
18291
18292 # Flag that allows shared libraries with undefined symbols to be built.
18293 allow_undefined_flag=$lt_allow_undefined_flag
18294
18295 # Flag that enforces no undefined symbols.
18296 no_undefined_flag=$lt_no_undefined_flag
18297
18298 # Flag to hardcode \$libdir into a binary during linking.
18299 # This must work even if \$libdir does not exist
18300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18301
18302 # If ld is used when linking, flag to hardcode \$libdir into a binary
18303 # during linking.  This must work even if \$libdir does not exist.
18304 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18305
18306 # Whether we need a single "-rpath" flag with a separated argument.
18307 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18308
18309 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18310 # DIR into the resulting binary.
18311 hardcode_direct=$hardcode_direct
18312
18313 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18314 # DIR into the resulting binary and the resulting library dependency is
18315 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18316 # library is relocated.
18317 hardcode_direct_absolute=$hardcode_direct_absolute
18318
18319 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18320 # into the resulting binary.
18321 hardcode_minus_L=$hardcode_minus_L
18322
18323 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18324 # into the resulting binary.
18325 hardcode_shlibpath_var=$hardcode_shlibpath_var
18326
18327 # Set to "yes" if building a shared library automatically hardcodes DIR
18328 # into the library and all subsequent libraries and executables linked
18329 # against it.
18330 hardcode_automatic=$hardcode_automatic
18331
18332 # Set to yes if linker adds runtime paths of dependent libraries
18333 # to runtime path list.
18334 inherit_rpath=$inherit_rpath
18335
18336 # Whether libtool must link a program against all its dependency libraries.
18337 link_all_deplibs=$link_all_deplibs
18338
18339 # Fix the shell variable \$srcfile for the compiler.
18340 fix_srcfile_path=$lt_fix_srcfile_path
18341
18342 # Set to "yes" if exported symbols are required.
18343 always_export_symbols=$always_export_symbols
18344
18345 # The commands to list exported symbols.
18346 export_symbols_cmds=$lt_export_symbols_cmds
18347
18348 # Symbols that should not be listed in the preloaded symbols.
18349 exclude_expsyms=$lt_exclude_expsyms
18350
18351 # Symbols that must always be exported.
18352 include_expsyms=$lt_include_expsyms
18353
18354 # Commands necessary for linking programs (against libraries) with templates.
18355 prelink_cmds=$lt_prelink_cmds
18356
18357 # Specify filename containing input files.
18358 file_list_spec=$lt_file_list_spec
18359
18360 # How to hardcode a shared library path into an executable.
18361 hardcode_action=$hardcode_action
18362
18363 # The directories searched by this compiler when creating a shared library.
18364 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18365
18366 # Dependencies to place before and after the objects being linked to
18367 # create a shared library.
18368 predep_objects=$lt_predep_objects
18369 postdep_objects=$lt_postdep_objects
18370 predeps=$lt_predeps
18371 postdeps=$lt_postdeps
18372
18373 # The library search path used internally by the compiler when linking
18374 # a shared library.
18375 compiler_lib_search_path=$lt_compiler_lib_search_path
18376
18377 # ### END LIBTOOL CONFIG
18378
18379 _LT_EOF
18380
18381   case $host_os in
18382   aix3*)
18383     cat <<\_LT_EOF >> "$cfgfile"
18384 # AIX sometimes has problems with the GCC collect2 program.  For some
18385 # reason, if we set the COLLECT_NAMES environment variable, the problems
18386 # vanish in a puff of smoke.
18387 if test "X${COLLECT_NAMES+set}" != Xset; then
18388   COLLECT_NAMES=
18389   export COLLECT_NAMES
18390 fi
18391 _LT_EOF
18392     ;;
18393   esac
18394
18395
18396 ltmain="$ac_aux_dir/ltmain.sh"
18397
18398
18399   # We use sed instead of cat because bash on DJGPP gets confused if
18400   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18401   # text mode, it properly converts lines to CR/LF.  This bash problem
18402   # is reportedly fixed, but why not run on old versions too?
18403   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18404     || (rm -f "$cfgfile"; exit 1)
18405
18406   case $xsi_shell in
18407   yes)
18408     cat << \_LT_EOF >> "$cfgfile"
18409
18410 # func_dirname file append nondir_replacement
18411 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18412 # otherwise set result to NONDIR_REPLACEMENT.
18413 func_dirname ()
18414 {
18415   case ${1} in
18416     */*) func_dirname_result="${1%/*}${2}" ;;
18417     *  ) func_dirname_result="${3}" ;;
18418   esac
18419 }
18420
18421 # func_basename file
18422 func_basename ()
18423 {
18424   func_basename_result="${1##*/}"
18425 }
18426
18427 # func_dirname_and_basename file append nondir_replacement
18428 # perform func_basename and func_dirname in a single function
18429 # call:
18430 #   dirname:  Compute the dirname of FILE.  If nonempty,
18431 #             add APPEND to the result, otherwise set result
18432 #             to NONDIR_REPLACEMENT.
18433 #             value returned in "$func_dirname_result"
18434 #   basename: Compute filename of FILE.
18435 #             value retuned in "$func_basename_result"
18436 # Implementation must be kept synchronized with func_dirname
18437 # and func_basename. For efficiency, we do not delegate to
18438 # those functions but instead duplicate the functionality here.
18439 func_dirname_and_basename ()
18440 {
18441   case ${1} in
18442     */*) func_dirname_result="${1%/*}${2}" ;;
18443     *  ) func_dirname_result="${3}" ;;
18444   esac
18445   func_basename_result="${1##*/}"
18446 }
18447
18448 # func_stripname prefix suffix name
18449 # strip PREFIX and SUFFIX off of NAME.
18450 # PREFIX and SUFFIX must not contain globbing or regex special
18451 # characters, hashes, percent signs, but SUFFIX may contain a leading
18452 # dot (in which case that matches only a dot).
18453 func_stripname ()
18454 {
18455   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18456   # positional parameters, so assign one to ordinary parameter first.
18457   func_stripname_result=${3}
18458   func_stripname_result=${func_stripname_result#"${1}"}
18459   func_stripname_result=${func_stripname_result%"${2}"}
18460 }
18461
18462 # func_opt_split
18463 func_opt_split ()
18464 {
18465   func_opt_split_opt=${1%%=*}
18466   func_opt_split_arg=${1#*=}
18467 }
18468
18469 # func_lo2o object
18470 func_lo2o ()
18471 {
18472   case ${1} in
18473     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18474     *)    func_lo2o_result=${1} ;;
18475   esac
18476 }
18477
18478 # func_xform libobj-or-source
18479 func_xform ()
18480 {
18481   func_xform_result=${1%.*}.lo
18482 }
18483
18484 # func_arith arithmetic-term...
18485 func_arith ()
18486 {
18487   func_arith_result=$(( $* ))
18488 }
18489
18490 # func_len string
18491 # STRING may not start with a hyphen.
18492 func_len ()
18493 {
18494   func_len_result=${#1}
18495 }
18496
18497 _LT_EOF
18498     ;;
18499   *) # Bourne compatible functions.
18500     cat << \_LT_EOF >> "$cfgfile"
18501
18502 # func_dirname file append nondir_replacement
18503 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18504 # otherwise set result to NONDIR_REPLACEMENT.
18505 func_dirname ()
18506 {
18507   # Extract subdirectory from the argument.
18508   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18509   if test "X$func_dirname_result" = "X${1}"; then
18510     func_dirname_result="${3}"
18511   else
18512     func_dirname_result="$func_dirname_result${2}"
18513   fi
18514 }
18515
18516 # func_basename file
18517 func_basename ()
18518 {
18519   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18520 }
18521
18522
18523 # func_stripname prefix suffix name
18524 # strip PREFIX and SUFFIX off of NAME.
18525 # PREFIX and SUFFIX must not contain globbing or regex special
18526 # characters, hashes, percent signs, but SUFFIX may contain a leading
18527 # dot (in which case that matches only a dot).
18528 # func_strip_suffix prefix name
18529 func_stripname ()
18530 {
18531   case ${2} in
18532     .*) func_stripname_result=`$ECHO "X${3}" \
18533            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18534     *)  func_stripname_result=`$ECHO "X${3}" \
18535            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18536   esac
18537 }
18538
18539 # sed scripts:
18540 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18541 my_sed_long_arg='1s/^-[^=]*=//'
18542
18543 # func_opt_split
18544 func_opt_split ()
18545 {
18546   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18547   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18548 }
18549
18550 # func_lo2o object
18551 func_lo2o ()
18552 {
18553   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18554 }
18555
18556 # func_xform libobj-or-source
18557 func_xform ()
18558 {
18559   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18560 }
18561
18562 # func_arith arithmetic-term...
18563 func_arith ()
18564 {
18565   func_arith_result=`expr "$@"`
18566 }
18567
18568 # func_len string
18569 # STRING may not start with a hyphen.
18570 func_len ()
18571 {
18572   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18573 }
18574
18575 _LT_EOF
18576 esac
18577
18578 case $lt_shell_append in
18579   yes)
18580     cat << \_LT_EOF >> "$cfgfile"
18581
18582 # func_append var value
18583 # Append VALUE to the end of shell variable VAR.
18584 func_append ()
18585 {
18586   eval "$1+=\$2"
18587 }
18588 _LT_EOF
18589     ;;
18590   *)
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=\$$1\$2"
18598 }
18599
18600 _LT_EOF
18601     ;;
18602   esac
18603
18604
18605   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18606     || (rm -f "$cfgfile"; exit 1)
18607
18608   mv -f "$cfgfile" "$ofile" ||
18609     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18610   chmod +x "$ofile"
18611
18612
18613     cat <<_LT_EOF >> "$ofile"
18614
18615 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18616
18617 # The linker used to build libraries.
18618 LD=$lt_LD_CXX
18619
18620 # Commands used to build an old-style archive.
18621 old_archive_cmds=$lt_old_archive_cmds_CXX
18622
18623 # A language specific compiler.
18624 CC=$lt_compiler_CXX
18625
18626 # Is the compiler the GNU compiler?
18627 with_gcc=$GCC_CXX
18628
18629 # Compiler flag to turn off builtin functions.
18630 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18631
18632 # How to pass a linker flag through the compiler.
18633 wl=$lt_lt_prog_compiler_wl_CXX
18634
18635 # Additional compiler flags for building library objects.
18636 pic_flag=$lt_lt_prog_compiler_pic_CXX
18637
18638 # Compiler flag to prevent dynamic linking.
18639 link_static_flag=$lt_lt_prog_compiler_static_CXX
18640
18641 # Does compiler simultaneously support -c and -o options?
18642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18643
18644 # Whether or not to add -lc for building shared libraries.
18645 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18646
18647 # Whether or not to disallow shared libs when runtime libs are static.
18648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18649
18650 # Compiler flag to allow reflexive dlopens.
18651 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18652
18653 # Compiler flag to generate shared objects directly from archives.
18654 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18655
18656 # Whether the compiler copes with passing no objects directly.
18657 compiler_needs_object=$lt_compiler_needs_object_CXX
18658
18659 # Create an old-style archive from a shared archive.
18660 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18661
18662 # Create a temporary old-style archive to link instead of a shared archive.
18663 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18664
18665 # Commands used to build a shared archive.
18666 archive_cmds=$lt_archive_cmds_CXX
18667 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18668
18669 # Commands used to build a loadable module if different from building
18670 # a shared archive.
18671 module_cmds=$lt_module_cmds_CXX
18672 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18673
18674 # Whether we are building with GNU ld or not.
18675 with_gnu_ld=$lt_with_gnu_ld_CXX
18676
18677 # Flag that allows shared libraries with undefined symbols to be built.
18678 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18679
18680 # Flag that enforces no undefined symbols.
18681 no_undefined_flag=$lt_no_undefined_flag_CXX
18682
18683 # Flag to hardcode \$libdir into a binary during linking.
18684 # This must work even if \$libdir does not exist
18685 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18686
18687 # If ld is used when linking, flag to hardcode \$libdir into a binary
18688 # during linking.  This must work even if \$libdir does not exist.
18689 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18690
18691 # Whether we need a single "-rpath" flag with a separated argument.
18692 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18693
18694 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18695 # DIR into the resulting binary.
18696 hardcode_direct=$hardcode_direct_CXX
18697
18698 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18699 # DIR into the resulting binary and the resulting library dependency is
18700 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18701 # library is relocated.
18702 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18703
18704 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18705 # into the resulting binary.
18706 hardcode_minus_L=$hardcode_minus_L_CXX
18707
18708 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18709 # into the resulting binary.
18710 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18711
18712 # Set to "yes" if building a shared library automatically hardcodes DIR
18713 # into the library and all subsequent libraries and executables linked
18714 # against it.
18715 hardcode_automatic=$hardcode_automatic_CXX
18716
18717 # Set to yes if linker adds runtime paths of dependent libraries
18718 # to runtime path list.
18719 inherit_rpath=$inherit_rpath_CXX
18720
18721 # Whether libtool must link a program against all its dependency libraries.
18722 link_all_deplibs=$link_all_deplibs_CXX
18723
18724 # Fix the shell variable \$srcfile for the compiler.
18725 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18726
18727 # Set to "yes" if exported symbols are required.
18728 always_export_symbols=$always_export_symbols_CXX
18729
18730 # The commands to list exported symbols.
18731 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18732
18733 # Symbols that should not be listed in the preloaded symbols.
18734 exclude_expsyms=$lt_exclude_expsyms_CXX
18735
18736 # Symbols that must always be exported.
18737 include_expsyms=$lt_include_expsyms_CXX
18738
18739 # Commands necessary for linking programs (against libraries) with templates.
18740 prelink_cmds=$lt_prelink_cmds_CXX
18741
18742 # Specify filename containing input files.
18743 file_list_spec=$lt_file_list_spec_CXX
18744
18745 # How to hardcode a shared library path into an executable.
18746 hardcode_action=$hardcode_action_CXX
18747
18748 # The directories searched by this compiler when creating a shared library.
18749 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18750
18751 # Dependencies to place before and after the objects being linked to
18752 # create a shared library.
18753 predep_objects=$lt_predep_objects_CXX
18754 postdep_objects=$lt_postdep_objects_CXX
18755 predeps=$lt_predeps_CXX
18756 postdeps=$lt_postdeps_CXX
18757
18758 # The library search path used internally by the compiler when linking
18759 # a shared library.
18760 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18761
18762 # ### END LIBTOOL TAG CONFIG: CXX
18763 _LT_EOF
18764
18765  ;;
18766
18767   esac
18768 done # for ac_tag
18769
18770
18771 as_fn_exit 0
18772 _ACEOF
18773 ac_clean_files=$ac_clean_files_save
18774
18775 test $ac_write_fail = 0 ||
18776   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18777
18778
18779 # configure is writing to config.log, and then calls config.status.
18780 # config.status does its own redirection, appending to config.log.
18781 # Unfortunately, on DOS this fails, as config.log is still kept open
18782 # by configure, so config.status won't be able to write to it; its
18783 # output is simply discarded.  So we exec the FD to /dev/null,
18784 # effectively closing config.log, so it can be properly (re)opened and
18785 # appended to by config.status.  When coming back to configure, we
18786 # need to make the FD available again.
18787 if test "$no_create" != yes; then
18788   ac_cs_success=:
18789   ac_config_status_args=
18790   test "$silent" = yes &&
18791     ac_config_status_args="$ac_config_status_args --quiet"
18792   exec 5>/dev/null
18793   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18794   exec 5>>config.log
18795   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18796   # would make configure fail if this is the last instruction.
18797   $ac_cs_success || as_fn_exit $?
18798 fi
18799 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18800   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18801 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18802 fi
18803
18804 #
18805 echo "----------------------------------------------"
18806 echo "           your configuration"
18807 echo ""
18808 echo "--with-png-libraries: $with_libpng"
18809 echo "libpng header       : $png_header_found"
18810 echo "--enable-tiff       : $with_libtiff"
18811 echo "libtiff header      : $tiff_header_found"
18812 echo "--enable-lcms2      : $with_liblcms2"
18813 echo "lcms2 header        : $lcms2_header_found"
18814 echo "lcms2 version       : $have_lcms2_version"
18815 echo "--enable-lcms1      : $with_liblcms1"
18816 echo "lcms1 header        : $lcms1_header_found"
18817 echo "lcms1 version       : $have_lcms1_version"
18818 echo "jpwl support        : $with_libjpwl"
18819 echo "--enable-jp3d       : $with_jp3d"
18820 echo "----------------------------------------------"