Imported Upstream version 1.4.2
[platform/upstream/libjpeg-turbo.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libjpeg-turbo 1.4.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libjpeg-turbo'
589 PACKAGE_TARNAME='libjpeg-turbo'
590 PACKAGE_VERSION='1.4.2'
591 PACKAGE_STRING='libjpeg-turbo 1.4.2'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_default_prefix=/opt/libjpeg-turbo
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 BUILD
637 DEBARCH
638 RPM_CONFIG_ARGS
639 RPMARCH
640 PKGNAME
641 WITH_TURBOJPEG_FALSE
642 WITH_TURBOJPEG_TRUE
643 X86_64_FALSE
644 X86_64_TRUE
645 SIMD_MIPS_FALSE
646 SIMD_MIPS_TRUE
647 SIMD_ARM_64_FALSE
648 SIMD_ARM_64_TRUE
649 SIMD_ARM_FALSE
650 SIMD_ARM_TRUE
651 SIMD_X86_64_FALSE
652 SIMD_X86_64_TRUE
653 SIMD_I386_FALSE
654 SIMD_I386_TRUE
655 WITH_SSE_FLOAT_DCT_FALSE
656 WITH_SSE_FLOAT_DCT_TRUE
657 WITH_SIMD_FALSE
658 WITH_SIMD_TRUE
659 NAFLAGS
660 NASM
661 JAVA_RPM_CONTENTS_2
662 JAVA_RPM_CONTENTS_1
663 WITH_JAVA
664 WITH_JAVA_FALSE
665 WITH_JAVA_TRUE
666 JNI_CFLAGS
667 JAVA
668 JAR
669 JAVACFLAGS
670 JAVAC
671 WITH_12BIT_FALSE
672 WITH_12BIT_TRUE
673 WITH_ARITH_FALSE
674 WITH_ARITH_TRUE
675 WITH_ARITH_DEC_FALSE
676 WITH_ARITH_DEC_TRUE
677 WITH_ARITH_ENC_FALSE
678 WITH_ARITH_ENC_TRUE
679 VERSION_SCRIPT_FLAG
680 VERSION_SCRIPT_FALSE
681 VERSION_SCRIPT_TRUE
682 MEM_SRCDST_FUNCTIONS
683 SO_AGE
684 LIBTOOL_CURRENT
685 SO_MINOR_VERSION
686 SO_MAJOR_VERSION
687 JPEG_LIB_VERSION_DECIMAL
688 JPEG_LIB_VERSION
689 LT_SYS_LIBRARY_PATH
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 MANIFEST_TOOL
696 RANLIB
697 DLLTOOL
698 OBJDUMP
699 LN_S
700 NM
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 EGREP
706 GREP
707 SED
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 LIBTOOL
717 am__fastdepCCAS_FALSE
718 am__fastdepCCAS_TRUE
719 CCASDEPMODE
720 CCASFLAGS
721 CCAS
722 ac_ct_AR
723 AR
724 CPP
725 am__fastdepCC_FALSE
726 am__fastdepCC_TRUE
727 CCDEPMODE
728 am__nodep
729 AMDEPBACKSLASH
730 AMDEP_FALSE
731 AMDEP_TRUE
732 am__quote
733 am__include
734 DEPDIR
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 AWK
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_dependency_tracking
812 enable_shared
813 enable_static
814 with_pic
815 enable_fast_install
816 with_aix_soname
817 with_gnu_ld
818 with_sysroot
819 enable_libtool_lock
820 with_build_date
821 with_jpeg7
822 with_jpeg8
823 with_mem_srcdst
824 enable_ld_version_script
825 with_arith_enc
826 with_arith_dec
827 with_12bit
828 with_turbojpeg
829 with_java
830 with_gas_preprocessor
831 with_simd
832 '
833       ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CPP
842 CCAS
843 CCASFLAGS
844 LT_SYS_LIBRARY_PATH
845 JPEG_LIB_VERSION
846 SO_MAJOR_VERSION
847 SO_MINOR_VERSION
848 JAVAC
849 JAVACFLAGS
850 JAR
851 JAVA
852 JNI_CFLAGS
853 PKGNAME'
854
855
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
903
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908   # If the previous option needs an argument, assign it.
909   if test -n "$ac_prev"; then
910     eval $ac_prev=\$ac_option
911     ac_prev=
912     continue
913   fi
914
915   case $ac_option in
916   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917   *=)   ac_optarg= ;;
918   *)    ac_optarg=yes ;;
919   esac
920
921   # Accept the important Cygnus configure options, so we can diagnose typos.
922
923   case $ac_dashdash$ac_option in
924   --)
925     ac_dashdash=yes ;;
926
927   -bindir | --bindir | --bindi | --bind | --bin | --bi)
928     ac_prev=bindir ;;
929   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930     bindir=$ac_optarg ;;
931
932   -build | --build | --buil | --bui | --bu)
933     ac_prev=build_alias ;;
934   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935     build_alias=$ac_optarg ;;
936
937   -cache-file | --cache-file | --cache-fil | --cache-fi \
938   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939     ac_prev=cache_file ;;
940   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942     cache_file=$ac_optarg ;;
943
944   --config-cache | -C)
945     cache_file=config.cache ;;
946
947   -datadir | --datadir | --datadi | --datad)
948     ac_prev=datadir ;;
949   -datadir=* | --datadir=* | --datadi=* | --datad=*)
950     datadir=$ac_optarg ;;
951
952   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953   | --dataroo | --dataro | --datar)
954     ac_prev=datarootdir ;;
955   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957     datarootdir=$ac_optarg ;;
958
959   -disable-* | --disable-*)
960     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961     # Reject names that are not valid shell variable names.
962     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963       as_fn_error $? "invalid feature name: $ac_useropt"
964     ac_useropt_orig=$ac_useropt
965     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966     case $ac_user_opts in
967       *"
968 "enable_$ac_useropt"
969 "*) ;;
970       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971          ac_unrecognized_sep=', ';;
972     esac
973     eval enable_$ac_useropt=no ;;
974
975   -docdir | --docdir | --docdi | --doc | --do)
976     ac_prev=docdir ;;
977   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978     docdir=$ac_optarg ;;
979
980   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981     ac_prev=dvidir ;;
982   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983     dvidir=$ac_optarg ;;
984
985   -enable-* | --enable-*)
986     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987     # Reject names that are not valid shell variable names.
988     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989       as_fn_error $? "invalid feature name: $ac_useropt"
990     ac_useropt_orig=$ac_useropt
991     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992     case $ac_user_opts in
993       *"
994 "enable_$ac_useropt"
995 "*) ;;
996       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997          ac_unrecognized_sep=', ';;
998     esac
999     eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003   | --exec | --exe | --ex)
1004     ac_prev=exec_prefix ;;
1005   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007   | --exec=* | --exe=* | --ex=*)
1008     exec_prefix=$ac_optarg ;;
1009
1010   -gas | --gas | --ga | --g)
1011     # Obsolete; use --with-gas.
1012     with_gas=yes ;;
1013
1014   -help | --help | --hel | --he | -h)
1015     ac_init_help=long ;;
1016   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017     ac_init_help=recursive ;;
1018   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019     ac_init_help=short ;;
1020
1021   -host | --host | --hos | --ho)
1022     ac_prev=host_alias ;;
1023   -host=* | --host=* | --hos=* | --ho=*)
1024     host_alias=$ac_optarg ;;
1025
1026   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027     ac_prev=htmldir ;;
1028   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029   | --ht=*)
1030     htmldir=$ac_optarg ;;
1031
1032   -includedir | --includedir | --includedi | --included | --include \
1033   | --includ | --inclu | --incl | --inc)
1034     ac_prev=includedir ;;
1035   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036   | --includ=* | --inclu=* | --incl=* | --inc=*)
1037     includedir=$ac_optarg ;;
1038
1039   -infodir | --infodir | --infodi | --infod | --info | --inf)
1040     ac_prev=infodir ;;
1041   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042     infodir=$ac_optarg ;;
1043
1044   -libdir | --libdir | --libdi | --libd)
1045     ac_prev=libdir ;;
1046   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047     libdir=$ac_optarg ;;
1048
1049   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050   | --libexe | --libex | --libe)
1051     ac_prev=libexecdir ;;
1052   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053   | --libexe=* | --libex=* | --libe=*)
1054     libexecdir=$ac_optarg ;;
1055
1056   -localedir | --localedir | --localedi | --localed | --locale)
1057     ac_prev=localedir ;;
1058   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059     localedir=$ac_optarg ;;
1060
1061   -localstatedir | --localstatedir | --localstatedi | --localstated \
1062   | --localstate | --localstat | --localsta | --localst | --locals)
1063     ac_prev=localstatedir ;;
1064   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066     localstatedir=$ac_optarg ;;
1067
1068   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069     ac_prev=mandir ;;
1070   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071     mandir=$ac_optarg ;;
1072
1073   -nfp | --nfp | --nf)
1074     # Obsolete; use --without-fp.
1075     with_fp=no ;;
1076
1077   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078   | --no-cr | --no-c | -n)
1079     no_create=yes ;;
1080
1081   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083     no_recursion=yes ;;
1084
1085   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087   | --oldin | --oldi | --old | --ol | --o)
1088     ac_prev=oldincludedir ;;
1089   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092     oldincludedir=$ac_optarg ;;
1093
1094   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095     ac_prev=prefix ;;
1096   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097     prefix=$ac_optarg ;;
1098
1099   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100   | --program-pre | --program-pr | --program-p)
1101     ac_prev=program_prefix ;;
1102   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104     program_prefix=$ac_optarg ;;
1105
1106   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107   | --program-suf | --program-su | --program-s)
1108     ac_prev=program_suffix ;;
1109   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111     program_suffix=$ac_optarg ;;
1112
1113   -program-transform-name | --program-transform-name \
1114   | --program-transform-nam | --program-transform-na \
1115   | --program-transform-n | --program-transform- \
1116   | --program-transform | --program-transfor \
1117   | --program-transfo | --program-transf \
1118   | --program-trans | --program-tran \
1119   | --progr-tra | --program-tr | --program-t)
1120     ac_prev=program_transform_name ;;
1121   -program-transform-name=* | --program-transform-name=* \
1122   | --program-transform-nam=* | --program-transform-na=* \
1123   | --program-transform-n=* | --program-transform-=* \
1124   | --program-transform=* | --program-transfor=* \
1125   | --program-transfo=* | --program-transf=* \
1126   | --program-trans=* | --program-tran=* \
1127   | --progr-tra=* | --program-tr=* | --program-t=*)
1128     program_transform_name=$ac_optarg ;;
1129
1130   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131     ac_prev=pdfdir ;;
1132   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133     pdfdir=$ac_optarg ;;
1134
1135   -psdir | --psdir | --psdi | --psd | --ps)
1136     ac_prev=psdir ;;
1137   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138     psdir=$ac_optarg ;;
1139
1140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141   | -silent | --silent | --silen | --sile | --sil)
1142     silent=yes ;;
1143
1144   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145     ac_prev=sbindir ;;
1146   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147   | --sbi=* | --sb=*)
1148     sbindir=$ac_optarg ;;
1149
1150   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152   | --sharedst | --shareds | --shared | --share | --shar \
1153   | --sha | --sh)
1154     ac_prev=sharedstatedir ;;
1155   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158   | --sha=* | --sh=*)
1159     sharedstatedir=$ac_optarg ;;
1160
1161   -site | --site | --sit)
1162     ac_prev=site ;;
1163   -site=* | --site=* | --sit=*)
1164     site=$ac_optarg ;;
1165
1166   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167     ac_prev=srcdir ;;
1168   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169     srcdir=$ac_optarg ;;
1170
1171   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172   | --syscon | --sysco | --sysc | --sys | --sy)
1173     ac_prev=sysconfdir ;;
1174   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176     sysconfdir=$ac_optarg ;;
1177
1178   -target | --target | --targe | --targ | --tar | --ta | --t)
1179     ac_prev=target_alias ;;
1180   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181     target_alias=$ac_optarg ;;
1182
1183   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184     verbose=yes ;;
1185
1186   -version | --version | --versio | --versi | --vers | -V)
1187     ac_init_version=: ;;
1188
1189   -with-* | --with-*)
1190     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193       as_fn_error $? "invalid package name: $ac_useropt"
1194     ac_useropt_orig=$ac_useropt
1195     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196     case $ac_user_opts in
1197       *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201          ac_unrecognized_sep=', ';;
1202     esac
1203     eval with_$ac_useropt=\$ac_optarg ;;
1204
1205   -without-* | --without-*)
1206     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209       as_fn_error $? "invalid package name: $ac_useropt"
1210     ac_useropt_orig=$ac_useropt
1211     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212     case $ac_user_opts in
1213       *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217          ac_unrecognized_sep=', ';;
1218     esac
1219     eval with_$ac_useropt=no ;;
1220
1221   --x)
1222     # Obsolete; use --with-x.
1223     with_x=yes ;;
1224
1225   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226   | --x-incl | --x-inc | --x-in | --x-i)
1227     ac_prev=x_includes ;;
1228   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230     x_includes=$ac_optarg ;;
1231
1232   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234     ac_prev=x_libraries ;;
1235   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237     x_libraries=$ac_optarg ;;
1238
1239   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1241     ;;
1242
1243   *=*)
1244     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245     # Reject names that are not valid shell variable names.
1246     case $ac_envvar in #(
1247       '' | [0-9]* | *[!_$as_cr_alnum]* )
1248       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249     esac
1250     eval $ac_envvar=\$ac_optarg
1251     export $ac_envvar ;;
1252
1253   *)
1254     # FIXME: should be removed in autoconf 3.0.
1255     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259     ;;
1260
1261   esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266   as_fn_error $? "missing argument to $ac_option"
1267 fi
1268
1269 if test -n "$ac_unrecognized_opts"; then
1270   case $enable_option_checking in
1271     no) ;;
1272     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274   esac
1275 fi
1276
1277 # Check all directory arguments for consistency.
1278 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279                 datadir sysconfdir sharedstatedir localstatedir includedir \
1280                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281                 libdir localedir mandir
1282 do
1283   eval ac_val=\$$ac_var
1284   # Remove trailing slashes.
1285   case $ac_val in
1286     */ )
1287       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288       eval $ac_var=\$ac_val;;
1289   esac
1290   # Be sure to have absolute directory names.
1291   case $ac_val in
1292     [\\/$]* | ?:[\\/]* )  continue;;
1293     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294   esac
1295   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307   if test "x$build_alias" = x; then
1308     cross_compiling=maybe
1309   elif test "x$build_alias" != "x$host_alias"; then
1310     cross_compiling=yes
1311   fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323   as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   as_fn_error $? "pwd does not report name of working directory"
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330   ac_srcdir_defaulted=yes
1331   # Try the directory containing this script, then the parent directory.
1332   ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334          X"$as_myself" : 'X\(//\)[^/]' \| \
1335          X"$as_myself" : 'X\(//\)$' \| \
1336          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)[^/].*/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\).*/{
1351             s//\1/
1352             q
1353           }
1354           s/.*/./; q'`
1355   srcdir=$ac_confdir
1356   if test ! -r "$srcdir/$ac_unique_file"; then
1357     srcdir=..
1358   fi
1359 else
1360   ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369         pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372   srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures libjpeg-turbo 1.4.2 to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking ...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR            user executables [EPREFIX/bin]
1429   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR        program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR            object code libraries [EPREFIX/lib]
1435   --includedir=DIR        C header files [PREFIX/include]
1436   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR           info documentation [DATAROOTDIR/info]
1440   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR            man documentation [DATAROOTDIR/man]
1442   --docdir=DIR            documentation root [DATAROOTDIR/doc/libjpeg-turbo]
1443   --htmldir=DIR           html documentation [DOCDIR]
1444   --dvidir=DIR            dvi documentation [DOCDIR]
1445   --pdfdir=DIR            pdf documentation [DOCDIR]
1446   --psdir=DIR             ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 Program names:
1452   --program-prefix=PREFIX            prepend PREFIX to installed program names
1453   --program-suffix=SUFFIX            append SUFFIX to installed program names
1454   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463   case $ac_init_help in
1464      short | recursive ) echo "Configuration of libjpeg-turbo 1.4.2:";;
1465    esac
1466   cat <<\_ACEOF
1467
1468 Optional Features:
1469   --disable-option-checking  ignore unrecognized --enable/--with options
1470   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472   --enable-silent-rules   less verbose build output (undo: "make V=1")
1473   --disable-silent-rules  verbose build output (undo: "make V=0")
1474   --enable-dependency-tracking
1475                           do not reject slow dependency extractors
1476   --disable-dependency-tracking
1477                           speeds up one-time build
1478   --enable-shared[=PKGS]  build shared libraries [default=yes]
1479   --enable-static[=PKGS]  build static libraries [default=yes]
1480   --enable-fast-install[=PKGS]
1481                           optimize for fast installation [default=yes]
1482   --disable-libtool-lock  avoid locking (might break parallel builds)
1483   --disable-ld-version-script
1484                           Disable linker version script for libjpeg-turbo
1485                           (default is to use linker version script if the
1486                           linker supports it)
1487
1488 Optional Packages:
1489   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1490   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1491   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1492                           both]
1493   --with-aix-soname=aix|svr4|both
1494                           shared library versioning (aka "SONAME") variant to
1495                           provide on AIX, [default=aix].
1496   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1497   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1498                           compiler's sysroot if not specified).
1499 Use custom build string to enable reproducible builds (default: YYMMDD)
1500   --with-jpeg7            Emulate libjpeg v7 API/ABI (this makes libjpeg-turbo
1501                           backward incompatible with libjpeg v6b.)
1502   --with-jpeg8            Emulate libjpeg v8 API/ABI (this makes libjpeg-turbo
1503                           backward incompatible with libjpeg v6b.)
1504   --without-mem-srcdst    Do not include in-memory source/destination manager
1505                           functions when emulating the libjpeg v6b or v7
1506                           API/ABI
1507   --without-arith-enc     Do not include arithmetic encoding support
1508   --without-arith-dec     Do not include arithmetic decoding support
1509   --with-12bit            Encode/decode JPEG images with 12-bit samples
1510                           (implies --without-simd --without-turbojpeg
1511                           --without-arith-dec --without-arith-enc)
1512   --without-turbojpeg     Do not include the TurboJPEG wrapper library and
1513                           associated test programs
1514   --with-java             Build Java wrapper for the TurboJPEG library
1515   --with-gas-preprocessor Force using gas-preprocessor.pl on ARM.
1516   --without-simd          Do not include SIMD extensions
1517
1518 Some influential environment variables:
1519   CC          C compiler command
1520   CFLAGS      C compiler flags
1521   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1522               nonstandard directory <lib dir>
1523   LIBS        libraries to pass to the linker, e.g. -l<library>
1524   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525               you have headers in a nonstandard directory <include dir>
1526   CPP         C preprocessor
1527   CCAS        assembler compiler command (defaults to CC)
1528   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1529   LT_SYS_LIBRARY_PATH
1530               User-defined run-time library search path.
1531   JPEG_LIB_VERSION
1532               libjpeg API version (62, 70, or 80)
1533   SO_MAJOR_VERSION
1534               Major version of the libjpeg-turbo shared library (default is
1535               determined by the API version)
1536   SO_MINOR_VERSION
1537               Minor version of the libjpeg-turbo shared library (default is
1538               determined by the API version)
1539   JAVAC       Java compiler command (default: javac)
1540   JAVACFLAGS  Java compiler flags
1541   JAR         Java archive command (default: jar)
1542   JAVA        Java runtime command (default: java)
1543   JNI_CFLAGS  C compiler flags needed to include jni.h (default:
1544               -I/System/Library/Frameworks/JavaVM.framework/Headers on OS X,
1545               '-I/usr/java/include -I/usr/java/include/solaris' on Solaris,
1546               and '-I/usr/java/default/include
1547               -I/usr/java/default/include/linux' on Linux)
1548   PKGNAME     distribution package name (default: libjpeg-turbo)
1549
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 Report bugs to the package provider.
1554 _ACEOF
1555 ac_status=$?
1556 fi
1557
1558 if test "$ac_init_help" = "recursive"; then
1559   # If there are subdirs, report their specific --help.
1560   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561     test -d "$ac_dir" ||
1562       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563       continue
1564     ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1570   # A ".." for each directory in $ac_dir_suffix.
1571   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572   case $ac_top_builddir_sub in
1573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575   esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583   .)  # We are building in place.
1584     ac_srcdir=.
1585     ac_top_srcdir=$ac_top_builddir_sub
1586     ac_abs_top_srcdir=$ac_pwd ;;
1587   [\\/]* | ?:[\\/]* )  # Absolute name.
1588     ac_srcdir=$srcdir$ac_dir_suffix;
1589     ac_top_srcdir=$srcdir
1590     ac_abs_top_srcdir=$srcdir ;;
1591   *) # Relative name.
1592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593     ac_top_srcdir=$ac_top_build_prefix$srcdir
1594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598     cd "$ac_dir" || { ac_status=$?; continue; }
1599     # Check for guested configure.
1600     if test -f "$ac_srcdir/configure.gnu"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603     elif test -f "$ac_srcdir/configure"; then
1604       echo &&
1605       $SHELL "$ac_srcdir/configure" --help=recursive
1606     else
1607       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608     fi || ac_status=$?
1609     cd "$ac_pwd" || { ac_status=$?; break; }
1610   done
1611 fi
1612
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615   cat <<\_ACEOF
1616 libjpeg-turbo configure 1.4.2
1617 generated by GNU Autoconf 2.69
1618
1619 Copyright (C) 2012 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1622 _ACEOF
1623   exit
1624 fi
1625
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1629
1630 # ac_fn_c_try_compile LINENO
1631 # --------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_compile ()
1634 {
1635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636   rm -f conftest.$ac_objext
1637   if { { ac_try="$ac_compile"
1638 case "(($ac_try" in
1639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640   *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644   (eval "$ac_compile") 2>conftest.err
1645   ac_status=$?
1646   if test -s conftest.err; then
1647     grep -v '^ *+' conftest.err >conftest.er1
1648     cat conftest.er1 >&5
1649     mv -f conftest.er1 conftest.err
1650   fi
1651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652   test $ac_status = 0; } && {
1653          test -z "$ac_c_werror_flag" ||
1654          test ! -s conftest.err
1655        } && test -s conftest.$ac_objext; then :
1656   ac_retval=0
1657 else
1658   $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661         ac_retval=1
1662 fi
1663   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664   as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_compile
1667
1668 # ac_fn_c_try_cpp LINENO
1669 # ----------------------
1670 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_cpp ()
1672 {
1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674   if { { ac_try="$ac_cpp conftest.$ac_ext"
1675 case "(($ac_try" in
1676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677   *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1682   ac_status=$?
1683   if test -s conftest.err; then
1684     grep -v '^ *+' conftest.err >conftest.er1
1685     cat conftest.er1 >&5
1686     mv -f conftest.er1 conftest.err
1687   fi
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; } > conftest.i && {
1690          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1691          test ! -s conftest.err
1692        }; then :
1693   ac_retval=0
1694 else
1695   $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698     ac_retval=1
1699 fi
1700   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701   as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_cpp
1704
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_link ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   rm -f conftest.$ac_objext conftest$ac_exeext
1712   if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_link") 2>conftest.err
1720   ac_status=$?
1721   if test -s conftest.err; then
1722     grep -v '^ *+' conftest.err >conftest.er1
1723     cat conftest.er1 >&5
1724     mv -f conftest.er1 conftest.err
1725   fi
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && {
1728          test -z "$ac_c_werror_flag" ||
1729          test ! -s conftest.err
1730        } && test -s conftest$ac_exeext && {
1731          test "$cross_compiling" = yes ||
1732          test -x conftest$ac_exeext
1733        }; then :
1734   ac_retval=0
1735 else
1736   $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739         ac_retval=1
1740 fi
1741   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743   # interfere with the next link command; also delete a directory that is
1744   # left behind by Apple's compiler.  We do this before executing the actions.
1745   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747   as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_link
1750
1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists and can be compiled using the include files in
1754 # INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 $4
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769   eval "$3=yes"
1770 else
1771   eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_header_compile
1781
1782 # ac_fn_c_try_run LINENO
1783 # ----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785 # that executables *can* be run.
1786 ac_fn_c_try_run ()
1787 {
1788   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789   if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792   *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796   (eval "$ac_link") 2>&5
1797   ac_status=$?
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800   { { case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_try") 2>&5
1807   ac_status=$?
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; }; }; then :
1810   ac_retval=0
1811 else
1812   $as_echo "$as_me: program exited with status $ac_status" >&5
1813        $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816        ac_retval=$ac_status
1817 fi
1818   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820   as_fn_set_status $ac_retval
1821
1822 } # ac_fn_c_try_run
1823
1824 # ac_fn_c_check_func LINENO FUNC VAR
1825 # ----------------------------------
1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833   $as_echo_n "(cached) " >&6
1834 else
1835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1839 #define $2 innocuous_$2
1840
1841 /* System header to define __stub macros and hopefully few prototypes,
1842     which can conflict with char $2 (); below.
1843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844     <limits.h> exists even on freestanding compilers.  */
1845
1846 #ifdef __STDC__
1847 # include <limits.h>
1848 #else
1849 # include <assert.h>
1850 #endif
1851
1852 #undef $2
1853
1854 /* Override any GCC internal prototype to avoid an error.
1855    Use char because int might match the return type of a GCC
1856    builtin and then its argument prototype would still apply.  */
1857 #ifdef __cplusplus
1858 extern "C"
1859 #endif
1860 char $2 ();
1861 /* The GNU C library defines this for functions which it implements
1862     to always fail with ENOSYS.  Some functions are actually named
1863     something starting with __ and the normal name is an alias.  */
1864 #if defined __stub_$2 || defined __stub___$2
1865 choke me
1866 #endif
1867
1868 int
1869 main ()
1870 {
1871 return $2 ();
1872   ;
1873   return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_link "$LINENO"; then :
1877   eval "$3=yes"
1878 else
1879   eval "$3=no"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext \
1882     conftest$ac_exeext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } # ac_fn_c_check_func
1890
1891 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1892 # --------------------------------------------
1893 # Tries to find the compile-time value of EXPR in a program that includes
1894 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1895 # computed
1896 ac_fn_c_compute_int ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   if test "$cross_compiling" = yes; then
1900     # Depending upon the size, compute the lo and hi bounds.
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h.  */
1903 $4
1904 int
1905 main ()
1906 {
1907 static int test_array [1 - 2 * !(($2) >= 0)];
1908 test_array [0] = 0;
1909 return test_array [0];
1910
1911   ;
1912   return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916   ac_lo=0 ac_mid=0
1917   while :; do
1918     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h.  */
1920 $4
1921 int
1922 main ()
1923 {
1924 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1925 test_array [0] = 0;
1926 return test_array [0];
1927
1928   ;
1929   return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933   ac_hi=$ac_mid; break
1934 else
1935   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1936                         if test $ac_lo -le $ac_mid; then
1937                           ac_lo= ac_hi=
1938                           break
1939                         fi
1940                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943   done
1944 else
1945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 $4
1948 int
1949 main ()
1950 {
1951 static int test_array [1 - 2 * !(($2) < 0)];
1952 test_array [0] = 0;
1953 return test_array [0];
1954
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960   ac_hi=-1 ac_mid=-1
1961   while :; do
1962     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h.  */
1964 $4
1965 int
1966 main ()
1967 {
1968 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1969 test_array [0] = 0;
1970 return test_array [0];
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977   ac_lo=$ac_mid; break
1978 else
1979   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1980                         if test $ac_mid -le $ac_hi; then
1981                           ac_lo= ac_hi=
1982                           break
1983                         fi
1984                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987   done
1988 else
1989   ac_lo= ac_hi=
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 # Binary search between lo and hi bounds.
1995 while test "x$ac_lo" != "x$ac_hi"; do
1996   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h.  */
1999 $4
2000 int
2001 main ()
2002 {
2003 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2004 test_array [0] = 0;
2005 return test_array [0];
2006
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012   ac_hi=$ac_mid
2013 else
2014   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 done
2018 case $ac_lo in #((
2019 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2020 '') ac_retval=1 ;;
2021 esac
2022   else
2023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h.  */
2025 $4
2026 static long int longval () { return $2; }
2027 static unsigned long int ulongval () { return $2; }
2028 #include <stdio.h>
2029 #include <stdlib.h>
2030 int
2031 main ()
2032 {
2033
2034   FILE *f = fopen ("conftest.val", "w");
2035   if (! f)
2036     return 1;
2037   if (($2) < 0)
2038     {
2039       long int i = longval ();
2040       if (i != ($2))
2041         return 1;
2042       fprintf (f, "%ld", i);
2043     }
2044   else
2045     {
2046       unsigned long int i = ulongval ();
2047       if (i != ($2))
2048         return 1;
2049       fprintf (f, "%lu", i);
2050     }
2051   /* Do not output a trailing newline, as this causes \r\n confusion
2052      on some platforms.  */
2053   return ferror (f) || fclose (f) != 0;
2054
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_run "$LINENO"; then :
2060   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2061 else
2062   ac_retval=1
2063 fi
2064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2065   conftest.$ac_objext conftest.beam conftest.$ac_ext
2066 rm -f conftest.val
2067
2068   fi
2069   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070   as_fn_set_status $ac_retval
2071
2072 } # ac_fn_c_compute_int
2073
2074 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2075 # ---------------------------------------------
2076 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2077 # accordingly.
2078 ac_fn_c_check_decl ()
2079 {
2080   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081   as_decl_name=`echo $2|sed 's/ *(.*//'`
2082   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2084 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2085 if eval \${$3+:} false; then :
2086   $as_echo_n "(cached) " >&6
2087 else
2088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 $4
2091 int
2092 main ()
2093 {
2094 #ifndef $as_decl_name
2095 #ifdef __cplusplus
2096   (void) $as_decl_use;
2097 #else
2098   (void) $as_decl_name;
2099 #endif
2100 #endif
2101
2102   ;
2103   return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107   eval "$3=yes"
2108 else
2109   eval "$3=no"
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 fi
2113 eval ac_res=\$$3
2114                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117
2118 } # ac_fn_c_check_decl
2119
2120 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2121 # -------------------------------------------------------
2122 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2123 # the include files in INCLUDES and setting the cache variable VAR
2124 # accordingly.
2125 ac_fn_c_check_header_mongrel ()
2126 {
2127   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128   if eval \${$3+:} false; then :
2129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if eval \${$3+:} false; then :
2132   $as_echo_n "(cached) " >&6
2133 fi
2134 eval ac_res=\$$3
2135                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137 else
2138   # Is the header compilable?
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2140 $as_echo_n "checking $2 usability... " >&6; }
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 #include <$2>
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147   ac_header_compiler=yes
2148 else
2149   ac_header_compiler=no
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2153 $as_echo "$ac_header_compiler" >&6; }
2154
2155 # Is the header present?
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2157 $as_echo_n "checking $2 presence... " >&6; }
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h.  */
2160 #include <$2>
2161 _ACEOF
2162 if ac_fn_c_try_cpp "$LINENO"; then :
2163   ac_header_preproc=yes
2164 else
2165   ac_header_preproc=no
2166 fi
2167 rm -f conftest.err conftest.i conftest.$ac_ext
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2169 $as_echo "$ac_header_preproc" >&6; }
2170
2171 # So?  What about this header?
2172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2173   yes:no: )
2174     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2175 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2176     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178     ;;
2179   no:yes:* )
2180     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2181 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2182     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2183 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2184     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2185 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2186     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2187 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2188     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2190     ;;
2191 esac
2192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if eval \${$3+:} false; then :
2195   $as_echo_n "(cached) " >&6
2196 else
2197   eval "$3=\$ac_header_compiler"
2198 fi
2199 eval ac_res=\$$3
2200                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202 fi
2203   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204
2205 } # ac_fn_c_check_header_mongrel
2206
2207 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2208 # -------------------------------------------
2209 # Tests whether TYPE exists after having included INCLUDES, setting cache
2210 # variable VAR accordingly.
2211 ac_fn_c_check_type ()
2212 {
2213   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2215 $as_echo_n "checking for $2... " >&6; }
2216 if eval \${$3+:} false; then :
2217   $as_echo_n "(cached) " >&6
2218 else
2219   eval "$3=no"
2220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $4
2223 int
2224 main ()
2225 {
2226 if (sizeof ($2))
2227          return 0;
2228   ;
2229   return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h.  */
2235 $4
2236 int
2237 main ()
2238 {
2239 if (sizeof (($2)))
2240             return 0;
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246
2247 else
2248   eval "$3=yes"
2249 fi
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 fi
2254 eval ac_res=\$$3
2255                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258
2259 } # ac_fn_c_check_type
2260 cat >config.log <<_ACEOF
2261 This file contains any messages produced by compilers while
2262 running configure, to aid debugging if configure makes a mistake.
2263
2264 It was created by libjpeg-turbo $as_me 1.4.2, which was
2265 generated by GNU Autoconf 2.69.  Invocation command line was
2266
2267   $ $0 $@
2268
2269 _ACEOF
2270 exec 5>>config.log
2271 {
2272 cat <<_ASUNAME
2273 ## --------- ##
2274 ## Platform. ##
2275 ## --------- ##
2276
2277 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2278 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2279 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2280 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2281 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2282
2283 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2284 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2285
2286 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2287 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2288 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2289 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2290 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2291 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2292 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2293
2294 _ASUNAME
2295
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299   IFS=$as_save_IFS
2300   test -z "$as_dir" && as_dir=.
2301     $as_echo "PATH: $as_dir"
2302   done
2303 IFS=$as_save_IFS
2304
2305 } >&5
2306
2307 cat >&5 <<_ACEOF
2308
2309
2310 ## ----------- ##
2311 ## Core tests. ##
2312 ## ----------- ##
2313
2314 _ACEOF
2315
2316
2317 # Keep a trace of the command line.
2318 # Strip out --no-create and --no-recursion so they do not pile up.
2319 # Strip out --silent because we don't want to record it for future runs.
2320 # Also quote any args containing shell meta-characters.
2321 # Make two passes to allow for proper duplicate-argument suppression.
2322 ac_configure_args=
2323 ac_configure_args0=
2324 ac_configure_args1=
2325 ac_must_keep_next=false
2326 for ac_pass in 1 2
2327 do
2328   for ac_arg
2329   do
2330     case $ac_arg in
2331     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2332     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2333     | -silent | --silent | --silen | --sile | --sil)
2334       continue ;;
2335     *\'*)
2336       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2337     esac
2338     case $ac_pass in
2339     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2340     2)
2341       as_fn_append ac_configure_args1 " '$ac_arg'"
2342       if test $ac_must_keep_next = true; then
2343         ac_must_keep_next=false # Got value, back to normal.
2344       else
2345         case $ac_arg in
2346           *=* | --config-cache | -C | -disable-* | --disable-* \
2347           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2348           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2349           | -with-* | --with-* | -without-* | --without-* | --x)
2350             case "$ac_configure_args0 " in
2351               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2352             esac
2353             ;;
2354           -* ) ac_must_keep_next=true ;;
2355         esac
2356       fi
2357       as_fn_append ac_configure_args " '$ac_arg'"
2358       ;;
2359     esac
2360   done
2361 done
2362 { ac_configure_args0=; unset ac_configure_args0;}
2363 { ac_configure_args1=; unset ac_configure_args1;}
2364
2365 # When interrupted or exit'd, cleanup temporary files, and complete
2366 # config.log.  We remove comments because anyway the quotes in there
2367 # would cause problems or look ugly.
2368 # WARNING: Use '\'' to represent an apostrophe within the trap.
2369 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2370 trap 'exit_status=$?
2371   # Save into config.log some information that might help in debugging.
2372   {
2373     echo
2374
2375     $as_echo "## ---------------- ##
2376 ## Cache variables. ##
2377 ## ---------------- ##"
2378     echo
2379     # The following way of writing the cache mishandles newlines in values,
2380 (
2381   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2382     eval ac_val=\$$ac_var
2383     case $ac_val in #(
2384     *${as_nl}*)
2385       case $ac_var in #(
2386       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2387 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2388       esac
2389       case $ac_var in #(
2390       _ | IFS | as_nl) ;; #(
2391       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2392       *) { eval $ac_var=; unset $ac_var;} ;;
2393       esac ;;
2394     esac
2395   done
2396   (set) 2>&1 |
2397     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2398     *${as_nl}ac_space=\ *)
2399       sed -n \
2400         "s/'\''/'\''\\\\'\'''\''/g;
2401           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2402       ;; #(
2403     *)
2404       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2405       ;;
2406     esac |
2407     sort
2408 )
2409     echo
2410
2411     $as_echo "## ----------------- ##
2412 ## Output variables. ##
2413 ## ----------------- ##"
2414     echo
2415     for ac_var in $ac_subst_vars
2416     do
2417       eval ac_val=\$$ac_var
2418       case $ac_val in
2419       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2420       esac
2421       $as_echo "$ac_var='\''$ac_val'\''"
2422     done | sort
2423     echo
2424
2425     if test -n "$ac_subst_files"; then
2426       $as_echo "## ------------------- ##
2427 ## File substitutions. ##
2428 ## ------------------- ##"
2429       echo
2430       for ac_var in $ac_subst_files
2431       do
2432         eval ac_val=\$$ac_var
2433         case $ac_val in
2434         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2435         esac
2436         $as_echo "$ac_var='\''$ac_val'\''"
2437       done | sort
2438       echo
2439     fi
2440
2441     if test -s confdefs.h; then
2442       $as_echo "## ----------- ##
2443 ## confdefs.h. ##
2444 ## ----------- ##"
2445       echo
2446       cat confdefs.h
2447       echo
2448     fi
2449     test "$ac_signal" != 0 &&
2450       $as_echo "$as_me: caught signal $ac_signal"
2451     $as_echo "$as_me: exit $exit_status"
2452   } >&5
2453   rm -f core *.core core.conftest.* &&
2454     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2455     exit $exit_status
2456 ' 0
2457 for ac_signal in 1 2 13 15; do
2458   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2459 done
2460 ac_signal=0
2461
2462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2463 rm -f -r conftest* confdefs.h
2464
2465 $as_echo "/* confdefs.h */" > confdefs.h
2466
2467 # Predefined preprocessor variables.
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_NAME "$PACKAGE_NAME"
2471 _ACEOF
2472
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2475 _ACEOF
2476
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2479 _ACEOF
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_STRING "$PACKAGE_STRING"
2483 _ACEOF
2484
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2487 _ACEOF
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_URL "$PACKAGE_URL"
2491 _ACEOF
2492
2493
2494 # Let the site file select an alternate cache file if it wants to.
2495 # Prefer an explicitly selected file to automatically selected ones.
2496 ac_site_file1=NONE
2497 ac_site_file2=NONE
2498 if test -n "$CONFIG_SITE"; then
2499   # We do not want a PATH search for config.site.
2500   case $CONFIG_SITE in #((
2501     -*)  ac_site_file1=./$CONFIG_SITE;;
2502     */*) ac_site_file1=$CONFIG_SITE;;
2503     *)   ac_site_file1=./$CONFIG_SITE;;
2504   esac
2505 elif test "x$prefix" != xNONE; then
2506   ac_site_file1=$prefix/share/config.site
2507   ac_site_file2=$prefix/etc/config.site
2508 else
2509   ac_site_file1=$ac_default_prefix/share/config.site
2510   ac_site_file2=$ac_default_prefix/etc/config.site
2511 fi
2512 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2513 do
2514   test "x$ac_site_file" = xNONE && continue
2515   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2516     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2518     sed 's/^/| /' "$ac_site_file" >&5
2519     . "$ac_site_file" \
2520       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522 as_fn_error $? "failed to load site script $ac_site_file
2523 See \`config.log' for more details" "$LINENO" 5; }
2524   fi
2525 done
2526
2527 if test -r "$cache_file"; then
2528   # Some versions of bash will fail to source /dev/null (special files
2529   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2530   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2531     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2532 $as_echo "$as_me: loading cache $cache_file" >&6;}
2533     case $cache_file in
2534       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2535       *)                      . "./$cache_file";;
2536     esac
2537   fi
2538 else
2539   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2540 $as_echo "$as_me: creating cache $cache_file" >&6;}
2541   >$cache_file
2542 fi
2543
2544 # Check that the precious variables saved in the cache have kept the same
2545 # value.
2546 ac_cache_corrupted=false
2547 for ac_var in $ac_precious_vars; do
2548   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549   eval ac_new_set=\$ac_env_${ac_var}_set
2550   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551   eval ac_new_val=\$ac_env_${ac_var}_value
2552   case $ac_old_set,$ac_new_set in
2553     set,)
2554       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556       ac_cache_corrupted=: ;;
2557     ,set)
2558       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560       ac_cache_corrupted=: ;;
2561     ,);;
2562     *)
2563       if test "x$ac_old_val" != "x$ac_new_val"; then
2564         # differences in whitespace do not lead to failure.
2565         ac_old_val_w=`echo x $ac_old_val`
2566         ac_new_val_w=`echo x $ac_new_val`
2567         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570           ac_cache_corrupted=:
2571         else
2572           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574           eval $ac_var=\$ac_old_val
2575         fi
2576         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2577 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2578         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2579 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2580       fi;;
2581   esac
2582   # Pass precious variables to config.status.
2583   if test "$ac_new_set" = set; then
2584     case $ac_new_val in
2585     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586     *) ac_arg=$ac_var=$ac_new_val ;;
2587     esac
2588     case " $ac_configure_args " in
2589       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2590       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2591     esac
2592   fi
2593 done
2594 if $ac_cache_corrupted; then
2595   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2600 fi
2601 ## -------------------- ##
2602 ## Main body of script. ##
2603 ## -------------------- ##
2604
2605 ac_ext=c
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610
2611
2612
2613 am__api_version='1.15'
2614
2615 ac_aux_dir=
2616 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2617   if test -f "$ac_dir/install-sh"; then
2618     ac_aux_dir=$ac_dir
2619     ac_install_sh="$ac_aux_dir/install-sh -c"
2620     break
2621   elif test -f "$ac_dir/install.sh"; then
2622     ac_aux_dir=$ac_dir
2623     ac_install_sh="$ac_aux_dir/install.sh -c"
2624     break
2625   elif test -f "$ac_dir/shtool"; then
2626     ac_aux_dir=$ac_dir
2627     ac_install_sh="$ac_aux_dir/shtool install -c"
2628     break
2629   fi
2630 done
2631 if test -z "$ac_aux_dir"; then
2632   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2633 fi
2634
2635 # These three variables are undocumented and unsupported,
2636 # and are intended to be withdrawn in a future Autoconf release.
2637 # They can cause serious problems if a builder's source tree is in a directory
2638 # whose full name contains unusual characters.
2639 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2640 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2641 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2642
2643
2644 # Find a good install program.  We prefer a C program (faster),
2645 # so one script is as good as another.  But avoid the broken or
2646 # incompatible versions:
2647 # SysV /etc/install, /usr/sbin/install
2648 # SunOS /usr/etc/install
2649 # IRIX /sbin/install
2650 # AIX /bin/install
2651 # AmigaOS /C/install, which installs bootblocks on floppy discs
2652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2655 # OS/2's system install, which has a completely different semantic
2656 # ./install, which can be erroneously created by make from ./install.sh.
2657 # Reject install programs that cannot install multiple files.
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2659 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2660 if test -z "$INSTALL"; then
2661 if ${ac_cv_path_install+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667   IFS=$as_save_IFS
2668   test -z "$as_dir" && as_dir=.
2669     # Account for people who put trailing slashes in PATH elements.
2670 case $as_dir/ in #((
2671   ./ | .// | /[cC]/* | \
2672   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2673   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2674   /usr/ucb/* ) ;;
2675   *)
2676     # OSF1 and SCO ODT 3.0 have their own names for install.
2677     # Don't use installbsd from OSF since it installs stuff as root
2678     # by default.
2679     for ac_prog in ginstall scoinst install; do
2680       for ac_exec_ext in '' $ac_executable_extensions; do
2681         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2682           if test $ac_prog = install &&
2683             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2684             # AIX install.  It has an incompatible calling convention.
2685             :
2686           elif test $ac_prog = install &&
2687             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688             # program-specific install script used by HP pwplus--don't use.
2689             :
2690           else
2691             rm -rf conftest.one conftest.two conftest.dir
2692             echo one > conftest.one
2693             echo two > conftest.two
2694             mkdir conftest.dir
2695             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2696               test -s conftest.one && test -s conftest.two &&
2697               test -s conftest.dir/conftest.one &&
2698               test -s conftest.dir/conftest.two
2699             then
2700               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2701               break 3
2702             fi
2703           fi
2704         fi
2705       done
2706     done
2707     ;;
2708 esac
2709
2710   done
2711 IFS=$as_save_IFS
2712
2713 rm -rf conftest.one conftest.two conftest.dir
2714
2715 fi
2716   if test "${ac_cv_path_install+set}" = set; then
2717     INSTALL=$ac_cv_path_install
2718   else
2719     # As a last resort, use the slow shell script.  Don't cache a
2720     # value for INSTALL within a source directory, because that will
2721     # break other packages using the cache if that directory is
2722     # removed, or if the value is a relative name.
2723     INSTALL=$ac_install_sh
2724   fi
2725 fi
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2727 $as_echo "$INSTALL" >&6; }
2728
2729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2730 # It thinks the first close brace ends the variable substitution.
2731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2732
2733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2734
2735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2736
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2738 $as_echo_n "checking whether build environment is sane... " >&6; }
2739 # Reject unsafe characters in $srcdir or the absolute working directory
2740 # name.  Accept space and tab only in the latter.
2741 am_lf='
2742 '
2743 case `pwd` in
2744   *[\\\"\#\$\&\'\`$am_lf]*)
2745     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2746 esac
2747 case $srcdir in
2748   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2749     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2750 esac
2751
2752 # Do 'set' in a subshell so we don't clobber the current shell's
2753 # arguments.  Must try -L first in case configure is actually a
2754 # symlink; some systems play weird games with the mod time of symlinks
2755 # (eg FreeBSD returns the mod time of the symlink's containing
2756 # directory).
2757 if (
2758    am_has_slept=no
2759    for am_try in 1 2; do
2760      echo "timestamp, slept: $am_has_slept" > conftest.file
2761      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2762      if test "$*" = "X"; then
2763         # -L didn't work.
2764         set X `ls -t "$srcdir/configure" conftest.file`
2765      fi
2766      if test "$*" != "X $srcdir/configure conftest.file" \
2767         && test "$*" != "X conftest.file $srcdir/configure"; then
2768
2769         # If neither matched, then we have a broken ls.  This can happen
2770         # if, for instance, CONFIG_SHELL is bash and it inherits a
2771         # broken ls alias from the environment.  This has actually
2772         # happened.  Such a system could not be considered "sane".
2773         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2774   alias in your environment" "$LINENO" 5
2775      fi
2776      if test "$2" = conftest.file || test $am_try -eq 2; then
2777        break
2778      fi
2779      # Just in case.
2780      sleep 1
2781      am_has_slept=yes
2782    done
2783    test "$2" = conftest.file
2784    )
2785 then
2786    # Ok.
2787    :
2788 else
2789    as_fn_error $? "newly created file is older than distributed files!
2790 Check your system clock" "$LINENO" 5
2791 fi
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793 $as_echo "yes" >&6; }
2794 # If we didn't sleep, we still need to ensure time stamps of config.status and
2795 # generated files are strictly newer.
2796 am_sleep_pid=
2797 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2798   ( sleep 1 ) &
2799   am_sleep_pid=$!
2800 fi
2801
2802 rm -f conftest.file
2803
2804 test "$program_prefix" != NONE &&
2805   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2806 # Use a double $ so make ignores it.
2807 test "$program_suffix" != NONE &&
2808   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2809 # Double any \ or $.
2810 # By default was `s,x,x', remove it if useless.
2811 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2812 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2813
2814 # Expand $ac_aux_dir to an absolute path.
2815 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2816
2817 if test x"${MISSING+set}" != xset; then
2818   case $am_aux_dir in
2819   *\ * | *\     *)
2820     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2821   *)
2822     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2823   esac
2824 fi
2825 # Use eval to expand $SHELL
2826 if eval "$MISSING --is-lightweight"; then
2827   am_missing_run="$MISSING "
2828 else
2829   am_missing_run=
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2831 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2832 fi
2833
2834 if test x"${install_sh+set}" != xset; then
2835   case $am_aux_dir in
2836   *\ * | *\     *)
2837     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2838   *)
2839     install_sh="\${SHELL} $am_aux_dir/install-sh"
2840   esac
2841 fi
2842
2843 # Installed binaries are usually stripped using 'strip' when the user
2844 # run "make install-strip".  However 'strip' might not be the right
2845 # tool to use in cross-compilation environments, therefore Automake
2846 # will honor the 'STRIP' environment variable to overrule this program.
2847 if test "$cross_compiling" != no; then
2848   if test -n "$ac_tool_prefix"; then
2849   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}strip; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_STRIP+:} false; then :
2854   $as_echo_n "(cached) " >&6
2855 else
2856   if test -n "$STRIP"; then
2857   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864     for ac_exec_ext in '' $ac_executable_extensions; do
2865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871   done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 STRIP=$ac_cv_prog_STRIP
2877 if test -n "$STRIP"; then
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2879 $as_echo "$STRIP" >&6; }
2880 else
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$ac_cv_prog_STRIP"; then
2888   ac_ct_STRIP=$STRIP
2889   # Extract the first word of "strip", so it can be a program name with args.
2890 set dummy strip; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2894   $as_echo_n "(cached) " >&6
2895 else
2896   if test -n "$ac_ct_STRIP"; then
2897   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902   IFS=$as_save_IFS
2903   test -z "$as_dir" && as_dir=.
2904     for ac_exec_ext in '' $ac_executable_extensions; do
2905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906     ac_cv_prog_ac_ct_STRIP="strip"
2907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908     break 2
2909   fi
2910 done
2911   done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2917 if test -n "$ac_ct_STRIP"; then
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2919 $as_echo "$ac_ct_STRIP" >&6; }
2920 else
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925   if test "x$ac_ct_STRIP" = x; then
2926     STRIP=":"
2927   else
2928     case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934     STRIP=$ac_ct_STRIP
2935   fi
2936 else
2937   STRIP="$ac_cv_prog_STRIP"
2938 fi
2939
2940 fi
2941 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2942
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2944 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2945 if test -z "$MKDIR_P"; then
2946   if ${ac_cv_path_mkdir+:} false; then :
2947   $as_echo_n "(cached) " >&6
2948 else
2949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954     for ac_prog in mkdir gmkdir; do
2955          for ac_exec_ext in '' $ac_executable_extensions; do
2956            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2957            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2958              'mkdir (GNU coreutils) '* | \
2959              'mkdir (coreutils) '* | \
2960              'mkdir (fileutils) '4.1*)
2961                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2962                break 3;;
2963            esac
2964          done
2965        done
2966   done
2967 IFS=$as_save_IFS
2968
2969 fi
2970
2971   test -d ./--version && rmdir ./--version
2972   if test "${ac_cv_path_mkdir+set}" = set; then
2973     MKDIR_P="$ac_cv_path_mkdir -p"
2974   else
2975     # As a last resort, use the slow shell script.  Don't cache a
2976     # value for MKDIR_P within a source directory, because that will
2977     # break other packages using the cache if that directory is
2978     # removed, or if the value is a relative name.
2979     MKDIR_P="$ac_install_sh -d"
2980   fi
2981 fi
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2983 $as_echo "$MKDIR_P" >&6; }
2984
2985 for ac_prog in gawk mawk nawk awk
2986 do
2987   # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_AWK+:} false; then :
2992   $as_echo_n "(cached) " >&6
2993 else
2994   if test -n "$AWK"; then
2995   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000   IFS=$as_save_IFS
3001   test -z "$as_dir" && as_dir=.
3002     for ac_exec_ext in '' $ac_executable_extensions; do
3003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004     ac_cv_prog_AWK="$ac_prog"
3005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006     break 2
3007   fi
3008 done
3009   done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 AWK=$ac_cv_prog_AWK
3015 if test -n "$AWK"; then
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3017 $as_echo "$AWK" >&6; }
3018 else
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024   test -n "$AWK" && break
3025 done
3026
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3028 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3029 set x ${MAKE-make}
3030 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3031 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3032   $as_echo_n "(cached) " >&6
3033 else
3034   cat >conftest.make <<\_ACEOF
3035 SHELL = /bin/sh
3036 all:
3037         @echo '@@@%%%=$(MAKE)=@@@%%%'
3038 _ACEOF
3039 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3040 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3041   *@@@%%%=?*=@@@%%%*)
3042     eval ac_cv_prog_make_${ac_make}_set=yes;;
3043   *)
3044     eval ac_cv_prog_make_${ac_make}_set=no;;
3045 esac
3046 rm -f conftest.make
3047 fi
3048 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050 $as_echo "yes" >&6; }
3051   SET_MAKE=
3052 else
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055   SET_MAKE="MAKE=${MAKE-make}"
3056 fi
3057
3058 rm -rf .tst 2>/dev/null
3059 mkdir .tst 2>/dev/null
3060 if test -d .tst; then
3061   am__leading_dot=.
3062 else
3063   am__leading_dot=_
3064 fi
3065 rmdir .tst 2>/dev/null
3066
3067 # Check whether --enable-silent-rules was given.
3068 if test "${enable_silent_rules+set}" = set; then :
3069   enableval=$enable_silent_rules;
3070 fi
3071
3072 case $enable_silent_rules in # (((
3073   yes) AM_DEFAULT_VERBOSITY=0;;
3074    no) AM_DEFAULT_VERBOSITY=1;;
3075     *) AM_DEFAULT_VERBOSITY=1;;
3076 esac
3077 am_make=${MAKE-make}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3079 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3080 if ${am_cv_make_support_nested_variables+:} false; then :
3081   $as_echo_n "(cached) " >&6
3082 else
3083   if $as_echo 'TRUE=$(BAR$(V))
3084 BAR0=false
3085 BAR1=true
3086 V=1
3087 am__doit:
3088         @$(TRUE)
3089 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3090   am_cv_make_support_nested_variables=yes
3091 else
3092   am_cv_make_support_nested_variables=no
3093 fi
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3096 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3097 if test $am_cv_make_support_nested_variables = yes; then
3098     AM_V='$(V)'
3099   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3100 else
3101   AM_V=$AM_DEFAULT_VERBOSITY
3102   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3103 fi
3104 AM_BACKSLASH='\'
3105
3106 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3107   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3108   # is not polluted with repeated "-I."
3109   am__isrc=' -I$(srcdir)'
3110   # test to see if srcdir already configured
3111   if test -f $srcdir/config.status; then
3112     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3113   fi
3114 fi
3115
3116 # test whether we have cygpath
3117 if test -z "$CYGPATH_W"; then
3118   if (cygpath --version) >/dev/null 2>/dev/null; then
3119     CYGPATH_W='cygpath -w'
3120   else
3121     CYGPATH_W=echo
3122   fi
3123 fi
3124
3125
3126 # Define the identity of the package.
3127  PACKAGE='libjpeg-turbo'
3128  VERSION='1.4.2'
3129
3130
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE "$PACKAGE"
3133 _ACEOF
3134
3135
3136 cat >>confdefs.h <<_ACEOF
3137 #define VERSION "$VERSION"
3138 _ACEOF
3139
3140 # Some tools Automake needs.
3141
3142 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3143
3144
3145 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3146
3147
3148 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3149
3150
3151 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3152
3153
3154 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3155
3156 # For better backward compatibility.  To be removed once Automake 1.9.x
3157 # dies out for good.  For more background, see:
3158 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3159 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3160 mkdir_p='$(MKDIR_P)'
3161
3162 # We need awk for the "check" target (and possibly the TAP driver).  The
3163 # system "awk" is bad on some platforms.
3164 # Always define AMTAR for backward compatibility.  Yes, it's still used
3165 # in the wild :-(  We should find a proper way to deprecate it ...
3166 AMTAR='$${TAR-tar}'
3167
3168
3169 # We'll loop over all known methods to create a tar archive until one works.
3170 _am_tools='gnutar  pax cpio none'
3171
3172 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3173
3174
3175
3176
3177
3178
3179 # POSIX will say in a future version that running "rm -f" with no argument
3180 # is OK; and we want to be able to make that assumption in our Makefile
3181 # recipes.  So use an aggressive probe to check that the usage we want is
3182 # actually supported "in the wild" to an acceptable degree.
3183 # See automake bug#10828.
3184 # To make any issue more visible, cause the running configure to be aborted
3185 # by default if the 'rm' program in use doesn't match our expectations; the
3186 # user can still override this though.
3187 if rm -f && rm -fr && rm -rf; then : OK; else
3188   cat >&2 <<'END'
3189 Oops!
3190
3191 Your 'rm' program seems unable to run without file operands specified
3192 on the command line, even when the '-f' option is present.  This is contrary
3193 to the behaviour of most rm programs out there, and not conforming with
3194 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3195
3196 Please tell bug-automake@gnu.org about your system, including the value
3197 of your $PATH and any error possibly output before this message.  This
3198 can help us improve future automake versions.
3199
3200 END
3201   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3202     echo 'Configuration will proceed anyway, since you have set the' >&2
3203     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3204     echo >&2
3205   else
3206     cat >&2 <<'END'
3207 Aborting the configuration process, to ensure you take notice of the issue.
3208
3209 You can download and install GNU coreutils to get an 'rm' implementation
3210 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3211
3212 If you want to complete the configuration process using your problematic
3213 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3214 to "yes", and re-run configure.
3215
3216 END
3217     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3218   fi
3219 fi
3220
3221
3222
3223 # Check whether --enable-silent-rules was given.
3224 if test "${enable_silent_rules+set}" = set; then :
3225   enableval=$enable_silent_rules;
3226 fi
3227
3228 case $enable_silent_rules in # (((
3229   yes) AM_DEFAULT_VERBOSITY=0;;
3230    no) AM_DEFAULT_VERBOSITY=1;;
3231     *) AM_DEFAULT_VERBOSITY=0;;
3232 esac
3233 am_make=${MAKE-make}
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3235 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3236 if ${am_cv_make_support_nested_variables+:} false; then :
3237   $as_echo_n "(cached) " >&6
3238 else
3239   if $as_echo 'TRUE=$(BAR$(V))
3240 BAR0=false
3241 BAR1=true
3242 V=1
3243 am__doit:
3244         @$(TRUE)
3245 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3246   am_cv_make_support_nested_variables=yes
3247 else
3248   am_cv_make_support_nested_variables=no
3249 fi
3250 fi
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3252 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3253 if test $am_cv_make_support_nested_variables = yes; then
3254     AM_V='$(V)'
3255   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3256 else
3257   AM_V=$AM_DEFAULT_VERBOSITY
3258   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3259 fi
3260 AM_BACKSLASH='\'
3261
3262
3263 # Checks for programs.
3264 SAVED_CFLAGS=${CFLAGS}
3265 SAVED_CPPFLAGS=${CPPFLAGS}
3266 DEPDIR="${am__leading_dot}deps"
3267
3268 ac_config_commands="$ac_config_commands depfiles"
3269
3270
3271 am_make=${MAKE-make}
3272 cat > confinc << 'END'
3273 am__doit:
3274         @echo this is the am__doit target
3275 .PHONY: am__doit
3276 END
3277 # If we don't find an include directive, just comment out the code.
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3279 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3280 am__include="#"
3281 am__quote=
3282 _am_result=none
3283 # First try GNU make style include.
3284 echo "include confinc" > confmf
3285 # Ignore all kinds of additional output from 'make'.
3286 case `$am_make -s -f confmf 2> /dev/null` in #(
3287 *the\ am__doit\ target*)
3288   am__include=include
3289   am__quote=
3290   _am_result=GNU
3291   ;;
3292 esac
3293 # Now try BSD make style include.
3294 if test "$am__include" = "#"; then
3295    echo '.include "confinc"' > confmf
3296    case `$am_make -s -f confmf 2> /dev/null` in #(
3297    *the\ am__doit\ target*)
3298      am__include=.include
3299      am__quote="\""
3300      _am_result=BSD
3301      ;;
3302    esac
3303 fi
3304
3305
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3307 $as_echo "$_am_result" >&6; }
3308 rm -f confinc confmf
3309
3310 # Check whether --enable-dependency-tracking was given.
3311 if test "${enable_dependency_tracking+set}" = set; then :
3312   enableval=$enable_dependency_tracking;
3313 fi
3314
3315 if test "x$enable_dependency_tracking" != xno; then
3316   am_depcomp="$ac_aux_dir/depcomp"
3317   AMDEPBACKSLASH='\'
3318   am__nodep='_no'
3319 fi
3320  if test "x$enable_dependency_tracking" != xno; then
3321   AMDEP_TRUE=
3322   AMDEP_FALSE='#'
3323 else
3324   AMDEP_TRUE='#'
3325   AMDEP_FALSE=
3326 fi
3327
3328
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 if test -n "$ac_tool_prefix"; then
3335   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_CC+:} false; then :
3340   $as_echo_n "(cached) " >&6
3341 else
3342   if test -n "$CC"; then
3343   ac_cv_prog_CC="$CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350     for ac_exec_ext in '' $ac_executable_extensions; do
3351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357   done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3366 else
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372 fi
3373 if test -z "$ac_cv_prog_CC"; then
3374   ac_ct_CC=$CC
3375   # Extract the first word of "gcc", so it can be a program name with args.
3376 set dummy gcc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3380   $as_echo_n "(cached) " >&6
3381 else
3382   if test -n "$ac_ct_CC"; then
3383   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390     for ac_exec_ext in '' $ac_executable_extensions; do
3391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_ac_ct_CC="gcc"
3393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397   done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3405 $as_echo "$ac_ct_CC" >&6; }
3406 else
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411   if test "x$ac_ct_CC" = x; then
3412     CC=""
3413   else
3414     case $cross_compiling:$ac_tool_warned in
3415 yes:)
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418 ac_tool_warned=yes ;;
3419 esac
3420     CC=$ac_ct_CC
3421   fi
3422 else
3423   CC="$ac_cv_prog_CC"
3424 fi
3425
3426 if test -z "$CC"; then
3427           if test -n "$ac_tool_prefix"; then
3428     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3429 set dummy ${ac_tool_prefix}cc; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false; then :
3433   $as_echo_n "(cached) " >&6
3434 else
3435   if test -n "$CC"; then
3436   ac_cv_prog_CC="$CC" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441   IFS=$as_save_IFS
3442   test -z "$as_dir" && as_dir=.
3443     for ac_exec_ext in '' $ac_executable_extensions; do
3444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445     ac_cv_prog_CC="${ac_tool_prefix}cc"
3446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447     break 2
3448   fi
3449 done
3450   done
3451 IFS=$as_save_IFS
3452
3453 fi
3454 fi
3455 CC=$ac_cv_prog_CC
3456 if test -n "$CC"; then
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3459 else
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 fi
3463
3464
3465   fi
3466 fi
3467 if test -z "$CC"; then
3468   # Extract the first word of "cc", so it can be a program name with args.
3469 set dummy cc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if ${ac_cv_prog_CC+:} false; then :
3473   $as_echo_n "(cached) " >&6
3474 else
3475   if test -n "$CC"; then
3476   ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478   ac_prog_rejected=no
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482   IFS=$as_save_IFS
3483   test -z "$as_dir" && as_dir=.
3484     for ac_exec_ext in '' $ac_executable_extensions; do
3485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3487        ac_prog_rejected=yes
3488        continue
3489      fi
3490     ac_cv_prog_CC="cc"
3491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492     break 2
3493   fi
3494 done
3495   done
3496 IFS=$as_save_IFS
3497
3498 if test $ac_prog_rejected = yes; then
3499   # We found a bogon in the path, so make sure we never use it.
3500   set dummy $ac_cv_prog_CC
3501   shift
3502   if test $# != 0; then
3503     # We chose a different compiler from the bogus one.
3504     # However, it has the same basename, so the bogon will be chosen
3505     # first if we set CC to just the basename; use the full file name.
3506     shift
3507     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3508   fi
3509 fi
3510 fi
3511 fi
3512 CC=$ac_cv_prog_CC
3513 if test -n "$CC"; then
3514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515 $as_echo "$CC" >&6; }
3516 else
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3519 fi
3520
3521
3522 fi
3523 if test -z "$CC"; then
3524   if test -n "$ac_tool_prefix"; then
3525   for ac_prog in cl.exe
3526   do
3527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if ${ac_cv_prog_CC+:} false; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   if test -n "$CC"; then
3535   ac_cv_prog_CC="$CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540   IFS=$as_save_IFS
3541   test -z "$as_dir" && as_dir=.
3542     for ac_exec_ext in '' $ac_executable_extensions; do
3543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3544     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546     break 2
3547   fi
3548 done
3549   done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 CC=$ac_cv_prog_CC
3555 if test -n "$CC"; then
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557 $as_echo "$CC" >&6; }
3558 else
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 fi
3562
3563
3564     test -n "$CC" && break
3565   done
3566 fi
3567 if test -z "$CC"; then
3568   ac_ct_CC=$CC
3569   for ac_prog in cl.exe
3570 do
3571   # Extract the first word of "$ac_prog", so it can be a program name with args.
3572 set dummy $ac_prog; ac_word=$2
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 $as_echo_n "checking for $ac_word... " >&6; }
3575 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3576   $as_echo_n "(cached) " >&6
3577 else
3578   if test -n "$ac_ct_CC"; then
3579   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584   IFS=$as_save_IFS
3585   test -z "$as_dir" && as_dir=.
3586     for ac_exec_ext in '' $ac_executable_extensions; do
3587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588     ac_cv_prog_ac_ct_CC="$ac_prog"
3589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590     break 2
3591   fi
3592 done
3593   done
3594 IFS=$as_save_IFS
3595
3596 fi
3597 fi
3598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3599 if test -n "$ac_ct_CC"; then
3600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3601 $as_echo "$ac_ct_CC" >&6; }
3602 else
3603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3605 fi
3606
3607
3608   test -n "$ac_ct_CC" && break
3609 done
3610
3611   if test "x$ac_ct_CC" = x; then
3612     CC=""
3613   else
3614     case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620     CC=$ac_ct_CC
3621   fi
3622 fi
3623
3624 fi
3625
3626
3627 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "no acceptable C compiler found in \$PATH
3630 See \`config.log' for more details" "$LINENO" 5; }
3631
3632 # Provide some information about the compiler.
3633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3634 set X $ac_compile
3635 ac_compiler=$2
3636 for ac_option in --version -v -V -qversion; do
3637   { { ac_try="$ac_compiler $ac_option >&5"
3638 case "(($ac_try" in
3639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640   *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3645   ac_status=$?
3646   if test -s conftest.err; then
3647     sed '10a\
3648 ... rest of stderr output deleted ...
3649          10q' conftest.err >conftest.er1
3650     cat conftest.er1 >&5
3651   fi
3652   rm -f conftest.er1 conftest.err
3653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654   test $ac_status = 0; }
3655 done
3656
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h.  */
3659
3660 int
3661 main ()
3662 {
3663
3664   ;
3665   return 0;
3666 }
3667 _ACEOF
3668 ac_clean_files_save=$ac_clean_files
3669 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3670 # Try to create an executable without -o first, disregard a.out.
3671 # It will help us diagnose broken compilers, and finding out an intuition
3672 # of exeext.
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3674 $as_echo_n "checking whether the C compiler works... " >&6; }
3675 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3676
3677 # The possible output files:
3678 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3679
3680 ac_rmfiles=
3681 for ac_file in $ac_files
3682 do
3683   case $ac_file in
3684     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3685     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3686   esac
3687 done
3688 rm -f $ac_rmfiles
3689
3690 if { { ac_try="$ac_link_default"
3691 case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697   (eval "$ac_link_default") 2>&5
3698   ac_status=$?
3699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700   test $ac_status = 0; }; then :
3701   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3702 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3703 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3704 # so that the user can short-circuit this test for compilers unknown to
3705 # Autoconf.
3706 for ac_file in $ac_files ''
3707 do
3708   test -f "$ac_file" || continue
3709   case $ac_file in
3710     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3711         ;;
3712     [ab].out )
3713         # We found the default executable, but exeext='' is most
3714         # certainly right.
3715         break;;
3716     *.* )
3717         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3718         then :; else
3719            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3720         fi
3721         # We set ac_cv_exeext here because the later test for it is not
3722         # safe: cross compilers may not add the suffix if given an `-o'
3723         # argument, so we may need to know it at that point already.
3724         # Even if this section looks crufty: it has the advantage of
3725         # actually working.
3726         break;;
3727     * )
3728         break;;
3729   esac
3730 done
3731 test "$ac_cv_exeext" = no && ac_cv_exeext=
3732
3733 else
3734   ac_file=''
3735 fi
3736 if test -z "$ac_file"; then :
3737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3739 $as_echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error 77 "C compiler cannot create executables
3745 See \`config.log' for more details" "$LINENO" 5; }
3746 else
3747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3748 $as_echo "yes" >&6; }
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3751 $as_echo_n "checking for C compiler default output file name... " >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3753 $as_echo "$ac_file" >&6; }
3754 ac_exeext=$ac_cv_exeext
3755
3756 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3757 ac_clean_files=$ac_clean_files_save
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3759 $as_echo_n "checking for suffix of executables... " >&6; }
3760 if { { ac_try="$ac_link"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767   (eval "$ac_link") 2>&5
3768   ac_status=$?
3769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3770   test $ac_status = 0; }; then :
3771   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3772 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3773 # work properly (i.e., refer to `conftest.exe'), while it won't with
3774 # `rm'.
3775 for ac_file in conftest.exe conftest conftest.*; do
3776   test -f "$ac_file" || continue
3777   case $ac_file in
3778     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3779     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3780           break;;
3781     * ) break;;
3782   esac
3783 done
3784 else
3785   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3788 See \`config.log' for more details" "$LINENO" 5; }
3789 fi
3790 rm -f conftest conftest$ac_cv_exeext
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3792 $as_echo "$ac_cv_exeext" >&6; }
3793
3794 rm -f conftest.$ac_ext
3795 EXEEXT=$ac_cv_exeext
3796 ac_exeext=$EXEEXT
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h.  */
3799 #include <stdio.h>
3800 int
3801 main ()
3802 {
3803 FILE *f = fopen ("conftest.out", "w");
3804  return ferror (f) || fclose (f) != 0;
3805
3806   ;
3807   return 0;
3808 }
3809 _ACEOF
3810 ac_clean_files="$ac_clean_files conftest.out"
3811 # Check that the compiler produces executables we can run.  If not, either
3812 # the compiler is broken, or we cross compile.
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3814 $as_echo_n "checking whether we are cross compiling... " >&6; }
3815 if test "$cross_compiling" != yes; then
3816   { { ac_try="$ac_link"
3817 case "(($ac_try" in
3818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819   *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823   (eval "$ac_link") 2>&5
3824   ac_status=$?
3825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826   test $ac_status = 0; }
3827   if { ac_try='./conftest$ac_cv_exeext'
3828   { { case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834   (eval "$ac_try") 2>&5
3835   ac_status=$?
3836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837   test $ac_status = 0; }; }; then
3838     cross_compiling=no
3839   else
3840     if test "$cross_compiling" = maybe; then
3841         cross_compiling=yes
3842     else
3843         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "cannot run C compiled programs.
3846 If you meant to cross compile, use \`--host'.
3847 See \`config.log' for more details" "$LINENO" 5; }
3848     fi
3849   fi
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3852 $as_echo "$cross_compiling" >&6; }
3853
3854 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3855 ac_clean_files=$ac_clean_files_save
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3857 $as_echo_n "checking for suffix of object files... " >&6; }
3858 if ${ac_cv_objext+:} false; then :
3859   $as_echo_n "(cached) " >&6
3860 else
3861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h.  */
3863
3864 int
3865 main ()
3866 {
3867
3868   ;
3869   return 0;
3870 }
3871 _ACEOF
3872 rm -f conftest.o conftest.obj
3873 if { { ac_try="$ac_compile"
3874 case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880   (eval "$ac_compile") 2>&5
3881   ac_status=$?
3882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883   test $ac_status = 0; }; then :
3884   for ac_file in conftest.o conftest.obj conftest.*; do
3885   test -f "$ac_file" || continue;
3886   case $ac_file in
3887     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3888     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3889        break;;
3890   esac
3891 done
3892 else
3893   $as_echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error $? "cannot compute suffix of object files: cannot compile
3899 See \`config.log' for more details" "$LINENO" 5; }
3900 fi
3901 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3904 $as_echo "$ac_cv_objext" >&6; }
3905 OBJEXT=$ac_cv_objext
3906 ac_objext=$OBJEXT
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3908 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3909 if ${ac_cv_c_compiler_gnu+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h.  */
3914
3915 int
3916 main ()
3917 {
3918 #ifndef __GNUC__
3919        choke me
3920 #endif
3921
3922   ;
3923   return 0;
3924 }
3925 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927   ac_compiler_gnu=yes
3928 else
3929   ac_compiler_gnu=no
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3933
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3936 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3937 if test $ac_compiler_gnu = yes; then
3938   GCC=yes
3939 else
3940   GCC=
3941 fi
3942 ac_test_CFLAGS=${CFLAGS+set}
3943 ac_save_CFLAGS=$CFLAGS
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3945 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3946 if ${ac_cv_prog_cc_g+:} false; then :
3947   $as_echo_n "(cached) " >&6
3948 else
3949   ac_save_c_werror_flag=$ac_c_werror_flag
3950    ac_c_werror_flag=yes
3951    ac_cv_prog_cc_g=no
3952    CFLAGS="-g"
3953    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965   ac_cv_prog_cc_g=yes
3966 else
3967   CFLAGS=""
3968       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h.  */
3970
3971 int
3972 main ()
3973 {
3974
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980
3981 else
3982   ac_c_werror_flag=$ac_save_c_werror_flag
3983          CFLAGS="-g"
3984          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h.  */
3986
3987 int
3988 main ()
3989 {
3990
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"; then :
3996   ac_cv_prog_cc_g=yes
3997 fi
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 fi
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003    ac_c_werror_flag=$ac_save_c_werror_flag
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4006 $as_echo "$ac_cv_prog_cc_g" >&6; }
4007 if test "$ac_test_CFLAGS" = set; then
4008   CFLAGS=$ac_save_CFLAGS
4009 elif test $ac_cv_prog_cc_g = yes; then
4010   if test "$GCC" = yes; then
4011     CFLAGS="-g -O2"
4012   else
4013     CFLAGS="-g"
4014   fi
4015 else
4016   if test "$GCC" = yes; then
4017     CFLAGS="-O2"
4018   else
4019     CFLAGS=
4020   fi
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4023 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4024 if ${ac_cv_prog_cc_c89+:} false; then :
4025   $as_echo_n "(cached) " >&6
4026 else
4027   ac_cv_prog_cc_c89=no
4028 ac_save_CC=$CC
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h.  */
4031 #include <stdarg.h>
4032 #include <stdio.h>
4033 struct stat;
4034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4035 struct buf { int x; };
4036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4037 static char *e (p, i)
4038      char **p;
4039      int i;
4040 {
4041   return p[i];
4042 }
4043 static char *f (char * (*g) (char **, int), char **p, ...)
4044 {
4045   char *s;
4046   va_list v;
4047   va_start (v,p);
4048   s = g (p, va_arg (v,int));
4049   va_end (v);
4050   return s;
4051 }
4052
4053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4054    function prototypes and stuff, but not '\xHH' hex character constants.
4055    These don't provoke an error unfortunately, instead are silently treated
4056    as 'x'.  The following induces an error, until -std is added to get
4057    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4058    array size at least.  It's necessary to write '\x00'==0 to get something
4059    that's true only with -std.  */
4060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4061
4062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4063    inside strings and character constants.  */
4064 #define FOO(x) 'x'
4065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4066
4067 int test (int i, double x);
4068 struct s1 {int (*f) (int a);};
4069 struct s2 {int (*f) (double a);};
4070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4071 int argc;
4072 char **argv;
4073 int
4074 main ()
4075 {
4076 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4082         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4083 do
4084   CC="$ac_save_CC $ac_arg"
4085   if ac_fn_c_try_compile "$LINENO"; then :
4086   ac_cv_prog_cc_c89=$ac_arg
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext
4089   test "x$ac_cv_prog_cc_c89" != "xno" && break
4090 done
4091 rm -f conftest.$ac_ext
4092 CC=$ac_save_CC
4093
4094 fi
4095 # AC_CACHE_VAL
4096 case "x$ac_cv_prog_cc_c89" in
4097   x)
4098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4099 $as_echo "none needed" >&6; } ;;
4100   xno)
4101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4102 $as_echo "unsupported" >&6; } ;;
4103   *)
4104     CC="$CC $ac_cv_prog_cc_c89"
4105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4106 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4107 esac
4108 if test "x$ac_cv_prog_cc_c89" != xno; then :
4109
4110 fi
4111
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117
4118 ac_ext=c
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4124 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4125 if ${am_cv_prog_cc_c_o+:} false; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h.  */
4130
4131 int
4132 main ()
4133 {
4134
4135   ;
4136   return 0;
4137 }
4138 _ACEOF
4139   # Make sure it works both with $CC and with simple cc.
4140   # Following AC_PROG_CC_C_O, we do the test twice because some
4141   # compilers refuse to overwrite an existing .o file with -o,
4142   # though they will create one.
4143   am_cv_prog_cc_c_o=yes
4144   for am_i in 1 2; do
4145     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4146    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4147    ac_status=$?
4148    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149    (exit $ac_status); } \
4150          && test -f conftest2.$ac_objext; then
4151       : OK
4152     else
4153       am_cv_prog_cc_c_o=no
4154       break
4155     fi
4156   done
4157   rm -f core conftest*
4158   unset am_i
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4161 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4162 if test "$am_cv_prog_cc_c_o" != yes; then
4163    # Losing compiler, so override with the script.
4164    # FIXME: It is wrong to rewrite CC.
4165    # But if we don't then we get into trouble of one sort or another.
4166    # A longer-term fix would be to have automake use am__CC in this case,
4167    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4168    CC="$am_aux_dir/compile $CC"
4169 fi
4170 ac_ext=c
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175
4176
4177 depcc="$CC"   am_compiler_list=
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4180 $as_echo_n "checking dependency style of $depcc... " >&6; }
4181 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4185   # We make a subdir and do the tests there.  Otherwise we can end up
4186   # making bogus files that we don't know about and never remove.  For
4187   # instance it was reported that on HP-UX the gcc test will end up
4188   # making a dummy file named 'D' -- because '-MD' means "put the output
4189   # in D".
4190   rm -rf conftest.dir
4191   mkdir conftest.dir
4192   # Copy depcomp to subdir because otherwise we won't find it if we're
4193   # using a relative directory.
4194   cp "$am_depcomp" conftest.dir
4195   cd conftest.dir
4196   # We will build objects and dependencies in a subdirectory because
4197   # it helps to detect inapplicable dependency modes.  For instance
4198   # both Tru64's cc and ICC support -MD to output dependencies as a
4199   # side effect of compilation, but ICC will put the dependencies in
4200   # the current directory while Tru64 will put them in the object
4201   # directory.
4202   mkdir sub
4203
4204   am_cv_CC_dependencies_compiler_type=none
4205   if test "$am_compiler_list" = ""; then
4206      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4207   fi
4208   am__universal=false
4209   case " $depcc " in #(
4210      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4211      esac
4212
4213   for depmode in $am_compiler_list; do
4214     # Setup a source with many dependencies, because some compilers
4215     # like to wrap large dependency lists on column 80 (with \), and
4216     # we should not choose a depcomp mode which is confused by this.
4217     #
4218     # We need to recreate these files for each test, as the compiler may
4219     # overwrite some of them when testing with obscure command lines.
4220     # This happens at least with the AIX C compiler.
4221     : > sub/conftest.c
4222     for i in 1 2 3 4 5 6; do
4223       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4224       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4225       # Solaris 10 /bin/sh.
4226       echo '/* dummy */' > sub/conftst$i.h
4227     done
4228     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4229
4230     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4231     # mode.  It turns out that the SunPro C++ compiler does not properly
4232     # handle '-M -o', and we need to detect this.  Also, some Intel
4233     # versions had trouble with output in subdirs.
4234     am__obj=sub/conftest.${OBJEXT-o}
4235     am__minus_obj="-o $am__obj"
4236     case $depmode in
4237     gcc)
4238       # This depmode causes a compiler race in universal mode.
4239       test "$am__universal" = false || continue
4240       ;;
4241     nosideeffect)
4242       # After this tag, mechanisms are not by side-effect, so they'll
4243       # only be used when explicitly requested.
4244       if test "x$enable_dependency_tracking" = xyes; then
4245         continue
4246       else
4247         break
4248       fi
4249       ;;
4250     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4251       # This compiler won't grok '-c -o', but also, the minuso test has
4252       # not run yet.  These depmodes are late enough in the game, and
4253       # so weak that their functioning should not be impacted.
4254       am__obj=conftest.${OBJEXT-o}
4255       am__minus_obj=
4256       ;;
4257     none) break ;;
4258     esac
4259     if depmode=$depmode \
4260        source=sub/conftest.c object=$am__obj \
4261        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4262        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4263          >/dev/null 2>conftest.err &&
4264        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4265        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4266        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4267        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4268       # icc doesn't choke on unknown options, it will just issue warnings
4269       # or remarks (even with -Werror).  So we grep stderr for any message
4270       # that says an option was ignored or not supported.
4271       # When given -MP, icc 7.0 and 7.1 complain thusly:
4272       #   icc: Command line warning: ignoring option '-M'; no argument required
4273       # The diagnosis changed in icc 8.0:
4274       #   icc: Command line remark: option '-MP' not supported
4275       if (grep 'ignoring option' conftest.err ||
4276           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4277         am_cv_CC_dependencies_compiler_type=$depmode
4278         break
4279       fi
4280     fi
4281   done
4282
4283   cd ..
4284   rm -rf conftest.dir
4285 else
4286   am_cv_CC_dependencies_compiler_type=none
4287 fi
4288
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4291 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4292 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4293
4294  if
4295   test "x$enable_dependency_tracking" != xno \
4296   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4297   am__fastdepCC_TRUE=
4298   am__fastdepCC_FALSE='#'
4299 else
4300   am__fastdepCC_TRUE='#'
4301   am__fastdepCC_FALSE=
4302 fi
4303
4304
4305 ac_ext=c
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4311 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4312 # On Suns, sometimes $CPP names a directory.
4313 if test -n "$CPP" && test -d "$CPP"; then
4314   CPP=
4315 fi
4316 if test -z "$CPP"; then
4317   if ${ac_cv_prog_CPP+:} false; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320       # Double quotes because CPP needs to be expanded
4321     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4322     do
4323       ac_preproc_ok=false
4324 for ac_c_preproc_warn_flag in '' yes
4325 do
4326   # Use a header file that comes with gcc, so configuring glibc
4327   # with a fresh cross-compiler works.
4328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329   # <limits.h> exists even on freestanding compilers.
4330   # On the NeXT, cc -E runs the code through the compiler's parser,
4331   # not just through cpp. "Syntax error" is here to catch this case.
4332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h.  */
4334 #ifdef __STDC__
4335 # include <limits.h>
4336 #else
4337 # include <assert.h>
4338 #endif
4339                      Syntax error
4340 _ACEOF
4341 if ac_fn_c_try_cpp "$LINENO"; then :
4342
4343 else
4344   # Broken: fails on valid input.
4345 continue
4346 fi
4347 rm -f conftest.err conftest.i conftest.$ac_ext
4348
4349   # OK, works on sane cases.  Now check whether nonexistent headers
4350   # can be detected and how.
4351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h.  */
4353 #include <ac_nonexistent.h>
4354 _ACEOF
4355 if ac_fn_c_try_cpp "$LINENO"; then :
4356   # Broken: success on invalid input.
4357 continue
4358 else
4359   # Passes both tests.
4360 ac_preproc_ok=:
4361 break
4362 fi
4363 rm -f conftest.err conftest.i conftest.$ac_ext
4364
4365 done
4366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4367 rm -f conftest.i conftest.err conftest.$ac_ext
4368 if $ac_preproc_ok; then :
4369   break
4370 fi
4371
4372     done
4373     ac_cv_prog_CPP=$CPP
4374
4375 fi
4376   CPP=$ac_cv_prog_CPP
4377 else
4378   ac_cv_prog_CPP=$CPP
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4381 $as_echo "$CPP" >&6; }
4382 ac_preproc_ok=false
4383 for ac_c_preproc_warn_flag in '' yes
4384 do
4385   # Use a header file that comes with gcc, so configuring glibc
4386   # with a fresh cross-compiler works.
4387   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4388   # <limits.h> exists even on freestanding compilers.
4389   # On the NeXT, cc -E runs the code through the compiler's parser,
4390   # not just through cpp. "Syntax error" is here to catch this case.
4391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h.  */
4393 #ifdef __STDC__
4394 # include <limits.h>
4395 #else
4396 # include <assert.h>
4397 #endif
4398                      Syntax error
4399 _ACEOF
4400 if ac_fn_c_try_cpp "$LINENO"; then :
4401
4402 else
4403   # Broken: fails on valid input.
4404 continue
4405 fi
4406 rm -f conftest.err conftest.i conftest.$ac_ext
4407
4408   # OK, works on sane cases.  Now check whether nonexistent headers
4409   # can be detected and how.
4410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h.  */
4412 #include <ac_nonexistent.h>
4413 _ACEOF
4414 if ac_fn_c_try_cpp "$LINENO"; then :
4415   # Broken: success on invalid input.
4416 continue
4417 else
4418   # Passes both tests.
4419 ac_preproc_ok=:
4420 break
4421 fi
4422 rm -f conftest.err conftest.i conftest.$ac_ext
4423
4424 done
4425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4426 rm -f conftest.i conftest.err conftest.$ac_ext
4427 if $ac_preproc_ok; then :
4428
4429 else
4430   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4433 See \`config.log' for more details" "$LINENO" 5; }
4434 fi
4435
4436 ac_ext=c
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441
4442 ac_ext=c
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_CC+:} false; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if test -n "$CC"; then
4456   ac_cv_prog_CC="$CC" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463     for ac_exec_ext in '' $ac_executable_extensions; do
4464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467     break 2
4468   fi
4469 done
4470   done
4471 IFS=$as_save_IFS
4472
4473 fi
4474 fi
4475 CC=$ac_cv_prog_CC
4476 if test -n "$CC"; then
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4478 $as_echo "$CC" >&6; }
4479 else
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484
4485 fi
4486 if test -z "$ac_cv_prog_CC"; then
4487   ac_ct_CC=$CC
4488   # Extract the first word of "gcc", so it can be a program name with args.
4489 set dummy gcc; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4493   $as_echo_n "(cached) " >&6
4494 else
4495   if test -n "$ac_ct_CC"; then
4496   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503     for ac_exec_ext in '' $ac_executable_extensions; do
4504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505     ac_cv_prog_ac_ct_CC="gcc"
4506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510   done
4511 IFS=$as_save_IFS
4512
4513 fi
4514 fi
4515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4516 if test -n "$ac_ct_CC"; then
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4518 $as_echo "$ac_ct_CC" >&6; }
4519 else
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4522 fi
4523
4524   if test "x$ac_ct_CC" = x; then
4525     CC=""
4526   else
4527     case $cross_compiling:$ac_tool_warned in
4528 yes:)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531 ac_tool_warned=yes ;;
4532 esac
4533     CC=$ac_ct_CC
4534   fi
4535 else
4536   CC="$ac_cv_prog_CC"
4537 fi
4538
4539 if test -z "$CC"; then
4540           if test -n "$ac_tool_prefix"; then
4541     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}cc; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_prog_CC+:} false; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   if test -n "$CC"; then
4549   ac_cv_prog_CC="$CC" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556     for ac_exec_ext in '' $ac_executable_extensions; do
4557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558     ac_cv_prog_CC="${ac_tool_prefix}cc"
4559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560     break 2
4561   fi
4562 done
4563   done
4564 IFS=$as_save_IFS
4565
4566 fi
4567 fi
4568 CC=$ac_cv_prog_CC
4569 if test -n "$CC"; then
4570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4571 $as_echo "$CC" >&6; }
4572 else
4573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578   fi
4579 fi
4580 if test -z "$CC"; then
4581   # Extract the first word of "cc", so it can be a program name with args.
4582 set dummy cc; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_CC+:} false; then :
4586   $as_echo_n "(cached) " >&6
4587 else
4588   if test -n "$CC"; then
4589   ac_cv_prog_CC="$CC" # Let the user override the test.
4590 else
4591   ac_prog_rejected=no
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597     for ac_exec_ext in '' $ac_executable_extensions; do
4598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4600        ac_prog_rejected=yes
4601        continue
4602      fi
4603     ac_cv_prog_CC="cc"
4604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605     break 2
4606   fi
4607 done
4608   done
4609 IFS=$as_save_IFS
4610
4611 if test $ac_prog_rejected = yes; then
4612   # We found a bogon in the path, so make sure we never use it.
4613   set dummy $ac_cv_prog_CC
4614   shift
4615   if test $# != 0; then
4616     # We chose a different compiler from the bogus one.
4617     # However, it has the same basename, so the bogon will be chosen
4618     # first if we set CC to just the basename; use the full file name.
4619     shift
4620     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4621   fi
4622 fi
4623 fi
4624 fi
4625 CC=$ac_cv_prog_CC
4626 if test -n "$CC"; then
4627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4628 $as_echo "$CC" >&6; }
4629 else
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634
4635 fi
4636 if test -z "$CC"; then
4637   if test -n "$ac_tool_prefix"; then
4638   for ac_prog in cl.exe
4639   do
4640     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_CC+:} false; then :
4645   $as_echo_n "(cached) " >&6
4646 else
4647   if test -n "$CC"; then
4648   ac_cv_prog_CC="$CC" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655     for ac_exec_ext in '' $ac_executable_extensions; do
4656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662   done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 CC=$ac_cv_prog_CC
4668 if test -n "$CC"; then
4669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4670 $as_echo "$CC" >&6; }
4671 else
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676
4677     test -n "$CC" && break
4678   done
4679 fi
4680 if test -z "$CC"; then
4681   ac_ct_CC=$CC
4682   for ac_prog in cl.exe
4683 do
4684   # Extract the first word of "$ac_prog", so it can be a program name with args.
4685 set dummy $ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$ac_ct_CC"; then
4692   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701     ac_cv_prog_ac_ct_CC="$ac_prog"
4702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712 if test -n "$ac_ct_CC"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4714 $as_echo "$ac_ct_CC" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721   test -n "$ac_ct_CC" && break
4722 done
4723
4724   if test "x$ac_ct_CC" = x; then
4725     CC=""
4726   else
4727     case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4732 esac
4733     CC=$ac_ct_CC
4734   fi
4735 fi
4736
4737 fi
4738
4739
4740 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4742 as_fn_error $? "no acceptable C compiler found in \$PATH
4743 See \`config.log' for more details" "$LINENO" 5; }
4744
4745 # Provide some information about the compiler.
4746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4747 set X $ac_compile
4748 ac_compiler=$2
4749 for ac_option in --version -v -V -qversion; do
4750   { { ac_try="$ac_compiler $ac_option >&5"
4751 case "(($ac_try" in
4752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753   *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756 $as_echo "$ac_try_echo"; } >&5
4757   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4758   ac_status=$?
4759   if test -s conftest.err; then
4760     sed '10a\
4761 ... rest of stderr output deleted ...
4762          10q' conftest.err >conftest.er1
4763     cat conftest.er1 >&5
4764   fi
4765   rm -f conftest.er1 conftest.err
4766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767   test $ac_status = 0; }
4768 done
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4771 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4772 if ${ac_cv_c_compiler_gnu+:} false; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h.  */
4777
4778 int
4779 main ()
4780 {
4781 #ifndef __GNUC__
4782        choke me
4783 #endif
4784
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790   ac_compiler_gnu=yes
4791 else
4792   ac_compiler_gnu=no
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4796
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4799 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4800 if test $ac_compiler_gnu = yes; then
4801   GCC=yes
4802 else
4803   GCC=
4804 fi
4805 ac_test_CFLAGS=${CFLAGS+set}
4806 ac_save_CFLAGS=$CFLAGS
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4808 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4809 if ${ac_cv_prog_cc_g+:} false; then :
4810   $as_echo_n "(cached) " >&6
4811 else
4812   ac_save_c_werror_flag=$ac_c_werror_flag
4813    ac_c_werror_flag=yes
4814    ac_cv_prog_cc_g=no
4815    CFLAGS="-g"
4816    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h.  */
4818
4819 int
4820 main ()
4821 {
4822
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 if ac_fn_c_try_compile "$LINENO"; then :
4828   ac_cv_prog_cc_g=yes
4829 else
4830   CFLAGS=""
4831       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h.  */
4833
4834 int
4835 main ()
4836 {
4837
4838   ;
4839   return 0;
4840 }
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"; then :
4843
4844 else
4845   ac_c_werror_flag=$ac_save_c_werror_flag
4846          CFLAGS="-g"
4847          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h.  */
4849
4850 int
4851 main ()
4852 {
4853
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 if ac_fn_c_try_compile "$LINENO"; then :
4859   ac_cv_prog_cc_g=yes
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866    ac_c_werror_flag=$ac_save_c_werror_flag
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4869 $as_echo "$ac_cv_prog_cc_g" >&6; }
4870 if test "$ac_test_CFLAGS" = set; then
4871   CFLAGS=$ac_save_CFLAGS
4872 elif test $ac_cv_prog_cc_g = yes; then
4873   if test "$GCC" = yes; then
4874     CFLAGS="-g -O2"
4875   else
4876     CFLAGS="-g"
4877   fi
4878 else
4879   if test "$GCC" = yes; then
4880     CFLAGS="-O2"
4881   else
4882     CFLAGS=
4883   fi
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4886 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4887 if ${ac_cv_prog_cc_c89+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   ac_cv_prog_cc_c89=no
4891 ac_save_CC=$CC
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h.  */
4894 #include <stdarg.h>
4895 #include <stdio.h>
4896 struct stat;
4897 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4898 struct buf { int x; };
4899 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4900 static char *e (p, i)
4901      char **p;
4902      int i;
4903 {
4904   return p[i];
4905 }
4906 static char *f (char * (*g) (char **, int), char **p, ...)
4907 {
4908   char *s;
4909   va_list v;
4910   va_start (v,p);
4911   s = g (p, va_arg (v,int));
4912   va_end (v);
4913   return s;
4914 }
4915
4916 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4917    function prototypes and stuff, but not '\xHH' hex character constants.
4918    These don't provoke an error unfortunately, instead are silently treated
4919    as 'x'.  The following induces an error, until -std is added to get
4920    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4921    array size at least.  It's necessary to write '\x00'==0 to get something
4922    that's true only with -std.  */
4923 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4924
4925 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4926    inside strings and character constants.  */
4927 #define FOO(x) 'x'
4928 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4929
4930 int test (int i, double x);
4931 struct s1 {int (*f) (int a);};
4932 struct s2 {int (*f) (double a);};
4933 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4934 int argc;
4935 char **argv;
4936 int
4937 main ()
4938 {
4939 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4940   ;
4941   return 0;
4942 }
4943 _ACEOF
4944 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4945         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4946 do
4947   CC="$ac_save_CC $ac_arg"
4948   if ac_fn_c_try_compile "$LINENO"; then :
4949   ac_cv_prog_cc_c89=$ac_arg
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext
4952   test "x$ac_cv_prog_cc_c89" != "xno" && break
4953 done
4954 rm -f conftest.$ac_ext
4955 CC=$ac_save_CC
4956
4957 fi
4958 # AC_CACHE_VAL
4959 case "x$ac_cv_prog_cc_c89" in
4960   x)
4961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4962 $as_echo "none needed" >&6; } ;;
4963   xno)
4964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4965 $as_echo "unsupported" >&6; } ;;
4966   *)
4967     CC="$CC $ac_cv_prog_cc_c89"
4968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4969 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4970 esac
4971 if test "x$ac_cv_prog_cc_c89" != xno; then :
4972
4973 fi
4974
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981 ac_ext=c
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4987 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4988 if ${am_cv_prog_cc_c_o+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h.  */
4993
4994 int
4995 main ()
4996 {
4997
4998   ;
4999   return 0;
5000 }
5001 _ACEOF
5002   # Make sure it works both with $CC and with simple cc.
5003   # Following AC_PROG_CC_C_O, we do the test twice because some
5004   # compilers refuse to overwrite an existing .o file with -o,
5005   # though they will create one.
5006   am_cv_prog_cc_c_o=yes
5007   for am_i in 1 2; do
5008     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5009    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5010    ac_status=$?
5011    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012    (exit $ac_status); } \
5013          && test -f conftest2.$ac_objext; then
5014       : OK
5015     else
5016       am_cv_prog_cc_c_o=no
5017       break
5018     fi
5019   done
5020   rm -f core conftest*
5021   unset am_i
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5024 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5025 if test "$am_cv_prog_cc_c_o" != yes; then
5026    # Losing compiler, so override with the script.
5027    # FIXME: It is wrong to rewrite CC.
5028    # But if we don't then we get into trouble of one sort or another.
5029    # A longer-term fix would be to have automake use am__CC in this case,
5030    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5031    CC="$am_aux_dir/compile $CC"
5032 fi
5033 ac_ext=c
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038
5039
5040 depcc="$CC"   am_compiler_list=
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5043 $as_echo_n "checking dependency style of $depcc... " >&6; }
5044 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5048   # We make a subdir and do the tests there.  Otherwise we can end up
5049   # making bogus files that we don't know about and never remove.  For
5050   # instance it was reported that on HP-UX the gcc test will end up
5051   # making a dummy file named 'D' -- because '-MD' means "put the output
5052   # in D".
5053   rm -rf conftest.dir
5054   mkdir conftest.dir
5055   # Copy depcomp to subdir because otherwise we won't find it if we're
5056   # using a relative directory.
5057   cp "$am_depcomp" conftest.dir
5058   cd conftest.dir
5059   # We will build objects and dependencies in a subdirectory because
5060   # it helps to detect inapplicable dependency modes.  For instance
5061   # both Tru64's cc and ICC support -MD to output dependencies as a
5062   # side effect of compilation, but ICC will put the dependencies in
5063   # the current directory while Tru64 will put them in the object
5064   # directory.
5065   mkdir sub
5066
5067   am_cv_CC_dependencies_compiler_type=none
5068   if test "$am_compiler_list" = ""; then
5069      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5070   fi
5071   am__universal=false
5072   case " $depcc " in #(
5073      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5074      esac
5075
5076   for depmode in $am_compiler_list; do
5077     # Setup a source with many dependencies, because some compilers
5078     # like to wrap large dependency lists on column 80 (with \), and
5079     # we should not choose a depcomp mode which is confused by this.
5080     #
5081     # We need to recreate these files for each test, as the compiler may
5082     # overwrite some of them when testing with obscure command lines.
5083     # This happens at least with the AIX C compiler.
5084     : > sub/conftest.c
5085     for i in 1 2 3 4 5 6; do
5086       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5087       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5088       # Solaris 10 /bin/sh.
5089       echo '/* dummy */' > sub/conftst$i.h
5090     done
5091     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5092
5093     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5094     # mode.  It turns out that the SunPro C++ compiler does not properly
5095     # handle '-M -o', and we need to detect this.  Also, some Intel
5096     # versions had trouble with output in subdirs.
5097     am__obj=sub/conftest.${OBJEXT-o}
5098     am__minus_obj="-o $am__obj"
5099     case $depmode in
5100     gcc)
5101       # This depmode causes a compiler race in universal mode.
5102       test "$am__universal" = false || continue
5103       ;;
5104     nosideeffect)
5105       # After this tag, mechanisms are not by side-effect, so they'll
5106       # only be used when explicitly requested.
5107       if test "x$enable_dependency_tracking" = xyes; then
5108         continue
5109       else
5110         break
5111       fi
5112       ;;
5113     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5114       # This compiler won't grok '-c -o', but also, the minuso test has
5115       # not run yet.  These depmodes are late enough in the game, and
5116       # so weak that their functioning should not be impacted.
5117       am__obj=conftest.${OBJEXT-o}
5118       am__minus_obj=
5119       ;;
5120     none) break ;;
5121     esac
5122     if depmode=$depmode \
5123        source=sub/conftest.c object=$am__obj \
5124        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5125        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5126          >/dev/null 2>conftest.err &&
5127        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5128        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5129        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5130        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5131       # icc doesn't choke on unknown options, it will just issue warnings
5132       # or remarks (even with -Werror).  So we grep stderr for any message
5133       # that says an option was ignored or not supported.
5134       # When given -MP, icc 7.0 and 7.1 complain thusly:
5135       #   icc: Command line warning: ignoring option '-M'; no argument required
5136       # The diagnosis changed in icc 8.0:
5137       #   icc: Command line remark: option '-MP' not supported
5138       if (grep 'ignoring option' conftest.err ||
5139           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5140         am_cv_CC_dependencies_compiler_type=$depmode
5141         break
5142       fi
5143     fi
5144   done
5145
5146   cd ..
5147   rm -rf conftest.dir
5148 else
5149   am_cv_CC_dependencies_compiler_type=none
5150 fi
5151
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5154 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5155 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5156
5157  if
5158   test "x$enable_dependency_tracking" != xno \
5159   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5160   am__fastdepCC_TRUE=
5161   am__fastdepCC_FALSE='#'
5162 else
5163   am__fastdepCC_TRUE='#'
5164   am__fastdepCC_FALSE=
5165 fi
5166
5167
5168
5169 if test -n "$ac_tool_prefix"; then
5170   for ac_prog in ar lib "link -lib"
5171   do
5172     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_AR+:} false; then :
5177   $as_echo_n "(cached) " >&6
5178 else
5179   if test -n "$AR"; then
5180   ac_cv_prog_AR="$AR" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185   IFS=$as_save_IFS
5186   test -z "$as_dir" && as_dir=.
5187     for ac_exec_ext in '' $ac_executable_extensions; do
5188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191     break 2
5192   fi
5193 done
5194   done
5195 IFS=$as_save_IFS
5196
5197 fi
5198 fi
5199 AR=$ac_cv_prog_AR
5200 if test -n "$AR"; then
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5202 $as_echo "$AR" >&6; }
5203 else
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208
5209     test -n "$AR" && break
5210   done
5211 fi
5212 if test -z "$AR"; then
5213   ac_ct_AR=$AR
5214   for ac_prog in ar lib "link -lib"
5215 do
5216   # Extract the first word of "$ac_prog", so it can be a program name with args.
5217 set dummy $ac_prog; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   if test -n "$ac_ct_AR"; then
5224   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231     for ac_exec_ext in '' $ac_executable_extensions; do
5232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233     ac_cv_prog_ac_ct_AR="$ac_prog"
5234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235     break 2
5236   fi
5237 done
5238   done
5239 IFS=$as_save_IFS
5240
5241 fi
5242 fi
5243 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5244 if test -n "$ac_ct_AR"; then
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5246 $as_echo "$ac_ct_AR" >&6; }
5247 else
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251
5252
5253   test -n "$ac_ct_AR" && break
5254 done
5255
5256   if test "x$ac_ct_AR" = x; then
5257     AR="false"
5258   else
5259     case $cross_compiling:$ac_tool_warned in
5260 yes:)
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5263 ac_tool_warned=yes ;;
5264 esac
5265     AR=$ac_ct_AR
5266   fi
5267 fi
5268
5269 : ${AR=ar}
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5272 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5273 if ${am_cv_ar_interface+:} false; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   ac_ext=c
5277 ac_cpp='$CPP $CPPFLAGS'
5278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5281
5282    am_cv_ar_interface=ar
5283    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h.  */
5285 int some_variable = 0;
5286 _ACEOF
5287 if ac_fn_c_try_compile "$LINENO"; then :
5288   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5289       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5290   (eval $am_ar_try) 2>&5
5291   ac_status=$?
5292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5293   test $ac_status = 0; }
5294       if test "$ac_status" -eq 0; then
5295         am_cv_ar_interface=ar
5296       else
5297         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5298         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5299   (eval $am_ar_try) 2>&5
5300   ac_status=$?
5301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302   test $ac_status = 0; }
5303         if test "$ac_status" -eq 0; then
5304           am_cv_ar_interface=lib
5305         else
5306           am_cv_ar_interface=unknown
5307         fi
5308       fi
5309       rm -f conftest.lib libconftest.a
5310
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313    ac_ext=c
5314 ac_cpp='$CPP $CPPFLAGS'
5315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5321 $as_echo "$am_cv_ar_interface" >&6; }
5322
5323 case $am_cv_ar_interface in
5324 ar)
5325   ;;
5326 lib)
5327   # Microsoft lib, so override with the ar-lib wrapper script.
5328   # FIXME: It is wrong to rewrite AR.
5329   # But if we don't then we get into trouble of one sort or another.
5330   # A longer-term fix would be to have automake use am__AR in this case,
5331   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5332   # similar.
5333   AR="$am_aux_dir/ar-lib $AR"
5334   ;;
5335 unknown)
5336   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5337   ;;
5338 esac
5339
5340 # By default we simply use the C compiler to build assembly code.
5341
5342 test "${CCAS+set}" = set || CCAS=$CC
5343 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5344
5345
5346
5347 depcc="$CCAS"   am_compiler_list=
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5350 $as_echo_n "checking dependency style of $depcc... " >&6; }
5351 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5355   # We make a subdir and do the tests there.  Otherwise we can end up
5356   # making bogus files that we don't know about and never remove.  For
5357   # instance it was reported that on HP-UX the gcc test will end up
5358   # making a dummy file named 'D' -- because '-MD' means "put the output
5359   # in D".
5360   rm -rf conftest.dir
5361   mkdir conftest.dir
5362   # Copy depcomp to subdir because otherwise we won't find it if we're
5363   # using a relative directory.
5364   cp "$am_depcomp" conftest.dir
5365   cd conftest.dir
5366   # We will build objects and dependencies in a subdirectory because
5367   # it helps to detect inapplicable dependency modes.  For instance
5368   # both Tru64's cc and ICC support -MD to output dependencies as a
5369   # side effect of compilation, but ICC will put the dependencies in
5370   # the current directory while Tru64 will put them in the object
5371   # directory.
5372   mkdir sub
5373
5374   am_cv_CCAS_dependencies_compiler_type=none
5375   if test "$am_compiler_list" = ""; then
5376      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5377   fi
5378   am__universal=false
5379
5380
5381   for depmode in $am_compiler_list; do
5382     # Setup a source with many dependencies, because some compilers
5383     # like to wrap large dependency lists on column 80 (with \), and
5384     # we should not choose a depcomp mode which is confused by this.
5385     #
5386     # We need to recreate these files for each test, as the compiler may
5387     # overwrite some of them when testing with obscure command lines.
5388     # This happens at least with the AIX C compiler.
5389     : > sub/conftest.c
5390     for i in 1 2 3 4 5 6; do
5391       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5392       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5393       # Solaris 10 /bin/sh.
5394       echo '/* dummy */' > sub/conftst$i.h
5395     done
5396     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5397
5398     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5399     # mode.  It turns out that the SunPro C++ compiler does not properly
5400     # handle '-M -o', and we need to detect this.  Also, some Intel
5401     # versions had trouble with output in subdirs.
5402     am__obj=sub/conftest.${OBJEXT-o}
5403     am__minus_obj="-o $am__obj"
5404     case $depmode in
5405     gcc)
5406       # This depmode causes a compiler race in universal mode.
5407       test "$am__universal" = false || continue
5408       ;;
5409     nosideeffect)
5410       # After this tag, mechanisms are not by side-effect, so they'll
5411       # only be used when explicitly requested.
5412       if test "x$enable_dependency_tracking" = xyes; then
5413         continue
5414       else
5415         break
5416       fi
5417       ;;
5418     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5419       # This compiler won't grok '-c -o', but also, the minuso test has
5420       # not run yet.  These depmodes are late enough in the game, and
5421       # so weak that their functioning should not be impacted.
5422       am__obj=conftest.${OBJEXT-o}
5423       am__minus_obj=
5424       ;;
5425     none) break ;;
5426     esac
5427     if depmode=$depmode \
5428        source=sub/conftest.c object=$am__obj \
5429        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5430        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5431          >/dev/null 2>conftest.err &&
5432        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5433        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5434        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5435        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5436       # icc doesn't choke on unknown options, it will just issue warnings
5437       # or remarks (even with -Werror).  So we grep stderr for any message
5438       # that says an option was ignored or not supported.
5439       # When given -MP, icc 7.0 and 7.1 complain thusly:
5440       #   icc: Command line warning: ignoring option '-M'; no argument required
5441       # The diagnosis changed in icc 8.0:
5442       #   icc: Command line remark: option '-MP' not supported
5443       if (grep 'ignoring option' conftest.err ||
5444           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5445         am_cv_CCAS_dependencies_compiler_type=$depmode
5446         break
5447       fi
5448     fi
5449   done
5450
5451   cd ..
5452   rm -rf conftest.dir
5453 else
5454   am_cv_CCAS_dependencies_compiler_type=none
5455 fi
5456
5457 fi
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5459 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5460 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5461
5462  if
5463   test "x$enable_dependency_tracking" != xno \
5464   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5465   am__fastdepCCAS_TRUE=
5466   am__fastdepCCAS_FALSE='#'
5467 else
5468   am__fastdepCCAS_TRUE='#'
5469   am__fastdepCCAS_FALSE=
5470 fi
5471
5472
5473
5474
5475 case `pwd` in
5476   *\ * | *\     *)
5477     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5478 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5479 esac
5480
5481
5482
5483 macro_version='2.4.6'
5484 macro_revision='2.4.6'
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 ltmain=$ac_aux_dir/ltmain.sh
5499
5500 # Make sure we can run config.sub.
5501 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5502   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5505 $as_echo_n "checking build system type... " >&6; }
5506 if ${ac_cv_build+:} false; then :
5507   $as_echo_n "(cached) " >&6
5508 else
5509   ac_build_alias=$build_alias
5510 test "x$ac_build_alias" = x &&
5511   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5512 test "x$ac_build_alias" = x &&
5513   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5514 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5515   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5516
5517 fi
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5519 $as_echo "$ac_cv_build" >&6; }
5520 case $ac_cv_build in
5521 *-*-*) ;;
5522 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5523 esac
5524 build=$ac_cv_build
5525 ac_save_IFS=$IFS; IFS='-'
5526 set x $ac_cv_build
5527 shift
5528 build_cpu=$1
5529 build_vendor=$2
5530 shift; shift
5531 # Remember, the first character of IFS is used to create $*,
5532 # except with old shells:
5533 build_os=$*
5534 IFS=$ac_save_IFS
5535 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5536
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5539 $as_echo_n "checking host system type... " >&6; }
5540 if ${ac_cv_host+:} false; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   if test "x$host_alias" = x; then
5544   ac_cv_host=$ac_cv_build
5545 else
5546   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5547     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5548 fi
5549
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5552 $as_echo "$ac_cv_host" >&6; }
5553 case $ac_cv_host in
5554 *-*-*) ;;
5555 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5556 esac
5557 host=$ac_cv_host
5558 ac_save_IFS=$IFS; IFS='-'
5559 set x $ac_cv_host
5560 shift
5561 host_cpu=$1
5562 host_vendor=$2
5563 shift; shift
5564 # Remember, the first character of IFS is used to create $*,
5565 # except with old shells:
5566 host_os=$*
5567 IFS=$ac_save_IFS
5568 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5569
5570
5571 # Backslashify metacharacters that are still active within
5572 # double-quoted strings.
5573 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5574
5575 # Same as above, but do not quote variable references.
5576 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5577
5578 # Sed substitution to delay expansion of an escaped shell variable in a
5579 # double_quote_subst'ed string.
5580 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5581
5582 # Sed substitution to delay expansion of an escaped single quote.
5583 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5584
5585 # Sed substitution to avoid accidental globbing in evaled expressions
5586 no_glob_subst='s/\*/\\\*/g'
5587
5588 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5589 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5590 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5593 $as_echo_n "checking how to print strings... " >&6; }
5594 # Test print first, because it will be a builtin if present.
5595 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5596    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5597   ECHO='print -r --'
5598 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5599   ECHO='printf %s\n'
5600 else
5601   # Use this function as a fallback that always works.
5602   func_fallback_echo ()
5603   {
5604     eval 'cat <<_LTECHO_EOF
5605 $1
5606 _LTECHO_EOF'
5607   }
5608   ECHO='func_fallback_echo'
5609 fi
5610
5611 # func_echo_all arg...
5612 # Invoke $ECHO with all args, space-separated.
5613 func_echo_all ()
5614 {
5615     $ECHO ""
5616 }
5617
5618 case $ECHO in
5619   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5620 $as_echo "printf" >&6; } ;;
5621   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5622 $as_echo "print -r" >&6; } ;;
5623   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5624 $as_echo "cat" >&6; } ;;
5625 esac
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5641 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5642 if ${ac_cv_path_SED+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5646      for ac_i in 1 2 3 4 5 6 7; do
5647        ac_script="$ac_script$as_nl$ac_script"
5648      done
5649      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5650      { ac_script=; unset ac_script;}
5651      if test -z "$SED"; then
5652   ac_path_SED_found=false
5653   # Loop through the user's path and test for each of PROGNAME-LIST
5654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659     for ac_prog in sed gsed; do
5660     for ac_exec_ext in '' $ac_executable_extensions; do
5661       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5662       as_fn_executable_p "$ac_path_SED" || continue
5663 # Check for GNU ac_path_SED and select it if it is found.
5664   # Check for GNU $ac_path_SED
5665 case `"$ac_path_SED" --version 2>&1` in
5666 *GNU*)
5667   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5668 *)
5669   ac_count=0
5670   $as_echo_n 0123456789 >"conftest.in"
5671   while :
5672   do
5673     cat "conftest.in" "conftest.in" >"conftest.tmp"
5674     mv "conftest.tmp" "conftest.in"
5675     cp "conftest.in" "conftest.nl"
5676     $as_echo '' >> "conftest.nl"
5677     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5678     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5679     as_fn_arith $ac_count + 1 && ac_count=$as_val
5680     if test $ac_count -gt ${ac_path_SED_max-0}; then
5681       # Best one so far, save it but keep looking for a better one
5682       ac_cv_path_SED="$ac_path_SED"
5683       ac_path_SED_max=$ac_count
5684     fi
5685     # 10*(2^10) chars as input seems more than enough
5686     test $ac_count -gt 10 && break
5687   done
5688   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5689 esac
5690
5691       $ac_path_SED_found && break 3
5692     done
5693   done
5694   done
5695 IFS=$as_save_IFS
5696   if test -z "$ac_cv_path_SED"; then
5697     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5698   fi
5699 else
5700   ac_cv_path_SED=$SED
5701 fi
5702
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5705 $as_echo "$ac_cv_path_SED" >&6; }
5706  SED="$ac_cv_path_SED"
5707   rm -f conftest.sed
5708
5709 test -z "$SED" && SED=sed
5710 Xsed="$SED -e 1s/^X//"
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5723 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5724 if ${ac_cv_path_GREP+:} false; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   if test -z "$GREP"; then
5728   ac_path_GREP_found=false
5729   # Loop through the user's path and test for each of PROGNAME-LIST
5730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5732 do
5733   IFS=$as_save_IFS
5734   test -z "$as_dir" && as_dir=.
5735     for ac_prog in grep ggrep; do
5736     for ac_exec_ext in '' $ac_executable_extensions; do
5737       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5738       as_fn_executable_p "$ac_path_GREP" || continue
5739 # Check for GNU ac_path_GREP and select it if it is found.
5740   # Check for GNU $ac_path_GREP
5741 case `"$ac_path_GREP" --version 2>&1` in
5742 *GNU*)
5743   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5744 *)
5745   ac_count=0
5746   $as_echo_n 0123456789 >"conftest.in"
5747   while :
5748   do
5749     cat "conftest.in" "conftest.in" >"conftest.tmp"
5750     mv "conftest.tmp" "conftest.in"
5751     cp "conftest.in" "conftest.nl"
5752     $as_echo 'GREP' >> "conftest.nl"
5753     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5754     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5755     as_fn_arith $ac_count + 1 && ac_count=$as_val
5756     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5757       # Best one so far, save it but keep looking for a better one
5758       ac_cv_path_GREP="$ac_path_GREP"
5759       ac_path_GREP_max=$ac_count
5760     fi
5761     # 10*(2^10) chars as input seems more than enough
5762     test $ac_count -gt 10 && break
5763   done
5764   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5765 esac
5766
5767       $ac_path_GREP_found && break 3
5768     done
5769   done
5770   done
5771 IFS=$as_save_IFS
5772   if test -z "$ac_cv_path_GREP"; then
5773     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5774   fi
5775 else
5776   ac_cv_path_GREP=$GREP
5777 fi
5778
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5781 $as_echo "$ac_cv_path_GREP" >&6; }
5782  GREP="$ac_cv_path_GREP"
5783
5784
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5786 $as_echo_n "checking for egrep... " >&6; }
5787 if ${ac_cv_path_EGREP+:} false; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5791    then ac_cv_path_EGREP="$GREP -E"
5792    else
5793      if test -z "$EGREP"; then
5794   ac_path_EGREP_found=false
5795   # Loop through the user's path and test for each of PROGNAME-LIST
5796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801     for ac_prog in egrep; do
5802     for ac_exec_ext in '' $ac_executable_extensions; do
5803       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5804       as_fn_executable_p "$ac_path_EGREP" || continue
5805 # Check for GNU ac_path_EGREP and select it if it is found.
5806   # Check for GNU $ac_path_EGREP
5807 case `"$ac_path_EGREP" --version 2>&1` in
5808 *GNU*)
5809   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5810 *)
5811   ac_count=0
5812   $as_echo_n 0123456789 >"conftest.in"
5813   while :
5814   do
5815     cat "conftest.in" "conftest.in" >"conftest.tmp"
5816     mv "conftest.tmp" "conftest.in"
5817     cp "conftest.in" "conftest.nl"
5818     $as_echo 'EGREP' >> "conftest.nl"
5819     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5820     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5821     as_fn_arith $ac_count + 1 && ac_count=$as_val
5822     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5823       # Best one so far, save it but keep looking for a better one
5824       ac_cv_path_EGREP="$ac_path_EGREP"
5825       ac_path_EGREP_max=$ac_count
5826     fi
5827     # 10*(2^10) chars as input seems more than enough
5828     test $ac_count -gt 10 && break
5829   done
5830   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5831 esac
5832
5833       $ac_path_EGREP_found && break 3
5834     done
5835   done
5836   done
5837 IFS=$as_save_IFS
5838   if test -z "$ac_cv_path_EGREP"; then
5839     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5840   fi
5841 else
5842   ac_cv_path_EGREP=$EGREP
5843 fi
5844
5845    fi
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5848 $as_echo "$ac_cv_path_EGREP" >&6; }
5849  EGREP="$ac_cv_path_EGREP"
5850
5851
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5853 $as_echo_n "checking for fgrep... " >&6; }
5854 if ${ac_cv_path_FGREP+:} false; then :
5855   $as_echo_n "(cached) " >&6
5856 else
5857   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5858    then ac_cv_path_FGREP="$GREP -F"
5859    else
5860      if test -z "$FGREP"; then
5861   ac_path_FGREP_found=false
5862   # Loop through the user's path and test for each of PROGNAME-LIST
5863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868     for ac_prog in fgrep; do
5869     for ac_exec_ext in '' $ac_executable_extensions; do
5870       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5871       as_fn_executable_p "$ac_path_FGREP" || continue
5872 # Check for GNU ac_path_FGREP and select it if it is found.
5873   # Check for GNU $ac_path_FGREP
5874 case `"$ac_path_FGREP" --version 2>&1` in
5875 *GNU*)
5876   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5877 *)
5878   ac_count=0
5879   $as_echo_n 0123456789 >"conftest.in"
5880   while :
5881   do
5882     cat "conftest.in" "conftest.in" >"conftest.tmp"
5883     mv "conftest.tmp" "conftest.in"
5884     cp "conftest.in" "conftest.nl"
5885     $as_echo 'FGREP' >> "conftest.nl"
5886     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5887     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5888     as_fn_arith $ac_count + 1 && ac_count=$as_val
5889     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5890       # Best one so far, save it but keep looking for a better one
5891       ac_cv_path_FGREP="$ac_path_FGREP"
5892       ac_path_FGREP_max=$ac_count
5893     fi
5894     # 10*(2^10) chars as input seems more than enough
5895     test $ac_count -gt 10 && break
5896   done
5897   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5898 esac
5899
5900       $ac_path_FGREP_found && break 3
5901     done
5902   done
5903   done
5904 IFS=$as_save_IFS
5905   if test -z "$ac_cv_path_FGREP"; then
5906     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5907   fi
5908 else
5909   ac_cv_path_FGREP=$FGREP
5910 fi
5911
5912    fi
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5915 $as_echo "$ac_cv_path_FGREP" >&6; }
5916  FGREP="$ac_cv_path_FGREP"
5917
5918
5919 test -z "$GREP" && GREP=grep
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 # Check whether --with-gnu-ld was given.
5940 if test "${with_gnu_ld+set}" = set; then :
5941   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5942 else
5943   with_gnu_ld=no
5944 fi
5945
5946 ac_prog=ld
5947 if test yes = "$GCC"; then
5948   # Check if gcc -print-prog-name=ld gives a path.
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5950 $as_echo_n "checking for ld used by $CC... " >&6; }
5951   case $host in
5952   *-*-mingw*)
5953     # gcc leaves a trailing carriage return, which upsets mingw
5954     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5955   *)
5956     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5957   esac
5958   case $ac_prog in
5959     # Accept absolute paths.
5960     [\\/]* | ?:[\\/]*)
5961       re_direlt='/[^/][^/]*/\.\./'
5962       # Canonicalize the pathname of ld
5963       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5964       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5965         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5966       done
5967       test -z "$LD" && LD=$ac_prog
5968       ;;
5969   "")
5970     # If it fails, then pretend we aren't using GCC.
5971     ac_prog=ld
5972     ;;
5973   *)
5974     # If it is relative, then search for the first ld in PATH.
5975     with_gnu_ld=unknown
5976     ;;
5977   esac
5978 elif test yes = "$with_gnu_ld"; then
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5980 $as_echo_n "checking for GNU ld... " >&6; }
5981 else
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5983 $as_echo_n "checking for non-GNU ld... " >&6; }
5984 fi
5985 if ${lt_cv_path_LD+:} false; then :
5986   $as_echo_n "(cached) " >&6
5987 else
5988   if test -z "$LD"; then
5989   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5990   for ac_dir in $PATH; do
5991     IFS=$lt_save_ifs
5992     test -z "$ac_dir" && ac_dir=.
5993     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5994       lt_cv_path_LD=$ac_dir/$ac_prog
5995       # Check to see if the program is GNU ld.  I'd rather use --version,
5996       # but apparently some variants of GNU ld only accept -v.
5997       # Break only if it was the GNU/non-GNU ld that we prefer.
5998       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5999       *GNU* | *'with BFD'*)
6000         test no != "$with_gnu_ld" && break
6001         ;;
6002       *)
6003         test yes != "$with_gnu_ld" && break
6004         ;;
6005       esac
6006     fi
6007   done
6008   IFS=$lt_save_ifs
6009 else
6010   lt_cv_path_LD=$LD # Let the user override the test with a path.
6011 fi
6012 fi
6013
6014 LD=$lt_cv_path_LD
6015 if test -n "$LD"; then
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6017 $as_echo "$LD" >&6; }
6018 else
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6024 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6025 if ${lt_cv_prog_gnu_ld+:} false; then :
6026   $as_echo_n "(cached) " >&6
6027 else
6028   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6029 case `$LD -v 2>&1 </dev/null` in
6030 *GNU* | *'with BFD'*)
6031   lt_cv_prog_gnu_ld=yes
6032   ;;
6033 *)
6034   lt_cv_prog_gnu_ld=no
6035   ;;
6036 esac
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6039 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6040 with_gnu_ld=$lt_cv_prog_gnu_ld
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6051 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6052 if ${lt_cv_path_NM+:} false; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055   if test -n "$NM"; then
6056   # Let the user override the test.
6057   lt_cv_path_NM=$NM
6058 else
6059   lt_nm_to_check=${ac_tool_prefix}nm
6060   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6061     lt_nm_to_check="$lt_nm_to_check nm"
6062   fi
6063   for lt_tmp_nm in $lt_nm_to_check; do
6064     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6065     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6066       IFS=$lt_save_ifs
6067       test -z "$ac_dir" && ac_dir=.
6068       tmp_nm=$ac_dir/$lt_tmp_nm
6069       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6070         # Check to see if the nm accepts a BSD-compat flag.
6071         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6072         #   nm: unknown option "B" ignored
6073         # Tru64's nm complains that /dev/null is an invalid object file
6074         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6075         case $build_os in
6076         mingw*) lt_bad_file=conftest.nm/nofile ;;
6077         *) lt_bad_file=/dev/null ;;
6078         esac
6079         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6080         *$lt_bad_file* | *'Invalid file or object type'*)
6081           lt_cv_path_NM="$tmp_nm -B"
6082           break 2
6083           ;;
6084         *)
6085           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6086           */dev/null*)
6087             lt_cv_path_NM="$tmp_nm -p"
6088             break 2
6089             ;;
6090           *)
6091             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6092             continue # so that we can try to find one that supports BSD flags
6093             ;;
6094           esac
6095           ;;
6096         esac
6097       fi
6098     done
6099     IFS=$lt_save_ifs
6100   done
6101   : ${lt_cv_path_NM=no}
6102 fi
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6105 $as_echo "$lt_cv_path_NM" >&6; }
6106 if test no != "$lt_cv_path_NM"; then
6107   NM=$lt_cv_path_NM
6108 else
6109   # Didn't find any BSD compatible name lister, look for dumpbin.
6110   if test -n "$DUMPBIN"; then :
6111     # Let the user override the test.
6112   else
6113     if test -n "$ac_tool_prefix"; then
6114   for ac_prog in dumpbin "link -dump"
6115   do
6116     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if ${ac_cv_prog_DUMPBIN+:} false; then :
6121   $as_echo_n "(cached) " >&6
6122 else
6123   if test -n "$DUMPBIN"; then
6124   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131     for ac_exec_ext in '' $ac_executable_extensions; do
6132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135     break 2
6136   fi
6137 done
6138   done
6139 IFS=$as_save_IFS
6140
6141 fi
6142 fi
6143 DUMPBIN=$ac_cv_prog_DUMPBIN
6144 if test -n "$DUMPBIN"; then
6145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6146 $as_echo "$DUMPBIN" >&6; }
6147 else
6148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6150 fi
6151
6152
6153     test -n "$DUMPBIN" && break
6154   done
6155 fi
6156 if test -z "$DUMPBIN"; then
6157   ac_ct_DUMPBIN=$DUMPBIN
6158   for ac_prog in dumpbin "link -dump"
6159 do
6160   # Extract the first word of "$ac_prog", so it can be a program name with args.
6161 set dummy $ac_prog; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6165   $as_echo_n "(cached) " >&6
6166 else
6167   if test -n "$ac_ct_DUMPBIN"; then
6168   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173   IFS=$as_save_IFS
6174   test -z "$as_dir" && as_dir=.
6175     for ac_exec_ext in '' $ac_executable_extensions; do
6176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6177     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179     break 2
6180   fi
6181 done
6182   done
6183 IFS=$as_save_IFS
6184
6185 fi
6186 fi
6187 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6188 if test -n "$ac_ct_DUMPBIN"; then
6189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6190 $as_echo "$ac_ct_DUMPBIN" >&6; }
6191 else
6192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6194 fi
6195
6196
6197   test -n "$ac_ct_DUMPBIN" && break
6198 done
6199
6200   if test "x$ac_ct_DUMPBIN" = x; then
6201     DUMPBIN=":"
6202   else
6203     case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209     DUMPBIN=$ac_ct_DUMPBIN
6210   fi
6211 fi
6212
6213     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6214     *COFF*)
6215       DUMPBIN="$DUMPBIN -symbols -headers"
6216       ;;
6217     *)
6218       DUMPBIN=:
6219       ;;
6220     esac
6221   fi
6222
6223   if test : != "$DUMPBIN"; then
6224     NM=$DUMPBIN
6225   fi
6226 fi
6227 test -z "$NM" && NM=nm
6228
6229
6230
6231
6232
6233
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6235 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6236 if ${lt_cv_nm_interface+:} false; then :
6237   $as_echo_n "(cached) " >&6
6238 else
6239   lt_cv_nm_interface="BSD nm"
6240   echo "int some_variable = 0;" > conftest.$ac_ext
6241   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6242   (eval "$ac_compile" 2>conftest.err)
6243   cat conftest.err >&5
6244   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6245   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6246   cat conftest.err >&5
6247   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6248   cat conftest.out >&5
6249   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6250     lt_cv_nm_interface="MS dumpbin"
6251   fi
6252   rm -f conftest*
6253 fi
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6255 $as_echo "$lt_cv_nm_interface" >&6; }
6256
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6258 $as_echo_n "checking whether ln -s works... " >&6; }
6259 LN_S=$as_ln_s
6260 if test "$LN_S" = "ln -s"; then
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6262 $as_echo "yes" >&6; }
6263 else
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6265 $as_echo "no, using $LN_S" >&6; }
6266 fi
6267
6268 # find the maximum length of command line arguments
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6270 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6271 if ${lt_cv_sys_max_cmd_len+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274     i=0
6275   teststring=ABCD
6276
6277   case $build_os in
6278   msdosdjgpp*)
6279     # On DJGPP, this test can blow up pretty badly due to problems in libc
6280     # (any single argument exceeding 2000 bytes causes a buffer overrun
6281     # during glob expansion).  Even if it were fixed, the result of this
6282     # check would be larger than it should be.
6283     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6284     ;;
6285
6286   gnu*)
6287     # Under GNU Hurd, this test is not required because there is
6288     # no limit to the length of command line arguments.
6289     # Libtool will interpret -1 as no limit whatsoever
6290     lt_cv_sys_max_cmd_len=-1;
6291     ;;
6292
6293   cygwin* | mingw* | cegcc*)
6294     # On Win9x/ME, this test blows up -- it succeeds, but takes
6295     # about 5 minutes as the teststring grows exponentially.
6296     # Worse, since 9x/ME are not pre-emptively multitasking,
6297     # you end up with a "frozen" computer, even though with patience
6298     # the test eventually succeeds (with a max line length of 256k).
6299     # Instead, let's just punt: use the minimum linelength reported by
6300     # all of the supported platforms: 8192 (on NT/2K/XP).
6301     lt_cv_sys_max_cmd_len=8192;
6302     ;;
6303
6304   mint*)
6305     # On MiNT this can take a long time and run out of memory.
6306     lt_cv_sys_max_cmd_len=8192;
6307     ;;
6308
6309   amigaos*)
6310     # On AmigaOS with pdksh, this test takes hours, literally.
6311     # So we just punt and use a minimum line length of 8192.
6312     lt_cv_sys_max_cmd_len=8192;
6313     ;;
6314
6315   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6316     # This has been around since 386BSD, at least.  Likely further.
6317     if test -x /sbin/sysctl; then
6318       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6319     elif test -x /usr/sbin/sysctl; then
6320       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6321     else
6322       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6323     fi
6324     # And add a safety zone
6325     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6326     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6327     ;;
6328
6329   interix*)
6330     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6331     lt_cv_sys_max_cmd_len=196608
6332     ;;
6333
6334   os2*)
6335     # The test takes a long time on OS/2.
6336     lt_cv_sys_max_cmd_len=8192
6337     ;;
6338
6339   osf*)
6340     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6341     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6342     # nice to cause kernel panics so lets avoid the loop below.
6343     # First set a reasonable default.
6344     lt_cv_sys_max_cmd_len=16384
6345     #
6346     if test -x /sbin/sysconfig; then
6347       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6348         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6349       esac
6350     fi
6351     ;;
6352   sco3.2v5*)
6353     lt_cv_sys_max_cmd_len=102400
6354     ;;
6355   sysv5* | sco5v6* | sysv4.2uw2*)
6356     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6357     if test -n "$kargmax"; then
6358       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6359     else
6360       lt_cv_sys_max_cmd_len=32768
6361     fi
6362     ;;
6363   *)
6364     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6365     if test -n "$lt_cv_sys_max_cmd_len" && \
6366        test undefined != "$lt_cv_sys_max_cmd_len"; then
6367       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6368       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6369     else
6370       # Make teststring a little bigger before we do anything with it.
6371       # a 1K string should be a reasonable start.
6372       for i in 1 2 3 4 5 6 7 8; do
6373         teststring=$teststring$teststring
6374       done
6375       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6376       # If test is not a shell built-in, we'll probably end up computing a
6377       # maximum length that is only half of the actual maximum length, but
6378       # we can't tell.
6379       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6380                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6381               test 17 != "$i" # 1/2 MB should be enough
6382       do
6383         i=`expr $i + 1`
6384         teststring=$teststring$teststring
6385       done
6386       # Only check the string length outside the loop.
6387       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6388       teststring=
6389       # Add a significant safety factor because C++ compilers can tack on
6390       # massive amounts of additional arguments before passing them to the
6391       # linker.  It appears as though 1/2 is a usable value.
6392       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6393     fi
6394     ;;
6395   esac
6396
6397 fi
6398
6399 if test -n "$lt_cv_sys_max_cmd_len"; then
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6401 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6402 else
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6404 $as_echo "none" >&6; }
6405 fi
6406 max_cmd_len=$lt_cv_sys_max_cmd_len
6407
6408
6409
6410
6411
6412
6413 : ${CP="cp -f"}
6414 : ${MV="mv -f"}
6415 : ${RM="rm -f"}
6416
6417 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6418   lt_unset=unset
6419 else
6420   lt_unset=false
6421 fi
6422
6423
6424
6425
6426
6427 # test EBCDIC or ASCII
6428 case `echo X|tr X '\101'` in
6429  A) # ASCII based system
6430     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6431   lt_SP2NL='tr \040 \012'
6432   lt_NL2SP='tr \015\012 \040\040'
6433   ;;
6434  *) # EBCDIC based system
6435   lt_SP2NL='tr \100 \n'
6436   lt_NL2SP='tr \r\n \100\100'
6437   ;;
6438 esac
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6449 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6450 if ${lt_cv_to_host_file_cmd+:} false; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   case $host in
6454   *-*-mingw* )
6455     case $build in
6456       *-*-mingw* ) # actually msys
6457         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6458         ;;
6459       *-*-cygwin* )
6460         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6461         ;;
6462       * ) # otherwise, assume *nix
6463         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6464         ;;
6465     esac
6466     ;;
6467   *-*-cygwin* )
6468     case $build in
6469       *-*-mingw* ) # actually msys
6470         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6471         ;;
6472       *-*-cygwin* )
6473         lt_cv_to_host_file_cmd=func_convert_file_noop
6474         ;;
6475       * ) # otherwise, assume *nix
6476         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6477         ;;
6478     esac
6479     ;;
6480   * ) # unhandled hosts (and "normal" native builds)
6481     lt_cv_to_host_file_cmd=func_convert_file_noop
6482     ;;
6483 esac
6484
6485 fi
6486
6487 to_host_file_cmd=$lt_cv_to_host_file_cmd
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6489 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6490
6491
6492
6493
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6496 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6497 if ${lt_cv_to_tool_file_cmd+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   #assume ordinary cross tools, or native build.
6501 lt_cv_to_tool_file_cmd=func_convert_file_noop
6502 case $host in
6503   *-*-mingw* )
6504     case $build in
6505       *-*-mingw* ) # actually msys
6506         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6507         ;;
6508     esac
6509     ;;
6510 esac
6511
6512 fi
6513
6514 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6516 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6517
6518
6519
6520
6521
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6523 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6524 if ${lt_cv_ld_reload_flag+:} false; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   lt_cv_ld_reload_flag='-r'
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6530 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6531 reload_flag=$lt_cv_ld_reload_flag
6532 case $reload_flag in
6533 "" | " "*) ;;
6534 *) reload_flag=" $reload_flag" ;;
6535 esac
6536 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6537 case $host_os in
6538   cygwin* | mingw* | pw32* | cegcc*)
6539     if test yes != "$GCC"; then
6540       reload_cmds=false
6541     fi
6542     ;;
6543   darwin*)
6544     if test yes = "$GCC"; then
6545       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6546     else
6547       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6548     fi
6549     ;;
6550 esac
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560 if test -n "$ac_tool_prefix"; then
6561   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_OBJDUMP+:} false; then :
6566   $as_echo_n "(cached) " >&6
6567 else
6568   if test -n "$OBJDUMP"; then
6569   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576     for ac_exec_ext in '' $ac_executable_extensions; do
6577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580     break 2
6581   fi
6582 done
6583   done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 OBJDUMP=$ac_cv_prog_OBJDUMP
6589 if test -n "$OBJDUMP"; then
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6591 $as_echo "$OBJDUMP" >&6; }
6592 else
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_OBJDUMP"; then
6600   ac_ct_OBJDUMP=$OBJDUMP
6601   # Extract the first word of "objdump", so it can be a program name with args.
6602 set dummy objdump; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608   if test -n "$ac_ct_OBJDUMP"; then
6609   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616     for ac_exec_ext in '' $ac_executable_extensions; do
6617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623   done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6629 if test -n "$ac_ct_OBJDUMP"; then
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6631 $as_echo "$ac_ct_OBJDUMP" >&6; }
6632 else
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637   if test "x$ac_ct_OBJDUMP" = x; then
6638     OBJDUMP="false"
6639   else
6640     case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646     OBJDUMP=$ac_ct_OBJDUMP
6647   fi
6648 else
6649   OBJDUMP="$ac_cv_prog_OBJDUMP"
6650 fi
6651
6652 test -z "$OBJDUMP" && OBJDUMP=objdump
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6663 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6664 if ${lt_cv_deplibs_check_method+:} false; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   lt_cv_file_magic_cmd='$MAGIC_CMD'
6668 lt_cv_file_magic_test_file=
6669 lt_cv_deplibs_check_method='unknown'
6670 # Need to set the preceding variable on all platforms that support
6671 # interlibrary dependencies.
6672 # 'none' -- dependencies not supported.
6673 # 'unknown' -- same as none, but documents that we really don't know.
6674 # 'pass_all' -- all dependencies passed with no checks.
6675 # 'test_compile' -- check by making test program.
6676 # 'file_magic [[regex]]' -- check by looking for files in library path
6677 # that responds to the $file_magic_cmd with a given extended regex.
6678 # If you have 'file' or equivalent on your system and you're not sure
6679 # whether 'pass_all' will *always* work, you probably want this one.
6680
6681 case $host_os in
6682 aix[4-9]*)
6683   lt_cv_deplibs_check_method=pass_all
6684   ;;
6685
6686 beos*)
6687   lt_cv_deplibs_check_method=pass_all
6688   ;;
6689
6690 bsdi[45]*)
6691   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6692   lt_cv_file_magic_cmd='/usr/bin/file -L'
6693   lt_cv_file_magic_test_file=/shlib/libc.so
6694   ;;
6695
6696 cygwin*)
6697   # func_win32_libid is a shell function defined in ltmain.sh
6698   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6699   lt_cv_file_magic_cmd='func_win32_libid'
6700   ;;
6701
6702 mingw* | pw32*)
6703   # Base MSYS/MinGW do not provide the 'file' command needed by
6704   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6705   # unless we find 'file', for example because we are cross-compiling.
6706   if ( file / ) >/dev/null 2>&1; then
6707     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6708     lt_cv_file_magic_cmd='func_win32_libid'
6709   else
6710     # Keep this pattern in sync with the one in func_win32_libid.
6711     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6712     lt_cv_file_magic_cmd='$OBJDUMP -f'
6713   fi
6714   ;;
6715
6716 cegcc*)
6717   # use the weaker test based on 'objdump'. See mingw*.
6718   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6719   lt_cv_file_magic_cmd='$OBJDUMP -f'
6720   ;;
6721
6722 darwin* | rhapsody*)
6723   lt_cv_deplibs_check_method=pass_all
6724   ;;
6725
6726 freebsd* | dragonfly*)
6727   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6728     case $host_cpu in
6729     i*86 )
6730       # Not sure whether the presence of OpenBSD here was a mistake.
6731       # Let's accept both of them until this is cleared up.
6732       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6733       lt_cv_file_magic_cmd=/usr/bin/file
6734       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6735       ;;
6736     esac
6737   else
6738     lt_cv_deplibs_check_method=pass_all
6739   fi
6740   ;;
6741
6742 haiku*)
6743   lt_cv_deplibs_check_method=pass_all
6744   ;;
6745
6746 hpux10.20* | hpux11*)
6747   lt_cv_file_magic_cmd=/usr/bin/file
6748   case $host_cpu in
6749   ia64*)
6750     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6751     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6752     ;;
6753   hppa*64*)
6754     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]'
6755     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6756     ;;
6757   *)
6758     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6759     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6760     ;;
6761   esac
6762   ;;
6763
6764 interix[3-9]*)
6765   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6766   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6767   ;;
6768
6769 irix5* | irix6* | nonstopux*)
6770   case $LD in
6771   *-32|*"-32 ") libmagic=32-bit;;
6772   *-n32|*"-n32 ") libmagic=N32;;
6773   *-64|*"-64 ") libmagic=64-bit;;
6774   *) libmagic=never-match;;
6775   esac
6776   lt_cv_deplibs_check_method=pass_all
6777   ;;
6778
6779 # This must be glibc/ELF.
6780 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6781   lt_cv_deplibs_check_method=pass_all
6782   ;;
6783
6784 netbsd*)
6785   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6786     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6787   else
6788     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6789   fi
6790   ;;
6791
6792 newos6*)
6793   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6794   lt_cv_file_magic_cmd=/usr/bin/file
6795   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6796   ;;
6797
6798 *nto* | *qnx*)
6799   lt_cv_deplibs_check_method=pass_all
6800   ;;
6801
6802 openbsd* | bitrig*)
6803   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6804     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6805   else
6806     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6807   fi
6808   ;;
6809
6810 osf3* | osf4* | osf5*)
6811   lt_cv_deplibs_check_method=pass_all
6812   ;;
6813
6814 rdos*)
6815   lt_cv_deplibs_check_method=pass_all
6816   ;;
6817
6818 solaris*)
6819   lt_cv_deplibs_check_method=pass_all
6820   ;;
6821
6822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6823   lt_cv_deplibs_check_method=pass_all
6824   ;;
6825
6826 sysv4 | sysv4.3*)
6827   case $host_vendor in
6828   motorola)
6829     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]'
6830     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6831     ;;
6832   ncr)
6833     lt_cv_deplibs_check_method=pass_all
6834     ;;
6835   sequent)
6836     lt_cv_file_magic_cmd='/bin/file'
6837     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6838     ;;
6839   sni)
6840     lt_cv_file_magic_cmd='/bin/file'
6841     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6842     lt_cv_file_magic_test_file=/lib/libc.so
6843     ;;
6844   siemens)
6845     lt_cv_deplibs_check_method=pass_all
6846     ;;
6847   pc)
6848     lt_cv_deplibs_check_method=pass_all
6849     ;;
6850   esac
6851   ;;
6852
6853 tpf*)
6854   lt_cv_deplibs_check_method=pass_all
6855   ;;
6856 os2*)
6857   lt_cv_deplibs_check_method=pass_all
6858   ;;
6859 esac
6860
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6863 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6864
6865 file_magic_glob=
6866 want_nocaseglob=no
6867 if test "$build" = "$host"; then
6868   case $host_os in
6869   mingw* | pw32*)
6870     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6871       want_nocaseglob=yes
6872     else
6873       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6874     fi
6875     ;;
6876   esac
6877 fi
6878
6879 file_magic_cmd=$lt_cv_file_magic_cmd
6880 deplibs_check_method=$lt_cv_deplibs_check_method
6881 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904 if test -n "$ac_tool_prefix"; then
6905   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6906 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_prog_DLLTOOL+:} false; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   if test -n "$DLLTOOL"; then
6913   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920     for ac_exec_ext in '' $ac_executable_extensions; do
6921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927   done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 DLLTOOL=$ac_cv_prog_DLLTOOL
6933 if test -n "$DLLTOOL"; then
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6935 $as_echo "$DLLTOOL" >&6; }
6936 else
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6940
6941
6942 fi
6943 if test -z "$ac_cv_prog_DLLTOOL"; then
6944   ac_ct_DLLTOOL=$DLLTOOL
6945   # Extract the first word of "dlltool", so it can be a program name with args.
6946 set dummy dlltool; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   if test -n "$ac_ct_DLLTOOL"; then
6953   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960     for ac_exec_ext in '' $ac_executable_extensions; do
6961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967   done
6968 IFS=$as_save_IFS
6969
6970 fi
6971 fi
6972 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6973 if test -n "$ac_ct_DLLTOOL"; then
6974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6975 $as_echo "$ac_ct_DLLTOOL" >&6; }
6976 else
6977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6979 fi
6980
6981   if test "x$ac_ct_DLLTOOL" = x; then
6982     DLLTOOL="false"
6983   else
6984     case $cross_compiling:$ac_tool_warned in
6985 yes:)
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6988 ac_tool_warned=yes ;;
6989 esac
6990     DLLTOOL=$ac_ct_DLLTOOL
6991   fi
6992 else
6993   DLLTOOL="$ac_cv_prog_DLLTOOL"
6994 fi
6995
6996 test -z "$DLLTOOL" && DLLTOOL=dlltool
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7008 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7009 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7010   $as_echo_n "(cached) " >&6
7011 else
7012   lt_cv_sharedlib_from_linklib_cmd='unknown'
7013
7014 case $host_os in
7015 cygwin* | mingw* | pw32* | cegcc*)
7016   # two different shell functions defined in ltmain.sh;
7017   # decide which one to use based on capabilities of $DLLTOOL
7018   case `$DLLTOOL --help 2>&1` in
7019   *--identify-strict*)
7020     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7021     ;;
7022   *)
7023     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7024     ;;
7025   esac
7026   ;;
7027 *)
7028   # fallback: assume linklib IS sharedlib
7029   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7030   ;;
7031 esac
7032
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7035 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7036 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7037 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7038
7039
7040
7041
7042
7043
7044
7045 if test -n "$ac_tool_prefix"; then
7046   for ac_prog in ar
7047   do
7048     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_AR+:} false; then :
7053   $as_echo_n "(cached) " >&6
7054 else
7055   if test -n "$AR"; then
7056   ac_cv_prog_AR="$AR" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063     for ac_exec_ext in '' $ac_executable_extensions; do
7064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070   done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 AR=$ac_cv_prog_AR
7076 if test -n "$AR"; then
7077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7078 $as_echo "$AR" >&6; }
7079 else
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085     test -n "$AR" && break
7086   done
7087 fi
7088 if test -z "$AR"; then
7089   ac_ct_AR=$AR
7090   for ac_prog in ar
7091 do
7092   # Extract the first word of "$ac_prog", so it can be a program name with args.
7093 set dummy $ac_prog; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   if test -n "$ac_ct_AR"; then
7100   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107     for ac_exec_ext in '' $ac_executable_extensions; do
7108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109     ac_cv_prog_ac_ct_AR="$ac_prog"
7110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114   done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7120 if test -n "$ac_ct_AR"; then
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7122 $as_echo "$ac_ct_AR" >&6; }
7123 else
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127
7128
7129   test -n "$ac_ct_AR" && break
7130 done
7131
7132   if test "x$ac_ct_AR" = x; then
7133     AR="false"
7134   else
7135     case $cross_compiling:$ac_tool_warned in
7136 yes:)
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141     AR=$ac_ct_AR
7142   fi
7143 fi
7144
7145 : ${AR=ar}
7146 : ${AR_FLAGS=cru}
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7159 $as_echo_n "checking for archiver @FILE support... " >&6; }
7160 if ${lt_cv_ar_at_file+:} false; then :
7161   $as_echo_n "(cached) " >&6
7162 else
7163   lt_cv_ar_at_file=no
7164    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h.  */
7166
7167 int
7168 main ()
7169 {
7170
7171   ;
7172   return 0;
7173 }
7174 _ACEOF
7175 if ac_fn_c_try_compile "$LINENO"; then :
7176   echo conftest.$ac_objext > conftest.lst
7177       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7178       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7179   (eval $lt_ar_try) 2>&5
7180   ac_status=$?
7181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182   test $ac_status = 0; }
7183       if test 0 -eq "$ac_status"; then
7184         # Ensure the archiver fails upon bogus file names.
7185         rm -f conftest.$ac_objext libconftest.a
7186         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7187   (eval $lt_ar_try) 2>&5
7188   ac_status=$?
7189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7190   test $ac_status = 0; }
7191         if test 0 -ne "$ac_status"; then
7192           lt_cv_ar_at_file=@
7193         fi
7194       fi
7195       rm -f conftest.* libconftest.a
7196
7197 fi
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199
7200 fi
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7202 $as_echo "$lt_cv_ar_at_file" >&6; }
7203
7204 if test no = "$lt_cv_ar_at_file"; then
7205   archiver_list_spec=
7206 else
7207   archiver_list_spec=$lt_cv_ar_at_file
7208 fi
7209
7210
7211
7212
7213
7214
7215
7216 if test -n "$ac_tool_prefix"; then
7217   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}strip; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_STRIP+:} false; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   if test -n "$STRIP"; then
7225   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7234     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 STRIP=$ac_cv_prog_STRIP
7245 if test -n "$STRIP"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7247 $as_echo "$STRIP" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 fi
7255 if test -z "$ac_cv_prog_STRIP"; then
7256   ac_ct_STRIP=$STRIP
7257   # Extract the first word of "strip", so it can be a program name with args.
7258 set dummy strip; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   if test -n "$ac_ct_STRIP"; then
7265   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274     ac_cv_prog_ac_ct_STRIP="strip"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7285 if test -n "$ac_ct_STRIP"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7287 $as_echo "$ac_ct_STRIP" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293   if test "x$ac_ct_STRIP" = x; then
7294     STRIP=":"
7295   else
7296     case $cross_compiling:$ac_tool_warned in
7297 yes:)
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7301 esac
7302     STRIP=$ac_ct_STRIP
7303   fi
7304 else
7305   STRIP="$ac_cv_prog_STRIP"
7306 fi
7307
7308 test -z "$STRIP" && STRIP=:
7309
7310
7311
7312
7313
7314
7315 if test -n "$ac_tool_prefix"; then
7316   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_RANLIB+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   if test -n "$RANLIB"; then
7324   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331     for ac_exec_ext in '' $ac_executable_extensions; do
7332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338   done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 RANLIB=$ac_cv_prog_RANLIB
7344 if test -n "$RANLIB"; then
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7346 $as_echo "$RANLIB" >&6; }
7347 else
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 fi
7351
7352
7353 fi
7354 if test -z "$ac_cv_prog_RANLIB"; then
7355   ac_ct_RANLIB=$RANLIB
7356   # Extract the first word of "ranlib", so it can be a program name with args.
7357 set dummy ranlib; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   if test -n "$ac_ct_RANLIB"; then
7364   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371     for ac_exec_ext in '' $ac_executable_extensions; do
7372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373     ac_cv_prog_ac_ct_RANLIB="ranlib"
7374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378   done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7384 if test -n "$ac_ct_RANLIB"; then
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7386 $as_echo "$ac_ct_RANLIB" >&6; }
7387 else
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 fi
7391
7392   if test "x$ac_ct_RANLIB" = x; then
7393     RANLIB=":"
7394   else
7395     case $cross_compiling:$ac_tool_warned in
7396 yes:)
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7400 esac
7401     RANLIB=$ac_ct_RANLIB
7402   fi
7403 else
7404   RANLIB="$ac_cv_prog_RANLIB"
7405 fi
7406
7407 test -z "$RANLIB" && RANLIB=:
7408
7409
7410
7411
7412
7413
7414 # Determine commands to create old-style static archives.
7415 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7416 old_postinstall_cmds='chmod 644 $oldlib'
7417 old_postuninstall_cmds=
7418
7419 if test -n "$RANLIB"; then
7420   case $host_os in
7421   bitrig* | openbsd*)
7422     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7423     ;;
7424   *)
7425     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7426     ;;
7427   esac
7428   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7429 fi
7430
7431 case $host_os in
7432   darwin*)
7433     lock_old_archive_extraction=yes ;;
7434   *)
7435     lock_old_archive_extraction=no ;;
7436 esac
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476 # If no C compiler was specified, use CC.
7477 LTCC=${LTCC-"$CC"}
7478
7479 # If no C compiler flags were specified, use CFLAGS.
7480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7481
7482 # Allow CC to be a program name with arguments.
7483 compiler=$CC
7484
7485
7486 # Check for command to grab the raw symbol name followed by C symbol from nm.
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7488 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7489 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492
7493 # These are sane defaults that work on at least a few old systems.
7494 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7495
7496 # Character class describing NM global symbol codes.
7497 symcode='[BCDEGRST]'
7498
7499 # Regexp to match symbols that can be accessed directly from C.
7500 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7501
7502 # Define system-specific variables.
7503 case $host_os in
7504 aix*)
7505   symcode='[BCDT]'
7506   ;;
7507 cygwin* | mingw* | pw32* | cegcc*)
7508   symcode='[ABCDGISTW]'
7509   ;;
7510 hpux*)
7511   if test ia64 = "$host_cpu"; then
7512     symcode='[ABCDEGRST]'
7513   fi
7514   ;;
7515 irix* | nonstopux*)
7516   symcode='[BCDEGRST]'
7517   ;;
7518 osf*)
7519   symcode='[BCDEGQRST]'
7520   ;;
7521 solaris*)
7522   symcode='[BDRT]'
7523   ;;
7524 sco3.2v5*)
7525   symcode='[DT]'
7526   ;;
7527 sysv4.2uw2*)
7528   symcode='[DT]'
7529   ;;
7530 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7531   symcode='[ABDT]'
7532   ;;
7533 sysv4)
7534   symcode='[DFNSTU]'
7535   ;;
7536 esac
7537
7538 # If we're using GNU nm, then use its standard symbol codes.
7539 case `$NM -V 2>&1` in
7540 *GNU* | *'with BFD'*)
7541   symcode='[ABCDGIRSTW]' ;;
7542 esac
7543
7544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7545   # Gets list of data symbols to import.
7546   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7547   # Adjust the below global symbol transforms to fixup imported variables.
7548   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7549   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7550   lt_c_name_lib_hook="\
7551   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7552   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7553 else
7554   # Disable hooks by default.
7555   lt_cv_sys_global_symbol_to_import=
7556   lt_cdecl_hook=
7557   lt_c_name_hook=
7558   lt_c_name_lib_hook=
7559 fi
7560
7561 # Transform an extracted symbol line into a proper C declaration.
7562 # Some systems (esp. on ia64) link data and code symbols differently,
7563 # so use this general approach.
7564 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7565 $lt_cdecl_hook\
7566 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7567 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7568
7569 # Transform an extracted symbol line into symbol name and symbol address
7570 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7571 $lt_c_name_hook\
7572 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7573 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7574
7575 # Transform an extracted symbol line into symbol name with lib prefix and
7576 # symbol address.
7577 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7578 $lt_c_name_lib_hook\
7579 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7580 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7581 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7582
7583 # Handle CRLF in mingw tool chain
7584 opt_cr=
7585 case $build_os in
7586 mingw*)
7587   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7588   ;;
7589 esac
7590
7591 # Try without a prefix underscore, then with it.
7592 for ac_symprfx in "" "_"; do
7593
7594   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7595   symxfrm="\\1 $ac_symprfx\\2 \\2"
7596
7597   # Write the raw and C identifiers.
7598   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7599     # Fake it for dumpbin and say T for any non-static function,
7600     # D for any global variable and I for any imported variable.
7601     # Also find C++ and __fastcall symbols from MSVC++,
7602     # which start with @ or ?.
7603     lt_cv_sys_global_symbol_pipe="$AWK '"\
7604 "     {last_section=section; section=\$ 3};"\
7605 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7606 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7607 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7608 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7609 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7610 "     \$ 0!~/External *\|/{next};"\
7611 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7612 "     {if(hide[section]) next};"\
7613 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7614 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7615 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7616 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7617 "     ' prfx=^$ac_symprfx"
7618   else
7619     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7620   fi
7621   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7622
7623   # Check to see that the pipe works correctly.
7624   pipe_works=no
7625
7626   rm -f conftest*
7627   cat > conftest.$ac_ext <<_LT_EOF
7628 #ifdef __cplusplus
7629 extern "C" {
7630 #endif
7631 char nm_test_var;
7632 void nm_test_func(void);
7633 void nm_test_func(void){}
7634 #ifdef __cplusplus
7635 }
7636 #endif
7637 int main(){nm_test_var='a';nm_test_func();return(0);}
7638 _LT_EOF
7639
7640   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7641   (eval $ac_compile) 2>&5
7642   ac_status=$?
7643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644   test $ac_status = 0; }; then
7645     # Now try to grab the symbols.
7646     nlist=conftest.nm
7647     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7648   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7649   ac_status=$?
7650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7651   test $ac_status = 0; } && test -s "$nlist"; then
7652       # Try sorting and uniquifying the output.
7653       if sort "$nlist" | uniq > "$nlist"T; then
7654         mv -f "$nlist"T "$nlist"
7655       else
7656         rm -f "$nlist"T
7657       fi
7658
7659       # Make sure that we snagged all the symbols we need.
7660       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7661         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7662           cat <<_LT_EOF > conftest.$ac_ext
7663 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7664 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7665 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7666    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7667 # define LT_DLSYM_CONST
7668 #elif defined __osf__
7669 /* This system does not cope well with relocations in const data.  */
7670 # define LT_DLSYM_CONST
7671 #else
7672 # define LT_DLSYM_CONST const
7673 #endif
7674
7675 #ifdef __cplusplus
7676 extern "C" {
7677 #endif
7678
7679 _LT_EOF
7680           # Now generate the symbol file.
7681           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7682
7683           cat <<_LT_EOF >> conftest.$ac_ext
7684
7685 /* The mapping between symbol names and symbols.  */
7686 LT_DLSYM_CONST struct {
7687   const char *name;
7688   void       *address;
7689 }
7690 lt__PROGRAM__LTX_preloaded_symbols[] =
7691 {
7692   { "@PROGRAM@", (void *) 0 },
7693 _LT_EOF
7694           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7695           cat <<\_LT_EOF >> conftest.$ac_ext
7696   {0, (void *) 0}
7697 };
7698
7699 /* This works around a problem in FreeBSD linker */
7700 #ifdef FREEBSD_WORKAROUND
7701 static const void *lt_preloaded_setup() {
7702   return lt__PROGRAM__LTX_preloaded_symbols;
7703 }
7704 #endif
7705
7706 #ifdef __cplusplus
7707 }
7708 #endif
7709 _LT_EOF
7710           # Now try linking the two files.
7711           mv conftest.$ac_objext conftstm.$ac_objext
7712           lt_globsym_save_LIBS=$LIBS
7713           lt_globsym_save_CFLAGS=$CFLAGS
7714           LIBS=conftstm.$ac_objext
7715           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7716           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7717   (eval $ac_link) 2>&5
7718   ac_status=$?
7719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7721             pipe_works=yes
7722           fi
7723           LIBS=$lt_globsym_save_LIBS
7724           CFLAGS=$lt_globsym_save_CFLAGS
7725         else
7726           echo "cannot find nm_test_func in $nlist" >&5
7727         fi
7728       else
7729         echo "cannot find nm_test_var in $nlist" >&5
7730       fi
7731     else
7732       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7733     fi
7734   else
7735     echo "$progname: failed program was:" >&5
7736     cat conftest.$ac_ext >&5
7737   fi
7738   rm -rf conftest* conftst*
7739
7740   # Do not use the global_symbol_pipe unless it works.
7741   if test yes = "$pipe_works"; then
7742     break
7743   else
7744     lt_cv_sys_global_symbol_pipe=
7745   fi
7746 done
7747
7748 fi
7749
7750 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7751   lt_cv_sys_global_symbol_to_cdecl=
7752 fi
7753 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7755 $as_echo "failed" >&6; }
7756 else
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7758 $as_echo "ok" >&6; }
7759 fi
7760
7761 # Response file support.
7762 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7763   nm_file_list_spec='@'
7764 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7765   nm_file_list_spec='@'
7766 fi
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7805 $as_echo_n "checking for sysroot... " >&6; }
7806
7807 # Check whether --with-sysroot was given.
7808 if test "${with_sysroot+set}" = set; then :
7809   withval=$with_sysroot;
7810 else
7811   with_sysroot=no
7812 fi
7813
7814
7815 lt_sysroot=
7816 case $with_sysroot in #(
7817  yes)
7818    if test yes = "$GCC"; then
7819      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7820    fi
7821    ;; #(
7822  /*)
7823    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7824    ;; #(
7825  no|'')
7826    ;; #(
7827  *)
7828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7829 $as_echo "$with_sysroot" >&6; }
7830    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7831    ;;
7832 esac
7833
7834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7835 $as_echo "${lt_sysroot:-no}" >&6; }
7836
7837
7838
7839
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7842 $as_echo_n "checking for a working dd... " >&6; }
7843 if ${ac_cv_path_lt_DD+:} false; then :
7844   $as_echo_n "(cached) " >&6
7845 else
7846   printf 0123456789abcdef0123456789abcdef >conftest.i
7847 cat conftest.i conftest.i >conftest2.i
7848 : ${lt_DD:=$DD}
7849 if test -z "$lt_DD"; then
7850   ac_path_lt_DD_found=false
7851   # Loop through the user's path and test for each of PROGNAME-LIST
7852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855   IFS=$as_save_IFS
7856   test -z "$as_dir" && as_dir=.
7857     for ac_prog in dd; do
7858     for ac_exec_ext in '' $ac_executable_extensions; do
7859       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7860       as_fn_executable_p "$ac_path_lt_DD" || continue
7861 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7862   cmp -s conftest.i conftest.out \
7863   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7864 fi
7865       $ac_path_lt_DD_found && break 3
7866     done
7867   done
7868   done
7869 IFS=$as_save_IFS
7870   if test -z "$ac_cv_path_lt_DD"; then
7871     :
7872   fi
7873 else
7874   ac_cv_path_lt_DD=$lt_DD
7875 fi
7876
7877 rm -f conftest.i conftest2.i conftest.out
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7880 $as_echo "$ac_cv_path_lt_DD" >&6; }
7881
7882
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7884 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7885 if ${lt_cv_truncate_bin+:} false; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888   printf 0123456789abcdef0123456789abcdef >conftest.i
7889 cat conftest.i conftest.i >conftest2.i
7890 lt_cv_truncate_bin=
7891 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7892   cmp -s conftest.i conftest.out \
7893   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7894 fi
7895 rm -f conftest.i conftest2.i conftest.out
7896 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7897 fi
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7899 $as_echo "$lt_cv_truncate_bin" >&6; }
7900
7901
7902
7903
7904
7905
7906
7907 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7908 func_cc_basename ()
7909 {
7910     for cc_temp in $*""; do
7911       case $cc_temp in
7912         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7914         \-*) ;;
7915         *) break;;
7916       esac
7917     done
7918     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7919 }
7920
7921 # Check whether --enable-libtool-lock was given.
7922 if test "${enable_libtool_lock+set}" = set; then :
7923   enableval=$enable_libtool_lock;
7924 fi
7925
7926 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7927
7928 # Some flags need to be propagated to the compiler or linker for good
7929 # libtool support.
7930 case $host in
7931 ia64-*-hpux*)
7932   # Find out what ABI is being produced by ac_compile, and set mode
7933   # options accordingly.
7934   echo 'int i;' > conftest.$ac_ext
7935   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7936   (eval $ac_compile) 2>&5
7937   ac_status=$?
7938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939   test $ac_status = 0; }; then
7940     case `/usr/bin/file conftest.$ac_objext` in
7941       *ELF-32*)
7942         HPUX_IA64_MODE=32
7943         ;;
7944       *ELF-64*)
7945         HPUX_IA64_MODE=64
7946         ;;
7947     esac
7948   fi
7949   rm -rf conftest*
7950   ;;
7951 *-*-irix6*)
7952   # Find out what ABI is being produced by ac_compile, and set linker
7953   # options accordingly.
7954   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7955   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7956   (eval $ac_compile) 2>&5
7957   ac_status=$?
7958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959   test $ac_status = 0; }; then
7960     if test yes = "$lt_cv_prog_gnu_ld"; then
7961       case `/usr/bin/file conftest.$ac_objext` in
7962         *32-bit*)
7963           LD="${LD-ld} -melf32bsmip"
7964           ;;
7965         *N32*)
7966           LD="${LD-ld} -melf32bmipn32"
7967           ;;
7968         *64-bit*)
7969           LD="${LD-ld} -melf64bmip"
7970         ;;
7971       esac
7972     else
7973       case `/usr/bin/file conftest.$ac_objext` in
7974         *32-bit*)
7975           LD="${LD-ld} -32"
7976           ;;
7977         *N32*)
7978           LD="${LD-ld} -n32"
7979           ;;
7980         *64-bit*)
7981           LD="${LD-ld} -64"
7982           ;;
7983       esac
7984     fi
7985   fi
7986   rm -rf conftest*
7987   ;;
7988
7989 mips64*-*linux*)
7990   # Find out what ABI is being produced by ac_compile, and set linker
7991   # options accordingly.
7992   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7993   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7994   (eval $ac_compile) 2>&5
7995   ac_status=$?
7996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7997   test $ac_status = 0; }; then
7998     emul=elf
7999     case `/usr/bin/file conftest.$ac_objext` in
8000       *32-bit*)
8001         emul="${emul}32"
8002         ;;
8003       *64-bit*)
8004         emul="${emul}64"
8005         ;;
8006     esac
8007     case `/usr/bin/file conftest.$ac_objext` in
8008       *MSB*)
8009         emul="${emul}btsmip"
8010         ;;
8011       *LSB*)
8012         emul="${emul}ltsmip"
8013         ;;
8014     esac
8015     case `/usr/bin/file conftest.$ac_objext` in
8016       *N32*)
8017         emul="${emul}n32"
8018         ;;
8019     esac
8020     LD="${LD-ld} -m $emul"
8021   fi
8022   rm -rf conftest*
8023   ;;
8024
8025 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8026 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8027   # Find out what ABI is being produced by ac_compile, and set linker
8028   # options accordingly.  Note that the listed cases only cover the
8029   # situations where additional linker options are needed (such as when
8030   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8031   # vice versa); the common cases where no linker options are needed do
8032   # not appear in the list.
8033   echo 'int i;' > conftest.$ac_ext
8034   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8035   (eval $ac_compile) 2>&5
8036   ac_status=$?
8037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8038   test $ac_status = 0; }; then
8039     case `/usr/bin/file conftest.o` in
8040       *32-bit*)
8041         case $host in
8042           x86_64-*kfreebsd*-gnu)
8043             LD="${LD-ld} -m elf_i386_fbsd"
8044             ;;
8045           x86_64-*linux*)
8046             case `/usr/bin/file conftest.o` in
8047               *x86-64*)
8048                 LD="${LD-ld} -m elf32_x86_64"
8049                 ;;
8050               *)
8051                 LD="${LD-ld} -m elf_i386"
8052                 ;;
8053             esac
8054             ;;
8055           powerpc64le-*linux*)
8056             LD="${LD-ld} -m elf32lppclinux"
8057             ;;
8058           powerpc64-*linux*)
8059             LD="${LD-ld} -m elf32ppclinux"
8060             ;;
8061           s390x-*linux*)
8062             LD="${LD-ld} -m elf_s390"
8063             ;;
8064           sparc64-*linux*)
8065             LD="${LD-ld} -m elf32_sparc"
8066             ;;
8067         esac
8068         ;;
8069       *64-bit*)
8070         case $host in
8071           x86_64-*kfreebsd*-gnu)
8072             LD="${LD-ld} -m elf_x86_64_fbsd"
8073             ;;
8074           x86_64-*linux*)
8075             LD="${LD-ld} -m elf_x86_64"
8076             ;;
8077           powerpcle-*linux*)
8078             LD="${LD-ld} -m elf64lppc"
8079             ;;
8080           powerpc-*linux*)
8081             LD="${LD-ld} -m elf64ppc"
8082             ;;
8083           s390*-*linux*|s390*-*tpf*)
8084             LD="${LD-ld} -m elf64_s390"
8085             ;;
8086           sparc*-*linux*)
8087             LD="${LD-ld} -m elf64_sparc"
8088             ;;
8089         esac
8090         ;;
8091     esac
8092   fi
8093   rm -rf conftest*
8094   ;;
8095
8096 *-*-sco3.2v5*)
8097   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8098   SAVE_CFLAGS=$CFLAGS
8099   CFLAGS="$CFLAGS -belf"
8100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8101 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8102 if ${lt_cv_cc_needs_belf+:} false; then :
8103   $as_echo_n "(cached) " >&6
8104 else
8105   ac_ext=c
8106 ac_cpp='$CPP $CPPFLAGS'
8107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110
8111      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h.  */
8113
8114 int
8115 main ()
8116 {
8117
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"; then :
8123   lt_cv_cc_needs_belf=yes
8124 else
8125   lt_cv_cc_needs_belf=no
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext \
8128     conftest$ac_exeext conftest.$ac_ext
8129      ac_ext=c
8130 ac_cpp='$CPP $CPPFLAGS'
8131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8134
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8137 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8138   if test yes != "$lt_cv_cc_needs_belf"; then
8139     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8140     CFLAGS=$SAVE_CFLAGS
8141   fi
8142   ;;
8143 *-*solaris*)
8144   # Find out what ABI is being produced by ac_compile, and set linker
8145   # options accordingly.
8146   echo 'int i;' > conftest.$ac_ext
8147   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8148   (eval $ac_compile) 2>&5
8149   ac_status=$?
8150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8151   test $ac_status = 0; }; then
8152     case `/usr/bin/file conftest.o` in
8153     *64-bit*)
8154       case $lt_cv_prog_gnu_ld in
8155       yes*)
8156         case $host in
8157         i?86-*-solaris*|x86_64-*-solaris*)
8158           LD="${LD-ld} -m elf_x86_64"
8159           ;;
8160         sparc*-*-solaris*)
8161           LD="${LD-ld} -m elf64_sparc"
8162           ;;
8163         esac
8164         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8165         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8166           LD=${LD-ld}_sol2
8167         fi
8168         ;;
8169       *)
8170         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8171           LD="${LD-ld} -64"
8172         fi
8173         ;;
8174       esac
8175       ;;
8176     esac
8177   fi
8178   rm -rf conftest*
8179   ;;
8180 esac
8181
8182 need_locks=$enable_libtool_lock
8183
8184 if test -n "$ac_tool_prefix"; then
8185   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8186 set dummy ${ac_tool_prefix}mt; ac_word=$2
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188 $as_echo_n "checking for $ac_word... " >&6; }
8189 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192   if test -n "$MANIFEST_TOOL"; then
8193   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8194 else
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8197 do
8198   IFS=$as_save_IFS
8199   test -z "$as_dir" && as_dir=.
8200     for ac_exec_ext in '' $ac_executable_extensions; do
8201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204     break 2
8205   fi
8206 done
8207   done
8208 IFS=$as_save_IFS
8209
8210 fi
8211 fi
8212 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8213 if test -n "$MANIFEST_TOOL"; then
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8215 $as_echo "$MANIFEST_TOOL" >&6; }
8216 else
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8219 fi
8220
8221
8222 fi
8223 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8224   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8225   # Extract the first word of "mt", so it can be a program name with args.
8226 set dummy mt; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   if test -n "$ac_ct_MANIFEST_TOOL"; then
8233   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8234 else
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238   IFS=$as_save_IFS
8239   test -z "$as_dir" && as_dir=.
8240     for ac_exec_ext in '' $ac_executable_extensions; do
8241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244     break 2
8245   fi
8246 done
8247   done
8248 IFS=$as_save_IFS
8249
8250 fi
8251 fi
8252 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8253 if test -n "$ac_ct_MANIFEST_TOOL"; then
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8255 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8256 else
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260
8261   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8262     MANIFEST_TOOL=":"
8263   else
8264     case $cross_compiling:$ac_tool_warned in
8265 yes:)
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8268 ac_tool_warned=yes ;;
8269 esac
8270     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8271   fi
8272 else
8273   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8274 fi
8275
8276 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8278 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8279 if ${lt_cv_path_mainfest_tool+:} false; then :
8280   $as_echo_n "(cached) " >&6
8281 else
8282   lt_cv_path_mainfest_tool=no
8283   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8284   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8285   cat conftest.err >&5
8286   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8287     lt_cv_path_mainfest_tool=yes
8288   fi
8289   rm -f conftest*
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8292 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8293 if test yes != "$lt_cv_path_mainfest_tool"; then
8294   MANIFEST_TOOL=:
8295 fi
8296
8297
8298
8299
8300
8301
8302   case $host_os in
8303     rhapsody* | darwin*)
8304     if test -n "$ac_tool_prefix"; then
8305   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8306 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   if test -n "$DSYMUTIL"; then
8313   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320     for ac_exec_ext in '' $ac_executable_extensions; do
8321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327   done
8328 IFS=$as_save_IFS
8329
8330 fi
8331 fi
8332 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8333 if test -n "$DSYMUTIL"; then
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8335 $as_echo "$DSYMUTIL" >&6; }
8336 else
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 fi
8340
8341
8342 fi
8343 if test -z "$ac_cv_prog_DSYMUTIL"; then
8344   ac_ct_DSYMUTIL=$DSYMUTIL
8345   # Extract the first word of "dsymutil", so it can be a program name with args.
8346 set dummy dsymutil; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8350   $as_echo_n "(cached) " >&6
8351 else
8352   if test -n "$ac_ct_DSYMUTIL"; then
8353   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358   IFS=$as_save_IFS
8359   test -z "$as_dir" && as_dir=.
8360     for ac_exec_ext in '' $ac_executable_extensions; do
8361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364     break 2
8365   fi
8366 done
8367   done
8368 IFS=$as_save_IFS
8369
8370 fi
8371 fi
8372 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8373 if test -n "$ac_ct_DSYMUTIL"; then
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8375 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8376 else
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8379 fi
8380
8381   if test "x$ac_ct_DSYMUTIL" = x; then
8382     DSYMUTIL=":"
8383   else
8384     case $cross_compiling:$ac_tool_warned in
8385 yes:)
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8388 ac_tool_warned=yes ;;
8389 esac
8390     DSYMUTIL=$ac_ct_DSYMUTIL
8391   fi
8392 else
8393   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8394 fi
8395
8396     if test -n "$ac_tool_prefix"; then
8397   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8398 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_NMEDIT+:} false; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   if test -n "$NMEDIT"; then
8405   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412     for ac_exec_ext in '' $ac_executable_extensions; do
8413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419   done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 NMEDIT=$ac_cv_prog_NMEDIT
8425 if test -n "$NMEDIT"; then
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8427 $as_echo "$NMEDIT" >&6; }
8428 else
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433
8434 fi
8435 if test -z "$ac_cv_prog_NMEDIT"; then
8436   ac_ct_NMEDIT=$NMEDIT
8437   # Extract the first word of "nmedit", so it can be a program name with args.
8438 set dummy nmedit; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8442   $as_echo_n "(cached) " >&6
8443 else
8444   if test -n "$ac_ct_NMEDIT"; then
8445   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450   IFS=$as_save_IFS
8451   test -z "$as_dir" && as_dir=.
8452     for ac_exec_ext in '' $ac_executable_extensions; do
8453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456     break 2
8457   fi
8458 done
8459   done
8460 IFS=$as_save_IFS
8461
8462 fi
8463 fi
8464 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8465 if test -n "$ac_ct_NMEDIT"; then
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8467 $as_echo "$ac_ct_NMEDIT" >&6; }
8468 else
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 fi
8472
8473   if test "x$ac_ct_NMEDIT" = x; then
8474     NMEDIT=":"
8475   else
8476     case $cross_compiling:$ac_tool_warned in
8477 yes:)
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8481 esac
8482     NMEDIT=$ac_ct_NMEDIT
8483   fi
8484 else
8485   NMEDIT="$ac_cv_prog_NMEDIT"
8486 fi
8487
8488     if test -n "$ac_tool_prefix"; then
8489   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8490 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_LIPO+:} false; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   if test -n "$LIPO"; then
8497   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502   IFS=$as_save_IFS
8503   test -z "$as_dir" && as_dir=.
8504     for ac_exec_ext in '' $ac_executable_extensions; do
8505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508     break 2
8509   fi
8510 done
8511   done
8512 IFS=$as_save_IFS
8513
8514 fi
8515 fi
8516 LIPO=$ac_cv_prog_LIPO
8517 if test -n "$LIPO"; then
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8519 $as_echo "$LIPO" >&6; }
8520 else
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8523 fi
8524
8525
8526 fi
8527 if test -z "$ac_cv_prog_LIPO"; then
8528   ac_ct_LIPO=$LIPO
8529   # Extract the first word of "lipo", so it can be a program name with args.
8530 set dummy lipo; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   if test -n "$ac_ct_LIPO"; then
8537   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542   IFS=$as_save_IFS
8543   test -z "$as_dir" && as_dir=.
8544     for ac_exec_ext in '' $ac_executable_extensions; do
8545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546     ac_cv_prog_ac_ct_LIPO="lipo"
8547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548     break 2
8549   fi
8550 done
8551   done
8552 IFS=$as_save_IFS
8553
8554 fi
8555 fi
8556 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8557 if test -n "$ac_ct_LIPO"; then
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8559 $as_echo "$ac_ct_LIPO" >&6; }
8560 else
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8563 fi
8564
8565   if test "x$ac_ct_LIPO" = x; then
8566     LIPO=":"
8567   else
8568     case $cross_compiling:$ac_tool_warned in
8569 yes:)
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572 ac_tool_warned=yes ;;
8573 esac
8574     LIPO=$ac_ct_LIPO
8575   fi
8576 else
8577   LIPO="$ac_cv_prog_LIPO"
8578 fi
8579
8580     if test -n "$ac_tool_prefix"; then
8581   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8582 set dummy ${ac_tool_prefix}otool; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if ${ac_cv_prog_OTOOL+:} false; then :
8586   $as_echo_n "(cached) " >&6
8587 else
8588   if test -n "$OTOOL"; then
8589   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594   IFS=$as_save_IFS
8595   test -z "$as_dir" && as_dir=.
8596     for ac_exec_ext in '' $ac_executable_extensions; do
8597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600     break 2
8601   fi
8602 done
8603   done
8604 IFS=$as_save_IFS
8605
8606 fi
8607 fi
8608 OTOOL=$ac_cv_prog_OTOOL
8609 if test -n "$OTOOL"; then
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8611 $as_echo "$OTOOL" >&6; }
8612 else
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617
8618 fi
8619 if test -z "$ac_cv_prog_OTOOL"; then
8620   ac_ct_OTOOL=$OTOOL
8621   # Extract the first word of "otool", so it can be a program name with args.
8622 set dummy otool; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8626   $as_echo_n "(cached) " >&6
8627 else
8628   if test -n "$ac_ct_OTOOL"; then
8629   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8630 else
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 for as_dir in $PATH
8633 do
8634   IFS=$as_save_IFS
8635   test -z "$as_dir" && as_dir=.
8636     for ac_exec_ext in '' $ac_executable_extensions; do
8637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638     ac_cv_prog_ac_ct_OTOOL="otool"
8639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8640     break 2
8641   fi
8642 done
8643   done
8644 IFS=$as_save_IFS
8645
8646 fi
8647 fi
8648 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8649 if test -n "$ac_ct_OTOOL"; then
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8651 $as_echo "$ac_ct_OTOOL" >&6; }
8652 else
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655 fi
8656
8657   if test "x$ac_ct_OTOOL" = x; then
8658     OTOOL=":"
8659   else
8660     case $cross_compiling:$ac_tool_warned in
8661 yes:)
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8664 ac_tool_warned=yes ;;
8665 esac
8666     OTOOL=$ac_ct_OTOOL
8667   fi
8668 else
8669   OTOOL="$ac_cv_prog_OTOOL"
8670 fi
8671
8672     if test -n "$ac_tool_prefix"; then
8673   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8674 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_OTOOL64+:} false; then :
8678   $as_echo_n "(cached) " >&6
8679 else
8680   if test -n "$OTOOL64"; then
8681   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686   IFS=$as_save_IFS
8687   test -z "$as_dir" && as_dir=.
8688     for ac_exec_ext in '' $ac_executable_extensions; do
8689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692     break 2
8693   fi
8694 done
8695   done
8696 IFS=$as_save_IFS
8697
8698 fi
8699 fi
8700 OTOOL64=$ac_cv_prog_OTOOL64
8701 if test -n "$OTOOL64"; then
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8703 $as_echo "$OTOOL64" >&6; }
8704 else
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8707 fi
8708
8709
8710 fi
8711 if test -z "$ac_cv_prog_OTOOL64"; then
8712   ac_ct_OTOOL64=$OTOOL64
8713   # Extract the first word of "otool64", so it can be a program name with args.
8714 set dummy otool64; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8718   $as_echo_n "(cached) " >&6
8719 else
8720   if test -n "$ac_ct_OTOOL64"; then
8721   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8722 else
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 for as_dir in $PATH
8725 do
8726   IFS=$as_save_IFS
8727   test -z "$as_dir" && as_dir=.
8728     for ac_exec_ext in '' $ac_executable_extensions; do
8729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730     ac_cv_prog_ac_ct_OTOOL64="otool64"
8731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732     break 2
8733   fi
8734 done
8735   done
8736 IFS=$as_save_IFS
8737
8738 fi
8739 fi
8740 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8741 if test -n "$ac_ct_OTOOL64"; then
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8743 $as_echo "$ac_ct_OTOOL64" >&6; }
8744 else
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8747 fi
8748
8749   if test "x$ac_ct_OTOOL64" = x; then
8750     OTOOL64=":"
8751   else
8752     case $cross_compiling:$ac_tool_warned in
8753 yes:)
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756 ac_tool_warned=yes ;;
8757 esac
8758     OTOOL64=$ac_ct_OTOOL64
8759   fi
8760 else
8761   OTOOL64="$ac_cv_prog_OTOOL64"
8762 fi
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8791 $as_echo_n "checking for -single_module linker flag... " >&6; }
8792 if ${lt_cv_apple_cc_single_mod+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   lt_cv_apple_cc_single_mod=no
8796       if test -z "$LT_MULTI_MODULE"; then
8797         # By default we will add the -single_module flag. You can override
8798         # by either setting the environment variable LT_MULTI_MODULE
8799         # non-empty at configure time, or by adding -multi_module to the
8800         # link flags.
8801         rm -rf libconftest.dylib*
8802         echo "int foo(void){return 1;}" > conftest.c
8803         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8804 -dynamiclib -Wl,-single_module conftest.c" >&5
8805         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8806           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8807         _lt_result=$?
8808         # If there is a non-empty error log, and "single_module"
8809         # appears in it, assume the flag caused a linker warning
8810         if test -s conftest.err && $GREP single_module conftest.err; then
8811           cat conftest.err >&5
8812         # Otherwise, if the output was created with a 0 exit code from
8813         # the compiler, it worked.
8814         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8815           lt_cv_apple_cc_single_mod=yes
8816         else
8817           cat conftest.err >&5
8818         fi
8819         rm -rf libconftest.dylib*
8820         rm -f conftest.*
8821       fi
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8824 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8825
8826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8827 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8828 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8829   $as_echo_n "(cached) " >&6
8830 else
8831   lt_cv_ld_exported_symbols_list=no
8832       save_LDFLAGS=$LDFLAGS
8833       echo "_main" > conftest.sym
8834       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h.  */
8837
8838 int
8839 main ()
8840 {
8841
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 if ac_fn_c_try_link "$LINENO"; then :
8847   lt_cv_ld_exported_symbols_list=yes
8848 else
8849   lt_cv_ld_exported_symbols_list=no
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext \
8852     conftest$ac_exeext conftest.$ac_ext
8853         LDFLAGS=$save_LDFLAGS
8854
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8857 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8858
8859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8860 $as_echo_n "checking for -force_load linker flag... " >&6; }
8861 if ${lt_cv_ld_force_load+:} false; then :
8862   $as_echo_n "(cached) " >&6
8863 else
8864   lt_cv_ld_force_load=no
8865       cat > conftest.c << _LT_EOF
8866 int forced_loaded() { return 2;}
8867 _LT_EOF
8868       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8869       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8870       echo "$AR cru libconftest.a conftest.o" >&5
8871       $AR cru libconftest.a conftest.o 2>&5
8872       echo "$RANLIB libconftest.a" >&5
8873       $RANLIB libconftest.a 2>&5
8874       cat > conftest.c << _LT_EOF
8875 int main() { return 0;}
8876 _LT_EOF
8877       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8878       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8879       _lt_result=$?
8880       if test -s conftest.err && $GREP force_load conftest.err; then
8881         cat conftest.err >&5
8882       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8883         lt_cv_ld_force_load=yes
8884       else
8885         cat conftest.err >&5
8886       fi
8887         rm -f conftest.err libconftest.a conftest conftest.c
8888         rm -rf conftest.dSYM
8889
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8892 $as_echo "$lt_cv_ld_force_load" >&6; }
8893     case $host_os in
8894     rhapsody* | darwin1.[012])
8895       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8896     darwin1.*)
8897       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8898     darwin*) # darwin 5.x on
8899       # if running on 10.5 or later, the deployment target defaults
8900       # to the OS version, if on x86, and 10.4, the deployment
8901       # target defaults to 10.4. Don't you love it?
8902       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8903         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8904           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8905         10.[012][,.]*)
8906           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8907         10.*)
8908           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8909       esac
8910     ;;
8911   esac
8912     if test yes = "$lt_cv_apple_cc_single_mod"; then
8913       _lt_dar_single_mod='$single_module'
8914     fi
8915     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8916       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8917     else
8918       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8919     fi
8920     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8921       _lt_dsymutil='~$DSYMUTIL $lib || :'
8922     else
8923       _lt_dsymutil=
8924     fi
8925     ;;
8926   esac
8927
8928 # func_munge_path_list VARIABLE PATH
8929 # -----------------------------------
8930 # VARIABLE is name of variable containing _space_ separated list of
8931 # directories to be munged by the contents of PATH, which is string
8932 # having a format:
8933 # "DIR[:DIR]:"
8934 #       string "DIR[ DIR]" will be prepended to VARIABLE
8935 # ":DIR[:DIR]"
8936 #       string "DIR[ DIR]" will be appended to VARIABLE
8937 # "DIRP[:DIRP]::[DIRA:]DIRA"
8938 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8939 #       "DIRA[ DIRA]" will be appended to VARIABLE
8940 # "DIR[:DIR]"
8941 #       VARIABLE will be replaced by "DIR[ DIR]"
8942 func_munge_path_list ()
8943 {
8944     case x$2 in
8945     x)
8946         ;;
8947     *:)
8948         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8949         ;;
8950     x:*)
8951         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8952         ;;
8953     *::*)
8954         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8955         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8956         ;;
8957     *)
8958         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8959         ;;
8960     esac
8961 }
8962
8963
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8965 $as_echo_n "checking for ANSI C header files... " >&6; }
8966 if ${ac_cv_header_stdc+:} false; then :
8967   $as_echo_n "(cached) " >&6
8968 else
8969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h.  */
8971 #include <stdlib.h>
8972 #include <stdarg.h>
8973 #include <string.h>
8974 #include <float.h>
8975
8976 int
8977 main ()
8978 {
8979
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 if ac_fn_c_try_compile "$LINENO"; then :
8985   ac_cv_header_stdc=yes
8986 else
8987   ac_cv_header_stdc=no
8988 fi
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990
8991 if test $ac_cv_header_stdc = yes; then
8992   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h.  */
8995 #include <string.h>
8996
8997 _ACEOF
8998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8999   $EGREP "memchr" >/dev/null 2>&1; then :
9000
9001 else
9002   ac_cv_header_stdc=no
9003 fi
9004 rm -f conftest*
9005
9006 fi
9007
9008 if test $ac_cv_header_stdc = yes; then
9009   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h.  */
9012 #include <stdlib.h>
9013
9014 _ACEOF
9015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9016   $EGREP "free" >/dev/null 2>&1; then :
9017
9018 else
9019   ac_cv_header_stdc=no
9020 fi
9021 rm -f conftest*
9022
9023 fi
9024
9025 if test $ac_cv_header_stdc = yes; then
9026   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9027   if test "$cross_compiling" = yes; then :
9028   :
9029 else
9030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h.  */
9032 #include <ctype.h>
9033 #include <stdlib.h>
9034 #if ((' ' & 0x0FF) == 0x020)
9035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9037 #else
9038 # define ISLOWER(c) \
9039                    (('a' <= (c) && (c) <= 'i') \
9040                      || ('j' <= (c) && (c) <= 'r') \
9041                      || ('s' <= (c) && (c) <= 'z'))
9042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9043 #endif
9044
9045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9046 int
9047 main ()
9048 {
9049   int i;
9050   for (i = 0; i < 256; i++)
9051     if (XOR (islower (i), ISLOWER (i))
9052         || toupper (i) != TOUPPER (i))
9053       return 2;
9054   return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_run "$LINENO"; then :
9058
9059 else
9060   ac_cv_header_stdc=no
9061 fi
9062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9063   conftest.$ac_objext conftest.beam conftest.$ac_ext
9064 fi
9065
9066 fi
9067 fi
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9069 $as_echo "$ac_cv_header_stdc" >&6; }
9070 if test $ac_cv_header_stdc = yes; then
9071
9072 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9073
9074 fi
9075
9076 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9077 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9078                   inttypes.h stdint.h unistd.h
9079 do :
9080   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9081 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9082 "
9083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9084   cat >>confdefs.h <<_ACEOF
9085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9086 _ACEOF
9087
9088 fi
9089
9090 done
9091
9092
9093 for ac_header in dlfcn.h
9094 do :
9095   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9096 "
9097 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9098   cat >>confdefs.h <<_ACEOF
9099 #define HAVE_DLFCN_H 1
9100 _ACEOF
9101
9102 fi
9103
9104 done
9105
9106
9107
9108
9109
9110 # Set options
9111
9112
9113
9114         enable_dlopen=no
9115
9116
9117   enable_win32_dll=no
9118
9119
9120             # Check whether --enable-shared was given.
9121 if test "${enable_shared+set}" = set; then :
9122   enableval=$enable_shared; p=${PACKAGE-default}
9123     case $enableval in
9124     yes) enable_shared=yes ;;
9125     no) enable_shared=no ;;
9126     *)
9127       enable_shared=no
9128       # Look at the argument we got.  We use all the common list separators.
9129       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9130       for pkg in $enableval; do
9131         IFS=$lt_save_ifs
9132         if test "X$pkg" = "X$p"; then
9133           enable_shared=yes
9134         fi
9135       done
9136       IFS=$lt_save_ifs
9137       ;;
9138     esac
9139 else
9140   enable_shared=yes
9141 fi
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151   # Check whether --enable-static was given.
9152 if test "${enable_static+set}" = set; then :
9153   enableval=$enable_static; p=${PACKAGE-default}
9154     case $enableval in
9155     yes) enable_static=yes ;;
9156     no) enable_static=no ;;
9157     *)
9158      enable_static=no
9159       # Look at the argument we got.  We use all the common list separators.
9160       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9161       for pkg in $enableval; do
9162         IFS=$lt_save_ifs
9163         if test "X$pkg" = "X$p"; then
9164           enable_static=yes
9165         fi
9166       done
9167       IFS=$lt_save_ifs
9168       ;;
9169     esac
9170 else
9171   enable_static=yes
9172 fi
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183 # Check whether --with-pic was given.
9184 if test "${with_pic+set}" = set; then :
9185   withval=$with_pic; lt_p=${PACKAGE-default}
9186     case $withval in
9187     yes|no) pic_mode=$withval ;;
9188     *)
9189       pic_mode=default
9190       # Look at the argument we got.  We use all the common list separators.
9191       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9192       for lt_pkg in $withval; do
9193         IFS=$lt_save_ifs
9194         if test "X$lt_pkg" = "X$lt_p"; then
9195           pic_mode=yes
9196         fi
9197       done
9198       IFS=$lt_save_ifs
9199       ;;
9200     esac
9201 else
9202   pic_mode=default
9203 fi
9204
9205
9206
9207
9208
9209
9210
9211
9212   # Check whether --enable-fast-install was given.
9213 if test "${enable_fast_install+set}" = set; then :
9214   enableval=$enable_fast_install; p=${PACKAGE-default}
9215     case $enableval in
9216     yes) enable_fast_install=yes ;;
9217     no) enable_fast_install=no ;;
9218     *)
9219       enable_fast_install=no
9220       # Look at the argument we got.  We use all the common list separators.
9221       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9222       for pkg in $enableval; do
9223         IFS=$lt_save_ifs
9224         if test "X$pkg" = "X$p"; then
9225           enable_fast_install=yes
9226         fi
9227       done
9228       IFS=$lt_save_ifs
9229       ;;
9230     esac
9231 else
9232   enable_fast_install=yes
9233 fi
9234
9235
9236
9237
9238
9239
9240
9241
9242   shared_archive_member_spec=
9243 case $host,$enable_shared in
9244 power*-*-aix[5-9]*,yes)
9245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9246 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9247
9248 # Check whether --with-aix-soname was given.
9249 if test "${with_aix_soname+set}" = set; then :
9250   withval=$with_aix_soname; case $withval in
9251     aix|svr4|both)
9252       ;;
9253     *)
9254       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9255       ;;
9256     esac
9257     lt_cv_with_aix_soname=$with_aix_soname
9258 else
9259   if ${lt_cv_with_aix_soname+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   lt_cv_with_aix_soname=aix
9263 fi
9264
9265     with_aix_soname=$lt_cv_with_aix_soname
9266 fi
9267
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9269 $as_echo "$with_aix_soname" >&6; }
9270   if test aix != "$with_aix_soname"; then
9271     # For the AIX way of multilib, we name the shared archive member
9272     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9273     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9274     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9275     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9276     if test 64 = "${OBJECT_MODE-32}"; then
9277       shared_archive_member_spec=shr_64
9278     else
9279       shared_archive_member_spec=shr
9280     fi
9281   fi
9282   ;;
9283 *)
9284   with_aix_soname=aix
9285   ;;
9286 esac
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297 # This can be used to rebuild libtool when needed
9298 LIBTOOL_DEPS=$ltmain
9299
9300 # Always use our own libtool.
9301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332 test -z "$LN_S" && LN_S="ln -s"
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347 if test -n "${ZSH_VERSION+set}"; then
9348    setopt NO_GLOB_SUBST
9349 fi
9350
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9352 $as_echo_n "checking for objdir... " >&6; }
9353 if ${lt_cv_objdir+:} false; then :
9354   $as_echo_n "(cached) " >&6
9355 else
9356   rm -f .libs 2>/dev/null
9357 mkdir .libs 2>/dev/null
9358 if test -d .libs; then
9359   lt_cv_objdir=.libs
9360 else
9361   # MS-DOS does not allow filenames that begin with a dot.
9362   lt_cv_objdir=_libs
9363 fi
9364 rmdir .libs 2>/dev/null
9365 fi
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9367 $as_echo "$lt_cv_objdir" >&6; }
9368 objdir=$lt_cv_objdir
9369
9370
9371
9372
9373
9374 cat >>confdefs.h <<_ACEOF
9375 #define LT_OBJDIR "$lt_cv_objdir/"
9376 _ACEOF
9377
9378
9379
9380
9381 case $host_os in
9382 aix3*)
9383   # AIX sometimes has problems with the GCC collect2 program.  For some
9384   # reason, if we set the COLLECT_NAMES environment variable, the problems
9385   # vanish in a puff of smoke.
9386   if test set != "${COLLECT_NAMES+set}"; then
9387     COLLECT_NAMES=
9388     export COLLECT_NAMES
9389   fi
9390   ;;
9391 esac
9392
9393 # Global variables:
9394 ofile=libtool
9395 can_build_shared=yes
9396
9397 # All known linkers require a '.a' archive for static linking (except MSVC,
9398 # which needs '.lib').
9399 libext=a
9400
9401 with_gnu_ld=$lt_cv_prog_gnu_ld
9402
9403 old_CC=$CC
9404 old_CFLAGS=$CFLAGS
9405
9406 # Set sane defaults for various variables
9407 test -z "$CC" && CC=cc
9408 test -z "$LTCC" && LTCC=$CC
9409 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9410 test -z "$LD" && LD=ld
9411 test -z "$ac_objext" && ac_objext=o
9412
9413 func_cc_basename $compiler
9414 cc_basename=$func_cc_basename_result
9415
9416
9417 # Only perform the check for file, if the check method requires it
9418 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9419 case $deplibs_check_method in
9420 file_magic*)
9421   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9423 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9424 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9425   $as_echo_n "(cached) " >&6
9426 else
9427   case $MAGIC_CMD in
9428 [\\/*] |  ?:[\\/]*)
9429   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9430   ;;
9431 *)
9432   lt_save_MAGIC_CMD=$MAGIC_CMD
9433   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9434   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9435   for ac_dir in $ac_dummy; do
9436     IFS=$lt_save_ifs
9437     test -z "$ac_dir" && ac_dir=.
9438     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9439       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9440       if test -n "$file_magic_test_file"; then
9441         case $deplibs_check_method in
9442         "file_magic "*)
9443           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9444           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9445           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9446             $EGREP "$file_magic_regex" > /dev/null; then
9447             :
9448           else
9449             cat <<_LT_EOF 1>&2
9450
9451 *** Warning: the command libtool uses to detect shared libraries,
9452 *** $file_magic_cmd, produces output that libtool cannot recognize.
9453 *** The result is that libtool may fail to recognize shared libraries
9454 *** as such.  This will affect the creation of libtool libraries that
9455 *** depend on shared libraries, but programs linked with such libtool
9456 *** libraries will work regardless of this problem.  Nevertheless, you
9457 *** may want to report the problem to your system manager and/or to
9458 *** bug-libtool@gnu.org
9459
9460 _LT_EOF
9461           fi ;;
9462         esac
9463       fi
9464       break
9465     fi
9466   done
9467   IFS=$lt_save_ifs
9468   MAGIC_CMD=$lt_save_MAGIC_CMD
9469   ;;
9470 esac
9471 fi
9472
9473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9474 if test -n "$MAGIC_CMD"; then
9475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9476 $as_echo "$MAGIC_CMD" >&6; }
9477 else
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9480 fi
9481
9482
9483
9484
9485
9486 if test -z "$lt_cv_path_MAGIC_CMD"; then
9487   if test -n "$ac_tool_prefix"; then
9488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9489 $as_echo_n "checking for file... " >&6; }
9490 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9491   $as_echo_n "(cached) " >&6
9492 else
9493   case $MAGIC_CMD in
9494 [\\/*] |  ?:[\\/]*)
9495   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9496   ;;
9497 *)
9498   lt_save_MAGIC_CMD=$MAGIC_CMD
9499   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9500   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9501   for ac_dir in $ac_dummy; do
9502     IFS=$lt_save_ifs
9503     test -z "$ac_dir" && ac_dir=.
9504     if test -f "$ac_dir/file"; then
9505       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9506       if test -n "$file_magic_test_file"; then
9507         case $deplibs_check_method in
9508         "file_magic "*)
9509           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9510           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9511           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9512             $EGREP "$file_magic_regex" > /dev/null; then
9513             :
9514           else
9515             cat <<_LT_EOF 1>&2
9516
9517 *** Warning: the command libtool uses to detect shared libraries,
9518 *** $file_magic_cmd, produces output that libtool cannot recognize.
9519 *** The result is that libtool may fail to recognize shared libraries
9520 *** as such.  This will affect the creation of libtool libraries that
9521 *** depend on shared libraries, but programs linked with such libtool
9522 *** libraries will work regardless of this problem.  Nevertheless, you
9523 *** may want to report the problem to your system manager and/or to
9524 *** bug-libtool@gnu.org
9525
9526 _LT_EOF
9527           fi ;;
9528         esac
9529       fi
9530       break
9531     fi
9532   done
9533   IFS=$lt_save_ifs
9534   MAGIC_CMD=$lt_save_MAGIC_CMD
9535   ;;
9536 esac
9537 fi
9538
9539 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9540 if test -n "$MAGIC_CMD"; then
9541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9542 $as_echo "$MAGIC_CMD" >&6; }
9543 else
9544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9546 fi
9547
9548
9549   else
9550     MAGIC_CMD=:
9551   fi
9552 fi
9553
9554   fi
9555   ;;
9556 esac
9557
9558 # Use C for the default configuration in the libtool script
9559
9560 lt_save_CC=$CC
9561 ac_ext=c
9562 ac_cpp='$CPP $CPPFLAGS'
9563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9566
9567
9568 # Source file extension for C test sources.
9569 ac_ext=c
9570
9571 # Object file extension for compiled C test sources.
9572 objext=o
9573 objext=$objext
9574
9575 # Code to be used in simple compile tests
9576 lt_simple_compile_test_code="int some_variable = 0;"
9577
9578 # Code to be used in simple link tests
9579 lt_simple_link_test_code='int main(){return(0);}'
9580
9581
9582
9583
9584
9585
9586
9587 # If no C compiler was specified, use CC.
9588 LTCC=${LTCC-"$CC"}
9589
9590 # If no C compiler flags were specified, use CFLAGS.
9591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9592
9593 # Allow CC to be a program name with arguments.
9594 compiler=$CC
9595
9596 # Save the default compiler, since it gets overwritten when the other
9597 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9598 compiler_DEFAULT=$CC
9599
9600 # save warnings/boilerplate of simple test code
9601 ac_outfile=conftest.$ac_objext
9602 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9604 _lt_compiler_boilerplate=`cat conftest.err`
9605 $RM conftest*
9606
9607 ac_outfile=conftest.$ac_objext
9608 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9610 _lt_linker_boilerplate=`cat conftest.err`
9611 $RM -r conftest*
9612
9613
9614 if test -n "$compiler"; then
9615
9616 lt_prog_compiler_no_builtin_flag=
9617
9618 if test yes = "$GCC"; then
9619   case $cc_basename in
9620   nvcc*)
9621     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9622   *)
9623     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9624   esac
9625
9626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9627 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9628 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9629   $as_echo_n "(cached) " >&6
9630 else
9631   lt_cv_prog_compiler_rtti_exceptions=no
9632    ac_outfile=conftest.$ac_objext
9633    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9634    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9635    # Insert the option either (1) after the last *FLAGS variable, or
9636    # (2) before a word containing "conftest.", or (3) at the end.
9637    # Note that $ac_compile itself does not contain backslashes and begins
9638    # with a dollar sign (not a hyphen), so the echo should work correctly.
9639    # The option is referenced via a variable to avoid confusing sed.
9640    lt_compile=`echo "$ac_compile" | $SED \
9641    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9642    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9643    -e 's:$: $lt_compiler_flag:'`
9644    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9645    (eval "$lt_compile" 2>conftest.err)
9646    ac_status=$?
9647    cat conftest.err >&5
9648    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649    if (exit $ac_status) && test -s "$ac_outfile"; then
9650      # The compiler can only warn and ignore the option if not recognized
9651      # So say no if there are warnings other than the usual output.
9652      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9653      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9654      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9655        lt_cv_prog_compiler_rtti_exceptions=yes
9656      fi
9657    fi
9658    $RM conftest*
9659
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9663
9664 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9665     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9666 else
9667     :
9668 fi
9669
9670 fi
9671
9672
9673
9674
9675
9676
9677   lt_prog_compiler_wl=
9678 lt_prog_compiler_pic=
9679 lt_prog_compiler_static=
9680
9681
9682   if test yes = "$GCC"; then
9683     lt_prog_compiler_wl='-Wl,'
9684     lt_prog_compiler_static='-static'
9685
9686     case $host_os in
9687       aix*)
9688       # All AIX code is PIC.
9689       if test ia64 = "$host_cpu"; then
9690         # AIX 5 now supports IA64 processor
9691         lt_prog_compiler_static='-Bstatic'
9692       fi
9693       lt_prog_compiler_pic='-fPIC'
9694       ;;
9695
9696     amigaos*)
9697       case $host_cpu in
9698       powerpc)
9699             # see comment about AmigaOS4 .so support
9700             lt_prog_compiler_pic='-fPIC'
9701         ;;
9702       m68k)
9703             # FIXME: we need at least 68020 code to build shared libraries, but
9704             # adding the '-m68020' flag to GCC prevents building anything better,
9705             # like '-m68040'.
9706             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9707         ;;
9708       esac
9709       ;;
9710
9711     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9712       # PIC is the default for these OSes.
9713       ;;
9714
9715     mingw* | cygwin* | pw32* | os2* | cegcc*)
9716       # This hack is so that the source file can tell whether it is being
9717       # built for inclusion in a dll (and should export symbols for example).
9718       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9719       # (--disable-auto-import) libraries
9720       lt_prog_compiler_pic='-DDLL_EXPORT'
9721       case $host_os in
9722       os2*)
9723         lt_prog_compiler_static='$wl-static'
9724         ;;
9725       esac
9726       ;;
9727
9728     darwin* | rhapsody*)
9729       # PIC is the default on this platform
9730       # Common symbols not allowed in MH_DYLIB files
9731       lt_prog_compiler_pic='-fno-common'
9732       ;;
9733
9734     haiku*)
9735       # PIC is the default for Haiku.
9736       # The "-static" flag exists, but is broken.
9737       lt_prog_compiler_static=
9738       ;;
9739
9740     hpux*)
9741       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9742       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9743       # sets the default TLS model and affects inlining.
9744       case $host_cpu in
9745       hppa*64*)
9746         # +Z the default
9747         ;;
9748       *)
9749         lt_prog_compiler_pic='-fPIC'
9750         ;;
9751       esac
9752       ;;
9753
9754     interix[3-9]*)
9755       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9756       # Instead, we relocate shared libraries at runtime.
9757       ;;
9758
9759     msdosdjgpp*)
9760       # Just because we use GCC doesn't mean we suddenly get shared libraries
9761       # on systems that don't support them.
9762       lt_prog_compiler_can_build_shared=no
9763       enable_shared=no
9764       ;;
9765
9766     *nto* | *qnx*)
9767       # QNX uses GNU C++, but need to define -shared option too, otherwise
9768       # it will coredump.
9769       lt_prog_compiler_pic='-fPIC -shared'
9770       ;;
9771
9772     sysv4*MP*)
9773       if test -d /usr/nec; then
9774         lt_prog_compiler_pic=-Kconform_pic
9775       fi
9776       ;;
9777
9778     *)
9779       lt_prog_compiler_pic='-fPIC'
9780       ;;
9781     esac
9782
9783     case $cc_basename in
9784     nvcc*) # Cuda Compiler Driver 2.2
9785       lt_prog_compiler_wl='-Xlinker '
9786       if test -n "$lt_prog_compiler_pic"; then
9787         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9788       fi
9789       ;;
9790     esac
9791   else
9792     # PORTME Check for flag to pass linker flags through the system compiler.
9793     case $host_os in
9794     aix*)
9795       lt_prog_compiler_wl='-Wl,'
9796       if test ia64 = "$host_cpu"; then
9797         # AIX 5 now supports IA64 processor
9798         lt_prog_compiler_static='-Bstatic'
9799       else
9800         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9801       fi
9802       ;;
9803
9804     darwin* | rhapsody*)
9805       # PIC is the default on this platform
9806       # Common symbols not allowed in MH_DYLIB files
9807       lt_prog_compiler_pic='-fno-common'
9808       case $cc_basename in
9809       nagfor*)
9810         # NAG Fortran compiler
9811         lt_prog_compiler_wl='-Wl,-Wl,,'
9812         lt_prog_compiler_pic='-PIC'
9813         lt_prog_compiler_static='-Bstatic'
9814         ;;
9815       esac
9816       ;;
9817
9818     mingw* | cygwin* | pw32* | os2* | cegcc*)
9819       # This hack is so that the source file can tell whether it is being
9820       # built for inclusion in a dll (and should export symbols for example).
9821       lt_prog_compiler_pic='-DDLL_EXPORT'
9822       case $host_os in
9823       os2*)
9824         lt_prog_compiler_static='$wl-static'
9825         ;;
9826       esac
9827       ;;
9828
9829     hpux9* | hpux10* | hpux11*)
9830       lt_prog_compiler_wl='-Wl,'
9831       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9832       # not for PA HP-UX.
9833       case $host_cpu in
9834       hppa*64*|ia64*)
9835         # +Z the default
9836         ;;
9837       *)
9838         lt_prog_compiler_pic='+Z'
9839         ;;
9840       esac
9841       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9842       lt_prog_compiler_static='$wl-a ${wl}archive'
9843       ;;
9844
9845     irix5* | irix6* | nonstopux*)
9846       lt_prog_compiler_wl='-Wl,'
9847       # PIC (with -KPIC) is the default.
9848       lt_prog_compiler_static='-non_shared'
9849       ;;
9850
9851     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9852       case $cc_basename in
9853       # old Intel for x86_64, which still supported -KPIC.
9854       ecc*)
9855         lt_prog_compiler_wl='-Wl,'
9856         lt_prog_compiler_pic='-KPIC'
9857         lt_prog_compiler_static='-static'
9858         ;;
9859       # icc used to be incompatible with GCC.
9860       # ICC 10 doesn't accept -KPIC any more.
9861       icc* | ifort*)
9862         lt_prog_compiler_wl='-Wl,'
9863         lt_prog_compiler_pic='-fPIC'
9864         lt_prog_compiler_static='-static'
9865         ;;
9866       # Lahey Fortran 8.1.
9867       lf95*)
9868         lt_prog_compiler_wl='-Wl,'
9869         lt_prog_compiler_pic='--shared'
9870         lt_prog_compiler_static='--static'
9871         ;;
9872       nagfor*)
9873         # NAG Fortran compiler
9874         lt_prog_compiler_wl='-Wl,-Wl,,'
9875         lt_prog_compiler_pic='-PIC'
9876         lt_prog_compiler_static='-Bstatic'
9877         ;;
9878       tcc*)
9879         # Fabrice Bellard et al's Tiny C Compiler
9880         lt_prog_compiler_wl='-Wl,'
9881         lt_prog_compiler_pic='-fPIC'
9882         lt_prog_compiler_static='-static'
9883         ;;
9884       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9885         # Portland Group compilers (*not* the Pentium gcc compiler,
9886         # which looks to be a dead project)
9887         lt_prog_compiler_wl='-Wl,'
9888         lt_prog_compiler_pic='-fpic'
9889         lt_prog_compiler_static='-Bstatic'
9890         ;;
9891       ccc*)
9892         lt_prog_compiler_wl='-Wl,'
9893         # All Alpha code is PIC.
9894         lt_prog_compiler_static='-non_shared'
9895         ;;
9896       xl* | bgxl* | bgf* | mpixl*)
9897         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9898         lt_prog_compiler_wl='-Wl,'
9899         lt_prog_compiler_pic='-qpic'
9900         lt_prog_compiler_static='-qstaticlink'
9901         ;;
9902       *)
9903         case `$CC -V 2>&1 | sed 5q` in
9904         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9905           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9906           lt_prog_compiler_pic='-KPIC'
9907           lt_prog_compiler_static='-Bstatic'
9908           lt_prog_compiler_wl=''
9909           ;;
9910         *Sun\ F* | *Sun*Fortran*)
9911           lt_prog_compiler_pic='-KPIC'
9912           lt_prog_compiler_static='-Bstatic'
9913           lt_prog_compiler_wl='-Qoption ld '
9914           ;;
9915         *Sun\ C*)
9916           # Sun C 5.9
9917           lt_prog_compiler_pic='-KPIC'
9918           lt_prog_compiler_static='-Bstatic'
9919           lt_prog_compiler_wl='-Wl,'
9920           ;;
9921         *Intel*\ [CF]*Compiler*)
9922           lt_prog_compiler_wl='-Wl,'
9923           lt_prog_compiler_pic='-fPIC'
9924           lt_prog_compiler_static='-static'
9925           ;;
9926         *Portland\ Group*)
9927           lt_prog_compiler_wl='-Wl,'
9928           lt_prog_compiler_pic='-fpic'
9929           lt_prog_compiler_static='-Bstatic'
9930           ;;
9931         esac
9932         ;;
9933       esac
9934       ;;
9935
9936     newsos6)
9937       lt_prog_compiler_pic='-KPIC'
9938       lt_prog_compiler_static='-Bstatic'
9939       ;;
9940
9941     *nto* | *qnx*)
9942       # QNX uses GNU C++, but need to define -shared option too, otherwise
9943       # it will coredump.
9944       lt_prog_compiler_pic='-fPIC -shared'
9945       ;;
9946
9947     osf3* | osf4* | osf5*)
9948       lt_prog_compiler_wl='-Wl,'
9949       # All OSF/1 code is PIC.
9950       lt_prog_compiler_static='-non_shared'
9951       ;;
9952
9953     rdos*)
9954       lt_prog_compiler_static='-non_shared'
9955       ;;
9956
9957     solaris*)
9958       lt_prog_compiler_pic='-KPIC'
9959       lt_prog_compiler_static='-Bstatic'
9960       case $cc_basename in
9961       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9962         lt_prog_compiler_wl='-Qoption ld ';;
9963       *)
9964         lt_prog_compiler_wl='-Wl,';;
9965       esac
9966       ;;
9967
9968     sunos4*)
9969       lt_prog_compiler_wl='-Qoption ld '
9970       lt_prog_compiler_pic='-PIC'
9971       lt_prog_compiler_static='-Bstatic'
9972       ;;
9973
9974     sysv4 | sysv4.2uw2* | sysv4.3*)
9975       lt_prog_compiler_wl='-Wl,'
9976       lt_prog_compiler_pic='-KPIC'
9977       lt_prog_compiler_static='-Bstatic'
9978       ;;
9979
9980     sysv4*MP*)
9981       if test -d /usr/nec; then
9982         lt_prog_compiler_pic='-Kconform_pic'
9983         lt_prog_compiler_static='-Bstatic'
9984       fi
9985       ;;
9986
9987     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9988       lt_prog_compiler_wl='-Wl,'
9989       lt_prog_compiler_pic='-KPIC'
9990       lt_prog_compiler_static='-Bstatic'
9991       ;;
9992
9993     unicos*)
9994       lt_prog_compiler_wl='-Wl,'
9995       lt_prog_compiler_can_build_shared=no
9996       ;;
9997
9998     uts4*)
9999       lt_prog_compiler_pic='-pic'
10000       lt_prog_compiler_static='-Bstatic'
10001       ;;
10002
10003     *)
10004       lt_prog_compiler_can_build_shared=no
10005       ;;
10006     esac
10007   fi
10008
10009 case $host_os in
10010   # For platforms that do not support PIC, -DPIC is meaningless:
10011   *djgpp*)
10012     lt_prog_compiler_pic=
10013     ;;
10014   *)
10015     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10016     ;;
10017 esac
10018
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10020 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10021 if ${lt_cv_prog_compiler_pic+:} false; then :
10022   $as_echo_n "(cached) " >&6
10023 else
10024   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10025 fi
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10027 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10028 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10029
10030 #
10031 # Check to make sure the PIC flag actually works.
10032 #
10033 if test -n "$lt_prog_compiler_pic"; then
10034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10035 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10036 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10037   $as_echo_n "(cached) " >&6
10038 else
10039   lt_cv_prog_compiler_pic_works=no
10040    ac_outfile=conftest.$ac_objext
10041    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10042    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10043    # Insert the option either (1) after the last *FLAGS variable, or
10044    # (2) before a word containing "conftest.", or (3) at the end.
10045    # Note that $ac_compile itself does not contain backslashes and begins
10046    # with a dollar sign (not a hyphen), so the echo should work correctly.
10047    # The option is referenced via a variable to avoid confusing sed.
10048    lt_compile=`echo "$ac_compile" | $SED \
10049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10051    -e 's:$: $lt_compiler_flag:'`
10052    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10053    (eval "$lt_compile" 2>conftest.err)
10054    ac_status=$?
10055    cat conftest.err >&5
10056    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057    if (exit $ac_status) && test -s "$ac_outfile"; then
10058      # The compiler can only warn and ignore the option if not recognized
10059      # So say no if there are warnings other than the usual output.
10060      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10061      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10062      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10063        lt_cv_prog_compiler_pic_works=yes
10064      fi
10065    fi
10066    $RM conftest*
10067
10068 fi
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10070 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10071
10072 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10073     case $lt_prog_compiler_pic in
10074      "" | " "*) ;;
10075      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10076      esac
10077 else
10078     lt_prog_compiler_pic=
10079      lt_prog_compiler_can_build_shared=no
10080 fi
10081
10082 fi
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094 #
10095 # Check to make sure the static flag actually works.
10096 #
10097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10099 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10100 if ${lt_cv_prog_compiler_static_works+:} false; then :
10101   $as_echo_n "(cached) " >&6
10102 else
10103   lt_cv_prog_compiler_static_works=no
10104    save_LDFLAGS=$LDFLAGS
10105    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10106    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10107    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10108      # The linker can only warn and ignore the option if not recognized
10109      # So say no if there are warnings
10110      if test -s conftest.err; then
10111        # Append any errors to the config.log.
10112        cat conftest.err 1>&5
10113        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10114        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115        if diff conftest.exp conftest.er2 >/dev/null; then
10116          lt_cv_prog_compiler_static_works=yes
10117        fi
10118      else
10119        lt_cv_prog_compiler_static_works=yes
10120      fi
10121    fi
10122    $RM -r conftest*
10123    LDFLAGS=$save_LDFLAGS
10124
10125 fi
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10127 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10128
10129 if test yes = "$lt_cv_prog_compiler_static_works"; then
10130     :
10131 else
10132     lt_prog_compiler_static=
10133 fi
10134
10135
10136
10137
10138
10139
10140
10141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10143 if ${lt_cv_prog_compiler_c_o+:} false; then :
10144   $as_echo_n "(cached) " >&6
10145 else
10146   lt_cv_prog_compiler_c_o=no
10147    $RM -r conftest 2>/dev/null
10148    mkdir conftest
10149    cd conftest
10150    mkdir out
10151    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10152
10153    lt_compiler_flag="-o out/conftest2.$ac_objext"
10154    # Insert the option either (1) after the last *FLAGS variable, or
10155    # (2) before a word containing "conftest.", or (3) at the end.
10156    # Note that $ac_compile itself does not contain backslashes and begins
10157    # with a dollar sign (not a hyphen), so the echo should work correctly.
10158    lt_compile=`echo "$ac_compile" | $SED \
10159    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10160    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10161    -e 's:$: $lt_compiler_flag:'`
10162    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10163    (eval "$lt_compile" 2>out/conftest.err)
10164    ac_status=$?
10165    cat out/conftest.err >&5
10166    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10168    then
10169      # The compiler can only warn and ignore the option if not recognized
10170      # So say no if there are warnings
10171      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10172      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10173      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10174        lt_cv_prog_compiler_c_o=yes
10175      fi
10176    fi
10177    chmod u+w . 2>&5
10178    $RM conftest*
10179    # SGI C++ compiler will create directory out/ii_files/ for
10180    # template instantiation
10181    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10182    $RM out/* && rmdir out
10183    cd ..
10184    $RM -r conftest
10185    $RM conftest*
10186
10187 fi
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10190
10191
10192
10193
10194
10195
10196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10198 if ${lt_cv_prog_compiler_c_o+:} false; then :
10199   $as_echo_n "(cached) " >&6
10200 else
10201   lt_cv_prog_compiler_c_o=no
10202    $RM -r conftest 2>/dev/null
10203    mkdir conftest
10204    cd conftest
10205    mkdir out
10206    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10207
10208    lt_compiler_flag="-o out/conftest2.$ac_objext"
10209    # Insert the option either (1) after the last *FLAGS variable, or
10210    # (2) before a word containing "conftest.", or (3) at the end.
10211    # Note that $ac_compile itself does not contain backslashes and begins
10212    # with a dollar sign (not a hyphen), so the echo should work correctly.
10213    lt_compile=`echo "$ac_compile" | $SED \
10214    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10215    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10216    -e 's:$: $lt_compiler_flag:'`
10217    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10218    (eval "$lt_compile" 2>out/conftest.err)
10219    ac_status=$?
10220    cat out/conftest.err >&5
10221    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10223    then
10224      # The compiler can only warn and ignore the option if not recognized
10225      # So say no if there are warnings
10226      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10227      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10228      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10229        lt_cv_prog_compiler_c_o=yes
10230      fi
10231    fi
10232    chmod u+w . 2>&5
10233    $RM conftest*
10234    # SGI C++ compiler will create directory out/ii_files/ for
10235    # template instantiation
10236    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10237    $RM out/* && rmdir out
10238    cd ..
10239    $RM -r conftest
10240    $RM conftest*
10241
10242 fi
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10244 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10245
10246
10247
10248
10249 hard_links=nottested
10250 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10251   # do not overwrite the value of need_locks provided by the user
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10253 $as_echo_n "checking if we can lock with hard links... " >&6; }
10254   hard_links=yes
10255   $RM conftest*
10256   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10257   touch conftest.a
10258   ln conftest.a conftest.b 2>&5 || hard_links=no
10259   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10261 $as_echo "$hard_links" >&6; }
10262   if test no = "$hard_links"; then
10263     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10264 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10265     need_locks=warn
10266   fi
10267 else
10268   need_locks=no
10269 fi
10270
10271
10272
10273
10274
10275
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10277 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10278
10279   runpath_var=
10280   allow_undefined_flag=
10281   always_export_symbols=no
10282   archive_cmds=
10283   archive_expsym_cmds=
10284   compiler_needs_object=no
10285   enable_shared_with_static_runtimes=no
10286   export_dynamic_flag_spec=
10287   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10288   hardcode_automatic=no
10289   hardcode_direct=no
10290   hardcode_direct_absolute=no
10291   hardcode_libdir_flag_spec=
10292   hardcode_libdir_separator=
10293   hardcode_minus_L=no
10294   hardcode_shlibpath_var=unsupported
10295   inherit_rpath=no
10296   link_all_deplibs=unknown
10297   module_cmds=
10298   module_expsym_cmds=
10299   old_archive_from_new_cmds=
10300   old_archive_from_expsyms_cmds=
10301   thread_safe_flag_spec=
10302   whole_archive_flag_spec=
10303   # include_expsyms should be a list of space-separated symbols to be *always*
10304   # included in the symbol list
10305   include_expsyms=
10306   # exclude_expsyms can be an extended regexp of symbols to exclude
10307   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10308   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10309   # as well as any symbol that contains 'd'.
10310   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10311   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10312   # platforms (ab)use it in PIC code, but their linkers get confused if
10313   # the symbol is explicitly referenced.  Since portable code cannot
10314   # rely on this symbol name, it's probably fine to never include it in
10315   # preloaded symbol tables.
10316   # Exclude shared library initialization/finalization symbols.
10317   extract_expsyms_cmds=
10318
10319   case $host_os in
10320   cygwin* | mingw* | pw32* | cegcc*)
10321     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10322     # When not using gcc, we currently assume that we are using
10323     # Microsoft Visual C++.
10324     if test yes != "$GCC"; then
10325       with_gnu_ld=no
10326     fi
10327     ;;
10328   interix*)
10329     # we just hope/assume this is gcc and not c89 (= MSVC++)
10330     with_gnu_ld=yes
10331     ;;
10332   openbsd* | bitrig*)
10333     with_gnu_ld=no
10334     ;;
10335   esac
10336
10337   ld_shlibs=yes
10338
10339   # On some targets, GNU ld is compatible enough with the native linker
10340   # that we're better off using the native interface for both.
10341   lt_use_gnu_ld_interface=no
10342   if test yes = "$with_gnu_ld"; then
10343     case $host_os in
10344       aix*)
10345         # The AIX port of GNU ld has always aspired to compatibility
10346         # with the native linker.  However, as the warning in the GNU ld
10347         # block says, versions before 2.19.5* couldn't really create working
10348         # shared libraries, regardless of the interface used.
10349         case `$LD -v 2>&1` in
10350           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10351           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10352           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10353           *)
10354             lt_use_gnu_ld_interface=yes
10355             ;;
10356         esac
10357         ;;
10358       *)
10359         lt_use_gnu_ld_interface=yes
10360         ;;
10361     esac
10362   fi
10363
10364   if test yes = "$lt_use_gnu_ld_interface"; then
10365     # If archive_cmds runs LD, not CC, wlarc should be empty
10366     wlarc='$wl'
10367
10368     # Set some defaults for GNU ld with shared library support. These
10369     # are reset later if shared libraries are not supported. Putting them
10370     # here allows them to be overridden if necessary.
10371     runpath_var=LD_RUN_PATH
10372     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10373     export_dynamic_flag_spec='$wl--export-dynamic'
10374     # ancient GNU ld didn't support --whole-archive et. al.
10375     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10376       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10377     else
10378       whole_archive_flag_spec=
10379     fi
10380     supports_anon_versioning=no
10381     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10382       *GNU\ gold*) supports_anon_versioning=yes ;;
10383       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10384       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10385       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10386       *\ 2.11.*) ;; # other 2.11 versions
10387       *) supports_anon_versioning=yes ;;
10388     esac
10389
10390     # See if GNU ld supports shared libraries.
10391     case $host_os in
10392     aix[3-9]*)
10393       # On AIX/PPC, the GNU linker is very broken
10394       if test ia64 != "$host_cpu"; then
10395         ld_shlibs=no
10396         cat <<_LT_EOF 1>&2
10397
10398 *** Warning: the GNU linker, at least up to release 2.19, is reported
10399 *** to be unable to reliably create shared libraries on AIX.
10400 *** Therefore, libtool is disabling shared libraries support.  If you
10401 *** really care for shared libraries, you may want to install binutils
10402 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10403 *** You will then need to restart the configuration process.
10404
10405 _LT_EOF
10406       fi
10407       ;;
10408
10409     amigaos*)
10410       case $host_cpu in
10411       powerpc)
10412             # see comment about AmigaOS4 .so support
10413             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10414             archive_expsym_cmds=''
10415         ;;
10416       m68k)
10417             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)'
10418             hardcode_libdir_flag_spec='-L$libdir'
10419             hardcode_minus_L=yes
10420         ;;
10421       esac
10422       ;;
10423
10424     beos*)
10425       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10426         allow_undefined_flag=unsupported
10427         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10428         # support --undefined.  This deserves some investigation.  FIXME
10429         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10430       else
10431         ld_shlibs=no
10432       fi
10433       ;;
10434
10435     cygwin* | mingw* | pw32* | cegcc*)
10436       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10437       # as there is no search path for DLLs.
10438       hardcode_libdir_flag_spec='-L$libdir'
10439       export_dynamic_flag_spec='$wl--export-all-symbols'
10440       allow_undefined_flag=unsupported
10441       always_export_symbols=no
10442       enable_shared_with_static_runtimes=yes
10443       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'
10444       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10445
10446       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10447         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10448         # If the export-symbols file already is a .def file, use it as
10449         # is; otherwise, prepend EXPORTS...
10450         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10451           cp $export_symbols $output_objdir/$soname.def;
10452         else
10453           echo EXPORTS > $output_objdir/$soname.def;
10454           cat $export_symbols >> $output_objdir/$soname.def;
10455         fi~
10456         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10457       else
10458         ld_shlibs=no
10459       fi
10460       ;;
10461
10462     haiku*)
10463       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10464       link_all_deplibs=yes
10465       ;;
10466
10467     os2*)
10468       hardcode_libdir_flag_spec='-L$libdir'
10469       hardcode_minus_L=yes
10470       allow_undefined_flag=unsupported
10471       shrext_cmds=.dll
10472       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10473         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10474         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10475         $ECHO EXPORTS >> $output_objdir/$libname.def~
10476         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10477         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10478         emximp -o $lib $output_objdir/$libname.def'
10479       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10480         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10481         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10482         $ECHO EXPORTS >> $output_objdir/$libname.def~
10483         prefix_cmds="$SED"~
10484         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10485           prefix_cmds="$prefix_cmds -e 1d";
10486         fi~
10487         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10488         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10489         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10490         emximp -o $lib $output_objdir/$libname.def'
10491       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10492       enable_shared_with_static_runtimes=yes
10493       ;;
10494
10495     interix[3-9]*)
10496       hardcode_direct=no
10497       hardcode_shlibpath_var=no
10498       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10499       export_dynamic_flag_spec='$wl-E'
10500       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10501       # Instead, shared libraries are loaded at an image base (0x10000000 by
10502       # default) and relocated if they conflict, which is a slow very memory
10503       # consuming and fragmenting process.  To avoid this, we pick a random,
10504       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10505       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10506       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10507       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'
10508       ;;
10509
10510     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10511       tmp_diet=no
10512       if test linux-dietlibc = "$host_os"; then
10513         case $cc_basename in
10514           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10515         esac
10516       fi
10517       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10518          && test no = "$tmp_diet"
10519       then
10520         tmp_addflag=' $pic_flag'
10521         tmp_sharedflag='-shared'
10522         case $cc_basename,$host_cpu in
10523         pgcc*)                          # Portland Group C compiler
10524           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'
10525           tmp_addflag=' $pic_flag'
10526           ;;
10527         pgf77* | pgf90* | pgf95* | pgfortran*)
10528                                         # Portland Group f77 and f90 compilers
10529           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'
10530           tmp_addflag=' $pic_flag -Mnomain' ;;
10531         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10532           tmp_addflag=' -i_dynamic' ;;
10533         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10534           tmp_addflag=' -i_dynamic -nofor_main' ;;
10535         ifc* | ifort*)                  # Intel Fortran compiler
10536           tmp_addflag=' -nofor_main' ;;
10537         lf95*)                          # Lahey Fortran 8.1
10538           whole_archive_flag_spec=
10539           tmp_sharedflag='--shared' ;;
10540         nagfor*)                        # NAGFOR 5.3
10541           tmp_sharedflag='-Wl,-shared' ;;
10542         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10543           tmp_sharedflag='-qmkshrobj'
10544           tmp_addflag= ;;
10545         nvcc*)  # Cuda Compiler Driver 2.2
10546           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'
10547           compiler_needs_object=yes
10548           ;;
10549         esac
10550         case `$CC -V 2>&1 | sed 5q` in
10551         *Sun\ C*)                       # Sun C 5.9
10552           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'
10553           compiler_needs_object=yes
10554           tmp_sharedflag='-G' ;;
10555         *Sun\ F*)                       # Sun Fortran 8.3
10556           tmp_sharedflag='-G' ;;
10557         esac
10558         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10559
10560         if test yes = "$supports_anon_versioning"; then
10561           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10562             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10563             echo "local: *; };" >> $output_objdir/$libname.ver~
10564             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10565         fi
10566
10567         case $cc_basename in
10568         tcc*)
10569           export_dynamic_flag_spec='-rdynamic'
10570           ;;
10571         xlf* | bgf* | bgxlf* | mpixlf*)
10572           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10573           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10574           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10575           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10576           if test yes = "$supports_anon_versioning"; then
10577             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10578               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10579               echo "local: *; };" >> $output_objdir/$libname.ver~
10580               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10581           fi
10582           ;;
10583         esac
10584       else
10585         ld_shlibs=no
10586       fi
10587       ;;
10588
10589     netbsd*)
10590       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10591         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10592         wlarc=
10593       else
10594         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10595         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10596       fi
10597       ;;
10598
10599     solaris*)
10600       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10601         ld_shlibs=no
10602         cat <<_LT_EOF 1>&2
10603
10604 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10605 *** create shared libraries on Solaris systems.  Therefore, libtool
10606 *** is disabling shared libraries support.  We urge you to upgrade GNU
10607 *** binutils to release 2.9.1 or newer.  Another option is to modify
10608 *** your PATH or compiler configuration so that the native linker is
10609 *** used, and then restart.
10610
10611 _LT_EOF
10612       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10613         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10614         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10615       else
10616         ld_shlibs=no
10617       fi
10618       ;;
10619
10620     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10621       case `$LD -v 2>&1` in
10622         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10623         ld_shlibs=no
10624         cat <<_LT_EOF 1>&2
10625
10626 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10627 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10628 *** is disabling shared libraries support.  We urge you to upgrade GNU
10629 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10630 *** your PATH or compiler configuration so that the native linker is
10631 *** used, and then restart.
10632
10633 _LT_EOF
10634         ;;
10635         *)
10636           # For security reasons, it is highly recommended that you always
10637           # use absolute paths for naming shared libraries, and exclude the
10638           # DT_RUNPATH tag from executables and libraries.  But doing so
10639           # requires that you compile everything twice, which is a pain.
10640           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10641             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10642             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10643             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10644           else
10645             ld_shlibs=no
10646           fi
10647         ;;
10648       esac
10649       ;;
10650
10651     sunos4*)
10652       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10653       wlarc=
10654       hardcode_direct=yes
10655       hardcode_shlibpath_var=no
10656       ;;
10657
10658     *)
10659       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10660         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10661         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10662       else
10663         ld_shlibs=no
10664       fi
10665       ;;
10666     esac
10667
10668     if test no = "$ld_shlibs"; then
10669       runpath_var=
10670       hardcode_libdir_flag_spec=
10671       export_dynamic_flag_spec=
10672       whole_archive_flag_spec=
10673     fi
10674   else
10675     # PORTME fill in a description of your system's linker (not GNU ld)
10676     case $host_os in
10677     aix3*)
10678       allow_undefined_flag=unsupported
10679       always_export_symbols=yes
10680       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'
10681       # Note: this linker hardcodes the directories in LIBPATH if there
10682       # are no directories specified by -L.
10683       hardcode_minus_L=yes
10684       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10685         # Neither direct hardcoding nor static linking is supported with a
10686         # broken collect2.
10687         hardcode_direct=unsupported
10688       fi
10689       ;;
10690
10691     aix[4-9]*)
10692       if test ia64 = "$host_cpu"; then
10693         # On IA64, the linker does run time linking by default, so we don't
10694         # have to do anything special.
10695         aix_use_runtimelinking=no
10696         exp_sym_flag='-Bexport'
10697         no_entry_flag=
10698       else
10699         # If we're using GNU nm, then we don't want the "-C" option.
10700         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10701         # Without the "-l" option, or with the "-B" option, AIX nm treats
10702         # weak defined symbols like other global defined symbols, whereas
10703         # GNU nm marks them as "W".
10704         # While the 'weak' keyword is ignored in the Export File, we need
10705         # it in the Import File for the 'aix-soname' feature, so we have
10706         # to replace the "-B" option with "-P" for AIX nm.
10707         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10708           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10709         else
10710           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10711         fi
10712         aix_use_runtimelinking=no
10713
10714         # Test if we are trying to use run time linking or normal
10715         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10716         # have runtime linking enabled, and use it for executables.
10717         # For shared libraries, we enable/disable runtime linking
10718         # depending on the kind of the shared library created -
10719         # when "with_aix_soname,aix_use_runtimelinking" is:
10720         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10721         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10722         #            lib.a           static archive
10723         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10724         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10725         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10726         #            lib.a(lib.so.V) shared, rtl:no
10727         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10728         #            lib.a           static archive
10729         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10730           for ld_flag in $LDFLAGS; do
10731           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10732             aix_use_runtimelinking=yes
10733             break
10734           fi
10735           done
10736           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10737             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10738             # so we don't have lib.a shared libs to link our executables.
10739             # We have to force runtime linking in this case.
10740             aix_use_runtimelinking=yes
10741             LDFLAGS="$LDFLAGS -Wl,-brtl"
10742           fi
10743           ;;
10744         esac
10745
10746         exp_sym_flag='-bexport'
10747         no_entry_flag='-bnoentry'
10748       fi
10749
10750       # When large executables or shared objects are built, AIX ld can
10751       # have problems creating the table of contents.  If linking a library
10752       # or program results in "error TOC overflow" add -mminimal-toc to
10753       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10754       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10755
10756       archive_cmds=''
10757       hardcode_direct=yes
10758       hardcode_direct_absolute=yes
10759       hardcode_libdir_separator=':'
10760       link_all_deplibs=yes
10761       file_list_spec='$wl-f,'
10762       case $with_aix_soname,$aix_use_runtimelinking in
10763       aix,*) ;; # traditional, no import file
10764       svr4,* | *,yes) # use import file
10765         # The Import File defines what to hardcode.
10766         hardcode_direct=no
10767         hardcode_direct_absolute=no
10768         ;;
10769       esac
10770
10771       if test yes = "$GCC"; then
10772         case $host_os in aix4.[012]|aix4.[012].*)
10773         # We only want to do this on AIX 4.2 and lower, the check
10774         # below for broken collect2 doesn't work under 4.3+
10775           collect2name=`$CC -print-prog-name=collect2`
10776           if test -f "$collect2name" &&
10777            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10778           then
10779           # We have reworked collect2
10780           :
10781           else
10782           # We have old collect2
10783           hardcode_direct=unsupported
10784           # It fails to find uninstalled libraries when the uninstalled
10785           # path is not listed in the libpath.  Setting hardcode_minus_L
10786           # to unsupported forces relinking
10787           hardcode_minus_L=yes
10788           hardcode_libdir_flag_spec='-L$libdir'
10789           hardcode_libdir_separator=
10790           fi
10791           ;;
10792         esac
10793         shared_flag='-shared'
10794         if test yes = "$aix_use_runtimelinking"; then
10795           shared_flag="$shared_flag "'$wl-G'
10796         fi
10797         # Need to ensure runtime linking is disabled for the traditional
10798         # shared library, or the linker may eventually find shared libraries
10799         # /with/ Import File - we do not want to mix them.
10800         shared_flag_aix='-shared'
10801         shared_flag_svr4='-shared $wl-G'
10802       else
10803         # not using gcc
10804         if test ia64 = "$host_cpu"; then
10805         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10806         # chokes on -Wl,-G. The following line is correct:
10807           shared_flag='-G'
10808         else
10809           if test yes = "$aix_use_runtimelinking"; then
10810             shared_flag='$wl-G'
10811           else
10812             shared_flag='$wl-bM:SRE'
10813           fi
10814           shared_flag_aix='$wl-bM:SRE'
10815           shared_flag_svr4='$wl-G'
10816         fi
10817       fi
10818
10819       export_dynamic_flag_spec='$wl-bexpall'
10820       # It seems that -bexpall does not export symbols beginning with
10821       # underscore (_), so it is better to generate a list of symbols to export.
10822       always_export_symbols=yes
10823       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10824         # Warning - without using the other runtime loading flags (-brtl),
10825         # -berok will link without error, but may produce a broken library.
10826         allow_undefined_flag='-berok'
10827         # Determine the default libpath from the value encoded in an
10828         # empty executable.
10829         if test set = "${lt_cv_aix_libpath+set}"; then
10830   aix_libpath=$lt_cv_aix_libpath
10831 else
10832   if ${lt_cv_aix_libpath_+:} false; then :
10833   $as_echo_n "(cached) " >&6
10834 else
10835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h.  */
10837
10838 int
10839 main ()
10840 {
10841
10842   ;
10843   return 0;
10844 }
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"; then :
10847
10848   lt_aix_libpath_sed='
10849       /Import File Strings/,/^$/ {
10850           /^0/ {
10851               s/^0  *\([^ ]*\) *$/\1/
10852               p
10853           }
10854       }'
10855   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10856   # Check for a 64-bit object if we didn't find anything.
10857   if test -z "$lt_cv_aix_libpath_"; then
10858     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10859   fi
10860 fi
10861 rm -f core conftest.err conftest.$ac_objext \
10862     conftest$ac_exeext conftest.$ac_ext
10863   if test -z "$lt_cv_aix_libpath_"; then
10864     lt_cv_aix_libpath_=/usr/lib:/lib
10865   fi
10866
10867 fi
10868
10869   aix_libpath=$lt_cv_aix_libpath_
10870 fi
10871
10872         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10873         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10874       else
10875         if test ia64 = "$host_cpu"; then
10876           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10877           allow_undefined_flag="-z nodefs"
10878           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"
10879         else
10880          # Determine the default libpath from the value encoded in an
10881          # empty executable.
10882          if test set = "${lt_cv_aix_libpath+set}"; then
10883   aix_libpath=$lt_cv_aix_libpath
10884 else
10885   if ${lt_cv_aix_libpath_+:} false; then :
10886   $as_echo_n "(cached) " >&6
10887 else
10888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h.  */
10890
10891 int
10892 main ()
10893 {
10894
10895   ;
10896   return 0;
10897 }
10898 _ACEOF
10899 if ac_fn_c_try_link "$LINENO"; then :
10900
10901   lt_aix_libpath_sed='
10902       /Import File Strings/,/^$/ {
10903           /^0/ {
10904               s/^0  *\([^ ]*\) *$/\1/
10905               p
10906           }
10907       }'
10908   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10909   # Check for a 64-bit object if we didn't find anything.
10910   if test -z "$lt_cv_aix_libpath_"; then
10911     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10912   fi
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext \
10915     conftest$ac_exeext conftest.$ac_ext
10916   if test -z "$lt_cv_aix_libpath_"; then
10917     lt_cv_aix_libpath_=/usr/lib:/lib
10918   fi
10919
10920 fi
10921
10922   aix_libpath=$lt_cv_aix_libpath_
10923 fi
10924
10925          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10926           # Warning - without using the other run time loading flags,
10927           # -berok will link without error, but may produce a broken library.
10928           no_undefined_flag=' $wl-bernotok'
10929           allow_undefined_flag=' $wl-berok'
10930           if test yes = "$with_gnu_ld"; then
10931             # We only use this code for GNU lds that support --whole-archive.
10932             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10933           else
10934             # Exported symbols can be pulled into shared objects from archives
10935             whole_archive_flag_spec='$convenience'
10936           fi
10937           archive_cmds_need_lc=yes
10938           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10939           # -brtl affects multiple linker settings, -berok does not and is overridden later
10940           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10941           if test svr4 != "$with_aix_soname"; then
10942             # This is similar to how AIX traditionally builds its shared libraries.
10943             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10944           fi
10945           if test aix != "$with_aix_soname"; then
10946             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10947           else
10948             # used by -dlpreopen to get the symbols
10949             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10950           fi
10951           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10952         fi
10953       fi
10954       ;;
10955
10956     amigaos*)
10957       case $host_cpu in
10958       powerpc)
10959             # see comment about AmigaOS4 .so support
10960             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10961             archive_expsym_cmds=''
10962         ;;
10963       m68k)
10964             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)'
10965             hardcode_libdir_flag_spec='-L$libdir'
10966             hardcode_minus_L=yes
10967         ;;
10968       esac
10969       ;;
10970
10971     bsdi[45]*)
10972       export_dynamic_flag_spec=-rdynamic
10973       ;;
10974
10975     cygwin* | mingw* | pw32* | cegcc*)
10976       # When not using gcc, we currently assume that we are using
10977       # Microsoft Visual C++.
10978       # hardcode_libdir_flag_spec is actually meaningless, as there is
10979       # no search path for DLLs.
10980       case $cc_basename in
10981       cl*)
10982         # Native MSVC
10983         hardcode_libdir_flag_spec=' '
10984         allow_undefined_flag=unsupported
10985         always_export_symbols=yes
10986         file_list_spec='@'
10987         # Tell ltmain to make .lib files, not .a files.
10988         libext=lib
10989         # Tell ltmain to make .dll files, not .so files.
10990         shrext_cmds=.dll
10991         # FIXME: Setting linknames here is a bad hack.
10992         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10993         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10994             cp "$export_symbols" "$output_objdir/$soname.def";
10995             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10996           else
10997             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10998           fi~
10999           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11000           linknames='
11001         # The linker will not automatically build a static lib if we build a DLL.
11002         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11003         enable_shared_with_static_runtimes=yes
11004         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11005         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11006         # Don't use ranlib
11007         old_postinstall_cmds='chmod 644 $oldlib'
11008         postlink_cmds='lt_outputfile="@OUTPUT@"~
11009           lt_tool_outputfile="@TOOL_OUTPUT@"~
11010           case $lt_outputfile in
11011             *.exe|*.EXE) ;;
11012             *)
11013               lt_outputfile=$lt_outputfile.exe
11014               lt_tool_outputfile=$lt_tool_outputfile.exe
11015               ;;
11016           esac~
11017           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11018             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11019             $RM "$lt_outputfile.manifest";
11020           fi'
11021         ;;
11022       *)
11023         # Assume MSVC wrapper
11024         hardcode_libdir_flag_spec=' '
11025         allow_undefined_flag=unsupported
11026         # Tell ltmain to make .lib files, not .a files.
11027         libext=lib
11028         # Tell ltmain to make .dll files, not .so files.
11029         shrext_cmds=.dll
11030         # FIXME: Setting linknames here is a bad hack.
11031         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11032         # The linker will automatically build a .lib file if we build a DLL.
11033         old_archive_from_new_cmds='true'
11034         # FIXME: Should let the user specify the lib program.
11035         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11036         enable_shared_with_static_runtimes=yes
11037         ;;
11038       esac
11039       ;;
11040
11041     darwin* | rhapsody*)
11042
11043
11044   archive_cmds_need_lc=no
11045   hardcode_direct=no
11046   hardcode_automatic=yes
11047   hardcode_shlibpath_var=unsupported
11048   if test yes = "$lt_cv_ld_force_load"; then
11049     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\"`'
11050
11051   else
11052     whole_archive_flag_spec=''
11053   fi
11054   link_all_deplibs=yes
11055   allow_undefined_flag=$_lt_dar_allow_undefined
11056   case $cc_basename in
11057      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11058      *) _lt_dar_can_shared=$GCC ;;
11059   esac
11060   if test yes = "$_lt_dar_can_shared"; then
11061     output_verbose_link_cmd=func_echo_all
11062     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11063     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11064     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"
11065     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"
11066
11067   else
11068   ld_shlibs=no
11069   fi
11070
11071       ;;
11072
11073     dgux*)
11074       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11075       hardcode_libdir_flag_spec='-L$libdir'
11076       hardcode_shlibpath_var=no
11077       ;;
11078
11079     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11080     # support.  Future versions do this automatically, but an explicit c++rt0.o
11081     # does not break anything, and helps significantly (at the cost of a little
11082     # extra space).
11083     freebsd2.2*)
11084       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11085       hardcode_libdir_flag_spec='-R$libdir'
11086       hardcode_direct=yes
11087       hardcode_shlibpath_var=no
11088       ;;
11089
11090     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11091     freebsd2.*)
11092       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11093       hardcode_direct=yes
11094       hardcode_minus_L=yes
11095       hardcode_shlibpath_var=no
11096       ;;
11097
11098     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11099     freebsd* | dragonfly*)
11100       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11101       hardcode_libdir_flag_spec='-R$libdir'
11102       hardcode_direct=yes
11103       hardcode_shlibpath_var=no
11104       ;;
11105
11106     hpux9*)
11107       if test yes = "$GCC"; then
11108         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11109       else
11110         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11111       fi
11112       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11113       hardcode_libdir_separator=:
11114       hardcode_direct=yes
11115
11116       # hardcode_minus_L: Not really in the search PATH,
11117       # but as the default location of the library.
11118       hardcode_minus_L=yes
11119       export_dynamic_flag_spec='$wl-E'
11120       ;;
11121
11122     hpux10*)
11123       if test yes,no = "$GCC,$with_gnu_ld"; then
11124         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11125       else
11126         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11127       fi
11128       if test no = "$with_gnu_ld"; then
11129         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11130         hardcode_libdir_separator=:
11131         hardcode_direct=yes
11132         hardcode_direct_absolute=yes
11133         export_dynamic_flag_spec='$wl-E'
11134         # hardcode_minus_L: Not really in the search PATH,
11135         # but as the default location of the library.
11136         hardcode_minus_L=yes
11137       fi
11138       ;;
11139
11140     hpux11*)
11141       if test yes,no = "$GCC,$with_gnu_ld"; then
11142         case $host_cpu in
11143         hppa*64*)
11144           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11145           ;;
11146         ia64*)
11147           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11148           ;;
11149         *)
11150           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11151           ;;
11152         esac
11153       else
11154         case $host_cpu in
11155         hppa*64*)
11156           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11157           ;;
11158         ia64*)
11159           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11160           ;;
11161         *)
11162
11163           # Older versions of the 11.00 compiler do not understand -b yet
11164           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11165           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11166 $as_echo_n "checking if $CC understands -b... " >&6; }
11167 if ${lt_cv_prog_compiler__b+:} false; then :
11168   $as_echo_n "(cached) " >&6
11169 else
11170   lt_cv_prog_compiler__b=no
11171    save_LDFLAGS=$LDFLAGS
11172    LDFLAGS="$LDFLAGS -b"
11173    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11174    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11175      # The linker can only warn and ignore the option if not recognized
11176      # So say no if there are warnings
11177      if test -s conftest.err; then
11178        # Append any errors to the config.log.
11179        cat conftest.err 1>&5
11180        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11181        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11182        if diff conftest.exp conftest.er2 >/dev/null; then
11183          lt_cv_prog_compiler__b=yes
11184        fi
11185      else
11186        lt_cv_prog_compiler__b=yes
11187      fi
11188    fi
11189    $RM -r conftest*
11190    LDFLAGS=$save_LDFLAGS
11191
11192 fi
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11194 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11195
11196 if test yes = "$lt_cv_prog_compiler__b"; then
11197     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11198 else
11199     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11200 fi
11201
11202           ;;
11203         esac
11204       fi
11205       if test no = "$with_gnu_ld"; then
11206         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11207         hardcode_libdir_separator=:
11208
11209         case $host_cpu in
11210         hppa*64*|ia64*)
11211           hardcode_direct=no
11212           hardcode_shlibpath_var=no
11213           ;;
11214         *)
11215           hardcode_direct=yes
11216           hardcode_direct_absolute=yes
11217           export_dynamic_flag_spec='$wl-E'
11218
11219           # hardcode_minus_L: Not really in the search PATH,
11220           # but as the default location of the library.
11221           hardcode_minus_L=yes
11222           ;;
11223         esac
11224       fi
11225       ;;
11226
11227     irix5* | irix6* | nonstopux*)
11228       if test yes = "$GCC"; then
11229         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'
11230         # Try to use the -exported_symbol ld option, if it does not
11231         # work, assume that -exports_file does not work either and
11232         # implicitly export all symbols.
11233         # This should be the same for all languages, so no per-tag cache variable.
11234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11235 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11236 if ${lt_cv_irix_exported_symbol+:} false; then :
11237   $as_echo_n "(cached) " >&6
11238 else
11239   save_LDFLAGS=$LDFLAGS
11240            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11241            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h.  */
11243 int foo (void) { return 0; }
11244 _ACEOF
11245 if ac_fn_c_try_link "$LINENO"; then :
11246   lt_cv_irix_exported_symbol=yes
11247 else
11248   lt_cv_irix_exported_symbol=no
11249 fi
11250 rm -f core conftest.err conftest.$ac_objext \
11251     conftest$ac_exeext conftest.$ac_ext
11252            LDFLAGS=$save_LDFLAGS
11253 fi
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11255 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11256         if test yes = "$lt_cv_irix_exported_symbol"; then
11257           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'
11258         fi
11259       else
11260         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'
11261         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'
11262       fi
11263       archive_cmds_need_lc='no'
11264       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11265       hardcode_libdir_separator=:
11266       inherit_rpath=yes
11267       link_all_deplibs=yes
11268       ;;
11269
11270     linux*)
11271       case $cc_basename in
11272       tcc*)
11273         # Fabrice Bellard et al's Tiny C Compiler
11274         ld_shlibs=yes
11275         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11276         ;;
11277       esac
11278       ;;
11279
11280     netbsd*)
11281       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11282         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11283       else
11284         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11285       fi
11286       hardcode_libdir_flag_spec='-R$libdir'
11287       hardcode_direct=yes
11288       hardcode_shlibpath_var=no
11289       ;;
11290
11291     newsos6)
11292       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11293       hardcode_direct=yes
11294       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11295       hardcode_libdir_separator=:
11296       hardcode_shlibpath_var=no
11297       ;;
11298
11299     *nto* | *qnx*)
11300       ;;
11301
11302     openbsd* | bitrig*)
11303       if test -f /usr/libexec/ld.so; then
11304         hardcode_direct=yes
11305         hardcode_shlibpath_var=no
11306         hardcode_direct_absolute=yes
11307         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11308           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11309           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11310           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11311           export_dynamic_flag_spec='$wl-E'
11312         else
11313           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11314           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11315         fi
11316       else
11317         ld_shlibs=no
11318       fi
11319       ;;
11320
11321     os2*)
11322       hardcode_libdir_flag_spec='-L$libdir'
11323       hardcode_minus_L=yes
11324       allow_undefined_flag=unsupported
11325       shrext_cmds=.dll
11326       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11327         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11328         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11329         $ECHO EXPORTS >> $output_objdir/$libname.def~
11330         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11331         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11332         emximp -o $lib $output_objdir/$libname.def'
11333       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11334         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11335         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11336         $ECHO EXPORTS >> $output_objdir/$libname.def~
11337         prefix_cmds="$SED"~
11338         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11339           prefix_cmds="$prefix_cmds -e 1d";
11340         fi~
11341         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11342         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11343         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11344         emximp -o $lib $output_objdir/$libname.def'
11345       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11346       enable_shared_with_static_runtimes=yes
11347       ;;
11348
11349     osf3*)
11350       if test yes = "$GCC"; then
11351         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11352         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'
11353       else
11354         allow_undefined_flag=' -expect_unresolved \*'
11355         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'
11356       fi
11357       archive_cmds_need_lc='no'
11358       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11359       hardcode_libdir_separator=:
11360       ;;
11361
11362     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11363       if test yes = "$GCC"; then
11364         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11365         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'
11366         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11367       else
11368         allow_undefined_flag=' -expect_unresolved \*'
11369         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'
11370         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~
11371           $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'
11372
11373         # Both c and cxx compiler support -rpath directly
11374         hardcode_libdir_flag_spec='-rpath $libdir'
11375       fi
11376       archive_cmds_need_lc='no'
11377       hardcode_libdir_separator=:
11378       ;;
11379
11380     solaris*)
11381       no_undefined_flag=' -z defs'
11382       if test yes = "$GCC"; then
11383         wlarc='$wl'
11384         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11385         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11386           $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'
11387       else
11388         case `$CC -V 2>&1` in
11389         *"Compilers 5.0"*)
11390           wlarc=''
11391           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11392           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11393             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11394           ;;
11395         *)
11396           wlarc='$wl'
11397           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11398           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11399             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11400           ;;
11401         esac
11402       fi
11403       hardcode_libdir_flag_spec='-R$libdir'
11404       hardcode_shlibpath_var=no
11405       case $host_os in
11406       solaris2.[0-5] | solaris2.[0-5].*) ;;
11407       *)
11408         # The compiler driver will combine and reorder linker options,
11409         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11410         # but is careful enough not to reorder.
11411         # Supported since Solaris 2.6 (maybe 2.5.1?)
11412         if test yes = "$GCC"; then
11413           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11414         else
11415           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11416         fi
11417         ;;
11418       esac
11419       link_all_deplibs=yes
11420       ;;
11421
11422     sunos4*)
11423       if test sequent = "$host_vendor"; then
11424         # Use $CC to link under sequent, because it throws in some extra .o
11425         # files that make .init and .fini sections work.
11426         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11427       else
11428         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11429       fi
11430       hardcode_libdir_flag_spec='-L$libdir'
11431       hardcode_direct=yes
11432       hardcode_minus_L=yes
11433       hardcode_shlibpath_var=no
11434       ;;
11435
11436     sysv4)
11437       case $host_vendor in
11438         sni)
11439           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11440           hardcode_direct=yes # is this really true???
11441         ;;
11442         siemens)
11443           ## LD is ld it makes a PLAMLIB
11444           ## CC just makes a GrossModule.
11445           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11446           reload_cmds='$CC -r -o $output$reload_objs'
11447           hardcode_direct=no
11448         ;;
11449         motorola)
11450           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11451           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11452         ;;
11453       esac
11454       runpath_var='LD_RUN_PATH'
11455       hardcode_shlibpath_var=no
11456       ;;
11457
11458     sysv4.3*)
11459       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11460       hardcode_shlibpath_var=no
11461       export_dynamic_flag_spec='-Bexport'
11462       ;;
11463
11464     sysv4*MP*)
11465       if test -d /usr/nec; then
11466         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11467         hardcode_shlibpath_var=no
11468         runpath_var=LD_RUN_PATH
11469         hardcode_runpath_var=yes
11470         ld_shlibs=yes
11471       fi
11472       ;;
11473
11474     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11475       no_undefined_flag='$wl-z,text'
11476       archive_cmds_need_lc=no
11477       hardcode_shlibpath_var=no
11478       runpath_var='LD_RUN_PATH'
11479
11480       if test yes = "$GCC"; then
11481         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11482         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11483       else
11484         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11485         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11486       fi
11487       ;;
11488
11489     sysv5* | sco3.2v5* | sco5v6*)
11490       # Note: We CANNOT use -z defs as we might desire, because we do not
11491       # link with -lc, and that would cause any symbols used from libc to
11492       # always be unresolved, which means just about no library would
11493       # ever link correctly.  If we're not using GNU ld we use -z text
11494       # though, which does catch some bad symbols but isn't as heavy-handed
11495       # as -z defs.
11496       no_undefined_flag='$wl-z,text'
11497       allow_undefined_flag='$wl-z,nodefs'
11498       archive_cmds_need_lc=no
11499       hardcode_shlibpath_var=no
11500       hardcode_libdir_flag_spec='$wl-R,$libdir'
11501       hardcode_libdir_separator=':'
11502       link_all_deplibs=yes
11503       export_dynamic_flag_spec='$wl-Bexport'
11504       runpath_var='LD_RUN_PATH'
11505
11506       if test yes = "$GCC"; then
11507         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11508         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11509       else
11510         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11511         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11512       fi
11513       ;;
11514
11515     uts4*)
11516       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11517       hardcode_libdir_flag_spec='-L$libdir'
11518       hardcode_shlibpath_var=no
11519       ;;
11520
11521     *)
11522       ld_shlibs=no
11523       ;;
11524     esac
11525
11526     if test sni = "$host_vendor"; then
11527       case $host in
11528       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11529         export_dynamic_flag_spec='$wl-Blargedynsym'
11530         ;;
11531       esac
11532     fi
11533   fi
11534
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11536 $as_echo "$ld_shlibs" >&6; }
11537 test no = "$ld_shlibs" && can_build_shared=no
11538
11539 with_gnu_ld=$with_gnu_ld
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555 #
11556 # Do we need to explicitly link libc?
11557 #
11558 case "x$archive_cmds_need_lc" in
11559 x|xyes)
11560   # Assume -lc should be added
11561   archive_cmds_need_lc=yes
11562
11563   if test yes,yes = "$GCC,$enable_shared"; then
11564     case $archive_cmds in
11565     *'~'*)
11566       # FIXME: we may have to deal with multi-command sequences.
11567       ;;
11568     '$CC '*)
11569       # Test whether the compiler implicitly links with -lc since on some
11570       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11571       # to ld, don't add -lc before -lgcc.
11572       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11573 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11574 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11575   $as_echo_n "(cached) " >&6
11576 else
11577   $RM conftest*
11578         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11579
11580         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11581   (eval $ac_compile) 2>&5
11582   ac_status=$?
11583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584   test $ac_status = 0; } 2>conftest.err; then
11585           soname=conftest
11586           lib=conftest
11587           libobjs=conftest.$ac_objext
11588           deplibs=
11589           wl=$lt_prog_compiler_wl
11590           pic_flag=$lt_prog_compiler_pic
11591           compiler_flags=-v
11592           linker_flags=-v
11593           verstring=
11594           output_objdir=.
11595           libname=conftest
11596           lt_save_allow_undefined_flag=$allow_undefined_flag
11597           allow_undefined_flag=
11598           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11599   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11600   ac_status=$?
11601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11602   test $ac_status = 0; }
11603           then
11604             lt_cv_archive_cmds_need_lc=no
11605           else
11606             lt_cv_archive_cmds_need_lc=yes
11607           fi
11608           allow_undefined_flag=$lt_save_allow_undefined_flag
11609         else
11610           cat conftest.err 1>&5
11611         fi
11612         $RM conftest*
11613
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11616 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11617       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11618       ;;
11619     esac
11620   fi
11621   ;;
11622 esac
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11777
11778 if test yes = "$GCC"; then
11779   case $host_os in
11780     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11781     *) lt_awk_arg='/^libraries:/' ;;
11782   esac
11783   case $host_os in
11784     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11785     *) lt_sed_strip_eq='s|=/|/|g' ;;
11786   esac
11787   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11788   case $lt_search_path_spec in
11789   *\;*)
11790     # if the path contains ";" then we assume it to be the separator
11791     # otherwise default to the standard path separator (i.e. ":") - it is
11792     # assumed that no part of a normal pathname contains ";" but that should
11793     # okay in the real world where ";" in dirpaths is itself problematic.
11794     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11795     ;;
11796   *)
11797     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11798     ;;
11799   esac
11800   # Ok, now we have the path, separated by spaces, we can step through it
11801   # and add multilib dir if necessary...
11802   lt_tmp_lt_search_path_spec=
11803   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11804   # ...but if some path component already ends with the multilib dir we assume
11805   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11806   case "$lt_multi_os_dir; $lt_search_path_spec " in
11807   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11808     lt_multi_os_dir=
11809     ;;
11810   esac
11811   for lt_sys_path in $lt_search_path_spec; do
11812     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11813       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11814     elif test -n "$lt_multi_os_dir"; then
11815       test -d "$lt_sys_path" && \
11816         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11817     fi
11818   done
11819   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11820 BEGIN {RS = " "; FS = "/|\n";} {
11821   lt_foo = "";
11822   lt_count = 0;
11823   for (lt_i = NF; lt_i > 0; lt_i--) {
11824     if ($lt_i != "" && $lt_i != ".") {
11825       if ($lt_i == "..") {
11826         lt_count++;
11827       } else {
11828         if (lt_count == 0) {
11829           lt_foo = "/" $lt_i lt_foo;
11830         } else {
11831           lt_count--;
11832         }
11833       }
11834     }
11835   }
11836   if (lt_foo != "") { lt_freq[lt_foo]++; }
11837   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11838 }'`
11839   # AWK program above erroneously prepends '/' to C:/dos/paths
11840   # for these hosts.
11841   case $host_os in
11842     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11843       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11844   esac
11845   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11846 else
11847   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11848 fi
11849 library_names_spec=
11850 libname_spec='lib$name'
11851 soname_spec=
11852 shrext_cmds=.so
11853 postinstall_cmds=
11854 postuninstall_cmds=
11855 finish_cmds=
11856 finish_eval=
11857 shlibpath_var=
11858 shlibpath_overrides_runpath=unknown
11859 version_type=none
11860 dynamic_linker="$host_os ld.so"
11861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11862 need_lib_prefix=unknown
11863 hardcode_into_libs=no
11864
11865 # when you set need_version to no, make sure it does not cause -set_version
11866 # flags to be left without arguments
11867 need_version=unknown
11868
11869
11870
11871 case $host_os in
11872 aix3*)
11873   version_type=linux # correct to gnu/linux during the next big refactor
11874   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11875   shlibpath_var=LIBPATH
11876
11877   # AIX 3 has no versioning support, so we append a major version to the name.
11878   soname_spec='$libname$release$shared_ext$major'
11879   ;;
11880
11881 aix[4-9]*)
11882   version_type=linux # correct to gnu/linux during the next big refactor
11883   need_lib_prefix=no
11884   need_version=no
11885   hardcode_into_libs=yes
11886   if test ia64 = "$host_cpu"; then
11887     # AIX 5 supports IA64
11888     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11889     shlibpath_var=LD_LIBRARY_PATH
11890   else
11891     # With GCC up to 2.95.x, collect2 would create an import file
11892     # for dependence libraries.  The import file would start with
11893     # the line '#! .'.  This would cause the generated library to
11894     # depend on '.', always an invalid library.  This was fixed in
11895     # development snapshots of GCC prior to 3.0.
11896     case $host_os in
11897       aix4 | aix4.[01] | aix4.[01].*)
11898       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11899            echo ' yes '
11900            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11901         :
11902       else
11903         can_build_shared=no
11904       fi
11905       ;;
11906     esac
11907     # Using Import Files as archive members, it is possible to support
11908     # filename-based versioning of shared library archives on AIX. While
11909     # this would work for both with and without runtime linking, it will
11910     # prevent static linking of such archives. So we do filename-based
11911     # shared library versioning with .so extension only, which is used
11912     # when both runtime linking and shared linking is enabled.
11913     # Unfortunately, runtime linking may impact performance, so we do
11914     # not want this to be the default eventually. Also, we use the
11915     # versioned .so libs for executables only if there is the -brtl
11916     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11917     # To allow for filename-based versioning support, we need to create
11918     # libNAME.so.V as an archive file, containing:
11919     # *) an Import File, referring to the versioned filename of the
11920     #    archive as well as the shared archive member, telling the
11921     #    bitwidth (32 or 64) of that shared object, and providing the
11922     #    list of exported symbols of that shared object, eventually
11923     #    decorated with the 'weak' keyword
11924     # *) the shared object with the F_LOADONLY flag set, to really avoid
11925     #    it being seen by the linker.
11926     # At run time we better use the real file rather than another symlink,
11927     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11928
11929     case $with_aix_soname,$aix_use_runtimelinking in
11930     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11931     # soname into executable. Probably we can add versioning support to
11932     # collect2, so additional links can be useful in future.
11933     aix,yes) # traditional libtool
11934       dynamic_linker='AIX unversionable lib.so'
11935       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11936       # instead of lib<name>.a to let people know that these are not
11937       # typical AIX shared libraries.
11938       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11939       ;;
11940     aix,no) # traditional AIX only
11941       dynamic_linker='AIX lib.a(lib.so.V)'
11942       # We preserve .a as extension for shared libraries through AIX4.2
11943       # and later when we are not doing run time linking.
11944       library_names_spec='$libname$release.a $libname.a'
11945       soname_spec='$libname$release$shared_ext$major'
11946       ;;
11947     svr4,*) # full svr4 only
11948       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11949       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11950       # We do not specify a path in Import Files, so LIBPATH fires.
11951       shlibpath_overrides_runpath=yes
11952       ;;
11953     *,yes) # both, prefer svr4
11954       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11955       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11956       # unpreferred sharedlib libNAME.a needs extra handling
11957       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11958       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11959       # We do not specify a path in Import Files, so LIBPATH fires.
11960       shlibpath_overrides_runpath=yes
11961       ;;
11962     *,no) # both, prefer aix
11963       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11964       library_names_spec='$libname$release.a $libname.a'
11965       soname_spec='$libname$release$shared_ext$major'
11966       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11967       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11968       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11969       ;;
11970     esac
11971     shlibpath_var=LIBPATH
11972   fi
11973   ;;
11974
11975 amigaos*)
11976   case $host_cpu in
11977   powerpc)
11978     # Since July 2007 AmigaOS4 officially supports .so libraries.
11979     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11980     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981     ;;
11982   m68k)
11983     library_names_spec='$libname.ixlibrary $libname.a'
11984     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11985     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11986     ;;
11987   esac
11988   ;;
11989
11990 beos*)
11991   library_names_spec='$libname$shared_ext'
11992   dynamic_linker="$host_os ld.so"
11993   shlibpath_var=LIBRARY_PATH
11994   ;;
11995
11996 bsdi[45]*)
11997   version_type=linux # correct to gnu/linux during the next big refactor
11998   need_version=no
11999   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12000   soname_spec='$libname$release$shared_ext$major'
12001   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12002   shlibpath_var=LD_LIBRARY_PATH
12003   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12004   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12005   # the default ld.so.conf also contains /usr/contrib/lib and
12006   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12007   # libtool to hard-code these into programs
12008   ;;
12009
12010 cygwin* | mingw* | pw32* | cegcc*)
12011   version_type=windows
12012   shrext_cmds=.dll
12013   need_version=no
12014   need_lib_prefix=no
12015
12016   case $GCC,$cc_basename in
12017   yes,*)
12018     # gcc
12019     library_names_spec='$libname.dll.a'
12020     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12021     postinstall_cmds='base_file=`basename \$file`~
12022       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12023       dldir=$destdir/`dirname \$dlpath`~
12024       test -d \$dldir || mkdir -p \$dldir~
12025       $install_prog $dir/$dlname \$dldir/$dlname~
12026       chmod a+x \$dldir/$dlname~
12027       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12028         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12029       fi'
12030     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12031       dlpath=$dir/\$dldll~
12032        $RM \$dlpath'
12033     shlibpath_overrides_runpath=yes
12034
12035     case $host_os in
12036     cygwin*)
12037       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12038       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12039
12040       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12041       ;;
12042     mingw* | cegcc*)
12043       # MinGW DLLs use traditional 'lib' prefix
12044       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12045       ;;
12046     pw32*)
12047       # pw32 DLLs use 'pw' prefix rather than 'lib'
12048       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12049       ;;
12050     esac
12051     dynamic_linker='Win32 ld.exe'
12052     ;;
12053
12054   *,cl*)
12055     # Native MSVC
12056     libname_spec='$name'
12057     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12058     library_names_spec='$libname.dll.lib'
12059
12060     case $build_os in
12061     mingw*)
12062       sys_lib_search_path_spec=
12063       lt_save_ifs=$IFS
12064       IFS=';'
12065       for lt_path in $LIB
12066       do
12067         IFS=$lt_save_ifs
12068         # Let DOS variable expansion print the short 8.3 style file name.
12069         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12070         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12071       done
12072       IFS=$lt_save_ifs
12073       # Convert to MSYS style.
12074       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12075       ;;
12076     cygwin*)
12077       # Convert to unix form, then to dos form, then back to unix form
12078       # but this time dos style (no spaces!) so that the unix form looks
12079       # like /cygdrive/c/PROGRA~1:/cygdr...
12080       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12081       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12082       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12083       ;;
12084     *)
12085       sys_lib_search_path_spec=$LIB
12086       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12087         # It is most probably a Windows format PATH.
12088         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12089       else
12090         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12091       fi
12092       # FIXME: find the short name or the path components, as spaces are
12093       # common. (e.g. "Program Files" -> "PROGRA~1")
12094       ;;
12095     esac
12096
12097     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12098     postinstall_cmds='base_file=`basename \$file`~
12099       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12100       dldir=$destdir/`dirname \$dlpath`~
12101       test -d \$dldir || mkdir -p \$dldir~
12102       $install_prog $dir/$dlname \$dldir/$dlname'
12103     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12104       dlpath=$dir/\$dldll~
12105        $RM \$dlpath'
12106     shlibpath_overrides_runpath=yes
12107     dynamic_linker='Win32 link.exe'
12108     ;;
12109
12110   *)
12111     # Assume MSVC wrapper
12112     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12113     dynamic_linker='Win32 ld.exe'
12114     ;;
12115   esac
12116   # FIXME: first we should search . and the directory the executable is in
12117   shlibpath_var=PATH
12118   ;;
12119
12120 darwin* | rhapsody*)
12121   dynamic_linker="$host_os dyld"
12122   version_type=darwin
12123   need_lib_prefix=no
12124   need_version=no
12125   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12126   soname_spec='$libname$release$major$shared_ext'
12127   shlibpath_overrides_runpath=yes
12128   shlibpath_var=DYLD_LIBRARY_PATH
12129   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12130
12131   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12132   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12133   ;;
12134
12135 dgux*)
12136   version_type=linux # correct to gnu/linux during the next big refactor
12137   need_lib_prefix=no
12138   need_version=no
12139   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12140   soname_spec='$libname$release$shared_ext$major'
12141   shlibpath_var=LD_LIBRARY_PATH
12142   ;;
12143
12144 freebsd* | dragonfly*)
12145   # DragonFly does not have aout.  When/if they implement a new
12146   # versioning mechanism, adjust this.
12147   if test -x /usr/bin/objformat; then
12148     objformat=`/usr/bin/objformat`
12149   else
12150     case $host_os in
12151     freebsd[23].*) objformat=aout ;;
12152     *) objformat=elf ;;
12153     esac
12154   fi
12155   version_type=freebsd-$objformat
12156   case $version_type in
12157     freebsd-elf*)
12158       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12159       soname_spec='$libname$release$shared_ext$major'
12160       need_version=no
12161       need_lib_prefix=no
12162       ;;
12163     freebsd-*)
12164       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12165       need_version=yes
12166       ;;
12167   esac
12168   shlibpath_var=LD_LIBRARY_PATH
12169   case $host_os in
12170   freebsd2.*)
12171     shlibpath_overrides_runpath=yes
12172     ;;
12173   freebsd3.[01]* | freebsdelf3.[01]*)
12174     shlibpath_overrides_runpath=yes
12175     hardcode_into_libs=yes
12176     ;;
12177   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12178   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12179     shlibpath_overrides_runpath=no
12180     hardcode_into_libs=yes
12181     ;;
12182   *) # from 4.6 on, and DragonFly
12183     shlibpath_overrides_runpath=yes
12184     hardcode_into_libs=yes
12185     ;;
12186   esac
12187   ;;
12188
12189 haiku*)
12190   version_type=linux # correct to gnu/linux during the next big refactor
12191   need_lib_prefix=no
12192   need_version=no
12193   dynamic_linker="$host_os runtime_loader"
12194   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12195   soname_spec='$libname$release$shared_ext$major'
12196   shlibpath_var=LIBRARY_PATH
12197   shlibpath_overrides_runpath=no
12198   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12199   hardcode_into_libs=yes
12200   ;;
12201
12202 hpux9* | hpux10* | hpux11*)
12203   # Give a soname corresponding to the major version so that dld.sl refuses to
12204   # link against other versions.
12205   version_type=sunos
12206   need_lib_prefix=no
12207   need_version=no
12208   case $host_cpu in
12209   ia64*)
12210     shrext_cmds='.so'
12211     hardcode_into_libs=yes
12212     dynamic_linker="$host_os dld.so"
12213     shlibpath_var=LD_LIBRARY_PATH
12214     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12215     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12216     soname_spec='$libname$release$shared_ext$major'
12217     if test 32 = "$HPUX_IA64_MODE"; then
12218       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12219       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12220     else
12221       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12222       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12223     fi
12224     ;;
12225   hppa*64*)
12226     shrext_cmds='.sl'
12227     hardcode_into_libs=yes
12228     dynamic_linker="$host_os dld.sl"
12229     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12230     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12231     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232     soname_spec='$libname$release$shared_ext$major'
12233     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12234     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12235     ;;
12236   *)
12237     shrext_cmds='.sl'
12238     dynamic_linker="$host_os dld.sl"
12239     shlibpath_var=SHLIB_PATH
12240     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12241     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12242     soname_spec='$libname$release$shared_ext$major'
12243     ;;
12244   esac
12245   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12246   postinstall_cmds='chmod 555 $lib'
12247   # or fails outright, so override atomically:
12248   install_override_mode=555
12249   ;;
12250
12251 interix[3-9]*)
12252   version_type=linux # correct to gnu/linux during the next big refactor
12253   need_lib_prefix=no
12254   need_version=no
12255   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256   soname_spec='$libname$release$shared_ext$major'
12257   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12258   shlibpath_var=LD_LIBRARY_PATH
12259   shlibpath_overrides_runpath=no
12260   hardcode_into_libs=yes
12261   ;;
12262
12263 irix5* | irix6* | nonstopux*)
12264   case $host_os in
12265     nonstopux*) version_type=nonstopux ;;
12266     *)
12267         if test yes = "$lt_cv_prog_gnu_ld"; then
12268                 version_type=linux # correct to gnu/linux during the next big refactor
12269         else
12270                 version_type=irix
12271         fi ;;
12272   esac
12273   need_lib_prefix=no
12274   need_version=no
12275   soname_spec='$libname$release$shared_ext$major'
12276   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12277   case $host_os in
12278   irix5* | nonstopux*)
12279     libsuff= shlibsuff=
12280     ;;
12281   *)
12282     case $LD in # libtool.m4 will add one of these switches to LD
12283     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12284       libsuff= shlibsuff= libmagic=32-bit;;
12285     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12286       libsuff=32 shlibsuff=N32 libmagic=N32;;
12287     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12288       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12289     *) libsuff= shlibsuff= libmagic=never-match;;
12290     esac
12291     ;;
12292   esac
12293   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12294   shlibpath_overrides_runpath=no
12295   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12296   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12297   hardcode_into_libs=yes
12298   ;;
12299
12300 # No shared lib support for Linux oldld, aout, or coff.
12301 linux*oldld* | linux*aout* | linux*coff*)
12302   dynamic_linker=no
12303   ;;
12304
12305 linux*android*)
12306   version_type=none # Android doesn't support versioned libraries.
12307   need_lib_prefix=no
12308   need_version=no
12309   library_names_spec='$libname$release$shared_ext'
12310   soname_spec='$libname$release$shared_ext'
12311   finish_cmds=
12312   shlibpath_var=LD_LIBRARY_PATH
12313   shlibpath_overrides_runpath=yes
12314
12315   # This implies no fast_install, which is unacceptable.
12316   # Some rework will be needed to allow for fast_install
12317   # before this can be enabled.
12318   hardcode_into_libs=yes
12319
12320   dynamic_linker='Android linker'
12321   # Don't embed -rpath directories since the linker doesn't support them.
12322   hardcode_libdir_flag_spec='-L$libdir'
12323   ;;
12324
12325 # This must be glibc/ELF.
12326 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12327   version_type=linux # correct to gnu/linux during the next big refactor
12328   need_lib_prefix=no
12329   need_version=no
12330   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331   soname_spec='$libname$release$shared_ext$major'
12332   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12333   shlibpath_var=LD_LIBRARY_PATH
12334   shlibpath_overrides_runpath=no
12335
12336   # Some binutils ld are patched to set DT_RUNPATH
12337   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12338   $as_echo_n "(cached) " >&6
12339 else
12340   lt_cv_shlibpath_overrides_runpath=no
12341     save_LDFLAGS=$LDFLAGS
12342     save_libdir=$libdir
12343     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12344          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12345     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h.  */
12347
12348 int
12349 main ()
12350 {
12351
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 if ac_fn_c_try_link "$LINENO"; then :
12357   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12358   lt_cv_shlibpath_overrides_runpath=yes
12359 fi
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext \
12362     conftest$ac_exeext conftest.$ac_ext
12363     LDFLAGS=$save_LDFLAGS
12364     libdir=$save_libdir
12365
12366 fi
12367
12368   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12369
12370   # This implies no fast_install, which is unacceptable.
12371   # Some rework will be needed to allow for fast_install
12372   # before this can be enabled.
12373   hardcode_into_libs=yes
12374
12375   # Ideally, we could use ldconfig to report *all* directores which are
12376   # searched for libraries, however this is still not possible.  Aside from not
12377   # being certain /sbin/ldconfig is available, command
12378   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12379   # even though it is searched at run-time.  Try to do the best guess by
12380   # appending ld.so.conf contents (and includes) to the search path.
12381   if test -f /etc/ld.so.conf; then
12382     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' ' '`
12383     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12384   fi
12385
12386   # We used to test for /lib/ld.so.1 and disable shared libraries on
12387   # powerpc, because MkLinux only supported shared libraries with the
12388   # GNU dynamic linker.  Since this was broken with cross compilers,
12389   # most powerpc-linux boxes support dynamic linking these days and
12390   # people can always --disable-shared, the test was removed, and we
12391   # assume the GNU/Linux dynamic linker is in use.
12392   dynamic_linker='GNU/Linux ld.so'
12393   ;;
12394
12395 netbsd*)
12396   version_type=sunos
12397   need_lib_prefix=no
12398   need_version=no
12399   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12400     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12401     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12402     dynamic_linker='NetBSD (a.out) ld.so'
12403   else
12404     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12405     soname_spec='$libname$release$shared_ext$major'
12406     dynamic_linker='NetBSD ld.elf_so'
12407   fi
12408   shlibpath_var=LD_LIBRARY_PATH
12409   shlibpath_overrides_runpath=yes
12410   hardcode_into_libs=yes
12411   ;;
12412
12413 newsos6)
12414   version_type=linux # correct to gnu/linux during the next big refactor
12415   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12416   shlibpath_var=LD_LIBRARY_PATH
12417   shlibpath_overrides_runpath=yes
12418   ;;
12419
12420 *nto* | *qnx*)
12421   version_type=qnx
12422   need_lib_prefix=no
12423   need_version=no
12424   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12425   soname_spec='$libname$release$shared_ext$major'
12426   shlibpath_var=LD_LIBRARY_PATH
12427   shlibpath_overrides_runpath=no
12428   hardcode_into_libs=yes
12429   dynamic_linker='ldqnx.so'
12430   ;;
12431
12432 openbsd* | bitrig*)
12433   version_type=sunos
12434   sys_lib_dlsearch_path_spec=/usr/lib
12435   need_lib_prefix=no
12436   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12437     need_version=no
12438   else
12439     need_version=yes
12440   fi
12441   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12442   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12443   shlibpath_var=LD_LIBRARY_PATH
12444   shlibpath_overrides_runpath=yes
12445   ;;
12446
12447 os2*)
12448   libname_spec='$name'
12449   version_type=windows
12450   shrext_cmds=.dll
12451   need_version=no
12452   need_lib_prefix=no
12453   # OS/2 can only load a DLL with a base name of 8 characters or less.
12454   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12455     v=$($ECHO $release$versuffix | tr -d .-);
12456     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12457     $ECHO $n$v`$shared_ext'
12458   library_names_spec='${libname}_dll.$libext'
12459   dynamic_linker='OS/2 ld.exe'
12460   shlibpath_var=BEGINLIBPATH
12461   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12462   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12463   postinstall_cmds='base_file=`basename \$file`~
12464     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12465     dldir=$destdir/`dirname \$dlpath`~
12466     test -d \$dldir || mkdir -p \$dldir~
12467     $install_prog $dir/$dlname \$dldir/$dlname~
12468     chmod a+x \$dldir/$dlname~
12469     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12470       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12471     fi'
12472   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12473     dlpath=$dir/\$dldll~
12474     $RM \$dlpath'
12475   ;;
12476
12477 osf3* | osf4* | osf5*)
12478   version_type=osf
12479   need_lib_prefix=no
12480   need_version=no
12481   soname_spec='$libname$release$shared_ext$major'
12482   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483   shlibpath_var=LD_LIBRARY_PATH
12484   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12485   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12486   ;;
12487
12488 rdos*)
12489   dynamic_linker=no
12490   ;;
12491
12492 solaris*)
12493   version_type=linux # correct to gnu/linux during the next big refactor
12494   need_lib_prefix=no
12495   need_version=no
12496   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497   soname_spec='$libname$release$shared_ext$major'
12498   shlibpath_var=LD_LIBRARY_PATH
12499   shlibpath_overrides_runpath=yes
12500   hardcode_into_libs=yes
12501   # ldd complains unless libraries are executable
12502   postinstall_cmds='chmod +x $lib'
12503   ;;
12504
12505 sunos4*)
12506   version_type=sunos
12507   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12508   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12509   shlibpath_var=LD_LIBRARY_PATH
12510   shlibpath_overrides_runpath=yes
12511   if test yes = "$with_gnu_ld"; then
12512     need_lib_prefix=no
12513   fi
12514   need_version=yes
12515   ;;
12516
12517 sysv4 | sysv4.3*)
12518   version_type=linux # correct to gnu/linux during the next big refactor
12519   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12520   soname_spec='$libname$release$shared_ext$major'
12521   shlibpath_var=LD_LIBRARY_PATH
12522   case $host_vendor in
12523     sni)
12524       shlibpath_overrides_runpath=no
12525       need_lib_prefix=no
12526       runpath_var=LD_RUN_PATH
12527       ;;
12528     siemens)
12529       need_lib_prefix=no
12530       ;;
12531     motorola)
12532       need_lib_prefix=no
12533       need_version=no
12534       shlibpath_overrides_runpath=no
12535       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12536       ;;
12537   esac
12538   ;;
12539
12540 sysv4*MP*)
12541   if test -d /usr/nec; then
12542     version_type=linux # correct to gnu/linux during the next big refactor
12543     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12544     soname_spec='$libname$shared_ext.$major'
12545     shlibpath_var=LD_LIBRARY_PATH
12546   fi
12547   ;;
12548
12549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12550   version_type=sco
12551   need_lib_prefix=no
12552   need_version=no
12553   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12554   soname_spec='$libname$release$shared_ext$major'
12555   shlibpath_var=LD_LIBRARY_PATH
12556   shlibpath_overrides_runpath=yes
12557   hardcode_into_libs=yes
12558   if test yes = "$with_gnu_ld"; then
12559     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12560   else
12561     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12562     case $host_os in
12563       sco3.2v5*)
12564         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12565         ;;
12566     esac
12567   fi
12568   sys_lib_dlsearch_path_spec='/usr/lib'
12569   ;;
12570
12571 tpf*)
12572   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12573   version_type=linux # correct to gnu/linux during the next big refactor
12574   need_lib_prefix=no
12575   need_version=no
12576   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12577   shlibpath_var=LD_LIBRARY_PATH
12578   shlibpath_overrides_runpath=no
12579   hardcode_into_libs=yes
12580   ;;
12581
12582 uts4*)
12583   version_type=linux # correct to gnu/linux during the next big refactor
12584   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12585   soname_spec='$libname$release$shared_ext$major'
12586   shlibpath_var=LD_LIBRARY_PATH
12587   ;;
12588
12589 *)
12590   dynamic_linker=no
12591   ;;
12592 esac
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12594 $as_echo "$dynamic_linker" >&6; }
12595 test no = "$dynamic_linker" && can_build_shared=no
12596
12597 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12598 if test yes = "$GCC"; then
12599   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12600 fi
12601
12602 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12603   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12604 fi
12605
12606 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12607   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12608 fi
12609
12610 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12611 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12612
12613 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12614 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12615
12616 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12617 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12716 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12717 hardcode_action=
12718 if test -n "$hardcode_libdir_flag_spec" ||
12719    test -n "$runpath_var" ||
12720    test yes = "$hardcode_automatic"; then
12721
12722   # We can hardcode non-existent directories.
12723   if test no != "$hardcode_direct" &&
12724      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12725      # have to relink, otherwise we might link with an installed library
12726      # when we should be linking with a yet-to-be-installed one
12727      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12728      test no != "$hardcode_minus_L"; then
12729     # Linking always hardcodes the temporary library directory.
12730     hardcode_action=relink
12731   else
12732     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12733     hardcode_action=immediate
12734   fi
12735 else
12736   # We cannot hardcode anything, or else we can only hardcode existing
12737   # directories.
12738   hardcode_action=unsupported
12739 fi
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12741 $as_echo "$hardcode_action" >&6; }
12742
12743 if test relink = "$hardcode_action" ||
12744    test yes = "$inherit_rpath"; then
12745   # Fast installation is not supported
12746   enable_fast_install=no
12747 elif test yes = "$shlibpath_overrides_runpath" ||
12748      test no = "$enable_shared"; then
12749   # Fast installation is not necessary
12750   enable_fast_install=needless
12751 fi
12752
12753
12754
12755
12756
12757
12758   if test yes != "$enable_dlopen"; then
12759   enable_dlopen=unknown
12760   enable_dlopen_self=unknown
12761   enable_dlopen_self_static=unknown
12762 else
12763   lt_cv_dlopen=no
12764   lt_cv_dlopen_libs=
12765
12766   case $host_os in
12767   beos*)
12768     lt_cv_dlopen=load_add_on
12769     lt_cv_dlopen_libs=
12770     lt_cv_dlopen_self=yes
12771     ;;
12772
12773   mingw* | pw32* | cegcc*)
12774     lt_cv_dlopen=LoadLibrary
12775     lt_cv_dlopen_libs=
12776     ;;
12777
12778   cygwin*)
12779     lt_cv_dlopen=dlopen
12780     lt_cv_dlopen_libs=
12781     ;;
12782
12783   darwin*)
12784     # if libdl is installed we need to link against it
12785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12786 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12787 if ${ac_cv_lib_dl_dlopen+:} false; then :
12788   $as_echo_n "(cached) " >&6
12789 else
12790   ac_check_lib_save_LIBS=$LIBS
12791 LIBS="-ldl  $LIBS"
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h.  */
12794
12795 /* Override any GCC internal prototype to avoid an error.
12796    Use char because int might match the return type of a GCC
12797    builtin and then its argument prototype would still apply.  */
12798 #ifdef __cplusplus
12799 extern "C"
12800 #endif
12801 char dlopen ();
12802 int
12803 main ()
12804 {
12805 return dlopen ();
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_link "$LINENO"; then :
12811   ac_cv_lib_dl_dlopen=yes
12812 else
12813   ac_cv_lib_dl_dlopen=no
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext \
12816     conftest$ac_exeext conftest.$ac_ext
12817 LIBS=$ac_check_lib_save_LIBS
12818 fi
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12820 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12821 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12822   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12823 else
12824
12825     lt_cv_dlopen=dyld
12826     lt_cv_dlopen_libs=
12827     lt_cv_dlopen_self=yes
12828
12829 fi
12830
12831     ;;
12832
12833   tpf*)
12834     # Don't try to run any link tests for TPF.  We know it's impossible
12835     # because TPF is a cross-compiler, and we know how we open DSOs.
12836     lt_cv_dlopen=dlopen
12837     lt_cv_dlopen_libs=
12838     lt_cv_dlopen_self=no
12839     ;;
12840
12841   *)
12842     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12843 if test "x$ac_cv_func_shl_load" = xyes; then :
12844   lt_cv_dlopen=shl_load
12845 else
12846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12847 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12848 if ${ac_cv_lib_dld_shl_load+:} false; then :
12849   $as_echo_n "(cached) " >&6
12850 else
12851   ac_check_lib_save_LIBS=$LIBS
12852 LIBS="-ldld  $LIBS"
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h.  */
12855
12856 /* Override any GCC internal prototype to avoid an error.
12857    Use char because int might match the return type of a GCC
12858    builtin and then its argument prototype would still apply.  */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 char shl_load ();
12863 int
12864 main ()
12865 {
12866 return shl_load ();
12867   ;
12868   return 0;
12869 }
12870 _ACEOF
12871 if ac_fn_c_try_link "$LINENO"; then :
12872   ac_cv_lib_dld_shl_load=yes
12873 else
12874   ac_cv_lib_dld_shl_load=no
12875 fi
12876 rm -f core conftest.err conftest.$ac_objext \
12877     conftest$ac_exeext conftest.$ac_ext
12878 LIBS=$ac_check_lib_save_LIBS
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12881 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12882 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12883   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12884 else
12885   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12886 if test "x$ac_cv_func_dlopen" = xyes; then :
12887   lt_cv_dlopen=dlopen
12888 else
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12891 if ${ac_cv_lib_dl_dlopen+:} false; then :
12892   $as_echo_n "(cached) " >&6
12893 else
12894   ac_check_lib_save_LIBS=$LIBS
12895 LIBS="-ldl  $LIBS"
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h.  */
12898
12899 /* Override any GCC internal prototype to avoid an error.
12900    Use char because int might match the return type of a GCC
12901    builtin and then its argument prototype would still apply.  */
12902 #ifdef __cplusplus
12903 extern "C"
12904 #endif
12905 char dlopen ();
12906 int
12907 main ()
12908 {
12909 return dlopen ();
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 if ac_fn_c_try_link "$LINENO"; then :
12915   ac_cv_lib_dl_dlopen=yes
12916 else
12917   ac_cv_lib_dl_dlopen=no
12918 fi
12919 rm -f core conftest.err conftest.$ac_objext \
12920     conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12922 fi
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12924 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12925 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12926   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12927 else
12928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12929 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12930 if ${ac_cv_lib_svld_dlopen+:} false; then :
12931   $as_echo_n "(cached) " >&6
12932 else
12933   ac_check_lib_save_LIBS=$LIBS
12934 LIBS="-lsvld  $LIBS"
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h.  */
12937
12938 /* Override any GCC internal prototype to avoid an error.
12939    Use char because int might match the return type of a GCC
12940    builtin and then its argument prototype would still apply.  */
12941 #ifdef __cplusplus
12942 extern "C"
12943 #endif
12944 char dlopen ();
12945 int
12946 main ()
12947 {
12948 return dlopen ();
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 if ac_fn_c_try_link "$LINENO"; then :
12954   ac_cv_lib_svld_dlopen=yes
12955 else
12956   ac_cv_lib_svld_dlopen=no
12957 fi
12958 rm -f core conftest.err conftest.$ac_objext \
12959     conftest$ac_exeext conftest.$ac_ext
12960 LIBS=$ac_check_lib_save_LIBS
12961 fi
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12963 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12964 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12965   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12966 else
12967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12968 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12969 if ${ac_cv_lib_dld_dld_link+:} false; then :
12970   $as_echo_n "(cached) " >&6
12971 else
12972   ac_check_lib_save_LIBS=$LIBS
12973 LIBS="-ldld  $LIBS"
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h.  */
12976
12977 /* Override any GCC internal prototype to avoid an error.
12978    Use char because int might match the return type of a GCC
12979    builtin and then its argument prototype would still apply.  */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char dld_link ();
12984 int
12985 main ()
12986 {
12987 return dld_link ();
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 if ac_fn_c_try_link "$LINENO"; then :
12993   ac_cv_lib_dld_dld_link=yes
12994 else
12995   ac_cv_lib_dld_dld_link=no
12996 fi
12997 rm -f core conftest.err conftest.$ac_objext \
12998     conftest$ac_exeext conftest.$ac_ext
12999 LIBS=$ac_check_lib_save_LIBS
13000 fi
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13002 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13003 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13004   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13005 fi
13006
13007
13008 fi
13009
13010
13011 fi
13012
13013
13014 fi
13015
13016
13017 fi
13018
13019
13020 fi
13021
13022     ;;
13023   esac
13024
13025   if test no = "$lt_cv_dlopen"; then
13026     enable_dlopen=no
13027   else
13028     enable_dlopen=yes
13029   fi
13030
13031   case $lt_cv_dlopen in
13032   dlopen)
13033     save_CPPFLAGS=$CPPFLAGS
13034     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13035
13036     save_LDFLAGS=$LDFLAGS
13037     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13038
13039     save_LIBS=$LIBS
13040     LIBS="$lt_cv_dlopen_libs $LIBS"
13041
13042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13043 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13044 if ${lt_cv_dlopen_self+:} false; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047           if test yes = "$cross_compiling"; then :
13048   lt_cv_dlopen_self=cross
13049 else
13050   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13051   lt_status=$lt_dlunknown
13052   cat > conftest.$ac_ext <<_LT_EOF
13053 #line $LINENO "configure"
13054 #include "confdefs.h"
13055
13056 #if HAVE_DLFCN_H
13057 #include <dlfcn.h>
13058 #endif
13059
13060 #include <stdio.h>
13061
13062 #ifdef RTLD_GLOBAL
13063 #  define LT_DLGLOBAL           RTLD_GLOBAL
13064 #else
13065 #  ifdef DL_GLOBAL
13066 #    define LT_DLGLOBAL         DL_GLOBAL
13067 #  else
13068 #    define LT_DLGLOBAL         0
13069 #  endif
13070 #endif
13071
13072 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13073    find out it does not work in some platform. */
13074 #ifndef LT_DLLAZY_OR_NOW
13075 #  ifdef RTLD_LAZY
13076 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13077 #  else
13078 #    ifdef DL_LAZY
13079 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13080 #    else
13081 #      ifdef RTLD_NOW
13082 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13083 #      else
13084 #        ifdef DL_NOW
13085 #          define LT_DLLAZY_OR_NOW      DL_NOW
13086 #        else
13087 #          define LT_DLLAZY_OR_NOW      0
13088 #        endif
13089 #      endif
13090 #    endif
13091 #  endif
13092 #endif
13093
13094 /* When -fvisibility=hidden is used, assume the code has been annotated
13095    correspondingly for the symbols needed.  */
13096 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13097 int fnord () __attribute__((visibility("default")));
13098 #endif
13099
13100 int fnord () { return 42; }
13101 int main ()
13102 {
13103   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13104   int status = $lt_dlunknown;
13105
13106   if (self)
13107     {
13108       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13109       else
13110         {
13111           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13112           else puts (dlerror ());
13113         }
13114       /* dlclose (self); */
13115     }
13116   else
13117     puts (dlerror ());
13118
13119   return status;
13120 }
13121 _LT_EOF
13122   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13123   (eval $ac_link) 2>&5
13124   ac_status=$?
13125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13126   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13127     (./conftest; exit; ) >&5 2>/dev/null
13128     lt_status=$?
13129     case x$lt_status in
13130       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13131       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13132       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13133     esac
13134   else :
13135     # compilation failed
13136     lt_cv_dlopen_self=no
13137   fi
13138 fi
13139 rm -fr conftest*
13140
13141
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13144 $as_echo "$lt_cv_dlopen_self" >&6; }
13145
13146     if test yes = "$lt_cv_dlopen_self"; then
13147       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13148       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13149 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13150 if ${lt_cv_dlopen_self_static+:} false; then :
13151   $as_echo_n "(cached) " >&6
13152 else
13153           if test yes = "$cross_compiling"; then :
13154   lt_cv_dlopen_self_static=cross
13155 else
13156   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13157   lt_status=$lt_dlunknown
13158   cat > conftest.$ac_ext <<_LT_EOF
13159 #line $LINENO "configure"
13160 #include "confdefs.h"
13161
13162 #if HAVE_DLFCN_H
13163 #include <dlfcn.h>
13164 #endif
13165
13166 #include <stdio.h>
13167
13168 #ifdef RTLD_GLOBAL
13169 #  define LT_DLGLOBAL           RTLD_GLOBAL
13170 #else
13171 #  ifdef DL_GLOBAL
13172 #    define LT_DLGLOBAL         DL_GLOBAL
13173 #  else
13174 #    define LT_DLGLOBAL         0
13175 #  endif
13176 #endif
13177
13178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13179    find out it does not work in some platform. */
13180 #ifndef LT_DLLAZY_OR_NOW
13181 #  ifdef RTLD_LAZY
13182 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13183 #  else
13184 #    ifdef DL_LAZY
13185 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13186 #    else
13187 #      ifdef RTLD_NOW
13188 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13189 #      else
13190 #        ifdef DL_NOW
13191 #          define LT_DLLAZY_OR_NOW      DL_NOW
13192 #        else
13193 #          define LT_DLLAZY_OR_NOW      0
13194 #        endif
13195 #      endif
13196 #    endif
13197 #  endif
13198 #endif
13199
13200 /* When -fvisibility=hidden is used, assume the code has been annotated
13201    correspondingly for the symbols needed.  */
13202 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13203 int fnord () __attribute__((visibility("default")));
13204 #endif
13205
13206 int fnord () { return 42; }
13207 int main ()
13208 {
13209   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13210   int status = $lt_dlunknown;
13211
13212   if (self)
13213     {
13214       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13215       else
13216         {
13217           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13218           else puts (dlerror ());
13219         }
13220       /* dlclose (self); */
13221     }
13222   else
13223     puts (dlerror ());
13224
13225   return status;
13226 }
13227 _LT_EOF
13228   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13229   (eval $ac_link) 2>&5
13230   ac_status=$?
13231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13232   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13233     (./conftest; exit; ) >&5 2>/dev/null
13234     lt_status=$?
13235     case x$lt_status in
13236       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13237       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13238       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13239     esac
13240   else :
13241     # compilation failed
13242     lt_cv_dlopen_self_static=no
13243   fi
13244 fi
13245 rm -fr conftest*
13246
13247
13248 fi
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13250 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13251     fi
13252
13253     CPPFLAGS=$save_CPPFLAGS
13254     LDFLAGS=$save_LDFLAGS
13255     LIBS=$save_LIBS
13256     ;;
13257   esac
13258
13259   case $lt_cv_dlopen_self in
13260   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13261   *) enable_dlopen_self=unknown ;;
13262   esac
13263
13264   case $lt_cv_dlopen_self_static in
13265   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13266   *) enable_dlopen_self_static=unknown ;;
13267   esac
13268 fi
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286 striplib=
13287 old_striplib=
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13289 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13290 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13291   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13292   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13294 $as_echo "yes" >&6; }
13295 else
13296 # FIXME - insert some real tests, host_os isn't really good enough
13297   case $host_os in
13298   darwin*)
13299     if test -n "$STRIP"; then
13300       striplib="$STRIP -x"
13301       old_striplib="$STRIP -S"
13302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13303 $as_echo "yes" >&6; }
13304     else
13305       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13307     fi
13308     ;;
13309   *)
13310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13312     ;;
13313   esac
13314 fi
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327   # Report what library types will actually be built
13328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13329 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13331 $as_echo "$can_build_shared" >&6; }
13332
13333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13334 $as_echo_n "checking whether to build shared libraries... " >&6; }
13335   test no = "$can_build_shared" && enable_shared=no
13336
13337   # On AIX, shared libraries and static libraries use the same namespace, and
13338   # are all built from PIC.
13339   case $host_os in
13340   aix3*)
13341     test yes = "$enable_shared" && enable_static=no
13342     if test -n "$RANLIB"; then
13343       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13344       postinstall_cmds='$RANLIB $lib'
13345     fi
13346     ;;
13347
13348   aix[4-9]*)
13349     if test ia64 != "$host_cpu"; then
13350       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13351       yes,aix,yes) ;;                   # shared object as lib.so file only
13352       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13353       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13354       esac
13355     fi
13356     ;;
13357   esac
13358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13359 $as_echo "$enable_shared" >&6; }
13360
13361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13362 $as_echo_n "checking whether to build static libraries... " >&6; }
13363   # Make sure either enable_shared or enable_static is yes.
13364   test yes = "$enable_shared" || enable_static=yes
13365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13366 $as_echo "$enable_static" >&6; }
13367
13368
13369
13370
13371 fi
13372 ac_ext=c
13373 ac_cpp='$CPP $CPPFLAGS'
13374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13377
13378 CC=$lt_save_CC
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394         ac_config_commands="$ac_config_commands libtool"
13395
13396
13397
13398
13399 # Only expand once:
13400
13401
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13403 $as_echo_n "checking whether ln -s works... " >&6; }
13404 LN_S=$as_ln_s
13405 if test "$LN_S" = "ln -s"; then
13406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 $as_echo "yes" >&6; }
13408 else
13409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13410 $as_echo "no, using $LN_S" >&6; }
13411 fi
13412
13413
13414
13415 # Check whether --with-build-date was given.
13416 if test "${with_build_date+set}" = set; then :
13417   withval=$with_build_date; BUILD="$with_build_date"
13418 else
13419   BUILD=`date +%Y%m%d`
13420 fi
13421
13422
13423 # When the prefix is /opt/libjpeg-turbo, we assume that an "official" binary is
13424 # being created, and thus we install things into specific locations.
13425
13426 old_prefix=${prefix}
13427 if test "x$prefix" = "xNONE" -a "x$ac_default_prefix" != "x"; then
13428   prefix=$ac_default_prefix
13429 fi
13430 DATADIR=`eval echo ${datadir}`
13431 DATADIR=`eval echo $DATADIR`
13432 if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then
13433   datadir='${prefix}'
13434 fi
13435 DATADIR=`eval echo ${datarootdir}`
13436 DATADIR=`eval echo $DATADIR`
13437 if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then
13438   datarootdir='${prefix}'
13439 fi
13440 DOCDIR=`eval echo ${docdir}`
13441 DOCDIR=`eval echo $DOCDIR`
13442 if test "$DOCDIR" = "/opt/libjpeg-turbo/doc/libjpeg-turbo"; then
13443   docdir='${datadir}/doc'
13444 fi
13445
13446 old_exec_prefix=${exec_prefix}
13447 if test "x$exec_prefix" = "xNONE"; then
13448   exec_prefix=${prefix}
13449 fi
13450
13451 # The cast to long int works around a bug in the HP C Compiler
13452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13454 # This bug is HP SR number 8606223364.
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13456 $as_echo_n "checking size of size_t... " >&6; }
13457 if ${ac_cv_sizeof_size_t+:} false; then :
13458   $as_echo_n "(cached) " >&6
13459 else
13460   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
13461
13462 else
13463   if test "$ac_cv_type_size_t" = yes; then
13464      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13466 as_fn_error 77 "cannot compute sizeof (size_t)
13467 See \`config.log' for more details" "$LINENO" 5; }
13468    else
13469      ac_cv_sizeof_size_t=0
13470    fi
13471 fi
13472
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13475 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13476
13477
13478
13479 cat >>confdefs.h <<_ACEOF
13480 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13481 _ACEOF
13482
13483
13484
13485 if test "x${libdir}" = 'x${exec_prefix}/lib' -o "x${libdir}" = 'x${prefix}/lib'; then
13486   LIBDIR=`eval echo ${libdir}`
13487   LIBDIR=`eval echo $LIBDIR`
13488   if test "$LIBDIR" = "/opt/libjpeg-turbo/lib"; then
13489     case $host_os in
13490       darwin*)
13491         ;;
13492       *)
13493         if test "${ac_cv_sizeof_size_t}" = "8"; then
13494           libdir='${exec_prefix}/lib64'
13495         elif test "${ac_cv_sizeof_size_t}" = "4"; then
13496           libdir='${exec_prefix}/lib32'
13497         fi
13498         ;;
13499     esac
13500   fi
13501 fi
13502 exec_prefix=${old_exec_prefix}
13503 prefix=${old_prefix}
13504
13505 # Check whether compiler supports pointers to undefined structures
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports pointers to undefined structures" >&5
13507 $as_echo_n "checking whether compiler supports pointers to undefined structures... " >&6; }
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h.  */
13510  typedef struct undefined_structure * undef_struct_ptr;
13511 int
13512 main ()
13513 {
13514
13515   ;
13516   return 0;
13517 }
13518 _ACEOF
13519 if ac_fn_c_try_compile "$LINENO"; then :
13520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13521 $as_echo "yes" >&6; }
13522 else
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524 $as_echo "no" >&6; }
13525
13526 $as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
13527
13528 fi
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13530
13531 if test "x${GCC}" = "xyes"; then
13532   if test "x${SAVED_CFLAGS}" = "x"; then
13533     CFLAGS=-O3
13534   fi
13535   if test "x${SAVED_CPPFLAGS}" = "x"; then
13536     CPPFLAGS=-Wall
13537   fi
13538 fi
13539
13540 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13541 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13542   SUNCC="yes"
13543 else
13544   SUNCC="no"
13545 fi
13546
13547 if test "x${SUNCC}" = "xyes"; then
13548   if test "x${SAVED_CFLAGS}" = "x"; then
13549     CFLAGS=-xO5
13550   fi
13551 fi
13552
13553 # Checks for libraries.
13554
13555 # Checks for header files.
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13557 $as_echo_n "checking for ANSI C header files... " >&6; }
13558 if ${ac_cv_header_stdc+:} false; then :
13559   $as_echo_n "(cached) " >&6
13560 else
13561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h.  */
13563 #include <stdlib.h>
13564 #include <stdarg.h>
13565 #include <string.h>
13566 #include <float.h>
13567
13568 int
13569 main ()
13570 {
13571
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_compile "$LINENO"; then :
13577   ac_cv_header_stdc=yes
13578 else
13579   ac_cv_header_stdc=no
13580 fi
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582
13583 if test $ac_cv_header_stdc = yes; then
13584   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h.  */
13587 #include <string.h>
13588
13589 _ACEOF
13590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13591   $EGREP "memchr" >/dev/null 2>&1; then :
13592
13593 else
13594   ac_cv_header_stdc=no
13595 fi
13596 rm -f conftest*
13597
13598 fi
13599
13600 if test $ac_cv_header_stdc = yes; then
13601   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h.  */
13604 #include <stdlib.h>
13605
13606 _ACEOF
13607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13608   $EGREP "free" >/dev/null 2>&1; then :
13609
13610 else
13611   ac_cv_header_stdc=no
13612 fi
13613 rm -f conftest*
13614
13615 fi
13616
13617 if test $ac_cv_header_stdc = yes; then
13618   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13619   if test "$cross_compiling" = yes; then :
13620   :
13621 else
13622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h.  */
13624 #include <ctype.h>
13625 #include <stdlib.h>
13626 #if ((' ' & 0x0FF) == 0x020)
13627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13629 #else
13630 # define ISLOWER(c) \
13631                    (('a' <= (c) && (c) <= 'i') \
13632                      || ('j' <= (c) && (c) <= 'r') \
13633                      || ('s' <= (c) && (c) <= 'z'))
13634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13635 #endif
13636
13637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13638 int
13639 main ()
13640 {
13641   int i;
13642   for (i = 0; i < 256; i++)
13643     if (XOR (islower (i), ISLOWER (i))
13644         || toupper (i) != TOUPPER (i))
13645       return 2;
13646   return 0;
13647 }
13648 _ACEOF
13649 if ac_fn_c_try_run "$LINENO"; then :
13650
13651 else
13652   ac_cv_header_stdc=no
13653 fi
13654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13655   conftest.$ac_objext conftest.beam conftest.$ac_ext
13656 fi
13657
13658 fi
13659 fi
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13661 $as_echo "$ac_cv_header_stdc" >&6; }
13662 if test $ac_cv_header_stdc = yes; then
13663
13664 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13665
13666 fi
13667
13668 for ac_header in stddef.h stdlib.h locale.h string.h
13669 do :
13670   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13671 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13673   cat >>confdefs.h <<_ACEOF
13674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13675 _ACEOF
13676
13677 fi
13678
13679 done
13680
13681 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13682 if test "x$ac_cv_header_sys_types_h" = xyes; then :
13683
13684 $as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h
13685
13686 fi
13687
13688
13689
13690 # Checks for typedefs, structures, and compiler characteristics.
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13692 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13693 if ${ac_cv_c_const+:} false; then :
13694   $as_echo_n "(cached) " >&6
13695 else
13696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h.  */
13698
13699 int
13700 main ()
13701 {
13702
13703 #ifndef __cplusplus
13704   /* Ultrix mips cc rejects this sort of thing.  */
13705   typedef int charset[2];
13706   const charset cs = { 0, 0 };
13707   /* SunOS 4.1.1 cc rejects this.  */
13708   char const *const *pcpcc;
13709   char **ppc;
13710   /* NEC SVR4.0.2 mips cc rejects this.  */
13711   struct point {int x, y;};
13712   static struct point const zero = {0,0};
13713   /* AIX XL C 1.02.0.0 rejects this.
13714      It does not let you subtract one const X* pointer from another in
13715      an arm of an if-expression whose if-part is not a constant
13716      expression */
13717   const char *g = "string";
13718   pcpcc = &g + (g ? g-g : 0);
13719   /* HPUX 7.0 cc rejects these. */
13720   ++pcpcc;
13721   ppc = (char**) pcpcc;
13722   pcpcc = (char const *const *) ppc;
13723   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13724     char tx;
13725     char *t = &tx;
13726     char const *s = 0 ? (char *) 0 : (char const *) 0;
13727
13728     *t++ = 0;
13729     if (s) return 0;
13730   }
13731   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13732     int x[] = {25, 17};
13733     const int *foo = &x[0];
13734     ++foo;
13735   }
13736   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13737     typedef const int *iptr;
13738     iptr p = 0;
13739     ++p;
13740   }
13741   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13742        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13743     struct s { int j; const int *ap[3]; } bx;
13744     struct s *b = &bx; b->j = 5;
13745   }
13746   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13747     const int foo = 10;
13748     if (!foo) return 0;
13749   }
13750   return !cs[0] && !zero.x;
13751 #endif
13752
13753   ;
13754   return 0;
13755 }
13756 _ACEOF
13757 if ac_fn_c_try_compile "$LINENO"; then :
13758   ac_cv_c_const=yes
13759 else
13760   ac_cv_c_const=no
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 fi
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13765 $as_echo "$ac_cv_c_const" >&6; }
13766 if test $ac_cv_c_const = no; then
13767
13768 $as_echo "#define const /**/" >>confdefs.h
13769
13770 fi
13771
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
13773 $as_echo_n "checking whether char is unsigned... " >&6; }
13774 if ${ac_cv_c_char_unsigned+:} false; then :
13775   $as_echo_n "(cached) " >&6
13776 else
13777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h.  */
13779 $ac_includes_default
13780 int
13781 main ()
13782 {
13783 static int test_array [1 - 2 * !(((char) -1) < 0)];
13784 test_array [0] = 0;
13785 return test_array [0];
13786
13787   ;
13788   return 0;
13789 }
13790 _ACEOF
13791 if ac_fn_c_try_compile "$LINENO"; then :
13792   ac_cv_c_char_unsigned=no
13793 else
13794   ac_cv_c_char_unsigned=yes
13795 fi
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 fi
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
13799 $as_echo "$ac_cv_c_char_unsigned" >&6; }
13800 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
13801   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
13802
13803 fi
13804
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13806 $as_echo_n "checking for inline... " >&6; }
13807 if ${ac_cv_c_inline+:} false; then :
13808   $as_echo_n "(cached) " >&6
13809 else
13810   ac_cv_c_inline=no
13811 for ac_kw in inline __inline__ __inline; do
13812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h.  */
13814 #ifndef __cplusplus
13815 typedef int foo_t;
13816 static $ac_kw foo_t static_foo () {return 0; }
13817 $ac_kw foo_t foo () {return 0; }
13818 #endif
13819
13820 _ACEOF
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822   ac_cv_c_inline=$ac_kw
13823 fi
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825   test "$ac_cv_c_inline" != no && break
13826 done
13827
13828 fi
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13830 $as_echo "$ac_cv_c_inline" >&6; }
13831
13832 case $ac_cv_c_inline in
13833   inline | yes) ;;
13834   *)
13835     case $ac_cv_c_inline in
13836       no) ac_val=;;
13837       *) ac_val=$ac_cv_c_inline;;
13838     esac
13839     cat >>confdefs.h <<_ACEOF
13840 #ifndef __cplusplus
13841 #define inline $ac_val
13842 #endif
13843 _ACEOF
13844     ;;
13845 esac
13846
13847 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13848 if test "x$ac_cv_type_size_t" = xyes; then :
13849
13850 else
13851
13852 cat >>confdefs.h <<_ACEOF
13853 #define size_t unsigned int
13854 _ACEOF
13855
13856 fi
13857
13858 ac_fn_c_check_type "$LINENO" "unsigned char" "ac_cv_type_unsigned_char" "$ac_includes_default"
13859 if test "x$ac_cv_type_unsigned_char" = xyes; then :
13860
13861 cat >>confdefs.h <<_ACEOF
13862 #define HAVE_UNSIGNED_CHAR 1
13863 _ACEOF
13864
13865
13866 fi
13867 ac_fn_c_check_type "$LINENO" "unsigned short" "ac_cv_type_unsigned_short" "$ac_includes_default"
13868 if test "x$ac_cv_type_unsigned_short" = xyes; then :
13869
13870 cat >>confdefs.h <<_ACEOF
13871 #define HAVE_UNSIGNED_SHORT 1
13872 _ACEOF
13873
13874
13875 fi
13876
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if right shift is signed" >&5
13879 $as_echo_n "checking if right shift is signed... " >&6; }
13880 if test "$cross_compiling" = yes; then :
13881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
13882 $as_echo "Assuming that right shift is signed on target machine." >&6; }
13883 else
13884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885 /* end confdefs.h.  */
13886 #include <stdio.h>
13887    int is_shifting_signed (long arg) {
13888      long res = arg >> 4;
13889
13890      if (res == -0x7F7E80CL)
13891        return 1; /* right shift is signed */
13892
13893      /* see if unsigned-shift hack will fix it. */
13894      /* we can't just test exact value since it depends on width of long... */
13895      res |= (~0L) << (32-4);
13896      if (res == -0x7F7E80CL)
13897        return 0; /* right shift is unsigned */
13898
13899      printf("Right shift isn't acting as I expect it to.\n");
13900      printf("I fear the JPEG software will not work at all.\n\n");
13901      return 0; /* try it with unsigned anyway */
13902    }
13903    int main (void) {
13904      exit(is_shifting_signed(-0x7F7E80B1L));
13905    }
13906 _ACEOF
13907 if ac_fn_c_try_run "$LINENO"; then :
13908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13910
13911 $as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
13912
13913 else
13914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13915 $as_echo "yes" >&6; }
13916 fi
13917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13918   conftest.$ac_objext conftest.beam conftest.$ac_ext
13919 fi
13920
13921
13922 # Checks for library functions.
13923 for ac_func in memset memcpy
13924 do :
13925   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13926 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13927 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13928   cat >>confdefs.h <<_ACEOF
13929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13930 _ACEOF
13931
13932 else
13933
13934 $as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
13935
13936 fi
13937 done
13938
13939
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg API version" >&5
13941 $as_echo_n "checking libjpeg API version... " >&6; }
13942
13943 if test "x$JPEG_LIB_VERSION" = "x"; then
13944
13945 # Check whether --with-jpeg7 was given.
13946 if test "${with_jpeg7+set}" = set; then :
13947   withval=$with_jpeg7;
13948 fi
13949
13950
13951 # Check whether --with-jpeg8 was given.
13952 if test "${with_jpeg8+set}" = set; then :
13953   withval=$with_jpeg8;
13954 fi
13955
13956   if test "x${with_jpeg8}" = "xyes"; then
13957     JPEG_LIB_VERSION=80
13958   else
13959     if test "x${with_jpeg7}" = "xyes"; then
13960       JPEG_LIB_VERSION=70
13961     else
13962       JPEG_LIB_VERSION=62
13963     fi
13964   fi
13965 fi
13966 JPEG_LIB_VERSION_DECIMAL=`expr $JPEG_LIB_VERSION / 10`.`expr $JPEG_LIB_VERSION % 10`
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION_DECIMAL" >&5
13969 $as_echo "$JPEG_LIB_VERSION_DECIMAL" >&6; }
13970
13971 cat >>confdefs.h <<_ACEOF
13972 #define JPEG_LIB_VERSION $JPEG_LIB_VERSION
13973 _ACEOF
13974
13975
13976
13977
13978 if test "x$SO_MAJOR_VERSION" = "x"; then
13979   case "$JPEG_LIB_VERSION" in
13980     62)  SO_MAJOR_VERSION=$JPEG_LIB_VERSION ;;
13981     *)   SO_MAJOR_VERSION=`expr $JPEG_LIB_VERSION / 10` ;;
13982   esac
13983 fi
13984 if test "x$SO_MINOR_VERSION" = "x"; then
13985   case "$JPEG_LIB_VERSION" in
13986     80)  SO_MINOR_VERSION=2 ;;
13987     *)   SO_MINOR_VERSION=0 ;;
13988   esac
13989 fi
13990
13991 RPM_CONFIG_ARGS=
13992
13993 # Memory source/destination managers
13994 SO_AGE=0
13995 MEM_SRCDST_FUNCTIONS=
13996 if test "x${with_jpeg8}" != "xyes"; then
13997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include in-memory source/destination managers" >&5
13998 $as_echo_n "checking whether to include in-memory source/destination managers... " >&6; }
13999
14000 # Check whether --with-mem-srcdst was given.
14001 if test "${with_mem_srcdst+set}" = set; then :
14002   withval=$with_mem_srcdst;
14003 fi
14004
14005   if test "x$with_mem_srcdst" != "xno"; then
14006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008
14009 $as_echo "#define MEM_SRCDST_SUPPORTED 1" >>confdefs.h
14010
14011     SO_AGE=1
14012     MEM_SRCDST_FUNCTIONS="global:  jpeg_mem_dest;  jpeg_mem_src;";
14013   else
14014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015 $as_echo "no" >&6; }
14016     RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-mem-srcdst"
14017   fi
14018 fi
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg shared library version" >&5
14021 $as_echo_n "checking libjpeg shared library version... " >&6; }
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO_MAJOR_VERSION.$SO_AGE.$SO_MINOR_VERSION" >&5
14023 $as_echo "$SO_MAJOR_VERSION.$SO_AGE.$SO_MINOR_VERSION" >&6; }
14024 LIBTOOL_CURRENT=`expr $SO_MAJOR_VERSION + $SO_AGE`
14025
14026
14027
14028
14029
14030
14031
14032 cat >>confdefs.h <<_ACEOF
14033 #define LIBJPEG_TURBO_VERSION $VERSION
14034 _ACEOF
14035
14036
14037 VERSION_SCRIPT=yes
14038 # Check whether --enable-ld-version-script was given.
14039 if test "${enable_ld_version_script+set}" = set; then :
14040   enableval=$enable_ld_version_script; VERSION_SCRIPT=$enableval
14041 fi
14042
14043
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports version scripts" >&5
14045 $as_echo_n "checking whether the linker supports version scripts... " >&6; }
14046 SAVED_LDFLAGS="$LDFLAGS"
14047 LDFLAGS="$LDFLAGS -Wl,--version-script,conftest.map"
14048 cat > conftest.map <<EOF
14049 VERS_1 {
14050   global: *;
14051 };
14052 EOF
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h.  */
14055
14056 int
14057 main ()
14058 {
14059
14060   ;
14061   return 0;
14062 }
14063 _ACEOF
14064 if ac_fn_c_try_link "$LINENO"; then :
14065   VERSION_SCRIPT_FLAG=-Wl,--version-script,;
14066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (GNU style)" >&5
14067 $as_echo "yes (GNU style)" >&6; }
14068 fi
14069 rm -f core conftest.err conftest.$ac_objext \
14070     conftest$ac_exeext conftest.$ac_ext
14071 if test "x$VERSION_SCRIPT_FLAG" = "x"; then
14072   LDFLAGS="$SAVED_LDFLAGS -Wl,-M,conftest.map"
14073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h.  */
14075
14076 int
14077 main ()
14078 {
14079
14080   ;
14081   return 0;
14082 }
14083 _ACEOF
14084 if ac_fn_c_try_link "$LINENO"; then :
14085   VERSION_SCRIPT_FLAG=-Wl,-M,;
14086      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (Sun style)" >&5
14087 $as_echo "yes (Sun style)" >&6; }
14088 fi
14089 rm -f core conftest.err conftest.$ac_objext \
14090     conftest$ac_exeext conftest.$ac_ext
14091 fi
14092 if test "x$VERSION_SCRIPT_FLAG" = "x"; then
14093   VERSION_SCRIPT=no
14094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14096 fi
14097 LDFLAGS="$SAVED_LDFLAGS"
14098
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use version script when building libjpeg-turbo" >&5
14100 $as_echo_n "checking whether to use version script when building libjpeg-turbo... " >&6; }
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_SCRIPT" >&5
14102 $as_echo "$VERSION_SCRIPT" >&6; }
14103
14104  if test "x$VERSION_SCRIPT" = "xyes"; then
14105   VERSION_SCRIPT_TRUE=
14106   VERSION_SCRIPT_FALSE='#'
14107 else
14108   VERSION_SCRIPT_TRUE='#'
14109   VERSION_SCRIPT_FALSE=
14110 fi
14111
14112
14113
14114 # Check for non-broken inline under various spellings
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14116 $as_echo_n "checking for inline... " >&6; }
14117 ljt_cv_inline=""
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h.  */
14120
14121 int
14122 main ()
14123 {
14124 } inline __attribute__((always_inline)) int foo() { return 0; }
14125 int bar() { return foo();
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_compile "$LINENO"; then :
14131   ljt_cv_inline="inline __attribute__((always_inline))"
14132 else
14133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h.  */
14135
14136 int
14137 main ()
14138 {
14139 } __inline__ int foo() { return 0; }
14140 int bar() { return foo();
14141   ;
14142   return 0;
14143 }
14144 _ACEOF
14145 if ac_fn_c_try_compile "$LINENO"; then :
14146   ljt_cv_inline="__inline__"
14147 else
14148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h.  */
14150
14151 int
14152 main ()
14153 {
14154 } __inline int foo() { return 0; }
14155 int bar() { return foo();
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_compile "$LINENO"; then :
14161   ljt_cv_inline="__inline"
14162 else
14163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h.  */
14165
14166 int
14167 main ()
14168 {
14169 } inline int foo() { return 0; }
14170 int bar() { return foo();
14171   ;
14172   return 0;
14173 }
14174 _ACEOF
14175 if ac_fn_c_try_compile "$LINENO"; then :
14176   ljt_cv_inline="inline"
14177 fi
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181 fi
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 fi
14184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ljt_cv_inline" >&5
14186 $as_echo "$ljt_cv_inline" >&6; }
14187
14188 cat >>confdefs.h <<_ACEOF
14189 #define INLINE $ljt_cv_inline
14190 _ACEOF
14191
14192
14193 # Arithmetic coding support
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include arithmetic encoding support" >&5
14195 $as_echo_n "checking whether to include arithmetic encoding support... " >&6; }
14196
14197 # Check whether --with-arith-enc was given.
14198 if test "${with_arith_enc+set}" = set; then :
14199   withval=$with_arith_enc;
14200 fi
14201
14202 if test "x$with_12bit" = "xyes"; then
14203   with_arith_enc=no
14204 fi
14205 if test "x$with_arith_enc" = "xno"; then
14206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14207 $as_echo "no" >&6; }
14208   RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-enc"
14209 else
14210
14211 $as_echo "#define C_ARITH_CODING_SUPPORTED 1" >>confdefs.h
14212
14213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14214 $as_echo "yes" >&6; }
14215 fi
14216  if test "x$with_arith_enc" != "xno"; then
14217   WITH_ARITH_ENC_TRUE=
14218   WITH_ARITH_ENC_FALSE='#'
14219 else
14220   WITH_ARITH_ENC_TRUE='#'
14221   WITH_ARITH_ENC_FALSE=
14222 fi
14223
14224
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include arithmetic decoding support" >&5
14226 $as_echo_n "checking whether to include arithmetic decoding support... " >&6; }
14227
14228 # Check whether --with-arith-dec was given.
14229 if test "${with_arith_dec+set}" = set; then :
14230   withval=$with_arith_dec;
14231 fi
14232
14233 if test "x$with_12bit" = "xyes"; then
14234   with_arith_dec=no
14235 fi
14236 if test "x$with_arith_dec" = "xno"; then
14237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14239   RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-dec"
14240 else
14241
14242 $as_echo "#define D_ARITH_CODING_SUPPORTED 1" >>confdefs.h
14243
14244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14245 $as_echo "yes" >&6; }
14246 fi
14247  if test "x$with_arith_dec" != "xno"; then
14248   WITH_ARITH_DEC_TRUE=
14249   WITH_ARITH_DEC_FALSE='#'
14250 else
14251   WITH_ARITH_DEC_TRUE='#'
14252   WITH_ARITH_DEC_FALSE=
14253 fi
14254
14255
14256  if test "x$with_arith_dec" != "xno" -o "x$with_arith_enc" != "xno"; then
14257   WITH_ARITH_TRUE=
14258   WITH_ARITH_FALSE='#'
14259 else
14260   WITH_ARITH_TRUE='#'
14261   WITH_ARITH_FALSE=
14262 fi
14263
14264
14265 # 12-bit component support
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use 12-bit samples" >&5
14267 $as_echo_n "checking whether to use 12-bit samples... " >&6; }
14268
14269 # Check whether --with-12bit was given.
14270 if test "${with_12bit+set}" = set; then :
14271   withval=$with_12bit;
14272 fi
14273
14274 if test "x$with_12bit" = "xyes"; then
14275
14276 $as_echo "#define BITS_IN_JSAMPLE 12" >>confdefs.h
14277
14278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14279 $as_echo "yes" >&6; }
14280 else
14281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 $as_echo "no" >&6; }
14283 fi
14284  if test "x$with_12bit" = "xyes"; then
14285   WITH_12BIT_TRUE=
14286   WITH_12BIT_FALSE='#'
14287 else
14288   WITH_12BIT_TRUE='#'
14289   WITH_12BIT_FALSE=
14290 fi
14291
14292
14293 # TurboJPEG support
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build TurboJPEG C wrapper" >&5
14295 $as_echo_n "checking whether to build TurboJPEG C wrapper... " >&6; }
14296
14297 # Check whether --with-turbojpeg was given.
14298 if test "${with_turbojpeg+set}" = set; then :
14299   withval=$with_turbojpeg;
14300 fi
14301
14302 if test "x$with_12bit" = "xyes"; then
14303   with_turbojpeg=no
14304 fi
14305 if test "x$with_turbojpeg" = "xno"; then
14306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14307 $as_echo "no" >&6; }
14308   RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-turbojpeg"
14309 else
14310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14311 $as_echo "yes" >&6; }
14312 fi
14313
14314 # Java support
14315
14316 if test "x$JAVAC" = "x"; then
14317   JAVAC=javac
14318 fi
14319
14320
14321
14322
14323 if test "x$JAR" = "x"; then
14324   JAR=jar
14325 fi
14326
14327
14328 if test "x$JAVA" = "x"; then
14329   JAVA=java
14330 fi
14331
14332
14333
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build TurboJPEG Java wrapper" >&5
14335 $as_echo_n "checking whether to build TurboJPEG Java wrapper... " >&6; }
14336
14337 # Check whether --with-java was given.
14338 if test "${with_java+set}" = set; then :
14339   withval=$with_java;
14340 fi
14341
14342 if test "x$with_12bit" = "xyes" -o "x$with_turbojpeg" = "xno"; then
14343   with_java=no
14344 fi
14345
14346 WITH_JAVA=0
14347 if test "x$with_java" = "xyes"; then
14348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14349 $as_echo "yes" >&6; }
14350
14351   case $host_os in
14352     darwin*)
14353       DEFAULT_JNI_CFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
14354       ;;
14355     solaris*)
14356       DEFAULT_JNI_CFLAGS='-I/usr/java/include -I/usr/java/include/solaris'
14357       ;;
14358     linux*)
14359       DEFAULT_JNI_CFLAGS='-I/usr/java/default/include -I/usr/java/default/include/linux'
14360       ;;
14361   esac
14362   if test "x$JNI_CFLAGS" = "x"; then
14363     JNI_CFLAGS=$DEFAULT_JNI_CFLAGS
14364   fi
14365
14366   SAVE_CPPFLAGS=${CPPFLAGS}
14367   CPPFLAGS="${CPPFLAGS} ${JNI_CFLAGS}"
14368   for ac_header in jni.h
14369 do :
14370   ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
14371 if test "x$ac_cv_header_jni_h" = xyes; then :
14372   cat >>confdefs.h <<_ACEOF
14373 #define HAVE_JNI_H 1
14374 _ACEOF
14375  DUMMY=1
14376 else
14377   as_fn_error $? "Could not find JNI header file" "$LINENO" 5
14378 fi
14379
14380 done
14381
14382   CPPFLAGS=${SAVE_CPPFLAGS}
14383
14384
14385   RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --with-java"
14386   JAVA_RPM_CONTENTS_1='%dir %{_datadir}/classes'
14387   JAVA_RPM_CONTENTS_2=%{_datadir}/classes/turbojpeg.jar
14388   WITH_JAVA=1
14389 else
14390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14391 $as_echo "no" >&6; }
14392 fi
14393  if test "x$with_java" = "xyes"; then
14394   WITH_JAVA_TRUE=
14395   WITH_JAVA_FALSE='#'
14396 else
14397   WITH_JAVA_TRUE='#'
14398   WITH_JAVA_FALSE=
14399 fi
14400
14401
14402
14403
14404
14405 # optionally force using gas-preprocessor.pl for compatibility testing
14406
14407 # Check whether --with-gas-preprocessor was given.
14408 if test "${with_gas_preprocessor+set}" = set; then :
14409   withval=$with_gas_preprocessor;
14410 fi
14411
14412 if test "x${with_gas_preprocessor}" = "xyes"; then
14413   case $host_os in
14414     darwin*)
14415       CCAS="gas-preprocessor.pl -fix-unreq $CC"
14416       ;;
14417     *)
14418       CCAS="gas-preprocessor.pl -no-fix-unreq $CC"
14419       ;;
14420   esac
14421
14422 fi
14423
14424 # SIMD is optional
14425
14426 # Check whether --with-simd was given.
14427 if test "${with_simd+set}" = set; then :
14428   withval=$with_simd;
14429 fi
14430
14431 if test "x$with_12bit" = "xyes"; then
14432   with_simd=no
14433 fi
14434 if test "x${with_simd}" != "xno"; then
14435   require_simd=no
14436   if test "x${with_simd}" = "xyes"; then
14437     require_simd=yes
14438   fi
14439   # Check if we're on a supported CPU
14440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have SIMD optimisations for cpu type" >&5
14441 $as_echo_n "checking if we have SIMD optimisations for cpu type... " >&6; }
14442   case "$host_cpu" in
14443     x86_64 | amd64)
14444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (x86_64)" >&5
14445 $as_echo "yes (x86_64)" >&6; }
14446
14447
14448 for ac_prog in nasm nasmw yasm
14449 do
14450   # Extract the first word of "$ac_prog", so it can be a program name with args.
14451 set dummy $ac_prog; ac_word=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if ${ac_cv_prog_NASM+:} false; then :
14455   $as_echo_n "(cached) " >&6
14456 else
14457   if test -n "$NASM"; then
14458   ac_cv_prog_NASM="$NASM" # Let the user override the test.
14459 else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14462 do
14463   IFS=$as_save_IFS
14464   test -z "$as_dir" && as_dir=.
14465     for ac_exec_ext in '' $ac_executable_extensions; do
14466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467     ac_cv_prog_NASM="$ac_prog"
14468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14469     break 2
14470   fi
14471 done
14472   done
14473 IFS=$as_save_IFS
14474
14475 fi
14476 fi
14477 NASM=$ac_cv_prog_NASM
14478 if test -n "$NASM"; then
14479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
14480 $as_echo "$NASM" >&6; }
14481 else
14482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14484 fi
14485
14486
14487   test -n "$NASM" && break
14488 done
14489
14490 test -z "$NASM" && as_fn_error $? "no nasm (Netwide Assembler) found" "$LINENO" 5
14491
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for object file format of host system" >&5
14493 $as_echo_n "checking for object file format of host system... " >&6; }
14494 case "$host_os" in
14495   cygwin* | mingw* | pw32* | interix*)
14496     case "$host_cpu" in
14497       x86_64)
14498         objfmt='Win64-COFF'
14499         ;;
14500       *)
14501         objfmt='Win32-COFF'
14502         ;;
14503     esac
14504   ;;
14505   msdosdjgpp* | go32*)
14506     objfmt='COFF'
14507   ;;
14508   os2-emx*)                     # not tested
14509     objfmt='MSOMF'              # obj
14510   ;;
14511   linux*coff* | linux*oldld*)
14512     objfmt='COFF'               # ???
14513   ;;
14514   linux*aout*)
14515     objfmt='a.out'
14516   ;;
14517   linux*)
14518     case "$host_cpu" in
14519       x86_64)
14520         objfmt='ELF64'
14521         ;;
14522       *)
14523         objfmt='ELF'
14524         ;;
14525     esac
14526   ;;
14527   kfreebsd* | freebsd* | netbsd* | openbsd*)
14528     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14529       objfmt='BSD-a.out'
14530     else
14531       case "$host_cpu" in
14532         x86_64 | amd64)
14533           objfmt='ELF64'
14534           ;;
14535         *)
14536           objfmt='ELF'
14537           ;;
14538       esac
14539     fi
14540   ;;
14541   solaris* | sunos* | sysv* | sco*)
14542     case "$host_cpu" in
14543       x86_64)
14544         objfmt='ELF64'
14545         ;;
14546       *)
14547         objfmt='ELF'
14548         ;;
14549     esac
14550   ;;
14551   darwin* | rhapsody* | nextstep* | openstep* | macos*)
14552     case "$host_cpu" in
14553       x86_64)
14554         objfmt='Mach-O64'
14555         ;;
14556       *)
14557         objfmt='Mach-O'
14558         ;;
14559     esac
14560   ;;
14561   *)
14562     objfmt='ELF ?'
14563   ;;
14564 esac
14565
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objfmt" >&5
14567 $as_echo "$objfmt" >&6; }
14568 if test "$objfmt" = 'ELF ?'; then
14569   objfmt='ELF'
14570   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected host system. assumed that the format is $objfmt." >&5
14571 $as_echo "$as_me: WARNING: unexpected host system. assumed that the format is $objfmt." >&2;}
14572 fi
14573
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for object file format specifier (NAFLAGS) " >&5
14575 $as_echo_n "checking for object file format specifier (NAFLAGS) ... " >&6; }
14576 case "$objfmt" in
14577   MSOMF)      NAFLAGS='-fobj -DOBJ32';;
14578   Win32-COFF) NAFLAGS='-fwin32 -DWIN32';;
14579   Win64-COFF) NAFLAGS='-fwin64 -DWIN64 -D__x86_64__';;
14580   COFF)       NAFLAGS='-fcoff -DCOFF';;
14581   a.out)      NAFLAGS='-faout -DAOUT';;
14582   BSD-a.out)  NAFLAGS='-faoutb -DAOUT';;
14583   ELF)        NAFLAGS='-felf -DELF';;
14584   ELF64)      NAFLAGS='-felf64 -DELF -D__x86_64__';;
14585   RDF)        NAFLAGS='-frdf -DRDF';;
14586   Mach-O)     NAFLAGS='-fmacho -DMACHO';;
14587   Mach-O64)   NAFLAGS='-fmacho64 -DMACHO -D__x86_64__';;
14588 esac
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAFLAGS" >&5
14590 $as_echo "$NAFLAGS" >&6; }
14591
14592
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler ($NASM $NAFLAGS) works" >&5
14594 $as_echo_n "checking whether the assembler ($NASM $NAFLAGS) works... " >&6; }
14595 cat > conftest.asm <<EOF
14596 %line 14596 "configure"
14597         section .text
14598         global  _main,main
14599 _main:
14600 main:   xor     eax,eax
14601         ret
14602 EOF
14603 try_nasm='$NASM $NAFLAGS -o conftest.o conftest.asm'
14604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$try_nasm\""; } >&5
14605   (eval $try_nasm) 2>&5
14606   ac_status=$?
14607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14608   test $ac_status = 0; } && test -s conftest.o; then
14609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14610 $as_echo "yes" >&6; }
14611 else
14612   echo "configure: failed program was:" >&5
14613   cat conftest.asm >&5
14614   rm -rf conftest*
14615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616 $as_echo "no" >&6; }
14617   as_fn_error $? "installation or configuration problem: assembler cannot create object files." "$LINENO" 5
14618 fi
14619
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts assembler output" >&5
14621 $as_echo_n "checking whether the linker accepts assembler output... " >&6; }
14622 try_nasm='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.o $LIBS 1>&5'
14623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$try_nasm\""; } >&5
14624   (eval $try_nasm) 2>&5
14625   ac_status=$?
14626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14627   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14628   rm -rf conftest*
14629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14630 $as_echo "yes" >&6; }
14631 else
14632   rm -rf conftest*
14633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14635   as_fn_error $? "configuration problem: maybe object file format mismatch." "$LINENO" 5
14636 fi
14637
14638
14639       simd_arch=x86_64
14640       ;;
14641     i*86 | x86 | ia32)
14642       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (i386)" >&5
14643 $as_echo "yes (i386)" >&6; }
14644
14645
14646 for ac_prog in nasm nasmw yasm
14647 do
14648   # Extract the first word of "$ac_prog", so it can be a program name with args.
14649 set dummy $ac_prog; ac_word=$2
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14651 $as_echo_n "checking for $ac_word... " >&6; }
14652 if ${ac_cv_prog_NASM+:} false; then :
14653   $as_echo_n "(cached) " >&6
14654 else
14655   if test -n "$NASM"; then
14656   ac_cv_prog_NASM="$NASM" # Let the user override the test.
14657 else
14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $PATH
14660 do
14661   IFS=$as_save_IFS
14662   test -z "$as_dir" && as_dir=.
14663     for ac_exec_ext in '' $ac_executable_extensions; do
14664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14665     ac_cv_prog_NASM="$ac_prog"
14666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14667     break 2
14668   fi
14669 done
14670   done
14671 IFS=$as_save_IFS
14672
14673 fi
14674 fi
14675 NASM=$ac_cv_prog_NASM
14676 if test -n "$NASM"; then
14677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
14678 $as_echo "$NASM" >&6; }
14679 else
14680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 $as_echo "no" >&6; }
14682 fi
14683
14684
14685   test -n "$NASM" && break
14686 done
14687
14688 test -z "$NASM" && as_fn_error $? "no nasm (Netwide Assembler) found" "$LINENO" 5
14689
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for object file format of host system" >&5
14691 $as_echo_n "checking for object file format of host system... " >&6; }
14692 case "$host_os" in
14693   cygwin* | mingw* | pw32* | interix*)
14694     case "$host_cpu" in
14695       x86_64)
14696         objfmt='Win64-COFF'
14697         ;;
14698       *)
14699         objfmt='Win32-COFF'
14700         ;;
14701     esac
14702   ;;
14703   msdosdjgpp* | go32*)
14704     objfmt='COFF'
14705   ;;
14706   os2-emx*)                     # not tested
14707     objfmt='MSOMF'              # obj
14708   ;;
14709   linux*coff* | linux*oldld*)
14710     objfmt='COFF'               # ???
14711   ;;
14712   linux*aout*)
14713     objfmt='a.out'
14714   ;;
14715   linux*)
14716     case "$host_cpu" in
14717       x86_64)
14718         objfmt='ELF64'
14719         ;;
14720       *)
14721         objfmt='ELF'
14722         ;;
14723     esac
14724   ;;
14725   kfreebsd* | freebsd* | netbsd* | openbsd*)
14726     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14727       objfmt='BSD-a.out'
14728     else
14729       case "$host_cpu" in
14730         x86_64 | amd64)
14731           objfmt='ELF64'
14732           ;;
14733         *)
14734           objfmt='ELF'
14735           ;;
14736       esac
14737     fi
14738   ;;
14739   solaris* | sunos* | sysv* | sco*)
14740     case "$host_cpu" in
14741       x86_64)
14742         objfmt='ELF64'
14743         ;;
14744       *)
14745         objfmt='ELF'
14746         ;;
14747     esac
14748   ;;
14749   darwin* | rhapsody* | nextstep* | openstep* | macos*)
14750     case "$host_cpu" in
14751       x86_64)
14752         objfmt='Mach-O64'
14753         ;;
14754       *)
14755         objfmt='Mach-O'
14756         ;;
14757     esac
14758   ;;
14759   *)
14760     objfmt='ELF ?'
14761   ;;
14762 esac
14763
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objfmt" >&5
14765 $as_echo "$objfmt" >&6; }
14766 if test "$objfmt" = 'ELF ?'; then
14767   objfmt='ELF'
14768   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected host system. assumed that the format is $objfmt." >&5
14769 $as_echo "$as_me: WARNING: unexpected host system. assumed that the format is $objfmt." >&2;}
14770 fi
14771
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for object file format specifier (NAFLAGS) " >&5
14773 $as_echo_n "checking for object file format specifier (NAFLAGS) ... " >&6; }
14774 case "$objfmt" in
14775   MSOMF)      NAFLAGS='-fobj -DOBJ32';;
14776   Win32-COFF) NAFLAGS='-fwin32 -DWIN32';;
14777   Win64-COFF) NAFLAGS='-fwin64 -DWIN64 -D__x86_64__';;
14778   COFF)       NAFLAGS='-fcoff -DCOFF';;
14779   a.out)      NAFLAGS='-faout -DAOUT';;
14780   BSD-a.out)  NAFLAGS='-faoutb -DAOUT';;
14781   ELF)        NAFLAGS='-felf -DELF';;
14782   ELF64)      NAFLAGS='-felf64 -DELF -D__x86_64__';;
14783   RDF)        NAFLAGS='-frdf -DRDF';;
14784   Mach-O)     NAFLAGS='-fmacho -DMACHO';;
14785   Mach-O64)   NAFLAGS='-fmacho64 -DMACHO -D__x86_64__';;
14786 esac
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAFLAGS" >&5
14788 $as_echo "$NAFLAGS" >&6; }
14789
14790
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler ($NASM $NAFLAGS) works" >&5
14792 $as_echo_n "checking whether the assembler ($NASM $NAFLAGS) works... " >&6; }
14793 cat > conftest.asm <<EOF
14794 %line 14794 "configure"
14795         section .text
14796         global  _main,main
14797 _main:
14798 main:   xor     eax,eax
14799         ret
14800 EOF
14801 try_nasm='$NASM $NAFLAGS -o conftest.o conftest.asm'
14802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$try_nasm\""; } >&5
14803   (eval $try_nasm) 2>&5
14804   ac_status=$?
14805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806   test $ac_status = 0; } && test -s conftest.o; then
14807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14808 $as_echo "yes" >&6; }
14809 else
14810   echo "configure: failed program was:" >&5
14811   cat conftest.asm >&5
14812   rm -rf conftest*
14813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14814 $as_echo "no" >&6; }
14815   as_fn_error $? "installation or configuration problem: assembler cannot create object files." "$LINENO" 5
14816 fi
14817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts assembler output" >&5
14819 $as_echo_n "checking whether the linker accepts assembler output... " >&6; }
14820 try_nasm='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.o $LIBS 1>&5'
14821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$try_nasm\""; } >&5
14822   (eval $try_nasm) 2>&5
14823   ac_status=$?
14824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14825   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14826   rm -rf conftest*
14827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14828 $as_echo "yes" >&6; }
14829 else
14830   rm -rf conftest*
14831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832 $as_echo "no" >&6; }
14833   as_fn_error $? "configuration problem: maybe object file format mismatch." "$LINENO" 5
14834 fi
14835
14836
14837       simd_arch=i386
14838       ;;
14839     arm*)
14840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (arm)" >&5
14841 $as_echo "yes (arm)" >&6; }
14842       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler is GNU-compatible and can be used" >&5
14843 $as_echo_n "checking if the assembler is GNU-compatible and can be used... " >&6; }
14844
14845   ac_good_gnu_arm_assembler=no
14846   ac_save_CC="$CC"
14847   ac_save_CFLAGS="$CFLAGS"
14848   CFLAGS="$CCASFLAGS -x assembler-with-cpp"
14849   CC="$CCAS"
14850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851 /* end confdefs.h.  */
14852
14853     .text
14854     .fpu neon
14855     .arch armv7a
14856     .object_arch armv4
14857     .arm
14858     pld [r0]
14859     vmovn.u16 d0, q0
14860 _ACEOF
14861 if ac_fn_c_try_compile "$LINENO"; then :
14862   ac_good_gnu_arm_assembler=yes
14863 fi
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865
14866   ac_use_gas_preprocessor=no
14867   if test "x$ac_good_gnu_arm_assembler" = "xno" ; then
14868     CC="gas-preprocessor.pl $CCAS"
14869     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h.  */
14871
14872       .text
14873       .fpu neon
14874       .arch armv7a
14875       .object_arch armv4
14876       .arm
14877       pld [r0]
14878       vmovn.u16 d0, q0
14879 _ACEOF
14880 if ac_fn_c_try_compile "$LINENO"; then :
14881   ac_use_gas_preprocessor=yes
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884   fi
14885   CFLAGS="$ac_save_CFLAGS"
14886   CC="$ac_save_CC"
14887
14888   if test "x$ac_use_gas_preprocessor" = "xyes" ; then
14889     CCAS="gas-preprocessor.pl $CCAS"
14890
14891     ac_good_gnu_arm_assembler=yes
14892   fi
14893
14894   if test "x$ac_good_gnu_arm_assembler" = "xyes" ; then
14895     if test "x$ac_use_gas_preprocessor" = "xyes"; then
14896            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (with gas-preprocessor)" >&5
14897 $as_echo "yes (with gas-preprocessor)" >&6; }
14898          else
14899            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14900 $as_echo "yes" >&6; }
14901          fi
14902          simd_arch=arm
14903   else
14904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905 $as_echo "no" >&6; }
14906          with_simd=no
14907   fi
14908
14909       if test "x${with_simd}" = "xno"; then
14910         if test "x${require_simd}" = "xyes"; then
14911           as_fn_error $? "SIMD support can't be enabled." "$LINENO" 5
14912         else
14913           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SIMD support can't be enabled.  Performance will suffer." >&5
14914 $as_echo "$as_me: WARNING: SIMD support can't be enabled.  Performance will suffer." >&2;}
14915         fi
14916       fi
14917       ;;
14918     aarch64*)
14919       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (arm64)" >&5
14920 $as_echo "yes (arm64)" >&6; }
14921       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler is GNU-compatible and can be used" >&5
14922 $as_echo_n "checking if the assembler is GNU-compatible and can be used... " >&6; }
14923
14924   ac_good_gnu_arm_assembler=no
14925   ac_save_CC="$CC"
14926   ac_save_CFLAGS="$CFLAGS"
14927   CFLAGS="$CCASFLAGS -x assembler-with-cpp"
14928   CC="$CCAS"
14929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h.  */
14931
14932     .text
14933     .arch armv8-a+fp+simd
14934     movi v0.16b, #100
14935 _ACEOF
14936 if ac_fn_c_try_compile "$LINENO"; then :
14937   ac_good_gnu_arm_assembler=yes
14938 fi
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940
14941   ac_use_gas_preprocessor=no
14942   if test "x$ac_good_gnu_arm_assembler" = "xno" ; then
14943     CC="gas-preprocessor.pl $CCAS"
14944     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h.  */
14946
14947       .text
14948       .arch armv8-a+fp+simd
14949       movi v0.16b, #100
14950 _ACEOF
14951 if ac_fn_c_try_compile "$LINENO"; then :
14952   ac_use_gas_preprocessor=yes
14953 fi
14954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14955   fi
14956   CFLAGS="$ac_save_CFLAGS"
14957   CC="$ac_save_CC"
14958
14959   if test "x$ac_use_gas_preprocessor" = "xyes" ; then
14960     CCAS="gas-preprocessor.pl $CCAS"
14961
14962     ac_good_gnu_arm_assembler=yes
14963   fi
14964
14965   if test "x$ac_good_gnu_arm_assembler" = "xyes" ; then
14966     if test "x$ac_use_gas_preprocessor" = "xyes"; then
14967            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (with gas-preprocessor)" >&5
14968 $as_echo "yes (with gas-preprocessor)" >&6; }
14969          else
14970            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14971 $as_echo "yes" >&6; }
14972          fi
14973          simd_arch=aarch64
14974   else
14975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976 $as_echo "no" >&6; }
14977          with_simd=no
14978   fi
14979
14980       if test "x${with_simd}" = "xno"; then
14981         if test "x${require_simd}" = "xyes"; then
14982           as_fn_error $? "SIMD support can't be enabled." "$LINENO" 5
14983         else
14984           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SIMD support can't be enabled.  Performance will suffer." >&5
14985 $as_echo "$as_me: WARNING: SIMD support can't be enabled.  Performance will suffer." >&2;}
14986         fi
14987       fi
14988       ;;
14989     mips*)
14990       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (mips)" >&5
14991 $as_echo "yes (mips)" >&6; }
14992       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler is GNU-compatible and can be used" >&5
14993 $as_echo_n "checking if the assembler is GNU-compatible and can be used... " >&6; }
14994
14995   have_mips_dspr2=no
14996   ac_save_CFLAGS="$CFLAGS"
14997   CFLAGS="$CCASFLAGS -mdspr2"
14998
14999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h.  */
15001
15002
15003   int main ()
15004   {
15005     int c = 0, a = 0, b = 0;
15006     __asm__ __volatile__ (
15007         "precr.qb.ph %[c], %[a], %[b]          \n\t"
15008         : [c] "=r" (c)
15009         : [a] "r" (a), [b] "r" (b)
15010     );
15011     return c;
15012   }
15013
15014 _ACEOF
15015 if ac_fn_c_try_compile "$LINENO"; then :
15016   have_mips_dspr2=yes
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019   CFLAGS=$ac_save_CFLAGS
15020
15021   if test "x$have_mips_dspr2" = "xyes" ; then
15022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15023 $as_echo "yes" >&6; }
15024          simd_arch=mips
15025   else
15026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 $as_echo "no" >&6; }
15028          with_simd=no
15029   fi
15030
15031       if test "x${with_simd}" = "xno"; then
15032         if test "x${require_simd}" = "xyes"; then
15033           as_fn_error $? "SIMD support can't be enabled." "$LINENO" 5
15034         else
15035           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SIMD support can't be enabled.  Performance will suffer." >&5
15036 $as_echo "$as_me: WARNING: SIMD support can't be enabled.  Performance will suffer." >&2;}
15037         fi
15038       fi
15039       ;;
15040     *)
15041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (\"$host_cpu\")" >&5
15042 $as_echo "no (\"$host_cpu\")" >&6; }
15043       with_simd=no;
15044       if test "x${require_simd}" = "xyes"; then
15045         as_fn_error $? "SIMD support not available for this CPU." "$LINENO" 5
15046       else
15047         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SIMD support not available for this CPU.  Performance will suffer." >&5
15048 $as_echo "$as_me: WARNING: SIMD support not available for this CPU.  Performance will suffer." >&2;}
15049       fi
15050       ;;
15051   esac
15052
15053   if test "x${with_simd}" != "xno"; then
15054
15055 $as_echo "#define WITH_SIMD 1" >>confdefs.h
15056
15057   fi
15058 else
15059   RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-simd"
15060 fi
15061
15062  if test "x$with_simd" != "xno"; then
15063   WITH_SIMD_TRUE=
15064   WITH_SIMD_FALSE='#'
15065 else
15066   WITH_SIMD_TRUE='#'
15067   WITH_SIMD_FALSE=
15068 fi
15069
15070  if test "x$simd_arch" = "xx86_64" -o "x$simd_arch" = "xi386"; then
15071   WITH_SSE_FLOAT_DCT_TRUE=
15072   WITH_SSE_FLOAT_DCT_FALSE='#'
15073 else
15074   WITH_SSE_FLOAT_DCT_TRUE='#'
15075   WITH_SSE_FLOAT_DCT_FALSE=
15076 fi
15077
15078  if test "x$simd_arch" = "xi386"; then
15079   SIMD_I386_TRUE=
15080   SIMD_I386_FALSE='#'
15081 else
15082   SIMD_I386_TRUE='#'
15083   SIMD_I386_FALSE=
15084 fi
15085
15086  if test "x$simd_arch" = "xx86_64"; then
15087   SIMD_X86_64_TRUE=
15088   SIMD_X86_64_FALSE='#'
15089 else
15090   SIMD_X86_64_TRUE='#'
15091   SIMD_X86_64_FALSE=
15092 fi
15093
15094  if test "x$simd_arch" = "xarm"; then
15095   SIMD_ARM_TRUE=
15096   SIMD_ARM_FALSE='#'
15097 else
15098   SIMD_ARM_TRUE='#'
15099   SIMD_ARM_FALSE=
15100 fi
15101
15102  if test "x$simd_arch" = "xaarch64"; then
15103   SIMD_ARM_64_TRUE=
15104   SIMD_ARM_64_FALSE='#'
15105 else
15106   SIMD_ARM_64_TRUE='#'
15107   SIMD_ARM_64_FALSE=
15108 fi
15109
15110  if test "x$simd_arch" = "xmips"; then
15111   SIMD_MIPS_TRUE=
15112   SIMD_MIPS_FALSE='#'
15113 else
15114   SIMD_MIPS_TRUE='#'
15115   SIMD_MIPS_FALSE=
15116 fi
15117
15118  if test "x$host_cpu" = "xx86_64" -o "x$host_cpu" = "xamd64"; then
15119   X86_64_TRUE=
15120   X86_64_FALSE='#'
15121 else
15122   X86_64_TRUE='#'
15123   X86_64_FALSE=
15124 fi
15125
15126  if test "x$with_turbojpeg" != "xno"; then
15127   WITH_TURBOJPEG_TRUE=
15128   WITH_TURBOJPEG_FALSE='#'
15129 else
15130   WITH_TURBOJPEG_TRUE='#'
15131   WITH_TURBOJPEG_FALSE=
15132 fi
15133
15134
15135
15136 if test "x$PKGNAME" = "x"; then
15137   PKGNAME=$PACKAGE_NAME
15138 fi
15139
15140
15141 case "$host_cpu" in
15142   x86_64)
15143     RPMARCH=x86_64
15144     DEBARCH=amd64
15145     ;;
15146   i*86 | x86 | ia32)
15147     RPMARCH=i386
15148     DEBARCH=i386
15149     ;;
15150   *)
15151     RPMARCH=`uname -m`
15152     DEBARCH=$RPMARCH
15153     ;;
15154 esac
15155
15156 if test "${docdir}" = ""; then
15157   docdir=${datadir}/doc
15158
15159 fi
15160
15161
15162
15163
15164
15165
15166 cat >>confdefs.h <<_ACEOF
15167 #define BUILD "$BUILD"
15168 _ACEOF
15169
15170
15171 # NOTE: autoheader automatically modifies the input file of the first
15172 # invocation of AC_CONFIG_HEADERS, so we put config.h first to prevent
15173 # jconfig.h.in from being clobbered.  config.h is used only internally, whereas
15174 # jconfig.h contains macros that are relevant to external programs (macros that
15175 # specify which features were built into the library.)
15176 ac_config_headers="$ac_config_headers config.h"
15177
15178 ac_config_headers="$ac_config_headers jconfig.h"
15179
15180 ac_config_headers="$ac_config_headers jconfigint.h"
15181
15182 ac_config_files="$ac_config_files pkgscripts/libjpeg-turbo.spec.tmpl:release/libjpeg-turbo.spec.in"
15183
15184 ac_config_files="$ac_config_files pkgscripts/makecygwinpkg.tmpl:release/makecygwinpkg.in"
15185
15186 ac_config_files="$ac_config_files pkgscripts/makedpkg.tmpl:release/makedpkg.in"
15187
15188 ac_config_files="$ac_config_files pkgscripts/makemacpkg.tmpl:release/makemacpkg.in"
15189
15190 ac_config_files="$ac_config_files pkgscripts/uninstall.tmpl:release/uninstall.in"
15191
15192 if test "x$with_turbojpeg" != "xno"; then
15193   ac_config_files="$ac_config_files tjbenchtest"
15194
15195 fi
15196 if test "x$with_java" = "xyes"; then
15197   ac_config_files="$ac_config_files tjbenchtest.java"
15198
15199   ac_config_files="$ac_config_files tjexampletest"
15200
15201 fi
15202 ac_config_files="$ac_config_files libjpeg.map"
15203
15204 ac_config_files="$ac_config_files Makefile simd/Makefile"
15205
15206 ac_config_files="$ac_config_files java/Makefile"
15207
15208 ac_config_files="$ac_config_files md5/Makefile"
15209
15210 cat >confcache <<\_ACEOF
15211 # This file is a shell script that caches the results of configure
15212 # tests run on this system so they can be shared between configure
15213 # scripts and configure runs, see configure's option --config-cache.
15214 # It is not useful on other systems.  If it contains results you don't
15215 # want to keep, you may remove or edit it.
15216 #
15217 # config.status only pays attention to the cache file if you give it
15218 # the --recheck option to rerun configure.
15219 #
15220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15222 # following values.
15223
15224 _ACEOF
15225
15226 # The following way of writing the cache mishandles newlines in values,
15227 # but we know of no workaround that is simple, portable, and efficient.
15228 # So, we kill variables containing newlines.
15229 # Ultrix sh set writes to stderr and can't be redirected directly,
15230 # and sets the high bit in the cache file unless we assign to the vars.
15231 (
15232   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15233     eval ac_val=\$$ac_var
15234     case $ac_val in #(
15235     *${as_nl}*)
15236       case $ac_var in #(
15237       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15239       esac
15240       case $ac_var in #(
15241       _ | IFS | as_nl) ;; #(
15242       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15243       *) { eval $ac_var=; unset $ac_var;} ;;
15244       esac ;;
15245     esac
15246   done
15247
15248   (set) 2>&1 |
15249     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15250     *${as_nl}ac_space=\ *)
15251       # `set' does not quote correctly, so add quotes: double-quote
15252       # substitution turns \\\\ into \\, and sed turns \\ into \.
15253       sed -n \
15254         "s/'/'\\\\''/g;
15255           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15256       ;; #(
15257     *)
15258       # `set' quotes correctly as required by POSIX, so do not add quotes.
15259       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15260       ;;
15261     esac |
15262     sort
15263 ) |
15264   sed '
15265      /^ac_cv_env_/b end
15266      t clear
15267      :clear
15268      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15269      t end
15270      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15271      :end' >>confcache
15272 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15273   if test -w "$cache_file"; then
15274     if test "x$cache_file" != "x/dev/null"; then
15275       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15276 $as_echo "$as_me: updating cache $cache_file" >&6;}
15277       if test ! -f "$cache_file" || test -h "$cache_file"; then
15278         cat confcache >"$cache_file"
15279       else
15280         case $cache_file in #(
15281         */* | ?:*)
15282           mv -f confcache "$cache_file"$$ &&
15283           mv -f "$cache_file"$$ "$cache_file" ;; #(
15284         *)
15285           mv -f confcache "$cache_file" ;;
15286         esac
15287       fi
15288     fi
15289   else
15290     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15291 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15292   fi
15293 fi
15294 rm -f confcache
15295
15296 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15297 # Let make expand exec_prefix.
15298 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15299
15300 DEFS=-DHAVE_CONFIG_H
15301
15302 ac_libobjs=
15303 ac_ltlibobjs=
15304 U=
15305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15306   # 1. Remove the extension, and $U if already installed.
15307   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15308   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15309   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15310   #    will be set to the directory where LIBOBJS objects are built.
15311   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15312   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15313 done
15314 LIBOBJS=$ac_libobjs
15315
15316 LTLIBOBJS=$ac_ltlibobjs
15317
15318
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15320 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15321    if test -n "$am_sleep_pid"; then
15322      # Hide warnings about reused PIDs.
15323      wait $am_sleep_pid 2>/dev/null
15324    fi
15325    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15326 $as_echo "done" >&6; }
15327  if test -n "$EXEEXT"; then
15328   am__EXEEXT_TRUE=
15329   am__EXEEXT_FALSE='#'
15330 else
15331   am__EXEEXT_TRUE='#'
15332   am__EXEEXT_FALSE=
15333 fi
15334
15335 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15336   as_fn_error $? "conditional \"AMDEP\" was never defined.
15337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15338 fi
15339 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15340   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15342 fi
15343 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15344   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346 fi
15347 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15348   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350 fi
15351 if test -z "${VERSION_SCRIPT_TRUE}" && test -z "${VERSION_SCRIPT_FALSE}"; then
15352   as_fn_error $? "conditional \"VERSION_SCRIPT\" was never defined.
15353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354 fi
15355 if test -z "${WITH_ARITH_ENC_TRUE}" && test -z "${WITH_ARITH_ENC_FALSE}"; then
15356   as_fn_error $? "conditional \"WITH_ARITH_ENC\" was never defined.
15357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358 fi
15359 if test -z "${WITH_ARITH_DEC_TRUE}" && test -z "${WITH_ARITH_DEC_FALSE}"; then
15360   as_fn_error $? "conditional \"WITH_ARITH_DEC\" was never defined.
15361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362 fi
15363 if test -z "${WITH_ARITH_TRUE}" && test -z "${WITH_ARITH_FALSE}"; then
15364   as_fn_error $? "conditional \"WITH_ARITH\" was never defined.
15365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366 fi
15367 if test -z "${WITH_12BIT_TRUE}" && test -z "${WITH_12BIT_FALSE}"; then
15368   as_fn_error $? "conditional \"WITH_12BIT\" was never defined.
15369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15370 fi
15371 if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
15372   as_fn_error $? "conditional \"WITH_JAVA\" was never defined.
15373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15374 fi
15375 if test -z "${WITH_SIMD_TRUE}" && test -z "${WITH_SIMD_FALSE}"; then
15376   as_fn_error $? "conditional \"WITH_SIMD\" was never defined.
15377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15378 fi
15379 if test -z "${WITH_SSE_FLOAT_DCT_TRUE}" && test -z "${WITH_SSE_FLOAT_DCT_FALSE}"; then
15380   as_fn_error $? "conditional \"WITH_SSE_FLOAT_DCT\" was never defined.
15381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15382 fi
15383 if test -z "${SIMD_I386_TRUE}" && test -z "${SIMD_I386_FALSE}"; then
15384   as_fn_error $? "conditional \"SIMD_I386\" was never defined.
15385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15386 fi
15387 if test -z "${SIMD_X86_64_TRUE}" && test -z "${SIMD_X86_64_FALSE}"; then
15388   as_fn_error $? "conditional \"SIMD_X86_64\" was never defined.
15389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15390 fi
15391 if test -z "${SIMD_ARM_TRUE}" && test -z "${SIMD_ARM_FALSE}"; then
15392   as_fn_error $? "conditional \"SIMD_ARM\" was never defined.
15393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15394 fi
15395 if test -z "${SIMD_ARM_64_TRUE}" && test -z "${SIMD_ARM_64_FALSE}"; then
15396   as_fn_error $? "conditional \"SIMD_ARM_64\" was never defined.
15397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15398 fi
15399 if test -z "${SIMD_MIPS_TRUE}" && test -z "${SIMD_MIPS_FALSE}"; then
15400   as_fn_error $? "conditional \"SIMD_MIPS\" was never defined.
15401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15402 fi
15403 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15404   as_fn_error $? "conditional \"X86_64\" was never defined.
15405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15406 fi
15407 if test -z "${WITH_TURBOJPEG_TRUE}" && test -z "${WITH_TURBOJPEG_FALSE}"; then
15408   as_fn_error $? "conditional \"WITH_TURBOJPEG\" was never defined.
15409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15410 fi
15411
15412 : "${CONFIG_STATUS=./config.status}"
15413 ac_write_fail=0
15414 ac_clean_files_save=$ac_clean_files
15415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15418 as_write_fail=0
15419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15420 #! $SHELL
15421 # Generated by $as_me.
15422 # Run this file to recreate the current configuration.
15423 # Compiler output produced by configure, useful for debugging
15424 # configure, is in config.log if it exists.
15425
15426 debug=false
15427 ac_cs_recheck=false
15428 ac_cs_silent=false
15429
15430 SHELL=\${CONFIG_SHELL-$SHELL}
15431 export SHELL
15432 _ASEOF
15433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15434 ## -------------------- ##
15435 ## M4sh Initialization. ##
15436 ## -------------------- ##
15437
15438 # Be more Bourne compatible
15439 DUALCASE=1; export DUALCASE # for MKS sh
15440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15441   emulate sh
15442   NULLCMD=:
15443   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15444   # is contrary to our usage.  Disable this feature.
15445   alias -g '${1+"$@"}'='"$@"'
15446   setopt NO_GLOB_SUBST
15447 else
15448   case `(set -o) 2>/dev/null` in #(
15449   *posix*) :
15450     set -o posix ;; #(
15451   *) :
15452      ;;
15453 esac
15454 fi
15455
15456
15457 as_nl='
15458 '
15459 export as_nl
15460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15464 # Prefer a ksh shell builtin over an external printf program on Solaris,
15465 # but without wasting forks for bash or zsh.
15466 if test -z "$BASH_VERSION$ZSH_VERSION" \
15467     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15468   as_echo='print -r --'
15469   as_echo_n='print -rn --'
15470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15471   as_echo='printf %s\n'
15472   as_echo_n='printf %s'
15473 else
15474   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15475     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15476     as_echo_n='/usr/ucb/echo -n'
15477   else
15478     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15479     as_echo_n_body='eval
15480       arg=$1;
15481       case $arg in #(
15482       *"$as_nl"*)
15483         expr "X$arg" : "X\\(.*\\)$as_nl";
15484         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15485       esac;
15486       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15487     '
15488     export as_echo_n_body
15489     as_echo_n='sh -c $as_echo_n_body as_echo'
15490   fi
15491   export as_echo_body
15492   as_echo='sh -c $as_echo_body as_echo'
15493 fi
15494
15495 # The user is always right.
15496 if test "${PATH_SEPARATOR+set}" != set; then
15497   PATH_SEPARATOR=:
15498   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15499     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15500       PATH_SEPARATOR=';'
15501   }
15502 fi
15503
15504
15505 # IFS
15506 # We need space, tab and new line, in precisely that order.  Quoting is
15507 # there to prevent editors from complaining about space-tab.
15508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15509 # splitting by setting IFS to empty value.)
15510 IFS=" ""        $as_nl"
15511
15512 # Find who we are.  Look in the path if we contain no directory separator.
15513 as_myself=
15514 case $0 in #((
15515   *[\\/]* ) as_myself=$0 ;;
15516   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517 for as_dir in $PATH
15518 do
15519   IFS=$as_save_IFS
15520   test -z "$as_dir" && as_dir=.
15521     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15522   done
15523 IFS=$as_save_IFS
15524
15525      ;;
15526 esac
15527 # We did not find ourselves, most probably we were run as `sh COMMAND'
15528 # in which case we are not to be found in the path.
15529 if test "x$as_myself" = x; then
15530   as_myself=$0
15531 fi
15532 if test ! -f "$as_myself"; then
15533   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15534   exit 1
15535 fi
15536
15537 # Unset variables that we do not need and which cause bugs (e.g. in
15538 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15539 # suppresses any "Segmentation fault" message there.  '((' could
15540 # trigger a bug in pdksh 5.2.14.
15541 for as_var in BASH_ENV ENV MAIL MAILPATH
15542 do eval test x\${$as_var+set} = xset \
15543   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15544 done
15545 PS1='$ '
15546 PS2='> '
15547 PS4='+ '
15548
15549 # NLS nuisances.
15550 LC_ALL=C
15551 export LC_ALL
15552 LANGUAGE=C
15553 export LANGUAGE
15554
15555 # CDPATH.
15556 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15557
15558
15559 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15560 # ----------------------------------------
15561 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15562 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15563 # script with STATUS, using 1 if that was 0.
15564 as_fn_error ()
15565 {
15566   as_status=$1; test $as_status -eq 0 && as_status=1
15567   if test "$4"; then
15568     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15569     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15570   fi
15571   $as_echo "$as_me: error: $2" >&2
15572   as_fn_exit $as_status
15573 } # as_fn_error
15574
15575
15576 # as_fn_set_status STATUS
15577 # -----------------------
15578 # Set $? to STATUS, without forking.
15579 as_fn_set_status ()
15580 {
15581   return $1
15582 } # as_fn_set_status
15583
15584 # as_fn_exit STATUS
15585 # -----------------
15586 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15587 as_fn_exit ()
15588 {
15589   set +e
15590   as_fn_set_status $1
15591   exit $1
15592 } # as_fn_exit
15593
15594 # as_fn_unset VAR
15595 # ---------------
15596 # Portably unset VAR.
15597 as_fn_unset ()
15598 {
15599   { eval $1=; unset $1;}
15600 }
15601 as_unset=as_fn_unset
15602 # as_fn_append VAR VALUE
15603 # ----------------------
15604 # Append the text in VALUE to the end of the definition contained in VAR. Take
15605 # advantage of any shell optimizations that allow amortized linear growth over
15606 # repeated appends, instead of the typical quadratic growth present in naive
15607 # implementations.
15608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15609   eval 'as_fn_append ()
15610   {
15611     eval $1+=\$2
15612   }'
15613 else
15614   as_fn_append ()
15615   {
15616     eval $1=\$$1\$2
15617   }
15618 fi # as_fn_append
15619
15620 # as_fn_arith ARG...
15621 # ------------------
15622 # Perform arithmetic evaluation on the ARGs, and store the result in the
15623 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15624 # must be portable across $(()) and expr.
15625 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15626   eval 'as_fn_arith ()
15627   {
15628     as_val=$(( $* ))
15629   }'
15630 else
15631   as_fn_arith ()
15632   {
15633     as_val=`expr "$@" || test $? -eq 1`
15634   }
15635 fi # as_fn_arith
15636
15637
15638 if expr a : '\(a\)' >/dev/null 2>&1 &&
15639    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15640   as_expr=expr
15641 else
15642   as_expr=false
15643 fi
15644
15645 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15646   as_basename=basename
15647 else
15648   as_basename=false
15649 fi
15650
15651 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15652   as_dirname=dirname
15653 else
15654   as_dirname=false
15655 fi
15656
15657 as_me=`$as_basename -- "$0" ||
15658 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15659          X"$0" : 'X\(//\)$' \| \
15660          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15661 $as_echo X/"$0" |
15662     sed '/^.*\/\([^/][^/]*\)\/*$/{
15663             s//\1/
15664             q
15665           }
15666           /^X\/\(\/\/\)$/{
15667             s//\1/
15668             q
15669           }
15670           /^X\/\(\/\).*/{
15671             s//\1/
15672             q
15673           }
15674           s/.*/./; q'`
15675
15676 # Avoid depending upon Character Ranges.
15677 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15678 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15679 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15680 as_cr_digits='0123456789'
15681 as_cr_alnum=$as_cr_Letters$as_cr_digits
15682
15683 ECHO_C= ECHO_N= ECHO_T=
15684 case `echo -n x` in #(((((
15685 -n*)
15686   case `echo 'xy\c'` in
15687   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15688   xy)  ECHO_C='\c';;
15689   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15690        ECHO_T=' ';;
15691   esac;;
15692 *)
15693   ECHO_N='-n';;
15694 esac
15695
15696 rm -f conf$$ conf$$.exe conf$$.file
15697 if test -d conf$$.dir; then
15698   rm -f conf$$.dir/conf$$.file
15699 else
15700   rm -f conf$$.dir
15701   mkdir conf$$.dir 2>/dev/null
15702 fi
15703 if (echo >conf$$.file) 2>/dev/null; then
15704   if ln -s conf$$.file conf$$ 2>/dev/null; then
15705     as_ln_s='ln -s'
15706     # ... but there are two gotchas:
15707     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15708     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15709     # In both cases, we have to default to `cp -pR'.
15710     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15711       as_ln_s='cp -pR'
15712   elif ln conf$$.file conf$$ 2>/dev/null; then
15713     as_ln_s=ln
15714   else
15715     as_ln_s='cp -pR'
15716   fi
15717 else
15718   as_ln_s='cp -pR'
15719 fi
15720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15721 rmdir conf$$.dir 2>/dev/null
15722
15723
15724 # as_fn_mkdir_p
15725 # -------------
15726 # Create "$as_dir" as a directory, including parents if necessary.
15727 as_fn_mkdir_p ()
15728 {
15729
15730   case $as_dir in #(
15731   -*) as_dir=./$as_dir;;
15732   esac
15733   test -d "$as_dir" || eval $as_mkdir_p || {
15734     as_dirs=
15735     while :; do
15736       case $as_dir in #(
15737       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15738       *) as_qdir=$as_dir;;
15739       esac
15740       as_dirs="'$as_qdir' $as_dirs"
15741       as_dir=`$as_dirname -- "$as_dir" ||
15742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15743          X"$as_dir" : 'X\(//\)[^/]' \| \
15744          X"$as_dir" : 'X\(//\)$' \| \
15745          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15746 $as_echo X"$as_dir" |
15747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15748             s//\1/
15749             q
15750           }
15751           /^X\(\/\/\)[^/].*/{
15752             s//\1/
15753             q
15754           }
15755           /^X\(\/\/\)$/{
15756             s//\1/
15757             q
15758           }
15759           /^X\(\/\).*/{
15760             s//\1/
15761             q
15762           }
15763           s/.*/./; q'`
15764       test -d "$as_dir" && break
15765     done
15766     test -z "$as_dirs" || eval "mkdir $as_dirs"
15767   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15768
15769
15770 } # as_fn_mkdir_p
15771 if mkdir -p . 2>/dev/null; then
15772   as_mkdir_p='mkdir -p "$as_dir"'
15773 else
15774   test -d ./-p && rmdir ./-p
15775   as_mkdir_p=false
15776 fi
15777
15778
15779 # as_fn_executable_p FILE
15780 # -----------------------
15781 # Test if FILE is an executable regular file.
15782 as_fn_executable_p ()
15783 {
15784   test -f "$1" && test -x "$1"
15785 } # as_fn_executable_p
15786 as_test_x='test -x'
15787 as_executable_p=as_fn_executable_p
15788
15789 # Sed expression to map a string onto a valid CPP name.
15790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15791
15792 # Sed expression to map a string onto a valid variable name.
15793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15794
15795
15796 exec 6>&1
15797 ## ----------------------------------- ##
15798 ## Main body of $CONFIG_STATUS script. ##
15799 ## ----------------------------------- ##
15800 _ASEOF
15801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15802
15803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15804 # Save the log message, to keep $0 and so on meaningful, and to
15805 # report actual input values of CONFIG_FILES etc. instead of their
15806 # values after options handling.
15807 ac_log="
15808 This file was extended by libjpeg-turbo $as_me 1.4.2, which was
15809 generated by GNU Autoconf 2.69.  Invocation command line was
15810
15811   CONFIG_FILES    = $CONFIG_FILES
15812   CONFIG_HEADERS  = $CONFIG_HEADERS
15813   CONFIG_LINKS    = $CONFIG_LINKS
15814   CONFIG_COMMANDS = $CONFIG_COMMANDS
15815   $ $0 $@
15816
15817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15818 "
15819
15820 _ACEOF
15821
15822 case $ac_config_files in *"
15823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15824 esac
15825
15826 case $ac_config_headers in *"
15827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15828 esac
15829
15830
15831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15832 # Files that config.status was made for.
15833 config_files="$ac_config_files"
15834 config_headers="$ac_config_headers"
15835 config_commands="$ac_config_commands"
15836
15837 _ACEOF
15838
15839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15840 ac_cs_usage="\
15841 \`$as_me' instantiates files and other configuration actions
15842 from templates according to the current configuration.  Unless the files
15843 and actions are specified as TAGs, all are instantiated by default.
15844
15845 Usage: $0 [OPTION]... [TAG]...
15846
15847   -h, --help       print this help, then exit
15848   -V, --version    print version number and configuration settings, then exit
15849       --config     print configuration, then exit
15850   -q, --quiet, --silent
15851                    do not print progress messages
15852   -d, --debug      don't remove temporary files
15853       --recheck    update $as_me by reconfiguring in the same conditions
15854       --file=FILE[:TEMPLATE]
15855                    instantiate the configuration file FILE
15856       --header=FILE[:TEMPLATE]
15857                    instantiate the configuration header FILE
15858
15859 Configuration files:
15860 $config_files
15861
15862 Configuration headers:
15863 $config_headers
15864
15865 Configuration commands:
15866 $config_commands
15867
15868 Report bugs to the package provider."
15869
15870 _ACEOF
15871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15873 ac_cs_version="\\
15874 libjpeg-turbo config.status 1.4.2
15875 configured by $0, generated by GNU Autoconf 2.69,
15876   with options \\"\$ac_cs_config\\"
15877
15878 Copyright (C) 2012 Free Software Foundation, Inc.
15879 This config.status script is free software; the Free Software Foundation
15880 gives unlimited permission to copy, distribute and modify it."
15881
15882 ac_pwd='$ac_pwd'
15883 srcdir='$srcdir'
15884 INSTALL='$INSTALL'
15885 MKDIR_P='$MKDIR_P'
15886 AWK='$AWK'
15887 test -n "\$AWK" || AWK=awk
15888 _ACEOF
15889
15890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15891 # The default lists apply if the user does not specify any file.
15892 ac_need_defaults=:
15893 while test $# != 0
15894 do
15895   case $1 in
15896   --*=?*)
15897     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15898     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15899     ac_shift=:
15900     ;;
15901   --*=)
15902     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15903     ac_optarg=
15904     ac_shift=:
15905     ;;
15906   *)
15907     ac_option=$1
15908     ac_optarg=$2
15909     ac_shift=shift
15910     ;;
15911   esac
15912
15913   case $ac_option in
15914   # Handling of the options.
15915   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15916     ac_cs_recheck=: ;;
15917   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15918     $as_echo "$ac_cs_version"; exit ;;
15919   --config | --confi | --conf | --con | --co | --c )
15920     $as_echo "$ac_cs_config"; exit ;;
15921   --debug | --debu | --deb | --de | --d | -d )
15922     debug=: ;;
15923   --file | --fil | --fi | --f )
15924     $ac_shift
15925     case $ac_optarg in
15926     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15927     '') as_fn_error $? "missing file argument" ;;
15928     esac
15929     as_fn_append CONFIG_FILES " '$ac_optarg'"
15930     ac_need_defaults=false;;
15931   --header | --heade | --head | --hea )
15932     $ac_shift
15933     case $ac_optarg in
15934     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15935     esac
15936     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15937     ac_need_defaults=false;;
15938   --he | --h)
15939     # Conflict between --help and --header
15940     as_fn_error $? "ambiguous option: \`$1'
15941 Try \`$0 --help' for more information.";;
15942   --help | --hel | -h )
15943     $as_echo "$ac_cs_usage"; exit ;;
15944   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15945   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15946     ac_cs_silent=: ;;
15947
15948   # This is an error.
15949   -*) as_fn_error $? "unrecognized option: \`$1'
15950 Try \`$0 --help' for more information." ;;
15951
15952   *) as_fn_append ac_config_targets " $1"
15953      ac_need_defaults=false ;;
15954
15955   esac
15956   shift
15957 done
15958
15959 ac_configure_extra_args=
15960
15961 if $ac_cs_silent; then
15962   exec 6>/dev/null
15963   ac_configure_extra_args="$ac_configure_extra_args --silent"
15964 fi
15965
15966 _ACEOF
15967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15968 if \$ac_cs_recheck; then
15969   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15970   shift
15971   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15972   CONFIG_SHELL='$SHELL'
15973   export CONFIG_SHELL
15974   exec "\$@"
15975 fi
15976
15977 _ACEOF
15978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979 exec 5>>config.log
15980 {
15981   echo
15982   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15983 ## Running $as_me. ##
15984 _ASBOX
15985   $as_echo "$ac_log"
15986 } >&5
15987
15988 _ACEOF
15989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15990 #
15991 # INIT-COMMANDS
15992 #
15993 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15994
15995
15996 # The HP-UX ksh and POSIX shell print the target directory to stdout
15997 # if CDPATH is set.
15998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15999
16000 sed_quote_subst='$sed_quote_subst'
16001 double_quote_subst='$double_quote_subst'
16002 delay_variable_subst='$delay_variable_subst'
16003 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16004 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16005 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16006 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16007 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16008 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16009 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16010 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16011 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16012 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16013 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16014 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16015 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16016 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16017 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16018 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16019 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16020 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16021 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16022 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16023 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16024 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16025 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16026 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16027 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16028 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16029 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16030 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16031 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16032 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16033 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16034 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16035 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16036 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16037 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16038 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16039 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16040 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16041 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16042 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16043 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16044 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16045 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16046 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16047 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16048 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16049 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16050 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16051 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16052 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16053 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16054 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16055 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16056 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16057 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16058 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16059 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16060 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16061 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"`'
16062 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16063 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16064 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16065 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16066 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16067 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16068 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16069 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16070 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16071 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16072 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16073 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16074 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16075 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16076 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16077 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16078 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16079 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16080 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16081 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16082 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16083 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16084 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16085 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16086 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16087 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16088 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16089 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16090 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16091 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16092 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16093 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16094 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16095 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16096 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16097 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16098 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16099 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16100 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16101 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16102 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16103 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16104 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16105 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16106 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16107 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16108 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16109 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16110 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16111 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16112 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16113 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16114 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16115 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16116 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16117 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16118 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16119 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16120 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16121 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16122 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16123 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16124 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16125 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16126 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16127 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16128 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16129 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16130 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16131 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16132 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16133 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16134 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16135 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16136 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16137 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16138
16139 LTCC='$LTCC'
16140 LTCFLAGS='$LTCFLAGS'
16141 compiler='$compiler_DEFAULT'
16142
16143 # A function that is used when there is no print builtin or printf.
16144 func_fallback_echo ()
16145 {
16146   eval 'cat <<_LTECHO_EOF
16147 \$1
16148 _LTECHO_EOF'
16149 }
16150
16151 # Quote evaled strings.
16152 for var in SHELL \
16153 ECHO \
16154 PATH_SEPARATOR \
16155 SED \
16156 GREP \
16157 EGREP \
16158 FGREP \
16159 LD \
16160 NM \
16161 LN_S \
16162 lt_SP2NL \
16163 lt_NL2SP \
16164 reload_flag \
16165 OBJDUMP \
16166 deplibs_check_method \
16167 file_magic_cmd \
16168 file_magic_glob \
16169 want_nocaseglob \
16170 DLLTOOL \
16171 sharedlib_from_linklib_cmd \
16172 AR \
16173 AR_FLAGS \
16174 archiver_list_spec \
16175 STRIP \
16176 RANLIB \
16177 CC \
16178 CFLAGS \
16179 compiler \
16180 lt_cv_sys_global_symbol_pipe \
16181 lt_cv_sys_global_symbol_to_cdecl \
16182 lt_cv_sys_global_symbol_to_import \
16183 lt_cv_sys_global_symbol_to_c_name_address \
16184 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16185 lt_cv_nm_interface \
16186 nm_file_list_spec \
16187 lt_cv_truncate_bin \
16188 lt_prog_compiler_no_builtin_flag \
16189 lt_prog_compiler_pic \
16190 lt_prog_compiler_wl \
16191 lt_prog_compiler_static \
16192 lt_cv_prog_compiler_c_o \
16193 need_locks \
16194 MANIFEST_TOOL \
16195 DSYMUTIL \
16196 NMEDIT \
16197 LIPO \
16198 OTOOL \
16199 OTOOL64 \
16200 shrext_cmds \
16201 export_dynamic_flag_spec \
16202 whole_archive_flag_spec \
16203 compiler_needs_object \
16204 with_gnu_ld \
16205 allow_undefined_flag \
16206 no_undefined_flag \
16207 hardcode_libdir_flag_spec \
16208 hardcode_libdir_separator \
16209 exclude_expsyms \
16210 include_expsyms \
16211 file_list_spec \
16212 variables_saved_for_relink \
16213 libname_spec \
16214 library_names_spec \
16215 soname_spec \
16216 install_override_mode \
16217 finish_eval \
16218 old_striplib \
16219 striplib; do
16220     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16221     *[\\\\\\\`\\"\\\$]*)
16222       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16223       ;;
16224     *)
16225       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16226       ;;
16227     esac
16228 done
16229
16230 # Double-quote double-evaled strings.
16231 for var in reload_cmds \
16232 old_postinstall_cmds \
16233 old_postuninstall_cmds \
16234 old_archive_cmds \
16235 extract_expsyms_cmds \
16236 old_archive_from_new_cmds \
16237 old_archive_from_expsyms_cmds \
16238 archive_cmds \
16239 archive_expsym_cmds \
16240 module_cmds \
16241 module_expsym_cmds \
16242 export_symbols_cmds \
16243 prelink_cmds \
16244 postlink_cmds \
16245 postinstall_cmds \
16246 postuninstall_cmds \
16247 finish_cmds \
16248 sys_lib_search_path_spec \
16249 configure_time_dlsearch_path \
16250 configure_time_lt_sys_library_path; do
16251     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16252     *[\\\\\\\`\\"\\\$]*)
16253       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16254       ;;
16255     *)
16256       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16257       ;;
16258     esac
16259 done
16260
16261 ac_aux_dir='$ac_aux_dir'
16262
16263 # See if we are running on zsh, and set the options that allow our
16264 # commands through without removal of \ escapes INIT.
16265 if test -n "\${ZSH_VERSION+set}"; then
16266    setopt NO_GLOB_SUBST
16267 fi
16268
16269
16270     PACKAGE='$PACKAGE'
16271     VERSION='$VERSION'
16272     RM='$RM'
16273     ofile='$ofile'
16274
16275
16276
16277
16278 _ACEOF
16279
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281
16282 # Handling of arguments.
16283 for ac_config_target in $ac_config_targets
16284 do
16285   case $ac_config_target in
16286     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16287     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16288     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16289     "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h" ;;
16290     "jconfigint.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfigint.h" ;;
16291     "pkgscripts/libjpeg-turbo.spec.tmpl") CONFIG_FILES="$CONFIG_FILES pkgscripts/libjpeg-turbo.spec.tmpl:release/libjpeg-turbo.spec.in" ;;
16292     "pkgscripts/makecygwinpkg.tmpl") CONFIG_FILES="$CONFIG_FILES pkgscripts/makecygwinpkg.tmpl:release/makecygwinpkg.in" ;;
16293     "pkgscripts/makedpkg.tmpl") CONFIG_FILES="$CONFIG_FILES pkgscripts/makedpkg.tmpl:release/makedpkg.in" ;;
16294     "pkgscripts/makemacpkg.tmpl") CONFIG_FILES="$CONFIG_FILES pkgscripts/makemacpkg.tmpl:release/makemacpkg.in" ;;
16295     "pkgscripts/uninstall.tmpl") CONFIG_FILES="$CONFIG_FILES pkgscripts/uninstall.tmpl:release/uninstall.in" ;;
16296     "tjbenchtest") CONFIG_FILES="$CONFIG_FILES tjbenchtest" ;;
16297     "tjbenchtest.java") CONFIG_FILES="$CONFIG_FILES tjbenchtest.java" ;;
16298     "tjexampletest") CONFIG_FILES="$CONFIG_FILES tjexampletest" ;;
16299     "libjpeg.map") CONFIG_FILES="$CONFIG_FILES libjpeg.map" ;;
16300     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16301     "simd/Makefile") CONFIG_FILES="$CONFIG_FILES simd/Makefile" ;;
16302     "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
16303     "md5/Makefile") CONFIG_FILES="$CONFIG_FILES md5/Makefile" ;;
16304
16305   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16306   esac
16307 done
16308
16309
16310 # If the user did not use the arguments to specify the items to instantiate,
16311 # then the envvar interface is used.  Set only those that are not.
16312 # We use the long form for the default assignment because of an extremely
16313 # bizarre bug on SunOS 4.1.3.
16314 if $ac_need_defaults; then
16315   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16316   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16317   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16318 fi
16319
16320 # Have a temporary directory for convenience.  Make it in the build tree
16321 # simply because there is no reason against having it here, and in addition,
16322 # creating and moving files from /tmp can sometimes cause problems.
16323 # Hook for its removal unless debugging.
16324 # Note that there is a small window in which the directory will not be cleaned:
16325 # after its creation but before its name has been assigned to `$tmp'.
16326 $debug ||
16327 {
16328   tmp= ac_tmp=
16329   trap 'exit_status=$?
16330   : "${ac_tmp:=$tmp}"
16331   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16332 ' 0
16333   trap 'as_fn_exit 1' 1 2 13 15
16334 }
16335 # Create a (secure) tmp directory for tmp files.
16336
16337 {
16338   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16339   test -d "$tmp"
16340 }  ||
16341 {
16342   tmp=./conf$$-$RANDOM
16343   (umask 077 && mkdir "$tmp")
16344 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16345 ac_tmp=$tmp
16346
16347 # Set up the scripts for CONFIG_FILES section.
16348 # No need to generate them if there are no CONFIG_FILES.
16349 # This happens for instance with `./config.status config.h'.
16350 if test -n "$CONFIG_FILES"; then
16351
16352
16353 ac_cr=`echo X | tr X '\015'`
16354 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16355 # But we know of no other shell where ac_cr would be empty at this
16356 # point, so we can use a bashism as a fallback.
16357 if test "x$ac_cr" = x; then
16358   eval ac_cr=\$\'\\r\'
16359 fi
16360 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16361 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16362   ac_cs_awk_cr='\\r'
16363 else
16364   ac_cs_awk_cr=$ac_cr
16365 fi
16366
16367 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16368 _ACEOF
16369
16370
16371 {
16372   echo "cat >conf$$subs.awk <<_ACEOF" &&
16373   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16374   echo "_ACEOF"
16375 } >conf$$subs.sh ||
16376   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16377 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16378 ac_delim='%!_!# '
16379 for ac_last_try in false false false false false :; do
16380   . ./conf$$subs.sh ||
16381     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16382
16383   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16384   if test $ac_delim_n = $ac_delim_num; then
16385     break
16386   elif $ac_last_try; then
16387     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16388   else
16389     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16390   fi
16391 done
16392 rm -f conf$$subs.sh
16393
16394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16396 _ACEOF
16397 sed -n '
16398 h
16399 s/^/S["/; s/!.*/"]=/
16400 p
16401 g
16402 s/^[^!]*!//
16403 :repl
16404 t repl
16405 s/'"$ac_delim"'$//
16406 t delim
16407 :nl
16408 h
16409 s/\(.\{148\}\)..*/\1/
16410 t more1
16411 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16412 p
16413 n
16414 b repl
16415 :more1
16416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16417 p
16418 g
16419 s/.\{148\}//
16420 t nl
16421 :delim
16422 h
16423 s/\(.\{148\}\)..*/\1/
16424 t more2
16425 s/["\\]/\\&/g; s/^/"/; s/$/"/
16426 p
16427 b
16428 :more2
16429 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16430 p
16431 g
16432 s/.\{148\}//
16433 t delim
16434 ' <conf$$subs.awk | sed '
16435 /^[^""]/{
16436   N
16437   s/\n//
16438 }
16439 ' >>$CONFIG_STATUS || ac_write_fail=1
16440 rm -f conf$$subs.awk
16441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16442 _ACAWK
16443 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16444   for (key in S) S_is_set[key] = 1
16445   FS = "\a"
16446
16447 }
16448 {
16449   line = $ 0
16450   nfields = split(line, field, "@")
16451   substed = 0
16452   len = length(field[1])
16453   for (i = 2; i < nfields; i++) {
16454     key = field[i]
16455     keylen = length(key)
16456     if (S_is_set[key]) {
16457       value = S[key]
16458       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16459       len += length(value) + length(field[++i])
16460       substed = 1
16461     } else
16462       len += 1 + keylen
16463   }
16464
16465   print line
16466 }
16467
16468 _ACAWK
16469 _ACEOF
16470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16471 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16472   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16473 else
16474   cat
16475 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16476   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16477 _ACEOF
16478
16479 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16480 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16481 # trailing colons and then remove the whole line if VPATH becomes empty
16482 # (actually we leave an empty line to preserve line numbers).
16483 if test "x$srcdir" = x.; then
16484   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16485 h
16486 s///
16487 s/^/:/
16488 s/[      ]*$/:/
16489 s/:\$(srcdir):/:/g
16490 s/:\${srcdir}:/:/g
16491 s/:@srcdir@:/:/g
16492 s/^:*//
16493 s/:*$//
16494 x
16495 s/\(=[   ]*\).*/\1/
16496 G
16497 s/\n//
16498 s/^[^=]*=[       ]*$//
16499 }'
16500 fi
16501
16502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16503 fi # test -n "$CONFIG_FILES"
16504
16505 # Set up the scripts for CONFIG_HEADERS section.
16506 # No need to generate them if there are no CONFIG_HEADERS.
16507 # This happens for instance with `./config.status Makefile'.
16508 if test -n "$CONFIG_HEADERS"; then
16509 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16510 BEGIN {
16511 _ACEOF
16512
16513 # Transform confdefs.h into an awk script `defines.awk', embedded as
16514 # here-document in config.status, that substitutes the proper values into
16515 # config.h.in to produce config.h.
16516
16517 # Create a delimiter string that does not exist in confdefs.h, to ease
16518 # handling of long lines.
16519 ac_delim='%!_!# '
16520 for ac_last_try in false false :; do
16521   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16522   if test -z "$ac_tt"; then
16523     break
16524   elif $ac_last_try; then
16525     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16526   else
16527     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16528   fi
16529 done
16530
16531 # For the awk script, D is an array of macro values keyed by name,
16532 # likewise P contains macro parameters if any.  Preserve backslash
16533 # newline sequences.
16534
16535 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16536 sed -n '
16537 s/.\{148\}/&'"$ac_delim"'/g
16538 t rset
16539 :rset
16540 s/^[     ]*#[    ]*define[       ][      ]*/ /
16541 t def
16542 d
16543 :def
16544 s/\\$//
16545 t bsnl
16546 s/["\\]/\\&/g
16547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16548 D["\1"]=" \3"/p
16549 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16550 d
16551 :bsnl
16552 s/["\\]/\\&/g
16553 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16554 D["\1"]=" \3\\\\\\n"\\/p
16555 t cont
16556 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16557 t cont
16558 d
16559 :cont
16560 n
16561 s/.\{148\}/&'"$ac_delim"'/g
16562 t clear
16563 :clear
16564 s/\\$//
16565 t bsnlc
16566 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16567 d
16568 :bsnlc
16569 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16570 b cont
16571 ' <confdefs.h | sed '
16572 s/'"$ac_delim"'/"\\\
16573 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16574
16575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576   for (key in D) D_is_set[key] = 1
16577   FS = "\a"
16578 }
16579 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16580   line = \$ 0
16581   split(line, arg, " ")
16582   if (arg[1] == "#") {
16583     defundef = arg[2]
16584     mac1 = arg[3]
16585   } else {
16586     defundef = substr(arg[1], 2)
16587     mac1 = arg[2]
16588   }
16589   split(mac1, mac2, "(") #)
16590   macro = mac2[1]
16591   prefix = substr(line, 1, index(line, defundef) - 1)
16592   if (D_is_set[macro]) {
16593     # Preserve the white space surrounding the "#".
16594     print prefix "define", macro P[macro] D[macro]
16595     next
16596   } else {
16597     # Replace #undef with comments.  This is necessary, for example,
16598     # in the case of _POSIX_SOURCE, which is predefined and required
16599     # on some systems where configure will not decide to define it.
16600     if (defundef == "undef") {
16601       print "/*", prefix defundef, macro, "*/"
16602       next
16603     }
16604   }
16605 }
16606 { print }
16607 _ACAWK
16608 _ACEOF
16609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16610   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16611 fi # test -n "$CONFIG_HEADERS"
16612
16613
16614 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16615 shift
16616 for ac_tag
16617 do
16618   case $ac_tag in
16619   :[FHLC]) ac_mode=$ac_tag; continue;;
16620   esac
16621   case $ac_mode$ac_tag in
16622   :[FHL]*:*);;
16623   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16624   :[FH]-) ac_tag=-:-;;
16625   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16626   esac
16627   ac_save_IFS=$IFS
16628   IFS=:
16629   set x $ac_tag
16630   IFS=$ac_save_IFS
16631   shift
16632   ac_file=$1
16633   shift
16634
16635   case $ac_mode in
16636   :L) ac_source=$1;;
16637   :[FH])
16638     ac_file_inputs=
16639     for ac_f
16640     do
16641       case $ac_f in
16642       -) ac_f="$ac_tmp/stdin";;
16643       *) # Look for the file first in the build tree, then in the source tree
16644          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16645          # because $ac_f cannot contain `:'.
16646          test -f "$ac_f" ||
16647            case $ac_f in
16648            [\\/$]*) false;;
16649            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16650            esac ||
16651            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16652       esac
16653       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16654       as_fn_append ac_file_inputs " '$ac_f'"
16655     done
16656
16657     # Let's still pretend it is `configure' which instantiates (i.e., don't
16658     # use $as_me), people would be surprised to read:
16659     #    /* config.h.  Generated by config.status.  */
16660     configure_input='Generated from '`
16661           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16662         `' by configure.'
16663     if test x"$ac_file" != x-; then
16664       configure_input="$ac_file.  $configure_input"
16665       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16666 $as_echo "$as_me: creating $ac_file" >&6;}
16667     fi
16668     # Neutralize special characters interpreted by sed in replacement strings.
16669     case $configure_input in #(
16670     *\&* | *\|* | *\\* )
16671        ac_sed_conf_input=`$as_echo "$configure_input" |
16672        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16673     *) ac_sed_conf_input=$configure_input;;
16674     esac
16675
16676     case $ac_tag in
16677     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16678       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16679     esac
16680     ;;
16681   esac
16682
16683   ac_dir=`$as_dirname -- "$ac_file" ||
16684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16685          X"$ac_file" : 'X\(//\)[^/]' \| \
16686          X"$ac_file" : 'X\(//\)$' \| \
16687          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16688 $as_echo X"$ac_file" |
16689     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16690             s//\1/
16691             q
16692           }
16693           /^X\(\/\/\)[^/].*/{
16694             s//\1/
16695             q
16696           }
16697           /^X\(\/\/\)$/{
16698             s//\1/
16699             q
16700           }
16701           /^X\(\/\).*/{
16702             s//\1/
16703             q
16704           }
16705           s/.*/./; q'`
16706   as_dir="$ac_dir"; as_fn_mkdir_p
16707   ac_builddir=.
16708
16709 case "$ac_dir" in
16710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16711 *)
16712   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16713   # A ".." for each directory in $ac_dir_suffix.
16714   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16715   case $ac_top_builddir_sub in
16716   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16717   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16718   esac ;;
16719 esac
16720 ac_abs_top_builddir=$ac_pwd
16721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16722 # for backward compatibility:
16723 ac_top_builddir=$ac_top_build_prefix
16724
16725 case $srcdir in
16726   .)  # We are building in place.
16727     ac_srcdir=.
16728     ac_top_srcdir=$ac_top_builddir_sub
16729     ac_abs_top_srcdir=$ac_pwd ;;
16730   [\\/]* | ?:[\\/]* )  # Absolute name.
16731     ac_srcdir=$srcdir$ac_dir_suffix;
16732     ac_top_srcdir=$srcdir
16733     ac_abs_top_srcdir=$srcdir ;;
16734   *) # Relative name.
16735     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16736     ac_top_srcdir=$ac_top_build_prefix$srcdir
16737     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16738 esac
16739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16740
16741
16742   case $ac_mode in
16743   :F)
16744   #
16745   # CONFIG_FILE
16746   #
16747
16748   case $INSTALL in
16749   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16750   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16751   esac
16752   ac_MKDIR_P=$MKDIR_P
16753   case $MKDIR_P in
16754   [\\/$]* | ?:[\\/]* ) ;;
16755   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16756   esac
16757 _ACEOF
16758
16759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16760 # If the template does not know about datarootdir, expand it.
16761 # FIXME: This hack should be removed a few years after 2.60.
16762 ac_datarootdir_hack=; ac_datarootdir_seen=
16763 ac_sed_dataroot='
16764 /datarootdir/ {
16765   p
16766   q
16767 }
16768 /@datadir@/p
16769 /@docdir@/p
16770 /@infodir@/p
16771 /@localedir@/p
16772 /@mandir@/p'
16773 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16774 *datarootdir*) ac_datarootdir_seen=yes;;
16775 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16776   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16777 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16778 _ACEOF
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780   ac_datarootdir_hack='
16781   s&@datadir@&$datadir&g
16782   s&@docdir@&$docdir&g
16783   s&@infodir@&$infodir&g
16784   s&@localedir@&$localedir&g
16785   s&@mandir@&$mandir&g
16786   s&\\\${datarootdir}&$datarootdir&g' ;;
16787 esac
16788 _ACEOF
16789
16790 # Neutralize VPATH when `$srcdir' = `.'.
16791 # Shell code in configure.ac might set extrasub.
16792 # FIXME: do we really want to maintain this feature?
16793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16794 ac_sed_extra="$ac_vpsub
16795 $extrasub
16796 _ACEOF
16797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16798 :t
16799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16800 s|@configure_input@|$ac_sed_conf_input|;t t
16801 s&@top_builddir@&$ac_top_builddir_sub&;t t
16802 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16803 s&@srcdir@&$ac_srcdir&;t t
16804 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16805 s&@top_srcdir@&$ac_top_srcdir&;t t
16806 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16807 s&@builddir@&$ac_builddir&;t t
16808 s&@abs_builddir@&$ac_abs_builddir&;t t
16809 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16810 s&@INSTALL@&$ac_INSTALL&;t t
16811 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16812 $ac_datarootdir_hack
16813 "
16814 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16815   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16816
16817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16818   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16819   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16820       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16821   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16822 which seems to be undefined.  Please make sure it is defined" >&5
16823 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16824 which seems to be undefined.  Please make sure it is defined" >&2;}
16825
16826   rm -f "$ac_tmp/stdin"
16827   case $ac_file in
16828   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16829   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16830   esac \
16831   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16832  ;;
16833   :H)
16834   #
16835   # CONFIG_HEADER
16836   #
16837   if test x"$ac_file" != x-; then
16838     {
16839       $as_echo "/* $configure_input  */" \
16840       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16841     } >"$ac_tmp/config.h" \
16842       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16843     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16844       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16845 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16846     else
16847       rm -f "$ac_file"
16848       mv "$ac_tmp/config.h" "$ac_file" \
16849         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16850     fi
16851   else
16852     $as_echo "/* $configure_input  */" \
16853       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16854       || as_fn_error $? "could not create -" "$LINENO" 5
16855   fi
16856 # Compute "$ac_file"'s index in $config_headers.
16857 _am_arg="$ac_file"
16858 _am_stamp_count=1
16859 for _am_header in $config_headers :; do
16860   case $_am_header in
16861     $_am_arg | $_am_arg:* )
16862       break ;;
16863     * )
16864       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16865   esac
16866 done
16867 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16868 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16869          X"$_am_arg" : 'X\(//\)[^/]' \| \
16870          X"$_am_arg" : 'X\(//\)$' \| \
16871          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16872 $as_echo X"$_am_arg" |
16873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16874             s//\1/
16875             q
16876           }
16877           /^X\(\/\/\)[^/].*/{
16878             s//\1/
16879             q
16880           }
16881           /^X\(\/\/\)$/{
16882             s//\1/
16883             q
16884           }
16885           /^X\(\/\).*/{
16886             s//\1/
16887             q
16888           }
16889           s/.*/./; q'`/stamp-h$_am_stamp_count
16890  ;;
16891
16892   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16893 $as_echo "$as_me: executing $ac_file commands" >&6;}
16894  ;;
16895   esac
16896
16897
16898   case $ac_file$ac_mode in
16899     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16900   # Older Autoconf quotes --file arguments for eval, but not when files
16901   # are listed without --file.  Let's play safe and only enable the eval
16902   # if we detect the quoting.
16903   case $CONFIG_FILES in
16904   *\'*) eval set x "$CONFIG_FILES" ;;
16905   *)   set x $CONFIG_FILES ;;
16906   esac
16907   shift
16908   for mf
16909   do
16910     # Strip MF so we end up with the name of the file.
16911     mf=`echo "$mf" | sed -e 's/:.*$//'`
16912     # Check whether this is an Automake generated Makefile or not.
16913     # We used to match only the files named 'Makefile.in', but
16914     # some people rename them; so instead we look at the file content.
16915     # Grep'ing the first line is not enough: some people post-process
16916     # each Makefile.in and add a new line on top of each file to say so.
16917     # Grep'ing the whole file is not good either: AIX grep has a line
16918     # limit of 2048, but all sed's we know have understand at least 4000.
16919     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16920       dirpart=`$as_dirname -- "$mf" ||
16921 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16922          X"$mf" : 'X\(//\)[^/]' \| \
16923          X"$mf" : 'X\(//\)$' \| \
16924          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16925 $as_echo X"$mf" |
16926     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16927             s//\1/
16928             q
16929           }
16930           /^X\(\/\/\)[^/].*/{
16931             s//\1/
16932             q
16933           }
16934           /^X\(\/\/\)$/{
16935             s//\1/
16936             q
16937           }
16938           /^X\(\/\).*/{
16939             s//\1/
16940             q
16941           }
16942           s/.*/./; q'`
16943     else
16944       continue
16945     fi
16946     # Extract the definition of DEPDIR, am__include, and am__quote
16947     # from the Makefile without running 'make'.
16948     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16949     test -z "$DEPDIR" && continue
16950     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16951     test -z "$am__include" && continue
16952     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16953     # Find all dependency output files, they are included files with
16954     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16955     # simplest approach to changing $(DEPDIR) to its actual value in the
16956     # expansion.
16957     for file in `sed -n "
16958       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16959          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16960       # Make sure the directory exists.
16961       test -f "$dirpart/$file" && continue
16962       fdir=`$as_dirname -- "$file" ||
16963 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16964          X"$file" : 'X\(//\)[^/]' \| \
16965          X"$file" : 'X\(//\)$' \| \
16966          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16967 $as_echo X"$file" |
16968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16969             s//\1/
16970             q
16971           }
16972           /^X\(\/\/\)[^/].*/{
16973             s//\1/
16974             q
16975           }
16976           /^X\(\/\/\)$/{
16977             s//\1/
16978             q
16979           }
16980           /^X\(\/\).*/{
16981             s//\1/
16982             q
16983           }
16984           s/.*/./; q'`
16985       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16986       # echo "creating $dirpart/$file"
16987       echo '# dummy' > "$dirpart/$file"
16988     done
16989   done
16990 }
16991  ;;
16992     "libtool":C)
16993
16994     # See if we are running on zsh, and set the options that allow our
16995     # commands through without removal of \ escapes.
16996     if test -n "${ZSH_VERSION+set}"; then
16997       setopt NO_GLOB_SUBST
16998     fi
16999
17000     cfgfile=${ofile}T
17001     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17002     $RM "$cfgfile"
17003
17004     cat <<_LT_EOF >> "$cfgfile"
17005 #! $SHELL
17006 # Generated automatically by $as_me ($PACKAGE) $VERSION
17007 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17008 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17009
17010 # Provide generalized library-building support services.
17011 # Written by Gordon Matzigkeit, 1996
17012
17013 # Copyright (C) 2014 Free Software Foundation, Inc.
17014 # This is free software; see the source for copying conditions.  There is NO
17015 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17016
17017 # GNU Libtool is free software; you can redistribute it and/or modify
17018 # it under the terms of the GNU General Public License as published by
17019 # the Free Software Foundation; either version 2 of of the License, or
17020 # (at your option) any later version.
17021 #
17022 # As a special exception to the GNU General Public License, if you
17023 # distribute this file as part of a program or library that is built
17024 # using GNU Libtool, you may include this file under the  same
17025 # distribution terms that you use for the rest of that program.
17026 #
17027 # GNU Libtool is distributed in the hope that it will be useful, but
17028 # WITHOUT ANY WARRANTY; without even the implied warranty of
17029 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17030 # GNU General Public License for more details.
17031 #
17032 # You should have received a copy of the GNU General Public License
17033 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17034
17035
17036 # The names of the tagged configurations supported by this script.
17037 available_tags=''
17038
17039 # Configured defaults for sys_lib_dlsearch_path munging.
17040 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17041
17042 # ### BEGIN LIBTOOL CONFIG
17043
17044 # Which release of libtool.m4 was used?
17045 macro_version=$macro_version
17046 macro_revision=$macro_revision
17047
17048 # Whether or not to build shared libraries.
17049 build_libtool_libs=$enable_shared
17050
17051 # Whether or not to build static libraries.
17052 build_old_libs=$enable_static
17053
17054 # What type of objects to build.
17055 pic_mode=$pic_mode
17056
17057 # Whether or not to optimize for fast installation.
17058 fast_install=$enable_fast_install
17059
17060 # Shared archive member basename,for filename based shared library versioning on AIX.
17061 shared_archive_member_spec=$shared_archive_member_spec
17062
17063 # Shell to use when invoking shell scripts.
17064 SHELL=$lt_SHELL
17065
17066 # An echo program that protects backslashes.
17067 ECHO=$lt_ECHO
17068
17069 # The PATH separator for the build system.
17070 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17071
17072 # The host system.
17073 host_alias=$host_alias
17074 host=$host
17075 host_os=$host_os
17076
17077 # The build system.
17078 build_alias=$build_alias
17079 build=$build
17080 build_os=$build_os
17081
17082 # A sed program that does not truncate output.
17083 SED=$lt_SED
17084
17085 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17086 Xsed="\$SED -e 1s/^X//"
17087
17088 # A grep program that handles long lines.
17089 GREP=$lt_GREP
17090
17091 # An ERE matcher.
17092 EGREP=$lt_EGREP
17093
17094 # A literal string matcher.
17095 FGREP=$lt_FGREP
17096
17097 # A BSD- or MS-compatible name lister.
17098 NM=$lt_NM
17099
17100 # Whether we need soft or hard links.
17101 LN_S=$lt_LN_S
17102
17103 # What is the maximum length of a command?
17104 max_cmd_len=$max_cmd_len
17105
17106 # Object file suffix (normally "o").
17107 objext=$ac_objext
17108
17109 # Executable file suffix (normally "").
17110 exeext=$exeext
17111
17112 # whether the shell understands "unset".
17113 lt_unset=$lt_unset
17114
17115 # turn spaces into newlines.
17116 SP2NL=$lt_lt_SP2NL
17117
17118 # turn newlines into spaces.
17119 NL2SP=$lt_lt_NL2SP
17120
17121 # convert \$build file names to \$host format.
17122 to_host_file_cmd=$lt_cv_to_host_file_cmd
17123
17124 # convert \$build files to toolchain format.
17125 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17126
17127 # An object symbol dumper.
17128 OBJDUMP=$lt_OBJDUMP
17129
17130 # Method to check whether dependent libraries are shared objects.
17131 deplibs_check_method=$lt_deplibs_check_method
17132
17133 # Command to use when deplibs_check_method = "file_magic".
17134 file_magic_cmd=$lt_file_magic_cmd
17135
17136 # How to find potential files when deplibs_check_method = "file_magic".
17137 file_magic_glob=$lt_file_magic_glob
17138
17139 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17140 want_nocaseglob=$lt_want_nocaseglob
17141
17142 # DLL creation program.
17143 DLLTOOL=$lt_DLLTOOL
17144
17145 # Command to associate shared and link libraries.
17146 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17147
17148 # The archiver.
17149 AR=$lt_AR
17150
17151 # Flags to create an archive.
17152 AR_FLAGS=$lt_AR_FLAGS
17153
17154 # How to feed a file listing to the archiver.
17155 archiver_list_spec=$lt_archiver_list_spec
17156
17157 # A symbol stripping program.
17158 STRIP=$lt_STRIP
17159
17160 # Commands used to install an old-style archive.
17161 RANLIB=$lt_RANLIB
17162 old_postinstall_cmds=$lt_old_postinstall_cmds
17163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17164
17165 # Whether to use a lock for old archive extraction.
17166 lock_old_archive_extraction=$lock_old_archive_extraction
17167
17168 # A C compiler.
17169 LTCC=$lt_CC
17170
17171 # LTCC compiler flags.
17172 LTCFLAGS=$lt_CFLAGS
17173
17174 # Take the output of nm and produce a listing of raw symbols and C names.
17175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17176
17177 # Transform the output of nm in a proper C declaration.
17178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17179
17180 # Transform the output of nm into a list of symbols to manually relocate.
17181 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17182
17183 # Transform the output of nm in a C name address pair.
17184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17185
17186 # Transform the output of nm in a C name address pair when lib prefix is needed.
17187 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17188
17189 # The name lister interface.
17190 nm_interface=$lt_lt_cv_nm_interface
17191
17192 # Specify filename containing input files for \$NM.
17193 nm_file_list_spec=$lt_nm_file_list_spec
17194
17195 # The root where to search for dependent libraries,and where our libraries should be installed.
17196 lt_sysroot=$lt_sysroot
17197
17198 # Command to truncate a binary pipe.
17199 lt_truncate_bin=$lt_lt_cv_truncate_bin
17200
17201 # The name of the directory that contains temporary libtool files.
17202 objdir=$objdir
17203
17204 # Used to examine libraries when file_magic_cmd begins with "file".
17205 MAGIC_CMD=$MAGIC_CMD
17206
17207 # Must we lock files when doing compilation?
17208 need_locks=$lt_need_locks
17209
17210 # Manifest tool.
17211 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17212
17213 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17214 DSYMUTIL=$lt_DSYMUTIL
17215
17216 # Tool to change global to local symbols on Mac OS X.
17217 NMEDIT=$lt_NMEDIT
17218
17219 # Tool to manipulate fat objects and archives on Mac OS X.
17220 LIPO=$lt_LIPO
17221
17222 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17223 OTOOL=$lt_OTOOL
17224
17225 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17226 OTOOL64=$lt_OTOOL64
17227
17228 # Old archive suffix (normally "a").
17229 libext=$libext
17230
17231 # Shared library suffix (normally ".so").
17232 shrext_cmds=$lt_shrext_cmds
17233
17234 # The commands to extract the exported symbol list from a shared archive.
17235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17236
17237 # Variables whose values should be saved in libtool wrapper scripts and
17238 # restored at link time.
17239 variables_saved_for_relink=$lt_variables_saved_for_relink
17240
17241 # Do we need the "lib" prefix for modules?
17242 need_lib_prefix=$need_lib_prefix
17243
17244 # Do we need a version for libraries?
17245 need_version=$need_version
17246
17247 # Library versioning type.
17248 version_type=$version_type
17249
17250 # Shared library runtime path variable.
17251 runpath_var=$runpath_var
17252
17253 # Shared library path variable.
17254 shlibpath_var=$shlibpath_var
17255
17256 # Is shlibpath searched before the hard-coded library search path?
17257 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17258
17259 # Format of library name prefix.
17260 libname_spec=$lt_libname_spec
17261
17262 # List of archive names.  First name is the real one, the rest are links.
17263 # The last name is the one that the linker finds with -lNAME
17264 library_names_spec=$lt_library_names_spec
17265
17266 # The coded name of the library, if different from the real name.
17267 soname_spec=$lt_soname_spec
17268
17269 # Permission mode override for installation of shared libraries.
17270 install_override_mode=$lt_install_override_mode
17271
17272 # Command to use after installation of a shared archive.
17273 postinstall_cmds=$lt_postinstall_cmds
17274
17275 # Command to use after uninstallation of a shared archive.
17276 postuninstall_cmds=$lt_postuninstall_cmds
17277
17278 # Commands used to finish a libtool library installation in a directory.
17279 finish_cmds=$lt_finish_cmds
17280
17281 # As "finish_cmds", except a single script fragment to be evaled but
17282 # not shown.
17283 finish_eval=$lt_finish_eval
17284
17285 # Whether we should hardcode library paths into libraries.
17286 hardcode_into_libs=$hardcode_into_libs
17287
17288 # Compile-time system search path for libraries.
17289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17290
17291 # Detected run-time system search path for libraries.
17292 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17293
17294 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17295 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17296
17297 # Whether dlopen is supported.
17298 dlopen_support=$enable_dlopen
17299
17300 # Whether dlopen of programs is supported.
17301 dlopen_self=$enable_dlopen_self
17302
17303 # Whether dlopen of statically linked programs is supported.
17304 dlopen_self_static=$enable_dlopen_self_static
17305
17306 # Commands to strip libraries.
17307 old_striplib=$lt_old_striplib
17308 striplib=$lt_striplib
17309
17310
17311 # The linker used to build libraries.
17312 LD=$lt_LD
17313
17314 # How to create reloadable object files.
17315 reload_flag=$lt_reload_flag
17316 reload_cmds=$lt_reload_cmds
17317
17318 # Commands used to build an old-style archive.
17319 old_archive_cmds=$lt_old_archive_cmds
17320
17321 # A language specific compiler.
17322 CC=$lt_compiler
17323
17324 # Is the compiler the GNU compiler?
17325 with_gcc=$GCC
17326
17327 # Compiler flag to turn off builtin functions.
17328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17329
17330 # Additional compiler flags for building library objects.
17331 pic_flag=$lt_lt_prog_compiler_pic
17332
17333 # How to pass a linker flag through the compiler.
17334 wl=$lt_lt_prog_compiler_wl
17335
17336 # Compiler flag to prevent dynamic linking.
17337 link_static_flag=$lt_lt_prog_compiler_static
17338
17339 # Does compiler simultaneously support -c and -o options?
17340 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17341
17342 # Whether or not to add -lc for building shared libraries.
17343 build_libtool_need_lc=$archive_cmds_need_lc
17344
17345 # Whether or not to disallow shared libs when runtime libs are static.
17346 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17347
17348 # Compiler flag to allow reflexive dlopens.
17349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17350
17351 # Compiler flag to generate shared objects directly from archives.
17352 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17353
17354 # Whether the compiler copes with passing no objects directly.
17355 compiler_needs_object=$lt_compiler_needs_object
17356
17357 # Create an old-style archive from a shared archive.
17358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17359
17360 # Create a temporary old-style archive to link instead of a shared archive.
17361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17362
17363 # Commands used to build a shared archive.
17364 archive_cmds=$lt_archive_cmds
17365 archive_expsym_cmds=$lt_archive_expsym_cmds
17366
17367 # Commands used to build a loadable module if different from building
17368 # a shared archive.
17369 module_cmds=$lt_module_cmds
17370 module_expsym_cmds=$lt_module_expsym_cmds
17371
17372 # Whether we are building with GNU ld or not.
17373 with_gnu_ld=$lt_with_gnu_ld
17374
17375 # Flag that allows shared libraries with undefined symbols to be built.
17376 allow_undefined_flag=$lt_allow_undefined_flag
17377
17378 # Flag that enforces no undefined symbols.
17379 no_undefined_flag=$lt_no_undefined_flag
17380
17381 # Flag to hardcode \$libdir into a binary during linking.
17382 # This must work even if \$libdir does not exist
17383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17384
17385 # Whether we need a single "-rpath" flag with a separated argument.
17386 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17387
17388 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17389 # DIR into the resulting binary.
17390 hardcode_direct=$hardcode_direct
17391
17392 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17393 # DIR into the resulting binary and the resulting library dependency is
17394 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17395 # library is relocated.
17396 hardcode_direct_absolute=$hardcode_direct_absolute
17397
17398 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17399 # into the resulting binary.
17400 hardcode_minus_L=$hardcode_minus_L
17401
17402 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17403 # into the resulting binary.
17404 hardcode_shlibpath_var=$hardcode_shlibpath_var
17405
17406 # Set to "yes" if building a shared library automatically hardcodes DIR
17407 # into the library and all subsequent libraries and executables linked
17408 # against it.
17409 hardcode_automatic=$hardcode_automatic
17410
17411 # Set to yes if linker adds runtime paths of dependent libraries
17412 # to runtime path list.
17413 inherit_rpath=$inherit_rpath
17414
17415 # Whether libtool must link a program against all its dependency libraries.
17416 link_all_deplibs=$link_all_deplibs
17417
17418 # Set to "yes" if exported symbols are required.
17419 always_export_symbols=$always_export_symbols
17420
17421 # The commands to list exported symbols.
17422 export_symbols_cmds=$lt_export_symbols_cmds
17423
17424 # Symbols that should not be listed in the preloaded symbols.
17425 exclude_expsyms=$lt_exclude_expsyms
17426
17427 # Symbols that must always be exported.
17428 include_expsyms=$lt_include_expsyms
17429
17430 # Commands necessary for linking programs (against libraries) with templates.
17431 prelink_cmds=$lt_prelink_cmds
17432
17433 # Commands necessary for finishing linking programs.
17434 postlink_cmds=$lt_postlink_cmds
17435
17436 # Specify filename containing input files.
17437 file_list_spec=$lt_file_list_spec
17438
17439 # How to hardcode a shared library path into an executable.
17440 hardcode_action=$hardcode_action
17441
17442 # ### END LIBTOOL CONFIG
17443
17444 _LT_EOF
17445
17446     cat <<'_LT_EOF' >> "$cfgfile"
17447
17448 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17449
17450 # func_munge_path_list VARIABLE PATH
17451 # -----------------------------------
17452 # VARIABLE is name of variable containing _space_ separated list of
17453 # directories to be munged by the contents of PATH, which is string
17454 # having a format:
17455 # "DIR[:DIR]:"
17456 #       string "DIR[ DIR]" will be prepended to VARIABLE
17457 # ":DIR[:DIR]"
17458 #       string "DIR[ DIR]" will be appended to VARIABLE
17459 # "DIRP[:DIRP]::[DIRA:]DIRA"
17460 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17461 #       "DIRA[ DIRA]" will be appended to VARIABLE
17462 # "DIR[:DIR]"
17463 #       VARIABLE will be replaced by "DIR[ DIR]"
17464 func_munge_path_list ()
17465 {
17466     case x$2 in
17467     x)
17468         ;;
17469     *:)
17470         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17471         ;;
17472     x:*)
17473         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17474         ;;
17475     *::*)
17476         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17477         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17478         ;;
17479     *)
17480         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17481         ;;
17482     esac
17483 }
17484
17485
17486 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17487 func_cc_basename ()
17488 {
17489     for cc_temp in $*""; do
17490       case $cc_temp in
17491         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17492         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17493         \-*) ;;
17494         *) break;;
17495       esac
17496     done
17497     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17498 }
17499
17500
17501 # ### END FUNCTIONS SHARED WITH CONFIGURE
17502
17503 _LT_EOF
17504
17505   case $host_os in
17506   aix3*)
17507     cat <<\_LT_EOF >> "$cfgfile"
17508 # AIX sometimes has problems with the GCC collect2 program.  For some
17509 # reason, if we set the COLLECT_NAMES environment variable, the problems
17510 # vanish in a puff of smoke.
17511 if test set != "${COLLECT_NAMES+set}"; then
17512   COLLECT_NAMES=
17513   export COLLECT_NAMES
17514 fi
17515 _LT_EOF
17516     ;;
17517   esac
17518
17519
17520 ltmain=$ac_aux_dir/ltmain.sh
17521
17522
17523   # We use sed instead of cat because bash on DJGPP gets confused if
17524   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17525   # text mode, it properly converts lines to CR/LF.  This bash problem
17526   # is reportedly fixed, but why not run on old versions too?
17527   sed '$q' "$ltmain" >> "$cfgfile" \
17528      || (rm -f "$cfgfile"; exit 1)
17529
17530    mv -f "$cfgfile" "$ofile" ||
17531     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17532   chmod +x "$ofile"
17533
17534  ;;
17535
17536   esac
17537 done # for ac_tag
17538
17539
17540 as_fn_exit 0
17541 _ACEOF
17542 ac_clean_files=$ac_clean_files_save
17543
17544 test $ac_write_fail = 0 ||
17545   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17546
17547
17548 # configure is writing to config.log, and then calls config.status.
17549 # config.status does its own redirection, appending to config.log.
17550 # Unfortunately, on DOS this fails, as config.log is still kept open
17551 # by configure, so config.status won't be able to write to it; its
17552 # output is simply discarded.  So we exec the FD to /dev/null,
17553 # effectively closing config.log, so it can be properly (re)opened and
17554 # appended to by config.status.  When coming back to configure, we
17555 # need to make the FD available again.
17556 if test "$no_create" != yes; then
17557   ac_cs_success=:
17558   ac_config_status_args=
17559   test "$silent" = yes &&
17560     ac_config_status_args="$ac_config_status_args --quiet"
17561   exec 5>/dev/null
17562   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17563   exec 5>>config.log
17564   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17565   # would make configure fail if this is the last instruction.
17566   $ac_cs_success || as_fn_exit 1
17567 fi
17568 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17569   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17570 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17571 fi
17572