]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libjpeg/lib/contrib/configure
update
[l4.git] / l4 / pkg / libjpeg / lib / contrib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libjpeg 8.3.0.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='libjpeg'
569 PACKAGE_TARNAME='libjpeg'
570 PACKAGE_VERSION='8.3.0'
571 PACKAGE_STRING='libjpeg 8.3.0'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 #  include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #  include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 JPEG_LIB_VERSION
616 MEMORYMGR
617 OTOOL64
618 OTOOL
619 LIPO
620 NMEDIT
621 DSYMUTIL
622 MANIFEST_TOOL
623 RANLIB
624 ac_ct_AR
625 AR
626 NM
627 ac_ct_DUMPBIN
628 DUMPBIN
629 LD
630 FGREP
631 SED
632 LIBTOOL
633 OBJDUMP
634 DLLTOOL
635 AS
636 HAVE_LD_VERSION_SCRIPT_FALSE
637 HAVE_LD_VERSION_SCRIPT_TRUE
638 LN_S
639 MAINT
640 MAINTAINER_MODE_FALSE
641 MAINTAINER_MODE_TRUE
642 ANSI2KNR
643 U
644 EGREP
645 GREP
646 CPP
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__quote
654 am__include
655 DEPDIR
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
662 CC
663 AM_BACKSLASH
664 AM_DEFAULT_VERBOSITY
665 am__untar
666 am__tar
667 AMTAR
668 am__leading_dot
669 SET_MAKE
670 AWK
671 mkdir_p
672 MKDIR_P
673 INSTALL_STRIP_PROGRAM
674 STRIP
675 install_sh
676 MAKEINFO
677 AUTOHEADER
678 AUTOMAKE
679 AUTOCONF
680 ACLOCAL
681 VERSION
682 PACKAGE
683 CYGPATH_W
684 am__isrc
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 enable_silent_rules
742 enable_dependency_tracking
743 enable_maintainer_mode
744 enable_ld_version_script
745 enable_shared
746 enable_static
747 with_pic
748 enable_fast_install
749 with_gnu_ld
750 with_sysroot
751 enable_libtool_lock
752 enable_maxmem
753 '
754       ac_precious_vars='build_alias
755 host_alias
756 target_alias
757 CC
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
762 CPP
763 CPPFLAGS
764 CC
765 LDFLAGS
766 LIBS
767 CPPFLAGS
768 CPP
769 CPPFLAGS'
770
771
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
793
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
819
820 ac_prev=
821 ac_dashdash=
822 for ac_option
823 do
824   # If the previous option needs an argument, assign it.
825   if test -n "$ac_prev"; then
826     eval $ac_prev=\$ac_option
827     ac_prev=
828     continue
829   fi
830
831   case $ac_option in
832   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833   *=)   ac_optarg= ;;
834   *)    ac_optarg=yes ;;
835   esac
836
837   # Accept the important Cygnus configure options, so we can diagnose typos.
838
839   case $ac_dashdash$ac_option in
840   --)
841     ac_dashdash=yes ;;
842
843   -bindir | --bindir | --bindi | --bind | --bin | --bi)
844     ac_prev=bindir ;;
845   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846     bindir=$ac_optarg ;;
847
848   -build | --build | --buil | --bui | --bu)
849     ac_prev=build_alias ;;
850   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851     build_alias=$ac_optarg ;;
852
853   -cache-file | --cache-file | --cache-fil | --cache-fi \
854   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855     ac_prev=cache_file ;;
856   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858     cache_file=$ac_optarg ;;
859
860   --config-cache | -C)
861     cache_file=config.cache ;;
862
863   -datadir | --datadir | --datadi | --datad)
864     ac_prev=datadir ;;
865   -datadir=* | --datadir=* | --datadi=* | --datad=*)
866     datadir=$ac_optarg ;;
867
868   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869   | --dataroo | --dataro | --datar)
870     ac_prev=datarootdir ;;
871   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873     datarootdir=$ac_optarg ;;
874
875   -disable-* | --disable-*)
876     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877     # Reject names that are not valid shell variable names.
878     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879       as_fn_error $? "invalid feature name: $ac_useropt"
880     ac_useropt_orig=$ac_useropt
881     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882     case $ac_user_opts in
883       *"
884 "enable_$ac_useropt"
885 "*) ;;
886       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887          ac_unrecognized_sep=', ';;
888     esac
889     eval enable_$ac_useropt=no ;;
890
891   -docdir | --docdir | --docdi | --doc | --do)
892     ac_prev=docdir ;;
893   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894     docdir=$ac_optarg ;;
895
896   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897     ac_prev=dvidir ;;
898   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899     dvidir=$ac_optarg ;;
900
901   -enable-* | --enable-*)
902     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903     # Reject names that are not valid shell variable names.
904     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905       as_fn_error $? "invalid feature name: $ac_useropt"
906     ac_useropt_orig=$ac_useropt
907     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908     case $ac_user_opts in
909       *"
910 "enable_$ac_useropt"
911 "*) ;;
912       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913          ac_unrecognized_sep=', ';;
914     esac
915     eval enable_$ac_useropt=\$ac_optarg ;;
916
917   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919   | --exec | --exe | --ex)
920     ac_prev=exec_prefix ;;
921   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923   | --exec=* | --exe=* | --ex=*)
924     exec_prefix=$ac_optarg ;;
925
926   -gas | --gas | --ga | --g)
927     # Obsolete; use --with-gas.
928     with_gas=yes ;;
929
930   -help | --help | --hel | --he | -h)
931     ac_init_help=long ;;
932   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933     ac_init_help=recursive ;;
934   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935     ac_init_help=short ;;
936
937   -host | --host | --hos | --ho)
938     ac_prev=host_alias ;;
939   -host=* | --host=* | --hos=* | --ho=*)
940     host_alias=$ac_optarg ;;
941
942   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943     ac_prev=htmldir ;;
944   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945   | --ht=*)
946     htmldir=$ac_optarg ;;
947
948   -includedir | --includedir | --includedi | --included | --include \
949   | --includ | --inclu | --incl | --inc)
950     ac_prev=includedir ;;
951   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952   | --includ=* | --inclu=* | --incl=* | --inc=*)
953     includedir=$ac_optarg ;;
954
955   -infodir | --infodir | --infodi | --infod | --info | --inf)
956     ac_prev=infodir ;;
957   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958     infodir=$ac_optarg ;;
959
960   -libdir | --libdir | --libdi | --libd)
961     ac_prev=libdir ;;
962   -libdir=* | --libdir=* | --libdi=* | --libd=*)
963     libdir=$ac_optarg ;;
964
965   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966   | --libexe | --libex | --libe)
967     ac_prev=libexecdir ;;
968   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969   | --libexe=* | --libex=* | --libe=*)
970     libexecdir=$ac_optarg ;;
971
972   -localedir | --localedir | --localedi | --localed | --locale)
973     ac_prev=localedir ;;
974   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975     localedir=$ac_optarg ;;
976
977   -localstatedir | --localstatedir | --localstatedi | --localstated \
978   | --localstate | --localstat | --localsta | --localst | --locals)
979     ac_prev=localstatedir ;;
980   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982     localstatedir=$ac_optarg ;;
983
984   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985     ac_prev=mandir ;;
986   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987     mandir=$ac_optarg ;;
988
989   -nfp | --nfp | --nf)
990     # Obsolete; use --without-fp.
991     with_fp=no ;;
992
993   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994   | --no-cr | --no-c | -n)
995     no_create=yes ;;
996
997   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999     no_recursion=yes ;;
1000
1001   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003   | --oldin | --oldi | --old | --ol | --o)
1004     ac_prev=oldincludedir ;;
1005   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008     oldincludedir=$ac_optarg ;;
1009
1010   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011     ac_prev=prefix ;;
1012   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013     prefix=$ac_optarg ;;
1014
1015   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016   | --program-pre | --program-pr | --program-p)
1017     ac_prev=program_prefix ;;
1018   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020     program_prefix=$ac_optarg ;;
1021
1022   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023   | --program-suf | --program-su | --program-s)
1024     ac_prev=program_suffix ;;
1025   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027     program_suffix=$ac_optarg ;;
1028
1029   -program-transform-name | --program-transform-name \
1030   | --program-transform-nam | --program-transform-na \
1031   | --program-transform-n | --program-transform- \
1032   | --program-transform | --program-transfor \
1033   | --program-transfo | --program-transf \
1034   | --program-trans | --program-tran \
1035   | --progr-tra | --program-tr | --program-t)
1036     ac_prev=program_transform_name ;;
1037   -program-transform-name=* | --program-transform-name=* \
1038   | --program-transform-nam=* | --program-transform-na=* \
1039   | --program-transform-n=* | --program-transform-=* \
1040   | --program-transform=* | --program-transfor=* \
1041   | --program-transfo=* | --program-transf=* \
1042   | --program-trans=* | --program-tran=* \
1043   | --progr-tra=* | --program-tr=* | --program-t=*)
1044     program_transform_name=$ac_optarg ;;
1045
1046   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047     ac_prev=pdfdir ;;
1048   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049     pdfdir=$ac_optarg ;;
1050
1051   -psdir | --psdir | --psdi | --psd | --ps)
1052     ac_prev=psdir ;;
1053   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054     psdir=$ac_optarg ;;
1055
1056   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057   | -silent | --silent | --silen | --sile | --sil)
1058     silent=yes ;;
1059
1060   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061     ac_prev=sbindir ;;
1062   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063   | --sbi=* | --sb=*)
1064     sbindir=$ac_optarg ;;
1065
1066   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068   | --sharedst | --shareds | --shared | --share | --shar \
1069   | --sha | --sh)
1070     ac_prev=sharedstatedir ;;
1071   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074   | --sha=* | --sh=*)
1075     sharedstatedir=$ac_optarg ;;
1076
1077   -site | --site | --sit)
1078     ac_prev=site ;;
1079   -site=* | --site=* | --sit=*)
1080     site=$ac_optarg ;;
1081
1082   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083     ac_prev=srcdir ;;
1084   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085     srcdir=$ac_optarg ;;
1086
1087   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088   | --syscon | --sysco | --sysc | --sys | --sy)
1089     ac_prev=sysconfdir ;;
1090   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092     sysconfdir=$ac_optarg ;;
1093
1094   -target | --target | --targe | --targ | --tar | --ta | --t)
1095     ac_prev=target_alias ;;
1096   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097     target_alias=$ac_optarg ;;
1098
1099   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100     verbose=yes ;;
1101
1102   -version | --version | --versio | --versi | --vers | -V)
1103     ac_init_version=: ;;
1104
1105   -with-* | --with-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       as_fn_error $? "invalid package name: $ac_useropt"
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval with_$ac_useropt=\$ac_optarg ;;
1120
1121   -without-* | --without-*)
1122     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125       as_fn_error $? "invalid package name: $ac_useropt"
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129       *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133          ac_unrecognized_sep=', ';;
1134     esac
1135     eval with_$ac_useropt=no ;;
1136
1137   --x)
1138     # Obsolete; use --with-x.
1139     with_x=yes ;;
1140
1141   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142   | --x-incl | --x-inc | --x-in | --x-i)
1143     ac_prev=x_includes ;;
1144   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146     x_includes=$ac_optarg ;;
1147
1148   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150     ac_prev=x_libraries ;;
1151   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153     x_libraries=$ac_optarg ;;
1154
1155   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1157     ;;
1158
1159   *=*)
1160     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161     # Reject names that are not valid shell variable names.
1162     case $ac_envvar in #(
1163       '' | [0-9]* | *[!_$as_cr_alnum]* )
1164       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165     esac
1166     eval $ac_envvar=\$ac_optarg
1167     export $ac_envvar ;;
1168
1169   *)
1170     # FIXME: should be removed in autoconf 3.0.
1171     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175     ;;
1176
1177   esac
1178 done
1179
1180 if test -n "$ac_prev"; then
1181   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182   as_fn_error $? "missing argument to $ac_option"
1183 fi
1184
1185 if test -n "$ac_unrecognized_opts"; then
1186   case $enable_option_checking in
1187     no) ;;
1188     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190   esac
1191 fi
1192
1193 # Check all directory arguments for consistency.
1194 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195                 datadir sysconfdir sharedstatedir localstatedir includedir \
1196                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197                 libdir localedir mandir
1198 do
1199   eval ac_val=\$$ac_var
1200   # Remove trailing slashes.
1201   case $ac_val in
1202     */ )
1203       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204       eval $ac_var=\$ac_val;;
1205   esac
1206   # Be sure to have absolute directory names.
1207   case $ac_val in
1208     [\\/$]* | ?:[\\/]* )  continue;;
1209     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210   esac
1211   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223   if test "x$build_alias" = x; then
1224     cross_compiling=maybe
1225     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1226     If a cross compiler is detected then cross compile mode will be used" >&2
1227   elif test "x$build_alias" != "x$host_alias"; then
1228     cross_compiling=yes
1229   fi
1230 fi
1231
1232 ac_tool_prefix=
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235 test "$silent" = yes && exec 6>/dev/null
1236
1237
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241   as_fn_error $? "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243   as_fn_error $? "pwd does not report name of working directory"
1244
1245
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248   ac_srcdir_defaulted=yes
1249   # Try the directory containing this script, then the parent directory.
1250   ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252          X"$as_myself" : 'X\(//\)[^/]' \| \
1253          X"$as_myself" : 'X\(//\)$' \| \
1254          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\/\)[^/].*/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\).*/{
1269             s//\1/
1270             q
1271           }
1272           s/.*/./; q'`
1273   srcdir=$ac_confdir
1274   if test ! -r "$srcdir/$ac_unique_file"; then
1275     srcdir=..
1276   fi
1277 else
1278   ac_srcdir_defaulted=no
1279 fi
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283 fi
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287         pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290   srcdir=.
1291 fi
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300   eval ac_env_${ac_var}_value=\$${ac_var}
1301   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1304
1305 #
1306 # Report the --help message.
1307 #
1308 if test "$ac_init_help" = "long"; then
1309   # Omit some internal or obsolete options to make the list less imposing.
1310   # This message is too long to be a string in the A/UX 3.1 sh.
1311   cat <<_ACEOF
1312 \`configure' configures libjpeg 8.3.0 to adapt to many kinds of systems.
1313
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319 Defaults for the options are specified in brackets.
1320
1321 Configuration:
1322   -h, --help              display this help and exit
1323       --help=short        display options specific to this package
1324       --help=recursive    display the short help of all the included packages
1325   -V, --version           display version information and exit
1326   -q, --quiet, --silent   do not print \`checking ...' messages
1327       --cache-file=FILE   cache test results in FILE [disabled]
1328   -C, --config-cache      alias for \`--cache-file=config.cache'
1329   -n, --no-create         do not create output files
1330       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332 Installation directories:
1333   --prefix=PREFIX         install architecture-independent files in PREFIX
1334                           [$ac_default_prefix]
1335   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                           [PREFIX]
1337
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1342
1343 For better control, use the options below.
1344
1345 Fine tuning of the installation directories:
1346   --bindir=DIR            user executables [EPREFIX/bin]
1347   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348   --libexecdir=DIR        program executables [EPREFIX/libexec]
1349   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352   --libdir=DIR            object code libraries [EPREFIX/lib]
1353   --includedir=DIR        C header files [PREFIX/include]
1354   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357   --infodir=DIR           info documentation [DATAROOTDIR/info]
1358   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359   --mandir=DIR            man documentation [DATAROOTDIR/man]
1360   --docdir=DIR            documentation root [DATAROOTDIR/doc/libjpeg]
1361   --htmldir=DIR           html documentation [DOCDIR]
1362   --dvidir=DIR            dvi documentation [DOCDIR]
1363   --pdfdir=DIR            pdf documentation [DOCDIR]
1364   --psdir=DIR             ps documentation [DOCDIR]
1365 _ACEOF
1366
1367   cat <<\_ACEOF
1368
1369 Program names:
1370   --program-prefix=PREFIX            prepend PREFIX to installed program names
1371   --program-suffix=SUFFIX            append SUFFIX to installed program names
1372   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1373
1374 System types:
1375   --build=BUILD     configure for building on BUILD [guessed]
1376   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377   --target=TARGET   configure for building compilers for TARGET [HOST]
1378 _ACEOF
1379 fi
1380
1381 if test -n "$ac_init_help"; then
1382   case $ac_init_help in
1383      short | recursive ) echo "Configuration of libjpeg 8.3.0:";;
1384    esac
1385   cat <<\_ACEOF
1386
1387 Optional Features:
1388   --disable-option-checking  ignore unrecognized --enable/--with options
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --enable-silent-rules          less verbose build output (undo: `make V=1')
1392   --disable-silent-rules         verbose build output (undo: `make V=0')
1393   --disable-dependency-tracking  speeds up one-time build
1394   --enable-dependency-tracking   do not reject slow dependency extractors
1395   --enable-maintainer-mode  enable make rules and dependencies not useful
1396                           (and sometimes confusing) to the casual installer
1397   --enable-ld-version-script
1398                           enable linker version script (default is enabled
1399                           when possible)
1400   --enable-shared[=PKGS]  build shared libraries [default=yes]
1401   --enable-static[=PKGS]  build static libraries [default=yes]
1402   --enable-fast-install[=PKGS]
1403                           optimize for fast installation [default=yes]
1404   --disable-libtool-lock  avoid locking (might break parallel builds)
1405   --enable-maxmem=N     enable use of temp files, set max mem usage to N MB
1406
1407 Optional Packages:
1408   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1409   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1410   --with-pic              try to use only PIC/non-PIC objects [default=use
1411                           both]
1412   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1413   --with-sysroot=DIR Search for dependent libraries within DIR
1414                         (or the compiler's sysroot if not specified).
1415
1416 Some influential environment variables:
1417   CC          C compiler command
1418   CFLAGS      C compiler flags
1419   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1420               nonstandard directory <lib dir>
1421   LIBS        libraries to pass to the linker, e.g. -l<library>
1422   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423               you have headers in a nonstandard directory <include dir>
1424   CPP         C preprocessor
1425
1426 Use these variables to override the choices made by `configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1428
1429 Report bugs to the package provider.
1430 _ACEOF
1431 ac_status=$?
1432 fi
1433
1434 if test "$ac_init_help" = "recursive"; then
1435   # If there are subdirs, report their specific --help.
1436   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437     test -d "$ac_dir" ||
1438       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439       continue
1440     ac_builddir=.
1441
1442 case "$ac_dir" in
1443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *)
1445   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446   # A ".." for each directory in $ac_dir_suffix.
1447   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448   case $ac_top_builddir_sub in
1449   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1451   esac ;;
1452 esac
1453 ac_abs_top_builddir=$ac_pwd
1454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455 # for backward compatibility:
1456 ac_top_builddir=$ac_top_build_prefix
1457
1458 case $srcdir in
1459   .)  # We are building in place.
1460     ac_srcdir=.
1461     ac_top_srcdir=$ac_top_builddir_sub
1462     ac_abs_top_srcdir=$ac_pwd ;;
1463   [\\/]* | ?:[\\/]* )  # Absolute name.
1464     ac_srcdir=$srcdir$ac_dir_suffix;
1465     ac_top_srcdir=$srcdir
1466     ac_abs_top_srcdir=$srcdir ;;
1467   *) # Relative name.
1468     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469     ac_top_srcdir=$ac_top_build_prefix$srcdir
1470     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471 esac
1472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473
1474     cd "$ac_dir" || { ac_status=$?; continue; }
1475     # Check for guested configure.
1476     if test -f "$ac_srcdir/configure.gnu"; then
1477       echo &&
1478       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479     elif test -f "$ac_srcdir/configure"; then
1480       echo &&
1481       $SHELL "$ac_srcdir/configure" --help=recursive
1482     else
1483       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484     fi || ac_status=$?
1485     cd "$ac_pwd" || { ac_status=$?; break; }
1486   done
1487 fi
1488
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1491   cat <<\_ACEOF
1492 libjpeg configure 8.3.0
1493 generated by GNU Autoconf 2.68
1494
1495 Copyright (C) 2010 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1498 _ACEOF
1499   exit
1500 fi
1501
1502 ## ------------------------ ##
1503 ## Autoconf initialization. ##
1504 ## ------------------------ ##
1505
1506 # ac_fn_c_try_compile LINENO
1507 # --------------------------
1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_compile ()
1510 {
1511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512   rm -f conftest.$ac_objext
1513   if { { ac_try="$ac_compile"
1514 case "(($ac_try" in
1515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516   *) ac_try_echo=$ac_try;;
1517 esac
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520   (eval "$ac_compile") 2>conftest.err
1521   ac_status=$?
1522   if test -s conftest.err; then
1523     grep -v '^ *+' conftest.err >conftest.er1
1524     cat conftest.er1 >&5
1525     mv -f conftest.er1 conftest.err
1526   fi
1527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528   test $ac_status = 0; } && {
1529          test -z "$ac_c_werror_flag" ||
1530          test ! -s conftest.err
1531        } && test -s conftest.$ac_objext; then :
1532   ac_retval=0
1533 else
1534   $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1536
1537         ac_retval=1
1538 fi
1539   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540   as_fn_set_status $ac_retval
1541
1542 } # ac_fn_c_try_compile
1543
1544 # ac_fn_c_try_cpp LINENO
1545 # ----------------------
1546 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_cpp ()
1548 {
1549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550   if { { ac_try="$ac_cpp conftest.$ac_ext"
1551 case "(($ac_try" in
1552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553   *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1558   ac_status=$?
1559   if test -s conftest.err; then
1560     grep -v '^ *+' conftest.err >conftest.er1
1561     cat conftest.er1 >&5
1562     mv -f conftest.er1 conftest.err
1563   fi
1564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565   test $ac_status = 0; } > conftest.i && {
1566          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1567          test ! -s conftest.err
1568        }; then :
1569   ac_retval=0
1570 else
1571   $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574     ac_retval=1
1575 fi
1576   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577   as_fn_set_status $ac_retval
1578
1579 } # ac_fn_c_try_cpp
1580
1581 # ac_fn_c_try_run LINENO
1582 # ----------------------
1583 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1584 # that executables *can* be run.
1585 ac_fn_c_try_run ()
1586 {
1587   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588   if { { ac_try="$ac_link"
1589 case "(($ac_try" in
1590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591   *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595   (eval "$ac_link") 2>&5
1596   ac_status=$?
1597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1599   { { case "(($ac_try" in
1600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601   *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605   (eval "$ac_try") 2>&5
1606   ac_status=$?
1607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608   test $ac_status = 0; }; }; then :
1609   ac_retval=0
1610 else
1611   $as_echo "$as_me: program exited with status $ac_status" >&5
1612        $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615        ac_retval=$ac_status
1616 fi
1617   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619   as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_run
1622
1623 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626 # the include files in INCLUDES and setting the cache variable VAR
1627 # accordingly.
1628 ac_fn_c_check_header_mongrel ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if eval \${$3+:} false; then :
1632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635   $as_echo_n "(cached) " >&6
1636 fi
1637 eval ac_res=\$$3
1638                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1640 else
1641   # Is the header compilable?
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643 $as_echo_n "checking $2 usability... " >&6; }
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h.  */
1646 $4
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650   ac_header_compiler=yes
1651 else
1652   ac_header_compiler=no
1653 fi
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656 $as_echo "$ac_header_compiler" >&6; }
1657
1658 # Is the header present?
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660 $as_echo_n "checking $2 presence... " >&6; }
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h.  */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_cpp "$LINENO"; then :
1666   ac_header_preproc=yes
1667 else
1668   ac_header_preproc=no
1669 fi
1670 rm -f conftest.err conftest.i conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672 $as_echo "$ac_header_preproc" >&6; }
1673
1674 # So?  What about this header?
1675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676   yes:no: )
1677     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681     ;;
1682   no:yes:* )
1683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1686 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1687     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1690 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1691     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693     ;;
1694 esac
1695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698   $as_echo_n "(cached) " >&6
1699 else
1700   eval "$3=\$ac_header_compiler"
1701 fi
1702 eval ac_res=\$$3
1703                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 fi
1706   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
1708 } # ac_fn_c_check_header_mongrel
1709
1710 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists and can be compiled using the include files in
1713 # INCLUDES, setting the cache variable VAR accordingly.
1714 ac_fn_c_check_header_compile ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720   $as_echo_n "(cached) " >&6
1721 else
1722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h.  */
1724 $4
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728   eval "$3=yes"
1729 else
1730   eval "$3=no"
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 fi
1734 eval ac_res=\$$3
1735                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738
1739 } # ac_fn_c_check_header_compile
1740
1741 # ac_fn_c_try_link LINENO
1742 # -----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_c_try_link ()
1745 {
1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747   rm -f conftest.$ac_objext conftest$ac_exeext
1748   if { { ac_try="$ac_link"
1749 case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_link") 2>conftest.err
1756   ac_status=$?
1757   if test -s conftest.err; then
1758     grep -v '^ *+' conftest.err >conftest.er1
1759     cat conftest.er1 >&5
1760     mv -f conftest.er1 conftest.err
1761   fi
1762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763   test $ac_status = 0; } && {
1764          test -z "$ac_c_werror_flag" ||
1765          test ! -s conftest.err
1766        } && test -s conftest$ac_exeext && {
1767          test "$cross_compiling" = yes ||
1768          $as_test_x conftest$ac_exeext
1769        }; then :
1770   ac_retval=0
1771 else
1772   $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775         ac_retval=1
1776 fi
1777   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779   # interfere with the next link command; also delete a directory that is
1780   # left behind by Apple's compiler.  We do this before executing the actions.
1781   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783   as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_link
1786
1787 # ac_fn_c_check_func LINENO FUNC VAR
1788 # ----------------------------------
1789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1790 ac_fn_c_check_func ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796   $as_echo_n "(cached) " >&6
1797 else
1798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h.  */
1800 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1802 #define $2 innocuous_$2
1803
1804 /* System header to define __stub macros and hopefully few prototypes,
1805     which can conflict with char $2 (); below.
1806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1807     <limits.h> exists even on freestanding compilers.  */
1808
1809 #ifdef __STDC__
1810 # include <limits.h>
1811 #else
1812 # include <assert.h>
1813 #endif
1814
1815 #undef $2
1816
1817 /* Override any GCC internal prototype to avoid an error.
1818    Use char because int might match the return type of a GCC
1819    builtin and then its argument prototype would still apply.  */
1820 #ifdef __cplusplus
1821 extern "C"
1822 #endif
1823 char $2 ();
1824 /* The GNU C library defines this for functions which it implements
1825     to always fail with ENOSYS.  Some functions are actually named
1826     something starting with __ and the normal name is an alias.  */
1827 #if defined __stub_$2 || defined __stub___$2
1828 choke me
1829 #endif
1830
1831 int
1832 main ()
1833 {
1834 return $2 ();
1835   ;
1836   return 0;
1837 }
1838 _ACEOF
1839 if ac_fn_c_try_link "$LINENO"; then :
1840   eval "$3=yes"
1841 else
1842   eval "$3=no"
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext \
1845     conftest$ac_exeext conftest.$ac_ext
1846 fi
1847 eval ac_res=\$$3
1848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852 } # ac_fn_c_check_func
1853 cat >config.log <<_ACEOF
1854 This file contains any messages produced by compilers while
1855 running configure, to aid debugging if configure makes a mistake.
1856
1857 It was created by libjpeg $as_me 8.3.0, which was
1858 generated by GNU Autoconf 2.68.  Invocation command line was
1859
1860   $ $0 $@
1861
1862 _ACEOF
1863 exec 5>>config.log
1864 {
1865 cat <<_ASUNAME
1866 ## --------- ##
1867 ## Platform. ##
1868 ## --------- ##
1869
1870 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1871 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1872 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1873 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1874 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1875
1876 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1877 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1878
1879 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1880 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1881 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1882 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1883 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1884 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1885 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1886
1887 _ASUNAME
1888
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894     $as_echo "PATH: $as_dir"
1895   done
1896 IFS=$as_save_IFS
1897
1898 } >&5
1899
1900 cat >&5 <<_ACEOF
1901
1902
1903 ## ----------- ##
1904 ## Core tests. ##
1905 ## ----------- ##
1906
1907 _ACEOF
1908
1909
1910 # Keep a trace of the command line.
1911 # Strip out --no-create and --no-recursion so they do not pile up.
1912 # Strip out --silent because we don't want to record it for future runs.
1913 # Also quote any args containing shell meta-characters.
1914 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_configure_args=
1916 ac_configure_args0=
1917 ac_configure_args1=
1918 ac_must_keep_next=false
1919 for ac_pass in 1 2
1920 do
1921   for ac_arg
1922   do
1923     case $ac_arg in
1924     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926     | -silent | --silent | --silen | --sile | --sil)
1927       continue ;;
1928     *\'*)
1929       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1930     esac
1931     case $ac_pass in
1932     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1933     2)
1934       as_fn_append ac_configure_args1 " '$ac_arg'"
1935       if test $ac_must_keep_next = true; then
1936         ac_must_keep_next=false # Got value, back to normal.
1937       else
1938         case $ac_arg in
1939           *=* | --config-cache | -C | -disable-* | --disable-* \
1940           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942           | -with-* | --with-* | -without-* | --without-* | --x)
1943             case "$ac_configure_args0 " in
1944               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1945             esac
1946             ;;
1947           -* ) ac_must_keep_next=true ;;
1948         esac
1949       fi
1950       as_fn_append ac_configure_args " '$ac_arg'"
1951       ;;
1952     esac
1953   done
1954 done
1955 { ac_configure_args0=; unset ac_configure_args0;}
1956 { ac_configure_args1=; unset ac_configure_args1;}
1957
1958 # When interrupted or exit'd, cleanup temporary files, and complete
1959 # config.log.  We remove comments because anyway the quotes in there
1960 # would cause problems or look ugly.
1961 # WARNING: Use '\'' to represent an apostrophe within the trap.
1962 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963 trap 'exit_status=$?
1964   # Save into config.log some information that might help in debugging.
1965   {
1966     echo
1967
1968     $as_echo "## ---------------- ##
1969 ## Cache variables. ##
1970 ## ---------------- ##"
1971     echo
1972     # The following way of writing the cache mishandles newlines in values,
1973 (
1974   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975     eval ac_val=\$$ac_var
1976     case $ac_val in #(
1977     *${as_nl}*)
1978       case $ac_var in #(
1979       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1981       esac
1982       case $ac_var in #(
1983       _ | IFS | as_nl) ;; #(
1984       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985       *) { eval $ac_var=; unset $ac_var;} ;;
1986       esac ;;
1987     esac
1988   done
1989   (set) 2>&1 |
1990     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991     *${as_nl}ac_space=\ *)
1992       sed -n \
1993         "s/'\''/'\''\\\\'\'''\''/g;
1994           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1995       ;; #(
1996     *)
1997       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998       ;;
1999     esac |
2000     sort
2001 )
2002     echo
2003
2004     $as_echo "## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##"
2007     echo
2008     for ac_var in $ac_subst_vars
2009     do
2010       eval ac_val=\$$ac_var
2011       case $ac_val in
2012       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013       esac
2014       $as_echo "$ac_var='\''$ac_val'\''"
2015     done | sort
2016     echo
2017
2018     if test -n "$ac_subst_files"; then
2019       $as_echo "## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##"
2022       echo
2023       for ac_var in $ac_subst_files
2024       do
2025         eval ac_val=\$$ac_var
2026         case $ac_val in
2027         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028         esac
2029         $as_echo "$ac_var='\''$ac_val'\''"
2030       done | sort
2031       echo
2032     fi
2033
2034     if test -s confdefs.h; then
2035       $as_echo "## ----------- ##
2036 ## confdefs.h. ##
2037 ## ----------- ##"
2038       echo
2039       cat confdefs.h
2040       echo
2041     fi
2042     test "$ac_signal" != 0 &&
2043       $as_echo "$as_me: caught signal $ac_signal"
2044     $as_echo "$as_me: exit $exit_status"
2045   } >&5
2046   rm -f core *.core core.conftest.* &&
2047     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048     exit $exit_status
2049 ' 0
2050 for ac_signal in 1 2 13 15; do
2051   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2052 done
2053 ac_signal=0
2054
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2057
2058 $as_echo "/* confdefs.h */" > confdefs.h
2059
2060 # Predefined preprocessor variables.
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_NAME "$PACKAGE_NAME"
2064 _ACEOF
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2068 _ACEOF
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_STRING "$PACKAGE_STRING"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_URL "$PACKAGE_URL"
2084 _ACEOF
2085
2086
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2089 ac_site_file1=NONE
2090 ac_site_file2=NONE
2091 if test -n "$CONFIG_SITE"; then
2092   # We do not want a PATH search for config.site.
2093   case $CONFIG_SITE in #((
2094     -*)  ac_site_file1=./$CONFIG_SITE;;
2095     */*) ac_site_file1=$CONFIG_SITE;;
2096     *)   ac_site_file1=./$CONFIG_SITE;;
2097   esac
2098 elif test "x$prefix" != xNONE; then
2099   ac_site_file1=$prefix/share/config.site
2100   ac_site_file2=$prefix/etc/config.site
2101 else
2102   ac_site_file1=$ac_default_prefix/share/config.site
2103   ac_site_file2=$ac_default_prefix/etc/config.site
2104 fi
2105 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2106 do
2107   test "x$ac_site_file" = xNONE && continue
2108   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2109     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2111     sed 's/^/| /' "$ac_site_file" >&5
2112     . "$ac_site_file" \
2113       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 as_fn_error $? "failed to load site script $ac_site_file
2116 See \`config.log' for more details" "$LINENO" 5; }
2117   fi
2118 done
2119
2120 if test -r "$cache_file"; then
2121   # Some versions of bash will fail to source /dev/null (special files
2122   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2123   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2124     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125 $as_echo "$as_me: loading cache $cache_file" >&6;}
2126     case $cache_file in
2127       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128       *)                      . "./$cache_file";;
2129     esac
2130   fi
2131 else
2132   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133 $as_echo "$as_me: creating cache $cache_file" >&6;}
2134   >$cache_file
2135 fi
2136
2137 # Check that the precious variables saved in the cache have kept the same
2138 # value.
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142   eval ac_new_set=\$ac_env_${ac_var}_set
2143   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144   eval ac_new_val=\$ac_env_${ac_var}_value
2145   case $ac_old_set,$ac_new_set in
2146     set,)
2147       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149       ac_cache_corrupted=: ;;
2150     ,set)
2151       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153       ac_cache_corrupted=: ;;
2154     ,);;
2155     *)
2156       if test "x$ac_old_val" != "x$ac_new_val"; then
2157         # differences in whitespace do not lead to failure.
2158         ac_old_val_w=`echo x $ac_old_val`
2159         ac_new_val_w=`echo x $ac_new_val`
2160         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2161           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2162 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2163           ac_cache_corrupted=:
2164         else
2165           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2166 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2167           eval $ac_var=\$ac_old_val
2168         fi
2169         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2170 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2171         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2172 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2173       fi;;
2174   esac
2175   # Pass precious variables to config.status.
2176   if test "$ac_new_set" = set; then
2177     case $ac_new_val in
2178     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2179     *) ac_arg=$ac_var=$ac_new_val ;;
2180     esac
2181     case " $ac_configure_args " in
2182       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2183       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2184     esac
2185   fi
2186 done
2187 if $ac_cache_corrupted; then
2188   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2191 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2192   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2193 fi
2194 ## -------------------- ##
2195 ## Main body of script. ##
2196 ## -------------------- ##
2197
2198 ac_ext=c
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203
2204
2205
2206 # Directory where autotools helper scripts lives.
2207 ac_aux_dir=
2208 for ac_dir in . "$srcdir"/.; do
2209   if test -f "$ac_dir/install-sh"; then
2210     ac_aux_dir=$ac_dir
2211     ac_install_sh="$ac_aux_dir/install-sh -c"
2212     break
2213   elif test -f "$ac_dir/install.sh"; then
2214     ac_aux_dir=$ac_dir
2215     ac_install_sh="$ac_aux_dir/install.sh -c"
2216     break
2217   elif test -f "$ac_dir/shtool"; then
2218     ac_aux_dir=$ac_dir
2219     ac_install_sh="$ac_aux_dir/shtool install -c"
2220     break
2221   fi
2222 done
2223 if test -z "$ac_aux_dir"; then
2224   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2225 fi
2226
2227 # These three variables are undocumented and unsupported,
2228 # and are intended to be withdrawn in a future Autoconf release.
2229 # They can cause serious problems if a builder's source tree is in a directory
2230 # whose full name contains unusual characters.
2231 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2232 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2233 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2234
2235
2236
2237 # Generate configuration headers.
2238 ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
2239
2240
2241 # Hack: disable autoheader so that it doesn't overwrite our cfg template.
2242 AUTOHEADER="echo autoheader ignored"
2243
2244 # Check system type
2245 # Make sure we can run config.sub.
2246 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2247   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2248
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2250 $as_echo_n "checking build system type... " >&6; }
2251 if ${ac_cv_build+:} false; then :
2252   $as_echo_n "(cached) " >&6
2253 else
2254   ac_build_alias=$build_alias
2255 test "x$ac_build_alias" = x &&
2256   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2257 test "x$ac_build_alias" = x &&
2258   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2261
2262 fi
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2264 $as_echo "$ac_cv_build" >&6; }
2265 case $ac_cv_build in
2266 *-*-*) ;;
2267 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2268 esac
2269 build=$ac_cv_build
2270 ac_save_IFS=$IFS; IFS='-'
2271 set x $ac_cv_build
2272 shift
2273 build_cpu=$1
2274 build_vendor=$2
2275 shift; shift
2276 # Remember, the first character of IFS is used to create $*,
2277 # except with old shells:
2278 build_os=$*
2279 IFS=$ac_save_IFS
2280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2281
2282
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284 $as_echo_n "checking host system type... " >&6; }
2285 if ${ac_cv_host+:} false; then :
2286   $as_echo_n "(cached) " >&6
2287 else
2288   if test "x$host_alias" = x; then
2289   ac_cv_host=$ac_cv_build
2290 else
2291   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2293 fi
2294
2295 fi
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297 $as_echo "$ac_cv_host" >&6; }
2298 case $ac_cv_host in
2299 *-*-*) ;;
2300 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2301 esac
2302 host=$ac_cv_host
2303 ac_save_IFS=$IFS; IFS='-'
2304 set x $ac_cv_host
2305 shift
2306 host_cpu=$1
2307 host_vendor=$2
2308 shift; shift
2309 # Remember, the first character of IFS is used to create $*,
2310 # except with old shells:
2311 host_os=$*
2312 IFS=$ac_save_IFS
2313 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2314
2315
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317 $as_echo_n "checking target system type... " >&6; }
2318 if ${ac_cv_target+:} false; then :
2319   $as_echo_n "(cached) " >&6
2320 else
2321   if test "x$target_alias" = x; then
2322   ac_cv_target=$ac_cv_host
2323 else
2324   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2326 fi
2327
2328 fi
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330 $as_echo "$ac_cv_target" >&6; }
2331 case $ac_cv_target in
2332 *-*-*) ;;
2333 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2334 esac
2335 target=$ac_cv_target
2336 ac_save_IFS=$IFS; IFS='-'
2337 set x $ac_cv_target
2338 shift
2339 target_cpu=$1
2340 target_vendor=$2
2341 shift; shift
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2344 target_os=$*
2345 IFS=$ac_save_IFS
2346 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2347
2348
2349 # The aliases save the names the user supplied, while $host etc.
2350 # will get canonicalized.
2351 test -n "$target_alias" &&
2352   test "$program_prefix$program_suffix$program_transform_name" = \
2353     NONENONEs,x,x, &&
2354   program_prefix=${target_alias}-
2355
2356 # Initialize Automake
2357 # Don't require all the GNU mandated files
2358 am__api_version='1.11'
2359
2360 # Find a good install program.  We prefer a C program (faster),
2361 # so one script is as good as another.  But avoid the broken or
2362 # incompatible versions:
2363 # SysV /etc/install, /usr/sbin/install
2364 # SunOS /usr/etc/install
2365 # IRIX /sbin/install
2366 # AIX /bin/install
2367 # AmigaOS /C/install, which installs bootblocks on floppy discs
2368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2371 # OS/2's system install, which has a completely different semantic
2372 # ./install, which can be erroneously created by make from ./install.sh.
2373 # Reject install programs that cannot install multiple files.
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2375 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2376 if test -z "$INSTALL"; then
2377 if ${ac_cv_path_install+:} false; then :
2378   $as_echo_n "(cached) " >&6
2379 else
2380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383   IFS=$as_save_IFS
2384   test -z "$as_dir" && as_dir=.
2385     # Account for people who put trailing slashes in PATH elements.
2386 case $as_dir/ in #((
2387   ./ | .// | /[cC]/* | \
2388   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2389   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2390   /usr/ucb/* ) ;;
2391   *)
2392     # OSF1 and SCO ODT 3.0 have their own names for install.
2393     # Don't use installbsd from OSF since it installs stuff as root
2394     # by default.
2395     for ac_prog in ginstall scoinst install; do
2396       for ac_exec_ext in '' $ac_executable_extensions; do
2397         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2398           if test $ac_prog = install &&
2399             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400             # AIX install.  It has an incompatible calling convention.
2401             :
2402           elif test $ac_prog = install &&
2403             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404             # program-specific install script used by HP pwplus--don't use.
2405             :
2406           else
2407             rm -rf conftest.one conftest.two conftest.dir
2408             echo one > conftest.one
2409             echo two > conftest.two
2410             mkdir conftest.dir
2411             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2412               test -s conftest.one && test -s conftest.two &&
2413               test -s conftest.dir/conftest.one &&
2414               test -s conftest.dir/conftest.two
2415             then
2416               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2417               break 3
2418             fi
2419           fi
2420         fi
2421       done
2422     done
2423     ;;
2424 esac
2425
2426   done
2427 IFS=$as_save_IFS
2428
2429 rm -rf conftest.one conftest.two conftest.dir
2430
2431 fi
2432   if test "${ac_cv_path_install+set}" = set; then
2433     INSTALL=$ac_cv_path_install
2434   else
2435     # As a last resort, use the slow shell script.  Don't cache a
2436     # value for INSTALL within a source directory, because that will
2437     # break other packages using the cache if that directory is
2438     # removed, or if the value is a relative name.
2439     INSTALL=$ac_install_sh
2440   fi
2441 fi
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2443 $as_echo "$INSTALL" >&6; }
2444
2445 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2446 # It thinks the first close brace ends the variable substitution.
2447 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2448
2449 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2450
2451 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2452
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2454 $as_echo_n "checking whether build environment is sane... " >&6; }
2455 # Just in case
2456 sleep 1
2457 echo timestamp > conftest.file
2458 # Reject unsafe characters in $srcdir or the absolute working directory
2459 # name.  Accept space and tab only in the latter.
2460 am_lf='
2461 '
2462 case `pwd` in
2463   *[\\\"\#\$\&\'\`$am_lf]*)
2464     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2465 esac
2466 case $srcdir in
2467   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2468     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2469 esac
2470
2471 # Do `set' in a subshell so we don't clobber the current shell's
2472 # arguments.  Must try -L first in case configure is actually a
2473 # symlink; some systems play weird games with the mod time of symlinks
2474 # (eg FreeBSD returns the mod time of the symlink's containing
2475 # directory).
2476 if (
2477    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2478    if test "$*" = "X"; then
2479       # -L didn't work.
2480       set X `ls -t "$srcdir/configure" conftest.file`
2481    fi
2482    rm -f conftest.file
2483    if test "$*" != "X $srcdir/configure conftest.file" \
2484       && test "$*" != "X conftest.file $srcdir/configure"; then
2485
2486       # If neither matched, then we have a broken ls.  This can happen
2487       # if, for instance, CONFIG_SHELL is bash and it inherits a
2488       # broken ls alias from the environment.  This has actually
2489       # happened.  Such a system could not be considered "sane".
2490       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2491 alias in your environment" "$LINENO" 5
2492    fi
2493
2494    test "$2" = conftest.file
2495    )
2496 then
2497    # Ok.
2498    :
2499 else
2500    as_fn_error $? "newly created file is older than distributed files!
2501 Check your system clock" "$LINENO" 5
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2504 $as_echo "yes" >&6; }
2505 test "$program_prefix" != NONE &&
2506   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2507 # Use a double $ so make ignores it.
2508 test "$program_suffix" != NONE &&
2509   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2510 # Double any \ or $.
2511 # By default was `s,x,x', remove it if useless.
2512 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2513 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2514
2515 # expand $ac_aux_dir to an absolute path
2516 am_aux_dir=`cd $ac_aux_dir && pwd`
2517
2518 if test x"${MISSING+set}" != xset; then
2519   case $am_aux_dir in
2520   *\ * | *\     *)
2521     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2522   *)
2523     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2524   esac
2525 fi
2526 # Use eval to expand $SHELL
2527 if eval "$MISSING --run true"; then
2528   am_missing_run="$MISSING --run "
2529 else
2530   am_missing_run=
2531   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2532 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2533 fi
2534
2535 if test x"${install_sh}" != xset; then
2536   case $am_aux_dir in
2537   *\ * | *\     *)
2538     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2539   *)
2540     install_sh="\${SHELL} $am_aux_dir/install-sh"
2541   esac
2542 fi
2543
2544 # Installed binaries are usually stripped using `strip' when the user
2545 # run `make install-strip'.  However `strip' might not be the right
2546 # tool to use in cross-compilation environments, therefore Automake
2547 # will honor the `STRIP' environment variable to overrule this program.
2548 if test "$cross_compiling" != no; then
2549   if test -n "$ac_tool_prefix"; then
2550   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2551 set dummy ${ac_tool_prefix}strip; ac_word=$2
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if ${ac_cv_prog_STRIP+:} false; then :
2555   $as_echo_n "(cached) " >&6
2556 else
2557   if test -n "$STRIP"; then
2558   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563   IFS=$as_save_IFS
2564   test -z "$as_dir" && as_dir=.
2565     for ac_exec_ext in '' $ac_executable_extensions; do
2566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569     break 2
2570   fi
2571 done
2572   done
2573 IFS=$as_save_IFS
2574
2575 fi
2576 fi
2577 STRIP=$ac_cv_prog_STRIP
2578 if test -n "$STRIP"; then
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2580 $as_echo "$STRIP" >&6; }
2581 else
2582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2584 fi
2585
2586
2587 fi
2588 if test -z "$ac_cv_prog_STRIP"; then
2589   ac_ct_STRIP=$STRIP
2590   # Extract the first word of "strip", so it can be a program name with args.
2591 set dummy strip; ac_word=$2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2595   $as_echo_n "(cached) " >&6
2596 else
2597   if test -n "$ac_ct_STRIP"; then
2598   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603   IFS=$as_save_IFS
2604   test -z "$as_dir" && as_dir=.
2605     for ac_exec_ext in '' $ac_executable_extensions; do
2606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607     ac_cv_prog_ac_ct_STRIP="strip"
2608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609     break 2
2610   fi
2611 done
2612   done
2613 IFS=$as_save_IFS
2614
2615 fi
2616 fi
2617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2618 if test -n "$ac_ct_STRIP"; then
2619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2620 $as_echo "$ac_ct_STRIP" >&6; }
2621 else
2622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2624 fi
2625
2626   if test "x$ac_ct_STRIP" = x; then
2627     STRIP=":"
2628   else
2629     case $cross_compiling:$ac_tool_warned in
2630 yes:)
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2633 ac_tool_warned=yes ;;
2634 esac
2635     STRIP=$ac_ct_STRIP
2636   fi
2637 else
2638   STRIP="$ac_cv_prog_STRIP"
2639 fi
2640
2641 fi
2642 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2645 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2646 if test -z "$MKDIR_P"; then
2647   if ${ac_cv_path_mkdir+:} false; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655     for ac_prog in mkdir gmkdir; do
2656          for ac_exec_ext in '' $ac_executable_extensions; do
2657            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2658            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2659              'mkdir (GNU coreutils) '* | \
2660              'mkdir (coreutils) '* | \
2661              'mkdir (fileutils) '4.1*)
2662                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2663                break 3;;
2664            esac
2665          done
2666        done
2667   done
2668 IFS=$as_save_IFS
2669
2670 fi
2671
2672   test -d ./--version && rmdir ./--version
2673   if test "${ac_cv_path_mkdir+set}" = set; then
2674     MKDIR_P="$ac_cv_path_mkdir -p"
2675   else
2676     # As a last resort, use the slow shell script.  Don't cache a
2677     # value for MKDIR_P within a source directory, because that will
2678     # break other packages using the cache if that directory is
2679     # removed, or if the value is a relative name.
2680     MKDIR_P="$ac_install_sh -d"
2681   fi
2682 fi
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2684 $as_echo "$MKDIR_P" >&6; }
2685
2686 mkdir_p="$MKDIR_P"
2687 case $mkdir_p in
2688   [\\/$]* | ?:[\\/]*) ;;
2689   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2690 esac
2691
2692 for ac_prog in gawk mawk nawk awk
2693 do
2694   # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if ${ac_cv_prog_AWK+:} false; then :
2699   $as_echo_n "(cached) " >&6
2700 else
2701   if test -n "$AWK"; then
2702   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707   IFS=$as_save_IFS
2708   test -z "$as_dir" && as_dir=.
2709     for ac_exec_ext in '' $ac_executable_extensions; do
2710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711     ac_cv_prog_AWK="$ac_prog"
2712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713     break 2
2714   fi
2715 done
2716   done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 AWK=$ac_cv_prog_AWK
2722 if test -n "$AWK"; then
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2724 $as_echo "$AWK" >&6; }
2725 else
2726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730
2731   test -n "$AWK" && break
2732 done
2733
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2735 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2736 set x ${MAKE-make}
2737 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2738 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2739   $as_echo_n "(cached) " >&6
2740 else
2741   cat >conftest.make <<\_ACEOF
2742 SHELL = /bin/sh
2743 all:
2744         @echo '@@@%%%=$(MAKE)=@@@%%%'
2745 _ACEOF
2746 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2747 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2748   *@@@%%%=?*=@@@%%%*)
2749     eval ac_cv_prog_make_${ac_make}_set=yes;;
2750   *)
2751     eval ac_cv_prog_make_${ac_make}_set=no;;
2752 esac
2753 rm -f conftest.make
2754 fi
2755 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2757 $as_echo "yes" >&6; }
2758   SET_MAKE=
2759 else
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762   SET_MAKE="MAKE=${MAKE-make}"
2763 fi
2764
2765 rm -rf .tst 2>/dev/null
2766 mkdir .tst 2>/dev/null
2767 if test -d .tst; then
2768   am__leading_dot=.
2769 else
2770   am__leading_dot=_
2771 fi
2772 rmdir .tst 2>/dev/null
2773
2774 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2775   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2776   # is not polluted with repeated "-I."
2777   am__isrc=' -I$(srcdir)'
2778   # test to see if srcdir already configured
2779   if test -f $srcdir/config.status; then
2780     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2781   fi
2782 fi
2783
2784 # test whether we have cygpath
2785 if test -z "$CYGPATH_W"; then
2786   if (cygpath --version) >/dev/null 2>/dev/null; then
2787     CYGPATH_W='cygpath -w'
2788   else
2789     CYGPATH_W=echo
2790   fi
2791 fi
2792
2793
2794 # Define the identity of the package.
2795  PACKAGE='libjpeg'
2796  VERSION='8.3.0'
2797
2798
2799 cat >>confdefs.h <<_ACEOF
2800 #define PACKAGE "$PACKAGE"
2801 _ACEOF
2802
2803
2804 cat >>confdefs.h <<_ACEOF
2805 #define VERSION "$VERSION"
2806 _ACEOF
2807
2808 # Some tools Automake needs.
2809
2810 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2811
2812
2813 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2814
2815
2816 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2817
2818
2819 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2820
2821
2822 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2823
2824 # We need awk for the "check" target.  The system "awk" is bad on
2825 # some platforms.
2826 # Always define AMTAR for backward compatibility.
2827
2828 AMTAR=${AMTAR-"${am_missing_run}tar"}
2829
2830 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2831
2832
2833
2834
2835
2836
2837 # Make --enable-silent-rules the default.
2838 # To get verbose build output you may configure
2839 # with --disable-silent-rules or use "make V=1".
2840 # Check whether --enable-silent-rules was given.
2841 if test "${enable_silent_rules+set}" = set; then :
2842   enableval=$enable_silent_rules;
2843 fi
2844
2845 case $enable_silent_rules in
2846 yes) AM_DEFAULT_VERBOSITY=0;;
2847 no)  AM_DEFAULT_VERBOSITY=1;;
2848 *)   AM_DEFAULT_VERBOSITY=0;;
2849 esac
2850 AM_BACKSLASH='\'
2851
2852
2853 # This is required when using the de-ANSI-fication feature.
2854 DEPDIR="${am__leading_dot}deps"
2855
2856 ac_config_commands="$ac_config_commands depfiles"
2857
2858
2859 am_make=${MAKE-make}
2860 cat > confinc << 'END'
2861 am__doit:
2862         @echo this is the am__doit target
2863 .PHONY: am__doit
2864 END
2865 # If we don't find an include directive, just comment out the code.
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2867 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2868 am__include="#"
2869 am__quote=
2870 _am_result=none
2871 # First try GNU make style include.
2872 echo "include confinc" > confmf
2873 # Ignore all kinds of additional output from `make'.
2874 case `$am_make -s -f confmf 2> /dev/null` in #(
2875 *the\ am__doit\ target*)
2876   am__include=include
2877   am__quote=
2878   _am_result=GNU
2879   ;;
2880 esac
2881 # Now try BSD make style include.
2882 if test "$am__include" = "#"; then
2883    echo '.include "confinc"' > confmf
2884    case `$am_make -s -f confmf 2> /dev/null` in #(
2885    *the\ am__doit\ target*)
2886      am__include=.include
2887      am__quote="\""
2888      _am_result=BSD
2889      ;;
2890    esac
2891 fi
2892
2893
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2895 $as_echo "$_am_result" >&6; }
2896 rm -f confinc confmf
2897
2898 # Check whether --enable-dependency-tracking was given.
2899 if test "${enable_dependency_tracking+set}" = set; then :
2900   enableval=$enable_dependency_tracking;
2901 fi
2902
2903 if test "x$enable_dependency_tracking" != xno; then
2904   am_depcomp="$ac_aux_dir/depcomp"
2905   AMDEPBACKSLASH='\'
2906 fi
2907  if test "x$enable_dependency_tracking" != xno; then
2908   AMDEP_TRUE=
2909   AMDEP_FALSE='#'
2910 else
2911   AMDEP_TRUE='#'
2912   AMDEP_FALSE=
2913 fi
2914
2915
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 if test -n "$ac_tool_prefix"; then
2922   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_CC+:} false; then :
2927   $as_echo_n "(cached) " >&6
2928 else
2929   if test -n "$CC"; then
2930   ac_cv_prog_CC="$CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935   IFS=$as_save_IFS
2936   test -z "$as_dir" && as_dir=.
2937     for ac_exec_ext in '' $ac_executable_extensions; do
2938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944   done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 CC=$ac_cv_prog_CC
2950 if test -n "$CC"; then
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952 $as_echo "$CC" >&6; }
2953 else
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959 fi
2960 if test -z "$ac_cv_prog_CC"; then
2961   ac_ct_CC=$CC
2962   # Extract the first word of "gcc", so it can be a program name with args.
2963 set dummy gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   if test -n "$ac_ct_CC"; then
2970   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977     for ac_exec_ext in '' $ac_executable_extensions; do
2978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979     ac_cv_prog_ac_ct_CC="gcc"
2980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984   done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992 $as_echo "$ac_ct_CC" >&6; }
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998   if test "x$ac_ct_CC" = x; then
2999     CC=""
3000   else
3001     case $cross_compiling:$ac_tool_warned in
3002 yes:)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007     CC=$ac_ct_CC
3008   fi
3009 else
3010   CC="$ac_cv_prog_CC"
3011 fi
3012
3013 if test -z "$CC"; then
3014           if test -n "$ac_tool_prefix"; then
3015     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_CC+:} false; then :
3020   $as_echo_n "(cached) " >&6
3021 else
3022   if test -n "$CC"; then
3023   ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028   IFS=$as_save_IFS
3029   test -z "$as_dir" && as_dir=.
3030     for ac_exec_ext in '' $ac_executable_extensions; do
3031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032     ac_cv_prog_CC="${ac_tool_prefix}cc"
3033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034     break 2
3035   fi
3036 done
3037   done
3038 IFS=$as_save_IFS
3039
3040 fi
3041 fi
3042 CC=$ac_cv_prog_CC
3043 if test -n "$CC"; then
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045 $as_echo "$CC" >&6; }
3046 else
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3049 fi
3050
3051
3052   fi
3053 fi
3054 if test -z "$CC"; then
3055   # Extract the first word of "cc", so it can be a program name with args.
3056 set dummy cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   if test -n "$CC"; then
3063   ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065   ac_prog_rejected=no
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069   IFS=$as_save_IFS
3070   test -z "$as_dir" && as_dir=.
3071     for ac_exec_ext in '' $ac_executable_extensions; do
3072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3074        ac_prog_rejected=yes
3075        continue
3076      fi
3077     ac_cv_prog_CC="cc"
3078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082   done
3083 IFS=$as_save_IFS
3084
3085 if test $ac_prog_rejected = yes; then
3086   # We found a bogon in the path, so make sure we never use it.
3087   set dummy $ac_cv_prog_CC
3088   shift
3089   if test $# != 0; then
3090     # We chose a different compiler from the bogus one.
3091     # However, it has the same basename, so the bogon will be chosen
3092     # first if we set CC to just the basename; use the full file name.
3093     shift
3094     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3095   fi
3096 fi
3097 fi
3098 fi
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109 fi
3110 if test -z "$CC"; then
3111   if test -n "$ac_tool_prefix"; then
3112   for ac_prog in cl.exe
3113   do
3114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -n "$CC"; then
3122   ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129     for ac_exec_ext in '' $ac_executable_extensions; do
3130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136   done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151     test -n "$CC" && break
3152   done
3153 fi
3154 if test -z "$CC"; then
3155   ac_ct_CC=$CC
3156   for ac_prog in cl.exe
3157 do
3158   # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3163   $as_echo_n "(cached) " >&6
3164 else
3165   if test -n "$ac_ct_CC"; then
3166   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171   IFS=$as_save_IFS
3172   test -z "$as_dir" && as_dir=.
3173     for ac_exec_ext in '' $ac_executable_extensions; do
3174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175     ac_cv_prog_ac_ct_CC="$ac_prog"
3176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177     break 2
3178   fi
3179 done
3180   done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186 if test -n "$ac_ct_CC"; then
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188 $as_echo "$ac_ct_CC" >&6; }
3189 else
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195   test -n "$ac_ct_CC" && break
3196 done
3197
3198   if test "x$ac_ct_CC" = x; then
3199     CC=""
3200   else
3201     case $cross_compiling:$ac_tool_warned in
3202 yes:)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3206 esac
3207     CC=$ac_ct_CC
3208   fi
3209 fi
3210
3211 fi
3212
3213
3214 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error $? "no acceptable C compiler found in \$PATH
3217 See \`config.log' for more details" "$LINENO" 5; }
3218
3219 # Provide some information about the compiler.
3220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3221 set X $ac_compile
3222 ac_compiler=$2
3223 for ac_option in --version -v -V -qversion; do
3224   { { ac_try="$ac_compiler $ac_option >&5"
3225 case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3232   ac_status=$?
3233   if test -s conftest.err; then
3234     sed '10a\
3235 ... rest of stderr output deleted ...
3236          10q' conftest.err >conftest.er1
3237     cat conftest.er1 >&5
3238   fi
3239   rm -f conftest.er1 conftest.err
3240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241   test $ac_status = 0; }
3242 done
3243
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h.  */
3246
3247 int
3248 main ()
3249 {
3250
3251   ;
3252   return 0;
3253 }
3254 _ACEOF
3255 ac_clean_files_save=$ac_clean_files
3256 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3257 # Try to create an executable without -o first, disregard a.out.
3258 # It will help us diagnose broken compilers, and finding out an intuition
3259 # of exeext.
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3261 $as_echo_n "checking whether the C compiler works... " >&6; }
3262 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3263
3264 # The possible output files:
3265 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3266
3267 ac_rmfiles=
3268 for ac_file in $ac_files
3269 do
3270   case $ac_file in
3271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3272     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3273   esac
3274 done
3275 rm -f $ac_rmfiles
3276
3277 if { { ac_try="$ac_link_default"
3278 case "(($ac_try" in
3279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280   *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284   (eval "$ac_link_default") 2>&5
3285   ac_status=$?
3286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287   test $ac_status = 0; }; then :
3288   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3289 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3290 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3291 # so that the user can short-circuit this test for compilers unknown to
3292 # Autoconf.
3293 for ac_file in $ac_files ''
3294 do
3295   test -f "$ac_file" || continue
3296   case $ac_file in
3297     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3298         ;;
3299     [ab].out )
3300         # We found the default executable, but exeext='' is most
3301         # certainly right.
3302         break;;
3303     *.* )
3304         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3305         then :; else
3306            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307         fi
3308         # We set ac_cv_exeext here because the later test for it is not
3309         # safe: cross compilers may not add the suffix if given an `-o'
3310         # argument, so we may need to know it at that point already.
3311         # Even if this section looks crufty: it has the advantage of
3312         # actually working.
3313         break;;
3314     * )
3315         break;;
3316   esac
3317 done
3318 test "$ac_cv_exeext" = no && ac_cv_exeext=
3319
3320 else
3321   ac_file=''
3322 fi
3323 if test -z "$ac_file"; then :
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error 77 "C compiler cannot create executables
3332 See \`config.log' for more details" "$LINENO" 5; }
3333 else
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3336 fi
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3338 $as_echo_n "checking for C compiler default output file name... " >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3340 $as_echo "$ac_file" >&6; }
3341 ac_exeext=$ac_cv_exeext
3342
3343 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3344 ac_clean_files=$ac_clean_files_save
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3346 $as_echo_n "checking for suffix of executables... " >&6; }
3347 if { { ac_try="$ac_link"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354   (eval "$ac_link") 2>&5
3355   ac_status=$?
3356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357   test $ac_status = 0; }; then :
3358   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3359 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3360 # work properly (i.e., refer to `conftest.exe'), while it won't with
3361 # `rm'.
3362 for ac_file in conftest.exe conftest conftest.*; do
3363   test -f "$ac_file" || continue
3364   case $ac_file in
3365     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367           break;;
3368     * ) break;;
3369   esac
3370 done
3371 else
3372   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3375 See \`config.log' for more details" "$LINENO" 5; }
3376 fi
3377 rm -f conftest conftest$ac_cv_exeext
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3379 $as_echo "$ac_cv_exeext" >&6; }
3380
3381 rm -f conftest.$ac_ext
3382 EXEEXT=$ac_cv_exeext
3383 ac_exeext=$EXEEXT
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h.  */
3386 #include <stdio.h>
3387 int
3388 main ()
3389 {
3390 FILE *f = fopen ("conftest.out", "w");
3391  return ferror (f) || fclose (f) != 0;
3392
3393   ;
3394   return 0;
3395 }
3396 _ACEOF
3397 ac_clean_files="$ac_clean_files conftest.out"
3398 # Check that the compiler produces executables we can run.  If not, either
3399 # the compiler is broken, or we cross compile.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3401 $as_echo_n "checking whether we are cross compiling... " >&6; }
3402 if test "$cross_compiling" != yes; then
3403   { { ac_try="$ac_link"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410   (eval "$ac_link") 2>&5
3411   ac_status=$?
3412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413   test $ac_status = 0; }
3414   if { ac_try='./conftest$ac_cv_exeext'
3415   { { case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421   (eval "$ac_try") 2>&5
3422   ac_status=$?
3423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424   test $ac_status = 0; }; }; then
3425     cross_compiling=no
3426   else
3427     if test "$cross_compiling" = maybe; then
3428         cross_compiling=yes
3429     else
3430         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot run C compiled programs.
3433 If you meant to cross compile, use \`--host'.
3434 See \`config.log' for more details" "$LINENO" 5; }
3435     fi
3436   fi
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439 $as_echo "$cross_compiling" >&6; }
3440
3441 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3442 ac_clean_files=$ac_clean_files_save
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3444 $as_echo_n "checking for suffix of object files... " >&6; }
3445 if ${ac_cv_objext+:} false; then :
3446   $as_echo_n "(cached) " >&6
3447 else
3448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h.  */
3450
3451 int
3452 main ()
3453 {
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 rm -f conftest.o conftest.obj
3460 if { { ac_try="$ac_compile"
3461 case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467   (eval "$ac_compile") 2>&5
3468   ac_status=$?
3469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470   test $ac_status = 0; }; then :
3471   for ac_file in conftest.o conftest.obj conftest.*; do
3472   test -f "$ac_file" || continue;
3473   case $ac_file in
3474     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3475     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3476        break;;
3477   esac
3478 done
3479 else
3480   $as_echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error $? "cannot compute suffix of object files: cannot compile
3486 See \`config.log' for more details" "$LINENO" 5; }
3487 fi
3488 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3491 $as_echo "$ac_cv_objext" >&6; }
3492 OBJEXT=$ac_cv_objext
3493 ac_objext=$OBJEXT
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3495 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3496 if ${ac_cv_c_compiler_gnu+:} false; then :
3497   $as_echo_n "(cached) " >&6
3498 else
3499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h.  */
3501
3502 int
3503 main ()
3504 {
3505 #ifndef __GNUC__
3506        choke me
3507 #endif
3508
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514   ac_compiler_gnu=yes
3515 else
3516   ac_compiler_gnu=no
3517 fi
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3520
3521 fi
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3523 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3524 if test $ac_compiler_gnu = yes; then
3525   GCC=yes
3526 else
3527   GCC=
3528 fi
3529 ac_test_CFLAGS=${CFLAGS+set}
3530 ac_save_CFLAGS=$CFLAGS
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3532 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3533 if ${ac_cv_prog_cc_g+:} false; then :
3534   $as_echo_n "(cached) " >&6
3535 else
3536   ac_save_c_werror_flag=$ac_c_werror_flag
3537    ac_c_werror_flag=yes
3538    ac_cv_prog_cc_g=no
3539    CFLAGS="-g"
3540    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546
3547   ;
3548   return 0;
3549 }
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552   ac_cv_prog_cc_g=yes
3553 else
3554   CFLAGS=""
3555       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567
3568 else
3569   ac_c_werror_flag=$ac_save_c_werror_flag
3570          CFLAGS="-g"
3571          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h.  */
3573
3574 int
3575 main ()
3576 {
3577
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583   ac_cv_prog_cc_g=yes
3584 fi
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590    ac_c_werror_flag=$ac_save_c_werror_flag
3591 fi
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3593 $as_echo "$ac_cv_prog_cc_g" >&6; }
3594 if test "$ac_test_CFLAGS" = set; then
3595   CFLAGS=$ac_save_CFLAGS
3596 elif test $ac_cv_prog_cc_g = yes; then
3597   if test "$GCC" = yes; then
3598     CFLAGS="-g -O2"
3599   else
3600     CFLAGS="-g"
3601   fi
3602 else
3603   if test "$GCC" = yes; then
3604     CFLAGS="-O2"
3605   else
3606     CFLAGS=
3607   fi
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3610 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3611 if ${ac_cv_prog_cc_c89+:} false; then :
3612   $as_echo_n "(cached) " >&6
3613 else
3614   ac_cv_prog_cc_c89=no
3615 ac_save_CC=$CC
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h.  */
3618 #include <stdarg.h>
3619 #include <stdio.h>
3620 #include <sys/types.h>
3621 #include <sys/stat.h>
3622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3623 struct buf { int x; };
3624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3625 static char *e (p, i)
3626      char **p;
3627      int i;
3628 {
3629   return p[i];
3630 }
3631 static char *f (char * (*g) (char **, int), char **p, ...)
3632 {
3633   char *s;
3634   va_list v;
3635   va_start (v,p);
3636   s = g (p, va_arg (v,int));
3637   va_end (v);
3638   return s;
3639 }
3640
3641 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3642    function prototypes and stuff, but not '\xHH' hex character constants.
3643    These don't provoke an error unfortunately, instead are silently treated
3644    as 'x'.  The following induces an error, until -std is added to get
3645    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3646    array size at least.  It's necessary to write '\x00'==0 to get something
3647    that's true only with -std.  */
3648 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3649
3650 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3651    inside strings and character constants.  */
3652 #define FOO(x) 'x'
3653 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3654
3655 int test (int i, double x);
3656 struct s1 {int (*f) (int a);};
3657 struct s2 {int (*f) (double a);};
3658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3659 int argc;
3660 char **argv;
3661 int
3662 main ()
3663 {
3664 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3665   ;
3666   return 0;
3667 }
3668 _ACEOF
3669 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3670         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3671 do
3672   CC="$ac_save_CC $ac_arg"
3673   if ac_fn_c_try_compile "$LINENO"; then :
3674   ac_cv_prog_cc_c89=$ac_arg
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext
3677   test "x$ac_cv_prog_cc_c89" != "xno" && break
3678 done
3679 rm -f conftest.$ac_ext
3680 CC=$ac_save_CC
3681
3682 fi
3683 # AC_CACHE_VAL
3684 case "x$ac_cv_prog_cc_c89" in
3685   x)
3686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3687 $as_echo "none needed" >&6; } ;;
3688   xno)
3689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3690 $as_echo "unsupported" >&6; } ;;
3691   *)
3692     CC="$CC $ac_cv_prog_cc_c89"
3693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3694 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3695 esac
3696 if test "x$ac_cv_prog_cc_c89" != xno; then :
3697
3698 fi
3699
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705
3706 depcc="$CC"   am_compiler_list=
3707
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3709 $as_echo_n "checking dependency style of $depcc... " >&6; }
3710 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3714   # We make a subdir and do the tests there.  Otherwise we can end up
3715   # making bogus files that we don't know about and never remove.  For
3716   # instance it was reported that on HP-UX the gcc test will end up
3717   # making a dummy file named `D' -- because `-MD' means `put the output
3718   # in D'.
3719   mkdir conftest.dir
3720   # Copy depcomp to subdir because otherwise we won't find it if we're
3721   # using a relative directory.
3722   cp "$am_depcomp" conftest.dir
3723   cd conftest.dir
3724   # We will build objects and dependencies in a subdirectory because
3725   # it helps to detect inapplicable dependency modes.  For instance
3726   # both Tru64's cc and ICC support -MD to output dependencies as a
3727   # side effect of compilation, but ICC will put the dependencies in
3728   # the current directory while Tru64 will put them in the object
3729   # directory.
3730   mkdir sub
3731
3732   am_cv_CC_dependencies_compiler_type=none
3733   if test "$am_compiler_list" = ""; then
3734      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3735   fi
3736   am__universal=false
3737   case " $depcc " in #(
3738      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3739      esac
3740
3741   for depmode in $am_compiler_list; do
3742     # Setup a source with many dependencies, because some compilers
3743     # like to wrap large dependency lists on column 80 (with \), and
3744     # we should not choose a depcomp mode which is confused by this.
3745     #
3746     # We need to recreate these files for each test, as the compiler may
3747     # overwrite some of them when testing with obscure command lines.
3748     # This happens at least with the AIX C compiler.
3749     : > sub/conftest.c
3750     for i in 1 2 3 4 5 6; do
3751       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3752       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3753       # Solaris 8's {/usr,}/bin/sh.
3754       touch sub/conftst$i.h
3755     done
3756     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3757
3758     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3759     # mode.  It turns out that the SunPro C++ compiler does not properly
3760     # handle `-M -o', and we need to detect this.  Also, some Intel
3761     # versions had trouble with output in subdirs
3762     am__obj=sub/conftest.${OBJEXT-o}
3763     am__minus_obj="-o $am__obj"
3764     case $depmode in
3765     gcc)
3766       # This depmode causes a compiler race in universal mode.
3767       test "$am__universal" = false || continue
3768       ;;
3769     nosideeffect)
3770       # after this tag, mechanisms are not by side-effect, so they'll
3771       # only be used when explicitly requested
3772       if test "x$enable_dependency_tracking" = xyes; then
3773         continue
3774       else
3775         break
3776       fi
3777       ;;
3778     msvisualcpp | msvcmsys)
3779       # This compiler won't grok `-c -o', but also, the minuso test has
3780       # not run yet.  These depmodes are late enough in the game, and
3781       # so weak that their functioning should not be impacted.
3782       am__obj=conftest.${OBJEXT-o}
3783       am__minus_obj=
3784       ;;
3785     none) break ;;
3786     esac
3787     if depmode=$depmode \
3788        source=sub/conftest.c object=$am__obj \
3789        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3790        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3791          >/dev/null 2>conftest.err &&
3792        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3793        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3794        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3795        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3796       # icc doesn't choke on unknown options, it will just issue warnings
3797       # or remarks (even with -Werror).  So we grep stderr for any message
3798       # that says an option was ignored or not supported.
3799       # When given -MP, icc 7.0 and 7.1 complain thusly:
3800       #   icc: Command line warning: ignoring option '-M'; no argument required
3801       # The diagnosis changed in icc 8.0:
3802       #   icc: Command line remark: option '-MP' not supported
3803       if (grep 'ignoring option' conftest.err ||
3804           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3805         am_cv_CC_dependencies_compiler_type=$depmode
3806         break
3807       fi
3808     fi
3809   done
3810
3811   cd ..
3812   rm -rf conftest.dir
3813 else
3814   am_cv_CC_dependencies_compiler_type=none
3815 fi
3816
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3819 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3820 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3821
3822  if
3823   test "x$enable_dependency_tracking" != xno \
3824   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3825   am__fastdepCC_TRUE=
3826   am__fastdepCC_FALSE='#'
3827 else
3828   am__fastdepCC_TRUE='#'
3829   am__fastdepCC_FALSE=
3830 fi
3831
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
3834 $as_echo_n "checking for function prototypes... " >&6; }
3835 if test "$ac_cv_prog_cc_c89" != no; then
3836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837 $as_echo "yes" >&6; }
3838
3839 $as_echo "#define PROTOTYPES 1" >>confdefs.h
3840
3841
3842 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
3843
3844 else
3845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 $as_echo "no" >&6; }
3847 fi
3848
3849
3850 ac_ext=c
3851 ac_cpp='$CPP $CPPFLAGS'
3852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3856 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3857 # On Suns, sometimes $CPP names a directory.
3858 if test -n "$CPP" && test -d "$CPP"; then
3859   CPP=
3860 fi
3861 if test -z "$CPP"; then
3862   if ${ac_cv_prog_CPP+:} false; then :
3863   $as_echo_n "(cached) " >&6
3864 else
3865       # Double quotes because CPP needs to be expanded
3866     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3867     do
3868       ac_preproc_ok=false
3869 for ac_c_preproc_warn_flag in '' yes
3870 do
3871   # Use a header file that comes with gcc, so configuring glibc
3872   # with a fresh cross-compiler works.
3873   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874   # <limits.h> exists even on freestanding compilers.
3875   # On the NeXT, cc -E runs the code through the compiler's parser,
3876   # not just through cpp. "Syntax error" is here to catch this case.
3877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h.  */
3879 #ifdef __STDC__
3880 # include <limits.h>
3881 #else
3882 # include <assert.h>
3883 #endif
3884                      Syntax error
3885 _ACEOF
3886 if ac_fn_c_try_cpp "$LINENO"; then :
3887
3888 else
3889   # Broken: fails on valid input.
3890 continue
3891 fi
3892 rm -f conftest.err conftest.i conftest.$ac_ext
3893
3894   # OK, works on sane cases.  Now check whether nonexistent headers
3895   # can be detected and how.
3896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898 #include <ac_nonexistent.h>
3899 _ACEOF
3900 if ac_fn_c_try_cpp "$LINENO"; then :
3901   # Broken: success on invalid input.
3902 continue
3903 else
3904   # Passes both tests.
3905 ac_preproc_ok=:
3906 break
3907 fi
3908 rm -f conftest.err conftest.i conftest.$ac_ext
3909
3910 done
3911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3912 rm -f conftest.i conftest.err conftest.$ac_ext
3913 if $ac_preproc_ok; then :
3914   break
3915 fi
3916
3917     done
3918     ac_cv_prog_CPP=$CPP
3919
3920 fi
3921   CPP=$ac_cv_prog_CPP
3922 else
3923   ac_cv_prog_CPP=$CPP
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3926 $as_echo "$CPP" >&6; }
3927 ac_preproc_ok=false
3928 for ac_c_preproc_warn_flag in '' yes
3929 do
3930   # Use a header file that comes with gcc, so configuring glibc
3931   # with a fresh cross-compiler works.
3932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3933   # <limits.h> exists even on freestanding compilers.
3934   # On the NeXT, cc -E runs the code through the compiler's parser,
3935   # not just through cpp. "Syntax error" is here to catch this case.
3936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h.  */
3938 #ifdef __STDC__
3939 # include <limits.h>
3940 #else
3941 # include <assert.h>
3942 #endif
3943                      Syntax error
3944 _ACEOF
3945 if ac_fn_c_try_cpp "$LINENO"; then :
3946
3947 else
3948   # Broken: fails on valid input.
3949 continue
3950 fi
3951 rm -f conftest.err conftest.i conftest.$ac_ext
3952
3953   # OK, works on sane cases.  Now check whether nonexistent headers
3954   # can be detected and how.
3955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957 #include <ac_nonexistent.h>
3958 _ACEOF
3959 if ac_fn_c_try_cpp "$LINENO"; then :
3960   # Broken: success on invalid input.
3961 continue
3962 else
3963   # Passes both tests.
3964 ac_preproc_ok=:
3965 break
3966 fi
3967 rm -f conftest.err conftest.i conftest.$ac_ext
3968
3969 done
3970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3971 rm -f conftest.i conftest.err conftest.$ac_ext
3972 if $ac_preproc_ok; then :
3973
3974 else
3975   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3978 See \`config.log' for more details" "$LINENO" 5; }
3979 fi
3980
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3989 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3990 if ${ac_cv_path_GREP+:} false; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993   if test -z "$GREP"; then
3994   ac_path_GREP_found=false
3995   # Loop through the user's path and test for each of PROGNAME-LIST
3996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998 do
3999   IFS=$as_save_IFS
4000   test -z "$as_dir" && as_dir=.
4001     for ac_prog in grep ggrep; do
4002     for ac_exec_ext in '' $ac_executable_extensions; do
4003       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4004       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4005 # Check for GNU ac_path_GREP and select it if it is found.
4006   # Check for GNU $ac_path_GREP
4007 case `"$ac_path_GREP" --version 2>&1` in
4008 *GNU*)
4009   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4010 *)
4011   ac_count=0
4012   $as_echo_n 0123456789 >"conftest.in"
4013   while :
4014   do
4015     cat "conftest.in" "conftest.in" >"conftest.tmp"
4016     mv "conftest.tmp" "conftest.in"
4017     cp "conftest.in" "conftest.nl"
4018     $as_echo 'GREP' >> "conftest.nl"
4019     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021     as_fn_arith $ac_count + 1 && ac_count=$as_val
4022     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4023       # Best one so far, save it but keep looking for a better one
4024       ac_cv_path_GREP="$ac_path_GREP"
4025       ac_path_GREP_max=$ac_count
4026     fi
4027     # 10*(2^10) chars as input seems more than enough
4028     test $ac_count -gt 10 && break
4029   done
4030   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031 esac
4032
4033       $ac_path_GREP_found && break 3
4034     done
4035   done
4036   done
4037 IFS=$as_save_IFS
4038   if test -z "$ac_cv_path_GREP"; then
4039     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4040   fi
4041 else
4042   ac_cv_path_GREP=$GREP
4043 fi
4044
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4047 $as_echo "$ac_cv_path_GREP" >&6; }
4048  GREP="$ac_cv_path_GREP"
4049
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4052 $as_echo_n "checking for egrep... " >&6; }
4053 if ${ac_cv_path_EGREP+:} false; then :
4054   $as_echo_n "(cached) " >&6
4055 else
4056   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057    then ac_cv_path_EGREP="$GREP -E"
4058    else
4059      if test -z "$EGREP"; then
4060   ac_path_EGREP_found=false
4061   # Loop through the user's path and test for each of PROGNAME-LIST
4062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064 do
4065   IFS=$as_save_IFS
4066   test -z "$as_dir" && as_dir=.
4067     for ac_prog in egrep; do
4068     for ac_exec_ext in '' $ac_executable_extensions; do
4069       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4070       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4071 # Check for GNU ac_path_EGREP and select it if it is found.
4072   # Check for GNU $ac_path_EGREP
4073 case `"$ac_path_EGREP" --version 2>&1` in
4074 *GNU*)
4075   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4076 *)
4077   ac_count=0
4078   $as_echo_n 0123456789 >"conftest.in"
4079   while :
4080   do
4081     cat "conftest.in" "conftest.in" >"conftest.tmp"
4082     mv "conftest.tmp" "conftest.in"
4083     cp "conftest.in" "conftest.nl"
4084     $as_echo 'EGREP' >> "conftest.nl"
4085     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087     as_fn_arith $ac_count + 1 && ac_count=$as_val
4088     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089       # Best one so far, save it but keep looking for a better one
4090       ac_cv_path_EGREP="$ac_path_EGREP"
4091       ac_path_EGREP_max=$ac_count
4092     fi
4093     # 10*(2^10) chars as input seems more than enough
4094     test $ac_count -gt 10 && break
4095   done
4096   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097 esac
4098
4099       $ac_path_EGREP_found && break 3
4100     done
4101   done
4102   done
4103 IFS=$as_save_IFS
4104   if test -z "$ac_cv_path_EGREP"; then
4105     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4106   fi
4107 else
4108   ac_cv_path_EGREP=$EGREP
4109 fi
4110
4111    fi
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4114 $as_echo "$ac_cv_path_EGREP" >&6; }
4115  EGREP="$ac_cv_path_EGREP"
4116
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4119 $as_echo_n "checking for ANSI C header files... " >&6; }
4120 if ${ac_cv_header_stdc+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h.  */
4125 #include <stdlib.h>
4126 #include <stdarg.h>
4127 #include <string.h>
4128 #include <float.h>
4129
4130 int
4131 main ()
4132 {
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139   ac_cv_header_stdc=yes
4140 else
4141   ac_cv_header_stdc=no
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144
4145 if test $ac_cv_header_stdc = yes; then
4146   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h.  */
4149 #include <string.h>
4150
4151 _ACEOF
4152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153   $EGREP "memchr" >/dev/null 2>&1; then :
4154
4155 else
4156   ac_cv_header_stdc=no
4157 fi
4158 rm -f conftest*
4159
4160 fi
4161
4162 if test $ac_cv_header_stdc = yes; then
4163   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166 #include <stdlib.h>
4167
4168 _ACEOF
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170   $EGREP "free" >/dev/null 2>&1; then :
4171
4172 else
4173   ac_cv_header_stdc=no
4174 fi
4175 rm -f conftest*
4176
4177 fi
4178
4179 if test $ac_cv_header_stdc = yes; then
4180   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4181   if test "$cross_compiling" = yes; then :
4182   :
4183 else
4184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h.  */
4186 #include <ctype.h>
4187 #include <stdlib.h>
4188 #if ((' ' & 0x0FF) == 0x020)
4189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191 #else
4192 # define ISLOWER(c) \
4193                    (('a' <= (c) && (c) <= 'i') \
4194                      || ('j' <= (c) && (c) <= 'r') \
4195                      || ('s' <= (c) && (c) <= 'z'))
4196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197 #endif
4198
4199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4200 int
4201 main ()
4202 {
4203   int i;
4204   for (i = 0; i < 256; i++)
4205     if (XOR (islower (i), ISLOWER (i))
4206         || toupper (i) != TOUPPER (i))
4207       return 2;
4208   return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_run "$LINENO"; then :
4212
4213 else
4214   ac_cv_header_stdc=no
4215 fi
4216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4217   conftest.$ac_objext conftest.beam conftest.$ac_ext
4218 fi
4219
4220 fi
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4223 $as_echo "$ac_cv_header_stdc" >&6; }
4224 if test $ac_cv_header_stdc = yes; then
4225
4226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4227
4228 fi
4229
4230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4232                   inttypes.h stdint.h unistd.h
4233 do :
4234   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4235 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4236 "
4237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4238   cat >>confdefs.h <<_ACEOF
4239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4240 _ACEOF
4241
4242 fi
4243
4244 done
4245
4246
4247
4248 if test "$ac_cv_prog_cc_stdc" != no; then
4249   U= ANSI2KNR=
4250 else
4251   U=_ ANSI2KNR=./ansi2knr
4252 fi
4253 # Ensure some checks needed by ansi2knr itself.
4254
4255 for ac_header in string.h
4256 do :
4257   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4258 if test "x$ac_cv_header_string_h" = xyes; then :
4259   cat >>confdefs.h <<_ACEOF
4260 #define HAVE_STRING_H 1
4261 _ACEOF
4262
4263 fi
4264
4265 done
4266
4267
4268
4269 # Add configure option --enable-maintainer-mode which enables
4270 # dependency checking and generation useful to package maintainers.
4271 # This is made an option to avoid confusing end users.
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4274 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4275     # Check whether --enable-maintainer-mode was given.
4276 if test "${enable_maintainer_mode+set}" = set; then :
4277   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4278 else
4279   USE_MAINTAINER_MODE=no
4280 fi
4281
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4283 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4284    if test $USE_MAINTAINER_MODE = yes; then
4285   MAINTAINER_MODE_TRUE=
4286   MAINTAINER_MODE_FALSE='#'
4287 else
4288   MAINTAINER_MODE_TRUE='#'
4289   MAINTAINER_MODE_FALSE=
4290 fi
4291
4292   MAINT=$MAINTAINER_MODE_TRUE
4293
4294
4295
4296 # Check for programs
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302 if test -n "$ac_tool_prefix"; then
4303   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_CC+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   if test -n "$CC"; then
4311   ac_cv_prog_CC="$CC" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316   IFS=$as_save_IFS
4317   test -z "$as_dir" && as_dir=.
4318     for ac_exec_ext in '' $ac_executable_extensions; do
4319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322     break 2
4323   fi
4324 done
4325   done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 CC=$ac_cv_prog_CC
4331 if test -n "$CC"; then
4332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4333 $as_echo "$CC" >&6; }
4334 else
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339
4340 fi
4341 if test -z "$ac_cv_prog_CC"; then
4342   ac_ct_CC=$CC
4343   # Extract the first word of "gcc", so it can be a program name with args.
4344 set dummy gcc; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4348   $as_echo_n "(cached) " >&6
4349 else
4350   if test -n "$ac_ct_CC"; then
4351   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356   IFS=$as_save_IFS
4357   test -z "$as_dir" && as_dir=.
4358     for ac_exec_ext in '' $ac_executable_extensions; do
4359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360     ac_cv_prog_ac_ct_CC="gcc"
4361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362     break 2
4363   fi
4364 done
4365   done
4366 IFS=$as_save_IFS
4367
4368 fi
4369 fi
4370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4371 if test -n "$ac_ct_CC"; then
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4373 $as_echo "$ac_ct_CC" >&6; }
4374 else
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4377 fi
4378
4379   if test "x$ac_ct_CC" = x; then
4380     CC=""
4381   else
4382     case $cross_compiling:$ac_tool_warned in
4383 yes:)
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386 ac_tool_warned=yes ;;
4387 esac
4388     CC=$ac_ct_CC
4389   fi
4390 else
4391   CC="$ac_cv_prog_CC"
4392 fi
4393
4394 if test -z "$CC"; then
4395           if test -n "$ac_tool_prefix"; then
4396     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4397 set dummy ${ac_tool_prefix}cc; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if ${ac_cv_prog_CC+:} false; then :
4401   $as_echo_n "(cached) " >&6
4402 else
4403   if test -n "$CC"; then
4404   ac_cv_prog_CC="$CC" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411     for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_prog_CC="${ac_tool_prefix}cc"
4414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418   done
4419 IFS=$as_save_IFS
4420
4421 fi
4422 fi
4423 CC=$ac_cv_prog_CC
4424 if test -n "$CC"; then
4425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4426 $as_echo "$CC" >&6; }
4427 else
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4430 fi
4431
4432
4433   fi
4434 fi
4435 if test -z "$CC"; then
4436   # Extract the first word of "cc", so it can be a program name with args.
4437 set dummy cc; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_prog_CC+:} false; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   if test -n "$CC"; then
4444   ac_cv_prog_CC="$CC" # Let the user override the test.
4445 else
4446   ac_prog_rejected=no
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450   IFS=$as_save_IFS
4451   test -z "$as_dir" && as_dir=.
4452     for ac_exec_ext in '' $ac_executable_extensions; do
4453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4455        ac_prog_rejected=yes
4456        continue
4457      fi
4458     ac_cv_prog_CC="cc"
4459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463   done
4464 IFS=$as_save_IFS
4465
4466 if test $ac_prog_rejected = yes; then
4467   # We found a bogon in the path, so make sure we never use it.
4468   set dummy $ac_cv_prog_CC
4469   shift
4470   if test $# != 0; then
4471     # We chose a different compiler from the bogus one.
4472     # However, it has the same basename, so the bogon will be chosen
4473     # first if we set CC to just the basename; use the full file name.
4474     shift
4475     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4476   fi
4477 fi
4478 fi
4479 fi
4480 CC=$ac_cv_prog_CC
4481 if test -n "$CC"; then
4482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4483 $as_echo "$CC" >&6; }
4484 else
4485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4487 fi
4488
4489
4490 fi
4491 if test -z "$CC"; then
4492   if test -n "$ac_tool_prefix"; then
4493   for ac_prog in cl.exe
4494   do
4495     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_CC+:} false; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   if test -n "$CC"; then
4503   ac_cv_prog_CC="$CC" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510     for ac_exec_ext in '' $ac_executable_extensions; do
4511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514     break 2
4515   fi
4516 done
4517   done
4518 IFS=$as_save_IFS
4519
4520 fi
4521 fi
4522 CC=$ac_cv_prog_CC
4523 if test -n "$CC"; then
4524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4525 $as_echo "$CC" >&6; }
4526 else
4527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4529 fi
4530
4531
4532     test -n "$CC" && break
4533   done
4534 fi
4535 if test -z "$CC"; then
4536   ac_ct_CC=$CC
4537   for ac_prog in cl.exe
4538 do
4539   # Extract the first word of "$ac_prog", so it can be a program name with args.
4540 set dummy $ac_prog; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4544   $as_echo_n "(cached) " >&6
4545 else
4546   if test -n "$ac_ct_CC"; then
4547   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554     for ac_exec_ext in '' $ac_executable_extensions; do
4555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556     ac_cv_prog_ac_ct_CC="$ac_prog"
4557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561   done
4562 IFS=$as_save_IFS
4563
4564 fi
4565 fi
4566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4567 if test -n "$ac_ct_CC"; then
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4569 $as_echo "$ac_ct_CC" >&6; }
4570 else
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574
4575
4576   test -n "$ac_ct_CC" && break
4577 done
4578
4579   if test "x$ac_ct_CC" = x; then
4580     CC=""
4581   else
4582     case $cross_compiling:$ac_tool_warned in
4583 yes:)
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586 ac_tool_warned=yes ;;
4587 esac
4588     CC=$ac_ct_CC
4589   fi
4590 fi
4591
4592 fi
4593
4594
4595 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4597 as_fn_error $? "no acceptable C compiler found in \$PATH
4598 See \`config.log' for more details" "$LINENO" 5; }
4599
4600 # Provide some information about the compiler.
4601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4602 set X $ac_compile
4603 ac_compiler=$2
4604 for ac_option in --version -v -V -qversion; do
4605   { { ac_try="$ac_compiler $ac_option >&5"
4606 case "(($ac_try" in
4607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608   *) ac_try_echo=$ac_try;;
4609 esac
4610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611 $as_echo "$ac_try_echo"; } >&5
4612   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4613   ac_status=$?
4614   if test -s conftest.err; then
4615     sed '10a\
4616 ... rest of stderr output deleted ...
4617          10q' conftest.err >conftest.er1
4618     cat conftest.er1 >&5
4619   fi
4620   rm -f conftest.er1 conftest.err
4621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622   test $ac_status = 0; }
4623 done
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4626 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4627 if ${ac_cv_c_compiler_gnu+:} false; then :
4628   $as_echo_n "(cached) " >&6
4629 else
4630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h.  */
4632
4633 int
4634 main ()
4635 {
4636 #ifndef __GNUC__
4637        choke me
4638 #endif
4639
4640   ;
4641   return 0;
4642 }
4643 _ACEOF
4644 if ac_fn_c_try_compile "$LINENO"; then :
4645   ac_compiler_gnu=yes
4646 else
4647   ac_compiler_gnu=no
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4651
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4654 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4655 if test $ac_compiler_gnu = yes; then
4656   GCC=yes
4657 else
4658   GCC=
4659 fi
4660 ac_test_CFLAGS=${CFLAGS+set}
4661 ac_save_CFLAGS=$CFLAGS
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4663 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4664 if ${ac_cv_prog_cc_g+:} false; then :
4665   $as_echo_n "(cached) " >&6
4666 else
4667   ac_save_c_werror_flag=$ac_c_werror_flag
4668    ac_c_werror_flag=yes
4669    ac_cv_prog_cc_g=no
4670    CFLAGS="-g"
4671    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683   ac_cv_prog_cc_g=yes
4684 else
4685   CFLAGS=""
4686       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h.  */
4688
4689 int
4690 main ()
4691 {
4692
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 if ac_fn_c_try_compile "$LINENO"; then :
4698
4699 else
4700   ac_c_werror_flag=$ac_save_c_werror_flag
4701          CFLAGS="-g"
4702          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h.  */
4704
4705 int
4706 main ()
4707 {
4708
4709   ;
4710   return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714   ac_cv_prog_cc_g=yes
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 fi
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721    ac_c_werror_flag=$ac_save_c_werror_flag
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4724 $as_echo "$ac_cv_prog_cc_g" >&6; }
4725 if test "$ac_test_CFLAGS" = set; then
4726   CFLAGS=$ac_save_CFLAGS
4727 elif test $ac_cv_prog_cc_g = yes; then
4728   if test "$GCC" = yes; then
4729     CFLAGS="-g -O2"
4730   else
4731     CFLAGS="-g"
4732   fi
4733 else
4734   if test "$GCC" = yes; then
4735     CFLAGS="-O2"
4736   else
4737     CFLAGS=
4738   fi
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4741 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4742 if ${ac_cv_prog_cc_c89+:} false; then :
4743   $as_echo_n "(cached) " >&6
4744 else
4745   ac_cv_prog_cc_c89=no
4746 ac_save_CC=$CC
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h.  */
4749 #include <stdarg.h>
4750 #include <stdio.h>
4751 #include <sys/types.h>
4752 #include <sys/stat.h>
4753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4754 struct buf { int x; };
4755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4756 static char *e (p, i)
4757      char **p;
4758      int i;
4759 {
4760   return p[i];
4761 }
4762 static char *f (char * (*g) (char **, int), char **p, ...)
4763 {
4764   char *s;
4765   va_list v;
4766   va_start (v,p);
4767   s = g (p, va_arg (v,int));
4768   va_end (v);
4769   return s;
4770 }
4771
4772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4773    function prototypes and stuff, but not '\xHH' hex character constants.
4774    These don't provoke an error unfortunately, instead are silently treated
4775    as 'x'.  The following induces an error, until -std is added to get
4776    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4777    array size at least.  It's necessary to write '\x00'==0 to get something
4778    that's true only with -std.  */
4779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4780
4781 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4782    inside strings and character constants.  */
4783 #define FOO(x) 'x'
4784 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4785
4786 int test (int i, double x);
4787 struct s1 {int (*f) (int a);};
4788 struct s2 {int (*f) (double a);};
4789 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4790 int argc;
4791 char **argv;
4792 int
4793 main ()
4794 {
4795 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4796   ;
4797   return 0;
4798 }
4799 _ACEOF
4800 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4801         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4802 do
4803   CC="$ac_save_CC $ac_arg"
4804   if ac_fn_c_try_compile "$LINENO"; then :
4805   ac_cv_prog_cc_c89=$ac_arg
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext
4808   test "x$ac_cv_prog_cc_c89" != "xno" && break
4809 done
4810 rm -f conftest.$ac_ext
4811 CC=$ac_save_CC
4812
4813 fi
4814 # AC_CACHE_VAL
4815 case "x$ac_cv_prog_cc_c89" in
4816   x)
4817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4818 $as_echo "none needed" >&6; } ;;
4819   xno)
4820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4821 $as_echo "unsupported" >&6; } ;;
4822   *)
4823     CC="$CC $ac_cv_prog_cc_c89"
4824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4825 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4826 esac
4827 if test "x$ac_cv_prog_cc_c89" != xno; then :
4828
4829 fi
4830
4831 ac_ext=c
4832 ac_cpp='$CPP $CPPFLAGS'
4833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836
4837 depcc="$CC"   am_compiler_list=
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4840 $as_echo_n "checking dependency style of $depcc... " >&6; }
4841 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845   # We make a subdir and do the tests there.  Otherwise we can end up
4846   # making bogus files that we don't know about and never remove.  For
4847   # instance it was reported that on HP-UX the gcc test will end up
4848   # making a dummy file named `D' -- because `-MD' means `put the output
4849   # in D'.
4850   mkdir conftest.dir
4851   # Copy depcomp to subdir because otherwise we won't find it if we're
4852   # using a relative directory.
4853   cp "$am_depcomp" conftest.dir
4854   cd conftest.dir
4855   # We will build objects and dependencies in a subdirectory because
4856   # it helps to detect inapplicable dependency modes.  For instance
4857   # both Tru64's cc and ICC support -MD to output dependencies as a
4858   # side effect of compilation, but ICC will put the dependencies in
4859   # the current directory while Tru64 will put them in the object
4860   # directory.
4861   mkdir sub
4862
4863   am_cv_CC_dependencies_compiler_type=none
4864   if test "$am_compiler_list" = ""; then
4865      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4866   fi
4867   am__universal=false
4868   case " $depcc " in #(
4869      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4870      esac
4871
4872   for depmode in $am_compiler_list; do
4873     # Setup a source with many dependencies, because some compilers
4874     # like to wrap large dependency lists on column 80 (with \), and
4875     # we should not choose a depcomp mode which is confused by this.
4876     #
4877     # We need to recreate these files for each test, as the compiler may
4878     # overwrite some of them when testing with obscure command lines.
4879     # This happens at least with the AIX C compiler.
4880     : > sub/conftest.c
4881     for i in 1 2 3 4 5 6; do
4882       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4883       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4884       # Solaris 8's {/usr,}/bin/sh.
4885       touch sub/conftst$i.h
4886     done
4887     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4888
4889     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4890     # mode.  It turns out that the SunPro C++ compiler does not properly
4891     # handle `-M -o', and we need to detect this.  Also, some Intel
4892     # versions had trouble with output in subdirs
4893     am__obj=sub/conftest.${OBJEXT-o}
4894     am__minus_obj="-o $am__obj"
4895     case $depmode in
4896     gcc)
4897       # This depmode causes a compiler race in universal mode.
4898       test "$am__universal" = false || continue
4899       ;;
4900     nosideeffect)
4901       # after this tag, mechanisms are not by side-effect, so they'll
4902       # only be used when explicitly requested
4903       if test "x$enable_dependency_tracking" = xyes; then
4904         continue
4905       else
4906         break
4907       fi
4908       ;;
4909     msvisualcpp | msvcmsys)
4910       # This compiler won't grok `-c -o', but also, the minuso test has
4911       # not run yet.  These depmodes are late enough in the game, and
4912       # so weak that their functioning should not be impacted.
4913       am__obj=conftest.${OBJEXT-o}
4914       am__minus_obj=
4915       ;;
4916     none) break ;;
4917     esac
4918     if depmode=$depmode \
4919        source=sub/conftest.c object=$am__obj \
4920        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4921        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4922          >/dev/null 2>conftest.err &&
4923        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4924        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4925        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4926        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4927       # icc doesn't choke on unknown options, it will just issue warnings
4928       # or remarks (even with -Werror).  So we grep stderr for any message
4929       # that says an option was ignored or not supported.
4930       # When given -MP, icc 7.0 and 7.1 complain thusly:
4931       #   icc: Command line warning: ignoring option '-M'; no argument required
4932       # The diagnosis changed in icc 8.0:
4933       #   icc: Command line remark: option '-MP' not supported
4934       if (grep 'ignoring option' conftest.err ||
4935           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4936         am_cv_CC_dependencies_compiler_type=$depmode
4937         break
4938       fi
4939     fi
4940   done
4941
4942   cd ..
4943   rm -rf conftest.dir
4944 else
4945   am_cv_CC_dependencies_compiler_type=none
4946 fi
4947
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4950 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4951 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4952
4953  if
4954   test "x$enable_dependency_tracking" != xno \
4955   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4956   am__fastdepCC_TRUE=
4957   am__fastdepCC_FALSE='#'
4958 else
4959   am__fastdepCC_TRUE='#'
4960   am__fastdepCC_FALSE=
4961 fi
4962
4963
4964    case $ac_cv_prog_cc_stdc in #(
4965   no) :
4966     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4967   *) :
4968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4969 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4970 if ${ac_cv_prog_cc_c99+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973   ac_cv_prog_cc_c99=no
4974 ac_save_CC=$CC
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977 #include <stdarg.h>
4978 #include <stdbool.h>
4979 #include <stdlib.h>
4980 #include <wchar.h>
4981 #include <stdio.h>
4982
4983 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4984 #define debug(...) fprintf (stderr, __VA_ARGS__)
4985 #define showlist(...) puts (#__VA_ARGS__)
4986 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4987 static void
4988 test_varargs_macros (void)
4989 {
4990   int x = 1234;
4991   int y = 5678;
4992   debug ("Flag");
4993   debug ("X = %d\n", x);
4994   showlist (The first, second, and third items.);
4995   report (x>y, "x is %d but y is %d", x, y);
4996 }
4997
4998 // Check long long types.
4999 #define BIG64 18446744073709551615ull
5000 #define BIG32 4294967295ul
5001 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5002 #if !BIG_OK
5003   your preprocessor is broken;
5004 #endif
5005 #if BIG_OK
5006 #else
5007   your preprocessor is broken;
5008 #endif
5009 static long long int bignum = -9223372036854775807LL;
5010 static unsigned long long int ubignum = BIG64;
5011
5012 struct incomplete_array
5013 {
5014   int datasize;
5015   double data[];
5016 };
5017
5018 struct named_init {
5019   int number;
5020   const wchar_t *name;
5021   double average;
5022 };
5023
5024 typedef const char *ccp;
5025
5026 static inline int
5027 test_restrict (ccp restrict text)
5028 {
5029   // See if C++-style comments work.
5030   // Iterate through items via the restricted pointer.
5031   // Also check for declarations in for loops.
5032   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5033     continue;
5034   return 0;
5035 }
5036
5037 // Check varargs and va_copy.
5038 static void
5039 test_varargs (const char *format, ...)
5040 {
5041   va_list args;
5042   va_start (args, format);
5043   va_list args_copy;
5044   va_copy (args_copy, args);
5045
5046   const char *str;
5047   int number;
5048   float fnumber;
5049
5050   while (*format)
5051     {
5052       switch (*format++)
5053         {
5054         case 's': // string
5055           str = va_arg (args_copy, const char *);
5056           break;
5057         case 'd': // int
5058           number = va_arg (args_copy, int);
5059           break;
5060         case 'f': // float
5061           fnumber = va_arg (args_copy, double);
5062           break;
5063         default:
5064           break;
5065         }
5066     }
5067   va_end (args_copy);
5068   va_end (args);
5069 }
5070
5071 int
5072 main ()
5073 {
5074
5075   // Check bool.
5076   _Bool success = false;
5077
5078   // Check restrict.
5079   if (test_restrict ("String literal") == 0)
5080     success = true;
5081   char *restrict newvar = "Another string";
5082
5083   // Check varargs.
5084   test_varargs ("s, d' f .", "string", 65, 34.234);
5085   test_varargs_macros ();
5086
5087   // Check flexible array members.
5088   struct incomplete_array *ia =
5089     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5090   ia->datasize = 10;
5091   for (int i = 0; i < ia->datasize; ++i)
5092     ia->data[i] = i * 1.234;
5093
5094   // Check named initializers.
5095   struct named_init ni = {
5096     .number = 34,
5097     .name = L"Test wide string",
5098     .average = 543.34343,
5099   };
5100
5101   ni.number = 58;
5102
5103   int dynamic_array[ni.number];
5104   dynamic_array[ni.number - 1] = 543;
5105
5106   // work around unused variable warnings
5107   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5108           || dynamic_array[ni.number - 1] != 543);
5109
5110   ;
5111   return 0;
5112 }
5113 _ACEOF
5114 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5115 do
5116   CC="$ac_save_CC $ac_arg"
5117   if ac_fn_c_try_compile "$LINENO"; then :
5118   ac_cv_prog_cc_c99=$ac_arg
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext
5121   test "x$ac_cv_prog_cc_c99" != "xno" && break
5122 done
5123 rm -f conftest.$ac_ext
5124 CC=$ac_save_CC
5125
5126 fi
5127 # AC_CACHE_VAL
5128 case "x$ac_cv_prog_cc_c99" in
5129   x)
5130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5131 $as_echo "none needed" >&6; } ;;
5132   xno)
5133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5134 $as_echo "unsupported" >&6; } ;;
5135   *)
5136     CC="$CC $ac_cv_prog_cc_c99"
5137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5138 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5139 esac
5140 if test "x$ac_cv_prog_cc_c99" != xno; then :
5141   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5142 else
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5145 if ${ac_cv_prog_cc_c89+:} false; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   ac_cv_prog_cc_c89=no
5149 ac_save_CC=$CC
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h.  */
5152 #include <stdarg.h>
5153 #include <stdio.h>
5154 #include <sys/types.h>
5155 #include <sys/stat.h>
5156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5157 struct buf { int x; };
5158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5159 static char *e (p, i)
5160      char **p;
5161      int i;
5162 {
5163   return p[i];
5164 }
5165 static char *f (char * (*g) (char **, int), char **p, ...)
5166 {
5167   char *s;
5168   va_list v;
5169   va_start (v,p);
5170   s = g (p, va_arg (v,int));
5171   va_end (v);
5172   return s;
5173 }
5174
5175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5176    function prototypes and stuff, but not '\xHH' hex character constants.
5177    These don't provoke an error unfortunately, instead are silently treated
5178    as 'x'.  The following induces an error, until -std is added to get
5179    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5180    array size at least.  It's necessary to write '\x00'==0 to get something
5181    that's true only with -std.  */
5182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5183
5184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5185    inside strings and character constants.  */
5186 #define FOO(x) 'x'
5187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5188
5189 int test (int i, double x);
5190 struct s1 {int (*f) (int a);};
5191 struct s2 {int (*f) (double a);};
5192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5193 int argc;
5194 char **argv;
5195 int
5196 main ()
5197 {
5198 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5199   ;
5200   return 0;
5201 }
5202 _ACEOF
5203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5204         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5205 do
5206   CC="$ac_save_CC $ac_arg"
5207   if ac_fn_c_try_compile "$LINENO"; then :
5208   ac_cv_prog_cc_c89=$ac_arg
5209 fi
5210 rm -f core conftest.err conftest.$ac_objext
5211   test "x$ac_cv_prog_cc_c89" != "xno" && break
5212 done
5213 rm -f conftest.$ac_ext
5214 CC=$ac_save_CC
5215
5216 fi
5217 # AC_CACHE_VAL
5218 case "x$ac_cv_prog_cc_c89" in
5219   x)
5220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5221 $as_echo "none needed" >&6; } ;;
5222   xno)
5223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5224 $as_echo "unsupported" >&6; } ;;
5225   *)
5226     CC="$CC $ac_cv_prog_cc_c89"
5227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5229 esac
5230 if test "x$ac_cv_prog_cc_c89" != xno; then :
5231   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5232 else
5233   ac_cv_prog_cc_stdc=no
5234 fi
5235
5236 fi
5237  ;;
5238 esac
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5240 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5241   if ${ac_cv_prog_cc_stdc+:} false; then :
5242   $as_echo_n "(cached) " >&6
5243 fi
5244
5245   case $ac_cv_prog_cc_stdc in #(
5246   no) :
5247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5248 $as_echo "unsupported" >&6; } ;; #(
5249   '') :
5250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5251 $as_echo "none needed" >&6; } ;; #(
5252   *) :
5253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5254 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5255 esac
5256
5257 ac_ext=c
5258 ac_cpp='$CPP $CPPFLAGS'
5259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5263 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5264 # On Suns, sometimes $CPP names a directory.
5265 if test -n "$CPP" && test -d "$CPP"; then
5266   CPP=
5267 fi
5268 if test -z "$CPP"; then
5269   if ${ac_cv_prog_CPP+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272       # Double quotes because CPP needs to be expanded
5273     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5274     do
5275       ac_preproc_ok=false
5276 for ac_c_preproc_warn_flag in '' yes
5277 do
5278   # Use a header file that comes with gcc, so configuring glibc
5279   # with a fresh cross-compiler works.
5280   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5281   # <limits.h> exists even on freestanding compilers.
5282   # On the NeXT, cc -E runs the code through the compiler's parser,
5283   # not just through cpp. "Syntax error" is here to catch this case.
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 #ifdef __STDC__
5287 # include <limits.h>
5288 #else
5289 # include <assert.h>
5290 #endif
5291                      Syntax error
5292 _ACEOF
5293 if ac_fn_c_try_cpp "$LINENO"; then :
5294
5295 else
5296   # Broken: fails on valid input.
5297 continue
5298 fi
5299 rm -f conftest.err conftest.i conftest.$ac_ext
5300
5301   # OK, works on sane cases.  Now check whether nonexistent headers
5302   # can be detected and how.
5303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h.  */
5305 #include <ac_nonexistent.h>
5306 _ACEOF
5307 if ac_fn_c_try_cpp "$LINENO"; then :
5308   # Broken: success on invalid input.
5309 continue
5310 else
5311   # Passes both tests.
5312 ac_preproc_ok=:
5313 break
5314 fi
5315 rm -f conftest.err conftest.i conftest.$ac_ext
5316
5317 done
5318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5319 rm -f conftest.i conftest.err conftest.$ac_ext
5320 if $ac_preproc_ok; then :
5321   break
5322 fi
5323
5324     done
5325     ac_cv_prog_CPP=$CPP
5326
5327 fi
5328   CPP=$ac_cv_prog_CPP
5329 else
5330   ac_cv_prog_CPP=$CPP
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5333 $as_echo "$CPP" >&6; }
5334 ac_preproc_ok=false
5335 for ac_c_preproc_warn_flag in '' yes
5336 do
5337   # Use a header file that comes with gcc, so configuring glibc
5338   # with a fresh cross-compiler works.
5339   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340   # <limits.h> exists even on freestanding compilers.
5341   # On the NeXT, cc -E runs the code through the compiler's parser,
5342   # not just through cpp. "Syntax error" is here to catch this case.
5343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h.  */
5345 #ifdef __STDC__
5346 # include <limits.h>
5347 #else
5348 # include <assert.h>
5349 #endif
5350                      Syntax error
5351 _ACEOF
5352 if ac_fn_c_try_cpp "$LINENO"; then :
5353
5354 else
5355   # Broken: fails on valid input.
5356 continue
5357 fi
5358 rm -f conftest.err conftest.i conftest.$ac_ext
5359
5360   # OK, works on sane cases.  Now check whether nonexistent headers
5361   # can be detected and how.
5362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h.  */
5364 #include <ac_nonexistent.h>
5365 _ACEOF
5366 if ac_fn_c_try_cpp "$LINENO"; then :
5367   # Broken: success on invalid input.
5368 continue
5369 else
5370   # Passes both tests.
5371 ac_preproc_ok=:
5372 break
5373 fi
5374 rm -f conftest.err conftest.i conftest.$ac_ext
5375
5376 done
5377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5378 rm -f conftest.i conftest.err conftest.$ac_ext
5379 if $ac_preproc_ok; then :
5380
5381 else
5382   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5384 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5385 See \`config.log' for more details" "$LINENO" 5; }
5386 fi
5387
5388 ac_ext=c
5389 ac_cpp='$CPP $CPPFLAGS'
5390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5393
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5396 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5397 set x ${MAKE-make}
5398 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5399 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   cat >conftest.make <<\_ACEOF
5403 SHELL = /bin/sh
5404 all:
5405         @echo '@@@%%%=$(MAKE)=@@@%%%'
5406 _ACEOF
5407 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5408 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5409   *@@@%%%=?*=@@@%%%*)
5410     eval ac_cv_prog_make_${ac_make}_set=yes;;
5411   *)
5412     eval ac_cv_prog_make_${ac_make}_set=no;;
5413 esac
5414 rm -f conftest.make
5415 fi
5416 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418 $as_echo "yes" >&6; }
5419   SET_MAKE=
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423   SET_MAKE="MAKE=${MAKE-make}"
5424 fi
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5427 $as_echo_n "checking whether ln -s works... " >&6; }
5428 LN_S=$as_ln_s
5429 if test "$LN_S" = "ln -s"; then
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5431 $as_echo "yes" >&6; }
5432 else
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5434 $as_echo "no, using $LN_S" >&6; }
5435 fi
5436
5437
5438 # Check if LD supports linker scripts,
5439 # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
5440 # Check whether --enable-ld-version-script was given.
5441 if test "${enable_ld_version_script+set}" = set; then :
5442   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
5443 fi
5444
5445 if test -z "$have_ld_version_script"; then
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
5447 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
5448   save_LDFLAGS="$LDFLAGS"
5449   LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
5450   cat > conftest.map <<EOF
5451 VERS_1 {
5452         global: sym;
5453 };
5454
5455 VERS_2 {
5456         global: sym;
5457 } VERS_1;
5458 EOF
5459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h.  */
5461
5462 int
5463 main ()
5464 {
5465
5466   ;
5467   return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_link "$LINENO"; then :
5471   have_ld_version_script=yes
5472 else
5473   have_ld_version_script=no
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext \
5476     conftest$ac_exeext conftest.$ac_ext
5477   rm -f conftest.map
5478   LDFLAGS="$save_LDFLAGS"
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
5480 $as_echo "$have_ld_version_script" >&6; }
5481 fi
5482  if test "$have_ld_version_script" = "yes"; then
5483   HAVE_LD_VERSION_SCRIPT_TRUE=
5484   HAVE_LD_VERSION_SCRIPT_FALSE='#'
5485 else
5486   HAVE_LD_VERSION_SCRIPT_TRUE='#'
5487   HAVE_LD_VERSION_SCRIPT_FALSE=
5488 fi
5489
5490
5491 # See if compiler supports prototypes.
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5493 $as_echo_n "checking for function prototypes... " >&6; }
5494 if ${ijg_cv_have_prototypes+:} false; then :
5495   $as_echo_n "(cached) " >&6
5496 else
5497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h.  */
5499
5500 int testfunction (int arg1, int * arg2); /* check prototypes */
5501 struct methods_struct {         /* check method-pointer declarations */
5502   int (*error_exit) (char *msgtext);
5503   int (*trace_message) (char *msgtext);
5504   int (*another_method) (void);
5505 };
5506 int testfunction (int arg1, int * arg2) /* check definitions */
5507 { return arg2[arg1]; }
5508 int test2function (void)        /* check void arg list */
5509 { return 0; }
5510
5511 int
5512 main ()
5513 {
5514
5515   ;
5516   return 0;
5517 }
5518 _ACEOF
5519 if ac_fn_c_try_compile "$LINENO"; then :
5520   ijg_cv_have_prototypes=yes
5521 else
5522   ijg_cv_have_prototypes=no
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 fi
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
5528 $as_echo "$ijg_cv_have_prototypes" >&6; }
5529 if test $ijg_cv_have_prototypes = yes; then
5530
5531 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
5532
5533 else
5534   echo Your compiler does not seem to know about function prototypes.
5535   echo Perhaps it needs a special switch to enable ANSI C mode.
5536   echo If so, we recommend running configure like this:
5537   echo "   ./configure  CC='cc -switch'"
5538   echo where -switch is the proper switch.
5539 fi
5540
5541 # Check header files
5542 for ac_header in stddef.h stdlib.h locale.h
5543 do :
5544   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5546 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5547   cat >>confdefs.h <<_ACEOF
5548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5549 _ACEOF
5550
5551 fi
5552
5553 done
5554
5555 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5556 if test "x$ac_cv_header_string_h" = xyes; then :
5557
5558 else
5559
5560 $as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
5561
5562 fi
5563
5564
5565
5566 # See whether type size_t is defined in any ANSI-standard places;
5567 # if not, perhaps it is defined in <sys/types.h>.
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
5569 $as_echo_n "checking for size_t... " >&6; }
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h.  */
5572
5573 #ifdef HAVE_STDDEF_H
5574 #include <stddef.h>
5575 #endif
5576 #ifdef HAVE_STDLIB_H
5577 #include <stdlib.h>
5578 #endif
5579 #include <stdio.h>
5580 #ifdef NEED_BSD_STRINGS
5581 #include <strings.h>
5582 #else
5583 #include <string.h>
5584 #endif
5585 typedef size_t my_size_t;
5586
5587 int
5588 main ()
5589 {
5590  my_size_t foovar;
5591   ;
5592   return 0;
5593 }
5594 _ACEOF
5595 if ac_fn_c_try_compile "$LINENO"; then :
5596   ijg_size_t_ok=yes
5597 else
5598   ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
5599 fi
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5602 $as_echo "$ijg_size_t_ok" >&6; }
5603 if test "$ijg_size_t_ok" != yes; then
5604 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5605 if test "x$ac_cv_header_sys_types_h" = xyes; then :
5606
5607 $as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h
5608
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h.  */
5611 #include <sys/types.h>
5612 _ACEOF
5613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5614   $EGREP "size_t" >/dev/null 2>&1; then :
5615   ijg_size_t_ok="size_t is in sys/types.h"
5616 else
5617   ijg_size_t_ok=no
5618 fi
5619 rm -f conftest*
5620
5621 else
5622   ijg_size_t_ok=no
5623 fi
5624
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5627 $as_echo "$ijg_size_t_ok" >&6; }
5628 if test "$ijg_size_t_ok" = no; then
5629   echo Type size_t is not defined in any of the usual places.
5630   echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.
5631 fi
5632 fi
5633
5634 # Check compiler characteristics
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
5636 $as_echo_n "checking for type unsigned char... " >&6; }
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h.  */
5639
5640 int
5641 main ()
5642 {
5643  unsigned char un_char;
5644   ;
5645   return 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 $as_echo "yes" >&6; }
5651
5652 $as_echo "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
5653
5654 else
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
5660 $as_echo_n "checking for type unsigned short... " >&6; }
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h.  */
5663
5664 int
5665 main ()
5666 {
5667  unsigned short un_short;
5668   ;
5669   return 0;
5670 }
5671 _ACEOF
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5674 $as_echo "yes" >&6; }
5675
5676 $as_echo "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
5677
5678 else
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
5684 $as_echo_n "checking for type void... " >&6; }
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h.  */
5687
5688 /* Caution: a C++ compiler will insist on valid prototypes */
5689 typedef void * void_ptr;        /* check void * */
5690 #ifdef HAVE_PROTOTYPES          /* check ptr to function returning void */
5691 typedef void (*void_func) (int a, int b);
5692 #else
5693 typedef void (*void_func) ();
5694 #endif
5695
5696 #ifdef HAVE_PROTOTYPES          /* check void function result */
5697 void test3function (void_ptr arg1, void_func arg2)
5698 #else
5699 void test3function (arg1, arg2)
5700      void_ptr arg1;
5701      void_func arg2;
5702 #endif
5703 {
5704   char * locptr = (char *) arg1; /* check casting to and from void * */
5705   arg1 = (void *) locptr;
5706   (*arg2) (1, 2);               /* check call of fcn returning void */
5707 }
5708
5709 int
5710 main ()
5711 {
5712
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5719 $as_echo "yes" >&6; }
5720 else
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5723
5724 $as_echo "#define void char" >>confdefs.h
5725
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5729 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5730 if ${ac_cv_c_const+:} false; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h.  */
5735
5736 int
5737 main ()
5738 {
5739 /* FIXME: Include the comments suggested by Paul. */
5740 #ifndef __cplusplus
5741   /* Ultrix mips cc rejects this.  */
5742   typedef int charset[2];
5743   const charset cs;
5744   /* SunOS 4.1.1 cc rejects this.  */
5745   char const *const *pcpcc;
5746   char **ppc;
5747   /* NEC SVR4.0.2 mips cc rejects this.  */
5748   struct point {int x, y;};
5749   static struct point const zero = {0,0};
5750   /* AIX XL C 1.02.0.0 rejects this.
5751      It does not let you subtract one const X* pointer from another in
5752      an arm of an if-expression whose if-part is not a constant
5753      expression */
5754   const char *g = "string";
5755   pcpcc = &g + (g ? g-g : 0);
5756   /* HPUX 7.0 cc rejects these. */
5757   ++pcpcc;
5758   ppc = (char**) pcpcc;
5759   pcpcc = (char const *const *) ppc;
5760   { /* SCO 3.2v4 cc rejects this.  */
5761     char *t;
5762     char const *s = 0 ? (char *) 0 : (char const *) 0;
5763
5764     *t++ = 0;
5765     if (s) return 0;
5766   }
5767   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5768     int x[] = {25, 17};
5769     const int *foo = &x[0];
5770     ++foo;
5771   }
5772   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5773     typedef const int *iptr;
5774     iptr p = 0;
5775     ++p;
5776   }
5777   { /* AIX XL C 1.02.0.0 rejects this saying
5778        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5779     struct s { int j; const int *ap[3]; };
5780     struct s *b; b->j = 5;
5781   }
5782   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5783     const int foo = 10;
5784     if (!foo) return 0;
5785   }
5786   return !cs[0] && !zero.x;
5787 #endif
5788
5789   ;
5790   return 0;
5791 }
5792 _ACEOF
5793 if ac_fn_c_try_compile "$LINENO"; then :
5794   ac_cv_c_const=yes
5795 else
5796   ac_cv_c_const=no
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 fi
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5801 $as_echo "$ac_cv_c_const" >&6; }
5802 if test $ac_cv_c_const = no; then
5803
5804 $as_echo "#define const /**/" >>confdefs.h
5805
5806 fi
5807
5808
5809 # Check for non-broken inline under various spellings
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5811 $as_echo_n "checking for inline... " >&6; }
5812 ijg_cv_inline=""
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h.  */
5815
5816 int
5817 main ()
5818 {
5819 } __inline__ int foo() { return 0; }
5820 int bar() { return foo();
5821   ;
5822   return 0;
5823 }
5824 _ACEOF
5825 if ac_fn_c_try_compile "$LINENO"; then :
5826   ijg_cv_inline="__inline__"
5827 else
5828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h.  */
5830
5831 int
5832 main ()
5833 {
5834 } __inline int foo() { return 0; }
5835 int bar() { return foo();
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 if ac_fn_c_try_compile "$LINENO"; then :
5841   ijg_cv_inline="__inline"
5842 else
5843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h.  */
5845
5846 int
5847 main ()
5848 {
5849 } inline int foo() { return 0; }
5850 int bar() { return foo();
5851   ;
5852   return 0;
5853 }
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856   ijg_cv_inline="inline"
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
5864 $as_echo "$ijg_cv_inline" >&6; }
5865
5866 cat >>confdefs.h <<_ACEOF
5867 #define INLINE $ijg_cv_inline
5868 _ACEOF
5869
5870
5871 # We cannot check for bogus warnings, but at least we can check for errors
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
5873 $as_echo_n "checking for broken incomplete types... " >&6; }
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h.  */
5876  typedef struct undefined_structure * undef_struct_ptr;
5877 int
5878 main ()
5879 {
5880
5881   ;
5882   return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5887 $as_echo "ok" >&6; }
5888 else
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5890 $as_echo "broken" >&6; }
5891
5892 $as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
5893
5894 fi
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896
5897 # Test whether global names are unique to at least 15 chars
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
5899 $as_echo_n "checking for short external names... " >&6; }
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h.  */
5902
5903 int possibly_duplicate_function () { return 0; }
5904 int possibly_dupli_function () { return 1; }
5905
5906 int
5907 main ()
5908 {
5909
5910   ;
5911   return 0;
5912 }
5913 _ACEOF
5914 if ac_fn_c_try_link "$LINENO"; then :
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5916 $as_echo "ok" >&6; }
5917 else
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5
5919 $as_echo "short" >&6; }
5920
5921 $as_echo "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
5922
5923 fi
5924 rm -f core conftest.err conftest.$ac_objext \
5925     conftest$ac_exeext conftest.$ac_ext
5926
5927 # Run-time checks
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
5929 $as_echo_n "checking to see if char is signed... " >&6; }
5930 if test "$cross_compiling" = yes; then :
5931   echo Assuming that char is signed on target machine.
5932 echo If it is unsigned, this will be a little bit inefficient.
5933
5934 else
5935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h.  */
5937
5938 #ifdef HAVE_PROTOTYPES
5939 int is_char_signed (int arg)
5940 #else
5941 int is_char_signed (arg)
5942      int arg;
5943 #endif
5944 {
5945   if (arg == 189) {             /* expected result for unsigned char */
5946     return 0;                   /* type char is unsigned */
5947   }
5948   else if (arg != -67) {        /* expected result for signed char */
5949     printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
5950     printf("I fear the JPEG software will not work at all.\n\n");
5951   }
5952   return 1;                     /* assume char is signed otherwise */
5953 }
5954 char signed_char_check = (char) (-67);
5955 int main() {
5956   exit(is_char_signed((int) signed_char_check));
5957 }
5958 _ACEOF
5959 if ac_fn_c_try_run "$LINENO"; then :
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5962
5963 $as_echo "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
5964
5965 else
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5967 $as_echo "yes" >&6; }
5968 fi
5969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5970   conftest.$ac_objext conftest.beam conftest.$ac_ext
5971 fi
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
5974 $as_echo_n "checking to see if right shift is signed... " >&6; }
5975 if test "$cross_compiling" = yes; then :
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
5977 $as_echo "Assuming that right shift is signed on target machine." >&6; }
5978 else
5979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h.  */
5981
5982 #ifdef HAVE_PROTOTYPES
5983 int is_shifting_signed (long arg)
5984 #else
5985 int is_shifting_signed (arg)
5986      long arg;
5987 #endif
5988 /* See whether right-shift on a long is signed or not. */
5989 {
5990   long res = arg >> 4;
5991
5992   if (res == -0x7F7E80CL) {     /* expected result for signed shift */
5993     return 1;                   /* right shift is signed */
5994   }
5995   /* see if unsigned-shift hack will fix it. */
5996   /* we can't just test exact value since it depends on width of long... */
5997   res |= (~0L) << (32-4);
5998   if (res == -0x7F7E80CL) {     /* expected result now? */
5999     return 0;                   /* right shift is unsigned */
6000   }
6001   printf("Right shift isn't acting as I expect it to.\n");
6002   printf("I fear the JPEG software will not work at all.\n\n");
6003   return 0;                     /* try it with unsigned anyway */
6004 }
6005 int main() {
6006   exit(is_shifting_signed(-0x7F7E80B1L));
6007 }
6008 _ACEOF
6009 if ac_fn_c_try_run "$LINENO"; then :
6010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 $as_echo "no" >&6; }
6012
6013 $as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
6014
6015 else
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6017 $as_echo "yes" >&6; }
6018 fi
6019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6020   conftest.$ac_objext conftest.beam conftest.$ac_ext
6021 fi
6022
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
6024 $as_echo_n "checking to see if fopen accepts b spec... " >&6; }
6025 if test "$cross_compiling" = yes; then :
6026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
6027 $as_echo "Assuming that it does." >&6; }
6028 else
6029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h.  */
6031
6032 #include <stdio.h>
6033 int main() {
6034   if (fopen("conftestdata", "wb") != NULL)
6035     exit(0);
6036   exit(1);
6037 }
6038 _ACEOF
6039 if ac_fn_c_try_run "$LINENO"; then :
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6041 $as_echo "yes" >&6; }
6042 else
6043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045
6046 $as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h
6047
6048 fi
6049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6050   conftest.$ac_objext conftest.beam conftest.$ac_ext
6051 fi
6052
6053
6054 # Configure libtool
6055 enable_win32_dll=yes
6056
6057 case $host in
6058 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6059   if test -n "$ac_tool_prefix"; then
6060   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6061 set dummy ${ac_tool_prefix}as; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if ${ac_cv_prog_AS+:} false; then :
6065   $as_echo_n "(cached) " >&6
6066 else
6067   if test -n "$AS"; then
6068   ac_cv_prog_AS="$AS" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073   IFS=$as_save_IFS
6074   test -z "$as_dir" && as_dir=.
6075     for ac_exec_ext in '' $ac_executable_extensions; do
6076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077     ac_cv_prog_AS="${ac_tool_prefix}as"
6078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079     break 2
6080   fi
6081 done
6082   done
6083 IFS=$as_save_IFS
6084
6085 fi
6086 fi
6087 AS=$ac_cv_prog_AS
6088 if test -n "$AS"; then
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6090 $as_echo "$AS" >&6; }
6091 else
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095
6096
6097 fi
6098 if test -z "$ac_cv_prog_AS"; then
6099   ac_ct_AS=$AS
6100   # Extract the first word of "as", so it can be a program name with args.
6101 set dummy as; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107   if test -n "$ac_ct_AS"; then
6108   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113   IFS=$as_save_IFS
6114   test -z "$as_dir" && as_dir=.
6115     for ac_exec_ext in '' $ac_executable_extensions; do
6116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117     ac_cv_prog_ac_ct_AS="as"
6118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119     break 2
6120   fi
6121 done
6122   done
6123 IFS=$as_save_IFS
6124
6125 fi
6126 fi
6127 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6128 if test -n "$ac_ct_AS"; then
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6130 $as_echo "$ac_ct_AS" >&6; }
6131 else
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6134 fi
6135
6136   if test "x$ac_ct_AS" = x; then
6137     AS="false"
6138   else
6139     case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145     AS=$ac_ct_AS
6146   fi
6147 else
6148   AS="$ac_cv_prog_AS"
6149 fi
6150
6151   if test -n "$ac_tool_prefix"; then
6152   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_DLLTOOL+:} false; then :
6157   $as_echo_n "(cached) " >&6
6158 else
6159   if test -n "$DLLTOOL"; then
6160   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
6165   IFS=$as_save_IFS
6166   test -z "$as_dir" && as_dir=.
6167     for ac_exec_ext in '' $ac_executable_extensions; do
6168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171     break 2
6172   fi
6173 done
6174   done
6175 IFS=$as_save_IFS
6176
6177 fi
6178 fi
6179 DLLTOOL=$ac_cv_prog_DLLTOOL
6180 if test -n "$DLLTOOL"; then
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6182 $as_echo "$DLLTOOL" >&6; }
6183 else
6184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6186 fi
6187
6188
6189 fi
6190 if test -z "$ac_cv_prog_DLLTOOL"; then
6191   ac_ct_DLLTOOL=$DLLTOOL
6192   # Extract the first word of "dlltool", so it can be a program name with args.
6193 set dummy dlltool; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199   if test -n "$ac_ct_DLLTOOL"; then
6200   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207     for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214   done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6220 if test -n "$ac_ct_DLLTOOL"; then
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6222 $as_echo "$ac_ct_DLLTOOL" >&6; }
6223 else
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227
6228   if test "x$ac_ct_DLLTOOL" = x; then
6229     DLLTOOL="false"
6230   else
6231     case $cross_compiling:$ac_tool_warned in
6232 yes:)
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6235 ac_tool_warned=yes ;;
6236 esac
6237     DLLTOOL=$ac_ct_DLLTOOL
6238   fi
6239 else
6240   DLLTOOL="$ac_cv_prog_DLLTOOL"
6241 fi
6242
6243   if test -n "$ac_tool_prefix"; then
6244   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_OBJDUMP+:} false; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   if test -n "$OBJDUMP"; then
6252   ac_cv_prog_OBJDUMP="$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_OBJDUMP="${ac_tool_prefix}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 OBJDUMP=$ac_cv_prog_OBJDUMP
6272 if test -n "$OBJDUMP"; then
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6274 $as_echo "$OBJDUMP" >&6; }
6275 else
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280
6281 fi
6282 if test -z "$ac_cv_prog_OBJDUMP"; then
6283   ac_ct_OBJDUMP=$OBJDUMP
6284   # Extract the first word of "objdump", so it can be a program name with args.
6285 set dummy objdump; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6289   $as_echo_n "(cached) " >&6
6290 else
6291   if test -n "$ac_ct_OBJDUMP"; then
6292   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299     for ac_exec_ext in '' $ac_executable_extensions; do
6300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303     break 2
6304   fi
6305 done
6306   done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6312 if test -n "$ac_ct_OBJDUMP"; then
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6314 $as_echo "$ac_ct_OBJDUMP" >&6; }
6315 else
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320   if test "x$ac_ct_OBJDUMP" = x; then
6321     OBJDUMP="false"
6322   else
6323     case $cross_compiling:$ac_tool_warned in
6324 yes:)
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327 ac_tool_warned=yes ;;
6328 esac
6329     OBJDUMP=$ac_ct_OBJDUMP
6330   fi
6331 else
6332   OBJDUMP="$ac_cv_prog_OBJDUMP"
6333 fi
6334
6335   ;;
6336 esac
6337
6338 test -z "$AS" && AS=as
6339
6340
6341
6342
6343
6344 test -z "$DLLTOOL" && DLLTOOL=dlltool
6345
6346
6347
6348
6349
6350 test -z "$OBJDUMP" && OBJDUMP=objdump
6351
6352
6353
6354
6355
6356
6357
6358 case `pwd` in
6359   *\ * | *\     *)
6360     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6361 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6362 esac
6363
6364
6365
6366 macro_version='2.4'
6367 macro_revision='1.3293'
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381 ltmain="$ac_aux_dir/ltmain.sh"
6382
6383 # Backslashify metacharacters that are still active within
6384 # double-quoted strings.
6385 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6386
6387 # Same as above, but do not quote variable references.
6388 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6389
6390 # Sed substitution to delay expansion of an escaped shell variable in a
6391 # double_quote_subst'ed string.
6392 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6393
6394 # Sed substitution to delay expansion of an escaped single quote.
6395 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6396
6397 # Sed substitution to avoid accidental globbing in evaled expressions
6398 no_glob_subst='s/\*/\\\*/g'
6399
6400 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6401 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6402 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6405 $as_echo_n "checking how to print strings... " >&6; }
6406 # Test print first, because it will be a builtin if present.
6407 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6408    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6409   ECHO='print -r --'
6410 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6411   ECHO='printf %s\n'
6412 else
6413   # Use this function as a fallback that always works.
6414   func_fallback_echo ()
6415   {
6416     eval 'cat <<_LTECHO_EOF
6417 $1
6418 _LTECHO_EOF'
6419   }
6420   ECHO='func_fallback_echo'
6421 fi
6422
6423 # func_echo_all arg...
6424 # Invoke $ECHO with all args, space-separated.
6425 func_echo_all ()
6426 {
6427     $ECHO ""
6428 }
6429
6430 case "$ECHO" in
6431   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6432 $as_echo "printf" >&6; } ;;
6433   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6434 $as_echo "print -r" >&6; } ;;
6435   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6436 $as_echo "cat" >&6; } ;;
6437 esac
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6453 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6454 if ${ac_cv_path_SED+:} false; then :
6455   $as_echo_n "(cached) " >&6
6456 else
6457             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6458      for ac_i in 1 2 3 4 5 6 7; do
6459        ac_script="$ac_script$as_nl$ac_script"
6460      done
6461      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6462      { ac_script=; unset ac_script;}
6463      if test -z "$SED"; then
6464   ac_path_SED_found=false
6465   # Loop through the user's path and test for each of PROGNAME-LIST
6466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471     for ac_prog in sed gsed; do
6472     for ac_exec_ext in '' $ac_executable_extensions; do
6473       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6474       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6475 # Check for GNU ac_path_SED and select it if it is found.
6476   # Check for GNU $ac_path_SED
6477 case `"$ac_path_SED" --version 2>&1` in
6478 *GNU*)
6479   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6480 *)
6481   ac_count=0
6482   $as_echo_n 0123456789 >"conftest.in"
6483   while :
6484   do
6485     cat "conftest.in" "conftest.in" >"conftest.tmp"
6486     mv "conftest.tmp" "conftest.in"
6487     cp "conftest.in" "conftest.nl"
6488     $as_echo '' >> "conftest.nl"
6489     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6490     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6491     as_fn_arith $ac_count + 1 && ac_count=$as_val
6492     if test $ac_count -gt ${ac_path_SED_max-0}; then
6493       # Best one so far, save it but keep looking for a better one
6494       ac_cv_path_SED="$ac_path_SED"
6495       ac_path_SED_max=$ac_count
6496     fi
6497     # 10*(2^10) chars as input seems more than enough
6498     test $ac_count -gt 10 && break
6499   done
6500   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6501 esac
6502
6503       $ac_path_SED_found && break 3
6504     done
6505   done
6506   done
6507 IFS=$as_save_IFS
6508   if test -z "$ac_cv_path_SED"; then
6509     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6510   fi
6511 else
6512   ac_cv_path_SED=$SED
6513 fi
6514
6515 fi
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6517 $as_echo "$ac_cv_path_SED" >&6; }
6518  SED="$ac_cv_path_SED"
6519   rm -f conftest.sed
6520
6521 test -z "$SED" && SED=sed
6522 Xsed="$SED -e 1s/^X//"
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6535 $as_echo_n "checking for fgrep... " >&6; }
6536 if ${ac_cv_path_FGREP+:} false; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6540    then ac_cv_path_FGREP="$GREP -F"
6541    else
6542      if test -z "$FGREP"; then
6543   ac_path_FGREP_found=false
6544   # Loop through the user's path and test for each of PROGNAME-LIST
6545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550     for ac_prog in fgrep; do
6551     for ac_exec_ext in '' $ac_executable_extensions; do
6552       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6553       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6554 # Check for GNU ac_path_FGREP and select it if it is found.
6555   # Check for GNU $ac_path_FGREP
6556 case `"$ac_path_FGREP" --version 2>&1` in
6557 *GNU*)
6558   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6559 *)
6560   ac_count=0
6561   $as_echo_n 0123456789 >"conftest.in"
6562   while :
6563   do
6564     cat "conftest.in" "conftest.in" >"conftest.tmp"
6565     mv "conftest.tmp" "conftest.in"
6566     cp "conftest.in" "conftest.nl"
6567     $as_echo 'FGREP' >> "conftest.nl"
6568     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6569     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6570     as_fn_arith $ac_count + 1 && ac_count=$as_val
6571     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6572       # Best one so far, save it but keep looking for a better one
6573       ac_cv_path_FGREP="$ac_path_FGREP"
6574       ac_path_FGREP_max=$ac_count
6575     fi
6576     # 10*(2^10) chars as input seems more than enough
6577     test $ac_count -gt 10 && break
6578   done
6579   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6580 esac
6581
6582       $ac_path_FGREP_found && break 3
6583     done
6584   done
6585   done
6586 IFS=$as_save_IFS
6587   if test -z "$ac_cv_path_FGREP"; then
6588     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6589   fi
6590 else
6591   ac_cv_path_FGREP=$FGREP
6592 fi
6593
6594    fi
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6597 $as_echo "$ac_cv_path_FGREP" >&6; }
6598  FGREP="$ac_cv_path_FGREP"
6599
6600
6601 test -z "$GREP" && GREP=grep
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621 # Check whether --with-gnu-ld was given.
6622 if test "${with_gnu_ld+set}" = set; then :
6623   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6624 else
6625   with_gnu_ld=no
6626 fi
6627
6628 ac_prog=ld
6629 if test "$GCC" = yes; then
6630   # Check if gcc -print-prog-name=ld gives a path.
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6632 $as_echo_n "checking for ld used by $CC... " >&6; }
6633   case $host in
6634   *-*-mingw*)
6635     # gcc leaves a trailing carriage return which upsets mingw
6636     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6637   *)
6638     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6639   esac
6640   case $ac_prog in
6641     # Accept absolute paths.
6642     [\\/]* | ?:[\\/]*)
6643       re_direlt='/[^/][^/]*/\.\./'
6644       # Canonicalize the pathname of ld
6645       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6646       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6647         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6648       done
6649       test -z "$LD" && LD="$ac_prog"
6650       ;;
6651   "")
6652     # If it fails, then pretend we aren't using GCC.
6653     ac_prog=ld
6654     ;;
6655   *)
6656     # If it is relative, then search for the first ld in PATH.
6657     with_gnu_ld=unknown
6658     ;;
6659   esac
6660 elif test "$with_gnu_ld" = yes; then
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6662 $as_echo_n "checking for GNU ld... " >&6; }
6663 else
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6665 $as_echo_n "checking for non-GNU ld... " >&6; }
6666 fi
6667 if ${lt_cv_path_LD+:} false; then :
6668   $as_echo_n "(cached) " >&6
6669 else
6670   if test -z "$LD"; then
6671   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6672   for ac_dir in $PATH; do
6673     IFS="$lt_save_ifs"
6674     test -z "$ac_dir" && ac_dir=.
6675     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6676       lt_cv_path_LD="$ac_dir/$ac_prog"
6677       # Check to see if the program is GNU ld.  I'd rather use --version,
6678       # but apparently some variants of GNU ld only accept -v.
6679       # Break only if it was the GNU/non-GNU ld that we prefer.
6680       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6681       *GNU* | *'with BFD'*)
6682         test "$with_gnu_ld" != no && break
6683         ;;
6684       *)
6685         test "$with_gnu_ld" != yes && break
6686         ;;
6687       esac
6688     fi
6689   done
6690   IFS="$lt_save_ifs"
6691 else
6692   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6693 fi
6694 fi
6695
6696 LD="$lt_cv_path_LD"
6697 if test -n "$LD"; then
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6699 $as_echo "$LD" >&6; }
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6706 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6707 if ${lt_cv_prog_gnu_ld+:} false; then :
6708   $as_echo_n "(cached) " >&6
6709 else
6710   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6711 case `$LD -v 2>&1 </dev/null` in
6712 *GNU* | *'with BFD'*)
6713   lt_cv_prog_gnu_ld=yes
6714   ;;
6715 *)
6716   lt_cv_prog_gnu_ld=no
6717   ;;
6718 esac
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6721 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6722 with_gnu_ld=$lt_cv_prog_gnu_ld
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6733 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6734 if ${lt_cv_path_NM+:} false; then :
6735   $as_echo_n "(cached) " >&6
6736 else
6737   if test -n "$NM"; then
6738   # Let the user override the test.
6739   lt_cv_path_NM="$NM"
6740 else
6741   lt_nm_to_check="${ac_tool_prefix}nm"
6742   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6743     lt_nm_to_check="$lt_nm_to_check nm"
6744   fi
6745   for lt_tmp_nm in $lt_nm_to_check; do
6746     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6747     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6748       IFS="$lt_save_ifs"
6749       test -z "$ac_dir" && ac_dir=.
6750       tmp_nm="$ac_dir/$lt_tmp_nm"
6751       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6752         # Check to see if the nm accepts a BSD-compat flag.
6753         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6754         #   nm: unknown option "B" ignored
6755         # Tru64's nm complains that /dev/null is an invalid object file
6756         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6757         */dev/null* | *'Invalid file or object type'*)
6758           lt_cv_path_NM="$tmp_nm -B"
6759           break
6760           ;;
6761         *)
6762           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6763           */dev/null*)
6764             lt_cv_path_NM="$tmp_nm -p"
6765             break
6766             ;;
6767           *)
6768             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6769             continue # so that we can try to find one that supports BSD flags
6770             ;;
6771           esac
6772           ;;
6773         esac
6774       fi
6775     done
6776     IFS="$lt_save_ifs"
6777   done
6778   : ${lt_cv_path_NM=no}
6779 fi
6780 fi
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6782 $as_echo "$lt_cv_path_NM" >&6; }
6783 if test "$lt_cv_path_NM" != "no"; then
6784   NM="$lt_cv_path_NM"
6785 else
6786   # Didn't find any BSD compatible name lister, look for dumpbin.
6787   if test -n "$DUMPBIN"; then :
6788     # Let the user override the test.
6789   else
6790     if test -n "$ac_tool_prefix"; then
6791   for ac_prog in dumpbin "link -dump"
6792   do
6793     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_DUMPBIN+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   if test -n "$DUMPBIN"; then
6801   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808     for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815   done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 DUMPBIN=$ac_cv_prog_DUMPBIN
6821 if test -n "$DUMPBIN"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6823 $as_echo "$DUMPBIN" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829
6830     test -n "$DUMPBIN" && break
6831   done
6832 fi
6833 if test -z "$DUMPBIN"; then
6834   ac_ct_DUMPBIN=$DUMPBIN
6835   for ac_prog in dumpbin "link -dump"
6836 do
6837   # Extract the first word of "$ac_prog", so it can be a program name with args.
6838 set dummy $ac_prog; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   if test -n "$ac_ct_DUMPBIN"; then
6845   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850   IFS=$as_save_IFS
6851   test -z "$as_dir" && as_dir=.
6852     for ac_exec_ext in '' $ac_executable_extensions; do
6853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856     break 2
6857   fi
6858 done
6859   done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6865 if test -n "$ac_ct_DUMPBIN"; then
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6867 $as_echo "$ac_ct_DUMPBIN" >&6; }
6868 else
6869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873
6874   test -n "$ac_ct_DUMPBIN" && break
6875 done
6876
6877   if test "x$ac_ct_DUMPBIN" = x; then
6878     DUMPBIN=":"
6879   else
6880     case $cross_compiling:$ac_tool_warned in
6881 yes:)
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6885 esac
6886     DUMPBIN=$ac_ct_DUMPBIN
6887   fi
6888 fi
6889
6890     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6891     *COFF*)
6892       DUMPBIN="$DUMPBIN -symbols"
6893       ;;
6894     *)
6895       DUMPBIN=:
6896       ;;
6897     esac
6898   fi
6899
6900   if test "$DUMPBIN" != ":"; then
6901     NM="$DUMPBIN"
6902   fi
6903 fi
6904 test -z "$NM" && NM=nm
6905
6906
6907
6908
6909
6910
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6912 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6913 if ${lt_cv_nm_interface+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   lt_cv_nm_interface="BSD nm"
6917   echo "int some_variable = 0;" > conftest.$ac_ext
6918   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6919   (eval "$ac_compile" 2>conftest.err)
6920   cat conftest.err >&5
6921   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6922   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6923   cat conftest.err >&5
6924   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6925   cat conftest.out >&5
6926   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6927     lt_cv_nm_interface="MS dumpbin"
6928   fi
6929   rm -f conftest*
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6932 $as_echo "$lt_cv_nm_interface" >&6; }
6933
6934 # find the maximum length of command line arguments
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6936 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6937 if ${lt_cv_sys_max_cmd_len+:} false; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940     i=0
6941   teststring="ABCD"
6942
6943   case $build_os in
6944   msdosdjgpp*)
6945     # On DJGPP, this test can blow up pretty badly due to problems in libc
6946     # (any single argument exceeding 2000 bytes causes a buffer overrun
6947     # during glob expansion).  Even if it were fixed, the result of this
6948     # check would be larger than it should be.
6949     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6950     ;;
6951
6952   gnu*)
6953     # Under GNU Hurd, this test is not required because there is
6954     # no limit to the length of command line arguments.
6955     # Libtool will interpret -1 as no limit whatsoever
6956     lt_cv_sys_max_cmd_len=-1;
6957     ;;
6958
6959   cygwin* | mingw* | cegcc*)
6960     # On Win9x/ME, this test blows up -- it succeeds, but takes
6961     # about 5 minutes as the teststring grows exponentially.
6962     # Worse, since 9x/ME are not pre-emptively multitasking,
6963     # you end up with a "frozen" computer, even though with patience
6964     # the test eventually succeeds (with a max line length of 256k).
6965     # Instead, let's just punt: use the minimum linelength reported by
6966     # all of the supported platforms: 8192 (on NT/2K/XP).
6967     lt_cv_sys_max_cmd_len=8192;
6968     ;;
6969
6970   mint*)
6971     # On MiNT this can take a long time and run out of memory.
6972     lt_cv_sys_max_cmd_len=8192;
6973     ;;
6974
6975   amigaos*)
6976     # On AmigaOS with pdksh, this test takes hours, literally.
6977     # So we just punt and use a minimum line length of 8192.
6978     lt_cv_sys_max_cmd_len=8192;
6979     ;;
6980
6981   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6982     # This has been around since 386BSD, at least.  Likely further.
6983     if test -x /sbin/sysctl; then
6984       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6985     elif test -x /usr/sbin/sysctl; then
6986       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6987     else
6988       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6989     fi
6990     # And add a safety zone
6991     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6992     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6993     ;;
6994
6995   interix*)
6996     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6997     lt_cv_sys_max_cmd_len=196608
6998     ;;
6999
7000   osf*)
7001     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7002     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7003     # nice to cause kernel panics so lets avoid the loop below.
7004     # First set a reasonable default.
7005     lt_cv_sys_max_cmd_len=16384
7006     #
7007     if test -x /sbin/sysconfig; then
7008       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7009         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7010       esac
7011     fi
7012     ;;
7013   sco3.2v5*)
7014     lt_cv_sys_max_cmd_len=102400
7015     ;;
7016   sysv5* | sco5v6* | sysv4.2uw2*)
7017     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7018     if test -n "$kargmax"; then
7019       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7020     else
7021       lt_cv_sys_max_cmd_len=32768
7022     fi
7023     ;;
7024   *)
7025     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7026     if test -n "$lt_cv_sys_max_cmd_len"; then
7027       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7028       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7029     else
7030       # Make teststring a little bigger before we do anything with it.
7031       # a 1K string should be a reasonable start.
7032       for i in 1 2 3 4 5 6 7 8 ; do
7033         teststring=$teststring$teststring
7034       done
7035       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7036       # If test is not a shell built-in, we'll probably end up computing a
7037       # maximum length that is only half of the actual maximum length, but
7038       # we can't tell.
7039       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7040                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7041               test $i != 17 # 1/2 MB should be enough
7042       do
7043         i=`expr $i + 1`
7044         teststring=$teststring$teststring
7045       done
7046       # Only check the string length outside the loop.
7047       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7048       teststring=
7049       # Add a significant safety factor because C++ compilers can tack on
7050       # massive amounts of additional arguments before passing them to the
7051       # linker.  It appears as though 1/2 is a usable value.
7052       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7053     fi
7054     ;;
7055   esac
7056
7057 fi
7058
7059 if test -n $lt_cv_sys_max_cmd_len ; then
7060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7061 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7062 else
7063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7064 $as_echo "none" >&6; }
7065 fi
7066 max_cmd_len=$lt_cv_sys_max_cmd_len
7067
7068
7069
7070
7071
7072
7073 : ${CP="cp -f"}
7074 : ${MV="mv -f"}
7075 : ${RM="rm -f"}
7076
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7078 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7079 # Try some XSI features
7080 xsi_shell=no
7081 ( _lt_dummy="a/b/c"
7082   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7083       = c,a/b,b/c, \
7084     && eval 'test $(( 1 + 1 )) -eq 2 \
7085     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7086   && xsi_shell=yes
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7088 $as_echo "$xsi_shell" >&6; }
7089
7090
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7092 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7093 lt_shell_append=no
7094 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7095     >/dev/null 2>&1 \
7096   && lt_shell_append=yes
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7098 $as_echo "$lt_shell_append" >&6; }
7099
7100
7101 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7102   lt_unset=unset
7103 else
7104   lt_unset=false
7105 fi
7106
7107
7108
7109
7110
7111 # test EBCDIC or ASCII
7112 case `echo X|tr X '\101'` in
7113  A) # ASCII based system
7114     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7115   lt_SP2NL='tr \040 \012'
7116   lt_NL2SP='tr \015\012 \040\040'
7117   ;;
7118  *) # EBCDIC based system
7119   lt_SP2NL='tr \100 \n'
7120   lt_NL2SP='tr \r\n \100\100'
7121   ;;
7122 esac
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7133 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7134 if ${lt_cv_to_host_file_cmd+:} false; then :
7135   $as_echo_n "(cached) " >&6
7136 else
7137   case $host in
7138   *-*-mingw* )
7139     case $build in
7140       *-*-mingw* ) # actually msys
7141         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7142         ;;
7143       *-*-cygwin* )
7144         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7145         ;;
7146       * ) # otherwise, assume *nix
7147         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7148         ;;
7149     esac
7150     ;;
7151   *-*-cygwin* )
7152     case $build in
7153       *-*-mingw* ) # actually msys
7154         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7155         ;;
7156       *-*-cygwin* )
7157         lt_cv_to_host_file_cmd=func_convert_file_noop
7158         ;;
7159       * ) # otherwise, assume *nix
7160         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7161         ;;
7162     esac
7163     ;;
7164   * ) # unhandled hosts (and "normal" native builds)
7165     lt_cv_to_host_file_cmd=func_convert_file_noop
7166     ;;
7167 esac
7168
7169 fi
7170
7171 to_host_file_cmd=$lt_cv_to_host_file_cmd
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7173 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7174
7175
7176
7177
7178
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7180 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7181 if ${lt_cv_to_tool_file_cmd+:} false; then :
7182   $as_echo_n "(cached) " >&6
7183 else
7184   #assume ordinary cross tools, or native build.
7185 lt_cv_to_tool_file_cmd=func_convert_file_noop
7186 case $host in
7187   *-*-mingw* )
7188     case $build in
7189       *-*-mingw* ) # actually msys
7190         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7191         ;;
7192     esac
7193     ;;
7194 esac
7195
7196 fi
7197
7198 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7200 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7201
7202
7203
7204
7205
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7207 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7208 if ${lt_cv_ld_reload_flag+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   lt_cv_ld_reload_flag='-r'
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7214 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7215 reload_flag=$lt_cv_ld_reload_flag
7216 case $reload_flag in
7217 "" | " "*) ;;
7218 *) reload_flag=" $reload_flag" ;;
7219 esac
7220 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7221 case $host_os in
7222   cygwin* | mingw* | pw32* | cegcc*)
7223     if test "$GCC" != yes; then
7224       reload_cmds=false
7225     fi
7226     ;;
7227   darwin*)
7228     if test "$GCC" = yes; then
7229       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7230     else
7231       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7232     fi
7233     ;;
7234 esac
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244 if test -n "$ac_tool_prefix"; then
7245   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_OBJDUMP+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   if test -n "$OBJDUMP"; then
7253   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258   IFS=$as_save_IFS
7259   test -z "$as_dir" && as_dir=.
7260     for ac_exec_ext in '' $ac_executable_extensions; do
7261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264     break 2
7265   fi
7266 done
7267   done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 OBJDUMP=$ac_cv_prog_OBJDUMP
7273 if test -n "$OBJDUMP"; then
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7275 $as_echo "$OBJDUMP" >&6; }
7276 else
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281
7282 fi
7283 if test -z "$ac_cv_prog_OBJDUMP"; then
7284   ac_ct_OBJDUMP=$OBJDUMP
7285   # Extract the first word of "objdump", so it can be a program name with args.
7286 set dummy objdump; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7290   $as_echo_n "(cached) " >&6
7291 else
7292   if test -n "$ac_ct_OBJDUMP"; then
7293   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300     for ac_exec_ext in '' $ac_executable_extensions; do
7301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307   done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7313 if test -n "$ac_ct_OBJDUMP"; then
7314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7315 $as_echo "$ac_ct_OBJDUMP" >&6; }
7316 else
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321   if test "x$ac_ct_OBJDUMP" = x; then
7322     OBJDUMP="false"
7323   else
7324     case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330     OBJDUMP=$ac_ct_OBJDUMP
7331   fi
7332 else
7333   OBJDUMP="$ac_cv_prog_OBJDUMP"
7334 fi
7335
7336 test -z "$OBJDUMP" && OBJDUMP=objdump
7337
7338
7339
7340
7341
7342
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7344 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7345 if ${lt_cv_deplibs_check_method+:} false; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   lt_cv_file_magic_cmd='$MAGIC_CMD'
7349 lt_cv_file_magic_test_file=
7350 lt_cv_deplibs_check_method='unknown'
7351 # Need to set the preceding variable on all platforms that support
7352 # interlibrary dependencies.
7353 # 'none' -- dependencies not supported.
7354 # `unknown' -- same as none, but documents that we really don't know.
7355 # 'pass_all' -- all dependencies passed with no checks.
7356 # 'test_compile' -- check by making test program.
7357 # 'file_magic [[regex]]' -- check by looking for files in library path
7358 # which responds to the $file_magic_cmd with a given extended regex.
7359 # If you have `file' or equivalent on your system and you're not sure
7360 # whether `pass_all' will *always* work, you probably want this one.
7361
7362 case $host_os in
7363 aix[4-9]*)
7364   lt_cv_deplibs_check_method=pass_all
7365   ;;
7366
7367 beos*)
7368   lt_cv_deplibs_check_method=pass_all
7369   ;;
7370
7371 bsdi[45]*)
7372   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7373   lt_cv_file_magic_cmd='/usr/bin/file -L'
7374   lt_cv_file_magic_test_file=/shlib/libc.so
7375   ;;
7376
7377 cygwin*)
7378   # func_win32_libid is a shell function defined in ltmain.sh
7379   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7380   lt_cv_file_magic_cmd='func_win32_libid'
7381   ;;
7382
7383 mingw* | pw32*)
7384   # Base MSYS/MinGW do not provide the 'file' command needed by
7385   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7386   # unless we find 'file', for example because we are cross-compiling.
7387   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7388   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7389     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7390     lt_cv_file_magic_cmd='func_win32_libid'
7391   else
7392     # Keep this pattern in sync with the one in func_win32_libid.
7393     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7394     lt_cv_file_magic_cmd='$OBJDUMP -f'
7395   fi
7396   ;;
7397
7398 cegcc*)
7399   # use the weaker test based on 'objdump'. See mingw*.
7400   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7401   lt_cv_file_magic_cmd='$OBJDUMP -f'
7402   ;;
7403
7404 darwin* | rhapsody*)
7405   lt_cv_deplibs_check_method=pass_all
7406   ;;
7407
7408 freebsd* | dragonfly*)
7409   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7410     case $host_cpu in
7411     i*86 )
7412       # Not sure whether the presence of OpenBSD here was a mistake.
7413       # Let's accept both of them until this is cleared up.
7414       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7415       lt_cv_file_magic_cmd=/usr/bin/file
7416       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7417       ;;
7418     esac
7419   else
7420     lt_cv_deplibs_check_method=pass_all
7421   fi
7422   ;;
7423
7424 gnu*)
7425   lt_cv_deplibs_check_method=pass_all
7426   ;;
7427
7428 haiku*)
7429   lt_cv_deplibs_check_method=pass_all
7430   ;;
7431
7432 hpux10.20* | hpux11*)
7433   lt_cv_file_magic_cmd=/usr/bin/file
7434   case $host_cpu in
7435   ia64*)
7436     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7437     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7438     ;;
7439   hppa*64*)
7440     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7441     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7442     ;;
7443   *)
7444     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7445     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7446     ;;
7447   esac
7448   ;;
7449
7450 interix[3-9]*)
7451   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7452   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7453   ;;
7454
7455 irix5* | irix6* | nonstopux*)
7456   case $LD in
7457   *-32|*"-32 ") libmagic=32-bit;;
7458   *-n32|*"-n32 ") libmagic=N32;;
7459   *-64|*"-64 ") libmagic=64-bit;;
7460   *) libmagic=never-match;;
7461   esac
7462   lt_cv_deplibs_check_method=pass_all
7463   ;;
7464
7465 # This must be Linux ELF.
7466 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7467   lt_cv_deplibs_check_method=pass_all
7468   ;;
7469
7470 netbsd*)
7471   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7472     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7473   else
7474     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7475   fi
7476   ;;
7477
7478 newos6*)
7479   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7480   lt_cv_file_magic_cmd=/usr/bin/file
7481   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7482   ;;
7483
7484 *nto* | *qnx*)
7485   lt_cv_deplibs_check_method=pass_all
7486   ;;
7487
7488 openbsd*)
7489   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7490     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7491   else
7492     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7493   fi
7494   ;;
7495
7496 osf3* | osf4* | osf5*)
7497   lt_cv_deplibs_check_method=pass_all
7498   ;;
7499
7500 rdos*)
7501   lt_cv_deplibs_check_method=pass_all
7502   ;;
7503
7504 solaris*)
7505   lt_cv_deplibs_check_method=pass_all
7506   ;;
7507
7508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7509   lt_cv_deplibs_check_method=pass_all
7510   ;;
7511
7512 sysv4 | sysv4.3*)
7513   case $host_vendor in
7514   motorola)
7515     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]'
7516     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7517     ;;
7518   ncr)
7519     lt_cv_deplibs_check_method=pass_all
7520     ;;
7521   sequent)
7522     lt_cv_file_magic_cmd='/bin/file'
7523     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7524     ;;
7525   sni)
7526     lt_cv_file_magic_cmd='/bin/file'
7527     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7528     lt_cv_file_magic_test_file=/lib/libc.so
7529     ;;
7530   siemens)
7531     lt_cv_deplibs_check_method=pass_all
7532     ;;
7533   pc)
7534     lt_cv_deplibs_check_method=pass_all
7535     ;;
7536   esac
7537   ;;
7538
7539 tpf*)
7540   lt_cv_deplibs_check_method=pass_all
7541   ;;
7542 esac
7543
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7546 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7547
7548 file_magic_glob=
7549 want_nocaseglob=no
7550 if test "$build" = "$host"; then
7551   case $host_os in
7552   mingw* | pw32*)
7553     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7554       want_nocaseglob=yes
7555     else
7556       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7557     fi
7558     ;;
7559   esac
7560 fi
7561
7562 file_magic_cmd=$lt_cv_file_magic_cmd
7563 deplibs_check_method=$lt_cv_deplibs_check_method
7564 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587 if test -n "$ac_tool_prefix"; then
7588   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7589 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_DLLTOOL+:} false; then :
7593   $as_echo_n "(cached) " >&6
7594 else
7595   if test -n "$DLLTOOL"; then
7596   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603     for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610   done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 DLLTOOL=$ac_cv_prog_DLLTOOL
7616 if test -n "$DLLTOOL"; then
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7618 $as_echo "$DLLTOOL" >&6; }
7619 else
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622 fi
7623
7624
7625 fi
7626 if test -z "$ac_cv_prog_DLLTOOL"; then
7627   ac_ct_DLLTOOL=$DLLTOOL
7628   # Extract the first word of "dlltool", so it can be a program name with args.
7629 set dummy dlltool; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   if test -n "$ac_ct_DLLTOOL"; then
7636   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643     for ac_exec_ext in '' $ac_executable_extensions; do
7644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647     break 2
7648   fi
7649 done
7650   done
7651 IFS=$as_save_IFS
7652
7653 fi
7654 fi
7655 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7656 if test -n "$ac_ct_DLLTOOL"; then
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7658 $as_echo "$ac_ct_DLLTOOL" >&6; }
7659 else
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 fi
7663
7664   if test "x$ac_ct_DLLTOOL" = x; then
7665     DLLTOOL="false"
7666   else
7667     case $cross_compiling:$ac_tool_warned in
7668 yes:)
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671 ac_tool_warned=yes ;;
7672 esac
7673     DLLTOOL=$ac_ct_DLLTOOL
7674   fi
7675 else
7676   DLLTOOL="$ac_cv_prog_DLLTOOL"
7677 fi
7678
7679 test -z "$DLLTOOL" && DLLTOOL=dlltool
7680
7681
7682
7683
7684
7685
7686
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7688 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7689 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7690   $as_echo_n "(cached) " >&6
7691 else
7692   lt_cv_sharedlib_from_linklib_cmd='unknown'
7693
7694 case $host_os in
7695 cygwin* | mingw* | pw32* | cegcc*)
7696   # two different shell functions defined in ltmain.sh
7697   # decide which to use based on capabilities of $DLLTOOL
7698   case `$DLLTOOL --help 2>&1` in
7699   *--identify-strict*)
7700     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7701     ;;
7702   *)
7703     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7704     ;;
7705   esac
7706   ;;
7707 *)
7708   # fallback: assume linklib IS sharedlib
7709   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7710   ;;
7711 esac
7712
7713 fi
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7715 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7716 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7717 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7718
7719
7720
7721
7722
7723
7724
7725 if test -n "$ac_tool_prefix"; then
7726   for ac_prog in ar
7727   do
7728     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_AR+:} false; then :
7733   $as_echo_n "(cached) " >&6
7734 else
7735   if test -n "$AR"; then
7736   ac_cv_prog_AR="$AR" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741   IFS=$as_save_IFS
7742   test -z "$as_dir" && as_dir=.
7743     for ac_exec_ext in '' $ac_executable_extensions; do
7744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747     break 2
7748   fi
7749 done
7750   done
7751 IFS=$as_save_IFS
7752
7753 fi
7754 fi
7755 AR=$ac_cv_prog_AR
7756 if test -n "$AR"; then
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7758 $as_echo "$AR" >&6; }
7759 else
7760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764
7765     test -n "$AR" && break
7766   done
7767 fi
7768 if test -z "$AR"; then
7769   ac_ct_AR=$AR
7770   for ac_prog in ar
7771 do
7772   # Extract the first word of "$ac_prog", so it can be a program name with args.
7773 set dummy $ac_prog; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779   if test -n "$ac_ct_AR"; then
7780   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787     for ac_exec_ext in '' $ac_executable_extensions; do
7788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789     ac_cv_prog_ac_ct_AR="$ac_prog"
7790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794   done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7800 if test -n "$ac_ct_AR"; then
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7802 $as_echo "$ac_ct_AR" >&6; }
7803 else
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808
7809   test -n "$ac_ct_AR" && break
7810 done
7811
7812   if test "x$ac_ct_AR" = x; then
7813     AR="false"
7814   else
7815     case $cross_compiling:$ac_tool_warned in
7816 yes:)
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7819 ac_tool_warned=yes ;;
7820 esac
7821     AR=$ac_ct_AR
7822   fi
7823 fi
7824
7825 : ${AR=ar}
7826 : ${AR_FLAGS=cru}
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7839 $as_echo_n "checking for archiver @FILE support... " >&6; }
7840 if ${lt_cv_ar_at_file+:} false; then :
7841   $as_echo_n "(cached) " >&6
7842 else
7843   lt_cv_ar_at_file=no
7844    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h.  */
7846
7847 int
7848 main ()
7849 {
7850
7851   ;
7852   return 0;
7853 }
7854 _ACEOF
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856   echo conftest.$ac_objext > conftest.lst
7857       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7858       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7859   (eval $lt_ar_try) 2>&5
7860   ac_status=$?
7861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862   test $ac_status = 0; }
7863       if test "$ac_status" -eq 0; then
7864         # Ensure the archiver fails upon bogus file names.
7865         rm -f conftest.$ac_objext libconftest.a
7866         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7867   (eval $lt_ar_try) 2>&5
7868   ac_status=$?
7869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870   test $ac_status = 0; }
7871         if test "$ac_status" -ne 0; then
7872           lt_cv_ar_at_file=@
7873         fi
7874       fi
7875       rm -f conftest.* libconftest.a
7876
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7882 $as_echo "$lt_cv_ar_at_file" >&6; }
7883
7884 if test "x$lt_cv_ar_at_file" = xno; then
7885   archiver_list_spec=
7886 else
7887   archiver_list_spec=$lt_cv_ar_at_file
7888 fi
7889
7890
7891
7892
7893
7894
7895
7896 if test -n "$ac_tool_prefix"; then
7897   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}strip; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_STRIP+:} false; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   if test -n "$STRIP"; then
7905   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912     for ac_exec_ext in '' $ac_executable_extensions; do
7913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919   done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 STRIP=$ac_cv_prog_STRIP
7925 if test -n "$STRIP"; then
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7927 $as_echo "$STRIP" >&6; }
7928 else
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932
7933
7934 fi
7935 if test -z "$ac_cv_prog_STRIP"; then
7936   ac_ct_STRIP=$STRIP
7937   # Extract the first word of "strip", so it can be a program name with args.
7938 set dummy strip; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   if test -n "$ac_ct_STRIP"; then
7945   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950   IFS=$as_save_IFS
7951   test -z "$as_dir" && as_dir=.
7952     for ac_exec_ext in '' $ac_executable_extensions; do
7953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954     ac_cv_prog_ac_ct_STRIP="strip"
7955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956     break 2
7957   fi
7958 done
7959   done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7965 if test -n "$ac_ct_STRIP"; then
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7967 $as_echo "$ac_ct_STRIP" >&6; }
7968 else
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973   if test "x$ac_ct_STRIP" = x; then
7974     STRIP=":"
7975   else
7976     case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982     STRIP=$ac_ct_STRIP
7983   fi
7984 else
7985   STRIP="$ac_cv_prog_STRIP"
7986 fi
7987
7988 test -z "$STRIP" && STRIP=:
7989
7990
7991
7992
7993
7994
7995 if test -n "$ac_tool_prefix"; then
7996   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if ${ac_cv_prog_RANLIB+:} false; then :
8001   $as_echo_n "(cached) " >&6
8002 else
8003   if test -n "$RANLIB"; then
8004   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8005 else
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009   IFS=$as_save_IFS
8010   test -z "$as_dir" && as_dir=.
8011     for ac_exec_ext in '' $ac_executable_extensions; do
8012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015     break 2
8016   fi
8017 done
8018   done
8019 IFS=$as_save_IFS
8020
8021 fi
8022 fi
8023 RANLIB=$ac_cv_prog_RANLIB
8024 if test -n "$RANLIB"; then
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8026 $as_echo "$RANLIB" >&6; }
8027 else
8028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8030 fi
8031
8032
8033 fi
8034 if test -z "$ac_cv_prog_RANLIB"; then
8035   ac_ct_RANLIB=$RANLIB
8036   # Extract the first word of "ranlib", so it can be a program name with args.
8037 set dummy ranlib; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   if test -n "$ac_ct_RANLIB"; then
8044   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049   IFS=$as_save_IFS
8050   test -z "$as_dir" && as_dir=.
8051     for ac_exec_ext in '' $ac_executable_extensions; do
8052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8053     ac_cv_prog_ac_ct_RANLIB="ranlib"
8054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055     break 2
8056   fi
8057 done
8058   done
8059 IFS=$as_save_IFS
8060
8061 fi
8062 fi
8063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8064 if test -n "$ac_ct_RANLIB"; then
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8066 $as_echo "$ac_ct_RANLIB" >&6; }
8067 else
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071
8072   if test "x$ac_ct_RANLIB" = x; then
8073     RANLIB=":"
8074   else
8075     case $cross_compiling:$ac_tool_warned in
8076 yes:)
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8080 esac
8081     RANLIB=$ac_ct_RANLIB
8082   fi
8083 else
8084   RANLIB="$ac_cv_prog_RANLIB"
8085 fi
8086
8087 test -z "$RANLIB" && RANLIB=:
8088
8089
8090
8091
8092
8093
8094 # Determine commands to create old-style static archives.
8095 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8096 old_postinstall_cmds='chmod 644 $oldlib'
8097 old_postuninstall_cmds=
8098
8099 if test -n "$RANLIB"; then
8100   case $host_os in
8101   openbsd*)
8102     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8103     ;;
8104   *)
8105     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8106     ;;
8107   esac
8108   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8109 fi
8110
8111 case $host_os in
8112   darwin*)
8113     lock_old_archive_extraction=yes ;;
8114   *)
8115     lock_old_archive_extraction=no ;;
8116 esac
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156 # If no C compiler was specified, use CC.
8157 LTCC=${LTCC-"$CC"}
8158
8159 # If no C compiler flags were specified, use CFLAGS.
8160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8161
8162 # Allow CC to be a program name with arguments.
8163 compiler=$CC
8164
8165
8166 # Check for command to grab the raw symbol name followed by C symbol from nm.
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8168 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8169 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172
8173 # These are sane defaults that work on at least a few old systems.
8174 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8175
8176 # Character class describing NM global symbol codes.
8177 symcode='[BCDEGRST]'
8178
8179 # Regexp to match symbols that can be accessed directly from C.
8180 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8181
8182 # Define system-specific variables.
8183 case $host_os in
8184 aix*)
8185   symcode='[BCDT]'
8186   ;;
8187 cygwin* | mingw* | pw32* | cegcc*)
8188   symcode='[ABCDGISTW]'
8189   ;;
8190 hpux*)
8191   if test "$host_cpu" = ia64; then
8192     symcode='[ABCDEGRST]'
8193   fi
8194   ;;
8195 irix* | nonstopux*)
8196   symcode='[BCDEGRST]'
8197   ;;
8198 osf*)
8199   symcode='[BCDEGQRST]'
8200   ;;
8201 solaris*)
8202   symcode='[BDRT]'
8203   ;;
8204 sco3.2v5*)
8205   symcode='[DT]'
8206   ;;
8207 sysv4.2uw2*)
8208   symcode='[DT]'
8209   ;;
8210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8211   symcode='[ABDT]'
8212   ;;
8213 sysv4)
8214   symcode='[DFNSTU]'
8215   ;;
8216 esac
8217
8218 # If we're using GNU nm, then use its standard symbol codes.
8219 case `$NM -V 2>&1` in
8220 *GNU* | *'with BFD'*)
8221   symcode='[ABCDGIRSTW]' ;;
8222 esac
8223
8224 # Transform an extracted symbol line into a proper C declaration.
8225 # Some systems (esp. on ia64) link data and code symbols differently,
8226 # so use this general approach.
8227 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8228
8229 # Transform an extracted symbol line into symbol name and symbol address
8230 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8231 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'"
8232
8233 # Handle CRLF in mingw tool chain
8234 opt_cr=
8235 case $build_os in
8236 mingw*)
8237   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8238   ;;
8239 esac
8240
8241 # Try without a prefix underscore, then with it.
8242 for ac_symprfx in "" "_"; do
8243
8244   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8245   symxfrm="\\1 $ac_symprfx\\2 \\2"
8246
8247   # Write the raw and C identifiers.
8248   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8249     # Fake it for dumpbin and say T for any non-static function
8250     # and D for any global variable.
8251     # Also find C++ and __fastcall symbols from MSVC++,
8252     # which start with @ or ?.
8253     lt_cv_sys_global_symbol_pipe="$AWK '"\
8254 "     {last_section=section; section=\$ 3};"\
8255 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8256 "     \$ 0!~/External *\|/{next};"\
8257 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8258 "     {if(hide[section]) next};"\
8259 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8260 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8261 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8262 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8263 "     ' prfx=^$ac_symprfx"
8264   else
8265     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8266   fi
8267   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8268
8269   # Check to see that the pipe works correctly.
8270   pipe_works=no
8271
8272   rm -f conftest*
8273   cat > conftest.$ac_ext <<_LT_EOF
8274 #ifdef __cplusplus
8275 extern "C" {
8276 #endif
8277 char nm_test_var;
8278 void nm_test_func(void);
8279 void nm_test_func(void){}
8280 #ifdef __cplusplus
8281 }
8282 #endif
8283 int main(){nm_test_var='a';nm_test_func();return(0);}
8284 _LT_EOF
8285
8286   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8287   (eval $ac_compile) 2>&5
8288   ac_status=$?
8289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8290   test $ac_status = 0; }; then
8291     # Now try to grab the symbols.
8292     nlist=conftest.nm
8293     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8294   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8295   ac_status=$?
8296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8297   test $ac_status = 0; } && test -s "$nlist"; then
8298       # Try sorting and uniquifying the output.
8299       if sort "$nlist" | uniq > "$nlist"T; then
8300         mv -f "$nlist"T "$nlist"
8301       else
8302         rm -f "$nlist"T
8303       fi
8304
8305       # Make sure that we snagged all the symbols we need.
8306       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8307         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8308           cat <<_LT_EOF > conftest.$ac_ext
8309 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8310 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8311 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8312    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8313 # define LT_DLSYM_CONST
8314 #elif defined(__osf__)
8315 /* This system does not cope well with relocations in const data.  */
8316 # define LT_DLSYM_CONST
8317 #else
8318 # define LT_DLSYM_CONST const
8319 #endif
8320
8321 #ifdef __cplusplus
8322 extern "C" {
8323 #endif
8324
8325 _LT_EOF
8326           # Now generate the symbol file.
8327           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8328
8329           cat <<_LT_EOF >> conftest.$ac_ext
8330
8331 /* The mapping between symbol names and symbols.  */
8332 LT_DLSYM_CONST struct {
8333   const char *name;
8334   void       *address;
8335 }
8336 lt__PROGRAM__LTX_preloaded_symbols[] =
8337 {
8338   { "@PROGRAM@", (void *) 0 },
8339 _LT_EOF
8340           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8341           cat <<\_LT_EOF >> conftest.$ac_ext
8342   {0, (void *) 0}
8343 };
8344
8345 /* This works around a problem in FreeBSD linker */
8346 #ifdef FREEBSD_WORKAROUND
8347 static const void *lt_preloaded_setup() {
8348   return lt__PROGRAM__LTX_preloaded_symbols;
8349 }
8350 #endif
8351
8352 #ifdef __cplusplus
8353 }
8354 #endif
8355 _LT_EOF
8356           # Now try linking the two files.
8357           mv conftest.$ac_objext conftstm.$ac_objext
8358           lt_globsym_save_LIBS=$LIBS
8359           lt_globsym_save_CFLAGS=$CFLAGS
8360           LIBS="conftstm.$ac_objext"
8361           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8362           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8363   (eval $ac_link) 2>&5
8364   ac_status=$?
8365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8366   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8367             pipe_works=yes
8368           fi
8369           LIBS=$lt_globsym_save_LIBS
8370           CFLAGS=$lt_globsym_save_CFLAGS
8371         else
8372           echo "cannot find nm_test_func in $nlist" >&5
8373         fi
8374       else
8375         echo "cannot find nm_test_var in $nlist" >&5
8376       fi
8377     else
8378       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8379     fi
8380   else
8381     echo "$progname: failed program was:" >&5
8382     cat conftest.$ac_ext >&5
8383   fi
8384   rm -rf conftest* conftst*
8385
8386   # Do not use the global_symbol_pipe unless it works.
8387   if test "$pipe_works" = yes; then
8388     break
8389   else
8390     lt_cv_sys_global_symbol_pipe=
8391   fi
8392 done
8393
8394 fi
8395
8396 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8397   lt_cv_sys_global_symbol_to_cdecl=
8398 fi
8399 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8401 $as_echo "failed" >&6; }
8402 else
8403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8404 $as_echo "ok" >&6; }
8405 fi
8406
8407 # Response file support.
8408 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8409   nm_file_list_spec='@'
8410 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8411   nm_file_list_spec='@'
8412 fi
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8441 $as_echo_n "checking for sysroot... " >&6; }
8442
8443 # Check whether --with-sysroot was given.
8444 if test "${with_sysroot+set}" = set; then :
8445   withval=$with_sysroot;
8446 else
8447   with_sysroot=no
8448 fi
8449
8450
8451 lt_sysroot=
8452 case ${with_sysroot} in #(
8453  yes)
8454    if test "$GCC" = yes; then
8455      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8456    fi
8457    ;; #(
8458  /*)
8459    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8460    ;; #(
8461  no|'')
8462    ;; #(
8463  *)
8464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8465 $as_echo "${with_sysroot}" >&6; }
8466    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8467    ;;
8468 esac
8469
8470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8471 $as_echo "${lt_sysroot:-no}" >&6; }
8472
8473
8474
8475
8476
8477 # Check whether --enable-libtool-lock was given.
8478 if test "${enable_libtool_lock+set}" = set; then :
8479   enableval=$enable_libtool_lock;
8480 fi
8481
8482 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8483
8484 # Some flags need to be propagated to the compiler or linker for good
8485 # libtool support.
8486 case $host in
8487 ia64-*-hpux*)
8488   # Find out which ABI we are using.
8489   echo 'int i;' > conftest.$ac_ext
8490   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8491   (eval $ac_compile) 2>&5
8492   ac_status=$?
8493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8494   test $ac_status = 0; }; then
8495     case `/usr/bin/file conftest.$ac_objext` in
8496       *ELF-32*)
8497         HPUX_IA64_MODE="32"
8498         ;;
8499       *ELF-64*)
8500         HPUX_IA64_MODE="64"
8501         ;;
8502     esac
8503   fi
8504   rm -rf conftest*
8505   ;;
8506 *-*-irix6*)
8507   # Find out which ABI we are using.
8508   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8509   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8510   (eval $ac_compile) 2>&5
8511   ac_status=$?
8512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8513   test $ac_status = 0; }; then
8514     if test "$lt_cv_prog_gnu_ld" = yes; then
8515       case `/usr/bin/file conftest.$ac_objext` in
8516         *32-bit*)
8517           LD="${LD-ld} -melf32bsmip"
8518           ;;
8519         *N32*)
8520           LD="${LD-ld} -melf32bmipn32"
8521           ;;
8522         *64-bit*)
8523           LD="${LD-ld} -melf64bmip"
8524         ;;
8525       esac
8526     else
8527       case `/usr/bin/file conftest.$ac_objext` in
8528         *32-bit*)
8529           LD="${LD-ld} -32"
8530           ;;
8531         *N32*)
8532           LD="${LD-ld} -n32"
8533           ;;
8534         *64-bit*)
8535           LD="${LD-ld} -64"
8536           ;;
8537       esac
8538     fi
8539   fi
8540   rm -rf conftest*
8541   ;;
8542
8543 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8544 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8545   # Find out which ABI we are using.
8546   echo 'int i;' > conftest.$ac_ext
8547   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8548   (eval $ac_compile) 2>&5
8549   ac_status=$?
8550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8551   test $ac_status = 0; }; then
8552     case `/usr/bin/file conftest.o` in
8553       *32-bit*)
8554         case $host in
8555           x86_64-*kfreebsd*-gnu)
8556             LD="${LD-ld} -m elf_i386_fbsd"
8557             ;;
8558           x86_64-*linux*)
8559             LD="${LD-ld} -m elf_i386"
8560             ;;
8561           ppc64-*linux*|powerpc64-*linux*)
8562             LD="${LD-ld} -m elf32ppclinux"
8563             ;;
8564           s390x-*linux*)
8565             LD="${LD-ld} -m elf_s390"
8566             ;;
8567           sparc64-*linux*)
8568             LD="${LD-ld} -m elf32_sparc"
8569             ;;
8570         esac
8571         ;;
8572       *64-bit*)
8573         case $host in
8574           x86_64-*kfreebsd*-gnu)
8575             LD="${LD-ld} -m elf_x86_64_fbsd"
8576             ;;
8577           x86_64-*linux*)
8578             LD="${LD-ld} -m elf_x86_64"
8579             ;;
8580           ppc*-*linux*|powerpc*-*linux*)
8581             LD="${LD-ld} -m elf64ppc"
8582             ;;
8583           s390*-*linux*|s390*-*tpf*)
8584             LD="${LD-ld} -m elf64_s390"
8585             ;;
8586           sparc*-*linux*)
8587             LD="${LD-ld} -m elf64_sparc"
8588             ;;
8589         esac
8590         ;;
8591     esac
8592   fi
8593   rm -rf conftest*
8594   ;;
8595
8596 *-*-sco3.2v5*)
8597   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8598   SAVE_CFLAGS="$CFLAGS"
8599   CFLAGS="$CFLAGS -belf"
8600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8601 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8602 if ${lt_cv_cc_needs_belf+:} false; then :
8603   $as_echo_n "(cached) " >&6
8604 else
8605   ac_ext=c
8606 ac_cpp='$CPP $CPPFLAGS'
8607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8610
8611      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h.  */
8613
8614 int
8615 main ()
8616 {
8617
8618   ;
8619   return 0;
8620 }
8621 _ACEOF
8622 if ac_fn_c_try_link "$LINENO"; then :
8623   lt_cv_cc_needs_belf=yes
8624 else
8625   lt_cv_cc_needs_belf=no
8626 fi
8627 rm -f core conftest.err conftest.$ac_objext \
8628     conftest$ac_exeext conftest.$ac_ext
8629      ac_ext=c
8630 ac_cpp='$CPP $CPPFLAGS'
8631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8634
8635 fi
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8637 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8638   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8639     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8640     CFLAGS="$SAVE_CFLAGS"
8641   fi
8642   ;;
8643 sparc*-*solaris*)
8644   # Find out which ABI we are using.
8645   echo 'int i;' > conftest.$ac_ext
8646   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8647   (eval $ac_compile) 2>&5
8648   ac_status=$?
8649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8650   test $ac_status = 0; }; then
8651     case `/usr/bin/file conftest.o` in
8652     *64-bit*)
8653       case $lt_cv_prog_gnu_ld in
8654       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8655       *)
8656         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8657           LD="${LD-ld} -64"
8658         fi
8659         ;;
8660       esac
8661       ;;
8662     esac
8663   fi
8664   rm -rf conftest*
8665   ;;
8666 esac
8667
8668 need_locks="$enable_libtool_lock"
8669
8670 if test -n "$ac_tool_prefix"; then
8671   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8672 set dummy ${ac_tool_prefix}mt; ac_word=$2
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674 $as_echo_n "checking for $ac_word... " >&6; }
8675 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8676   $as_echo_n "(cached) " >&6
8677 else
8678   if test -n "$MANIFEST_TOOL"; then
8679   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8680 else
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8683 do
8684   IFS=$as_save_IFS
8685   test -z "$as_dir" && as_dir=.
8686     for ac_exec_ext in '' $ac_executable_extensions; do
8687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8688     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690     break 2
8691   fi
8692 done
8693   done
8694 IFS=$as_save_IFS
8695
8696 fi
8697 fi
8698 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8699 if test -n "$MANIFEST_TOOL"; then
8700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8701 $as_echo "$MANIFEST_TOOL" >&6; }
8702 else
8703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 $as_echo "no" >&6; }
8705 fi
8706
8707
8708 fi
8709 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8710   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8711   # Extract the first word of "mt", so it can be a program name with args.
8712 set dummy mt; ac_word=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8716   $as_echo_n "(cached) " >&6
8717 else
8718   if test -n "$ac_ct_MANIFEST_TOOL"; then
8719   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8720 else
8721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722 for as_dir in $PATH
8723 do
8724   IFS=$as_save_IFS
8725   test -z "$as_dir" && as_dir=.
8726     for ac_exec_ext in '' $ac_executable_extensions; do
8727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8728     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8730     break 2
8731   fi
8732 done
8733   done
8734 IFS=$as_save_IFS
8735
8736 fi
8737 fi
8738 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8739 if test -n "$ac_ct_MANIFEST_TOOL"; then
8740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8741 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8742 else
8743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }
8745 fi
8746
8747   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8748     MANIFEST_TOOL=":"
8749   else
8750     case $cross_compiling:$ac_tool_warned in
8751 yes:)
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8754 ac_tool_warned=yes ;;
8755 esac
8756     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8757   fi
8758 else
8759   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8760 fi
8761
8762 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8764 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8765 if ${lt_cv_path_mainfest_tool+:} false; then :
8766   $as_echo_n "(cached) " >&6
8767 else
8768   lt_cv_path_mainfest_tool=no
8769   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8770   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8771   cat conftest.err >&5
8772   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8773     lt_cv_path_mainfest_tool=yes
8774   fi
8775   rm -f conftest*
8776 fi
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8778 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8779 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8780   MANIFEST_TOOL=:
8781 fi
8782
8783
8784
8785
8786
8787
8788   case $host_os in
8789     rhapsody* | darwin*)
8790     if test -n "$ac_tool_prefix"; then
8791   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8792 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8796   $as_echo_n "(cached) " >&6
8797 else
8798   if test -n "$DSYMUTIL"; then
8799   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8803 do
8804   IFS=$as_save_IFS
8805   test -z "$as_dir" && as_dir=.
8806     for ac_exec_ext in '' $ac_executable_extensions; do
8807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8808     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810     break 2
8811   fi
8812 done
8813   done
8814 IFS=$as_save_IFS
8815
8816 fi
8817 fi
8818 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8819 if test -n "$DSYMUTIL"; then
8820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8821 $as_echo "$DSYMUTIL" >&6; }
8822 else
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8825 fi
8826
8827
8828 fi
8829 if test -z "$ac_cv_prog_DSYMUTIL"; then
8830   ac_ct_DSYMUTIL=$DSYMUTIL
8831   # Extract the first word of "dsymutil", so it can be a program name with args.
8832 set dummy dsymutil; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8836   $as_echo_n "(cached) " >&6
8837 else
8838   if test -n "$ac_ct_DSYMUTIL"; then
8839   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8843 do
8844   IFS=$as_save_IFS
8845   test -z "$as_dir" && as_dir=.
8846     for ac_exec_ext in '' $ac_executable_extensions; do
8847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850     break 2
8851   fi
8852 done
8853   done
8854 IFS=$as_save_IFS
8855
8856 fi
8857 fi
8858 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8859 if test -n "$ac_ct_DSYMUTIL"; then
8860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8861 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8862 else
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8865 fi
8866
8867   if test "x$ac_ct_DSYMUTIL" = x; then
8868     DSYMUTIL=":"
8869   else
8870     case $cross_compiling:$ac_tool_warned in
8871 yes:)
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8874 ac_tool_warned=yes ;;
8875 esac
8876     DSYMUTIL=$ac_ct_DSYMUTIL
8877   fi
8878 else
8879   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8880 fi
8881
8882     if test -n "$ac_tool_prefix"; then
8883   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8884 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 $as_echo_n "checking for $ac_word... " >&6; }
8887 if ${ac_cv_prog_NMEDIT+:} false; then :
8888   $as_echo_n "(cached) " >&6
8889 else
8890   if test -n "$NMEDIT"; then
8891   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8892 else
8893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 for as_dir in $PATH
8895 do
8896   IFS=$as_save_IFS
8897   test -z "$as_dir" && as_dir=.
8898     for ac_exec_ext in '' $ac_executable_extensions; do
8899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8900     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902     break 2
8903   fi
8904 done
8905   done
8906 IFS=$as_save_IFS
8907
8908 fi
8909 fi
8910 NMEDIT=$ac_cv_prog_NMEDIT
8911 if test -n "$NMEDIT"; then
8912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8913 $as_echo "$NMEDIT" >&6; }
8914 else
8915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 $as_echo "no" >&6; }
8917 fi
8918
8919
8920 fi
8921 if test -z "$ac_cv_prog_NMEDIT"; then
8922   ac_ct_NMEDIT=$NMEDIT
8923   # Extract the first word of "nmedit", so it can be a program name with args.
8924 set dummy nmedit; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   if test -n "$ac_ct_NMEDIT"; then
8931   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8932 else
8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 for as_dir in $PATH
8935 do
8936   IFS=$as_save_IFS
8937   test -z "$as_dir" && as_dir=.
8938     for ac_exec_ext in '' $ac_executable_extensions; do
8939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8940     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942     break 2
8943   fi
8944 done
8945   done
8946 IFS=$as_save_IFS
8947
8948 fi
8949 fi
8950 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8951 if test -n "$ac_ct_NMEDIT"; then
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8953 $as_echo "$ac_ct_NMEDIT" >&6; }
8954 else
8955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8957 fi
8958
8959   if test "x$ac_ct_NMEDIT" = x; then
8960     NMEDIT=":"
8961   else
8962     case $cross_compiling:$ac_tool_warned in
8963 yes:)
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8966 ac_tool_warned=yes ;;
8967 esac
8968     NMEDIT=$ac_ct_NMEDIT
8969   fi
8970 else
8971   NMEDIT="$ac_cv_prog_NMEDIT"
8972 fi
8973
8974     if test -n "$ac_tool_prefix"; then
8975   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8976 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if ${ac_cv_prog_LIPO+:} false; then :
8980   $as_echo_n "(cached) " >&6
8981 else
8982   if test -n "$LIPO"; then
8983   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8984 else
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8987 do
8988   IFS=$as_save_IFS
8989   test -z "$as_dir" && as_dir=.
8990     for ac_exec_ext in '' $ac_executable_extensions; do
8991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994     break 2
8995   fi
8996 done
8997   done
8998 IFS=$as_save_IFS
8999
9000 fi
9001 fi
9002 LIPO=$ac_cv_prog_LIPO
9003 if test -n "$LIPO"; then
9004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9005 $as_echo "$LIPO" >&6; }
9006 else
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9009 fi
9010
9011
9012 fi
9013 if test -z "$ac_cv_prog_LIPO"; then
9014   ac_ct_LIPO=$LIPO
9015   # Extract the first word of "lipo", so it can be a program name with args.
9016 set dummy lipo; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9020   $as_echo_n "(cached) " >&6
9021 else
9022   if test -n "$ac_ct_LIPO"; then
9023   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9027 do
9028   IFS=$as_save_IFS
9029   test -z "$as_dir" && as_dir=.
9030     for ac_exec_ext in '' $ac_executable_extensions; do
9031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032     ac_cv_prog_ac_ct_LIPO="lipo"
9033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034     break 2
9035   fi
9036 done
9037   done
9038 IFS=$as_save_IFS
9039
9040 fi
9041 fi
9042 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9043 if test -n "$ac_ct_LIPO"; then
9044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9045 $as_echo "$ac_ct_LIPO" >&6; }
9046 else
9047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9049 fi
9050
9051   if test "x$ac_ct_LIPO" = x; then
9052     LIPO=":"
9053   else
9054     case $cross_compiling:$ac_tool_warned in
9055 yes:)
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9058 ac_tool_warned=yes ;;
9059 esac
9060     LIPO=$ac_ct_LIPO
9061   fi
9062 else
9063   LIPO="$ac_cv_prog_LIPO"
9064 fi
9065
9066     if test -n "$ac_tool_prefix"; then
9067   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9068 set dummy ${ac_tool_prefix}otool; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_prog_OTOOL+:} false; then :
9072   $as_echo_n "(cached) " >&6
9073 else
9074   if test -n "$OTOOL"; then
9075   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9079 do
9080   IFS=$as_save_IFS
9081   test -z "$as_dir" && as_dir=.
9082     for ac_exec_ext in '' $ac_executable_extensions; do
9083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086     break 2
9087   fi
9088 done
9089   done
9090 IFS=$as_save_IFS
9091
9092 fi
9093 fi
9094 OTOOL=$ac_cv_prog_OTOOL
9095 if test -n "$OTOOL"; then
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9097 $as_echo "$OTOOL" >&6; }
9098 else
9099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 fi
9102
9103
9104 fi
9105 if test -z "$ac_cv_prog_OTOOL"; then
9106   ac_ct_OTOOL=$OTOOL
9107   # Extract the first word of "otool", so it can be a program name with args.
9108 set dummy otool; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9112   $as_echo_n "(cached) " >&6
9113 else
9114   if test -n "$ac_ct_OTOOL"; then
9115   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9116 else
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in $PATH
9119 do
9120   IFS=$as_save_IFS
9121   test -z "$as_dir" && as_dir=.
9122     for ac_exec_ext in '' $ac_executable_extensions; do
9123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9124     ac_cv_prog_ac_ct_OTOOL="otool"
9125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126     break 2
9127   fi
9128 done
9129   done
9130 IFS=$as_save_IFS
9131
9132 fi
9133 fi
9134 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9135 if test -n "$ac_ct_OTOOL"; then
9136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9137 $as_echo "$ac_ct_OTOOL" >&6; }
9138 else
9139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9141 fi
9142
9143   if test "x$ac_ct_OTOOL" = x; then
9144     OTOOL=":"
9145   else
9146     case $cross_compiling:$ac_tool_warned in
9147 yes:)
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9150 ac_tool_warned=yes ;;
9151 esac
9152     OTOOL=$ac_ct_OTOOL
9153   fi
9154 else
9155   OTOOL="$ac_cv_prog_OTOOL"
9156 fi
9157
9158     if test -n "$ac_tool_prefix"; then
9159   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9160 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if ${ac_cv_prog_OTOOL64+:} false; then :
9164   $as_echo_n "(cached) " >&6
9165 else
9166   if test -n "$OTOOL64"; then
9167   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9168 else
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9171 do
9172   IFS=$as_save_IFS
9173   test -z "$as_dir" && as_dir=.
9174     for ac_exec_ext in '' $ac_executable_extensions; do
9175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9176     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178     break 2
9179   fi
9180 done
9181   done
9182 IFS=$as_save_IFS
9183
9184 fi
9185 fi
9186 OTOOL64=$ac_cv_prog_OTOOL64
9187 if test -n "$OTOOL64"; then
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9189 $as_echo "$OTOOL64" >&6; }
9190 else
9191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9193 fi
9194
9195
9196 fi
9197 if test -z "$ac_cv_prog_OTOOL64"; then
9198   ac_ct_OTOOL64=$OTOOL64
9199   # Extract the first word of "otool64", so it can be a program name with args.
9200 set dummy otool64; ac_word=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9204   $as_echo_n "(cached) " >&6
9205 else
9206   if test -n "$ac_ct_OTOOL64"; then
9207   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9208 else
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9211 do
9212   IFS=$as_save_IFS
9213   test -z "$as_dir" && as_dir=.
9214     for ac_exec_ext in '' $ac_executable_extensions; do
9215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9216     ac_cv_prog_ac_ct_OTOOL64="otool64"
9217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218     break 2
9219   fi
9220 done
9221   done
9222 IFS=$as_save_IFS
9223
9224 fi
9225 fi
9226 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9227 if test -n "$ac_ct_OTOOL64"; then
9228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9229 $as_echo "$ac_ct_OTOOL64" >&6; }
9230 else
9231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9233 fi
9234
9235   if test "x$ac_ct_OTOOL64" = x; then
9236     OTOOL64=":"
9237   else
9238     case $cross_compiling:$ac_tool_warned in
9239 yes:)
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9242 ac_tool_warned=yes ;;
9243 esac
9244     OTOOL64=$ac_ct_OTOOL64
9245   fi
9246 else
9247   OTOOL64="$ac_cv_prog_OTOOL64"
9248 fi
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9277 $as_echo_n "checking for -single_module linker flag... " >&6; }
9278 if ${lt_cv_apple_cc_single_mod+:} false; then :
9279   $as_echo_n "(cached) " >&6
9280 else
9281   lt_cv_apple_cc_single_mod=no
9282       if test -z "${LT_MULTI_MODULE}"; then
9283         # By default we will add the -single_module flag. You can override
9284         # by either setting the environment variable LT_MULTI_MODULE
9285         # non-empty at configure time, or by adding -multi_module to the
9286         # link flags.
9287         rm -rf libconftest.dylib*
9288         echo "int foo(void){return 1;}" > conftest.c
9289         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9290 -dynamiclib -Wl,-single_module conftest.c" >&5
9291         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9292           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9293         _lt_result=$?
9294         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9295           lt_cv_apple_cc_single_mod=yes
9296         else
9297           cat conftest.err >&5
9298         fi
9299         rm -rf libconftest.dylib*
9300         rm -f conftest.*
9301       fi
9302 fi
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9304 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9306 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9307 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9308   $as_echo_n "(cached) " >&6
9309 else
9310   lt_cv_ld_exported_symbols_list=no
9311       save_LDFLAGS=$LDFLAGS
9312       echo "_main" > conftest.sym
9313       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9314       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h.  */
9316
9317 int
9318 main ()
9319 {
9320
9321   ;
9322   return 0;
9323 }
9324 _ACEOF
9325 if ac_fn_c_try_link "$LINENO"; then :
9326   lt_cv_ld_exported_symbols_list=yes
9327 else
9328   lt_cv_ld_exported_symbols_list=no
9329 fi
9330 rm -f core conftest.err conftest.$ac_objext \
9331     conftest$ac_exeext conftest.$ac_ext
9332         LDFLAGS="$save_LDFLAGS"
9333
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9336 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9338 $as_echo_n "checking for -force_load linker flag... " >&6; }
9339 if ${lt_cv_ld_force_load+:} false; then :
9340   $as_echo_n "(cached) " >&6
9341 else
9342   lt_cv_ld_force_load=no
9343       cat > conftest.c << _LT_EOF
9344 int forced_loaded() { return 2;}
9345 _LT_EOF
9346       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9347       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9348       echo "$AR cru libconftest.a conftest.o" >&5
9349       $AR cru libconftest.a conftest.o 2>&5
9350       echo "$RANLIB libconftest.a" >&5
9351       $RANLIB libconftest.a 2>&5
9352       cat > conftest.c << _LT_EOF
9353 int main() { return 0;}
9354 _LT_EOF
9355       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9356       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9357       _lt_result=$?
9358       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9359         lt_cv_ld_force_load=yes
9360       else
9361         cat conftest.err >&5
9362       fi
9363         rm -f conftest.err libconftest.a conftest conftest.c
9364         rm -rf conftest.dSYM
9365
9366 fi
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9368 $as_echo "$lt_cv_ld_force_load" >&6; }
9369     case $host_os in
9370     rhapsody* | darwin1.[012])
9371       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9372     darwin1.*)
9373       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9374     darwin*) # darwin 5.x on
9375       # if running on 10.5 or later, the deployment target defaults
9376       # to the OS version, if on x86, and 10.4, the deployment
9377       # target defaults to 10.4. Don't you love it?
9378       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9379         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9380           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9381         10.[012]*)
9382           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9383         10.*)
9384           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9385       esac
9386     ;;
9387   esac
9388     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9389       _lt_dar_single_mod='$single_module'
9390     fi
9391     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9392       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9393     else
9394       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9395     fi
9396     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9397       _lt_dsymutil='~$DSYMUTIL $lib || :'
9398     else
9399       _lt_dsymutil=
9400     fi
9401     ;;
9402   esac
9403
9404 for ac_header in dlfcn.h
9405 do :
9406   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9407 "
9408 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9409   cat >>confdefs.h <<_ACEOF
9410 #define HAVE_DLFCN_H 1
9411 _ACEOF
9412
9413 fi
9414
9415 done
9416
9417
9418
9419
9420
9421 # Set options
9422
9423
9424
9425         enable_dlopen=no
9426
9427
9428
9429             # Check whether --enable-shared was given.
9430 if test "${enable_shared+set}" = set; then :
9431   enableval=$enable_shared; p=${PACKAGE-default}
9432     case $enableval in
9433     yes) enable_shared=yes ;;
9434     no) enable_shared=no ;;
9435     *)
9436       enable_shared=no
9437       # Look at the argument we got.  We use all the common list separators.
9438       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9439       for pkg in $enableval; do
9440         IFS="$lt_save_ifs"
9441         if test "X$pkg" = "X$p"; then
9442           enable_shared=yes
9443         fi
9444       done
9445       IFS="$lt_save_ifs"
9446       ;;
9447     esac
9448 else
9449   enable_shared=yes
9450 fi
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460   # Check whether --enable-static was given.
9461 if test "${enable_static+set}" = set; then :
9462   enableval=$enable_static; p=${PACKAGE-default}
9463     case $enableval in
9464     yes) enable_static=yes ;;
9465     no) enable_static=no ;;
9466     *)
9467      enable_static=no
9468       # Look at the argument we got.  We use all the common list separators.
9469       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9470       for pkg in $enableval; do
9471         IFS="$lt_save_ifs"
9472         if test "X$pkg" = "X$p"; then
9473           enable_static=yes
9474         fi
9475       done
9476       IFS="$lt_save_ifs"
9477       ;;
9478     esac
9479 else
9480   enable_static=yes
9481 fi
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492 # Check whether --with-pic was given.
9493 if test "${with_pic+set}" = set; then :
9494   withval=$with_pic; pic_mode="$withval"
9495 else
9496   pic_mode=default
9497 fi
9498
9499
9500 test -z "$pic_mode" && pic_mode=default
9501
9502
9503
9504
9505
9506
9507
9508   # Check whether --enable-fast-install was given.
9509 if test "${enable_fast_install+set}" = set; then :
9510   enableval=$enable_fast_install; p=${PACKAGE-default}
9511     case $enableval in
9512     yes) enable_fast_install=yes ;;
9513     no) enable_fast_install=no ;;
9514     *)
9515       enable_fast_install=no
9516       # Look at the argument we got.  We use all the common list separators.
9517       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9518       for pkg in $enableval; do
9519         IFS="$lt_save_ifs"
9520         if test "X$pkg" = "X$p"; then
9521           enable_fast_install=yes
9522         fi
9523       done
9524       IFS="$lt_save_ifs"
9525       ;;
9526     esac
9527 else
9528   enable_fast_install=yes
9529 fi
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541 # This can be used to rebuild libtool when needed
9542 LIBTOOL_DEPS="$ltmain"
9543
9544 # Always use our own libtool.
9545 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572 test -z "$LN_S" && LN_S="ln -s"
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587 if test -n "${ZSH_VERSION+set}" ; then
9588    setopt NO_GLOB_SUBST
9589 fi
9590
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9592 $as_echo_n "checking for objdir... " >&6; }
9593 if ${lt_cv_objdir+:} false; then :
9594   $as_echo_n "(cached) " >&6
9595 else
9596   rm -f .libs 2>/dev/null
9597 mkdir .libs 2>/dev/null
9598 if test -d .libs; then
9599   lt_cv_objdir=.libs
9600 else
9601   # MS-DOS does not allow filenames that begin with a dot.
9602   lt_cv_objdir=_libs
9603 fi
9604 rmdir .libs 2>/dev/null
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9607 $as_echo "$lt_cv_objdir" >&6; }
9608 objdir=$lt_cv_objdir
9609
9610
9611
9612
9613
9614 cat >>confdefs.h <<_ACEOF
9615 #define LT_OBJDIR "$lt_cv_objdir/"
9616 _ACEOF
9617
9618
9619
9620
9621 case $host_os in
9622 aix3*)
9623   # AIX sometimes has problems with the GCC collect2 program.  For some
9624   # reason, if we set the COLLECT_NAMES environment variable, the problems
9625   # vanish in a puff of smoke.
9626   if test "X${COLLECT_NAMES+set}" != Xset; then
9627     COLLECT_NAMES=
9628     export COLLECT_NAMES
9629   fi
9630   ;;
9631 esac
9632
9633 # Global variables:
9634 ofile=libtool
9635 can_build_shared=yes
9636
9637 # All known linkers require a `.a' archive for static linking (except MSVC,
9638 # which needs '.lib').
9639 libext=a
9640
9641 with_gnu_ld="$lt_cv_prog_gnu_ld"
9642
9643 old_CC="$CC"
9644 old_CFLAGS="$CFLAGS"
9645
9646 # Set sane defaults for various variables
9647 test -z "$CC" && CC=cc
9648 test -z "$LTCC" && LTCC=$CC
9649 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9650 test -z "$LD" && LD=ld
9651 test -z "$ac_objext" && ac_objext=o
9652
9653 for cc_temp in $compiler""; do
9654   case $cc_temp in
9655     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9656     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9657     \-*) ;;
9658     *) break;;
9659   esac
9660 done
9661 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9662
9663
9664 # Only perform the check for file, if the check method requires it
9665 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9666 case $deplibs_check_method in
9667 file_magic*)
9668   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9670 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9671 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9672   $as_echo_n "(cached) " >&6
9673 else
9674   case $MAGIC_CMD in
9675 [\\/*] |  ?:[\\/]*)
9676   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9677   ;;
9678 *)
9679   lt_save_MAGIC_CMD="$MAGIC_CMD"
9680   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9681   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9682   for ac_dir in $ac_dummy; do
9683     IFS="$lt_save_ifs"
9684     test -z "$ac_dir" && ac_dir=.
9685     if test -f $ac_dir/${ac_tool_prefix}file; then
9686       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9687       if test -n "$file_magic_test_file"; then
9688         case $deplibs_check_method in
9689         "file_magic "*)
9690           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9691           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9692           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9693             $EGREP "$file_magic_regex" > /dev/null; then
9694             :
9695           else
9696             cat <<_LT_EOF 1>&2
9697
9698 *** Warning: the command libtool uses to detect shared libraries,
9699 *** $file_magic_cmd, produces output that libtool cannot recognize.
9700 *** The result is that libtool may fail to recognize shared libraries
9701 *** as such.  This will affect the creation of libtool libraries that
9702 *** depend on shared libraries, but programs linked with such libtool
9703 *** libraries will work regardless of this problem.  Nevertheless, you
9704 *** may want to report the problem to your system manager and/or to
9705 *** bug-libtool@gnu.org
9706
9707 _LT_EOF
9708           fi ;;
9709         esac
9710       fi
9711       break
9712     fi
9713   done
9714   IFS="$lt_save_ifs"
9715   MAGIC_CMD="$lt_save_MAGIC_CMD"
9716   ;;
9717 esac
9718 fi
9719
9720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9721 if test -n "$MAGIC_CMD"; then
9722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9723 $as_echo "$MAGIC_CMD" >&6; }
9724 else
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726 $as_echo "no" >&6; }
9727 fi
9728
9729
9730
9731
9732
9733 if test -z "$lt_cv_path_MAGIC_CMD"; then
9734   if test -n "$ac_tool_prefix"; then
9735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9736 $as_echo_n "checking for file... " >&6; }
9737 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9738   $as_echo_n "(cached) " >&6
9739 else
9740   case $MAGIC_CMD in
9741 [\\/*] |  ?:[\\/]*)
9742   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9743   ;;
9744 *)
9745   lt_save_MAGIC_CMD="$MAGIC_CMD"
9746   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9747   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9748   for ac_dir in $ac_dummy; do
9749     IFS="$lt_save_ifs"
9750     test -z "$ac_dir" && ac_dir=.
9751     if test -f $ac_dir/file; then
9752       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9753       if test -n "$file_magic_test_file"; then
9754         case $deplibs_check_method in
9755         "file_magic "*)
9756           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9757           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9758           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9759             $EGREP "$file_magic_regex" > /dev/null; then
9760             :
9761           else
9762             cat <<_LT_EOF 1>&2
9763
9764 *** Warning: the command libtool uses to detect shared libraries,
9765 *** $file_magic_cmd, produces output that libtool cannot recognize.
9766 *** The result is that libtool may fail to recognize shared libraries
9767 *** as such.  This will affect the creation of libtool libraries that
9768 *** depend on shared libraries, but programs linked with such libtool
9769 *** libraries will work regardless of this problem.  Nevertheless, you
9770 *** may want to report the problem to your system manager and/or to
9771 *** bug-libtool@gnu.org
9772
9773 _LT_EOF
9774           fi ;;
9775         esac
9776       fi
9777       break
9778     fi
9779   done
9780   IFS="$lt_save_ifs"
9781   MAGIC_CMD="$lt_save_MAGIC_CMD"
9782   ;;
9783 esac
9784 fi
9785
9786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9787 if test -n "$MAGIC_CMD"; then
9788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9789 $as_echo "$MAGIC_CMD" >&6; }
9790 else
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; }
9793 fi
9794
9795
9796   else
9797     MAGIC_CMD=:
9798   fi
9799 fi
9800
9801   fi
9802   ;;
9803 esac
9804
9805 # Use C for the default configuration in the libtool script
9806
9807 lt_save_CC="$CC"
9808 ac_ext=c
9809 ac_cpp='$CPP $CPPFLAGS'
9810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9813
9814
9815 # Source file extension for C test sources.
9816 ac_ext=c
9817
9818 # Object file extension for compiled C test sources.
9819 objext=o
9820 objext=$objext
9821
9822 # Code to be used in simple compile tests
9823 lt_simple_compile_test_code="int some_variable = 0;"
9824
9825 # Code to be used in simple link tests
9826 lt_simple_link_test_code='int main(){return(0);}'
9827
9828
9829
9830
9831
9832
9833
9834 # If no C compiler was specified, use CC.
9835 LTCC=${LTCC-"$CC"}
9836
9837 # If no C compiler flags were specified, use CFLAGS.
9838 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9839
9840 # Allow CC to be a program name with arguments.
9841 compiler=$CC
9842
9843 # Save the default compiler, since it gets overwritten when the other
9844 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9845 compiler_DEFAULT=$CC
9846
9847 # save warnings/boilerplate of simple test code
9848 ac_outfile=conftest.$ac_objext
9849 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9850 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9851 _lt_compiler_boilerplate=`cat conftest.err`
9852 $RM conftest*
9853
9854 ac_outfile=conftest.$ac_objext
9855 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9856 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9857 _lt_linker_boilerplate=`cat conftest.err`
9858 $RM -r conftest*
9859
9860
9861 if test -n "$compiler"; then
9862
9863 lt_prog_compiler_no_builtin_flag=
9864
9865 if test "$GCC" = yes; then
9866   case $cc_basename in
9867   nvcc*)
9868     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9869   *)
9870     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9871   esac
9872
9873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9874 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9875 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9876   $as_echo_n "(cached) " >&6
9877 else
9878   lt_cv_prog_compiler_rtti_exceptions=no
9879    ac_outfile=conftest.$ac_objext
9880    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881    lt_compiler_flag="-fno-rtti -fno-exceptions"
9882    # Insert the option either (1) after the last *FLAGS variable, or
9883    # (2) before a word containing "conftest.", or (3) at the end.
9884    # Note that $ac_compile itself does not contain backslashes and begins
9885    # with a dollar sign (not a hyphen), so the echo should work correctly.
9886    # The option is referenced via a variable to avoid confusing sed.
9887    lt_compile=`echo "$ac_compile" | $SED \
9888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9890    -e 's:$: $lt_compiler_flag:'`
9891    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9892    (eval "$lt_compile" 2>conftest.err)
9893    ac_status=$?
9894    cat conftest.err >&5
9895    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896    if (exit $ac_status) && test -s "$ac_outfile"; then
9897      # The compiler can only warn and ignore the option if not recognized
9898      # So say no if there are warnings other than the usual output.
9899      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9900      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9901      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9902        lt_cv_prog_compiler_rtti_exceptions=yes
9903      fi
9904    fi
9905    $RM conftest*
9906
9907 fi
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9909 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9910
9911 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9912     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9913 else
9914     :
9915 fi
9916
9917 fi
9918
9919
9920
9921
9922
9923
9924   lt_prog_compiler_wl=
9925 lt_prog_compiler_pic=
9926 lt_prog_compiler_static=
9927
9928
9929   if test "$GCC" = yes; then
9930     lt_prog_compiler_wl='-Wl,'
9931     lt_prog_compiler_static='-static'
9932
9933     case $host_os in
9934       aix*)
9935       # All AIX code is PIC.
9936       if test "$host_cpu" = ia64; then
9937         # AIX 5 now supports IA64 processor
9938         lt_prog_compiler_static='-Bstatic'
9939       fi
9940       ;;
9941
9942     amigaos*)
9943       case $host_cpu in
9944       powerpc)
9945             # see comment about AmigaOS4 .so support
9946             lt_prog_compiler_pic='-fPIC'
9947         ;;
9948       m68k)
9949             # FIXME: we need at least 68020 code to build shared libraries, but
9950             # adding the `-m68020' flag to GCC prevents building anything better,
9951             # like `-m68040'.
9952             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9953         ;;
9954       esac
9955       ;;
9956
9957     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9958       # PIC is the default for these OSes.
9959       ;;
9960
9961     mingw* | cygwin* | pw32* | os2* | cegcc*)
9962       # This hack is so that the source file can tell whether it is being
9963       # built for inclusion in a dll (and should export symbols for example).
9964       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9965       # (--disable-auto-import) libraries
9966       lt_prog_compiler_pic='-DDLL_EXPORT'
9967       ;;
9968
9969     darwin* | rhapsody*)
9970       # PIC is the default on this platform
9971       # Common symbols not allowed in MH_DYLIB files
9972       lt_prog_compiler_pic='-fno-common'
9973       ;;
9974
9975     haiku*)
9976       # PIC is the default for Haiku.
9977       # The "-static" flag exists, but is broken.
9978       lt_prog_compiler_static=
9979       ;;
9980
9981     hpux*)
9982       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9983       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9984       # sets the default TLS model and affects inlining.
9985       case $host_cpu in
9986       hppa*64*)
9987         # +Z the default
9988         ;;
9989       *)
9990         lt_prog_compiler_pic='-fPIC'
9991         ;;
9992       esac
9993       ;;
9994
9995     interix[3-9]*)
9996       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9997       # Instead, we relocate shared libraries at runtime.
9998       ;;
9999
10000     msdosdjgpp*)
10001       # Just because we use GCC doesn't mean we suddenly get shared libraries
10002       # on systems that don't support them.
10003       lt_prog_compiler_can_build_shared=no
10004       enable_shared=no
10005       ;;
10006
10007     *nto* | *qnx*)
10008       # QNX uses GNU C++, but need to define -shared option too, otherwise
10009       # it will coredump.
10010       lt_prog_compiler_pic='-fPIC -shared'
10011       ;;
10012
10013     sysv4*MP*)
10014       if test -d /usr/nec; then
10015         lt_prog_compiler_pic=-Kconform_pic
10016       fi
10017       ;;
10018
10019     *)
10020       lt_prog_compiler_pic='-fPIC'
10021       ;;
10022     esac
10023
10024     case $cc_basename in
10025     nvcc*) # Cuda Compiler Driver 2.2
10026       lt_prog_compiler_wl='-Xlinker '
10027       lt_prog_compiler_pic='-Xcompiler -fPIC'
10028       ;;
10029     esac
10030   else
10031     # PORTME Check for flag to pass linker flags through the system compiler.
10032     case $host_os in
10033     aix*)
10034       lt_prog_compiler_wl='-Wl,'
10035       if test "$host_cpu" = ia64; then
10036         # AIX 5 now supports IA64 processor
10037         lt_prog_compiler_static='-Bstatic'
10038       else
10039         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10040       fi
10041       ;;
10042
10043     mingw* | cygwin* | pw32* | os2* | cegcc*)
10044       # This hack is so that the source file can tell whether it is being
10045       # built for inclusion in a dll (and should export symbols for example).
10046       lt_prog_compiler_pic='-DDLL_EXPORT'
10047       ;;
10048
10049     hpux9* | hpux10* | hpux11*)
10050       lt_prog_compiler_wl='-Wl,'
10051       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10052       # not for PA HP-UX.
10053       case $host_cpu in
10054       hppa*64*|ia64*)
10055         # +Z the default
10056         ;;
10057       *)
10058         lt_prog_compiler_pic='+Z'
10059         ;;
10060       esac
10061       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10062       lt_prog_compiler_static='${wl}-a ${wl}archive'
10063       ;;
10064
10065     irix5* | irix6* | nonstopux*)
10066       lt_prog_compiler_wl='-Wl,'
10067       # PIC (with -KPIC) is the default.
10068       lt_prog_compiler_static='-non_shared'
10069       ;;
10070
10071     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10072       case $cc_basename in
10073       # old Intel for x86_64 which still supported -KPIC.
10074       ecc*)
10075         lt_prog_compiler_wl='-Wl,'
10076         lt_prog_compiler_pic='-KPIC'
10077         lt_prog_compiler_static='-static'
10078         ;;
10079       # icc used to be incompatible with GCC.
10080       # ICC 10 doesn't accept -KPIC any more.
10081       icc* | ifort*)
10082         lt_prog_compiler_wl='-Wl,'
10083         lt_prog_compiler_pic='-fPIC'
10084         lt_prog_compiler_static='-static'
10085         ;;
10086       # Lahey Fortran 8.1.
10087       lf95*)
10088         lt_prog_compiler_wl='-Wl,'
10089         lt_prog_compiler_pic='--shared'
10090         lt_prog_compiler_static='--static'
10091         ;;
10092       nagfor*)
10093         # NAG Fortran compiler
10094         lt_prog_compiler_wl='-Wl,-Wl,,'
10095         lt_prog_compiler_pic='-PIC'
10096         lt_prog_compiler_static='-Bstatic'
10097         ;;
10098       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10099         # Portland Group compilers (*not* the Pentium gcc compiler,
10100         # which looks to be a dead project)
10101         lt_prog_compiler_wl='-Wl,'
10102         lt_prog_compiler_pic='-fpic'
10103         lt_prog_compiler_static='-Bstatic'
10104         ;;
10105       ccc*)
10106         lt_prog_compiler_wl='-Wl,'
10107         # All Alpha code is PIC.
10108         lt_prog_compiler_static='-non_shared'
10109         ;;
10110       xl* | bgxl* | bgf* | mpixl*)
10111         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10112         lt_prog_compiler_wl='-Wl,'
10113         lt_prog_compiler_pic='-qpic'
10114         lt_prog_compiler_static='-qstaticlink'
10115         ;;
10116       *)
10117         case `$CC -V 2>&1 | sed 5q` in
10118         *Sun\ F* | *Sun*Fortran*)
10119           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10120           lt_prog_compiler_pic='-KPIC'
10121           lt_prog_compiler_static='-Bstatic'
10122           lt_prog_compiler_wl=''
10123           ;;
10124         *Sun\ C*)
10125           # Sun C 5.9
10126           lt_prog_compiler_pic='-KPIC'
10127           lt_prog_compiler_static='-Bstatic'
10128           lt_prog_compiler_wl='-Wl,'
10129           ;;
10130         esac
10131         ;;
10132       esac
10133       ;;
10134
10135     newsos6)
10136       lt_prog_compiler_pic='-KPIC'
10137       lt_prog_compiler_static='-Bstatic'
10138       ;;
10139
10140     *nto* | *qnx*)
10141       # QNX uses GNU C++, but need to define -shared option too, otherwise
10142       # it will coredump.
10143       lt_prog_compiler_pic='-fPIC -shared'
10144       ;;
10145
10146     osf3* | osf4* | osf5*)
10147       lt_prog_compiler_wl='-Wl,'
10148       # All OSF/1 code is PIC.
10149       lt_prog_compiler_static='-non_shared'
10150       ;;
10151
10152     rdos*)
10153       lt_prog_compiler_static='-non_shared'
10154       ;;
10155
10156     solaris*)
10157       lt_prog_compiler_pic='-KPIC'
10158       lt_prog_compiler_static='-Bstatic'
10159       case $cc_basename in
10160       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10161         lt_prog_compiler_wl='-Qoption ld ';;
10162       *)
10163         lt_prog_compiler_wl='-Wl,';;
10164       esac
10165       ;;
10166
10167     sunos4*)
10168       lt_prog_compiler_wl='-Qoption ld '
10169       lt_prog_compiler_pic='-PIC'
10170       lt_prog_compiler_static='-Bstatic'
10171       ;;
10172
10173     sysv4 | sysv4.2uw2* | sysv4.3*)
10174       lt_prog_compiler_wl='-Wl,'
10175       lt_prog_compiler_pic='-KPIC'
10176       lt_prog_compiler_static='-Bstatic'
10177       ;;
10178
10179     sysv4*MP*)
10180       if test -d /usr/nec ;then
10181         lt_prog_compiler_pic='-Kconform_pic'
10182         lt_prog_compiler_static='-Bstatic'
10183       fi
10184       ;;
10185
10186     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10187       lt_prog_compiler_wl='-Wl,'
10188       lt_prog_compiler_pic='-KPIC'
10189       lt_prog_compiler_static='-Bstatic'
10190       ;;
10191
10192     unicos*)
10193       lt_prog_compiler_wl='-Wl,'
10194       lt_prog_compiler_can_build_shared=no
10195       ;;
10196
10197     uts4*)
10198       lt_prog_compiler_pic='-pic'
10199       lt_prog_compiler_static='-Bstatic'
10200       ;;
10201
10202     *)
10203       lt_prog_compiler_can_build_shared=no
10204       ;;
10205     esac
10206   fi
10207
10208 case $host_os in
10209   # For platforms which do not support PIC, -DPIC is meaningless:
10210   *djgpp*)
10211     lt_prog_compiler_pic=
10212     ;;
10213   *)
10214     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10215     ;;
10216 esac
10217
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10219 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10220 if ${lt_cv_prog_compiler_pic+:} false; then :
10221   $as_echo_n "(cached) " >&6
10222 else
10223   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10224 fi
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10226 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10227 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10228
10229 #
10230 # Check to make sure the PIC flag actually works.
10231 #
10232 if test -n "$lt_prog_compiler_pic"; then
10233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10235 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10236   $as_echo_n "(cached) " >&6
10237 else
10238   lt_cv_prog_compiler_pic_works=no
10239    ac_outfile=conftest.$ac_objext
10240    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10241    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10242    # Insert the option either (1) after the last *FLAGS variable, or
10243    # (2) before a word containing "conftest.", or (3) at the end.
10244    # Note that $ac_compile itself does not contain backslashes and begins
10245    # with a dollar sign (not a hyphen), so the echo should work correctly.
10246    # The option is referenced via a variable to avoid confusing sed.
10247    lt_compile=`echo "$ac_compile" | $SED \
10248    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10250    -e 's:$: $lt_compiler_flag:'`
10251    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10252    (eval "$lt_compile" 2>conftest.err)
10253    ac_status=$?
10254    cat conftest.err >&5
10255    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256    if (exit $ac_status) && test -s "$ac_outfile"; then
10257      # The compiler can only warn and ignore the option if not recognized
10258      # So say no if there are warnings other than the usual output.
10259      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10260      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10261      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10262        lt_cv_prog_compiler_pic_works=yes
10263      fi
10264    fi
10265    $RM conftest*
10266
10267 fi
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10269 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10270
10271 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10272     case $lt_prog_compiler_pic in
10273      "" | " "*) ;;
10274      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10275      esac
10276 else
10277     lt_prog_compiler_pic=
10278      lt_prog_compiler_can_build_shared=no
10279 fi
10280
10281 fi
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293 #
10294 # Check to make sure the static flag actually works.
10295 #
10296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10299 if ${lt_cv_prog_compiler_static_works+:} false; then :
10300   $as_echo_n "(cached) " >&6
10301 else
10302   lt_cv_prog_compiler_static_works=no
10303    save_LDFLAGS="$LDFLAGS"
10304    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10305    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10306    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10307      # The linker can only warn and ignore the option if not recognized
10308      # So say no if there are warnings
10309      if test -s conftest.err; then
10310        # Append any errors to the config.log.
10311        cat conftest.err 1>&5
10312        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10313        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10314        if diff conftest.exp conftest.er2 >/dev/null; then
10315          lt_cv_prog_compiler_static_works=yes
10316        fi
10317      else
10318        lt_cv_prog_compiler_static_works=yes
10319      fi
10320    fi
10321    $RM -r conftest*
10322    LDFLAGS="$save_LDFLAGS"
10323
10324 fi
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10326 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10327
10328 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10329     :
10330 else
10331     lt_prog_compiler_static=
10332 fi
10333
10334
10335
10336
10337
10338
10339
10340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10342 if ${lt_cv_prog_compiler_c_o+:} false; then :
10343   $as_echo_n "(cached) " >&6
10344 else
10345   lt_cv_prog_compiler_c_o=no
10346    $RM -r conftest 2>/dev/null
10347    mkdir conftest
10348    cd conftest
10349    mkdir out
10350    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10351
10352    lt_compiler_flag="-o out/conftest2.$ac_objext"
10353    # Insert the option either (1) after the last *FLAGS variable, or
10354    # (2) before a word containing "conftest.", or (3) at the end.
10355    # Note that $ac_compile itself does not contain backslashes and begins
10356    # with a dollar sign (not a hyphen), so the echo should work correctly.
10357    lt_compile=`echo "$ac_compile" | $SED \
10358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10360    -e 's:$: $lt_compiler_flag:'`
10361    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10362    (eval "$lt_compile" 2>out/conftest.err)
10363    ac_status=$?
10364    cat out/conftest.err >&5
10365    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10367    then
10368      # The compiler can only warn and ignore the option if not recognized
10369      # So say no if there are warnings
10370      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10371      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10372      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10373        lt_cv_prog_compiler_c_o=yes
10374      fi
10375    fi
10376    chmod u+w . 2>&5
10377    $RM conftest*
10378    # SGI C++ compiler will create directory out/ii_files/ for
10379    # template instantiation
10380    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10381    $RM out/* && rmdir out
10382    cd ..
10383    $RM -r conftest
10384    $RM conftest*
10385
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10389
10390
10391
10392
10393
10394
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10397 if ${lt_cv_prog_compiler_c_o+:} false; then :
10398   $as_echo_n "(cached) " >&6
10399 else
10400   lt_cv_prog_compiler_c_o=no
10401    $RM -r conftest 2>/dev/null
10402    mkdir conftest
10403    cd conftest
10404    mkdir out
10405    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10406
10407    lt_compiler_flag="-o out/conftest2.$ac_objext"
10408    # Insert the option either (1) after the last *FLAGS variable, or
10409    # (2) before a word containing "conftest.", or (3) at the end.
10410    # Note that $ac_compile itself does not contain backslashes and begins
10411    # with a dollar sign (not a hyphen), so the echo should work correctly.
10412    lt_compile=`echo "$ac_compile" | $SED \
10413    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10414    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10415    -e 's:$: $lt_compiler_flag:'`
10416    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10417    (eval "$lt_compile" 2>out/conftest.err)
10418    ac_status=$?
10419    cat out/conftest.err >&5
10420    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10422    then
10423      # The compiler can only warn and ignore the option if not recognized
10424      # So say no if there are warnings
10425      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10426      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10427      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10428        lt_cv_prog_compiler_c_o=yes
10429      fi
10430    fi
10431    chmod u+w . 2>&5
10432    $RM conftest*
10433    # SGI C++ compiler will create directory out/ii_files/ for
10434    # template instantiation
10435    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10436    $RM out/* && rmdir out
10437    cd ..
10438    $RM -r conftest
10439    $RM conftest*
10440
10441 fi
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10444
10445
10446
10447
10448 hard_links="nottested"
10449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10450   # do not overwrite the value of need_locks provided by the user
10451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10452 $as_echo_n "checking if we can lock with hard links... " >&6; }
10453   hard_links=yes
10454   $RM conftest*
10455   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10456   touch conftest.a
10457   ln conftest.a conftest.b 2>&5 || hard_links=no
10458   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10460 $as_echo "$hard_links" >&6; }
10461   if test "$hard_links" = no; then
10462     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10463 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10464     need_locks=warn
10465   fi
10466 else
10467   need_locks=no
10468 fi
10469
10470
10471
10472
10473
10474
10475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10476 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10477
10478   runpath_var=
10479   allow_undefined_flag=
10480   always_export_symbols=no
10481   archive_cmds=
10482   archive_expsym_cmds=
10483   compiler_needs_object=no
10484   enable_shared_with_static_runtimes=no
10485   export_dynamic_flag_spec=
10486   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10487   hardcode_automatic=no
10488   hardcode_direct=no
10489   hardcode_direct_absolute=no
10490   hardcode_libdir_flag_spec=
10491   hardcode_libdir_flag_spec_ld=
10492   hardcode_libdir_separator=
10493   hardcode_minus_L=no
10494   hardcode_shlibpath_var=unsupported
10495   inherit_rpath=no
10496   link_all_deplibs=unknown
10497   module_cmds=
10498   module_expsym_cmds=
10499   old_archive_from_new_cmds=
10500   old_archive_from_expsyms_cmds=
10501   thread_safe_flag_spec=
10502   whole_archive_flag_spec=
10503   # include_expsyms should be a list of space-separated symbols to be *always*
10504   # included in the symbol list
10505   include_expsyms=
10506   # exclude_expsyms can be an extended regexp of symbols to exclude
10507   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10508   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10509   # as well as any symbol that contains `d'.
10510   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10511   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10512   # platforms (ab)use it in PIC code, but their linkers get confused if
10513   # the symbol is explicitly referenced.  Since portable code cannot
10514   # rely on this symbol name, it's probably fine to never include it in
10515   # preloaded symbol tables.
10516   # Exclude shared library initialization/finalization symbols.
10517   extract_expsyms_cmds=
10518
10519   case $host_os in
10520   cygwin* | mingw* | pw32* | cegcc*)
10521     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10522     # When not using gcc, we currently assume that we are using
10523     # Microsoft Visual C++.
10524     if test "$GCC" != yes; then
10525       with_gnu_ld=no
10526     fi
10527     ;;
10528   interix*)
10529     # we just hope/assume this is gcc and not c89 (= MSVC++)
10530     with_gnu_ld=yes
10531     ;;
10532   openbsd*)
10533     with_gnu_ld=no
10534     ;;
10535   esac
10536
10537   ld_shlibs=yes
10538
10539   # On some targets, GNU ld is compatible enough with the native linker
10540   # that we're better off using the native interface for both.
10541   lt_use_gnu_ld_interface=no
10542   if test "$with_gnu_ld" = yes; then
10543     case $host_os in
10544       aix*)
10545         # The AIX port of GNU ld has always aspired to compatibility
10546         # with the native linker.  However, as the warning in the GNU ld
10547         # block says, versions before 2.19.5* couldn't really create working
10548         # shared libraries, regardless of the interface used.
10549         case `$LD -v 2>&1` in
10550           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10551           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10552           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10553           *)
10554             lt_use_gnu_ld_interface=yes
10555             ;;
10556         esac
10557         ;;
10558       *)
10559         lt_use_gnu_ld_interface=yes
10560         ;;
10561     esac
10562   fi
10563
10564   if test "$lt_use_gnu_ld_interface" = yes; then
10565     # If archive_cmds runs LD, not CC, wlarc should be empty
10566     wlarc='${wl}'
10567
10568     # Set some defaults for GNU ld with shared library support. These
10569     # are reset later if shared libraries are not supported. Putting them
10570     # here allows them to be overridden if necessary.
10571     runpath_var=LD_RUN_PATH
10572     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10573     export_dynamic_flag_spec='${wl}--export-dynamic'
10574     # ancient GNU ld didn't support --whole-archive et. al.
10575     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10576       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10577     else
10578       whole_archive_flag_spec=
10579     fi
10580     supports_anon_versioning=no
10581     case `$LD -v 2>&1` in
10582       *GNU\ gold*) supports_anon_versioning=yes ;;
10583       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10584       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10585       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10586       *\ 2.11.*) ;; # other 2.11 versions
10587       *) supports_anon_versioning=yes ;;
10588     esac
10589
10590     # See if GNU ld supports shared libraries.
10591     case $host_os in
10592     aix[3-9]*)
10593       # On AIX/PPC, the GNU linker is very broken
10594       if test "$host_cpu" != ia64; then
10595         ld_shlibs=no
10596         cat <<_LT_EOF 1>&2
10597
10598 *** Warning: the GNU linker, at least up to release 2.19, is reported
10599 *** to be unable to reliably create shared libraries on AIX.
10600 *** Therefore, libtool is disabling shared libraries support.  If you
10601 *** really care for shared libraries, you may want to install binutils
10602 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10603 *** You will then need to restart the configuration process.
10604
10605 _LT_EOF
10606       fi
10607       ;;
10608
10609     amigaos*)
10610       case $host_cpu in
10611       powerpc)
10612             # see comment about AmigaOS4 .so support
10613             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10614             archive_expsym_cmds=''
10615         ;;
10616       m68k)
10617             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)'
10618             hardcode_libdir_flag_spec='-L$libdir'
10619             hardcode_minus_L=yes
10620         ;;
10621       esac
10622       ;;
10623
10624     beos*)
10625       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10626         allow_undefined_flag=unsupported
10627         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10628         # support --undefined.  This deserves some investigation.  FIXME
10629         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10630       else
10631         ld_shlibs=no
10632       fi
10633       ;;
10634
10635     cygwin* | mingw* | pw32* | cegcc*)
10636       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10637       # as there is no search path for DLLs.
10638       hardcode_libdir_flag_spec='-L$libdir'
10639       export_dynamic_flag_spec='${wl}--export-all-symbols'
10640       allow_undefined_flag=unsupported
10641       always_export_symbols=no
10642       enable_shared_with_static_runtimes=yes
10643       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10644       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10645
10646       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10647         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10648         # If the export-symbols file already is a .def file (1st line
10649         # is EXPORTS), use it as is; otherwise, prepend...
10650         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10651           cp $export_symbols $output_objdir/$soname.def;
10652         else
10653           echo EXPORTS > $output_objdir/$soname.def;
10654           cat $export_symbols >> $output_objdir/$soname.def;
10655         fi~
10656         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10657       else
10658         ld_shlibs=no
10659       fi
10660       ;;
10661
10662     haiku*)
10663       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10664       link_all_deplibs=yes
10665       ;;
10666
10667     interix[3-9]*)
10668       hardcode_direct=no
10669       hardcode_shlibpath_var=no
10670       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10671       export_dynamic_flag_spec='${wl}-E'
10672       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10673       # Instead, shared libraries are loaded at an image base (0x10000000 by
10674       # default) and relocated if they conflict, which is a slow very memory
10675       # consuming and fragmenting process.  To avoid this, we pick a random,
10676       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10677       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10678       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10679       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'
10680       ;;
10681
10682     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10683       tmp_diet=no
10684       if test "$host_os" = linux-dietlibc; then
10685         case $cc_basename in
10686           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10687         esac
10688       fi
10689       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10690          && test "$tmp_diet" = no
10691       then
10692         tmp_addflag=' $pic_flag'
10693         tmp_sharedflag='-shared'
10694         case $cc_basename,$host_cpu in
10695         pgcc*)                          # Portland Group C compiler
10696           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10697           tmp_addflag=' $pic_flag'
10698           ;;
10699         pgf77* | pgf90* | pgf95* | pgfortran*)
10700                                         # Portland Group f77 and f90 compilers
10701           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10702           tmp_addflag=' $pic_flag -Mnomain' ;;
10703         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10704           tmp_addflag=' -i_dynamic' ;;
10705         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10706           tmp_addflag=' -i_dynamic -nofor_main' ;;
10707         ifc* | ifort*)                  # Intel Fortran compiler
10708           tmp_addflag=' -nofor_main' ;;
10709         lf95*)                          # Lahey Fortran 8.1
10710           whole_archive_flag_spec=
10711           tmp_sharedflag='--shared' ;;
10712         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10713           tmp_sharedflag='-qmkshrobj'
10714           tmp_addflag= ;;
10715         nvcc*)  # Cuda Compiler Driver 2.2
10716           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10717           compiler_needs_object=yes
10718           ;;
10719         esac
10720         case `$CC -V 2>&1 | sed 5q` in
10721         *Sun\ C*)                       # Sun C 5.9
10722           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10723           compiler_needs_object=yes
10724           tmp_sharedflag='-G' ;;
10725         *Sun\ F*)                       # Sun Fortran 8.3
10726           tmp_sharedflag='-G' ;;
10727         esac
10728         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10729
10730         if test "x$supports_anon_versioning" = xyes; then
10731           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10732             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10733             echo "local: *; };" >> $output_objdir/$libname.ver~
10734             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10735         fi
10736
10737         case $cc_basename in
10738         xlf* | bgf* | bgxlf* | mpixlf*)
10739           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10740           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10741           hardcode_libdir_flag_spec=
10742           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10743           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10744           if test "x$supports_anon_versioning" = xyes; then
10745             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10746               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10747               echo "local: *; };" >> $output_objdir/$libname.ver~
10748               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10749           fi
10750           ;;
10751         esac
10752       else
10753         ld_shlibs=no
10754       fi
10755       ;;
10756
10757     netbsd*)
10758       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10759         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10760         wlarc=
10761       else
10762         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10763         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10764       fi
10765       ;;
10766
10767     solaris*)
10768       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10769         ld_shlibs=no
10770         cat <<_LT_EOF 1>&2
10771
10772 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10773 *** create shared libraries on Solaris systems.  Therefore, libtool
10774 *** is disabling shared libraries support.  We urge you to upgrade GNU
10775 *** binutils to release 2.9.1 or newer.  Another option is to modify
10776 *** your PATH or compiler configuration so that the native linker is
10777 *** used, and then restart.
10778
10779 _LT_EOF
10780       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10781         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10782         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10783       else
10784         ld_shlibs=no
10785       fi
10786       ;;
10787
10788     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10789       case `$LD -v 2>&1` in
10790         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10791         ld_shlibs=no
10792         cat <<_LT_EOF 1>&2
10793
10794 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10795 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10796 *** is disabling shared libraries support.  We urge you to upgrade GNU
10797 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10798 *** your PATH or compiler configuration so that the native linker is
10799 *** used, and then restart.
10800
10801 _LT_EOF
10802         ;;
10803         *)
10804           # For security reasons, it is highly recommended that you always
10805           # use absolute paths for naming shared libraries, and exclude the
10806           # DT_RUNPATH tag from executables and libraries.  But doing so
10807           # requires that you compile everything twice, which is a pain.
10808           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10809             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10810             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10811             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10812           else
10813             ld_shlibs=no
10814           fi
10815         ;;
10816       esac
10817       ;;
10818
10819     sunos4*)
10820       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10821       wlarc=
10822       hardcode_direct=yes
10823       hardcode_shlibpath_var=no
10824       ;;
10825
10826     *)
10827       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10828         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10829         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10830       else
10831         ld_shlibs=no
10832       fi
10833       ;;
10834     esac
10835
10836     if test "$ld_shlibs" = no; then
10837       runpath_var=
10838       hardcode_libdir_flag_spec=
10839       export_dynamic_flag_spec=
10840       whole_archive_flag_spec=
10841     fi
10842   else
10843     # PORTME fill in a description of your system's linker (not GNU ld)
10844     case $host_os in
10845     aix3*)
10846       allow_undefined_flag=unsupported
10847       always_export_symbols=yes
10848       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'
10849       # Note: this linker hardcodes the directories in LIBPATH if there
10850       # are no directories specified by -L.
10851       hardcode_minus_L=yes
10852       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10853         # Neither direct hardcoding nor static linking is supported with a
10854         # broken collect2.
10855         hardcode_direct=unsupported
10856       fi
10857       ;;
10858
10859     aix[4-9]*)
10860       if test "$host_cpu" = ia64; then
10861         # On IA64, the linker does run time linking by default, so we don't
10862         # have to do anything special.
10863         aix_use_runtimelinking=no
10864         exp_sym_flag='-Bexport'
10865         no_entry_flag=""
10866       else
10867         # If we're using GNU nm, then we don't want the "-C" option.
10868         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10869         # Also, AIX nm treats weak defined symbols like other global
10870         # defined symbols, whereas GNU nm marks them as "W".
10871         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10872           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10873         else
10874           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'
10875         fi
10876         aix_use_runtimelinking=no
10877
10878         # Test if we are trying to use run time linking or normal
10879         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10880         # need to do runtime linking.
10881         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10882           for ld_flag in $LDFLAGS; do
10883           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10884             aix_use_runtimelinking=yes
10885             break
10886           fi
10887           done
10888           ;;
10889         esac
10890
10891         exp_sym_flag='-bexport'
10892         no_entry_flag='-bnoentry'
10893       fi
10894
10895       # When large executables or shared objects are built, AIX ld can
10896       # have problems creating the table of contents.  If linking a library
10897       # or program results in "error TOC overflow" add -mminimal-toc to
10898       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10899       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10900
10901       archive_cmds=''
10902       hardcode_direct=yes
10903       hardcode_direct_absolute=yes
10904       hardcode_libdir_separator=':'
10905       link_all_deplibs=yes
10906       file_list_spec='${wl}-f,'
10907
10908       if test "$GCC" = yes; then
10909         case $host_os in aix4.[012]|aix4.[012].*)
10910         # We only want to do this on AIX 4.2 and lower, the check
10911         # below for broken collect2 doesn't work under 4.3+
10912           collect2name=`${CC} -print-prog-name=collect2`
10913           if test -f "$collect2name" &&
10914            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10915           then
10916           # We have reworked collect2
10917           :
10918           else
10919           # We have old collect2
10920           hardcode_direct=unsupported
10921           # It fails to find uninstalled libraries when the uninstalled
10922           # path is not listed in the libpath.  Setting hardcode_minus_L
10923           # to unsupported forces relinking
10924           hardcode_minus_L=yes
10925           hardcode_libdir_flag_spec='-L$libdir'
10926           hardcode_libdir_separator=
10927           fi
10928           ;;
10929         esac
10930         shared_flag='-shared'
10931         if test "$aix_use_runtimelinking" = yes; then
10932           shared_flag="$shared_flag "'${wl}-G'
10933         fi
10934       else
10935         # not using gcc
10936         if test "$host_cpu" = ia64; then
10937         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10938         # chokes on -Wl,-G. The following line is correct:
10939           shared_flag='-G'
10940         else
10941           if test "$aix_use_runtimelinking" = yes; then
10942             shared_flag='${wl}-G'
10943           else
10944             shared_flag='${wl}-bM:SRE'
10945           fi
10946         fi
10947       fi
10948
10949       export_dynamic_flag_spec='${wl}-bexpall'
10950       # It seems that -bexpall does not export symbols beginning with
10951       # underscore (_), so it is better to generate a list of symbols to export.
10952       always_export_symbols=yes
10953       if test "$aix_use_runtimelinking" = yes; then
10954         # Warning - without using the other runtime loading flags (-brtl),
10955         # -berok will link without error, but may produce a broken library.
10956         allow_undefined_flag='-berok'
10957         # Determine the default libpath from the value encoded in an
10958         # empty executable.
10959         if test "${lt_cv_aix_libpath+set}" = set; then
10960   aix_libpath=$lt_cv_aix_libpath
10961 else
10962   if ${lt_cv_aix_libpath_+:} false; then :
10963   $as_echo_n "(cached) " >&6
10964 else
10965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h.  */
10967
10968 int
10969 main ()
10970 {
10971
10972   ;
10973   return 0;
10974 }
10975 _ACEOF
10976 if ac_fn_c_try_link "$LINENO"; then :
10977
10978   lt_aix_libpath_sed='
10979       /Import File Strings/,/^$/ {
10980           /^0/ {
10981               s/^0  *\([^ ]*\) *$/\1/
10982               p
10983           }
10984       }'
10985   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10986   # Check for a 64-bit object if we didn't find anything.
10987   if test -z "$lt_cv_aix_libpath_"; then
10988     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10989   fi
10990 fi
10991 rm -f core conftest.err conftest.$ac_objext \
10992     conftest$ac_exeext conftest.$ac_ext
10993   if test -z "$lt_cv_aix_libpath_"; then
10994     lt_cv_aix_libpath_="/usr/lib:/lib"
10995   fi
10996
10997 fi
10998
10999   aix_libpath=$lt_cv_aix_libpath_
11000 fi
11001
11002         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11003         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11004       else
11005         if test "$host_cpu" = ia64; then
11006           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11007           allow_undefined_flag="-z nodefs"
11008           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"
11009         else
11010          # Determine the default libpath from the value encoded in an
11011          # empty executable.
11012          if test "${lt_cv_aix_libpath+set}" = set; then
11013   aix_libpath=$lt_cv_aix_libpath
11014 else
11015   if ${lt_cv_aix_libpath_+:} false; then :
11016   $as_echo_n "(cached) " >&6
11017 else
11018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h.  */
11020
11021 int
11022 main ()
11023 {
11024
11025   ;
11026   return 0;
11027 }
11028 _ACEOF
11029 if ac_fn_c_try_link "$LINENO"; then :
11030
11031   lt_aix_libpath_sed='
11032       /Import File Strings/,/^$/ {
11033           /^0/ {
11034               s/^0  *\([^ ]*\) *$/\1/
11035               p
11036           }
11037       }'
11038   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11039   # Check for a 64-bit object if we didn't find anything.
11040   if test -z "$lt_cv_aix_libpath_"; then
11041     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11042   fi
11043 fi
11044 rm -f core conftest.err conftest.$ac_objext \
11045     conftest$ac_exeext conftest.$ac_ext
11046   if test -z "$lt_cv_aix_libpath_"; then
11047     lt_cv_aix_libpath_="/usr/lib:/lib"
11048   fi
11049
11050 fi
11051
11052   aix_libpath=$lt_cv_aix_libpath_
11053 fi
11054
11055          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11056           # Warning - without using the other run time loading flags,
11057           # -berok will link without error, but may produce a broken library.
11058           no_undefined_flag=' ${wl}-bernotok'
11059           allow_undefined_flag=' ${wl}-berok'
11060           if test "$with_gnu_ld" = yes; then
11061             # We only use this code for GNU lds that support --whole-archive.
11062             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11063           else
11064             # Exported symbols can be pulled into shared objects from archives
11065             whole_archive_flag_spec='$convenience'
11066           fi
11067           archive_cmds_need_lc=yes
11068           # This is similar to how AIX traditionally builds its shared libraries.
11069           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'
11070         fi
11071       fi
11072       ;;
11073
11074     amigaos*)
11075       case $host_cpu in
11076       powerpc)
11077             # see comment about AmigaOS4 .so support
11078             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11079             archive_expsym_cmds=''
11080         ;;
11081       m68k)
11082             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)'
11083             hardcode_libdir_flag_spec='-L$libdir'
11084             hardcode_minus_L=yes
11085         ;;
11086       esac
11087       ;;
11088
11089     bsdi[45]*)
11090       export_dynamic_flag_spec=-rdynamic
11091       ;;
11092
11093     cygwin* | mingw* | pw32* | cegcc*)
11094       # When not using gcc, we currently assume that we are using
11095       # Microsoft Visual C++.
11096       # hardcode_libdir_flag_spec is actually meaningless, as there is
11097       # no search path for DLLs.
11098       case $cc_basename in
11099       cl*)
11100         # Native MSVC
11101         hardcode_libdir_flag_spec=' '
11102         allow_undefined_flag=unsupported
11103         always_export_symbols=yes
11104         file_list_spec='@'
11105         # Tell ltmain to make .lib files, not .a files.
11106         libext=lib
11107         # Tell ltmain to make .dll files, not .so files.
11108         shrext_cmds=".dll"
11109         # FIXME: Setting linknames here is a bad hack.
11110         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11111         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11112             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11113           else
11114             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11115           fi~
11116           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11117           linknames='
11118         # The linker will not automatically build a static lib if we build a DLL.
11119         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11120         enable_shared_with_static_runtimes=yes
11121         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11122         # Don't use ranlib
11123         old_postinstall_cmds='chmod 644 $oldlib'
11124         postlink_cmds='lt_outputfile="@OUTPUT@"~
11125           lt_tool_outputfile="@TOOL_OUTPUT@"~
11126           case $lt_outputfile in
11127             *.exe|*.EXE) ;;
11128             *)
11129               lt_outputfile="$lt_outputfile.exe"
11130               lt_tool_outputfile="$lt_tool_outputfile.exe"
11131               ;;
11132           esac~
11133           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11134             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11135             $RM "$lt_outputfile.manifest";
11136           fi'
11137         ;;
11138       *)
11139         # Assume MSVC wrapper
11140         hardcode_libdir_flag_spec=' '
11141         allow_undefined_flag=unsupported
11142         # Tell ltmain to make .lib files, not .a files.
11143         libext=lib
11144         # Tell ltmain to make .dll files, not .so files.
11145         shrext_cmds=".dll"
11146         # FIXME: Setting linknames here is a bad hack.
11147         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11148         # The linker will automatically build a .lib file if we build a DLL.
11149         old_archive_from_new_cmds='true'
11150         # FIXME: Should let the user specify the lib program.
11151         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11152         enable_shared_with_static_runtimes=yes
11153         ;;
11154       esac
11155       ;;
11156
11157     darwin* | rhapsody*)
11158
11159
11160   archive_cmds_need_lc=no
11161   hardcode_direct=no
11162   hardcode_automatic=yes
11163   hardcode_shlibpath_var=unsupported
11164   if test "$lt_cv_ld_force_load" = "yes"; then
11165     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11166   else
11167     whole_archive_flag_spec=''
11168   fi
11169   link_all_deplibs=yes
11170   allow_undefined_flag="$_lt_dar_allow_undefined"
11171   case $cc_basename in
11172      ifort*) _lt_dar_can_shared=yes ;;
11173      *) _lt_dar_can_shared=$GCC ;;
11174   esac
11175   if test "$_lt_dar_can_shared" = "yes"; then
11176     output_verbose_link_cmd=func_echo_all
11177     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11178     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11179     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}"
11180     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}"
11181
11182   else
11183   ld_shlibs=no
11184   fi
11185
11186       ;;
11187
11188     dgux*)
11189       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11190       hardcode_libdir_flag_spec='-L$libdir'
11191       hardcode_shlibpath_var=no
11192       ;;
11193
11194     freebsd1*)
11195       ld_shlibs=no
11196       ;;
11197
11198     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11199     # support.  Future versions do this automatically, but an explicit c++rt0.o
11200     # does not break anything, and helps significantly (at the cost of a little
11201     # extra space).
11202     freebsd2.2*)
11203       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11204       hardcode_libdir_flag_spec='-R$libdir'
11205       hardcode_direct=yes
11206       hardcode_shlibpath_var=no
11207       ;;
11208
11209     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11210     freebsd2*)
11211       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11212       hardcode_direct=yes
11213       hardcode_minus_L=yes
11214       hardcode_shlibpath_var=no
11215       ;;
11216
11217     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11218     freebsd* | dragonfly*)
11219       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11220       hardcode_libdir_flag_spec='-R$libdir'
11221       hardcode_direct=yes
11222       hardcode_shlibpath_var=no
11223       ;;
11224
11225     hpux9*)
11226       if test "$GCC" = yes; then
11227         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11228       else
11229         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'
11230       fi
11231       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11232       hardcode_libdir_separator=:
11233       hardcode_direct=yes
11234
11235       # hardcode_minus_L: Not really in the search PATH,
11236       # but as the default location of the library.
11237       hardcode_minus_L=yes
11238       export_dynamic_flag_spec='${wl}-E'
11239       ;;
11240
11241     hpux10*)
11242       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11243         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11244       else
11245         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11246       fi
11247       if test "$with_gnu_ld" = no; then
11248         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11249         hardcode_libdir_flag_spec_ld='+b $libdir'
11250         hardcode_libdir_separator=:
11251         hardcode_direct=yes
11252         hardcode_direct_absolute=yes
11253         export_dynamic_flag_spec='${wl}-E'
11254         # hardcode_minus_L: Not really in the search PATH,
11255         # but as the default location of the library.
11256         hardcode_minus_L=yes
11257       fi
11258       ;;
11259
11260     hpux11*)
11261       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11262         case $host_cpu in
11263         hppa*64*)
11264           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11265           ;;
11266         ia64*)
11267           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11268           ;;
11269         *)
11270           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11271           ;;
11272         esac
11273       else
11274         case $host_cpu in
11275         hppa*64*)
11276           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11277           ;;
11278         ia64*)
11279           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11280           ;;
11281         *)
11282
11283           # Older versions of the 11.00 compiler do not understand -b yet
11284           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11285           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11286 $as_echo_n "checking if $CC understands -b... " >&6; }
11287 if ${lt_cv_prog_compiler__b+:} false; then :
11288   $as_echo_n "(cached) " >&6
11289 else
11290   lt_cv_prog_compiler__b=no
11291    save_LDFLAGS="$LDFLAGS"
11292    LDFLAGS="$LDFLAGS -b"
11293    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11294    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11295      # The linker can only warn and ignore the option if not recognized
11296      # So say no if there are warnings
11297      if test -s conftest.err; then
11298        # Append any errors to the config.log.
11299        cat conftest.err 1>&5
11300        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11301        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11302        if diff conftest.exp conftest.er2 >/dev/null; then
11303          lt_cv_prog_compiler__b=yes
11304        fi
11305      else
11306        lt_cv_prog_compiler__b=yes
11307      fi
11308    fi
11309    $RM -r conftest*
11310    LDFLAGS="$save_LDFLAGS"
11311
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11314 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11315
11316 if test x"$lt_cv_prog_compiler__b" = xyes; then
11317     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11318 else
11319     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11320 fi
11321
11322           ;;
11323         esac
11324       fi
11325       if test "$with_gnu_ld" = no; then
11326         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11327         hardcode_libdir_separator=:
11328
11329         case $host_cpu in
11330         hppa*64*|ia64*)
11331           hardcode_direct=no
11332           hardcode_shlibpath_var=no
11333           ;;
11334         *)
11335           hardcode_direct=yes
11336           hardcode_direct_absolute=yes
11337           export_dynamic_flag_spec='${wl}-E'
11338
11339           # hardcode_minus_L: Not really in the search PATH,
11340           # but as the default location of the library.
11341           hardcode_minus_L=yes
11342           ;;
11343         esac
11344       fi
11345       ;;
11346
11347     irix5* | irix6* | nonstopux*)
11348       if test "$GCC" = yes; then
11349         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11350         # Try to use the -exported_symbol ld option, if it does not
11351         # work, assume that -exports_file does not work either and
11352         # implicitly export all symbols.
11353         # This should be the same for all languages, so no per-tag cache variable.
11354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11355 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11356 if ${lt_cv_irix_exported_symbol+:} false; then :
11357   $as_echo_n "(cached) " >&6
11358 else
11359   save_LDFLAGS="$LDFLAGS"
11360            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11361            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h.  */
11363 int foo (void) { return 0; }
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366   lt_cv_irix_exported_symbol=yes
11367 else
11368   lt_cv_irix_exported_symbol=no
11369 fi
11370 rm -f core conftest.err conftest.$ac_objext \
11371     conftest$ac_exeext conftest.$ac_ext
11372            LDFLAGS="$save_LDFLAGS"
11373 fi
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11375 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11376         if test "$lt_cv_irix_exported_symbol" = yes; then
11377           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11378         fi
11379       else
11380         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11381         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11382       fi
11383       archive_cmds_need_lc='no'
11384       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11385       hardcode_libdir_separator=:
11386       inherit_rpath=yes
11387       link_all_deplibs=yes
11388       ;;
11389
11390     netbsd*)
11391       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11392         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11393       else
11394         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11395       fi
11396       hardcode_libdir_flag_spec='-R$libdir'
11397       hardcode_direct=yes
11398       hardcode_shlibpath_var=no
11399       ;;
11400
11401     newsos6)
11402       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11403       hardcode_direct=yes
11404       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11405       hardcode_libdir_separator=:
11406       hardcode_shlibpath_var=no
11407       ;;
11408
11409     *nto* | *qnx*)
11410       ;;
11411
11412     openbsd*)
11413       if test -f /usr/libexec/ld.so; then
11414         hardcode_direct=yes
11415         hardcode_shlibpath_var=no
11416         hardcode_direct_absolute=yes
11417         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11418           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11419           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11420           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11421           export_dynamic_flag_spec='${wl}-E'
11422         else
11423           case $host_os in
11424            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11425              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11426              hardcode_libdir_flag_spec='-R$libdir'
11427              ;;
11428            *)
11429              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11430              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11431              ;;
11432           esac
11433         fi
11434       else
11435         ld_shlibs=no
11436       fi
11437       ;;
11438
11439     os2*)
11440       hardcode_libdir_flag_spec='-L$libdir'
11441       hardcode_minus_L=yes
11442       allow_undefined_flag=unsupported
11443       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'
11444       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11445       ;;
11446
11447     osf3*)
11448       if test "$GCC" = yes; then
11449         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11450         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11451       else
11452         allow_undefined_flag=' -expect_unresolved \*'
11453         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11454       fi
11455       archive_cmds_need_lc='no'
11456       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11457       hardcode_libdir_separator=:
11458       ;;
11459
11460     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11461       if test "$GCC" = yes; then
11462         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11463         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11464         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11465       else
11466         allow_undefined_flag=' -expect_unresolved \*'
11467         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11468         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~
11469         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11470
11471         # Both c and cxx compiler support -rpath directly
11472         hardcode_libdir_flag_spec='-rpath $libdir'
11473       fi
11474       archive_cmds_need_lc='no'
11475       hardcode_libdir_separator=:
11476       ;;
11477
11478     solaris*)
11479       no_undefined_flag=' -z defs'
11480       if test "$GCC" = yes; then
11481         wlarc='${wl}'
11482         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11483         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11484           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11485       else
11486         case `$CC -V 2>&1` in
11487         *"Compilers 5.0"*)
11488           wlarc=''
11489           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11490           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11491           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11492           ;;
11493         *)
11494           wlarc='${wl}'
11495           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11496           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11497           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11498           ;;
11499         esac
11500       fi
11501       hardcode_libdir_flag_spec='-R$libdir'
11502       hardcode_shlibpath_var=no
11503       case $host_os in
11504       solaris2.[0-5] | solaris2.[0-5].*) ;;
11505       *)
11506         # The compiler driver will combine and reorder linker options,
11507         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11508         # but is careful enough not to reorder.
11509         # Supported since Solaris 2.6 (maybe 2.5.1?)
11510         if test "$GCC" = yes; then
11511           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11512         else
11513           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11514         fi
11515         ;;
11516       esac
11517       link_all_deplibs=yes
11518       ;;
11519
11520     sunos4*)
11521       if test "x$host_vendor" = xsequent; then
11522         # Use $CC to link under sequent, because it throws in some extra .o
11523         # files that make .init and .fini sections work.
11524         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11525       else
11526         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11527       fi
11528       hardcode_libdir_flag_spec='-L$libdir'
11529       hardcode_direct=yes
11530       hardcode_minus_L=yes
11531       hardcode_shlibpath_var=no
11532       ;;
11533
11534     sysv4)
11535       case $host_vendor in
11536         sni)
11537           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11538           hardcode_direct=yes # is this really true???
11539         ;;
11540         siemens)
11541           ## LD is ld it makes a PLAMLIB
11542           ## CC just makes a GrossModule.
11543           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11544           reload_cmds='$CC -r -o $output$reload_objs'
11545           hardcode_direct=no
11546         ;;
11547         motorola)
11548           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11549           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11550         ;;
11551       esac
11552       runpath_var='LD_RUN_PATH'
11553       hardcode_shlibpath_var=no
11554       ;;
11555
11556     sysv4.3*)
11557       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11558       hardcode_shlibpath_var=no
11559       export_dynamic_flag_spec='-Bexport'
11560       ;;
11561
11562     sysv4*MP*)
11563       if test -d /usr/nec; then
11564         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11565         hardcode_shlibpath_var=no
11566         runpath_var=LD_RUN_PATH
11567         hardcode_runpath_var=yes
11568         ld_shlibs=yes
11569       fi
11570       ;;
11571
11572     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11573       no_undefined_flag='${wl}-z,text'
11574       archive_cmds_need_lc=no
11575       hardcode_shlibpath_var=no
11576       runpath_var='LD_RUN_PATH'
11577
11578       if test "$GCC" = yes; then
11579         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11580         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11581       else
11582         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11583         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11584       fi
11585       ;;
11586
11587     sysv5* | sco3.2v5* | sco5v6*)
11588       # Note: We can NOT use -z defs as we might desire, because we do not
11589       # link with -lc, and that would cause any symbols used from libc to
11590       # always be unresolved, which means just about no library would
11591       # ever link correctly.  If we're not using GNU ld we use -z text
11592       # though, which does catch some bad symbols but isn't as heavy-handed
11593       # as -z defs.
11594       no_undefined_flag='${wl}-z,text'
11595       allow_undefined_flag='${wl}-z,nodefs'
11596       archive_cmds_need_lc=no
11597       hardcode_shlibpath_var=no
11598       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11599       hardcode_libdir_separator=':'
11600       link_all_deplibs=yes
11601       export_dynamic_flag_spec='${wl}-Bexport'
11602       runpath_var='LD_RUN_PATH'
11603
11604       if test "$GCC" = yes; then
11605         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11606         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11607       else
11608         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11609         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11610       fi
11611       ;;
11612
11613     uts4*)
11614       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11615       hardcode_libdir_flag_spec='-L$libdir'
11616       hardcode_shlibpath_var=no
11617       ;;
11618
11619     *)
11620       ld_shlibs=no
11621       ;;
11622     esac
11623
11624     if test x$host_vendor = xsni; then
11625       case $host in
11626       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11627         export_dynamic_flag_spec='${wl}-Blargedynsym'
11628         ;;
11629       esac
11630     fi
11631   fi
11632
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11634 $as_echo "$ld_shlibs" >&6; }
11635 test "$ld_shlibs" = no && can_build_shared=no
11636
11637 with_gnu_ld=$with_gnu_ld
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653 #
11654 # Do we need to explicitly link libc?
11655 #
11656 case "x$archive_cmds_need_lc" in
11657 x|xyes)
11658   # Assume -lc should be added
11659   archive_cmds_need_lc=yes
11660
11661   if test "$enable_shared" = yes && test "$GCC" = yes; then
11662     case $archive_cmds in
11663     *'~'*)
11664       # FIXME: we may have to deal with multi-command sequences.
11665       ;;
11666     '$CC '*)
11667       # Test whether the compiler implicitly links with -lc since on some
11668       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11669       # to ld, don't add -lc before -lgcc.
11670       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11671 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11672 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11673   $as_echo_n "(cached) " >&6
11674 else
11675   $RM conftest*
11676         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11677
11678         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11679   (eval $ac_compile) 2>&5
11680   ac_status=$?
11681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11682   test $ac_status = 0; } 2>conftest.err; then
11683           soname=conftest
11684           lib=conftest
11685           libobjs=conftest.$ac_objext
11686           deplibs=
11687           wl=$lt_prog_compiler_wl
11688           pic_flag=$lt_prog_compiler_pic
11689           compiler_flags=-v
11690           linker_flags=-v
11691           verstring=
11692           output_objdir=.
11693           libname=conftest
11694           lt_save_allow_undefined_flag=$allow_undefined_flag
11695           allow_undefined_flag=
11696           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11697   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11698   ac_status=$?
11699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11700   test $ac_status = 0; }
11701           then
11702             lt_cv_archive_cmds_need_lc=no
11703           else
11704             lt_cv_archive_cmds_need_lc=yes
11705           fi
11706           allow_undefined_flag=$lt_save_allow_undefined_flag
11707         else
11708           cat conftest.err 1>&5
11709         fi
11710         $RM conftest*
11711
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11714 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11715       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11716       ;;
11717     esac
11718   fi
11719   ;;
11720 esac
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11879 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11880
11881 if test "$GCC" = yes; then
11882   case $host_os in
11883     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11884     *) lt_awk_arg="/^libraries:/" ;;
11885   esac
11886   case $host_os in
11887     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11888     *) lt_sed_strip_eq="s,=/,/,g" ;;
11889   esac
11890   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11891   case $lt_search_path_spec in
11892   *\;*)
11893     # if the path contains ";" then we assume it to be the separator
11894     # otherwise default to the standard path separator (i.e. ":") - it is
11895     # assumed that no part of a normal pathname contains ";" but that should
11896     # okay in the real world where ";" in dirpaths is itself problematic.
11897     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11898     ;;
11899   *)
11900     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11901     ;;
11902   esac
11903   # Ok, now we have the path, separated by spaces, we can step through it
11904   # and add multilib dir if necessary.
11905   lt_tmp_lt_search_path_spec=
11906   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11907   for lt_sys_path in $lt_search_path_spec; do
11908     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11909       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11910     else
11911       test -d "$lt_sys_path" && \
11912         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11913     fi
11914   done
11915   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11916 BEGIN {RS=" "; FS="/|\n";} {
11917   lt_foo="";
11918   lt_count=0;
11919   for (lt_i = NF; lt_i > 0; lt_i--) {
11920     if ($lt_i != "" && $lt_i != ".") {
11921       if ($lt_i == "..") {
11922         lt_count++;
11923       } else {
11924         if (lt_count == 0) {
11925           lt_foo="/" $lt_i lt_foo;
11926         } else {
11927           lt_count--;
11928         }
11929       }
11930     }
11931   }
11932   if (lt_foo != "") { lt_freq[lt_foo]++; }
11933   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11934 }'`
11935   # AWK program above erroneously prepends '/' to C:/dos/paths
11936   # for these hosts.
11937   case $host_os in
11938     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11939       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11940   esac
11941   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11942 else
11943   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11944 fi
11945 library_names_spec=
11946 libname_spec='lib$name'
11947 soname_spec=
11948 shrext_cmds=".so"
11949 postinstall_cmds=
11950 postuninstall_cmds=
11951 finish_cmds=
11952 finish_eval=
11953 shlibpath_var=
11954 shlibpath_overrides_runpath=unknown
11955 version_type=none
11956 dynamic_linker="$host_os ld.so"
11957 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11958 need_lib_prefix=unknown
11959 hardcode_into_libs=no
11960
11961 # when you set need_version to no, make sure it does not cause -set_version
11962 # flags to be left without arguments
11963 need_version=unknown
11964
11965 case $host_os in
11966 aix3*)
11967   version_type=linux
11968   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11969   shlibpath_var=LIBPATH
11970
11971   # AIX 3 has no versioning support, so we append a major version to the name.
11972   soname_spec='${libname}${release}${shared_ext}$major'
11973   ;;
11974
11975 aix[4-9]*)
11976   version_type=linux
11977   need_lib_prefix=no
11978   need_version=no
11979   hardcode_into_libs=yes
11980   if test "$host_cpu" = ia64; then
11981     # AIX 5 supports IA64
11982     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11983     shlibpath_var=LD_LIBRARY_PATH
11984   else
11985     # With GCC up to 2.95.x, collect2 would create an import file
11986     # for dependence libraries.  The import file would start with
11987     # the line `#! .'.  This would cause the generated library to
11988     # depend on `.', always an invalid library.  This was fixed in
11989     # development snapshots of GCC prior to 3.0.
11990     case $host_os in
11991       aix4 | aix4.[01] | aix4.[01].*)
11992       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11993            echo ' yes '
11994            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11995         :
11996       else
11997         can_build_shared=no
11998       fi
11999       ;;
12000     esac
12001     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12002     # soname into executable. Probably we can add versioning support to
12003     # collect2, so additional links can be useful in future.
12004     if test "$aix_use_runtimelinking" = yes; then
12005       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12006       # instead of lib<name>.a to let people know that these are not
12007       # typical AIX shared libraries.
12008       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12009     else
12010       # We preserve .a as extension for shared libraries through AIX4.2
12011       # and later when we are not doing run time linking.
12012       library_names_spec='${libname}${release}.a $libname.a'
12013       soname_spec='${libname}${release}${shared_ext}$major'
12014     fi
12015     shlibpath_var=LIBPATH
12016   fi
12017   ;;
12018
12019 amigaos*)
12020   case $host_cpu in
12021   powerpc)
12022     # Since July 2007 AmigaOS4 officially supports .so libraries.
12023     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025     ;;
12026   m68k)
12027     library_names_spec='$libname.ixlibrary $libname.a'
12028     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12029     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12030     ;;
12031   esac
12032   ;;
12033
12034 beos*)
12035   library_names_spec='${libname}${shared_ext}'
12036   dynamic_linker="$host_os ld.so"
12037   shlibpath_var=LIBRARY_PATH
12038   ;;
12039
12040 bsdi[45]*)
12041   version_type=linux
12042   need_version=no
12043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12044   soname_spec='${libname}${release}${shared_ext}$major'
12045   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12046   shlibpath_var=LD_LIBRARY_PATH
12047   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12048   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12049   # the default ld.so.conf also contains /usr/contrib/lib and
12050   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12051   # libtool to hard-code these into programs
12052   ;;
12053
12054 cygwin* | mingw* | pw32* | cegcc*)
12055   version_type=windows
12056   shrext_cmds=".dll"
12057   need_version=no
12058   need_lib_prefix=no
12059
12060   case $GCC,$cc_basename in
12061   yes,*)
12062     # gcc
12063     library_names_spec='$libname.dll.a'
12064     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12065     postinstall_cmds='base_file=`basename \${file}`~
12066       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12067       dldir=$destdir/`dirname \$dlpath`~
12068       test -d \$dldir || mkdir -p \$dldir~
12069       $install_prog $dir/$dlname \$dldir/$dlname~
12070       chmod a+x \$dldir/$dlname~
12071       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12072         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12073       fi'
12074     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12075       dlpath=$dir/\$dldll~
12076        $RM \$dlpath'
12077     shlibpath_overrides_runpath=yes
12078
12079     case $host_os in
12080     cygwin*)
12081       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12082       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12083
12084       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12085       ;;
12086     mingw* | cegcc*)
12087       # MinGW DLLs use traditional 'lib' prefix
12088       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12089       ;;
12090     pw32*)
12091       # pw32 DLLs use 'pw' prefix rather than 'lib'
12092       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12093       ;;
12094     esac
12095     dynamic_linker='Win32 ld.exe'
12096     ;;
12097
12098   *,cl*)
12099     # Native MSVC
12100     libname_spec='$name'
12101     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12102     library_names_spec='${libname}.dll.lib'
12103
12104     case $build_os in
12105     mingw*)
12106       sys_lib_search_path_spec=
12107       lt_save_ifs=$IFS
12108       IFS=';'
12109       for lt_path in $LIB
12110       do
12111         IFS=$lt_save_ifs
12112         # Let DOS variable expansion print the short 8.3 style file name.
12113         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12114         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12115       done
12116       IFS=$lt_save_ifs
12117       # Convert to MSYS style.
12118       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12119       ;;
12120     cygwin*)
12121       # Convert to unix form, then to dos form, then back to unix form
12122       # but this time dos style (no spaces!) so that the unix form looks
12123       # like /cygdrive/c/PROGRA~1:/cygdr...
12124       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12125       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12126       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12127       ;;
12128     *)
12129       sys_lib_search_path_spec="$LIB"
12130       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12131         # It is most probably a Windows format PATH.
12132         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12133       else
12134         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12135       fi
12136       # FIXME: find the short name or the path components, as spaces are
12137       # common. (e.g. "Program Files" -> "PROGRA~1")
12138       ;;
12139     esac
12140
12141     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12142     postinstall_cmds='base_file=`basename \${file}`~
12143       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12144       dldir=$destdir/`dirname \$dlpath`~
12145       test -d \$dldir || mkdir -p \$dldir~
12146       $install_prog $dir/$dlname \$dldir/$dlname'
12147     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12148       dlpath=$dir/\$dldll~
12149        $RM \$dlpath'
12150     shlibpath_overrides_runpath=yes
12151     dynamic_linker='Win32 link.exe'
12152     ;;
12153
12154   *)
12155     # Assume MSVC wrapper
12156     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12157     dynamic_linker='Win32 ld.exe'
12158     ;;
12159   esac
12160   # FIXME: first we should search . and the directory the executable is in
12161   shlibpath_var=PATH
12162   ;;
12163
12164 darwin* | rhapsody*)
12165   dynamic_linker="$host_os dyld"
12166   version_type=darwin
12167   need_lib_prefix=no
12168   need_version=no
12169   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12170   soname_spec='${libname}${release}${major}$shared_ext'
12171   shlibpath_overrides_runpath=yes
12172   shlibpath_var=DYLD_LIBRARY_PATH
12173   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12174
12175   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12176   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12177   ;;
12178
12179 dgux*)
12180   version_type=linux
12181   need_lib_prefix=no
12182   need_version=no
12183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12184   soname_spec='${libname}${release}${shared_ext}$major'
12185   shlibpath_var=LD_LIBRARY_PATH
12186   ;;
12187
12188 freebsd1*)
12189   dynamic_linker=no
12190   ;;
12191
12192 freebsd* | dragonfly*)
12193   # DragonFly does not have aout.  When/if they implement a new
12194   # versioning mechanism, adjust this.
12195   if test -x /usr/bin/objformat; then
12196     objformat=`/usr/bin/objformat`
12197   else
12198     case $host_os in
12199     freebsd[123]*) objformat=aout ;;
12200     *) objformat=elf ;;
12201     esac
12202   fi
12203   version_type=freebsd-$objformat
12204   case $version_type in
12205     freebsd-elf*)
12206       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12207       need_version=no
12208       need_lib_prefix=no
12209       ;;
12210     freebsd-*)
12211       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12212       need_version=yes
12213       ;;
12214   esac
12215   shlibpath_var=LD_LIBRARY_PATH
12216   case $host_os in
12217   freebsd2*)
12218     shlibpath_overrides_runpath=yes
12219     ;;
12220   freebsd3.[01]* | freebsdelf3.[01]*)
12221     shlibpath_overrides_runpath=yes
12222     hardcode_into_libs=yes
12223     ;;
12224   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12225   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12226     shlibpath_overrides_runpath=no
12227     hardcode_into_libs=yes
12228     ;;
12229   *) # from 4.6 on, and DragonFly
12230     shlibpath_overrides_runpath=yes
12231     hardcode_into_libs=yes
12232     ;;
12233   esac
12234   ;;
12235
12236 gnu*)
12237   version_type=linux
12238   need_lib_prefix=no
12239   need_version=no
12240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12241   soname_spec='${libname}${release}${shared_ext}$major'
12242   shlibpath_var=LD_LIBRARY_PATH
12243   hardcode_into_libs=yes
12244   ;;
12245
12246 haiku*)
12247   version_type=linux
12248   need_lib_prefix=no
12249   need_version=no
12250   dynamic_linker="$host_os runtime_loader"
12251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12252   soname_spec='${libname}${release}${shared_ext}$major'
12253   shlibpath_var=LIBRARY_PATH
12254   shlibpath_overrides_runpath=yes
12255   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12256   hardcode_into_libs=yes
12257   ;;
12258
12259 hpux9* | hpux10* | hpux11*)
12260   # Give a soname corresponding to the major version so that dld.sl refuses to
12261   # link against other versions.
12262   version_type=sunos
12263   need_lib_prefix=no
12264   need_version=no
12265   case $host_cpu in
12266   ia64*)
12267     shrext_cmds='.so'
12268     hardcode_into_libs=yes
12269     dynamic_linker="$host_os dld.so"
12270     shlibpath_var=LD_LIBRARY_PATH
12271     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273     soname_spec='${libname}${release}${shared_ext}$major'
12274     if test "X$HPUX_IA64_MODE" = X32; then
12275       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12276     else
12277       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12278     fi
12279     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12280     ;;
12281   hppa*64*)
12282     shrext_cmds='.sl'
12283     hardcode_into_libs=yes
12284     dynamic_linker="$host_os dld.sl"
12285     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12286     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288     soname_spec='${libname}${release}${shared_ext}$major'
12289     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12290     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12291     ;;
12292   *)
12293     shrext_cmds='.sl'
12294     dynamic_linker="$host_os dld.sl"
12295     shlibpath_var=SHLIB_PATH
12296     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12298     soname_spec='${libname}${release}${shared_ext}$major'
12299     ;;
12300   esac
12301   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12302   postinstall_cmds='chmod 555 $lib'
12303   # or fails outright, so override atomically:
12304   install_override_mode=555
12305   ;;
12306
12307 interix[3-9]*)
12308   version_type=linux
12309   need_lib_prefix=no
12310   need_version=no
12311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12312   soname_spec='${libname}${release}${shared_ext}$major'
12313   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12314   shlibpath_var=LD_LIBRARY_PATH
12315   shlibpath_overrides_runpath=no
12316   hardcode_into_libs=yes
12317   ;;
12318
12319 irix5* | irix6* | nonstopux*)
12320   case $host_os in
12321     nonstopux*) version_type=nonstopux ;;
12322     *)
12323         if test "$lt_cv_prog_gnu_ld" = yes; then
12324                 version_type=linux
12325         else
12326                 version_type=irix
12327         fi ;;
12328   esac
12329   need_lib_prefix=no
12330   need_version=no
12331   soname_spec='${libname}${release}${shared_ext}$major'
12332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12333   case $host_os in
12334   irix5* | nonstopux*)
12335     libsuff= shlibsuff=
12336     ;;
12337   *)
12338     case $LD in # libtool.m4 will add one of these switches to LD
12339     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12340       libsuff= shlibsuff= libmagic=32-bit;;
12341     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12342       libsuff=32 shlibsuff=N32 libmagic=N32;;
12343     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12344       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12345     *) libsuff= shlibsuff= libmagic=never-match;;
12346     esac
12347     ;;
12348   esac
12349   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12350   shlibpath_overrides_runpath=no
12351   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12352   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12353   hardcode_into_libs=yes
12354   ;;
12355
12356 # No shared lib support for Linux oldld, aout, or coff.
12357 linux*oldld* | linux*aout* | linux*coff*)
12358   dynamic_linker=no
12359   ;;
12360
12361 # This must be Linux ELF.
12362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12363   version_type=linux
12364   need_lib_prefix=no
12365   need_version=no
12366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367   soname_spec='${libname}${release}${shared_ext}$major'
12368   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12369   shlibpath_var=LD_LIBRARY_PATH
12370   shlibpath_overrides_runpath=no
12371
12372   # Some binutils ld are patched to set DT_RUNPATH
12373   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12374   $as_echo_n "(cached) " >&6
12375 else
12376   lt_cv_shlibpath_overrides_runpath=no
12377     save_LDFLAGS=$LDFLAGS
12378     save_libdir=$libdir
12379     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12380          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h.  */
12383
12384 int
12385 main ()
12386 {
12387
12388   ;
12389   return 0;
12390 }
12391 _ACEOF
12392 if ac_fn_c_try_link "$LINENO"; then :
12393   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12394   lt_cv_shlibpath_overrides_runpath=yes
12395 fi
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext \
12398     conftest$ac_exeext conftest.$ac_ext
12399     LDFLAGS=$save_LDFLAGS
12400     libdir=$save_libdir
12401
12402 fi
12403
12404   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12405
12406   # This implies no fast_install, which is unacceptable.
12407   # Some rework will be needed to allow for fast_install
12408   # before this can be enabled.
12409   hardcode_into_libs=yes
12410
12411   # Append ld.so.conf contents to the search path
12412   if test -f /etc/ld.so.conf; then
12413     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12414     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12415   fi
12416
12417   # We used to test for /lib/ld.so.1 and disable shared libraries on
12418   # powerpc, because MkLinux only supported shared libraries with the
12419   # GNU dynamic linker.  Since this was broken with cross compilers,
12420   # most powerpc-linux boxes support dynamic linking these days and
12421   # people can always --disable-shared, the test was removed, and we
12422   # assume the GNU/Linux dynamic linker is in use.
12423   dynamic_linker='GNU/Linux ld.so'
12424   ;;
12425
12426 netbsd*)
12427   version_type=sunos
12428   need_lib_prefix=no
12429   need_version=no
12430   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12432     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12433     dynamic_linker='NetBSD (a.out) ld.so'
12434   else
12435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12436     soname_spec='${libname}${release}${shared_ext}$major'
12437     dynamic_linker='NetBSD ld.elf_so'
12438   fi
12439   shlibpath_var=LD_LIBRARY_PATH
12440   shlibpath_overrides_runpath=yes
12441   hardcode_into_libs=yes
12442   ;;
12443
12444 newsos6)
12445   version_type=linux
12446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12447   shlibpath_var=LD_LIBRARY_PATH
12448   shlibpath_overrides_runpath=yes
12449   ;;
12450
12451 *nto* | *qnx*)
12452   version_type=qnx
12453   need_lib_prefix=no
12454   need_version=no
12455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12456   soname_spec='${libname}${release}${shared_ext}$major'
12457   shlibpath_var=LD_LIBRARY_PATH
12458   shlibpath_overrides_runpath=no
12459   hardcode_into_libs=yes
12460   dynamic_linker='ldqnx.so'
12461   ;;
12462
12463 openbsd*)
12464   version_type=sunos
12465   sys_lib_dlsearch_path_spec="/usr/lib"
12466   need_lib_prefix=no
12467   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12468   case $host_os in
12469     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12470     *)                          need_version=no  ;;
12471   esac
12472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12473   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12474   shlibpath_var=LD_LIBRARY_PATH
12475   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12476     case $host_os in
12477       openbsd2.[89] | openbsd2.[89].*)
12478         shlibpath_overrides_runpath=no
12479         ;;
12480       *)
12481         shlibpath_overrides_runpath=yes
12482         ;;
12483       esac
12484   else
12485     shlibpath_overrides_runpath=yes
12486   fi
12487   ;;
12488
12489 os2*)
12490   libname_spec='$name'
12491   shrext_cmds=".dll"
12492   need_lib_prefix=no
12493   library_names_spec='$libname${shared_ext} $libname.a'
12494   dynamic_linker='OS/2 ld.exe'
12495   shlibpath_var=LIBPATH
12496   ;;
12497
12498 osf3* | osf4* | osf5*)
12499   version_type=osf
12500   need_lib_prefix=no
12501   need_version=no
12502   soname_spec='${libname}${release}${shared_ext}$major'
12503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12504   shlibpath_var=LD_LIBRARY_PATH
12505   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12506   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12507   ;;
12508
12509 rdos*)
12510   dynamic_linker=no
12511   ;;
12512
12513 solaris*)
12514   version_type=linux
12515   need_lib_prefix=no
12516   need_version=no
12517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12518   soname_spec='${libname}${release}${shared_ext}$major'
12519   shlibpath_var=LD_LIBRARY_PATH
12520   shlibpath_overrides_runpath=yes
12521   hardcode_into_libs=yes
12522   # ldd complains unless libraries are executable
12523   postinstall_cmds='chmod +x $lib'
12524   ;;
12525
12526 sunos4*)
12527   version_type=sunos
12528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12529   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12530   shlibpath_var=LD_LIBRARY_PATH
12531   shlibpath_overrides_runpath=yes
12532   if test "$with_gnu_ld" = yes; then
12533     need_lib_prefix=no
12534   fi
12535   need_version=yes
12536   ;;
12537
12538 sysv4 | sysv4.3*)
12539   version_type=linux
12540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12541   soname_spec='${libname}${release}${shared_ext}$major'
12542   shlibpath_var=LD_LIBRARY_PATH
12543   case $host_vendor in
12544     sni)
12545       shlibpath_overrides_runpath=no
12546       need_lib_prefix=no
12547       runpath_var=LD_RUN_PATH
12548       ;;
12549     siemens)
12550       need_lib_prefix=no
12551       ;;
12552     motorola)
12553       need_lib_prefix=no
12554       need_version=no
12555       shlibpath_overrides_runpath=no
12556       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12557       ;;
12558   esac
12559   ;;
12560
12561 sysv4*MP*)
12562   if test -d /usr/nec ;then
12563     version_type=linux
12564     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12565     soname_spec='$libname${shared_ext}.$major'
12566     shlibpath_var=LD_LIBRARY_PATH
12567   fi
12568   ;;
12569
12570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12571   version_type=freebsd-elf
12572   need_lib_prefix=no
12573   need_version=no
12574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12575   soname_spec='${libname}${release}${shared_ext}$major'
12576   shlibpath_var=LD_LIBRARY_PATH
12577   shlibpath_overrides_runpath=yes
12578   hardcode_into_libs=yes
12579   if test "$with_gnu_ld" = yes; then
12580     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12581   else
12582     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12583     case $host_os in
12584       sco3.2v5*)
12585         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12586         ;;
12587     esac
12588   fi
12589   sys_lib_dlsearch_path_spec='/usr/lib'
12590   ;;
12591
12592 tpf*)
12593   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12594   version_type=linux
12595   need_lib_prefix=no
12596   need_version=no
12597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598   shlibpath_var=LD_LIBRARY_PATH
12599   shlibpath_overrides_runpath=no
12600   hardcode_into_libs=yes
12601   ;;
12602
12603 uts4*)
12604   version_type=linux
12605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606   soname_spec='${libname}${release}${shared_ext}$major'
12607   shlibpath_var=LD_LIBRARY_PATH
12608   ;;
12609
12610 *)
12611   dynamic_linker=no
12612   ;;
12613 esac
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12615 $as_echo "$dynamic_linker" >&6; }
12616 test "$dynamic_linker" = no && can_build_shared=no
12617
12618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12619 if test "$GCC" = yes; then
12620   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12621 fi
12622
12623 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12624   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12625 fi
12626 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12627   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12628 fi
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12722 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12723 hardcode_action=
12724 if test -n "$hardcode_libdir_flag_spec" ||
12725    test -n "$runpath_var" ||
12726    test "X$hardcode_automatic" = "Xyes" ; then
12727
12728   # We can hardcode non-existent directories.
12729   if test "$hardcode_direct" != no &&
12730      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12731      # have to relink, otherwise we might link with an installed library
12732      # when we should be linking with a yet-to-be-installed one
12733      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12734      test "$hardcode_minus_L" != no; then
12735     # Linking always hardcodes the temporary library directory.
12736     hardcode_action=relink
12737   else
12738     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12739     hardcode_action=immediate
12740   fi
12741 else
12742   # We cannot hardcode anything, or else we can only hardcode existing
12743   # directories.
12744   hardcode_action=unsupported
12745 fi
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12747 $as_echo "$hardcode_action" >&6; }
12748
12749 if test "$hardcode_action" = relink ||
12750    test "$inherit_rpath" = yes; then
12751   # Fast installation is not supported
12752   enable_fast_install=no
12753 elif test "$shlibpath_overrides_runpath" = yes ||
12754      test "$enable_shared" = no; then
12755   # Fast installation is not necessary
12756   enable_fast_install=needless
12757 fi
12758
12759
12760
12761
12762
12763
12764   if test "x$enable_dlopen" != xyes; then
12765   enable_dlopen=unknown
12766   enable_dlopen_self=unknown
12767   enable_dlopen_self_static=unknown
12768 else
12769   lt_cv_dlopen=no
12770   lt_cv_dlopen_libs=
12771
12772   case $host_os in
12773   beos*)
12774     lt_cv_dlopen="load_add_on"
12775     lt_cv_dlopen_libs=
12776     lt_cv_dlopen_self=yes
12777     ;;
12778
12779   mingw* | pw32* | cegcc*)
12780     lt_cv_dlopen="LoadLibrary"
12781     lt_cv_dlopen_libs=
12782     ;;
12783
12784   cygwin*)
12785     lt_cv_dlopen="dlopen"
12786     lt_cv_dlopen_libs=
12787     ;;
12788
12789   darwin*)
12790   # if libdl is installed we need to link against it
12791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12792 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12793 if ${ac_cv_lib_dl_dlopen+:} false; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-ldl  $LIBS"
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h.  */
12800
12801 /* Override any GCC internal prototype to avoid an error.
12802    Use char because int might match the return type of a GCC
12803    builtin and then its argument prototype would still apply.  */
12804 #ifdef __cplusplus
12805 extern "C"
12806 #endif
12807 char dlopen ();
12808 int
12809 main ()
12810 {
12811 return dlopen ();
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"; then :
12817   ac_cv_lib_dl_dlopen=yes
12818 else
12819   ac_cv_lib_dl_dlopen=no
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext \
12822     conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12826 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12827 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12828   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12829 else
12830
12831     lt_cv_dlopen="dyld"
12832     lt_cv_dlopen_libs=
12833     lt_cv_dlopen_self=yes
12834
12835 fi
12836
12837     ;;
12838
12839   *)
12840     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12841 if test "x$ac_cv_func_shl_load" = xyes; then :
12842   lt_cv_dlopen="shl_load"
12843 else
12844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12845 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12846 if ${ac_cv_lib_dld_shl_load+:} false; then :
12847   $as_echo_n "(cached) " >&6
12848 else
12849   ac_check_lib_save_LIBS=$LIBS
12850 LIBS="-ldld  $LIBS"
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h.  */
12853
12854 /* Override any GCC internal prototype to avoid an error.
12855    Use char because int might match the return type of a GCC
12856    builtin and then its argument prototype would still apply.  */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 char shl_load ();
12861 int
12862 main ()
12863 {
12864 return shl_load ();
12865   ;
12866   return 0;
12867 }
12868 _ACEOF
12869 if ac_fn_c_try_link "$LINENO"; then :
12870   ac_cv_lib_dld_shl_load=yes
12871 else
12872   ac_cv_lib_dld_shl_load=no
12873 fi
12874 rm -f core conftest.err conftest.$ac_objext \
12875     conftest$ac_exeext conftest.$ac_ext
12876 LIBS=$ac_check_lib_save_LIBS
12877 fi
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12879 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12880 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12881   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12882 else
12883   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12884 if test "x$ac_cv_func_dlopen" = xyes; then :
12885   lt_cv_dlopen="dlopen"
12886 else
12887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12888 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12889 if ${ac_cv_lib_dl_dlopen+:} false; then :
12890   $as_echo_n "(cached) " >&6
12891 else
12892   ac_check_lib_save_LIBS=$LIBS
12893 LIBS="-ldl  $LIBS"
12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h.  */
12896
12897 /* Override any GCC internal prototype to avoid an error.
12898    Use char because int might match the return type of a GCC
12899    builtin and then its argument prototype would still apply.  */
12900 #ifdef __cplusplus
12901 extern "C"
12902 #endif
12903 char dlopen ();
12904 int
12905 main ()
12906 {
12907 return dlopen ();
12908   ;
12909   return 0;
12910 }
12911 _ACEOF
12912 if ac_fn_c_try_link "$LINENO"; then :
12913   ac_cv_lib_dl_dlopen=yes
12914 else
12915   ac_cv_lib_dl_dlopen=no
12916 fi
12917 rm -f core conftest.err conftest.$ac_objext \
12918     conftest$ac_exeext conftest.$ac_ext
12919 LIBS=$ac_check_lib_save_LIBS
12920 fi
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12922 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12923 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12924   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12925 else
12926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12927 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12928 if ${ac_cv_lib_svld_dlopen+:} false; then :
12929   $as_echo_n "(cached) " >&6
12930 else
12931   ac_check_lib_save_LIBS=$LIBS
12932 LIBS="-lsvld  $LIBS"
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h.  */
12935
12936 /* Override any GCC internal prototype to avoid an error.
12937    Use char because int might match the return type of a GCC
12938    builtin and then its argument prototype would still apply.  */
12939 #ifdef __cplusplus
12940 extern "C"
12941 #endif
12942 char dlopen ();
12943 int
12944 main ()
12945 {
12946 return dlopen ();
12947   ;
12948   return 0;
12949 }
12950 _ACEOF
12951 if ac_fn_c_try_link "$LINENO"; then :
12952   ac_cv_lib_svld_dlopen=yes
12953 else
12954   ac_cv_lib_svld_dlopen=no
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext \
12957     conftest$ac_exeext conftest.$ac_ext
12958 LIBS=$ac_check_lib_save_LIBS
12959 fi
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12961 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12962 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12963   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12964 else
12965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12966 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12967 if ${ac_cv_lib_dld_dld_link+:} false; then :
12968   $as_echo_n "(cached) " >&6
12969 else
12970   ac_check_lib_save_LIBS=$LIBS
12971 LIBS="-ldld  $LIBS"
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h.  */
12974
12975 /* Override any GCC internal prototype to avoid an error.
12976    Use char because int might match the return type of a GCC
12977    builtin and then its argument prototype would still apply.  */
12978 #ifdef __cplusplus
12979 extern "C"
12980 #endif
12981 char dld_link ();
12982 int
12983 main ()
12984 {
12985 return dld_link ();
12986   ;
12987   return 0;
12988 }
12989 _ACEOF
12990 if ac_fn_c_try_link "$LINENO"; then :
12991   ac_cv_lib_dld_dld_link=yes
12992 else
12993   ac_cv_lib_dld_dld_link=no
12994 fi
12995 rm -f core conftest.err conftest.$ac_objext \
12996     conftest$ac_exeext conftest.$ac_ext
12997 LIBS=$ac_check_lib_save_LIBS
12998 fi
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13000 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13001 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13002   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13003 fi
13004
13005
13006 fi
13007
13008
13009 fi
13010
13011
13012 fi
13013
13014
13015 fi
13016
13017
13018 fi
13019
13020     ;;
13021   esac
13022
13023   if test "x$lt_cv_dlopen" != xno; then
13024     enable_dlopen=yes
13025   else
13026     enable_dlopen=no
13027   fi
13028
13029   case $lt_cv_dlopen in
13030   dlopen)
13031     save_CPPFLAGS="$CPPFLAGS"
13032     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13033
13034     save_LDFLAGS="$LDFLAGS"
13035     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13036
13037     save_LIBS="$LIBS"
13038     LIBS="$lt_cv_dlopen_libs $LIBS"
13039
13040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13041 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13042 if ${lt_cv_dlopen_self+:} false; then :
13043   $as_echo_n "(cached) " >&6
13044 else
13045           if test "$cross_compiling" = yes; then :
13046   lt_cv_dlopen_self=cross
13047 else
13048   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13049   lt_status=$lt_dlunknown
13050   cat > conftest.$ac_ext <<_LT_EOF
13051 #line $LINENO "configure"
13052 #include "confdefs.h"
13053
13054 #if HAVE_DLFCN_H
13055 #include <dlfcn.h>
13056 #endif
13057
13058 #include <stdio.h>
13059
13060 #ifdef RTLD_GLOBAL
13061 #  define LT_DLGLOBAL           RTLD_GLOBAL
13062 #else
13063 #  ifdef DL_GLOBAL
13064 #    define LT_DLGLOBAL         DL_GLOBAL
13065 #  else
13066 #    define LT_DLGLOBAL         0
13067 #  endif
13068 #endif
13069
13070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13071    find out it does not work in some platform. */
13072 #ifndef LT_DLLAZY_OR_NOW
13073 #  ifdef RTLD_LAZY
13074 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13075 #  else
13076 #    ifdef DL_LAZY
13077 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13078 #    else
13079 #      ifdef RTLD_NOW
13080 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13081 #      else
13082 #        ifdef DL_NOW
13083 #          define LT_DLLAZY_OR_NOW      DL_NOW
13084 #        else
13085 #          define LT_DLLAZY_OR_NOW      0
13086 #        endif
13087 #      endif
13088 #    endif
13089 #  endif
13090 #endif
13091
13092 /* When -fvisbility=hidden is used, assume the code has been annotated
13093    correspondingly for the symbols needed.  */
13094 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13095 int fnord () __attribute__((visibility("default")));
13096 #endif
13097
13098 int fnord () { return 42; }
13099 int main ()
13100 {
13101   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13102   int status = $lt_dlunknown;
13103
13104   if (self)
13105     {
13106       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13107       else
13108         {
13109           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13110           else puts (dlerror ());
13111         }
13112       /* dlclose (self); */
13113     }
13114   else
13115     puts (dlerror ());
13116
13117   return status;
13118 }
13119 _LT_EOF
13120   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13121   (eval $ac_link) 2>&5
13122   ac_status=$?
13123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13125     (./conftest; exit; ) >&5 2>/dev/null
13126     lt_status=$?
13127     case x$lt_status in
13128       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13129       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13130       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13131     esac
13132   else :
13133     # compilation failed
13134     lt_cv_dlopen_self=no
13135   fi
13136 fi
13137 rm -fr conftest*
13138
13139
13140 fi
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13142 $as_echo "$lt_cv_dlopen_self" >&6; }
13143
13144     if test "x$lt_cv_dlopen_self" = xyes; then
13145       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13146       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13147 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13148 if ${lt_cv_dlopen_self_static+:} false; then :
13149   $as_echo_n "(cached) " >&6
13150 else
13151           if test "$cross_compiling" = yes; then :
13152   lt_cv_dlopen_self_static=cross
13153 else
13154   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13155   lt_status=$lt_dlunknown
13156   cat > conftest.$ac_ext <<_LT_EOF
13157 #line $LINENO "configure"
13158 #include "confdefs.h"
13159
13160 #if HAVE_DLFCN_H
13161 #include <dlfcn.h>
13162 #endif
13163
13164 #include <stdio.h>
13165
13166 #ifdef RTLD_GLOBAL
13167 #  define LT_DLGLOBAL           RTLD_GLOBAL
13168 #else
13169 #  ifdef DL_GLOBAL
13170 #    define LT_DLGLOBAL         DL_GLOBAL
13171 #  else
13172 #    define LT_DLGLOBAL         0
13173 #  endif
13174 #endif
13175
13176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13177    find out it does not work in some platform. */
13178 #ifndef LT_DLLAZY_OR_NOW
13179 #  ifdef RTLD_LAZY
13180 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13181 #  else
13182 #    ifdef DL_LAZY
13183 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13184 #    else
13185 #      ifdef RTLD_NOW
13186 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13187 #      else
13188 #        ifdef DL_NOW
13189 #          define LT_DLLAZY_OR_NOW      DL_NOW
13190 #        else
13191 #          define LT_DLLAZY_OR_NOW      0
13192 #        endif
13193 #      endif
13194 #    endif
13195 #  endif
13196 #endif
13197
13198 /* When -fvisbility=hidden is used, assume the code has been annotated
13199    correspondingly for the symbols needed.  */
13200 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13201 int fnord () __attribute__((visibility("default")));
13202 #endif
13203
13204 int fnord () { return 42; }
13205 int main ()
13206 {
13207   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13208   int status = $lt_dlunknown;
13209
13210   if (self)
13211     {
13212       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13213       else
13214         {
13215           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13216           else puts (dlerror ());
13217         }
13218       /* dlclose (self); */
13219     }
13220   else
13221     puts (dlerror ());
13222
13223   return status;
13224 }
13225 _LT_EOF
13226   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13227   (eval $ac_link) 2>&5
13228   ac_status=$?
13229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13230   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13231     (./conftest; exit; ) >&5 2>/dev/null
13232     lt_status=$?
13233     case x$lt_status in
13234       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13235       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13236       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13237     esac
13238   else :
13239     # compilation failed
13240     lt_cv_dlopen_self_static=no
13241   fi
13242 fi
13243 rm -fr conftest*
13244
13245
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13248 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13249     fi
13250
13251     CPPFLAGS="$save_CPPFLAGS"
13252     LDFLAGS="$save_LDFLAGS"
13253     LIBS="$save_LIBS"
13254     ;;
13255   esac
13256
13257   case $lt_cv_dlopen_self in
13258   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13259   *) enable_dlopen_self=unknown ;;
13260   esac
13261
13262   case $lt_cv_dlopen_self_static in
13263   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13264   *) enable_dlopen_self_static=unknown ;;
13265   esac
13266 fi
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284 striplib=
13285 old_striplib=
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13287 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13288 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13289   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13290   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 $as_echo "yes" >&6; }
13293 else
13294 # FIXME - insert some real tests, host_os isn't really good enough
13295   case $host_os in
13296   darwin*)
13297     if test -n "$STRIP" ; then
13298       striplib="$STRIP -x"
13299       old_striplib="$STRIP -S"
13300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301 $as_echo "yes" >&6; }
13302     else
13303       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305     fi
13306     ;;
13307   *)
13308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310     ;;
13311   esac
13312 fi
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325   # Report which library types will actually be built
13326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13327 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13329 $as_echo "$can_build_shared" >&6; }
13330
13331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13332 $as_echo_n "checking whether to build shared libraries... " >&6; }
13333   test "$can_build_shared" = "no" && enable_shared=no
13334
13335   # On AIX, shared libraries and static libraries use the same namespace, and
13336   # are all built from PIC.
13337   case $host_os in
13338   aix3*)
13339     test "$enable_shared" = yes && enable_static=no
13340     if test -n "$RANLIB"; then
13341       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13342       postinstall_cmds='$RANLIB $lib'
13343     fi
13344     ;;
13345
13346   aix[4-9]*)
13347     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13348       test "$enable_shared" = yes && enable_static=no
13349     fi
13350     ;;
13351   esac
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13353 $as_echo "$enable_shared" >&6; }
13354
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13356 $as_echo_n "checking whether to build static libraries... " >&6; }
13357   # Make sure either enable_shared or enable_static is yes.
13358   test "$enable_shared" = yes || enable_static=yes
13359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13360 $as_echo "$enable_static" >&6; }
13361
13362
13363
13364
13365 fi
13366 ac_ext=c
13367 ac_cpp='$CPP $CPPFLAGS'
13368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13371
13372 CC="$lt_save_CC"
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386         ac_config_commands="$ac_config_commands libtool"
13387
13388
13389
13390
13391 # Only expand once:
13392
13393
13394
13395 # Select memory manager depending on user input.
13396 # If no "-enable-maxmem", use jmemnobs
13397 MEMORYMGR='jmemnobs'
13398 MAXMEM="no"
13399 # Check whether --enable-maxmem was given.
13400 if test "${enable_maxmem+set}" = set; then :
13401   enableval=$enable_maxmem; MAXMEM="$enableval"
13402 fi
13403
13404 if test "x$MAXMEM" = xyes; then
13405   MAXMEM=1
13406 fi
13407 if test "x$MAXMEM" != xno; then
13408   if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
13409     as_fn_error $? "non-numeric argument to --enable-maxmem" "$LINENO" 5
13410   fi
13411   DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
13412
13413 cat >>confdefs.h <<_ACEOF
13414 #define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
13415 _ACEOF
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
13418 $as_echo_n "checking for 'tmpfile()'... " >&6; }
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h.  */
13421 #include <stdio.h>
13422 int
13423 main ()
13424 {
13425  FILE * tfile = tmpfile();
13426   ;
13427   return 0;
13428 }
13429 _ACEOF
13430 if ac_fn_c_try_link "$LINENO"; then :
13431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13432 $as_echo "yes" >&6; }
13433 MEMORYMGR='jmemansi'
13434 else
13435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13436 $as_echo "no" >&6; }
13437 MEMORYMGR='jmemname'
13438
13439 # Test for the need to remove temporary files using a signal handler (for cjpeg/djpeg)
13440
13441 $as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
13442
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
13444 $as_echo_n "checking for 'mktemp()'... " >&6; }
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h.  */
13447
13448 int
13449 main ()
13450 {
13451  char fname[80]; mktemp(fname);
13452   ;
13453   return 0;
13454 }
13455 _ACEOF
13456 if ac_fn_c_try_link "$LINENO"; then :
13457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13458 $as_echo "yes" >&6; }
13459 else
13460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13462
13463 $as_echo "#define NO_MKTEMP 1" >>confdefs.h
13464
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext \
13467     conftest$ac_exeext conftest.$ac_ext
13468 fi
13469 rm -f core conftest.err conftest.$ac_objext \
13470     conftest$ac_exeext conftest.$ac_ext
13471 fi
13472
13473
13474 # Extract the library version IDs from jpeglib.h.
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
13476 $as_echo_n "checking libjpeg version number... " >&6; }
13477 JPEG_LIB_VERSION_MAJOR=`sed -e '/^#define JPEG_LIB_VERSION_MAJOR/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
13478 JPEG_LIB_VERSION_MINOR=`sed -e '/^#define JPEG_LIB_VERSION_MINOR/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
13479 JPEG_LIB_VERSION="`expr $JPEG_LIB_VERSION_MAJOR + $JPEG_LIB_VERSION_MINOR`:0:$JPEG_LIB_VERSION_MINOR"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION" >&5
13481 $as_echo "$JPEG_LIB_VERSION" >&6; }
13482
13483
13484 ac_config_files="$ac_config_files Makefile"
13485
13486 cat >confcache <<\_ACEOF
13487 # This file is a shell script that caches the results of configure
13488 # tests run on this system so they can be shared between configure
13489 # scripts and configure runs, see configure's option --config-cache.
13490 # It is not useful on other systems.  If it contains results you don't
13491 # want to keep, you may remove or edit it.
13492 #
13493 # config.status only pays attention to the cache file if you give it
13494 # the --recheck option to rerun configure.
13495 #
13496 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13497 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13498 # following values.
13499
13500 _ACEOF
13501
13502 # The following way of writing the cache mishandles newlines in values,
13503 # but we know of no workaround that is simple, portable, and efficient.
13504 # So, we kill variables containing newlines.
13505 # Ultrix sh set writes to stderr and can't be redirected directly,
13506 # and sets the high bit in the cache file unless we assign to the vars.
13507 (
13508   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13509     eval ac_val=\$$ac_var
13510     case $ac_val in #(
13511     *${as_nl}*)
13512       case $ac_var in #(
13513       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13514 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13515       esac
13516       case $ac_var in #(
13517       _ | IFS | as_nl) ;; #(
13518       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13519       *) { eval $ac_var=; unset $ac_var;} ;;
13520       esac ;;
13521     esac
13522   done
13523
13524   (set) 2>&1 |
13525     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13526     *${as_nl}ac_space=\ *)
13527       # `set' does not quote correctly, so add quotes: double-quote
13528       # substitution turns \\\\ into \\, and sed turns \\ into \.
13529       sed -n \
13530         "s/'/'\\\\''/g;
13531           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13532       ;; #(
13533     *)
13534       # `set' quotes correctly as required by POSIX, so do not add quotes.
13535       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13536       ;;
13537     esac |
13538     sort
13539 ) |
13540   sed '
13541      /^ac_cv_env_/b end
13542      t clear
13543      :clear
13544      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13545      t end
13546      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13547      :end' >>confcache
13548 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13549   if test -w "$cache_file"; then
13550     if test "x$cache_file" != "x/dev/null"; then
13551       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13552 $as_echo "$as_me: updating cache $cache_file" >&6;}
13553       if test ! -f "$cache_file" || test -h "$cache_file"; then
13554         cat confcache >"$cache_file"
13555       else
13556         case $cache_file in #(
13557         */* | ?:*)
13558           mv -f confcache "$cache_file"$$ &&
13559           mv -f "$cache_file"$$ "$cache_file" ;; #(
13560         *)
13561           mv -f confcache "$cache_file" ;;
13562         esac
13563       fi
13564     fi
13565   else
13566     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13567 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13568   fi
13569 fi
13570 rm -f confcache
13571
13572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13573 # Let make expand exec_prefix.
13574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13575
13576 DEFS=-DHAVE_CONFIG_H
13577
13578 ac_libobjs=
13579 ac_ltlibobjs=
13580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13581   # 1. Remove the extension, and $U if already installed.
13582   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13583   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13584   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13585   #    will be set to the directory where LIBOBJS objects are built.
13586   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13587   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13588 done
13589 LIBOBJS=$ac_libobjs
13590
13591 LTLIBOBJS=$ac_ltlibobjs
13592
13593
13594  if test -n "$EXEEXT"; then
13595   am__EXEEXT_TRUE=
13596   am__EXEEXT_FALSE='#'
13597 else
13598   am__EXEEXT_TRUE='#'
13599   am__EXEEXT_FALSE=
13600 fi
13601
13602 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13603   as_fn_error $? "conditional \"AMDEP\" was never defined.
13604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13605 fi
13606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13607   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13609 fi
13610 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13611   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13613 fi
13614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13615   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13617 fi
13618 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13619   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13621 fi
13622
13623 : "${CONFIG_STATUS=./config.status}"
13624 ac_write_fail=0
13625 ac_clean_files_save=$ac_clean_files
13626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13628 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13629 as_write_fail=0
13630 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13631 #! $SHELL
13632 # Generated by $as_me.
13633 # Run this file to recreate the current configuration.
13634 # Compiler output produced by configure, useful for debugging
13635 # configure, is in config.log if it exists.
13636
13637 debug=false
13638 ac_cs_recheck=false
13639 ac_cs_silent=false
13640
13641 SHELL=\${CONFIG_SHELL-$SHELL}
13642 export SHELL
13643 _ASEOF
13644 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13645 ## -------------------- ##
13646 ## M4sh Initialization. ##
13647 ## -------------------- ##
13648
13649 # Be more Bourne compatible
13650 DUALCASE=1; export DUALCASE # for MKS sh
13651 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13652   emulate sh
13653   NULLCMD=:
13654   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13655   # is contrary to our usage.  Disable this feature.
13656   alias -g '${1+"$@"}'='"$@"'
13657   setopt NO_GLOB_SUBST
13658 else
13659   case `(set -o) 2>/dev/null` in #(
13660   *posix*) :
13661     set -o posix ;; #(
13662   *) :
13663      ;;
13664 esac
13665 fi
13666
13667
13668 as_nl='
13669 '
13670 export as_nl
13671 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13672 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13675 # Prefer a ksh shell builtin over an external printf program on Solaris,
13676 # but without wasting forks for bash or zsh.
13677 if test -z "$BASH_VERSION$ZSH_VERSION" \
13678     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13679   as_echo='print -r --'
13680   as_echo_n='print -rn --'
13681 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13682   as_echo='printf %s\n'
13683   as_echo_n='printf %s'
13684 else
13685   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13686     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13687     as_echo_n='/usr/ucb/echo -n'
13688   else
13689     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13690     as_echo_n_body='eval
13691       arg=$1;
13692       case $arg in #(
13693       *"$as_nl"*)
13694         expr "X$arg" : "X\\(.*\\)$as_nl";
13695         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13696       esac;
13697       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13698     '
13699     export as_echo_n_body
13700     as_echo_n='sh -c $as_echo_n_body as_echo'
13701   fi
13702   export as_echo_body
13703   as_echo='sh -c $as_echo_body as_echo'
13704 fi
13705
13706 # The user is always right.
13707 if test "${PATH_SEPARATOR+set}" != set; then
13708   PATH_SEPARATOR=:
13709   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13710     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13711       PATH_SEPARATOR=';'
13712   }
13713 fi
13714
13715
13716 # IFS
13717 # We need space, tab and new line, in precisely that order.  Quoting is
13718 # there to prevent editors from complaining about space-tab.
13719 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13720 # splitting by setting IFS to empty value.)
13721 IFS=" ""        $as_nl"
13722
13723 # Find who we are.  Look in the path if we contain no directory separator.
13724 as_myself=
13725 case $0 in #((
13726   *[\\/]* ) as_myself=$0 ;;
13727   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728 for as_dir in $PATH
13729 do
13730   IFS=$as_save_IFS
13731   test -z "$as_dir" && as_dir=.
13732     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13733   done
13734 IFS=$as_save_IFS
13735
13736      ;;
13737 esac
13738 # We did not find ourselves, most probably we were run as `sh COMMAND'
13739 # in which case we are not to be found in the path.
13740 if test "x$as_myself" = x; then
13741   as_myself=$0
13742 fi
13743 if test ! -f "$as_myself"; then
13744   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13745   exit 1
13746 fi
13747
13748 # Unset variables that we do not need and which cause bugs (e.g. in
13749 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13750 # suppresses any "Segmentation fault" message there.  '((' could
13751 # trigger a bug in pdksh 5.2.14.
13752 for as_var in BASH_ENV ENV MAIL MAILPATH
13753 do eval test x\${$as_var+set} = xset \
13754   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13755 done
13756 PS1='$ '
13757 PS2='> '
13758 PS4='+ '
13759
13760 # NLS nuisances.
13761 LC_ALL=C
13762 export LC_ALL
13763 LANGUAGE=C
13764 export LANGUAGE
13765
13766 # CDPATH.
13767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13768
13769
13770 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13771 # ----------------------------------------
13772 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13773 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13774 # script with STATUS, using 1 if that was 0.
13775 as_fn_error ()
13776 {
13777   as_status=$1; test $as_status -eq 0 && as_status=1
13778   if test "$4"; then
13779     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13780     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13781   fi
13782   $as_echo "$as_me: error: $2" >&2
13783   as_fn_exit $as_status
13784 } # as_fn_error
13785
13786
13787 # as_fn_set_status STATUS
13788 # -----------------------
13789 # Set $? to STATUS, without forking.
13790 as_fn_set_status ()
13791 {
13792   return $1
13793 } # as_fn_set_status
13794
13795 # as_fn_exit STATUS
13796 # -----------------
13797 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13798 as_fn_exit ()
13799 {
13800   set +e
13801   as_fn_set_status $1
13802   exit $1
13803 } # as_fn_exit
13804
13805 # as_fn_unset VAR
13806 # ---------------
13807 # Portably unset VAR.
13808 as_fn_unset ()
13809 {
13810   { eval $1=; unset $1;}
13811 }
13812 as_unset=as_fn_unset
13813 # as_fn_append VAR VALUE
13814 # ----------------------
13815 # Append the text in VALUE to the end of the definition contained in VAR. Take
13816 # advantage of any shell optimizations that allow amortized linear growth over
13817 # repeated appends, instead of the typical quadratic growth present in naive
13818 # implementations.
13819 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13820   eval 'as_fn_append ()
13821   {
13822     eval $1+=\$2
13823   }'
13824 else
13825   as_fn_append ()
13826   {
13827     eval $1=\$$1\$2
13828   }
13829 fi # as_fn_append
13830
13831 # as_fn_arith ARG...
13832 # ------------------
13833 # Perform arithmetic evaluation on the ARGs, and store the result in the
13834 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13835 # must be portable across $(()) and expr.
13836 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13837   eval 'as_fn_arith ()
13838   {
13839     as_val=$(( $* ))
13840   }'
13841 else
13842   as_fn_arith ()
13843   {
13844     as_val=`expr "$@" || test $? -eq 1`
13845   }
13846 fi # as_fn_arith
13847
13848
13849 if expr a : '\(a\)' >/dev/null 2>&1 &&
13850    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13851   as_expr=expr
13852 else
13853   as_expr=false
13854 fi
13855
13856 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13857   as_basename=basename
13858 else
13859   as_basename=false
13860 fi
13861
13862 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13863   as_dirname=dirname
13864 else
13865   as_dirname=false
13866 fi
13867
13868 as_me=`$as_basename -- "$0" ||
13869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13870          X"$0" : 'X\(//\)$' \| \
13871          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13872 $as_echo X/"$0" |
13873     sed '/^.*\/\([^/][^/]*\)\/*$/{
13874             s//\1/
13875             q
13876           }
13877           /^X\/\(\/\/\)$/{
13878             s//\1/
13879             q
13880           }
13881           /^X\/\(\/\).*/{
13882             s//\1/
13883             q
13884           }
13885           s/.*/./; q'`
13886
13887 # Avoid depending upon Character Ranges.
13888 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13889 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13890 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13891 as_cr_digits='0123456789'
13892 as_cr_alnum=$as_cr_Letters$as_cr_digits
13893
13894 ECHO_C= ECHO_N= ECHO_T=
13895 case `echo -n x` in #(((((
13896 -n*)
13897   case `echo 'xy\c'` in
13898   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13899   xy)  ECHO_C='\c';;
13900   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13901        ECHO_T=' ';;
13902   esac;;
13903 *)
13904   ECHO_N='-n';;
13905 esac
13906
13907 rm -f conf$$ conf$$.exe conf$$.file
13908 if test -d conf$$.dir; then
13909   rm -f conf$$.dir/conf$$.file
13910 else
13911   rm -f conf$$.dir
13912   mkdir conf$$.dir 2>/dev/null
13913 fi
13914 if (echo >conf$$.file) 2>/dev/null; then
13915   if ln -s conf$$.file conf$$ 2>/dev/null; then
13916     as_ln_s='ln -s'
13917     # ... but there are two gotchas:
13918     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13919     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13920     # In both cases, we have to default to `cp -p'.
13921     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13922       as_ln_s='cp -p'
13923   elif ln conf$$.file conf$$ 2>/dev/null; then
13924     as_ln_s=ln
13925   else
13926     as_ln_s='cp -p'
13927   fi
13928 else
13929   as_ln_s='cp -p'
13930 fi
13931 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13932 rmdir conf$$.dir 2>/dev/null
13933
13934
13935 # as_fn_mkdir_p
13936 # -------------
13937 # Create "$as_dir" as a directory, including parents if necessary.
13938 as_fn_mkdir_p ()
13939 {
13940
13941   case $as_dir in #(
13942   -*) as_dir=./$as_dir;;
13943   esac
13944   test -d "$as_dir" || eval $as_mkdir_p || {
13945     as_dirs=
13946     while :; do
13947       case $as_dir in #(
13948       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13949       *) as_qdir=$as_dir;;
13950       esac
13951       as_dirs="'$as_qdir' $as_dirs"
13952       as_dir=`$as_dirname -- "$as_dir" ||
13953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13954          X"$as_dir" : 'X\(//\)[^/]' \| \
13955          X"$as_dir" : 'X\(//\)$' \| \
13956          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13957 $as_echo X"$as_dir" |
13958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13959             s//\1/
13960             q
13961           }
13962           /^X\(\/\/\)[^/].*/{
13963             s//\1/
13964             q
13965           }
13966           /^X\(\/\/\)$/{
13967             s//\1/
13968             q
13969           }
13970           /^X\(\/\).*/{
13971             s//\1/
13972             q
13973           }
13974           s/.*/./; q'`
13975       test -d "$as_dir" && break
13976     done
13977     test -z "$as_dirs" || eval "mkdir $as_dirs"
13978   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13979
13980
13981 } # as_fn_mkdir_p
13982 if mkdir -p . 2>/dev/null; then
13983   as_mkdir_p='mkdir -p "$as_dir"'
13984 else
13985   test -d ./-p && rmdir ./-p
13986   as_mkdir_p=false
13987 fi
13988
13989 if test -x / >/dev/null 2>&1; then
13990   as_test_x='test -x'
13991 else
13992   if ls -dL / >/dev/null 2>&1; then
13993     as_ls_L_option=L
13994   else
13995     as_ls_L_option=
13996   fi
13997   as_test_x='
13998     eval sh -c '\''
13999       if test -d "$1"; then
14000         test -d "$1/.";
14001       else
14002         case $1 in #(
14003         -*)set "./$1";;
14004         esac;
14005         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14006         ???[sx]*):;;*)false;;esac;fi
14007     '\'' sh
14008   '
14009 fi
14010 as_executable_p=$as_test_x
14011
14012 # Sed expression to map a string onto a valid CPP name.
14013 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14014
14015 # Sed expression to map a string onto a valid variable name.
14016 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14017
14018
14019 exec 6>&1
14020 ## ----------------------------------- ##
14021 ## Main body of $CONFIG_STATUS script. ##
14022 ## ----------------------------------- ##
14023 _ASEOF
14024 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14025
14026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14027 # Save the log message, to keep $0 and so on meaningful, and to
14028 # report actual input values of CONFIG_FILES etc. instead of their
14029 # values after options handling.
14030 ac_log="
14031 This file was extended by libjpeg $as_me 8.3.0, which was
14032 generated by GNU Autoconf 2.68.  Invocation command line was
14033
14034   CONFIG_FILES    = $CONFIG_FILES
14035   CONFIG_HEADERS  = $CONFIG_HEADERS
14036   CONFIG_LINKS    = $CONFIG_LINKS
14037   CONFIG_COMMANDS = $CONFIG_COMMANDS
14038   $ $0 $@
14039
14040 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14041 "
14042
14043 _ACEOF
14044
14045 case $ac_config_files in *"
14046 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14047 esac
14048
14049 case $ac_config_headers in *"
14050 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14051 esac
14052
14053
14054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14055 # Files that config.status was made for.
14056 config_files="$ac_config_files"
14057 config_headers="$ac_config_headers"
14058 config_commands="$ac_config_commands"
14059
14060 _ACEOF
14061
14062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14063 ac_cs_usage="\
14064 \`$as_me' instantiates files and other configuration actions
14065 from templates according to the current configuration.  Unless the files
14066 and actions are specified as TAGs, all are instantiated by default.
14067
14068 Usage: $0 [OPTION]... [TAG]...
14069
14070   -h, --help       print this help, then exit
14071   -V, --version    print version number and configuration settings, then exit
14072       --config     print configuration, then exit
14073   -q, --quiet, --silent
14074                    do not print progress messages
14075   -d, --debug      don't remove temporary files
14076       --recheck    update $as_me by reconfiguring in the same conditions
14077       --file=FILE[:TEMPLATE]
14078                    instantiate the configuration file FILE
14079       --header=FILE[:TEMPLATE]
14080                    instantiate the configuration header FILE
14081
14082 Configuration files:
14083 $config_files
14084
14085 Configuration headers:
14086 $config_headers
14087
14088 Configuration commands:
14089 $config_commands
14090
14091 Report bugs to the package provider."
14092
14093 _ACEOF
14094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14095 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14096 ac_cs_version="\\
14097 libjpeg config.status 8.3.0
14098 configured by $0, generated by GNU Autoconf 2.68,
14099   with options \\"\$ac_cs_config\\"
14100
14101 Copyright (C) 2010 Free Software Foundation, Inc.
14102 This config.status script is free software; the Free Software Foundation
14103 gives unlimited permission to copy, distribute and modify it."
14104
14105 ac_pwd='$ac_pwd'
14106 srcdir='$srcdir'
14107 INSTALL='$INSTALL'
14108 MKDIR_P='$MKDIR_P'
14109 AWK='$AWK'
14110 test -n "\$AWK" || AWK=awk
14111 _ACEOF
14112
14113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14114 # The default lists apply if the user does not specify any file.
14115 ac_need_defaults=:
14116 while test $# != 0
14117 do
14118   case $1 in
14119   --*=?*)
14120     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14121     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14122     ac_shift=:
14123     ;;
14124   --*=)
14125     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14126     ac_optarg=
14127     ac_shift=:
14128     ;;
14129   *)
14130     ac_option=$1
14131     ac_optarg=$2
14132     ac_shift=shift
14133     ;;
14134   esac
14135
14136   case $ac_option in
14137   # Handling of the options.
14138   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14139     ac_cs_recheck=: ;;
14140   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14141     $as_echo "$ac_cs_version"; exit ;;
14142   --config | --confi | --conf | --con | --co | --c )
14143     $as_echo "$ac_cs_config"; exit ;;
14144   --debug | --debu | --deb | --de | --d | -d )
14145     debug=: ;;
14146   --file | --fil | --fi | --f )
14147     $ac_shift
14148     case $ac_optarg in
14149     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14150     '') as_fn_error $? "missing file argument" ;;
14151     esac
14152     as_fn_append CONFIG_FILES " '$ac_optarg'"
14153     ac_need_defaults=false;;
14154   --header | --heade | --head | --hea )
14155     $ac_shift
14156     case $ac_optarg in
14157     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14158     esac
14159     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14160     ac_need_defaults=false;;
14161   --he | --h)
14162     # Conflict between --help and --header
14163     as_fn_error $? "ambiguous option: \`$1'
14164 Try \`$0 --help' for more information.";;
14165   --help | --hel | -h )
14166     $as_echo "$ac_cs_usage"; exit ;;
14167   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14168   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14169     ac_cs_silent=: ;;
14170
14171   # This is an error.
14172   -*) as_fn_error $? "unrecognized option: \`$1'
14173 Try \`$0 --help' for more information." ;;
14174
14175   *) as_fn_append ac_config_targets " $1"
14176      ac_need_defaults=false ;;
14177
14178   esac
14179   shift
14180 done
14181
14182 ac_configure_extra_args=
14183
14184 if $ac_cs_silent; then
14185   exec 6>/dev/null
14186   ac_configure_extra_args="$ac_configure_extra_args --silent"
14187 fi
14188
14189 _ACEOF
14190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14191 if \$ac_cs_recheck; then
14192   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14193   shift
14194   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14195   CONFIG_SHELL='$SHELL'
14196   export CONFIG_SHELL
14197   exec "\$@"
14198 fi
14199
14200 _ACEOF
14201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14202 exec 5>>config.log
14203 {
14204   echo
14205   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14206 ## Running $as_me. ##
14207 _ASBOX
14208   $as_echo "$ac_log"
14209 } >&5
14210
14211 _ACEOF
14212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14213 #
14214 # INIT-COMMANDS
14215 #
14216 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14217
14218
14219 # The HP-UX ksh and POSIX shell print the target directory to stdout
14220 # if CDPATH is set.
14221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14222
14223 sed_quote_subst='$sed_quote_subst'
14224 double_quote_subst='$double_quote_subst'
14225 delay_variable_subst='$delay_variable_subst'
14226 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14227 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14228 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14229 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14230 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14231 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14232 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14233 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14234 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14235 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14236 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14237 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14238 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14239 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14240 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14241 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14242 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14243 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14244 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14245 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14246 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14247 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14248 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14249 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14250 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14251 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14252 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14253 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14254 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14255 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14256 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14257 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14258 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14259 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14260 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14261 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14262 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14263 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14264 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14265 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14266 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14267 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14268 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14269 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14270 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14271 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14272 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14273 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14274 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14275 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14276 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14277 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14278 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14279 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14280 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14281 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14282 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14283 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14284 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14285 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14286 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14287 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14288 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14289 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14290 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14291 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14292 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14293 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14294 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14295 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14296 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14297 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14298 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14299 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14300 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14301 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14302 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14303 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14304 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14305 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14306 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14307 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14308 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14309 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14310 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14311 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14312 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14313 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14314 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14315 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14316 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14317 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14318 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14319 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14320 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14321 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14322 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14323 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14324 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14325 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14326 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14327 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14328 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14329 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14330 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14331 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14332 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14333 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14334 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14335 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14336 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14337 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14338 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14339 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14340 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14341 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14342 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14343 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14344 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14345 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14346 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14347 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14348 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14349 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14350 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14351 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14352 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14353 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14354 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14355 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14356 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14357
14358 LTCC='$LTCC'
14359 LTCFLAGS='$LTCFLAGS'
14360 compiler='$compiler_DEFAULT'
14361
14362 # A function that is used when there is no print builtin or printf.
14363 func_fallback_echo ()
14364 {
14365   eval 'cat <<_LTECHO_EOF
14366 \$1
14367 _LTECHO_EOF'
14368 }
14369
14370 # Quote evaled strings.
14371 for var in AS \
14372 DLLTOOL \
14373 OBJDUMP \
14374 SHELL \
14375 ECHO \
14376 SED \
14377 GREP \
14378 EGREP \
14379 FGREP \
14380 LD \
14381 NM \
14382 LN_S \
14383 lt_SP2NL \
14384 lt_NL2SP \
14385 reload_flag \
14386 deplibs_check_method \
14387 file_magic_cmd \
14388 file_magic_glob \
14389 want_nocaseglob \
14390 sharedlib_from_linklib_cmd \
14391 AR \
14392 AR_FLAGS \
14393 archiver_list_spec \
14394 STRIP \
14395 RANLIB \
14396 CC \
14397 CFLAGS \
14398 compiler \
14399 lt_cv_sys_global_symbol_pipe \
14400 lt_cv_sys_global_symbol_to_cdecl \
14401 lt_cv_sys_global_symbol_to_c_name_address \
14402 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14403 nm_file_list_spec \
14404 lt_prog_compiler_no_builtin_flag \
14405 lt_prog_compiler_pic \
14406 lt_prog_compiler_wl \
14407 lt_prog_compiler_static \
14408 lt_cv_prog_compiler_c_o \
14409 need_locks \
14410 MANIFEST_TOOL \
14411 DSYMUTIL \
14412 NMEDIT \
14413 LIPO \
14414 OTOOL \
14415 OTOOL64 \
14416 shrext_cmds \
14417 export_dynamic_flag_spec \
14418 whole_archive_flag_spec \
14419 compiler_needs_object \
14420 with_gnu_ld \
14421 allow_undefined_flag \
14422 no_undefined_flag \
14423 hardcode_libdir_flag_spec \
14424 hardcode_libdir_flag_spec_ld \
14425 hardcode_libdir_separator \
14426 exclude_expsyms \
14427 include_expsyms \
14428 file_list_spec \
14429 variables_saved_for_relink \
14430 libname_spec \
14431 library_names_spec \
14432 soname_spec \
14433 install_override_mode \
14434 finish_eval \
14435 old_striplib \
14436 striplib; do
14437     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14438     *[\\\\\\\`\\"\\\$]*)
14439       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14440       ;;
14441     *)
14442       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14443       ;;
14444     esac
14445 done
14446
14447 # Double-quote double-evaled strings.
14448 for var in reload_cmds \
14449 old_postinstall_cmds \
14450 old_postuninstall_cmds \
14451 old_archive_cmds \
14452 extract_expsyms_cmds \
14453 old_archive_from_new_cmds \
14454 old_archive_from_expsyms_cmds \
14455 archive_cmds \
14456 archive_expsym_cmds \
14457 module_cmds \
14458 module_expsym_cmds \
14459 export_symbols_cmds \
14460 prelink_cmds \
14461 postlink_cmds \
14462 postinstall_cmds \
14463 postuninstall_cmds \
14464 finish_cmds \
14465 sys_lib_search_path_spec \
14466 sys_lib_dlsearch_path_spec; do
14467     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14468     *[\\\\\\\`\\"\\\$]*)
14469       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14470       ;;
14471     *)
14472       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14473       ;;
14474     esac
14475 done
14476
14477 ac_aux_dir='$ac_aux_dir'
14478 xsi_shell='$xsi_shell'
14479 lt_shell_append='$lt_shell_append'
14480
14481 # See if we are running on zsh, and set the options which allow our
14482 # commands through without removal of \ escapes INIT.
14483 if test -n "\${ZSH_VERSION+set}" ; then
14484    setopt NO_GLOB_SUBST
14485 fi
14486
14487
14488     PACKAGE='$PACKAGE'
14489     VERSION='$VERSION'
14490     TIMESTAMP='$TIMESTAMP'
14491     RM='$RM'
14492     ofile='$ofile'
14493
14494
14495
14496
14497 _ACEOF
14498
14499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14500
14501 # Handling of arguments.
14502 for ac_config_target in $ac_config_targets
14503 do
14504   case $ac_config_target in
14505     "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
14506     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14507     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14508     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14509
14510   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14511   esac
14512 done
14513
14514
14515 # If the user did not use the arguments to specify the items to instantiate,
14516 # then the envvar interface is used.  Set only those that are not.
14517 # We use the long form for the default assignment because of an extremely
14518 # bizarre bug on SunOS 4.1.3.
14519 if $ac_need_defaults; then
14520   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14521   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14522   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14523 fi
14524
14525 # Have a temporary directory for convenience.  Make it in the build tree
14526 # simply because there is no reason against having it here, and in addition,
14527 # creating and moving files from /tmp can sometimes cause problems.
14528 # Hook for its removal unless debugging.
14529 # Note that there is a small window in which the directory will not be cleaned:
14530 # after its creation but before its name has been assigned to `$tmp'.
14531 $debug ||
14532 {
14533   tmp= ac_tmp=
14534   trap 'exit_status=$?
14535   : "${ac_tmp:=$tmp}"
14536   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14537 ' 0
14538   trap 'as_fn_exit 1' 1 2 13 15
14539 }
14540 # Create a (secure) tmp directory for tmp files.
14541
14542 {
14543   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14544   test -d "$tmp"
14545 }  ||
14546 {
14547   tmp=./conf$$-$RANDOM
14548   (umask 077 && mkdir "$tmp")
14549 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14550 ac_tmp=$tmp
14551
14552 # Set up the scripts for CONFIG_FILES section.
14553 # No need to generate them if there are no CONFIG_FILES.
14554 # This happens for instance with `./config.status config.h'.
14555 if test -n "$CONFIG_FILES"; then
14556
14557
14558 ac_cr=`echo X | tr X '\015'`
14559 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14560 # But we know of no other shell where ac_cr would be empty at this
14561 # point, so we can use a bashism as a fallback.
14562 if test "x$ac_cr" = x; then
14563   eval ac_cr=\$\'\\r\'
14564 fi
14565 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14566 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14567   ac_cs_awk_cr='\\r'
14568 else
14569   ac_cs_awk_cr=$ac_cr
14570 fi
14571
14572 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14573 _ACEOF
14574
14575
14576 {
14577   echo "cat >conf$$subs.awk <<_ACEOF" &&
14578   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14579   echo "_ACEOF"
14580 } >conf$$subs.sh ||
14581   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14582 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14583 ac_delim='%!_!# '
14584 for ac_last_try in false false false false false :; do
14585   . ./conf$$subs.sh ||
14586     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14587
14588   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14589   if test $ac_delim_n = $ac_delim_num; then
14590     break
14591   elif $ac_last_try; then
14592     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14593   else
14594     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14595   fi
14596 done
14597 rm -f conf$$subs.sh
14598
14599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14600 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14601 _ACEOF
14602 sed -n '
14603 h
14604 s/^/S["/; s/!.*/"]=/
14605 p
14606 g
14607 s/^[^!]*!//
14608 :repl
14609 t repl
14610 s/'"$ac_delim"'$//
14611 t delim
14612 :nl
14613 h
14614 s/\(.\{148\}\)..*/\1/
14615 t more1
14616 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14617 p
14618 n
14619 b repl
14620 :more1
14621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14622 p
14623 g
14624 s/.\{148\}//
14625 t nl
14626 :delim
14627 h
14628 s/\(.\{148\}\)..*/\1/
14629 t more2
14630 s/["\\]/\\&/g; s/^/"/; s/$/"/
14631 p
14632 b
14633 :more2
14634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14635 p
14636 g
14637 s/.\{148\}//
14638 t delim
14639 ' <conf$$subs.awk | sed '
14640 /^[^""]/{
14641   N
14642   s/\n//
14643 }
14644 ' >>$CONFIG_STATUS || ac_write_fail=1
14645 rm -f conf$$subs.awk
14646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14647 _ACAWK
14648 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14649   for (key in S) S_is_set[key] = 1
14650   FS = "\a"
14651
14652 }
14653 {
14654   line = $ 0
14655   nfields = split(line, field, "@")
14656   substed = 0
14657   len = length(field[1])
14658   for (i = 2; i < nfields; i++) {
14659     key = field[i]
14660     keylen = length(key)
14661     if (S_is_set[key]) {
14662       value = S[key]
14663       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14664       len += length(value) + length(field[++i])
14665       substed = 1
14666     } else
14667       len += 1 + keylen
14668   }
14669
14670   print line
14671 }
14672
14673 _ACAWK
14674 _ACEOF
14675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14676 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14677   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14678 else
14679   cat
14680 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14681   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14682 _ACEOF
14683
14684 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14685 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14686 # trailing colons and then remove the whole line if VPATH becomes empty
14687 # (actually we leave an empty line to preserve line numbers).
14688 if test "x$srcdir" = x.; then
14689   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14690 h
14691 s///
14692 s/^/:/
14693 s/[      ]*$/:/
14694 s/:\$(srcdir):/:/g
14695 s/:\${srcdir}:/:/g
14696 s/:@srcdir@:/:/g
14697 s/^:*//
14698 s/:*$//
14699 x
14700 s/\(=[   ]*\).*/\1/
14701 G
14702 s/\n//
14703 s/^[^=]*=[       ]*$//
14704 }'
14705 fi
14706
14707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14708 fi # test -n "$CONFIG_FILES"
14709
14710 # Set up the scripts for CONFIG_HEADERS section.
14711 # No need to generate them if there are no CONFIG_HEADERS.
14712 # This happens for instance with `./config.status Makefile'.
14713 if test -n "$CONFIG_HEADERS"; then
14714 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14715 BEGIN {
14716 _ACEOF
14717
14718 # Transform confdefs.h into an awk script `defines.awk', embedded as
14719 # here-document in config.status, that substitutes the proper values into
14720 # config.h.in to produce config.h.
14721
14722 # Create a delimiter string that does not exist in confdefs.h, to ease
14723 # handling of long lines.
14724 ac_delim='%!_!# '
14725 for ac_last_try in false false :; do
14726   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14727   if test -z "$ac_tt"; then
14728     break
14729   elif $ac_last_try; then
14730     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14731   else
14732     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14733   fi
14734 done
14735
14736 # For the awk script, D is an array of macro values keyed by name,
14737 # likewise P contains macro parameters if any.  Preserve backslash
14738 # newline sequences.
14739
14740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14741 sed -n '
14742 s/.\{148\}/&'"$ac_delim"'/g
14743 t rset
14744 :rset
14745 s/^[     ]*#[    ]*define[       ][      ]*/ /
14746 t def
14747 d
14748 :def
14749 s/\\$//
14750 t bsnl
14751 s/["\\]/\\&/g
14752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14753 D["\1"]=" \3"/p
14754 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14755 d
14756 :bsnl
14757 s/["\\]/\\&/g
14758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14759 D["\1"]=" \3\\\\\\n"\\/p
14760 t cont
14761 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14762 t cont
14763 d
14764 :cont
14765 n
14766 s/.\{148\}/&'"$ac_delim"'/g
14767 t clear
14768 :clear
14769 s/\\$//
14770 t bsnlc
14771 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14772 d
14773 :bsnlc
14774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14775 b cont
14776 ' <confdefs.h | sed '
14777 s/'"$ac_delim"'/"\\\
14778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14779
14780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14781   for (key in D) D_is_set[key] = 1
14782   FS = "\a"
14783 }
14784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14785   line = \$ 0
14786   split(line, arg, " ")
14787   if (arg[1] == "#") {
14788     defundef = arg[2]
14789     mac1 = arg[3]
14790   } else {
14791     defundef = substr(arg[1], 2)
14792     mac1 = arg[2]
14793   }
14794   split(mac1, mac2, "(") #)
14795   macro = mac2[1]
14796   prefix = substr(line, 1, index(line, defundef) - 1)
14797   if (D_is_set[macro]) {
14798     # Preserve the white space surrounding the "#".
14799     print prefix "define", macro P[macro] D[macro]
14800     next
14801   } else {
14802     # Replace #undef with comments.  This is necessary, for example,
14803     # in the case of _POSIX_SOURCE, which is predefined and required
14804     # on some systems where configure will not decide to define it.
14805     if (defundef == "undef") {
14806       print "/*", prefix defundef, macro, "*/"
14807       next
14808     }
14809   }
14810 }
14811 { print }
14812 _ACAWK
14813 _ACEOF
14814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14815   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14816 fi # test -n "$CONFIG_HEADERS"
14817
14818
14819 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14820 shift
14821 for ac_tag
14822 do
14823   case $ac_tag in
14824   :[FHLC]) ac_mode=$ac_tag; continue;;
14825   esac
14826   case $ac_mode$ac_tag in
14827   :[FHL]*:*);;
14828   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14829   :[FH]-) ac_tag=-:-;;
14830   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14831   esac
14832   ac_save_IFS=$IFS
14833   IFS=:
14834   set x $ac_tag
14835   IFS=$ac_save_IFS
14836   shift
14837   ac_file=$1
14838   shift
14839
14840   case $ac_mode in
14841   :L) ac_source=$1;;
14842   :[FH])
14843     ac_file_inputs=
14844     for ac_f
14845     do
14846       case $ac_f in
14847       -) ac_f="$ac_tmp/stdin";;
14848       *) # Look for the file first in the build tree, then in the source tree
14849          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14850          # because $ac_f cannot contain `:'.
14851          test -f "$ac_f" ||
14852            case $ac_f in
14853            [\\/$]*) false;;
14854            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14855            esac ||
14856            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14857       esac
14858       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14859       as_fn_append ac_file_inputs " '$ac_f'"
14860     done
14861
14862     # Let's still pretend it is `configure' which instantiates (i.e., don't
14863     # use $as_me), people would be surprised to read:
14864     #    /* config.h.  Generated by config.status.  */
14865     configure_input='Generated from '`
14866           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14867         `' by configure.'
14868     if test x"$ac_file" != x-; then
14869       configure_input="$ac_file.  $configure_input"
14870       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14871 $as_echo "$as_me: creating $ac_file" >&6;}
14872     fi
14873     # Neutralize special characters interpreted by sed in replacement strings.
14874     case $configure_input in #(
14875     *\&* | *\|* | *\\* )
14876        ac_sed_conf_input=`$as_echo "$configure_input" |
14877        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14878     *) ac_sed_conf_input=$configure_input;;
14879     esac
14880
14881     case $ac_tag in
14882     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14883       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14884     esac
14885     ;;
14886   esac
14887
14888   ac_dir=`$as_dirname -- "$ac_file" ||
14889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14890          X"$ac_file" : 'X\(//\)[^/]' \| \
14891          X"$ac_file" : 'X\(//\)$' \| \
14892          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14893 $as_echo X"$ac_file" |
14894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14895             s//\1/
14896             q
14897           }
14898           /^X\(\/\/\)[^/].*/{
14899             s//\1/
14900             q
14901           }
14902           /^X\(\/\/\)$/{
14903             s//\1/
14904             q
14905           }
14906           /^X\(\/\).*/{
14907             s//\1/
14908             q
14909           }
14910           s/.*/./; q'`
14911   as_dir="$ac_dir"; as_fn_mkdir_p
14912   ac_builddir=.
14913
14914 case "$ac_dir" in
14915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14916 *)
14917   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14918   # A ".." for each directory in $ac_dir_suffix.
14919   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14920   case $ac_top_builddir_sub in
14921   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14922   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14923   esac ;;
14924 esac
14925 ac_abs_top_builddir=$ac_pwd
14926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14927 # for backward compatibility:
14928 ac_top_builddir=$ac_top_build_prefix
14929
14930 case $srcdir in
14931   .)  # We are building in place.
14932     ac_srcdir=.
14933     ac_top_srcdir=$ac_top_builddir_sub
14934     ac_abs_top_srcdir=$ac_pwd ;;
14935   [\\/]* | ?:[\\/]* )  # Absolute name.
14936     ac_srcdir=$srcdir$ac_dir_suffix;
14937     ac_top_srcdir=$srcdir
14938     ac_abs_top_srcdir=$srcdir ;;
14939   *) # Relative name.
14940     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14941     ac_top_srcdir=$ac_top_build_prefix$srcdir
14942     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14943 esac
14944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14945
14946
14947   case $ac_mode in
14948   :F)
14949   #
14950   # CONFIG_FILE
14951   #
14952
14953   case $INSTALL in
14954   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14955   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14956   esac
14957   ac_MKDIR_P=$MKDIR_P
14958   case $MKDIR_P in
14959   [\\/$]* | ?:[\\/]* ) ;;
14960   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14961   esac
14962 _ACEOF
14963
14964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14965 # If the template does not know about datarootdir, expand it.
14966 # FIXME: This hack should be removed a few years after 2.60.
14967 ac_datarootdir_hack=; ac_datarootdir_seen=
14968 ac_sed_dataroot='
14969 /datarootdir/ {
14970   p
14971   q
14972 }
14973 /@datadir@/p
14974 /@docdir@/p
14975 /@infodir@/p
14976 /@localedir@/p
14977 /@mandir@/p'
14978 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14979 *datarootdir*) ac_datarootdir_seen=yes;;
14980 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14981   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14982 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14983 _ACEOF
14984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14985   ac_datarootdir_hack='
14986   s&@datadir@&$datadir&g
14987   s&@docdir@&$docdir&g
14988   s&@infodir@&$infodir&g
14989   s&@localedir@&$localedir&g
14990   s&@mandir@&$mandir&g
14991   s&\\\${datarootdir}&$datarootdir&g' ;;
14992 esac
14993 _ACEOF
14994
14995 # Neutralize VPATH when `$srcdir' = `.'.
14996 # Shell code in configure.ac might set extrasub.
14997 # FIXME: do we really want to maintain this feature?
14998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14999 ac_sed_extra="$ac_vpsub
15000 $extrasub
15001 _ACEOF
15002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15003 :t
15004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15005 s|@configure_input@|$ac_sed_conf_input|;t t
15006 s&@top_builddir@&$ac_top_builddir_sub&;t t
15007 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15008 s&@srcdir@&$ac_srcdir&;t t
15009 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15010 s&@top_srcdir@&$ac_top_srcdir&;t t
15011 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15012 s&@builddir@&$ac_builddir&;t t
15013 s&@abs_builddir@&$ac_abs_builddir&;t t
15014 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15015 s&@INSTALL@&$ac_INSTALL&;t t
15016 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15017 $ac_datarootdir_hack
15018 "
15019 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15020   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15021
15022 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15023   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15024   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15025       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15026   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15027 which seems to be undefined.  Please make sure it is defined" >&5
15028 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15029 which seems to be undefined.  Please make sure it is defined" >&2;}
15030
15031   rm -f "$ac_tmp/stdin"
15032   case $ac_file in
15033   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15034   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15035   esac \
15036   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15037  ;;
15038   :H)
15039   #
15040   # CONFIG_HEADER
15041   #
15042   if test x"$ac_file" != x-; then
15043     {
15044       $as_echo "/* $configure_input  */" \
15045       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15046     } >"$ac_tmp/config.h" \
15047       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15048     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15049       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15050 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15051     else
15052       rm -f "$ac_file"
15053       mv "$ac_tmp/config.h" "$ac_file" \
15054         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15055     fi
15056   else
15057     $as_echo "/* $configure_input  */" \
15058       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15059       || as_fn_error $? "could not create -" "$LINENO" 5
15060   fi
15061 # Compute "$ac_file"'s index in $config_headers.
15062 _am_arg="$ac_file"
15063 _am_stamp_count=1
15064 for _am_header in $config_headers :; do
15065   case $_am_header in
15066     $_am_arg | $_am_arg:* )
15067       break ;;
15068     * )
15069       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15070   esac
15071 done
15072 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15073 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15074          X"$_am_arg" : 'X\(//\)[^/]' \| \
15075          X"$_am_arg" : 'X\(//\)$' \| \
15076          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15077 $as_echo X"$_am_arg" |
15078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15079             s//\1/
15080             q
15081           }
15082           /^X\(\/\/\)[^/].*/{
15083             s//\1/
15084             q
15085           }
15086           /^X\(\/\/\)$/{
15087             s//\1/
15088             q
15089           }
15090           /^X\(\/\).*/{
15091             s//\1/
15092             q
15093           }
15094           s/.*/./; q'`/stamp-h$_am_stamp_count
15095  ;;
15096
15097   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15098 $as_echo "$as_me: executing $ac_file commands" >&6;}
15099  ;;
15100   esac
15101
15102
15103   case $ac_file$ac_mode in
15104     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15105   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15106   # are listed without --file.  Let's play safe and only enable the eval
15107   # if we detect the quoting.
15108   case $CONFIG_FILES in
15109   *\'*) eval set x "$CONFIG_FILES" ;;
15110   *)   set x $CONFIG_FILES ;;
15111   esac
15112   shift
15113   for mf
15114   do
15115     # Strip MF so we end up with the name of the file.
15116     mf=`echo "$mf" | sed -e 's/:.*$//'`
15117     # Check whether this is an Automake generated Makefile or not.
15118     # We used to match only the files named `Makefile.in', but
15119     # some people rename them; so instead we look at the file content.
15120     # Grep'ing the first line is not enough: some people post-process
15121     # each Makefile.in and add a new line on top of each file to say so.
15122     # Grep'ing the whole file is not good either: AIX grep has a line
15123     # limit of 2048, but all sed's we know have understand at least 4000.
15124     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15125       dirpart=`$as_dirname -- "$mf" ||
15126 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15127          X"$mf" : 'X\(//\)[^/]' \| \
15128          X"$mf" : 'X\(//\)$' \| \
15129          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15130 $as_echo X"$mf" |
15131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15132             s//\1/
15133             q
15134           }
15135           /^X\(\/\/\)[^/].*/{
15136             s//\1/
15137             q
15138           }
15139           /^X\(\/\/\)$/{
15140             s//\1/
15141             q
15142           }
15143           /^X\(\/\).*/{
15144             s//\1/
15145             q
15146           }
15147           s/.*/./; q'`
15148     else
15149       continue
15150     fi
15151     # Extract the definition of DEPDIR, am__include, and am__quote
15152     # from the Makefile without running `make'.
15153     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15154     test -z "$DEPDIR" && continue
15155     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15156     test -z "am__include" && continue
15157     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15158     # When using ansi2knr, U may be empty or an underscore; expand it
15159     U=`sed -n 's/^U = //p' < "$mf"`
15160     # Find all dependency output files, they are included files with
15161     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15162     # simplest approach to changing $(DEPDIR) to its actual value in the
15163     # expansion.
15164     for file in `sed -n "
15165       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15166          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15167       # Make sure the directory exists.
15168       test -f "$dirpart/$file" && continue
15169       fdir=`$as_dirname -- "$file" ||
15170 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15171          X"$file" : 'X\(//\)[^/]' \| \
15172          X"$file" : 'X\(//\)$' \| \
15173          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15174 $as_echo X"$file" |
15175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15176             s//\1/
15177             q
15178           }
15179           /^X\(\/\/\)[^/].*/{
15180             s//\1/
15181             q
15182           }
15183           /^X\(\/\/\)$/{
15184             s//\1/
15185             q
15186           }
15187           /^X\(\/\).*/{
15188             s//\1/
15189             q
15190           }
15191           s/.*/./; q'`
15192       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15193       # echo "creating $dirpart/$file"
15194       echo '# dummy' > "$dirpart/$file"
15195     done
15196   done
15197 }
15198  ;;
15199     "libtool":C)
15200
15201     # See if we are running on zsh, and set the options which allow our
15202     # commands through without removal of \ escapes.
15203     if test -n "${ZSH_VERSION+set}" ; then
15204       setopt NO_GLOB_SUBST
15205     fi
15206
15207     cfgfile="${ofile}T"
15208     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15209     $RM "$cfgfile"
15210
15211     cat <<_LT_EOF >> "$cfgfile"
15212 #! $SHELL
15213
15214 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15215 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15216 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15217 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15218 #
15219 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15220 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15221 #                 Inc.
15222 #   Written by Gordon Matzigkeit, 1996
15223 #
15224 #   This file is part of GNU Libtool.
15225 #
15226 # GNU Libtool is free software; you can redistribute it and/or
15227 # modify it under the terms of the GNU General Public License as
15228 # published by the Free Software Foundation; either version 2 of
15229 # the License, or (at your option) any later version.
15230 #
15231 # As a special exception to the GNU General Public License,
15232 # if you distribute this file as part of a program or library that
15233 # is built using GNU Libtool, you may include this file under the
15234 # same distribution terms that you use for the rest of that program.
15235 #
15236 # GNU Libtool is distributed in the hope that it will be useful,
15237 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15238 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15239 # GNU General Public License for more details.
15240 #
15241 # You should have received a copy of the GNU General Public License
15242 # along with GNU Libtool; see the file COPYING.  If not, a copy
15243 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15244 # obtained by writing to the Free Software Foundation, Inc.,
15245 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15246
15247
15248 # The names of the tagged configurations supported by this script.
15249 available_tags=""
15250
15251 # ### BEGIN LIBTOOL CONFIG
15252
15253 # Assembler program.
15254 AS=$lt_AS
15255
15256 # DLL creation program.
15257 DLLTOOL=$lt_DLLTOOL
15258
15259 # Object dumper program.
15260 OBJDUMP=$lt_OBJDUMP
15261
15262 # Which release of libtool.m4 was used?
15263 macro_version=$macro_version
15264 macro_revision=$macro_revision
15265
15266 # Whether or not to build shared libraries.
15267 build_libtool_libs=$enable_shared
15268
15269 # Whether or not to build static libraries.
15270 build_old_libs=$enable_static
15271
15272 # What type of objects to build.
15273 pic_mode=$pic_mode
15274
15275 # Whether or not to optimize for fast installation.
15276 fast_install=$enable_fast_install
15277
15278 # Shell to use when invoking shell scripts.
15279 SHELL=$lt_SHELL
15280
15281 # An echo program that protects backslashes.
15282 ECHO=$lt_ECHO
15283
15284 # The host system.
15285 host_alias=$host_alias
15286 host=$host
15287 host_os=$host_os
15288
15289 # The build system.
15290 build_alias=$build_alias
15291 build=$build
15292 build_os=$build_os
15293
15294 # A sed program that does not truncate output.
15295 SED=$lt_SED
15296
15297 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15298 Xsed="\$SED -e 1s/^X//"
15299
15300 # A grep program that handles long lines.
15301 GREP=$lt_GREP
15302
15303 # An ERE matcher.
15304 EGREP=$lt_EGREP
15305
15306 # A literal string matcher.
15307 FGREP=$lt_FGREP
15308
15309 # A BSD- or MS-compatible name lister.
15310 NM=$lt_NM
15311
15312 # Whether we need soft or hard links.
15313 LN_S=$lt_LN_S
15314
15315 # What is the maximum length of a command?
15316 max_cmd_len=$max_cmd_len
15317
15318 # Object file suffix (normally "o").
15319 objext=$ac_objext
15320
15321 # Executable file suffix (normally "").
15322 exeext=$exeext
15323
15324 # whether the shell understands "unset".
15325 lt_unset=$lt_unset
15326
15327 # turn spaces into newlines.
15328 SP2NL=$lt_lt_SP2NL
15329
15330 # turn newlines into spaces.
15331 NL2SP=$lt_lt_NL2SP
15332
15333 # convert \$build file names to \$host format.
15334 to_host_file_cmd=$lt_cv_to_host_file_cmd
15335
15336 # convert \$build files to toolchain format.
15337 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15338
15339 # Method to check whether dependent libraries are shared objects.
15340 deplibs_check_method=$lt_deplibs_check_method
15341
15342 # Command to use when deplibs_check_method = "file_magic".
15343 file_magic_cmd=$lt_file_magic_cmd
15344
15345 # How to find potential files when deplibs_check_method = "file_magic".
15346 file_magic_glob=$lt_file_magic_glob
15347
15348 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15349 want_nocaseglob=$lt_want_nocaseglob
15350
15351 # Command to associate shared and link libraries.
15352 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15353
15354 # The archiver.
15355 AR=$lt_AR
15356
15357 # Flags to create an archive.
15358 AR_FLAGS=$lt_AR_FLAGS
15359
15360 # How to feed a file listing to the archiver.
15361 archiver_list_spec=$lt_archiver_list_spec
15362
15363 # A symbol stripping program.
15364 STRIP=$lt_STRIP
15365
15366 # Commands used to install an old-style archive.
15367 RANLIB=$lt_RANLIB
15368 old_postinstall_cmds=$lt_old_postinstall_cmds
15369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15370
15371 # Whether to use a lock for old archive extraction.
15372 lock_old_archive_extraction=$lock_old_archive_extraction
15373
15374 # A C compiler.
15375 LTCC=$lt_CC
15376
15377 # LTCC compiler flags.
15378 LTCFLAGS=$lt_CFLAGS
15379
15380 # Take the output of nm and produce a listing of raw symbols and C names.
15381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15382
15383 # Transform the output of nm in a proper C declaration.
15384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15385
15386 # Transform the output of nm in a C name address pair.
15387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15388
15389 # Transform the output of nm in a C name address pair when lib prefix is needed.
15390 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15391
15392 # Specify filename containing input files for \$NM.
15393 nm_file_list_spec=$lt_nm_file_list_spec
15394
15395 # The root where to search for dependent libraries,and in which our libraries should be installed.
15396 lt_sysroot=$lt_sysroot
15397
15398 # The name of the directory that contains temporary libtool files.
15399 objdir=$objdir
15400
15401 # Used to examine libraries when file_magic_cmd begins with "file".
15402 MAGIC_CMD=$MAGIC_CMD
15403
15404 # Must we lock files when doing compilation?
15405 need_locks=$lt_need_locks
15406
15407 # Manifest tool.
15408 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15409
15410 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15411 DSYMUTIL=$lt_DSYMUTIL
15412
15413 # Tool to change global to local symbols on Mac OS X.
15414 NMEDIT=$lt_NMEDIT
15415
15416 # Tool to manipulate fat objects and archives on Mac OS X.
15417 LIPO=$lt_LIPO
15418
15419 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15420 OTOOL=$lt_OTOOL
15421
15422 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15423 OTOOL64=$lt_OTOOL64
15424
15425 # Old archive suffix (normally "a").
15426 libext=$libext
15427
15428 # Shared library suffix (normally ".so").
15429 shrext_cmds=$lt_shrext_cmds
15430
15431 # The commands to extract the exported symbol list from a shared archive.
15432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15433
15434 # Variables whose values should be saved in libtool wrapper scripts and
15435 # restored at link time.
15436 variables_saved_for_relink=$lt_variables_saved_for_relink
15437
15438 # Do we need the "lib" prefix for modules?
15439 need_lib_prefix=$need_lib_prefix
15440
15441 # Do we need a version for libraries?
15442 need_version=$need_version
15443
15444 # Library versioning type.
15445 version_type=$version_type
15446
15447 # Shared library runtime path variable.
15448 runpath_var=$runpath_var
15449
15450 # Shared library path variable.
15451 shlibpath_var=$shlibpath_var
15452
15453 # Is shlibpath searched before the hard-coded library search path?
15454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15455
15456 # Format of library name prefix.
15457 libname_spec=$lt_libname_spec
15458
15459 # List of archive names.  First name is the real one, the rest are links.
15460 # The last name is the one that the linker finds with -lNAME
15461 library_names_spec=$lt_library_names_spec
15462
15463 # The coded name of the library, if different from the real name.
15464 soname_spec=$lt_soname_spec
15465
15466 # Permission mode override for installation of shared libraries.
15467 install_override_mode=$lt_install_override_mode
15468
15469 # Command to use after installation of a shared archive.
15470 postinstall_cmds=$lt_postinstall_cmds
15471
15472 # Command to use after uninstallation of a shared archive.
15473 postuninstall_cmds=$lt_postuninstall_cmds
15474
15475 # Commands used to finish a libtool library installation in a directory.
15476 finish_cmds=$lt_finish_cmds
15477
15478 # As "finish_cmds", except a single script fragment to be evaled but
15479 # not shown.
15480 finish_eval=$lt_finish_eval
15481
15482 # Whether we should hardcode library paths into libraries.
15483 hardcode_into_libs=$hardcode_into_libs
15484
15485 # Compile-time system search path for libraries.
15486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15487
15488 # Run-time system search path for libraries.
15489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15490
15491 # Whether dlopen is supported.
15492 dlopen_support=$enable_dlopen
15493
15494 # Whether dlopen of programs is supported.
15495 dlopen_self=$enable_dlopen_self
15496
15497 # Whether dlopen of statically linked programs is supported.
15498 dlopen_self_static=$enable_dlopen_self_static
15499
15500 # Commands to strip libraries.
15501 old_striplib=$lt_old_striplib
15502 striplib=$lt_striplib
15503
15504
15505 # The linker used to build libraries.
15506 LD=$lt_LD
15507
15508 # How to create reloadable object files.
15509 reload_flag=$lt_reload_flag
15510 reload_cmds=$lt_reload_cmds
15511
15512 # Commands used to build an old-style archive.
15513 old_archive_cmds=$lt_old_archive_cmds
15514
15515 # A language specific compiler.
15516 CC=$lt_compiler
15517
15518 # Is the compiler the GNU compiler?
15519 with_gcc=$GCC
15520
15521 # Compiler flag to turn off builtin functions.
15522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15523
15524 # Additional compiler flags for building library objects.
15525 pic_flag=$lt_lt_prog_compiler_pic
15526
15527 # How to pass a linker flag through the compiler.
15528 wl=$lt_lt_prog_compiler_wl
15529
15530 # Compiler flag to prevent dynamic linking.
15531 link_static_flag=$lt_lt_prog_compiler_static
15532
15533 # Does compiler simultaneously support -c and -o options?
15534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15535
15536 # Whether or not to add -lc for building shared libraries.
15537 build_libtool_need_lc=$archive_cmds_need_lc
15538
15539 # Whether or not to disallow shared libs when runtime libs are static.
15540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15541
15542 # Compiler flag to allow reflexive dlopens.
15543 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15544
15545 # Compiler flag to generate shared objects directly from archives.
15546 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15547
15548 # Whether the compiler copes with passing no objects directly.
15549 compiler_needs_object=$lt_compiler_needs_object
15550
15551 # Create an old-style archive from a shared archive.
15552 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15553
15554 # Create a temporary old-style archive to link instead of a shared archive.
15555 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15556
15557 # Commands used to build a shared archive.
15558 archive_cmds=$lt_archive_cmds
15559 archive_expsym_cmds=$lt_archive_expsym_cmds
15560
15561 # Commands used to build a loadable module if different from building
15562 # a shared archive.
15563 module_cmds=$lt_module_cmds
15564 module_expsym_cmds=$lt_module_expsym_cmds
15565
15566 # Whether we are building with GNU ld or not.
15567 with_gnu_ld=$lt_with_gnu_ld
15568
15569 # Flag that allows shared libraries with undefined symbols to be built.
15570 allow_undefined_flag=$lt_allow_undefined_flag
15571
15572 # Flag that enforces no undefined symbols.
15573 no_undefined_flag=$lt_no_undefined_flag
15574
15575 # Flag to hardcode \$libdir into a binary during linking.
15576 # This must work even if \$libdir does not exist
15577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15578
15579 # If ld is used when linking, flag to hardcode \$libdir into a binary
15580 # during linking.  This must work even if \$libdir does not exist.
15581 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15582
15583 # Whether we need a single "-rpath" flag with a separated argument.
15584 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15585
15586 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15587 # DIR into the resulting binary.
15588 hardcode_direct=$hardcode_direct
15589
15590 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15591 # DIR into the resulting binary and the resulting library dependency is
15592 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15593 # library is relocated.
15594 hardcode_direct_absolute=$hardcode_direct_absolute
15595
15596 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15597 # into the resulting binary.
15598 hardcode_minus_L=$hardcode_minus_L
15599
15600 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15601 # into the resulting binary.
15602 hardcode_shlibpath_var=$hardcode_shlibpath_var
15603
15604 # Set to "yes" if building a shared library automatically hardcodes DIR
15605 # into the library and all subsequent libraries and executables linked
15606 # against it.
15607 hardcode_automatic=$hardcode_automatic
15608
15609 # Set to yes if linker adds runtime paths of dependent libraries
15610 # to runtime path list.
15611 inherit_rpath=$inherit_rpath
15612
15613 # Whether libtool must link a program against all its dependency libraries.
15614 link_all_deplibs=$link_all_deplibs
15615
15616 # Set to "yes" if exported symbols are required.
15617 always_export_symbols=$always_export_symbols
15618
15619 # The commands to list exported symbols.
15620 export_symbols_cmds=$lt_export_symbols_cmds
15621
15622 # Symbols that should not be listed in the preloaded symbols.
15623 exclude_expsyms=$lt_exclude_expsyms
15624
15625 # Symbols that must always be exported.
15626 include_expsyms=$lt_include_expsyms
15627
15628 # Commands necessary for linking programs (against libraries) with templates.
15629 prelink_cmds=$lt_prelink_cmds
15630
15631 # Commands necessary for finishing linking programs.
15632 postlink_cmds=$lt_postlink_cmds
15633
15634 # Specify filename containing input files.
15635 file_list_spec=$lt_file_list_spec
15636
15637 # How to hardcode a shared library path into an executable.
15638 hardcode_action=$hardcode_action
15639
15640 # ### END LIBTOOL CONFIG
15641
15642 _LT_EOF
15643
15644   case $host_os in
15645   aix3*)
15646     cat <<\_LT_EOF >> "$cfgfile"
15647 # AIX sometimes has problems with the GCC collect2 program.  For some
15648 # reason, if we set the COLLECT_NAMES environment variable, the problems
15649 # vanish in a puff of smoke.
15650 if test "X${COLLECT_NAMES+set}" != Xset; then
15651   COLLECT_NAMES=
15652   export COLLECT_NAMES
15653 fi
15654 _LT_EOF
15655     ;;
15656   esac
15657
15658
15659 ltmain="$ac_aux_dir/ltmain.sh"
15660
15661
15662   # We use sed instead of cat because bash on DJGPP gets confused if
15663   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15664   # text mode, it properly converts lines to CR/LF.  This bash problem
15665   # is reportedly fixed, but why not run on old versions too?
15666   sed '$q' "$ltmain" >> "$cfgfile" \
15667      || (rm -f "$cfgfile"; exit 1)
15668
15669   if test x"$xsi_shell" = xyes; then
15670   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15671 func_dirname ()\
15672 {\
15673 \    case ${1} in\
15674 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15675 \      *  ) func_dirname_result="${3}" ;;\
15676 \    esac\
15677 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15678   && mv -f "$cfgfile.tmp" "$cfgfile" \
15679     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15680 test 0 -eq $? || _lt_function_replace_fail=:
15681
15682
15683   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15684 func_basename ()\
15685 {\
15686 \    func_basename_result="${1##*/}"\
15687 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15688   && mv -f "$cfgfile.tmp" "$cfgfile" \
15689     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15690 test 0 -eq $? || _lt_function_replace_fail=:
15691
15692
15693   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15694 func_dirname_and_basename ()\
15695 {\
15696 \    case ${1} in\
15697 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15698 \      *  ) func_dirname_result="${3}" ;;\
15699 \    esac\
15700 \    func_basename_result="${1##*/}"\
15701 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15702   && mv -f "$cfgfile.tmp" "$cfgfile" \
15703     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15704 test 0 -eq $? || _lt_function_replace_fail=:
15705
15706
15707   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15708 func_stripname ()\
15709 {\
15710 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15711 \    # positional parameters, so assign one to ordinary parameter first.\
15712 \    func_stripname_result=${3}\
15713 \    func_stripname_result=${func_stripname_result#"${1}"}\
15714 \    func_stripname_result=${func_stripname_result%"${2}"}\
15715 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15716   && mv -f "$cfgfile.tmp" "$cfgfile" \
15717     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15718 test 0 -eq $? || _lt_function_replace_fail=:
15719
15720
15721   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15722 func_split_long_opt ()\
15723 {\
15724 \    func_split_long_opt_name=${1%%=*}\
15725 \    func_split_long_opt_arg=${1#*=}\
15726 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15727   && mv -f "$cfgfile.tmp" "$cfgfile" \
15728     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15729 test 0 -eq $? || _lt_function_replace_fail=:
15730
15731
15732   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15733 func_split_short_opt ()\
15734 {\
15735 \    func_split_short_opt_arg=${1#??}\
15736 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15737 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15738   && mv -f "$cfgfile.tmp" "$cfgfile" \
15739     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15740 test 0 -eq $? || _lt_function_replace_fail=:
15741
15742
15743   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15744 func_lo2o ()\
15745 {\
15746 \    case ${1} in\
15747 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15748 \      *)    func_lo2o_result=${1} ;;\
15749 \    esac\
15750 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15751   && mv -f "$cfgfile.tmp" "$cfgfile" \
15752     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15753 test 0 -eq $? || _lt_function_replace_fail=:
15754
15755
15756   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15757 func_xform ()\
15758 {\
15759     func_xform_result=${1%.*}.lo\
15760 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15761   && mv -f "$cfgfile.tmp" "$cfgfile" \
15762     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15763 test 0 -eq $? || _lt_function_replace_fail=:
15764
15765
15766   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15767 func_arith ()\
15768 {\
15769     func_arith_result=$(( $* ))\
15770 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15771   && mv -f "$cfgfile.tmp" "$cfgfile" \
15772     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15773 test 0 -eq $? || _lt_function_replace_fail=:
15774
15775
15776   sed -e '/^func_len ()$/,/^} # func_len /c\
15777 func_len ()\
15778 {\
15779     func_len_result=${#1}\
15780 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15781   && mv -f "$cfgfile.tmp" "$cfgfile" \
15782     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15783 test 0 -eq $? || _lt_function_replace_fail=:
15784
15785 fi
15786
15787 if test x"$lt_shell_append" = xyes; then
15788   sed -e '/^func_append ()$/,/^} # func_append /c\
15789 func_append ()\
15790 {\
15791     eval "${1}+=\\${2}"\
15792 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15793   && mv -f "$cfgfile.tmp" "$cfgfile" \
15794     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15795 test 0 -eq $? || _lt_function_replace_fail=:
15796
15797
15798   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15799 func_append_quoted ()\
15800 {\
15801 \    func_quote_for_eval "${2}"\
15802 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15803 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15804   && mv -f "$cfgfile.tmp" "$cfgfile" \
15805     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15806 test 0 -eq $? || _lt_function_replace_fail=:
15807
15808
15809   # Save a `func_append' function call where possible by direct use of '+='
15810   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15811     && mv -f "$cfgfile.tmp" "$cfgfile" \
15812       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15813   test 0 -eq $? || _lt_function_replace_fail=:
15814 else
15815   # Save a `func_append' function call even when '+=' is not available
15816   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15817     && mv -f "$cfgfile.tmp" "$cfgfile" \
15818       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15819   test 0 -eq $? || _lt_function_replace_fail=:
15820 fi
15821
15822 if test x"$_lt_function_replace_fail" = x":"; then
15823   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15824 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15825 fi
15826
15827
15828    mv -f "$cfgfile" "$ofile" ||
15829     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15830   chmod +x "$ofile"
15831
15832  ;;
15833
15834   esac
15835 done # for ac_tag
15836
15837
15838 as_fn_exit 0
15839 _ACEOF
15840 ac_clean_files=$ac_clean_files_save
15841
15842 test $ac_write_fail = 0 ||
15843   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15844
15845
15846 # configure is writing to config.log, and then calls config.status.
15847 # config.status does its own redirection, appending to config.log.
15848 # Unfortunately, on DOS this fails, as config.log is still kept open
15849 # by configure, so config.status won't be able to write to it; its
15850 # output is simply discarded.  So we exec the FD to /dev/null,
15851 # effectively closing config.log, so it can be properly (re)opened and
15852 # appended to by config.status.  When coming back to configure, we
15853 # need to make the FD available again.
15854 if test "$no_create" != yes; then
15855   ac_cs_success=:
15856   ac_config_status_args=
15857   test "$silent" = yes &&
15858     ac_config_status_args="$ac_config_status_args --quiet"
15859   exec 5>/dev/null
15860   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15861   exec 5>>config.log
15862   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15863   # would make configure fail if this is the last instruction.
15864   $ac_cs_success || as_fn_exit 1
15865 fi
15866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15867   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15868 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15869 fi
15870