source: trunk/configure @ 355

Last change on this file since 355 was 355, checked in by kulshres, 7 years ago

regenerate files

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File size: 570.6 KB
Line 
1#! /bin/sh
2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.67 for adolc 2.3.0-trunk.
5#
6# Report bugs to <adol-c@list.coin-or.org>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11# Foundation, Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in #(
64      *"$as_nl"*)
65        expr "X$arg" : "X\\(.*\\)$as_nl";
66        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""        $as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194         /*)
195           for as_base in sh bash ksh sh5; do
196             # Try only shells that exist, to save several forks.
197             as_shell=$as_dir/$as_base
198             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205           done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218        # neutralization value for shells without unset; and this also
219        # works around shells that cannot unset nonexistent variables.
220        BASH_ENV=/dev/null
221        ENV=/dev/null
222        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223        export CONFIG_SHELL
224        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225fi
226
227    if test x$as_have_required = xno; then :
228  $as_echo "$0: This script requires a shell more modern than all"
229  $as_echo "$0: the shells that I found on your system."
230  if test x${ZSH_VERSION+set} = xset ; then
231    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233  else
234    $as_echo "$0: Please tell bug-autoconf@gnu.org and
235$0: adol-c@list.coin-or.org about your system, including
236$0: any error possibly output before this message. Then
237$0: install a modern shell, or manually run the script
238$0: under such a shell if you do have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299         X"$as_dir" : 'X\(//\)[^/]' \| \
300         X"$as_dir" : 'X\(//\)$' \| \
301         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304            s//\1/
305            q
306          }
307          /^X\(\/\/\)[^/].*/{
308            s//\1/
309            q
310          }
311          /^X\(\/\/\)$/{
312            s//\1/
313            q
314          }
315          /^X\(\/\).*/{
316            s//\1/
317            q
318          }
319          s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error STATUS ERROR [LINENO LOG_FD]
364# ----------------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with STATUS, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$1; test $as_status -eq 0 && as_status=1
371  if test "$4"; then
372    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374  fi
375  $as_echo "$as_me: error: $2" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400         X"$0" : 'X\(//\)$' \| \
401         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404            s//\1/
405            q
406          }
407          /^X\/\(\/\/\)$/{
408            s//\1/
409            q
410          }
411          /^X\/\(\/\).*/{
412            s//\1/
413            q
414          }
415          s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T=' ';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514        test -d "$1/.";
515      else
516        case $1 in #(
517        -*)set "./$1";;
518        esac;
519        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520        ???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617           test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629           test "X$echo_testing_string" = "X$echo_test_string"; then
630          # Cool, printf works
631          :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633             test "X$echo_testing_string" = 'X\t' &&
634             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635             test "X$echo_testing_string" = "X$echo_test_string"; then
636          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637          export CONFIG_SHELL
638          SHELL="$CONFIG_SHELL"
639          export SHELL
640          ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642             test "X$echo_testing_string" = 'X\t' &&
643             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644             test "X$echo_testing_string" = "X$echo_test_string"; then
645          ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647          # maybe with a smaller string...
648          prev=:
649
650          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652            then
653              break
654            fi
655            prev="$cmd"
656          done
657
658          if test "$prev" != 'sed 50q "$0"'; then
659            echo_test_string=`eval $prev`
660            export echo_test_string
661            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662          else
663            # Oops.  We lost completely, so just stick with echo.
664            ECHO=echo
665          fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='adolc'
704PACKAGE_TARNAME='adolc'
705PACKAGE_VERSION='2.3.0-trunk'
706PACKAGE_STRING='adolc 2.3.0-trunk'
707PACKAGE_BUGREPORT='adol-c@list.coin-or.org'
708PACKAGE_URL=''
709
710ac_unique_file="ADOL-C/src/adouble.cpp"
711ac_default_prefix=${HOME}/adolc_base
712# Factoring default headers for most tests.
713ac_includes_default="\
714#include <stdio.h>
715#ifdef HAVE_SYS_TYPES_H
716# include <sys/types.h>
717#endif
718#ifdef HAVE_SYS_STAT_H
719# include <sys/stat.h>
720#endif
721#ifdef STDC_HEADERS
722# include <stdlib.h>
723# include <stddef.h>
724#else
725# ifdef HAVE_STDLIB_H
726#  include <stdlib.h>
727# endif
728#endif
729#ifdef HAVE_STRING_H
730# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731#  include <memory.h>
732# endif
733# include <string.h>
734#endif
735#ifdef HAVE_STRINGS_H
736# include <strings.h>
737#endif
738#ifdef HAVE_INTTYPES_H
739# include <inttypes.h>
740#endif
741#ifdef HAVE_STDINT_H
742# include <stdint.h>
743#endif
744#ifdef HAVE_UNISTD_H
745# include <unistd.h>
746#endif"
747
748ac_subst_vars='am__EXEEXT_FALSE
749am__EXEEXT_TRUE
750LTLIBOBJS
751ac_adolc_cxxflags
752ac_adolc_cflags
753PAREXA_FALSE
754PAREXA_TRUE
755ADDEXA_FALSE
756ADDEXA_TRUE
757DOCEXA_FALSE
758DOCEXA_TRUE
759COLPACK_LIBS
760COLPACK_CFLAGS
761SPARSE_FALSE
762SPARSE_TRUE
763HAVE_LIBCOLPACK_FALSE
764HAVE_LIBCOLPACK_TRUE
765ADOLC_PATCHLEVEL
766ADOLC_SUBVERSION
767ADOLC_VERSION
768ac_aux_dir
769LIBOBJS
770_lib
771CXXCPP
772OTOOL64
773OTOOL
774LIPO
775NMEDIT
776DSYMUTIL
777lt_ECHO
778RANLIB
779AR
780NM
781ac_ct_DUMPBIN
782DUMPBIN
783LD
784FGREP
785EGREP
786GREP
787SED
788LIBTOOL
789OBJDUMP
790DLLTOOL
791AS
792host_os
793host_vendor
794host_cpu
795host
796build_os
797build_vendor
798build_cpu
799build
800LN_S
801CPP
802am__fastdepCC_FALSE
803am__fastdepCC_TRUE
804CCDEPMODE
805ac_ct_CC
806CFLAGS
807CC
808am__fastdepCXX_FALSE
809am__fastdepCXX_TRUE
810CXXDEPMODE
811AMDEPBACKSLASH
812AMDEP_FALSE
813AMDEP_TRUE
814am__quote
815am__include
816DEPDIR
817OBJEXT
818EXEEXT
819ac_ct_CXX
820CPPFLAGS
821LDFLAGS
822CXXFLAGS
823CXX
824AM_BACKSLASH
825AM_DEFAULT_VERBOSITY
826am__untar
827am__tar
828AMTAR
829am__leading_dot
830SET_MAKE
831AWK
832mkdir_p
833MKDIR_P
834INSTALL_STRIP_PROGRAM
835STRIP
836install_sh
837MAKEINFO
838AUTOHEADER
839AUTOMAKE
840AUTOCONF
841ACLOCAL
842VERSION
843PACKAGE
844CYGPATH_W
845am__isrc
846INSTALL_DATA
847INSTALL_SCRIPT
848INSTALL_PROGRAM
849target_alias
850host_alias
851build_alias
852LIBS
853ECHO_T
854ECHO_N
855ECHO_C
856DEFS
857mandir
858localedir
859libdir
860psdir
861pdfdir
862dvidir
863htmldir
864infodir
865docdir
866oldincludedir
867includedir
868localstatedir
869sharedstatedir
870sysconfdir
871datadir
872datarootdir
873libexecdir
874sbindir
875bindir
876program_transform_name
877prefix
878exec_prefix
879PACKAGE_URL
880PACKAGE_BUGREPORT
881PACKAGE_STRING
882PACKAGE_VERSION
883PACKAGE_TARNAME
884PACKAGE_NAME
885PATH_SEPARATOR
886SHELL'
887ac_subst_files=''
888ac_user_opts='
889enable_option_checking
890enable_silent_rules
891enable_dependency_tracking
892enable_shared
893enable_static
894with_pic
895enable_fast_install
896with_gnu_ld
897enable_libtool_lock
898enable_debug
899enable_harddebug
900enable_stdczero
901enable_tserrno
902enable_safe_extern
903with_openmp_flag
904enable_sparse
905with_colpack
906enable_docexa
907enable_addexa
908enable_parexa
909with_cflags
910with_cxxflags
911'
912      ac_precious_vars='build_alias
913host_alias
914target_alias
915CXX
916CXXFLAGS
917LDFLAGS
918LIBS
919CPPFLAGS
920CCC
921CC
922CFLAGS
923CPP
924CXXCPP'
925
926
927# Initialize some variables set by options.
928ac_init_help=
929ac_init_version=false
930ac_unrecognized_opts=
931ac_unrecognized_sep=
932# The variables have the same names as the options, with
933# dashes changed to underlines.
934cache_file=/dev/null
935exec_prefix=NONE
936no_create=
937no_recursion=
938prefix=NONE
939program_prefix=NONE
940program_suffix=NONE
941program_transform_name=s,x,x,
942silent=
943site=
944srcdir=
945verbose=
946x_includes=NONE
947x_libraries=NONE
948
949# Installation directory options.
950# These are left unexpanded so users can "make install exec_prefix=/foo"
951# and all the variables that are supposed to be based on exec_prefix
952# by default will actually change.
953# Use braces instead of parens because sh, perl, etc. also accept them.
954# (The list follows the same order as the GNU Coding Standards.)
955bindir='${exec_prefix}/bin'
956sbindir='${exec_prefix}/sbin'
957libexecdir='${exec_prefix}/libexec'
958datarootdir='${prefix}/share'
959datadir='${datarootdir}'
960sysconfdir='${prefix}/etc'
961sharedstatedir='${prefix}/com'
962localstatedir='${prefix}/var'
963includedir='${prefix}/include'
964oldincludedir='/usr/include'
965docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966infodir='${datarootdir}/info'
967htmldir='${docdir}'
968dvidir='${docdir}'
969pdfdir='${docdir}'
970psdir='${docdir}'
971libdir='${exec_prefix}/lib'
972localedir='${datarootdir}/locale'
973mandir='${datarootdir}/man'
974
975ac_prev=
976ac_dashdash=
977for ac_option
978do
979  # If the previous option needs an argument, assign it.
980  if test -n "$ac_prev"; then
981    eval $ac_prev=\$ac_option
982    ac_prev=
983    continue
984  fi
985
986  case $ac_option in
987  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988  *=)   ac_optarg= ;;
989  *)    ac_optarg=yes ;;
990  esac
991
992  # Accept the important Cygnus configure options, so we can diagnose typos.
993
994  case $ac_dashdash$ac_option in
995  --)
996    ac_dashdash=yes ;;
997
998  -bindir | --bindir | --bindi | --bind | --bin | --bi)
999    ac_prev=bindir ;;
1000  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001    bindir=$ac_optarg ;;
1002
1003  -build | --build | --buil | --bui | --bu)
1004    ac_prev=build_alias ;;
1005  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006    build_alias=$ac_optarg ;;
1007
1008  -cache-file | --cache-file | --cache-fil | --cache-fi \
1009  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010    ac_prev=cache_file ;;
1011  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013    cache_file=$ac_optarg ;;
1014
1015  --config-cache | -C)
1016    cache_file=config.cache ;;
1017
1018  -datadir | --datadir | --datadi | --datad)
1019    ac_prev=datadir ;;
1020  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021    datadir=$ac_optarg ;;
1022
1023  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024  | --dataroo | --dataro | --datar)
1025    ac_prev=datarootdir ;;
1026  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028    datarootdir=$ac_optarg ;;
1029
1030  -disable-* | --disable-*)
1031    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032    # Reject names that are not valid shell variable names.
1033    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034      as_fn_error $? "invalid feature name: $ac_useropt"
1035    ac_useropt_orig=$ac_useropt
1036    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037    case $ac_user_opts in
1038      *"
1039"enable_$ac_useropt"
1040"*) ;;
1041      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1042         ac_unrecognized_sep=', ';;
1043    esac
1044    eval enable_$ac_useropt=no ;;
1045
1046  -docdir | --docdir | --docdi | --doc | --do)
1047    ac_prev=docdir ;;
1048  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049    docdir=$ac_optarg ;;
1050
1051  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1052    ac_prev=dvidir ;;
1053  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054    dvidir=$ac_optarg ;;
1055
1056  -enable-* | --enable-*)
1057    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1058    # Reject names that are not valid shell variable names.
1059    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060      as_fn_error $? "invalid feature name: $ac_useropt"
1061    ac_useropt_orig=$ac_useropt
1062    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063    case $ac_user_opts in
1064      *"
1065"enable_$ac_useropt"
1066"*) ;;
1067      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1068         ac_unrecognized_sep=', ';;
1069    esac
1070    eval enable_$ac_useropt=\$ac_optarg ;;
1071
1072  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074  | --exec | --exe | --ex)
1075    ac_prev=exec_prefix ;;
1076  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078  | --exec=* | --exe=* | --ex=*)
1079    exec_prefix=$ac_optarg ;;
1080
1081  -gas | --gas | --ga | --g)
1082    # Obsolete; use --with-gas.
1083    with_gas=yes ;;
1084
1085  -help | --help | --hel | --he | -h)
1086    ac_init_help=long ;;
1087  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088    ac_init_help=recursive ;;
1089  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090    ac_init_help=short ;;
1091
1092  -host | --host | --hos | --ho)
1093    ac_prev=host_alias ;;
1094  -host=* | --host=* | --hos=* | --ho=*)
1095    host_alias=$ac_optarg ;;
1096
1097  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098    ac_prev=htmldir ;;
1099  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100  | --ht=*)
1101    htmldir=$ac_optarg ;;
1102
1103  -includedir | --includedir | --includedi | --included | --include \
1104  | --includ | --inclu | --incl | --inc)
1105    ac_prev=includedir ;;
1106  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107  | --includ=* | --inclu=* | --incl=* | --inc=*)
1108    includedir=$ac_optarg ;;
1109
1110  -infodir | --infodir | --infodi | --infod | --info | --inf)
1111    ac_prev=infodir ;;
1112  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113    infodir=$ac_optarg ;;
1114
1115  -libdir | --libdir | --libdi | --libd)
1116    ac_prev=libdir ;;
1117  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1118    libdir=$ac_optarg ;;
1119
1120  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121  | --libexe | --libex | --libe)
1122    ac_prev=libexecdir ;;
1123  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124  | --libexe=* | --libex=* | --libe=*)
1125    libexecdir=$ac_optarg ;;
1126
1127  -localedir | --localedir | --localedi | --localed | --locale)
1128    ac_prev=localedir ;;
1129  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130    localedir=$ac_optarg ;;
1131
1132  -localstatedir | --localstatedir | --localstatedi | --localstated \
1133  | --localstate | --localstat | --localsta | --localst | --locals)
1134    ac_prev=localstatedir ;;
1135  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1136  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1137    localstatedir=$ac_optarg ;;
1138
1139  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140    ac_prev=mandir ;;
1141  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142    mandir=$ac_optarg ;;
1143
1144  -nfp | --nfp | --nf)
1145    # Obsolete; use --without-fp.
1146    with_fp=no ;;
1147
1148  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149  | --no-cr | --no-c | -n)
1150    no_create=yes ;;
1151
1152  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1154    no_recursion=yes ;;
1155
1156  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158  | --oldin | --oldi | --old | --ol | --o)
1159    ac_prev=oldincludedir ;;
1160  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163    oldincludedir=$ac_optarg ;;
1164
1165  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166    ac_prev=prefix ;;
1167  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168    prefix=$ac_optarg ;;
1169
1170  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1171  | --program-pre | --program-pr | --program-p)
1172    ac_prev=program_prefix ;;
1173  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1174  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175    program_prefix=$ac_optarg ;;
1176
1177  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1178  | --program-suf | --program-su | --program-s)
1179    ac_prev=program_suffix ;;
1180  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1181  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182    program_suffix=$ac_optarg ;;
1183
1184  -program-transform-name | --program-transform-name \
1185  | --program-transform-nam | --program-transform-na \
1186  | --program-transform-n | --program-transform- \
1187  | --program-transform | --program-transfor \
1188  | --program-transfo | --program-transf \
1189  | --program-trans | --program-tran \
1190  | --progr-tra | --program-tr | --program-t)
1191    ac_prev=program_transform_name ;;
1192  -program-transform-name=* | --program-transform-name=* \
1193  | --program-transform-nam=* | --program-transform-na=* \
1194  | --program-transform-n=* | --program-transform-=* \
1195  | --program-transform=* | --program-transfor=* \
1196  | --program-transfo=* | --program-transf=* \
1197  | --program-trans=* | --program-tran=* \
1198  | --progr-tra=* | --program-tr=* | --program-t=*)
1199    program_transform_name=$ac_optarg ;;
1200
1201  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202    ac_prev=pdfdir ;;
1203  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204    pdfdir=$ac_optarg ;;
1205
1206  -psdir | --psdir | --psdi | --psd | --ps)
1207    ac_prev=psdir ;;
1208  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1209    psdir=$ac_optarg ;;
1210
1211  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212  | -silent | --silent | --silen | --sile | --sil)
1213    silent=yes ;;
1214
1215  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216    ac_prev=sbindir ;;
1217  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218  | --sbi=* | --sb=*)
1219    sbindir=$ac_optarg ;;
1220
1221  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1222  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223  | --sharedst | --shareds | --shared | --share | --shar \
1224  | --sha | --sh)
1225    ac_prev=sharedstatedir ;;
1226  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229  | --sha=* | --sh=*)
1230    sharedstatedir=$ac_optarg ;;
1231
1232  -site | --site | --sit)
1233    ac_prev=site ;;
1234  -site=* | --site=* | --sit=*)
1235    site=$ac_optarg ;;
1236
1237  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238    ac_prev=srcdir ;;
1239  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240    srcdir=$ac_optarg ;;
1241
1242  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243  | --syscon | --sysco | --sysc | --sys | --sy)
1244    ac_prev=sysconfdir ;;
1245  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247    sysconfdir=$ac_optarg ;;
1248
1249  -target | --target | --targe | --targ | --tar | --ta | --t)
1250    ac_prev=target_alias ;;
1251  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252    target_alias=$ac_optarg ;;
1253
1254  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1255    verbose=yes ;;
1256
1257  -version | --version | --versio | --versi | --vers | -V)
1258    ac_init_version=: ;;
1259
1260  -with-* | --with-*)
1261    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1262    # Reject names that are not valid shell variable names.
1263    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264      as_fn_error $? "invalid package name: $ac_useropt"
1265    ac_useropt_orig=$ac_useropt
1266    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267    case $ac_user_opts in
1268      *"
1269"with_$ac_useropt"
1270"*) ;;
1271      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1272         ac_unrecognized_sep=', ';;
1273    esac
1274    eval with_$ac_useropt=\$ac_optarg ;;
1275
1276  -without-* | --without-*)
1277    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278    # Reject names that are not valid shell variable names.
1279    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280      as_fn_error $? "invalid package name: $ac_useropt"
1281    ac_useropt_orig=$ac_useropt
1282    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283    case $ac_user_opts in
1284      *"
1285"with_$ac_useropt"
1286"*) ;;
1287      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1288         ac_unrecognized_sep=', ';;
1289    esac
1290    eval with_$ac_useropt=no ;;
1291
1292  --x)
1293    # Obsolete; use --with-x.
1294    with_x=yes ;;
1295
1296  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297  | --x-incl | --x-inc | --x-in | --x-i)
1298    ac_prev=x_includes ;;
1299  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301    x_includes=$ac_optarg ;;
1302
1303  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305    ac_prev=x_libraries ;;
1306  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308    x_libraries=$ac_optarg ;;
1309
1310  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1311Try \`$0 --help' for more information"
1312    ;;
1313
1314  *=*)
1315    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316    # Reject names that are not valid shell variable names.
1317    case $ac_envvar in #(
1318      '' | [0-9]* | *[!_$as_cr_alnum]* )
1319      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1320    esac
1321    eval $ac_envvar=\$ac_optarg
1322    export $ac_envvar ;;
1323
1324  *)
1325    # FIXME: should be removed in autoconf 3.0.
1326    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330    ;;
1331
1332  esac
1333done
1334
1335if test -n "$ac_prev"; then
1336  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337  as_fn_error $? "missing argument to $ac_option"
1338fi
1339
1340if test -n "$ac_unrecognized_opts"; then
1341  case $enable_option_checking in
1342    no) ;;
1343    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1344    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345  esac
1346fi
1347
1348# Check all directory arguments for consistency.
1349for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350                datadir sysconfdir sharedstatedir localstatedir includedir \
1351                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352                libdir localedir mandir
1353do
1354  eval ac_val=\$$ac_var
1355  # Remove trailing slashes.
1356  case $ac_val in
1357    */ )
1358      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1359      eval $ac_var=\$ac_val;;
1360  esac
1361  # Be sure to have absolute directory names.
1362  case $ac_val in
1363    [\\/$]* | ?:[\\/]* )  continue;;
1364    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365  esac
1366  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1367done
1368
1369# There might be people who depend on the old broken behavior: `$host'
1370# used to hold the argument of --host etc.
1371# FIXME: To remove some day.
1372build=$build_alias
1373host=$host_alias
1374target=$target_alias
1375
1376# FIXME: To remove some day.
1377if test "x$host_alias" != x; then
1378  if test "x$build_alias" = x; then
1379    cross_compiling=maybe
1380    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1381    If a cross compiler is detected then cross compile mode will be used" >&2
1382  elif test "x$build_alias" != "x$host_alias"; then
1383    cross_compiling=yes
1384  fi
1385fi
1386
1387ac_tool_prefix=
1388test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390test "$silent" = yes && exec 6>/dev/null
1391
1392
1393ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394ac_ls_di=`ls -di .` &&
1395ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396  as_fn_error $? "working directory cannot be determined"
1397test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398  as_fn_error $? "pwd does not report name of working directory"
1399
1400
1401# Find the source files, if location was not specified.
1402if test -z "$srcdir"; then
1403  ac_srcdir_defaulted=yes
1404  # Try the directory containing this script, then the parent directory.
1405  ac_confdir=`$as_dirname -- "$as_myself" ||
1406$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407         X"$as_myself" : 'X\(//\)[^/]' \| \
1408         X"$as_myself" : 'X\(//\)$' \| \
1409         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410$as_echo X"$as_myself" |
1411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412            s//\1/
1413            q
1414          }
1415          /^X\(\/\/\)[^/].*/{
1416            s//\1/
1417            q
1418          }
1419          /^X\(\/\/\)$/{
1420            s//\1/
1421            q
1422          }
1423          /^X\(\/\).*/{
1424            s//\1/
1425            q
1426          }
1427          s/.*/./; q'`
1428  srcdir=$ac_confdir
1429  if test ! -r "$srcdir/$ac_unique_file"; then
1430    srcdir=..
1431  fi
1432else
1433  ac_srcdir_defaulted=no
1434fi
1435if test ! -r "$srcdir/$ac_unique_file"; then
1436  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1438fi
1439ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440ac_abs_confdir=`(
1441        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1442        pwd)`
1443# When building in place, set srcdir=.
1444if test "$ac_abs_confdir" = "$ac_pwd"; then
1445  srcdir=.
1446fi
1447# Remove unnecessary trailing slashes from srcdir.
1448# Double slashes in file names in object file debugging info
1449# mess up M-x gdb in Emacs.
1450case $srcdir in
1451*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452esac
1453for ac_var in $ac_precious_vars; do
1454  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455  eval ac_env_${ac_var}_value=\$${ac_var}
1456  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458done
1459
1460#
1461# Report the --help message.
1462#
1463if test "$ac_init_help" = "long"; then
1464  # Omit some internal or obsolete options to make the list less imposing.
1465  # This message is too long to be a string in the A/UX 3.1 sh.
1466  cat <<_ACEOF
1467\`configure' configures adolc 2.3.0-trunk to adapt to many kinds of systems.
1468
1469Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472VAR=VALUE.  See below for descriptions of some of the useful variables.
1473
1474Defaults for the options are specified in brackets.
1475
1476Configuration:
1477  -h, --help              display this help and exit
1478      --help=short        display options specific to this package
1479      --help=recursive    display the short help of all the included packages
1480  -V, --version           display version information and exit
1481  -q, --quiet, --silent   do not print \`checking ...' messages
1482      --cache-file=FILE   cache test results in FILE [disabled]
1483  -C, --config-cache      alias for \`--cache-file=config.cache'
1484  -n, --no-create         do not create output files
1485      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1486
1487Installation directories:
1488  --prefix=PREFIX         install architecture-independent files in PREFIX
1489                          [$ac_default_prefix]
1490  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1491                          [PREFIX]
1492
1493By default, \`make install' will install all the files in
1494\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1495an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496for instance \`--prefix=\$HOME'.
1497
1498For better control, use the options below.
1499
1500Fine tuning of the installation directories:
1501  --bindir=DIR            user executables [EPREFIX/bin]
1502  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1503  --libexecdir=DIR        program executables [EPREFIX/libexec]
1504  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1505  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1506  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1507  --libdir=DIR            object code libraries [EPREFIX/lib]
1508  --includedir=DIR        C header files [PREFIX/include]
1509  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1510  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1511  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1512  --infodir=DIR           info documentation [DATAROOTDIR/info]
1513  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1514  --mandir=DIR            man documentation [DATAROOTDIR/man]
1515  --docdir=DIR            documentation root [DATAROOTDIR/doc/adolc]
1516  --htmldir=DIR           html documentation [DOCDIR]
1517  --dvidir=DIR            dvi documentation [DOCDIR]
1518  --pdfdir=DIR            pdf documentation [DOCDIR]
1519  --psdir=DIR             ps documentation [DOCDIR]
1520_ACEOF
1521
1522  cat <<\_ACEOF
1523
1524Program names:
1525  --program-prefix=PREFIX            prepend PREFIX to installed program names
1526  --program-suffix=SUFFIX            append SUFFIX to installed program names
1527  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1528
1529System types:
1530  --build=BUILD     configure for building on BUILD [guessed]
1531  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1532_ACEOF
1533fi
1534
1535if test -n "$ac_init_help"; then
1536  case $ac_init_help in
1537     short | recursive ) echo "Configuration of adolc 2.3.0-trunk:";;
1538   esac
1539  cat <<\_ACEOF
1540
1541Optional Features:
1542  --disable-option-checking  ignore unrecognized --enable/--with options
1543  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1544  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1545  --enable-silent-rules          less verbose build output (undo: `make V=1')
1546  --disable-silent-rules         verbose build output (undo: `make V=0')
1547  --disable-dependency-tracking  speeds up one-time build
1548  --enable-dependency-tracking   do not reject slow dependency extractors
1549  --enable-shared[=PKGS]  build shared libraries [default=yes]
1550  --enable-static[=PKGS]  build static libraries [default=yes]
1551  --enable-fast-install[=PKGS]
1552                          optimize for fast installation [default=yes]
1553  --disable-libtool-lock  avoid locking (might break parallel builds)
1554
1555  --enable-debug          enable ADOL-C debug mode [default=no]
1556
1557  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1558
1559  --enable-stdczero       adouble standard constructor zeros value (at the
1560                          cost of performance) [default=no]
1561
1562  --enable-tserrno        use errno as thread number cache [default=no]
1563
1564  --enable-safe-extern    backup all adoubles before calling an external
1565                          function [default=no]
1566
1567  --enable-sparse         build sparse drivers [default=disabled]
1568
1569  --enable-docexa         build documented examples [default=disabled]
1570  --enable-addexa         build additional examples [default=disabled]
1571  --enable-parexa         build parallel example [default=disabled], if
1572                          enabled -with-openmp-flag=FLAG required
1573
1574Optional Packages:
1575  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1576  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1577  --with-pic              try to use only PIC/non-PIC objects [default=use
1578                          both]
1579  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1580  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1581                          [default=none]
1582
1583  --with-colpack=DIR      path to the colpack library and headers
1584                          [default=system libraries]
1585  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O2)
1586  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
1587
1588Some influential environment variables:
1589  CXX         C++ compiler command
1590  CXXFLAGS    C++ compiler flags
1591  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1592              nonstandard directory <lib dir>
1593  LIBS        libraries to pass to the linker, e.g. -l<library>
1594  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1595              you have headers in a nonstandard directory <include dir>
1596  CC          C compiler command
1597  CFLAGS      C compiler flags
1598  CPP         C preprocessor
1599  CXXCPP      C++ preprocessor
1600
1601Use these variables to override the choices made by `configure' or to help
1602it to find libraries and programs with nonstandard names/locations.
1603
1604Report bugs to <adol-c@list.coin-or.org>.
1605_ACEOF
1606ac_status=$?
1607fi
1608
1609if test "$ac_init_help" = "recursive"; then
1610  # If there are subdirs, report their specific --help.
1611  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612    test -d "$ac_dir" ||
1613      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614      continue
1615    ac_builddir=.
1616
1617case "$ac_dir" in
1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619*)
1620  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621  # A ".." for each directory in $ac_dir_suffix.
1622  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623  case $ac_top_builddir_sub in
1624  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626  esac ;;
1627esac
1628ac_abs_top_builddir=$ac_pwd
1629ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630# for backward compatibility:
1631ac_top_builddir=$ac_top_build_prefix
1632
1633case $srcdir in
1634  .)  # We are building in place.
1635    ac_srcdir=.
1636    ac_top_srcdir=$ac_top_builddir_sub
1637    ac_abs_top_srcdir=$ac_pwd ;;
1638  [\\/]* | ?:[\\/]* )  # Absolute name.
1639    ac_srcdir=$srcdir$ac_dir_suffix;
1640    ac_top_srcdir=$srcdir
1641    ac_abs_top_srcdir=$srcdir ;;
1642  *) # Relative name.
1643    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644    ac_top_srcdir=$ac_top_build_prefix$srcdir
1645    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646esac
1647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
1649    cd "$ac_dir" || { ac_status=$?; continue; }
1650    # Check for guested configure.
1651    if test -f "$ac_srcdir/configure.gnu"; then
1652      echo &&
1653      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654    elif test -f "$ac_srcdir/configure"; then
1655      echo &&
1656      $SHELL "$ac_srcdir/configure" --help=recursive
1657    else
1658      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659    fi || ac_status=$?
1660    cd "$ac_pwd" || { ac_status=$?; break; }
1661  done
1662fi
1663
1664test -n "$ac_init_help" && exit $ac_status
1665if $ac_init_version; then
1666  cat <<\_ACEOF
1667adolc configure 2.3.0-trunk
1668generated by GNU Autoconf 2.67
1669
1670Copyright (C) 2010 Free Software Foundation, Inc.
1671This configure script is free software; the Free Software Foundation
1672gives unlimited permission to copy, distribute and modify it.
1673_ACEOF
1674  exit
1675fi
1676
1677## ------------------------ ##
1678## Autoconf initialization. ##
1679## ------------------------ ##
1680
1681# ac_fn_cxx_try_compile LINENO
1682# ----------------------------
1683# Try to compile conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_cxx_try_compile ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  rm -f conftest.$ac_objext
1688  if { { ac_try="$ac_compile"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_compile") 2>conftest.err
1696  ac_status=$?
1697  if test -s conftest.err; then
1698    grep -v '^ *+' conftest.err >conftest.er1
1699    cat conftest.er1 >&5
1700    mv -f conftest.er1 conftest.err
1701  fi
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } && {
1704         test -z "$ac_cxx_werror_flag" ||
1705         test ! -s conftest.err
1706       } && test -s conftest.$ac_objext; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712        ac_retval=1
1713fi
1714  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_cxx_try_compile
1718
1719# ac_fn_c_try_compile LINENO
1720# --------------------------
1721# Try to compile conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_compile ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  rm -f conftest.$ac_objext
1726  if { { ac_try="$ac_compile"
1727case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_compile") 2>conftest.err
1734  ac_status=$?
1735  if test -s conftest.err; then
1736    grep -v '^ *+' conftest.err >conftest.er1
1737    cat conftest.er1 >&5
1738    mv -f conftest.er1 conftest.err
1739  fi
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; } && {
1742         test -z "$ac_c_werror_flag" ||
1743         test ! -s conftest.err
1744       } && test -s conftest.$ac_objext; then :
1745  ac_retval=0
1746else
1747  $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750        ac_retval=1
1751fi
1752  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753  as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_compile
1756
1757# ac_fn_c_try_cpp LINENO
1758# ----------------------
1759# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_cpp ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  if { { ac_try="$ac_cpp conftest.$ac_ext"
1764case "(($ac_try" in
1765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766  *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771  ac_status=$?
1772  if test -s conftest.err; then
1773    grep -v '^ *+' conftest.err >conftest.er1
1774    cat conftest.er1 >&5
1775    mv -f conftest.er1 conftest.err
1776  fi
1777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778  test $ac_status = 0; } > conftest.i && {
1779         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780         test ! -s conftest.err
1781       }; then :
1782  ac_retval=0
1783else
1784  $as_echo "$as_me: failed program was:" >&5
1785sed 's/^/| /' conftest.$ac_ext >&5
1786
1787    ac_retval=1
1788fi
1789  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790  as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_cpp
1793
1794# ac_fn_c_try_link LINENO
1795# -----------------------
1796# Try to link conftest.$ac_ext, and return whether this succeeded.
1797ac_fn_c_try_link ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  rm -f conftest.$ac_objext conftest$ac_exeext
1801  if { { ac_try="$ac_link"
1802case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_link") 2>conftest.err
1809  ac_status=$?
1810  if test -s conftest.err; then
1811    grep -v '^ *+' conftest.err >conftest.er1
1812    cat conftest.er1 >&5
1813    mv -f conftest.er1 conftest.err
1814  fi
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } && {
1817         test -z "$ac_c_werror_flag" ||
1818         test ! -s conftest.err
1819       } && test -s conftest$ac_exeext && {
1820         test "$cross_compiling" = yes ||
1821         $as_test_x conftest$ac_exeext
1822       }; then :
1823  ac_retval=0
1824else
1825  $as_echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828        ac_retval=1
1829fi
1830  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832  # interfere with the next link command; also delete a directory that is
1833  # left behind by Apple's compiler.  We do this before executing the actions.
1834  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836  as_fn_set_status $ac_retval
1837
1838} # ac_fn_c_try_link
1839
1840# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841# -------------------------------------------------------
1842# Tests whether HEADER exists and can be compiled using the include files in
1843# INCLUDES, setting the cache variable VAR accordingly.
1844ac_fn_c_check_header_compile ()
1845{
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if eval "test \"\${$3+set}\"" = set; then :
1850  $as_echo_n "(cached) " >&6
1851else
1852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h.  */
1854$4
1855#include <$2>
1856_ACEOF
1857if ac_fn_c_try_compile "$LINENO"; then :
1858  eval "$3=yes"
1859else
1860  eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869} # ac_fn_c_check_header_compile
1870
1871# ac_fn_c_try_run LINENO
1872# ----------------------
1873# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874# that executables *can* be run.
1875ac_fn_c_try_run ()
1876{
1877  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878  if { { ac_try="$ac_link"
1879case "(($ac_try" in
1880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881  *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885  (eval "$ac_link") 2>&5
1886  ac_status=$?
1887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1889  { { case "(($ac_try" in
1890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891  *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895  (eval "$ac_try") 2>&5
1896  ac_status=$?
1897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898  test $ac_status = 0; }; }; then :
1899  ac_retval=0
1900else
1901  $as_echo "$as_me: program exited with status $ac_status" >&5
1902       $as_echo "$as_me: failed program was:" >&5
1903sed 's/^/| /' conftest.$ac_ext >&5
1904
1905       ac_retval=$ac_status
1906fi
1907  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909  as_fn_set_status $ac_retval
1910
1911} # ac_fn_c_try_run
1912
1913# ac_fn_c_check_func LINENO FUNC VAR
1914# ----------------------------------
1915# Tests whether FUNC exists, setting the cache variable VAR accordingly
1916ac_fn_c_check_func ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920$as_echo_n "checking for $2... " >&6; }
1921if eval "test \"\${$3+set}\"" = set; then :
1922  $as_echo_n "(cached) " >&6
1923else
1924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h.  */
1926/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1928#define $2 innocuous_$2
1929
1930/* System header to define __stub macros and hopefully few prototypes,
1931    which can conflict with char $2 (); below.
1932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1933    <limits.h> exists even on freestanding compilers.  */
1934
1935#ifdef __STDC__
1936# include <limits.h>
1937#else
1938# include <assert.h>
1939#endif
1940
1941#undef $2
1942
1943/* Override any GCC internal prototype to avoid an error.
1944   Use char because int might match the return type of a GCC
1945   builtin and then its argument prototype would still apply.  */
1946#ifdef __cplusplus
1947extern "C"
1948#endif
1949char $2 ();
1950/* The GNU C library defines this for functions which it implements
1951    to always fail with ENOSYS.  Some functions are actually named
1952    something starting with __ and the normal name is an alias.  */
1953#if defined __stub_$2 || defined __stub___$2
1954choke me
1955#endif
1956
1957int
1958main ()
1959{
1960return $2 ();
1961  ;
1962  return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_link "$LINENO"; then :
1966  eval "$3=yes"
1967else
1968  eval "$3=no"
1969fi
1970rm -f core conftest.err conftest.$ac_objext \
1971    conftest$ac_exeext conftest.$ac_ext
1972fi
1973eval ac_res=\$$3
1974               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975$as_echo "$ac_res" >&6; }
1976  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977
1978} # ac_fn_c_check_func
1979
1980# ac_fn_cxx_try_cpp LINENO
1981# ------------------------
1982# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1983ac_fn_cxx_try_cpp ()
1984{
1985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986  if { { ac_try="$ac_cpp conftest.$ac_ext"
1987case "(($ac_try" in
1988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989  *) ac_try_echo=$ac_try;;
1990esac
1991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992$as_echo "$ac_try_echo"; } >&5
1993  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994  ac_status=$?
1995  if test -s conftest.err; then
1996    grep -v '^ *+' conftest.err >conftest.er1
1997    cat conftest.er1 >&5
1998    mv -f conftest.er1 conftest.err
1999  fi
2000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001  test $ac_status = 0; } > conftest.i && {
2002         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003         test ! -s conftest.err
2004       }; then :
2005  ac_retval=0
2006else
2007  $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010    ac_retval=1
2011fi
2012  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013  as_fn_set_status $ac_retval
2014
2015} # ac_fn_cxx_try_cpp
2016
2017# ac_fn_cxx_try_link LINENO
2018# -------------------------
2019# Try to link conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_cxx_try_link ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  rm -f conftest.$ac_objext conftest$ac_exeext
2024  if { { ac_try="$ac_link"
2025case "(($ac_try" in
2026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027  *) ac_try_echo=$ac_try;;
2028esac
2029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030$as_echo "$ac_try_echo"; } >&5
2031  (eval "$ac_link") 2>conftest.err
2032  ac_status=$?
2033  if test -s conftest.err; then
2034    grep -v '^ *+' conftest.err >conftest.er1
2035    cat conftest.er1 >&5
2036    mv -f conftest.er1 conftest.err
2037  fi
2038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039  test $ac_status = 0; } && {
2040         test -z "$ac_cxx_werror_flag" ||
2041         test ! -s conftest.err
2042       } && test -s conftest$ac_exeext && {
2043         test "$cross_compiling" = yes ||
2044         $as_test_x conftest$ac_exeext
2045       }; then :
2046  ac_retval=0
2047else
2048  $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051        ac_retval=1
2052fi
2053  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055  # interfere with the next link command; also delete a directory that is
2056  # left behind by Apple's compiler.  We do this before executing the actions.
2057  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059  as_fn_set_status $ac_retval
2060
2061} # ac_fn_cxx_try_link
2062
2063# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2064# --------------------------------------------
2065# Tries to find the compile-time value of EXPR in a program that includes
2066# INCLUDES, setting VAR accordingly. Returns whether the value could be
2067# computed
2068ac_fn_c_compute_int ()
2069{
2070  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071  if test "$cross_compiling" = yes; then
2072    # Depending upon the size, compute the lo and hi bounds.
2073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h.  */
2075$4
2076int
2077main ()
2078{
2079static int test_array [1 - 2 * !(($2) >= 0)];
2080test_array [0] = 0
2081
2082  ;
2083  return 0;
2084}
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087  ac_lo=0 ac_mid=0
2088  while :; do
2089    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h.  */
2091$4
2092int
2093main ()
2094{
2095static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096test_array [0] = 0
2097
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103  ac_hi=$ac_mid; break
2104else
2105  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2106                        if test $ac_lo -le $ac_mid; then
2107                          ac_lo= ac_hi=
2108                          break
2109                        fi
2110                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113  done
2114else
2115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h.  */
2117$4
2118int
2119main ()
2120{
2121static int test_array [1 - 2 * !(($2) < 0)];
2122test_array [0] = 0
2123
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129  ac_hi=-1 ac_mid=-1
2130  while :; do
2131    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h.  */
2133$4
2134int
2135main ()
2136{
2137static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2138test_array [0] = 0
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  ac_lo=$ac_mid; break
2146else
2147  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2148                        if test $ac_mid -le $ac_hi; then
2149                          ac_lo= ac_hi=
2150                          break
2151                        fi
2152                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155  done
2156else
2157  ac_lo= ac_hi=
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162# Binary search between lo and hi bounds.
2163while test "x$ac_lo" != "x$ac_hi"; do
2164  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h.  */
2167$4
2168int
2169main ()
2170{
2171static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172test_array [0] = 0
2173
2174  ;
2175  return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179  ac_hi=$ac_mid
2180else
2181  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184done
2185case $ac_lo in #((
2186?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2187'') ac_retval=1 ;;
2188esac
2189  else
2190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h.  */
2192$4
2193static long int longval () { return $2; }
2194static unsigned long int ulongval () { return $2; }
2195#include <stdio.h>
2196#include <stdlib.h>
2197int
2198main ()
2199{
2200
2201  FILE *f = fopen ("conftest.val", "w");
2202  if (! f)
2203    return 1;
2204  if (($2) < 0)
2205    {
2206      long int i = longval ();
2207      if (i != ($2))
2208        return 1;
2209      fprintf (f, "%ld", i);
2210    }
2211  else
2212    {
2213      unsigned long int i = ulongval ();
2214      if (i != ($2))
2215        return 1;
2216      fprintf (f, "%lu", i);
2217    }
2218  /* Do not output a trailing newline, as this causes \r\n confusion
2219     on some platforms.  */
2220  return ferror (f) || fclose (f) != 0;
2221
2222  ;
2223  return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_run "$LINENO"; then :
2227  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2228else
2229  ac_retval=1
2230fi
2231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2232  conftest.$ac_objext conftest.beam conftest.$ac_ext
2233rm -f conftest.val
2234
2235  fi
2236  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2237  as_fn_set_status $ac_retval
2238
2239} # ac_fn_c_compute_int
2240
2241# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242# -------------------------------------------
2243# Tests whether TYPE exists after having included INCLUDES, setting cache
2244# variable VAR accordingly.
2245ac_fn_c_check_type ()
2246{
2247  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249$as_echo_n "checking for $2... " >&6; }
2250if eval "test \"\${$3+set}\"" = set; then :
2251  $as_echo_n "(cached) " >&6
2252else
2253  eval "$3=no"
2254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h.  */
2256$4
2257int
2258main ()
2259{
2260if (sizeof ($2))
2261         return 0;
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266if ac_fn_c_try_compile "$LINENO"; then :
2267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268/* end confdefs.h.  */
2269$4
2270int
2271main ()
2272{
2273if (sizeof (($2)))
2274            return 0;
2275  ;
2276  return 0;
2277}
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280
2281else
2282  eval "$3=yes"
2283fi
2284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285fi
2286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287fi
2288eval ac_res=\$$3
2289               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290$as_echo "$ac_res" >&6; }
2291  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2292
2293} # ac_fn_c_check_type
2294
2295# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2296# -------------------------------------------------------
2297# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2298# the include files in INCLUDES and setting the cache variable VAR
2299# accordingly.
2300ac_fn_c_check_header_mongrel ()
2301{
2302  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303  if eval "test \"\${$3+set}\"" = set; then :
2304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305$as_echo_n "checking for $2... " >&6; }
2306if eval "test \"\${$3+set}\"" = set; then :
2307  $as_echo_n "(cached) " >&6
2308fi
2309eval ac_res=\$$3
2310               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311$as_echo "$ac_res" >&6; }
2312else
2313  # Is the header compilable?
2314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2315$as_echo_n "checking $2 usability... " >&6; }
2316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317/* end confdefs.h.  */
2318$4
2319#include <$2>
2320_ACEOF
2321if ac_fn_c_try_compile "$LINENO"; then :
2322  ac_header_compiler=yes
2323else
2324  ac_header_compiler=no
2325fi
2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2328$as_echo "$ac_header_compiler" >&6; }
2329
2330# Is the header present?
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2332$as_echo_n "checking $2 presence... " >&6; }
2333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334/* end confdefs.h.  */
2335#include <$2>
2336_ACEOF
2337if ac_fn_c_try_cpp "$LINENO"; then :
2338  ac_header_preproc=yes
2339else
2340  ac_header_preproc=no
2341fi
2342rm -f conftest.err conftest.i conftest.$ac_ext
2343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2344$as_echo "$ac_header_preproc" >&6; }
2345
2346# So?  What about this header?
2347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2348  yes:no: )
2349    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2350$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2351    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2352$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2353    ;;
2354  no:yes:* )
2355    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2356$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2357    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2358$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2359    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2360$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2361    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2362$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2363    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2365( $as_echo "## -------------------------------------- ##
2366## Report this to adol-c@list.coin-or.org ##
2367## -------------------------------------- ##"
2368     ) | sed "s/^/$as_me: WARNING:     /" >&2
2369    ;;
2370esac
2371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2372$as_echo_n "checking for $2... " >&6; }
2373if eval "test \"\${$3+set}\"" = set; then :
2374  $as_echo_n "(cached) " >&6
2375else
2376  eval "$3=\$ac_header_compiler"
2377fi
2378eval ac_res=\$$3
2379               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2380$as_echo "$ac_res" >&6; }
2381fi
2382  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2383
2384} # ac_fn_c_check_header_mongrel
2385
2386# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2387# ---------------------------------------------------------
2388# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2389# the include files in INCLUDES and setting the cache variable VAR
2390# accordingly.
2391ac_fn_cxx_check_header_mongrel ()
2392{
2393  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394  if eval "test \"\${$3+set}\"" = set; then :
2395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396$as_echo_n "checking for $2... " >&6; }
2397if eval "test \"\${$3+set}\"" = set; then :
2398  $as_echo_n "(cached) " >&6
2399fi
2400eval ac_res=\$$3
2401               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402$as_echo "$ac_res" >&6; }
2403else
2404  # Is the header compilable?
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2406$as_echo_n "checking $2 usability... " >&6; }
2407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408/* end confdefs.h.  */
2409$4
2410#include <$2>
2411_ACEOF
2412if ac_fn_cxx_try_compile "$LINENO"; then :
2413  ac_header_compiler=yes
2414else
2415  ac_header_compiler=no
2416fi
2417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2419$as_echo "$ac_header_compiler" >&6; }
2420
2421# Is the header present?
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2423$as_echo_n "checking $2 presence... " >&6; }
2424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h.  */
2426#include <$2>
2427_ACEOF
2428if ac_fn_cxx_try_cpp "$LINENO"; then :
2429  ac_header_preproc=yes
2430else
2431  ac_header_preproc=no
2432fi
2433rm -f conftest.err conftest.i conftest.$ac_ext
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2435$as_echo "$ac_header_preproc" >&6; }
2436
2437# So?  What about this header?
2438case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2439  yes:no: )
2440    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2441$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2442    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2443$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2444    ;;
2445  no:yes:* )
2446    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2447$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2448    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2449$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2450    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2451$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2452    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2453$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2454    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2456( $as_echo "## -------------------------------------- ##
2457## Report this to adol-c@list.coin-or.org ##
2458## -------------------------------------- ##"
2459     ) | sed "s/^/$as_me: WARNING:     /" >&2
2460    ;;
2461esac
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463$as_echo_n "checking for $2... " >&6; }
2464if eval "test \"\${$3+set}\"" = set; then :
2465  $as_echo_n "(cached) " >&6
2466else
2467  eval "$3=\$ac_header_compiler"
2468fi
2469eval ac_res=\$$3
2470               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471$as_echo "$ac_res" >&6; }
2472fi
2473  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474
2475} # ac_fn_cxx_check_header_mongrel
2476cat >config.log <<_ACEOF
2477This file contains any messages produced by compilers while
2478running configure, to aid debugging if configure makes a mistake.
2479
2480It was created by adolc $as_me 2.3.0-trunk, which was
2481generated by GNU Autoconf 2.67.  Invocation command line was
2482
2483  $ $0 $@
2484
2485_ACEOF
2486exec 5>>config.log
2487{
2488cat <<_ASUNAME
2489## --------- ##
2490## Platform. ##
2491## --------- ##
2492
2493hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2494uname -m = `(uname -m) 2>/dev/null || echo unknown`
2495uname -r = `(uname -r) 2>/dev/null || echo unknown`
2496uname -s = `(uname -s) 2>/dev/null || echo unknown`
2497uname -v = `(uname -v) 2>/dev/null || echo unknown`
2498
2499/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2500/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2501
2502/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2503/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2504/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2505/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2506/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2507/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2508/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2509
2510_ASUNAME
2511
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517    $as_echo "PATH: $as_dir"
2518  done
2519IFS=$as_save_IFS
2520
2521} >&5
2522
2523cat >&5 <<_ACEOF
2524
2525
2526## ----------- ##
2527## Core tests. ##
2528## ----------- ##
2529
2530_ACEOF
2531
2532
2533# Keep a trace of the command line.
2534# Strip out --no-create and --no-recursion so they do not pile up.
2535# Strip out --silent because we don't want to record it for future runs.
2536# Also quote any args containing shell meta-characters.
2537# Make two passes to allow for proper duplicate-argument suppression.
2538ac_configure_args=
2539ac_configure_args0=
2540ac_configure_args1=
2541ac_must_keep_next=false
2542for ac_pass in 1 2
2543do
2544  for ac_arg
2545  do
2546    case $ac_arg in
2547    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2548    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2549    | -silent | --silent | --silen | --sile | --sil)
2550      continue ;;
2551    *\'*)
2552      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2553    esac
2554    case $ac_pass in
2555    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2556    2)
2557      as_fn_append ac_configure_args1 " '$ac_arg'"
2558      if test $ac_must_keep_next = true; then
2559        ac_must_keep_next=false # Got value, back to normal.
2560      else
2561        case $ac_arg in
2562          *=* | --config-cache | -C | -disable-* | --disable-* \
2563          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2564          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2565          | -with-* | --with-* | -without-* | --without-* | --x)
2566            case "$ac_configure_args0 " in
2567              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2568            esac
2569            ;;
2570          -* ) ac_must_keep_next=true ;;
2571        esac
2572      fi
2573      as_fn_append ac_configure_args " '$ac_arg'"
2574      ;;
2575    esac
2576  done
2577done
2578{ ac_configure_args0=; unset ac_configure_args0;}
2579{ ac_configure_args1=; unset ac_configure_args1;}
2580
2581# When interrupted or exit'd, cleanup temporary files, and complete
2582# config.log.  We remove comments because anyway the quotes in there
2583# would cause problems or look ugly.
2584# WARNING: Use '\'' to represent an apostrophe within the trap.
2585# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2586trap 'exit_status=$?
2587  # Save into config.log some information that might help in debugging.
2588  {
2589    echo
2590
2591    $as_echo "## ---------------- ##
2592## Cache variables. ##
2593## ---------------- ##"
2594    echo
2595    # The following way of writing the cache mishandles newlines in values,
2596(
2597  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2598    eval ac_val=\$$ac_var
2599    case $ac_val in #(
2600    *${as_nl}*)
2601      case $ac_var in #(
2602      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2603$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2604      esac
2605      case $ac_var in #(
2606      _ | IFS | as_nl) ;; #(
2607      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2608      *) { eval $ac_var=; unset $ac_var;} ;;
2609      esac ;;
2610    esac
2611  done
2612  (set) 2>&1 |
2613    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2614    *${as_nl}ac_space=\ *)
2615      sed -n \
2616        "s/'\''/'\''\\\\'\'''\''/g;
2617          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2618      ;; #(
2619    *)
2620      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2621      ;;
2622    esac |
2623    sort
2624)
2625    echo
2626
2627    $as_echo "## ----------------- ##
2628## Output variables. ##
2629## ----------------- ##"
2630    echo
2631    for ac_var in $ac_subst_vars
2632    do
2633      eval ac_val=\$$ac_var
2634      case $ac_val in
2635      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2636      esac
2637      $as_echo "$ac_var='\''$ac_val'\''"
2638    done | sort
2639    echo
2640
2641    if test -n "$ac_subst_files"; then
2642      $as_echo "## ------------------- ##
2643## File substitutions. ##
2644## ------------------- ##"
2645      echo
2646      for ac_var in $ac_subst_files
2647      do
2648        eval ac_val=\$$ac_var
2649        case $ac_val in
2650        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2651        esac
2652        $as_echo "$ac_var='\''$ac_val'\''"
2653      done | sort
2654      echo
2655    fi
2656
2657    if test -s confdefs.h; then
2658      $as_echo "## ----------- ##
2659## confdefs.h. ##
2660## ----------- ##"
2661      echo
2662      cat confdefs.h
2663      echo
2664    fi
2665    test "$ac_signal" != 0 &&
2666      $as_echo "$as_me: caught signal $ac_signal"
2667    $as_echo "$as_me: exit $exit_status"
2668  } >&5
2669  rm -f core *.core core.conftest.* &&
2670    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2671    exit $exit_status
2672' 0
2673for ac_signal in 1 2 13 15; do
2674  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2675done
2676ac_signal=0
2677
2678# confdefs.h avoids OS command line length limits that DEFS can exceed.
2679rm -f -r conftest* confdefs.h
2680
2681$as_echo "/* confdefs.h */" > confdefs.h
2682
2683# Predefined preprocessor variables.
2684
2685cat >>confdefs.h <<_ACEOF
2686#define PACKAGE_NAME "$PACKAGE_NAME"
2687_ACEOF
2688
2689cat >>confdefs.h <<_ACEOF
2690#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2691_ACEOF
2692
2693cat >>confdefs.h <<_ACEOF
2694#define PACKAGE_VERSION "$PACKAGE_VERSION"
2695_ACEOF
2696
2697cat >>confdefs.h <<_ACEOF
2698#define PACKAGE_STRING "$PACKAGE_STRING"
2699_ACEOF
2700
2701cat >>confdefs.h <<_ACEOF
2702#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2703_ACEOF
2704
2705cat >>confdefs.h <<_ACEOF
2706#define PACKAGE_URL "$PACKAGE_URL"
2707_ACEOF
2708
2709
2710# Let the site file select an alternate cache file if it wants to.
2711# Prefer an explicitly selected file to automatically selected ones.
2712ac_site_file1=NONE
2713ac_site_file2=NONE
2714if test -n "$CONFIG_SITE"; then
2715  # We do not want a PATH search for config.site.
2716  case $CONFIG_SITE in #((
2717    -*)  ac_site_file1=./$CONFIG_SITE;;
2718    */*) ac_site_file1=$CONFIG_SITE;;
2719    *)   ac_site_file1=./$CONFIG_SITE;;
2720  esac
2721elif test "x$prefix" != xNONE; then
2722  ac_site_file1=$prefix/share/config.site
2723  ac_site_file2=$prefix/etc/config.site
2724else
2725  ac_site_file1=$ac_default_prefix/share/config.site
2726  ac_site_file2=$ac_default_prefix/etc/config.site
2727fi
2728for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2729do
2730  test "x$ac_site_file" = xNONE && continue
2731  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2732    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2733$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2734    sed 's/^/| /' "$ac_site_file" >&5
2735    . "$ac_site_file" \
2736      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738as_fn_error $? "failed to load site script $ac_site_file
2739See \`config.log' for more details" "$LINENO" 5 ; }
2740  fi
2741done
2742
2743if test -r "$cache_file"; then
2744  # Some versions of bash will fail to source /dev/null (special files
2745  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2746  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2747    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2748$as_echo "$as_me: loading cache $cache_file" >&6;}
2749    case $cache_file in
2750      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2751      *)                      . "./$cache_file";;
2752    esac
2753  fi
2754else
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2756$as_echo "$as_me: creating cache $cache_file" >&6;}
2757  >$cache_file
2758fi
2759
2760# Check that the precious variables saved in the cache have kept the same
2761# value.
2762ac_cache_corrupted=false
2763for ac_var in $ac_precious_vars; do
2764  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2765  eval ac_new_set=\$ac_env_${ac_var}_set
2766  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2767  eval ac_new_val=\$ac_env_${ac_var}_value
2768  case $ac_old_set,$ac_new_set in
2769    set,)
2770      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2771$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2772      ac_cache_corrupted=: ;;
2773    ,set)
2774      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2775$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2776      ac_cache_corrupted=: ;;
2777    ,);;
2778    *)
2779      if test "x$ac_old_val" != "x$ac_new_val"; then
2780        # differences in whitespace do not lead to failure.
2781        ac_old_val_w=`echo x $ac_old_val`
2782        ac_new_val_w=`echo x $ac_new_val`
2783        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2784          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2785$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2786          ac_cache_corrupted=:
2787        else
2788          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2789$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2790          eval $ac_var=\$ac_old_val
2791        fi
2792        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2793$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2794        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2795$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2796      fi;;
2797  esac
2798  # Pass precious variables to config.status.
2799  if test "$ac_new_set" = set; then
2800    case $ac_new_val in
2801    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2802    *) ac_arg=$ac_var=$ac_new_val ;;
2803    esac
2804    case " $ac_configure_args " in
2805      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2806      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2807    esac
2808  fi
2809done
2810if $ac_cache_corrupted; then
2811  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2814$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2815  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2816fi
2817## -------------------- ##
2818## Main body of script. ##
2819## -------------------- ##
2820
2821ac_ext=c
2822ac_cpp='$CPP $CPPFLAGS'
2823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826
2827
2828
2829
2830ac_aux_dir=
2831for ac_dir in autoconf "$srcdir"/autoconf; do
2832  if test -f "$ac_dir/install-sh"; then
2833    ac_aux_dir=$ac_dir
2834    ac_install_sh="$ac_aux_dir/install-sh -c"
2835    break
2836  elif test -f "$ac_dir/install.sh"; then
2837    ac_aux_dir=$ac_dir
2838    ac_install_sh="$ac_aux_dir/install.sh -c"
2839    break
2840  elif test -f "$ac_dir/shtool"; then
2841    ac_aux_dir=$ac_dir
2842    ac_install_sh="$ac_aux_dir/shtool install -c"
2843    break
2844  fi
2845done
2846if test -z "$ac_aux_dir"; then
2847  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2848fi
2849
2850# These three variables are undocumented and unsupported,
2851# and are intended to be withdrawn in a future Autoconf release.
2852# They can cause serious problems if a builder's source tree is in a directory
2853# whose full name contains unusual characters.
2854ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2855ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2856ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2857
2858
2859ac_config_headers="$ac_config_headers ADOL-C/src/config.h"
2860
2861
2862am__api_version='1.11'
2863
2864# Find a good install program.  We prefer a C program (faster),
2865# so one script is as good as another.  But avoid the broken or
2866# incompatible versions:
2867# SysV /etc/install, /usr/sbin/install
2868# SunOS /usr/etc/install
2869# IRIX /sbin/install
2870# AIX /bin/install
2871# AmigaOS /C/install, which installs bootblocks on floppy discs
2872# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2873# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2874# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2875# OS/2's system install, which has a completely different semantic
2876# ./install, which can be erroneously created by make from ./install.sh.
2877# Reject install programs that cannot install multiple files.
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2879$as_echo_n "checking for a BSD-compatible install... " >&6; }
2880if test -z "$INSTALL"; then
2881if test "${ac_cv_path_install+set}" = set; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887  IFS=$as_save_IFS
2888  test -z "$as_dir" && as_dir=.
2889    # Account for people who put trailing slashes in PATH elements.
2890case $as_dir/ in #((
2891  ./ | .// | /[cC]/* | \
2892  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2893  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2894  /usr/ucb/* ) ;;
2895  *)
2896    # OSF1 and SCO ODT 3.0 have their own names for install.
2897    # Don't use installbsd from OSF since it installs stuff as root
2898    # by default.
2899    for ac_prog in ginstall scoinst install; do
2900      for ac_exec_ext in '' $ac_executable_extensions; do
2901        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2902          if test $ac_prog = install &&
2903            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2904            # AIX install.  It has an incompatible calling convention.
2905            :
2906          elif test $ac_prog = install &&
2907            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2908            # program-specific install script used by HP pwplus--don't use.
2909            :
2910          else
2911            rm -rf conftest.one conftest.two conftest.dir
2912            echo one > conftest.one
2913            echo two > conftest.two
2914            mkdir conftest.dir
2915            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2916              test -s conftest.one && test -s conftest.two &&
2917              test -s conftest.dir/conftest.one &&
2918              test -s conftest.dir/conftest.two
2919            then
2920              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2921              break 3
2922            fi
2923          fi
2924        fi
2925      done
2926    done
2927    ;;
2928esac
2929
2930  done
2931IFS=$as_save_IFS
2932
2933rm -rf conftest.one conftest.two conftest.dir
2934
2935fi
2936  if test "${ac_cv_path_install+set}" = set; then
2937    INSTALL=$ac_cv_path_install
2938  else
2939    # As a last resort, use the slow shell script.  Don't cache a
2940    # value for INSTALL within a source directory, because that will
2941    # break other packages using the cache if that directory is
2942    # removed, or if the value is a relative name.
2943    INSTALL=$ac_install_sh
2944  fi
2945fi
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2947$as_echo "$INSTALL" >&6; }
2948
2949# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2950# It thinks the first close brace ends the variable substitution.
2951test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2952
2953test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2954
2955test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2956
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2958$as_echo_n "checking whether build environment is sane... " >&6; }
2959# Just in case
2960sleep 1
2961echo timestamp > conftest.file
2962# Reject unsafe characters in $srcdir or the absolute working directory
2963# name.  Accept space and tab only in the latter.
2964am_lf='
2965'
2966case `pwd` in
2967  *[\\\"\#\$\&\'\`$am_lf]*)
2968    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2969esac
2970case $srcdir in
2971  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2972    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2973esac
2974
2975# Do `set' in a subshell so we don't clobber the current shell's
2976# arguments.  Must try -L first in case configure is actually a
2977# symlink; some systems play weird games with the mod time of symlinks
2978# (eg FreeBSD returns the mod time of the symlink's containing
2979# directory).
2980if (
2981   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2982   if test "$*" = "X"; then
2983      # -L didn't work.
2984      set X `ls -t "$srcdir/configure" conftest.file`
2985   fi
2986   rm -f conftest.file
2987   if test "$*" != "X $srcdir/configure conftest.file" \
2988      && test "$*" != "X conftest.file $srcdir/configure"; then
2989
2990      # If neither matched, then we have a broken ls.  This can happen
2991      # if, for instance, CONFIG_SHELL is bash and it inherits a
2992      # broken ls alias from the environment.  This has actually
2993      # happened.  Such a system could not be considered "sane".
2994      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2995alias in your environment" "$LINENO" 5
2996   fi
2997
2998   test "$2" = conftest.file
2999   )
3000then
3001   # Ok.
3002   :
3003else
3004   as_fn_error $? "newly created file is older than distributed files!
3005Check your system clock" "$LINENO" 5
3006fi
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008$as_echo "yes" >&6; }
3009test "$program_prefix" != NONE &&
3010  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3011# Use a double $ so make ignores it.
3012test "$program_suffix" != NONE &&
3013  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3014# Double any \ or $.
3015# By default was `s,x,x', remove it if useless.
3016ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3017program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3018
3019# expand $ac_aux_dir to an absolute path
3020am_aux_dir=`cd $ac_aux_dir && pwd`
3021
3022if test x"${MISSING+set}" != xset; then
3023  case $am_aux_dir in
3024  *\ * | *\     *)
3025    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3026  *)
3027    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3028  esac
3029fi
3030# Use eval to expand $SHELL
3031if eval "$MISSING --run true"; then
3032  am_missing_run="$MISSING --run "
3033else
3034  am_missing_run=
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3036$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3037fi
3038
3039if test x"${install_sh}" != xset; then
3040  case $am_aux_dir in
3041  *\ * | *\     *)
3042    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3043  *)
3044    install_sh="\${SHELL} $am_aux_dir/install-sh"
3045  esac
3046fi
3047
3048# Installed binaries are usually stripped using `strip' when the user
3049# run `make install-strip'.  However `strip' might not be the right
3050# tool to use in cross-compilation environments, therefore Automake
3051# will honor the `STRIP' environment variable to overrule this program.
3052if test "$cross_compiling" != no; then
3053  if test -n "$ac_tool_prefix"; then
3054  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3055set dummy ${ac_tool_prefix}strip; ac_word=$2
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057$as_echo_n "checking for $ac_word... " >&6; }
3058if test "${ac_cv_prog_STRIP+set}" = set; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  if test -n "$STRIP"; then
3062  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  test -z "$as_dir" && as_dir=.
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi
3080fi
3081STRIP=$ac_cv_prog_STRIP
3082if test -n "$STRIP"; then
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3084$as_echo "$STRIP" >&6; }
3085else
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
3088fi
3089
3090
3091fi
3092if test -z "$ac_cv_prog_STRIP"; then
3093  ac_ct_STRIP=$STRIP
3094  # Extract the first word of "strip", so it can be a program name with args.
3095set dummy strip; ac_word=$2
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097$as_echo_n "checking for $ac_word... " >&6; }
3098if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3099  $as_echo_n "(cached) " >&6
3100else
3101  if test -n "$ac_ct_STRIP"; then
3102  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107  IFS=$as_save_IFS
3108  test -z "$as_dir" && as_dir=.
3109    for ac_exec_ext in '' $ac_executable_extensions; do
3110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111    ac_cv_prog_ac_ct_STRIP="strip"
3112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113    break 2
3114  fi
3115done
3116  done
3117IFS=$as_save_IFS
3118
3119fi
3120fi
3121ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3122if test -n "$ac_ct_STRIP"; then
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3124$as_echo "$ac_ct_STRIP" >&6; }
3125else
3126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127$as_echo "no" >&6; }
3128fi
3129
3130  if test "x$ac_ct_STRIP" = x; then
3131    STRIP=":"
3132  else
3133    case $cross_compiling:$ac_tool_warned in
3134yes:)
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137ac_tool_warned=yes ;;
3138esac
3139    STRIP=$ac_ct_STRIP
3140  fi
3141else
3142  STRIP="$ac_cv_prog_STRIP"
3143fi
3144
3145fi
3146INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3147
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3149$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3150if test -z "$MKDIR_P"; then
3151  if test "${ac_cv_path_mkdir+set}" = set; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3156do
3157  IFS=$as_save_IFS
3158  test -z "$as_dir" && as_dir=.
3159    for ac_prog in mkdir gmkdir; do
3160         for ac_exec_ext in '' $ac_executable_extensions; do
3161           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3162           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3163             'mkdir (GNU coreutils) '* | \
3164             'mkdir (coreutils) '* | \
3165             'mkdir (fileutils) '4.1*)
3166               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3167               break 3;;
3168           esac
3169         done
3170       done
3171  done
3172IFS=$as_save_IFS
3173
3174fi
3175
3176  test -d ./--version && rmdir ./--version
3177  if test "${ac_cv_path_mkdir+set}" = set; then
3178    MKDIR_P="$ac_cv_path_mkdir -p"
3179  else
3180    # As a last resort, use the slow shell script.  Don't cache a
3181    # value for MKDIR_P within a source directory, because that will
3182    # break other packages using the cache if that directory is
3183    # removed, or if the value is a relative name.
3184    MKDIR_P="$ac_install_sh -d"
3185  fi
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3188$as_echo "$MKDIR_P" >&6; }
3189
3190mkdir_p="$MKDIR_P"
3191case $mkdir_p in
3192  [\\/$]* | ?:[\\/]*) ;;
3193  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3194esac
3195
3196for ac_prog in gawk mawk nawk awk
3197do
3198  # Extract the first word of "$ac_prog", so it can be a program name with args.
3199set dummy $ac_prog; ac_word=$2
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201$as_echo_n "checking for $ac_word... " >&6; }
3202if test "${ac_cv_prog_AWK+set}" = set; then :
3203  $as_echo_n "(cached) " >&6
3204else
3205  if test -n "$AWK"; then
3206  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3207else
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211  IFS=$as_save_IFS
3212  test -z "$as_dir" && as_dir=.
3213    for ac_exec_ext in '' $ac_executable_extensions; do
3214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215    ac_cv_prog_AWK="$ac_prog"
3216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217    break 2
3218  fi
3219done
3220  done
3221IFS=$as_save_IFS
3222
3223fi
3224fi
3225AWK=$ac_cv_prog_AWK
3226if test -n "$AWK"; then
3227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3228$as_echo "$AWK" >&6; }
3229else
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231$as_echo "no" >&6; }
3232fi
3233
3234
3235  test -n "$AWK" && break
3236done
3237
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3239$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3240set x ${MAKE-make}
3241ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3242if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3243  $as_echo_n "(cached) " >&6
3244else
3245  cat >conftest.make <<\_ACEOF
3246SHELL = /bin/sh
3247all:
3248        @echo '@@@%%%=$(MAKE)=@@@%%%'
3249_ACEOF
3250# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3251case `${MAKE-make} -f conftest.make 2>/dev/null` in
3252  *@@@%%%=?*=@@@%%%*)
3253    eval ac_cv_prog_make_${ac_make}_set=yes;;
3254  *)
3255    eval ac_cv_prog_make_${ac_make}_set=no;;
3256esac
3257rm -f conftest.make
3258fi
3259if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261$as_echo "yes" >&6; }
3262  SET_MAKE=
3263else
3264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265$as_echo "no" >&6; }
3266  SET_MAKE="MAKE=${MAKE-make}"
3267fi
3268
3269rm -rf .tst 2>/dev/null
3270mkdir .tst 2>/dev/null
3271if test -d .tst; then
3272  am__leading_dot=.
3273else
3274  am__leading_dot=_
3275fi
3276rmdir .tst 2>/dev/null
3277
3278if test "`cd $srcdir && pwd`" != "`pwd`"; then
3279  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3280  # is not polluted with repeated "-I."
3281  am__isrc=' -I$(srcdir)'
3282  # test to see if srcdir already configured
3283  if test -f $srcdir/config.status; then
3284    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3285  fi
3286fi
3287
3288# test whether we have cygpath
3289if test -z "$CYGPATH_W"; then
3290  if (cygpath --version) >/dev/null 2>/dev/null; then
3291    CYGPATH_W='cygpath -w'
3292  else
3293    CYGPATH_W=echo
3294  fi
3295fi
3296
3297
3298# Define the identity of the package.
3299 PACKAGE='adolc'
3300 VERSION='2.3.0-trunk'
3301
3302
3303cat >>confdefs.h <<_ACEOF
3304#define PACKAGE "$PACKAGE"
3305_ACEOF
3306
3307
3308cat >>confdefs.h <<_ACEOF
3309#define VERSION "$VERSION"
3310_ACEOF
3311
3312# Some tools Automake needs.
3313
3314ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3315
3316
3317AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3318
3319
3320AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3321
3322
3323AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3324
3325
3326MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3327
3328# We need awk for the "check" target.  The system "awk" is bad on
3329# some platforms.
3330# Always define AMTAR for backward compatibility.
3331
3332AMTAR=${AMTAR-"${am_missing_run}tar"}
3333
3334am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3335
3336
3337
3338
3339
3340# Check whether --enable-silent-rules was given.
3341if test "${enable_silent_rules+set}" = set; then :
3342  enableval=$enable_silent_rules;
3343fi
3344
3345case $enable_silent_rules in
3346yes) AM_DEFAULT_VERBOSITY=0;;
3347no)  AM_DEFAULT_VERBOSITY=1;;
3348*)   AM_DEFAULT_VERBOSITY=0;;
3349esac
3350AM_BACKSLASH='\'
3351
3352
3353if test "x$CFLAGS" == x ; then
3354    ac_shell_cflags="not_set"
3355else
3356    ac_shell_cflags="$CFLAGS"
3357fi
3358if test "x$CXXFLAGS" == x ; then
3359    ac_shell_cxxflags="not_set"
3360else
3361    ac_shell_cxxflags="$CXXFLAGS"
3362fi
3363
3364# checks for programs
3365ac_ext=cpp
3366ac_cpp='$CXXCPP $CPPFLAGS'
3367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3370if test -z "$CXX"; then
3371  if test -n "$CCC"; then
3372    CXX=$CCC
3373  else
3374    if test -n "$ac_tool_prefix"; then
3375  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3376  do
3377    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380$as_echo_n "checking for $ac_word... " >&6; }
3381if test "${ac_cv_prog_CXX+set}" = set; then :
3382  $as_echo_n "(cached) " >&6
3383else
3384  if test -n "$CXX"; then
3385  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3386else
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390  IFS=$as_save_IFS
3391  test -z "$as_dir" && as_dir=.
3392    for ac_exec_ext in '' $ac_executable_extensions; do
3393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396    break 2
3397  fi
3398done
3399  done
3400IFS=$as_save_IFS
3401
3402fi
3403fi
3404CXX=$ac_cv_prog_CXX
3405if test -n "$CXX"; then
3406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3407$as_echo "$CXX" >&6; }
3408else
3409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413
3414    test -n "$CXX" && break
3415  done
3416fi
3417if test -z "$CXX"; then
3418  ac_ct_CXX=$CXX
3419  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3420do
3421  # Extract the first word of "$ac_prog", so it can be a program name with args.
3422set dummy $ac_prog; ac_word=$2
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424$as_echo_n "checking for $ac_word... " >&6; }
3425if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3426  $as_echo_n "(cached) " >&6
3427else
3428  if test -n "$ac_ct_CXX"; then
3429  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434  IFS=$as_save_IFS
3435  test -z "$as_dir" && as_dir=.
3436    for ac_exec_ext in '' $ac_executable_extensions; do
3437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438    ac_cv_prog_ac_ct_CXX="$ac_prog"
3439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440    break 2
3441  fi
3442done
3443  done
3444IFS=$as_save_IFS
3445
3446fi
3447fi
3448ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3449if test -n "$ac_ct_CXX"; then
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3451$as_echo "$ac_ct_CXX" >&6; }
3452else
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454$as_echo "no" >&6; }
3455fi
3456
3457
3458  test -n "$ac_ct_CXX" && break
3459done
3460
3461  if test "x$ac_ct_CXX" = x; then
3462    CXX="g++"
3463  else
3464    case $cross_compiling:$ac_tool_warned in
3465yes:)
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3468ac_tool_warned=yes ;;
3469esac
3470    CXX=$ac_ct_CXX
3471  fi
3472fi
3473
3474  fi
3475fi
3476# Provide some information about the compiler.
3477$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3478set X $ac_compile
3479ac_compiler=$2
3480for ac_option in --version -v -V -qversion; do
3481  { { ac_try="$ac_compiler $ac_option >&5"
3482case "(($ac_try" in
3483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484  *) ac_try_echo=$ac_try;;
3485esac
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3489  ac_status=$?
3490  if test -s conftest.err; then
3491    sed '10a\
3492... rest of stderr output deleted ...
3493         10q' conftest.err >conftest.er1
3494    cat conftest.er1 >&5
3495  fi
3496  rm -f conftest.er1 conftest.err
3497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498  test $ac_status = 0; }
3499done
3500
3501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h.  */
3503
3504int
3505main ()
3506{
3507
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512ac_clean_files_save=$ac_clean_files
3513ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3514# Try to create an executable without -o first, disregard a.out.
3515# It will help us diagnose broken compilers, and finding out an intuition
3516# of exeext.
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3518$as_echo_n "checking whether the C++ compiler works... " >&6; }
3519ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3520
3521# The possible output files:
3522ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3523
3524ac_rmfiles=
3525for ac_file in $ac_files
3526do
3527  case $ac_file in
3528    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3529    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3530  esac
3531done
3532rm -f $ac_rmfiles
3533
3534if { { ac_try="$ac_link_default"
3535case "(($ac_try" in
3536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537  *) ac_try_echo=$ac_try;;
3538esac
3539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540$as_echo "$ac_try_echo"; } >&5
3541  (eval "$ac_link_default") 2>&5
3542  ac_status=$?
3543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544  test $ac_status = 0; }; then :
3545  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3546# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3547# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3548# so that the user can short-circuit this test for compilers unknown to
3549# Autoconf.
3550for ac_file in $ac_files ''
3551do
3552  test -f "$ac_file" || continue
3553  case $ac_file in
3554    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3555        ;;
3556    [ab].out )
3557        # We found the default executable, but exeext='' is most
3558        # certainly right.
3559        break;;
3560    *.* )
3561        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3562        then :; else
3563           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564        fi
3565        # We set ac_cv_exeext here because the later test for it is not
3566        # safe: cross compilers may not add the suffix if given an `-o'
3567        # argument, so we may need to know it at that point already.
3568        # Even if this section looks crufty: it has the advantage of
3569        # actually working.
3570        break;;
3571    * )
3572        break;;
3573  esac
3574done
3575test "$ac_cv_exeext" = no && ac_cv_exeext=
3576
3577else
3578  ac_file=''
3579fi
3580if test -z "$ac_file"; then :
3581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583$as_echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588as_fn_error 77 "C++ compiler cannot create executables
3589See \`config.log' for more details" "$LINENO" 5 ; }
3590else
3591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592$as_echo "yes" >&6; }
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3595$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3597$as_echo "$ac_file" >&6; }
3598ac_exeext=$ac_cv_exeext
3599
3600rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3601ac_clean_files=$ac_clean_files_save
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3603$as_echo_n "checking for suffix of executables... " >&6; }
3604if { { ac_try="$ac_link"
3605case "(($ac_try" in
3606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607  *) ac_try_echo=$ac_try;;
3608esac
3609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610$as_echo "$ac_try_echo"; } >&5
3611  (eval "$ac_link") 2>&5
3612  ac_status=$?
3613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614  test $ac_status = 0; }; then :
3615  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3616# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3617# work properly (i.e., refer to `conftest.exe'), while it won't with
3618# `rm'.
3619for ac_file in conftest.exe conftest conftest.*; do
3620  test -f "$ac_file" || continue
3621  case $ac_file in
3622    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3623    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3624          break;;
3625    * ) break;;
3626  esac
3627done
3628else
3629  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3632See \`config.log' for more details" "$LINENO" 5 ; }
3633fi
3634rm -f conftest conftest$ac_cv_exeext
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3636$as_echo "$ac_cv_exeext" >&6; }
3637
3638rm -f conftest.$ac_ext
3639EXEEXT=$ac_cv_exeext
3640ac_exeext=$EXEEXT
3641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h.  */
3643#include <stdio.h>
3644int
3645main ()
3646{
3647FILE *f = fopen ("conftest.out", "w");
3648 return ferror (f) || fclose (f) != 0;
3649
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654ac_clean_files="$ac_clean_files conftest.out"
3655# Check that the compiler produces executables we can run.  If not, either
3656# the compiler is broken, or we cross compile.
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3658$as_echo_n "checking whether we are cross compiling... " >&6; }
3659if test "$cross_compiling" != yes; then
3660  { { ac_try="$ac_link"
3661case "(($ac_try" in
3662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663  *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5
3667  (eval "$ac_link") 2>&5
3668  ac_status=$?
3669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670  test $ac_status = 0; }
3671  if { ac_try='./conftest$ac_cv_exeext'
3672  { { case "(($ac_try" in
3673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674  *) ac_try_echo=$ac_try;;
3675esac
3676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677$as_echo "$ac_try_echo"; } >&5
3678  (eval "$ac_try") 2>&5
3679  ac_status=$?
3680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681  test $ac_status = 0; }; }; then
3682    cross_compiling=no
3683  else
3684    if test "$cross_compiling" = maybe; then
3685        cross_compiling=yes
3686    else
3687        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689as_fn_error $? "cannot run C++ compiled programs.
3690If you meant to cross compile, use \`--host'.
3691See \`config.log' for more details" "$LINENO" 5 ; }
3692    fi
3693  fi
3694fi
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3696$as_echo "$cross_compiling" >&6; }
3697
3698rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3699ac_clean_files=$ac_clean_files_save
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3701$as_echo_n "checking for suffix of object files... " >&6; }
3702if test "${ac_cv_objext+set}" = set; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h.  */
3707
3708int
3709main ()
3710{
3711
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716rm -f conftest.o conftest.obj
3717if { { ac_try="$ac_compile"
3718case "(($ac_try" in
3719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720  *) ac_try_echo=$ac_try;;
3721esac
3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723$as_echo "$ac_try_echo"; } >&5
3724  (eval "$ac_compile") 2>&5
3725  ac_status=$?
3726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727  test $ac_status = 0; }; then :
3728  for ac_file in conftest.o conftest.obj conftest.*; do
3729  test -f "$ac_file" || continue;
3730  case $ac_file in
3731    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3732    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3733       break;;
3734  esac
3735done
3736else
3737  $as_echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742as_fn_error $? "cannot compute suffix of object files: cannot compile
3743See \`config.log' for more details" "$LINENO" 5 ; }
3744fi
3745rm -f conftest.$ac_cv_objext conftest.$ac_ext
3746fi
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3748$as_echo "$ac_cv_objext" >&6; }
3749OBJEXT=$ac_cv_objext
3750ac_objext=$OBJEXT
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3752$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3753if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h.  */
3758
3759int
3760main ()
3761{
3762#ifndef __GNUC__
3763       choke me
3764#endif
3765
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770if ac_fn_cxx_try_compile "$LINENO"; then :
3771  ac_compiler_gnu=yes
3772else
3773  ac_compiler_gnu=no
3774fi
3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3777
3778fi
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3780$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3781if test $ac_compiler_gnu = yes; then
3782  GXX=yes
3783else
3784  GXX=
3785fi
3786ac_test_CXXFLAGS=${CXXFLAGS+set}
3787ac_save_CXXFLAGS=$CXXFLAGS
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3789$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3790if test "${ac_cv_prog_cxx_g+set}" = set; then :
3791  $as_echo_n "(cached) " >&6
3792else
3793  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3794   ac_cxx_werror_flag=yes
3795   ac_cv_prog_cxx_g=no
3796   CXXFLAGS="-g"
3797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h.  */
3799
3800int
3801main ()
3802{
3803
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808if ac_fn_cxx_try_compile "$LINENO"; then :
3809  ac_cv_prog_cxx_g=yes
3810else
3811  CXXFLAGS=""
3812      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h.  */
3814
3815int
3816main ()
3817{
3818
3819  ;
3820  return 0;
3821}
3822_ACEOF
3823if ac_fn_cxx_try_compile "$LINENO"; then :
3824
3825else
3826  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3827         CXXFLAGS="-g"
3828         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829/* end confdefs.h.  */
3830
3831int
3832main ()
3833{
3834
3835  ;
3836  return 0;
3837}
3838_ACEOF
3839if ac_fn_cxx_try_compile "$LINENO"; then :
3840  ac_cv_prog_cxx_g=yes
3841fi
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843fi
3844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845fi
3846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3850$as_echo "$ac_cv_prog_cxx_g" >&6; }
3851if test "$ac_test_CXXFLAGS" = set; then
3852  CXXFLAGS=$ac_save_CXXFLAGS
3853elif test $ac_cv_prog_cxx_g = yes; then
3854  if test "$GXX" = yes; then
3855    CXXFLAGS="-g -O2"
3856  else
3857    CXXFLAGS="-g"
3858  fi
3859else
3860  if test "$GXX" = yes; then
3861    CXXFLAGS="-O2"
3862  else
3863    CXXFLAGS=
3864  fi
3865fi
3866ac_ext=c
3867ac_cpp='$CPP $CPPFLAGS'
3868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871DEPDIR="${am__leading_dot}deps"
3872
3873ac_config_commands="$ac_config_commands depfiles"
3874
3875
3876am_make=${MAKE-make}
3877cat > confinc << 'END'
3878am__doit:
3879        @echo this is the am__doit target
3880.PHONY: am__doit
3881END
3882# If we don't find an include directive, just comment out the code.
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3884$as_echo_n "checking for style of include used by $am_make... " >&6; }
3885am__include="#"
3886am__quote=
3887_am_result=none
3888# First try GNU make style include.
3889echo "include confinc" > confmf
3890# Ignore all kinds of additional output from `make'.
3891case `$am_make -s -f confmf 2> /dev/null` in #(
3892*the\ am__doit\ target*)
3893  am__include=include
3894  am__quote=
3895  _am_result=GNU
3896  ;;
3897esac
3898# Now try BSD make style include.
3899if test "$am__include" = "#"; then
3900   echo '.include "confinc"' > confmf
3901   case `$am_make -s -f confmf 2> /dev/null` in #(
3902   *the\ am__doit\ target*)
3903     am__include=.include
3904     am__quote="\""
3905     _am_result=BSD
3906     ;;
3907   esac
3908fi
3909
3910
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3912$as_echo "$_am_result" >&6; }
3913rm -f confinc confmf
3914
3915# Check whether --enable-dependency-tracking was given.
3916if test "${enable_dependency_tracking+set}" = set; then :
3917  enableval=$enable_dependency_tracking;
3918fi
3919
3920if test "x$enable_dependency_tracking" != xno; then
3921  am_depcomp="$ac_aux_dir/depcomp"
3922  AMDEPBACKSLASH='\'
3923fi
3924 if test "x$enable_dependency_tracking" != xno; then
3925  AMDEP_TRUE=
3926  AMDEP_FALSE='#'
3927else
3928  AMDEP_TRUE='#'
3929  AMDEP_FALSE=
3930fi
3931
3932
3933
3934depcc="$CXX"  am_compiler_list=
3935
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3937$as_echo_n "checking dependency style of $depcc... " >&6; }
3938if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3939  $as_echo_n "(cached) " >&6
3940else
3941  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3942  # We make a subdir and do the tests there.  Otherwise we can end up
3943  # making bogus files that we don't know about and never remove.  For
3944  # instance it was reported that on HP-UX the gcc test will end up
3945  # making a dummy file named `D' -- because `-MD' means `put the output
3946  # in D'.
3947  mkdir conftest.dir
3948  # Copy depcomp to subdir because otherwise we won't find it if we're
3949  # using a relative directory.
3950  cp "$am_depcomp" conftest.dir
3951  cd conftest.dir
3952  # We will build objects and dependencies in a subdirectory because
3953  # it helps to detect inapplicable dependency modes.  For instance
3954  # both Tru64's cc and ICC support -MD to output dependencies as a
3955  # side effect of compilation, but ICC will put the dependencies in
3956  # the current directory while Tru64 will put them in the object
3957  # directory.
3958  mkdir sub
3959
3960  am_cv_CXX_dependencies_compiler_type=none
3961  if test "$am_compiler_list" = ""; then
3962     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3963  fi
3964  am__universal=false
3965  case " $depcc " in #(
3966     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3967     esac
3968
3969  for depmode in $am_compiler_list; do
3970    # Setup a source with many dependencies, because some compilers
3971    # like to wrap large dependency lists on column 80 (with \), and
3972    # we should not choose a depcomp mode which is confused by this.
3973    #
3974    # We need to recreate these files for each test, as the compiler may
3975    # overwrite some of them when testing with obscure command lines.
3976    # This happens at least with the AIX C compiler.
3977    : > sub/conftest.c
3978    for i in 1 2 3 4 5 6; do
3979      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3980      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3981      # Solaris 8's {/usr,}/bin/sh.
3982      touch sub/conftst$i.h
3983    done
3984    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3985
3986    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3987    # mode.  It turns out that the SunPro C++ compiler does not properly
3988    # handle `-M -o', and we need to detect this.  Also, some Intel
3989    # versions had trouble with output in subdirs
3990    am__obj=sub/conftest.${OBJEXT-o}
3991    am__minus_obj="-o $am__obj"
3992    case $depmode in
3993    gcc)
3994      # This depmode causes a compiler race in universal mode.
3995      test "$am__universal" = false || continue
3996      ;;
3997    nosideeffect)
3998      # after this tag, mechanisms are not by side-effect, so they'll
3999      # only be used when explicitly requested
4000      if test "x$enable_dependency_tracking" = xyes; then
4001        continue
4002      else
4003        break
4004      fi
4005      ;;
4006    msvisualcpp | msvcmsys)
4007      # This compiler won't grok `-c -o', but also, the minuso test has
4008      # not run yet.  These depmodes are late enough in the game, and
4009      # so weak that their functioning should not be impacted.
4010      am__obj=conftest.${OBJEXT-o}
4011      am__minus_obj=
4012      ;;
4013    none) break ;;
4014    esac
4015    if depmode=$depmode \
4016       source=sub/conftest.c object=$am__obj \
4017       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4018       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4019         >/dev/null 2>conftest.err &&
4020       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4021       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4022       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4023       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4024      # icc doesn't choke on unknown options, it will just issue warnings
4025      # or remarks (even with -Werror).  So we grep stderr for any message
4026      # that says an option was ignored or not supported.
4027      # When given -MP, icc 7.0 and 7.1 complain thusly:
4028      #   icc: Command line warning: ignoring option '-M'; no argument required
4029      # The diagnosis changed in icc 8.0:
4030      #   icc: Command line remark: option '-MP' not supported
4031      if (grep 'ignoring option' conftest.err ||
4032          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4033        am_cv_CXX_dependencies_compiler_type=$depmode
4034        break
4035      fi
4036    fi
4037  done
4038
4039  cd ..
4040  rm -rf conftest.dir
4041else
4042  am_cv_CXX_dependencies_compiler_type=none
4043fi
4044
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4047$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4048CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4049
4050 if
4051  test "x$enable_dependency_tracking" != xno \
4052  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4053  am__fastdepCXX_TRUE=
4054  am__fastdepCXX_FALSE='#'
4055else
4056  am__fastdepCXX_TRUE='#'
4057  am__fastdepCXX_FALSE=
4058fi
4059
4060
4061ac_ext=c
4062ac_cpp='$CPP $CPPFLAGS'
4063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066if test -n "$ac_tool_prefix"; then
4067  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4068set dummy ${ac_tool_prefix}gcc; ac_word=$2
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070$as_echo_n "checking for $ac_word... " >&6; }
4071if test "${ac_cv_prog_CC+set}" = set; then :
4072  $as_echo_n "(cached) " >&6
4073else
4074  if test -n "$CC"; then
4075  ac_cv_prog_CC="$CC" # Let the user override the test.
4076else
4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080  IFS=$as_save_IFS
4081  test -z "$as_dir" && as_dir=.
4082    for ac_exec_ext in '' $ac_executable_extensions; do
4083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4084    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086    break 2
4087  fi
4088done
4089  done
4090IFS=$as_save_IFS
4091
4092fi
4093fi
4094CC=$ac_cv_prog_CC
4095if test -n "$CC"; then
4096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4097$as_echo "$CC" >&6; }
4098else
4099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100$as_echo "no" >&6; }
4101fi
4102
4103
4104fi
4105if test -z "$ac_cv_prog_CC"; then
4106  ac_ct_CC=$CC
4107  # Extract the first word of "gcc", so it can be a program name with args.
4108set dummy gcc; ac_word=$2
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110$as_echo_n "checking for $ac_word... " >&6; }
4111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4112  $as_echo_n "(cached) " >&6
4113else
4114  if test -n "$ac_ct_CC"; then
4115  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4116else
4117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH
4119do
4120  IFS=$as_save_IFS
4121  test -z "$as_dir" && as_dir=.
4122    for ac_exec_ext in '' $ac_executable_extensions; do
4123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124    ac_cv_prog_ac_ct_CC="gcc"
4125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126    break 2
4127  fi
4128done
4129  done
4130IFS=$as_save_IFS
4131
4132fi
4133fi
4134ac_ct_CC=$ac_cv_prog_ac_ct_CC
4135if test -n "$ac_ct_CC"; then
4136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4137$as_echo "$ac_ct_CC" >&6; }
4138else
4139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140$as_echo "no" >&6; }
4141fi
4142
4143  if test "x$ac_ct_CC" = x; then
4144    CC=""
4145  else
4146    case $cross_compiling:$ac_tool_warned in
4147yes:)
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4150ac_tool_warned=yes ;;
4151esac
4152    CC=$ac_ct_CC
4153  fi
4154else
4155  CC="$ac_cv_prog_CC"
4156fi
4157
4158if test -z "$CC"; then
4159          if test -n "$ac_tool_prefix"; then
4160    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4161set dummy ${ac_tool_prefix}cc; ac_word=$2
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163$as_echo_n "checking for $ac_word... " >&6; }
4164if test "${ac_cv_prog_CC+set}" = set; then :
4165  $as_echo_n "(cached) " >&6
4166else
4167  if test -n "$CC"; then
4168  ac_cv_prog_CC="$CC" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175    for ac_exec_ext in '' $ac_executable_extensions; do
4176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177    ac_cv_prog_CC="${ac_tool_prefix}cc"
4178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179    break 2
4180  fi
4181done
4182  done
4183IFS=$as_save_IFS
4184
4185fi
4186fi
4187CC=$ac_cv_prog_CC
4188if test -n "$CC"; then
4189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4190$as_echo "$CC" >&6; }
4191else
4192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193$as_echo "no" >&6; }
4194fi
4195
4196
4197  fi
4198fi
4199if test -z "$CC"; then
4200  # Extract the first word of "cc", so it can be a program name with args.
4201set dummy cc; ac_word=$2
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203$as_echo_n "checking for $ac_word... " >&6; }
4204if test "${ac_cv_prog_CC+set}" = set; then :
4205  $as_echo_n "(cached) " >&6
4206else
4207  if test -n "$CC"; then
4208  ac_cv_prog_CC="$CC" # Let the user override the test.
4209else
4210  ac_prog_rejected=no
4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214  IFS=$as_save_IFS
4215  test -z "$as_dir" && as_dir=.
4216    for ac_exec_ext in '' $ac_executable_extensions; do
4217  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4219       ac_prog_rejected=yes
4220       continue
4221     fi
4222    ac_cv_prog_CC="cc"
4223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224    break 2
4225  fi
4226done
4227  done
4228IFS=$as_save_IFS
4229
4230if test $ac_prog_rejected = yes; then
4231  # We found a bogon in the path, so make sure we never use it.
4232  set dummy $ac_cv_prog_CC
4233  shift
4234  if test $# != 0; then
4235    # We chose a different compiler from the bogus one.
4236    # However, it has the same basename, so the bogon will be chosen
4237    # first if we set CC to just the basename; use the full file name.
4238    shift
4239    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4240  fi
4241fi
4242fi
4243fi
4244CC=$ac_cv_prog_CC
4245if test -n "$CC"; then
4246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4247$as_echo "$CC" >&6; }
4248else
4249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250$as_echo "no" >&6; }
4251fi
4252
4253
4254fi
4255if test -z "$CC"; then
4256  if test -n "$ac_tool_prefix"; then
4257  for ac_prog in cl.exe
4258  do
4259    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4260set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262$as_echo_n "checking for $ac_word... " >&6; }
4263if test "${ac_cv_prog_CC+set}" = set; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  if test -n "$CC"; then
4267  ac_cv_prog_CC="$CC" # Let the user override the test.
4268else
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272  IFS=$as_save_IFS
4273  test -z "$as_dir" && as_dir=.
4274    for ac_exec_ext in '' $ac_executable_extensions; do
4275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278    break 2
4279  fi
4280done
4281  done
4282IFS=$as_save_IFS
4283
4284fi
4285fi
4286CC=$ac_cv_prog_CC
4287if test -n "$CC"; then
4288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4289$as_echo "$CC" >&6; }
4290else
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
4293fi
4294
4295
4296    test -n "$CC" && break
4297  done
4298fi
4299if test -z "$CC"; then
4300  ac_ct_CC=$CC
4301  for ac_prog in cl.exe
4302do
4303  # Extract the first word of "$ac_prog", so it can be a program name with args.
4304set dummy $ac_prog; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4308  $as_echo_n "(cached) " >&6
4309else
4310  if test -n "$ac_ct_CC"; then
4311  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316  IFS=$as_save_IFS
4317  test -z "$as_dir" && as_dir=.
4318    for ac_exec_ext in '' $ac_executable_extensions; do
4319  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320    ac_cv_prog_ac_ct_CC="$ac_prog"
4321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322    break 2
4323  fi
4324done
4325  done
4326IFS=$as_save_IFS
4327
4328fi
4329fi
4330ac_ct_CC=$ac_cv_prog_ac_ct_CC
4331if test -n "$ac_ct_CC"; then
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4333$as_echo "$ac_ct_CC" >&6; }
4334else
4335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
4339
4340  test -n "$ac_ct_CC" && break
4341done
4342
4343  if test "x$ac_ct_CC" = x; then
4344    CC=""
4345  else
4346    case $cross_compiling:$ac_tool_warned in
4347yes:)
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4350ac_tool_warned=yes ;;
4351esac
4352    CC=$ac_ct_CC
4353  fi
4354fi
4355
4356fi
4357
4358
4359test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361as_fn_error $? "no acceptable C compiler found in \$PATH
4362See \`config.log' for more details" "$LINENO" 5 ; }
4363
4364# Provide some information about the compiler.
4365$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4366set X $ac_compile
4367ac_compiler=$2
4368for ac_option in --version -v -V -qversion; do
4369  { { ac_try="$ac_compiler $ac_option >&5"
4370case "(($ac_try" in
4371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372  *) ac_try_echo=$ac_try;;
4373esac
4374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375$as_echo "$ac_try_echo"; } >&5
4376  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4377  ac_status=$?
4378  if test -s conftest.err; then
4379    sed '10a\
4380... rest of stderr output deleted ...
4381         10q' conftest.err >conftest.er1
4382    cat conftest.er1 >&5
4383  fi
4384  rm -f conftest.er1 conftest.err
4385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386  test $ac_status = 0; }
4387done
4388
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4390$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4391if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4392  $as_echo_n "(cached) " >&6
4393else
4394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395/* end confdefs.h.  */
4396
4397int
4398main ()
4399{
4400#ifndef __GNUC__
4401       choke me
4402#endif
4403
4404  ;
4405  return 0;
4406}
4407_ACEOF
4408if ac_fn_c_try_compile "$LINENO"; then :
4409  ac_compiler_gnu=yes
4410else
4411  ac_compiler_gnu=no
4412fi
4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414ac_cv_c_compiler_gnu=$ac_compiler_gnu
4415
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4418$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4419if test $ac_compiler_gnu = yes; then
4420  GCC=yes
4421else
4422  GCC=
4423fi
4424ac_test_CFLAGS=${CFLAGS+set}
4425ac_save_CFLAGS=$CFLAGS
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4427$as_echo_n "checking whether $CC accepts -g... " >&6; }
4428if test "${ac_cv_prog_cc_g+set}" = set; then :
4429  $as_echo_n "(cached) " >&6
4430else
4431  ac_save_c_werror_flag=$ac_c_werror_flag
4432   ac_c_werror_flag=yes
4433   ac_cv_prog_cc_g=no
4434   CFLAGS="-g"
4435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436/* end confdefs.h.  */
4437
4438int
4439main ()
4440{
4441
4442  ;
4443  return 0;
4444}
4445_ACEOF
4446if ac_fn_c_try_compile "$LINENO"; then :
4447  ac_cv_prog_cc_g=yes
4448else
4449  CFLAGS=""
4450      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h.  */
4452
4453int
4454main ()
4455{
4456
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461if ac_fn_c_try_compile "$LINENO"; then :
4462
4463else
4464  ac_c_werror_flag=$ac_save_c_werror_flag
4465         CFLAGS="-g"
4466         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h.  */
4468
4469int
4470main ()
4471{
4472
4473  ;
4474  return 0;
4475}
4476_ACEOF
4477if ac_fn_c_try_compile "$LINENO"; then :
4478  ac_cv_prog_cc_g=yes
4479fi
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481fi
4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483fi
4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485   ac_c_werror_flag=$ac_save_c_werror_flag
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4488$as_echo "$ac_cv_prog_cc_g" >&6; }
4489if test "$ac_test_CFLAGS" = set; then
4490  CFLAGS=$ac_save_CFLAGS
4491elif test $ac_cv_prog_cc_g = yes; then
4492  if test "$GCC" = yes; then
4493    CFLAGS="-g -O2"
4494  else
4495    CFLAGS="-g"
4496  fi
4497else
4498  if test "$GCC" = yes; then
4499    CFLAGS="-O2"
4500  else
4501    CFLAGS=
4502  fi
4503fi
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4505$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4506if test "${ac_cv_prog_cc_c89+set}" = set; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  ac_cv_prog_cc_c89=no
4510ac_save_CC=$CC
4511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512/* end confdefs.h.  */
4513#include <stdarg.h>
4514#include <stdio.h>
4515#include <sys/types.h>
4516#include <sys/stat.h>
4517/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4518struct buf { int x; };
4519FILE * (*rcsopen) (struct buf *, struct stat *, int);
4520static char *e (p, i)
4521     char **p;
4522     int i;
4523{
4524  return p[i];
4525}
4526static char *f (char * (*g) (char **, int), char **p, ...)
4527{
4528  char *s;
4529  va_list v;
4530  va_start (v,p);
4531  s = g (p, va_arg (v,int));
4532  va_end (v);
4533  return s;
4534}
4535
4536/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4537   function prototypes and stuff, but not '\xHH' hex character constants.
4538   These don't provoke an error unfortunately, instead are silently treated
4539   as 'x'.  The following induces an error, until -std is added to get
4540   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4541   array size at least.  It's necessary to write '\x00'==0 to get something
4542   that's true only with -std.  */
4543int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4544
4545/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4546   inside strings and character constants.  */
4547#define FOO(x) 'x'
4548int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4549
4550int test (int i, double x);
4551struct s1 {int (*f) (int a);};
4552struct s2 {int (*f) (double a);};
4553int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4554int argc;
4555char **argv;
4556int
4557main ()
4558{
4559return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4560  ;
4561  return 0;
4562}
4563_ACEOF
4564for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4565        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4566do
4567  CC="$ac_save_CC $ac_arg"
4568  if ac_fn_c_try_compile "$LINENO"; then :
4569  ac_cv_prog_cc_c89=$ac_arg
4570fi
4571rm -f core conftest.err conftest.$ac_objext
4572  test "x$ac_cv_prog_cc_c89" != "xno" && break
4573done
4574rm -f conftest.$ac_ext
4575CC=$ac_save_CC
4576
4577fi
4578# AC_CACHE_VAL
4579case "x$ac_cv_prog_cc_c89" in
4580  x)
4581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4582$as_echo "none needed" >&6; } ;;
4583  xno)
4584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4585$as_echo "unsupported" >&6; } ;;
4586  *)
4587    CC="$CC $ac_cv_prog_cc_c89"
4588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4589$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4590esac
4591if test "x$ac_cv_prog_cc_c89" != xno; then :
4592
4593fi
4594
4595ac_ext=c
4596ac_cpp='$CPP $CPPFLAGS'
4597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600
4601depcc="$CC"   am_compiler_list=
4602
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4604$as_echo_n "checking dependency style of $depcc... " >&6; }
4605if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4609  # We make a subdir and do the tests there.  Otherwise we can end up
4610  # making bogus files that we don't know about and never remove.  For
4611  # instance it was reported that on HP-UX the gcc test will end up
4612  # making a dummy file named `D' -- because `-MD' means `put the output
4613  # in D'.
4614  mkdir conftest.dir
4615  # Copy depcomp to subdir because otherwise we won't find it if we're
4616  # using a relative directory.
4617  cp "$am_depcomp" conftest.dir
4618  cd conftest.dir
4619  # We will build objects and dependencies in a subdirectory because
4620  # it helps to detect inapplicable dependency modes.  For instance
4621  # both Tru64's cc and ICC support -MD to output dependencies as a
4622  # side effect of compilation, but ICC will put the dependencies in
4623  # the current directory while Tru64 will put them in the object
4624  # directory.
4625  mkdir sub
4626
4627  am_cv_CC_dependencies_compiler_type=none
4628  if test "$am_compiler_list" = ""; then
4629     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4630  fi
4631  am__universal=false
4632  case " $depcc " in #(
4633     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4634     esac
4635
4636  for depmode in $am_compiler_list; do
4637    # Setup a source with many dependencies, because some compilers
4638    # like to wrap large dependency lists on column 80 (with \), and
4639    # we should not choose a depcomp mode which is confused by this.
4640    #
4641    # We need to recreate these files for each test, as the compiler may
4642    # overwrite some of them when testing with obscure command lines.
4643    # This happens at least with the AIX C compiler.
4644    : > sub/conftest.c
4645    for i in 1 2 3 4 5 6; do
4646      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4647      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4648      # Solaris 8's {/usr,}/bin/sh.
4649      touch sub/conftst$i.h
4650    done
4651    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4652
4653    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4654    # mode.  It turns out that the SunPro C++ compiler does not properly
4655    # handle `-M -o', and we need to detect this.  Also, some Intel
4656    # versions had trouble with output in subdirs
4657    am__obj=sub/conftest.${OBJEXT-o}
4658    am__minus_obj="-o $am__obj"
4659    case $depmode in
4660    gcc)
4661      # This depmode causes a compiler race in universal mode.
4662      test "$am__universal" = false || continue
4663      ;;
4664    nosideeffect)
4665      # after this tag, mechanisms are not by side-effect, so they'll
4666      # only be used when explicitly requested
4667      if test "x$enable_dependency_tracking" = xyes; then
4668        continue
4669      else
4670        break
4671      fi
4672      ;;
4673    msvisualcpp | msvcmsys)
4674      # This compiler won't grok `-c -o', but also, the minuso test has
4675      # not run yet.  These depmodes are late enough in the game, and
4676      # so weak that their functioning should not be impacted.
4677      am__obj=conftest.${OBJEXT-o}
4678      am__minus_obj=
4679      ;;
4680    none) break ;;
4681    esac
4682    if depmode=$depmode \
4683       source=sub/conftest.c object=$am__obj \
4684       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4685       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4686         >/dev/null 2>conftest.err &&
4687       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4688       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4689       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4690       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4691      # icc doesn't choke on unknown options, it will just issue warnings
4692      # or remarks (even with -Werror).  So we grep stderr for any message
4693      # that says an option was ignored or not supported.
4694      # When given -MP, icc 7.0 and 7.1 complain thusly:
4695      #   icc: Command line warning: ignoring option '-M'; no argument required
4696      # The diagnosis changed in icc 8.0:
4697      #   icc: Command line remark: option '-MP' not supported
4698      if (grep 'ignoring option' conftest.err ||
4699          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4700        am_cv_CC_dependencies_compiler_type=$depmode
4701        break
4702      fi
4703    fi
4704  done
4705
4706  cd ..
4707  rm -rf conftest.dir
4708else
4709  am_cv_CC_dependencies_compiler_type=none
4710fi
4711
4712fi
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4714$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4715CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4716
4717 if
4718  test "x$enable_dependency_tracking" != xno \
4719  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4720  am__fastdepCC_TRUE=
4721  am__fastdepCC_FALSE='#'
4722else
4723  am__fastdepCC_TRUE='#'
4724  am__fastdepCC_FALSE=
4725fi
4726
4727
4728ac_ext=c
4729ac_cpp='$CPP $CPPFLAGS'
4730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4734$as_echo_n "checking how to run the C preprocessor... " >&6; }
4735# On Suns, sometimes $CPP names a directory.
4736if test -n "$CPP" && test -d "$CPP"; then
4737  CPP=
4738fi
4739if test -z "$CPP"; then
4740  if test "${ac_cv_prog_CPP+set}" = set; then :
4741  $as_echo_n "(cached) " >&6
4742else
4743      # Double quotes because CPP needs to be expanded
4744    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4745    do
4746      ac_preproc_ok=false
4747for ac_c_preproc_warn_flag in '' yes
4748do
4749  # Use a header file that comes with gcc, so configuring glibc
4750  # with a fresh cross-compiler works.
4751  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752  # <limits.h> exists even on freestanding compilers.
4753  # On the NeXT, cc -E runs the code through the compiler's parser,
4754  # not just through cpp. "Syntax error" is here to catch this case.
4755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h.  */
4757#ifdef __STDC__
4758# include <limits.h>
4759#else
4760# include <assert.h>
4761#endif
4762                     Syntax error
4763_ACEOF
4764if ac_fn_c_try_cpp "$LINENO"; then :
4765
4766else
4767  # Broken: fails on valid input.
4768continue
4769fi
4770rm -f conftest.err conftest.i conftest.$ac_ext
4771
4772  # OK, works on sane cases.  Now check whether nonexistent headers
4773  # can be detected and how.
4774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h.  */
4776#include <ac_nonexistent.h>
4777_ACEOF
4778if ac_fn_c_try_cpp "$LINENO"; then :
4779  # Broken: success on invalid input.
4780continue
4781else
4782  # Passes both tests.
4783ac_preproc_ok=:
4784break
4785fi
4786rm -f conftest.err conftest.i conftest.$ac_ext
4787
4788done
4789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790rm -f conftest.i conftest.err conftest.$ac_ext
4791if $ac_preproc_ok; then :
4792  break
4793fi
4794
4795    done
4796    ac_cv_prog_CPP=$CPP
4797
4798fi
4799  CPP=$ac_cv_prog_CPP
4800else
4801  ac_cv_prog_CPP=$CPP
4802fi
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4804$as_echo "$CPP" >&6; }
4805ac_preproc_ok=false
4806for ac_c_preproc_warn_flag in '' yes
4807do
4808  # Use a header file that comes with gcc, so configuring glibc
4809  # with a fresh cross-compiler works.
4810  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811  # <limits.h> exists even on freestanding compilers.
4812  # On the NeXT, cc -E runs the code through the compiler's parser,
4813  # not just through cpp. "Syntax error" is here to catch this case.
4814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815/* end confdefs.h.  */
4816#ifdef __STDC__
4817# include <limits.h>
4818#else
4819# include <assert.h>
4820#endif
4821                     Syntax error
4822_ACEOF
4823if ac_fn_c_try_cpp "$LINENO"; then :
4824
4825else
4826  # Broken: fails on valid input.
4827continue
4828fi
4829rm -f conftest.err conftest.i conftest.$ac_ext
4830
4831  # OK, works on sane cases.  Now check whether nonexistent headers
4832  # can be detected and how.
4833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834/* end confdefs.h.  */
4835#include <ac_nonexistent.h>
4836_ACEOF
4837if ac_fn_c_try_cpp "$LINENO"; then :
4838  # Broken: success on invalid input.
4839continue
4840else
4841  # Passes both tests.
4842ac_preproc_ok=:
4843break
4844fi
4845rm -f conftest.err conftest.i conftest.$ac_ext
4846
4847done
4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849rm -f conftest.i conftest.err conftest.$ac_ext
4850if $ac_preproc_ok; then :
4851
4852else
4853  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4856See \`config.log' for more details" "$LINENO" 5 ; }
4857fi
4858
4859ac_ext=c
4860ac_cpp='$CPP $CPPFLAGS'
4861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864
4865
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4867$as_echo_n "checking whether ln -s works... " >&6; }
4868LN_S=$as_ln_s
4869if test "$LN_S" = "ln -s"; then
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871$as_echo "yes" >&6; }
4872else
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4874$as_echo "no, using $LN_S" >&6; }
4875fi
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4878$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4879set x ${MAKE-make}
4880ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4881if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884  cat >conftest.make <<\_ACEOF
4885SHELL = /bin/sh
4886all:
4887        @echo '@@@%%%=$(MAKE)=@@@%%%'
4888_ACEOF
4889# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4890case `${MAKE-make} -f conftest.make 2>/dev/null` in
4891  *@@@%%%=?*=@@@%%%*)
4892    eval ac_cv_prog_make_${ac_make}_set=yes;;
4893  *)
4894    eval ac_cv_prog_make_${ac_make}_set=no;;
4895esac
4896rm -f conftest.make
4897fi
4898if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900$as_echo "yes" >&6; }
4901  SET_MAKE=
4902else
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904$as_echo "no" >&6; }
4905  SET_MAKE="MAKE=${MAKE-make}"
4906fi
4907
4908# Make sure we can run config.sub.
4909$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4910  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4913$as_echo_n "checking build system type... " >&6; }
4914if test "${ac_cv_build+set}" = set; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  ac_build_alias=$build_alias
4918test "x$ac_build_alias" = x &&
4919  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4920test "x$ac_build_alias" = x &&
4921  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4922ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4923  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4924
4925fi
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4927$as_echo "$ac_cv_build" >&6; }
4928case $ac_cv_build in
4929*-*-*) ;;
4930*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4931esac
4932build=$ac_cv_build
4933ac_save_IFS=$IFS; IFS='-'
4934set x $ac_cv_build
4935shift
4936build_cpu=$1
4937build_vendor=$2
4938shift; shift
4939# Remember, the first character of IFS is used to create $*,
4940# except with old shells:
4941build_os=$*
4942IFS=$ac_save_IFS
4943case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4944
4945
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4947$as_echo_n "checking host system type... " >&6; }
4948if test "${ac_cv_host+set}" = set; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  if test "x$host_alias" = x; then
4952  ac_cv_host=$ac_cv_build
4953else
4954  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4955    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4956fi
4957
4958fi
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4960$as_echo "$ac_cv_host" >&6; }
4961case $ac_cv_host in
4962*-*-*) ;;
4963*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4964esac
4965host=$ac_cv_host
4966ac_save_IFS=$IFS; IFS='-'
4967set x $ac_cv_host
4968shift
4969host_cpu=$1
4970host_vendor=$2
4971shift; shift
4972# Remember, the first character of IFS is used to create $*,
4973# except with old shells:
4974host_os=$*
4975IFS=$ac_save_IFS
4976case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4977
4978
4979enable_win32_dll=yes
4980
4981case $host in
4982*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4983  if test -n "$ac_tool_prefix"; then
4984  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4985set dummy ${ac_tool_prefix}as; ac_word=$2
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987$as_echo_n "checking for $ac_word... " >&6; }
4988if test "${ac_cv_prog_AS+set}" = set; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  if test -n "$AS"; then
4992  ac_cv_prog_AS="$AS" # Let the user override the test.
4993else
4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997  IFS=$as_save_IFS
4998  test -z "$as_dir" && as_dir=.
4999    for ac_exec_ext in '' $ac_executable_extensions; do
5000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001    ac_cv_prog_AS="${ac_tool_prefix}as"
5002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003    break 2
5004  fi
5005done
5006  done
5007IFS=$as_save_IFS
5008
5009fi
5010fi
5011AS=$ac_cv_prog_AS
5012if test -n "$AS"; then
5013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5014$as_echo "$AS" >&6; }
5015else
5016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017$as_echo "no" >&6; }
5018fi
5019
5020
5021fi
5022if test -z "$ac_cv_prog_AS"; then
5023  ac_ct_AS=$AS
5024  # Extract the first word of "as", so it can be a program name with args.
5025set dummy as; ac_word=$2
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027$as_echo_n "checking for $ac_word... " >&6; }
5028if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5029  $as_echo_n "(cached) " >&6
5030else
5031  if test -n "$ac_ct_AS"; then
5032  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5033else
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037  IFS=$as_save_IFS
5038  test -z "$as_dir" && as_dir=.
5039    for ac_exec_ext in '' $ac_executable_extensions; do
5040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041    ac_cv_prog_ac_ct_AS="as"
5042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043    break 2
5044  fi
5045done
5046  done
5047IFS=$as_save_IFS
5048
5049fi
5050fi
5051ac_ct_AS=$ac_cv_prog_ac_ct_AS
5052if test -n "$ac_ct_AS"; then
5053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5054$as_echo "$ac_ct_AS" >&6; }
5055else
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057$as_echo "no" >&6; }
5058fi
5059
5060  if test "x$ac_ct_AS" = x; then
5061    AS="false"
5062  else
5063    case $cross_compiling:$ac_tool_warned in
5064yes:)
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5067ac_tool_warned=yes ;;
5068esac
5069    AS=$ac_ct_AS
5070  fi
5071else
5072  AS="$ac_cv_prog_AS"
5073fi
5074
5075  if test -n "$ac_tool_prefix"; then
5076  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5077set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
5080if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  if test -n "$DLLTOOL"; then
5084  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5085else
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089  IFS=$as_save_IFS
5090  test -z "$as_dir" && as_dir=.
5091    for ac_exec_ext in '' $ac_executable_extensions; do
5092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095    break 2
5096  fi
5097done
5098  done
5099IFS=$as_save_IFS
5100
5101fi
5102fi
5103DLLTOOL=$ac_cv_prog_DLLTOOL
5104if test -n "$DLLTOOL"; then
5105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5106$as_echo "$DLLTOOL" >&6; }
5107else
5108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109$as_echo "no" >&6; }
5110fi
5111
5112
5113fi
5114if test -z "$ac_cv_prog_DLLTOOL"; then
5115  ac_ct_DLLTOOL=$DLLTOOL
5116  # Extract the first word of "dlltool", so it can be a program name with args.
5117set dummy dlltool; ac_word=$2
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119$as_echo_n "checking for $ac_word... " >&6; }
5120if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5121  $as_echo_n "(cached) " >&6
5122else
5123  if test -n "$ac_ct_DLLTOOL"; then
5124  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5125else
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129  IFS=$as_save_IFS
5130  test -z "$as_dir" && as_dir=.
5131    for ac_exec_ext in '' $ac_executable_extensions; do
5132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135    break 2
5136  fi
5137done
5138  done
5139IFS=$as_save_IFS
5140
5141fi
5142fi
5143ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5144if test -n "$ac_ct_DLLTOOL"; then
5145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5146$as_echo "$ac_ct_DLLTOOL" >&6; }
5147else
5148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149$as_echo "no" >&6; }
5150fi
5151
5152  if test "x$ac_ct_DLLTOOL" = x; then
5153    DLLTOOL="false"
5154  else
5155    case $cross_compiling:$ac_tool_warned in
5156yes:)
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5159ac_tool_warned=yes ;;
5160esac
5161    DLLTOOL=$ac_ct_DLLTOOL
5162  fi
5163else
5164  DLLTOOL="$ac_cv_prog_DLLTOOL"
5165fi
5166
5167  if test -n "$ac_tool_prefix"; then
5168  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5169set dummy ${ac_tool_prefix}objdump; ac_word=$2
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171$as_echo_n "checking for $ac_word... " >&6; }
5172if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  if test -n "$OBJDUMP"; then
5176  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181  IFS=$as_save_IFS
5182  test -z "$as_dir" && as_dir=.
5183    for ac_exec_ext in '' $ac_executable_extensions; do
5184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187    break 2
5188  fi
5189done
5190  done
5191IFS=$as_save_IFS
5192
5193fi
5194fi
5195OBJDUMP=$ac_cv_prog_OBJDUMP
5196if test -n "$OBJDUMP"; then
5197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5198$as_echo "$OBJDUMP" >&6; }
5199else
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201$as_echo "no" >&6; }
5202fi
5203
5204
5205fi
5206if test -z "$ac_cv_prog_OBJDUMP"; then
5207  ac_ct_OBJDUMP=$OBJDUMP
5208  # Extract the first word of "objdump", so it can be a program name with args.
5209set dummy objdump; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
5212if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5213  $as_echo_n "(cached) " >&6
5214else
5215  if test -n "$ac_ct_OBJDUMP"; then
5216  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  test -z "$as_dir" && as_dir=.
5223    for ac_exec_ext in '' $ac_executable_extensions; do
5224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227    break 2
5228  fi
5229done
5230  done
5231IFS=$as_save_IFS
5232
5233fi
5234fi
5235ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5236if test -n "$ac_ct_OBJDUMP"; then
5237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5238$as_echo "$ac_ct_OBJDUMP" >&6; }
5239else
5240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241$as_echo "no" >&6; }
5242fi
5243
5244  if test "x$ac_ct_OBJDUMP" = x; then
5245    OBJDUMP="false"
5246  else
5247    case $cross_compiling:$ac_tool_warned in
5248yes:)
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251ac_tool_warned=yes ;;
5252esac
5253    OBJDUMP=$ac_ct_OBJDUMP
5254  fi
5255else
5256  OBJDUMP="$ac_cv_prog_OBJDUMP"
5257fi
5258
5259  ;;
5260esac
5261
5262test -z "$AS" && AS=as
5263
5264
5265
5266
5267
5268test -z "$DLLTOOL" && DLLTOOL=dlltool
5269
5270
5271
5272
5273
5274test -z "$OBJDUMP" && OBJDUMP=objdump
5275
5276
5277
5278
5279
5280
5281
5282case `pwd` in
5283  *\ * | *\     *)
5284    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5285$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5286esac
5287
5288
5289
5290macro_version='2.2.6b'
5291macro_revision='1.3017'
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305ltmain="$ac_aux_dir/ltmain.sh"
5306
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5308$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5309if test "${ac_cv_path_SED+set}" = set; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5313     for ac_i in 1 2 3 4 5 6 7; do
5314       ac_script="$ac_script$as_nl$ac_script"
5315     done
5316     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5317     { ac_script=; unset ac_script;}
5318     if test -z "$SED"; then
5319  ac_path_SED_found=false
5320  # Loop through the user's path and test for each of PROGNAME-LIST
5321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH
5323do
5324  IFS=$as_save_IFS
5325  test -z "$as_dir" && as_dir=.
5326    for ac_prog in sed gsed; do
5327    for ac_exec_ext in '' $ac_executable_extensions; do
5328      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5329      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5330# Check for GNU ac_path_SED and select it if it is found.
5331  # Check for GNU $ac_path_SED
5332case `"$ac_path_SED" --version 2>&1` in
5333*GNU*)
5334  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5335*)
5336  ac_count=0
5337  $as_echo_n 0123456789 >"conftest.in"
5338  while :
5339  do
5340    cat "conftest.in" "conftest.in" >"conftest.tmp"
5341    mv "conftest.tmp" "conftest.in"
5342    cp "conftest.in" "conftest.nl"
5343    $as_echo '' >> "conftest.nl"
5344    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5345    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5346    as_fn_arith $ac_count + 1 && ac_count=$as_val
5347    if test $ac_count -gt ${ac_path_SED_max-0}; then
5348      # Best one so far, save it but keep looking for a better one
5349      ac_cv_path_SED="$ac_path_SED"
5350      ac_path_SED_max=$ac_count
5351    fi
5352    # 10*(2^10) chars as input seems more than enough
5353    test $ac_count -gt 10 && break
5354  done
5355  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356esac
5357
5358      $ac_path_SED_found && break 3
5359    done
5360  done
5361  done
5362IFS=$as_save_IFS
5363  if test -z "$ac_cv_path_SED"; then
5364    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5365  fi
5366else
5367  ac_cv_path_SED=$SED
5368fi
5369
5370fi
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5372$as_echo "$ac_cv_path_SED" >&6; }
5373 SED="$ac_cv_path_SED"
5374  rm -f conftest.sed
5375
5376test -z "$SED" && SED=sed
5377Xsed="$SED -e 1s/^X//"
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5390$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5391if test "${ac_cv_path_GREP+set}" = set; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  if test -z "$GREP"; then
5395  ac_path_GREP_found=false
5396  # Loop through the user's path and test for each of PROGNAME-LIST
5397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5399do
5400  IFS=$as_save_IFS
5401  test -z "$as_dir" && as_dir=.
5402    for ac_prog in grep ggrep; do
5403    for ac_exec_ext in '' $ac_executable_extensions; do
5404      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5405      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5406# Check for GNU ac_path_GREP and select it if it is found.
5407  # Check for GNU $ac_path_GREP
5408case `"$ac_path_GREP" --version 2>&1` in
5409*GNU*)
5410  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5411*)
5412  ac_count=0
5413  $as_echo_n 0123456789 >"conftest.in"
5414  while :
5415  do
5416    cat "conftest.in" "conftest.in" >"conftest.tmp"
5417    mv "conftest.tmp" "conftest.in"
5418    cp "conftest.in" "conftest.nl"
5419    $as_echo 'GREP' >> "conftest.nl"
5420    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5421    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5422    as_fn_arith $ac_count + 1 && ac_count=$as_val
5423    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5424      # Best one so far, save it but keep looking for a better one
5425      ac_cv_path_GREP="$ac_path_GREP"
5426      ac_path_GREP_max=$ac_count
5427    fi
5428    # 10*(2^10) chars as input seems more than enough
5429    test $ac_count -gt 10 && break
5430  done
5431  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5432esac
5433
5434      $ac_path_GREP_found && break 3
5435    done
5436  done
5437  done
5438IFS=$as_save_IFS
5439  if test -z "$ac_cv_path_GREP"; then
5440    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5441  fi
5442else
5443  ac_cv_path_GREP=$GREP
5444fi
5445
5446fi
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5448$as_echo "$ac_cv_path_GREP" >&6; }
5449 GREP="$ac_cv_path_GREP"
5450
5451
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5453$as_echo_n "checking for egrep... " >&6; }
5454if test "${ac_cv_path_EGREP+set}" = set; then :
5455  $as_echo_n "(cached) " >&6
5456else
5457  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5458   then ac_cv_path_EGREP="$GREP -E"
5459   else
5460     if test -z "$EGREP"; then
5461  ac_path_EGREP_found=false
5462  # Loop through the user's path and test for each of PROGNAME-LIST
5463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5465do
5466  IFS=$as_save_IFS
5467  test -z "$as_dir" && as_dir=.
5468    for ac_prog in egrep; do
5469    for ac_exec_ext in '' $ac_executable_extensions; do
5470      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5471      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5472# Check for GNU ac_path_EGREP and select it if it is found.
5473  # Check for GNU $ac_path_EGREP
5474case `"$ac_path_EGREP" --version 2>&1` in
5475*GNU*)
5476  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5477*)
5478  ac_count=0
5479  $as_echo_n 0123456789 >"conftest.in"
5480  while :
5481  do
5482    cat "conftest.in" "conftest.in" >"conftest.tmp"
5483    mv "conftest.tmp" "conftest.in"
5484    cp "conftest.in" "conftest.nl"
5485    $as_echo 'EGREP' >> "conftest.nl"
5486    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5487    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5488    as_fn_arith $ac_count + 1 && ac_count=$as_val
5489    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5490      # Best one so far, save it but keep looking for a better one
5491      ac_cv_path_EGREP="$ac_path_EGREP"
5492      ac_path_EGREP_max=$ac_count
5493    fi
5494    # 10*(2^10) chars as input seems more than enough
5495    test $ac_count -gt 10 && break
5496  done
5497  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5498esac
5499
5500      $ac_path_EGREP_found && break 3
5501    done
5502  done
5503  done
5504IFS=$as_save_IFS
5505  if test -z "$ac_cv_path_EGREP"; then
5506    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5507  fi
5508else
5509  ac_cv_path_EGREP=$EGREP
5510fi
5511
5512   fi
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5515$as_echo "$ac_cv_path_EGREP" >&6; }
5516 EGREP="$ac_cv_path_EGREP"
5517
5518
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5520$as_echo_n "checking for fgrep... " >&6; }
5521if test "${ac_cv_path_FGREP+set}" = set; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5525   then ac_cv_path_FGREP="$GREP -F"
5526   else
5527     if test -z "$FGREP"; then
5528  ac_path_FGREP_found=false
5529  # Loop through the user's path and test for each of PROGNAME-LIST
5530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535    for ac_prog in fgrep; do
5536    for ac_exec_ext in '' $ac_executable_extensions; do
5537      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5538      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5539# Check for GNU ac_path_FGREP and select it if it is found.
5540  # Check for GNU $ac_path_FGREP
5541case `"$ac_path_FGREP" --version 2>&1` in
5542*GNU*)
5543  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5544*)
5545  ac_count=0
5546  $as_echo_n 0123456789 >"conftest.in"
5547  while :
5548  do
5549    cat "conftest.in" "conftest.in" >"conftest.tmp"
5550    mv "conftest.tmp" "conftest.in"
5551    cp "conftest.in" "conftest.nl"
5552    $as_echo 'FGREP' >> "conftest.nl"
5553    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5554    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5555    as_fn_arith $ac_count + 1 && ac_count=$as_val
5556    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5557      # Best one so far, save it but keep looking for a better one
5558      ac_cv_path_FGREP="$ac_path_FGREP"
5559      ac_path_FGREP_max=$ac_count
5560    fi
5561    # 10*(2^10) chars as input seems more than enough
5562    test $ac_count -gt 10 && break
5563  done
5564  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5565esac
5566
5567      $ac_path_FGREP_found && break 3
5568    done
5569  done
5570  done
5571IFS=$as_save_IFS
5572  if test -z "$ac_cv_path_FGREP"; then
5573    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5574  fi
5575else
5576  ac_cv_path_FGREP=$FGREP
5577fi
5578
5579   fi
5580fi
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5582$as_echo "$ac_cv_path_FGREP" >&6; }
5583 FGREP="$ac_cv_path_FGREP"
5584
5585
5586test -z "$GREP" && GREP=grep
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606# Check whether --with-gnu-ld was given.
5607if test "${with_gnu_ld+set}" = set; then :
5608  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5609else
5610  with_gnu_ld=no
5611fi
5612
5613ac_prog=ld
5614if test "$GCC" = yes; then
5615  # Check if gcc -print-prog-name=ld gives a path.
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5617$as_echo_n "checking for ld used by $CC... " >&6; }
5618  case $host in
5619  *-*-mingw*)
5620    # gcc leaves a trailing carriage return which upsets mingw
5621    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5622  *)
5623    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5624  esac
5625  case $ac_prog in
5626    # Accept absolute paths.
5627    [\\/]* | ?:[\\/]*)
5628      re_direlt='/[^/][^/]*/\.\./'
5629      # Canonicalize the pathname of ld
5630      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5631      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5632        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5633      done
5634      test -z "$LD" && LD="$ac_prog"
5635      ;;
5636  "")
5637    # If it fails, then pretend we aren't using GCC.
5638    ac_prog=ld
5639    ;;
5640  *)
5641    # If it is relative, then search for the first ld in PATH.
5642    with_gnu_ld=unknown
5643    ;;
5644  esac
5645elif test "$with_gnu_ld" = yes; then
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5647$as_echo_n "checking for GNU ld... " >&6; }
5648else
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5650$as_echo_n "checking for non-GNU ld... " >&6; }
5651fi
5652if test "${lt_cv_path_LD+set}" = set; then :
5653  $as_echo_n "(cached) " >&6
5654else
5655  if test -z "$LD"; then
5656  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5657  for ac_dir in $PATH; do
5658    IFS="$lt_save_ifs"
5659    test -z "$ac_dir" && ac_dir=.
5660    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5661      lt_cv_path_LD="$ac_dir/$ac_prog"
5662      # Check to see if the program is GNU ld.  I'd rather use --version,
5663      # but apparently some variants of GNU ld only accept -v.
5664      # Break only if it was the GNU/non-GNU ld that we prefer.
5665      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5666      *GNU* | *'with BFD'*)
5667        test "$with_gnu_ld" != no && break
5668        ;;
5669      *)
5670        test "$with_gnu_ld" != yes && break
5671        ;;
5672      esac
5673    fi
5674  done
5675  IFS="$lt_save_ifs"
5676else
5677  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5678fi
5679fi
5680
5681LD="$lt_cv_path_LD"
5682if test -n "$LD"; then
5683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5684$as_echo "$LD" >&6; }
5685else
5686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687$as_echo "no" >&6; }
5688fi
5689test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5691$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5692if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5696case `$LD -v 2>&1 </dev/null` in
5697*GNU* | *'with BFD'*)
5698  lt_cv_prog_gnu_ld=yes
5699  ;;
5700*)
5701  lt_cv_prog_gnu_ld=no
5702  ;;
5703esac
5704fi
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5706$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5707with_gnu_ld=$lt_cv_prog_gnu_ld
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5718$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5719if test "${lt_cv_path_NM+set}" = set; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -n "$NM"; then
5723  # Let the user override the test.
5724  lt_cv_path_NM="$NM"
5725else
5726  lt_nm_to_check="${ac_tool_prefix}nm"
5727  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5728    lt_nm_to_check="$lt_nm_to_check nm"
5729  fi
5730  for lt_tmp_nm in $lt_nm_to_check; do
5731    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5732    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5733      IFS="$lt_save_ifs"
5734      test -z "$ac_dir" && ac_dir=.
5735      tmp_nm="$ac_dir/$lt_tmp_nm"
5736      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5737        # Check to see if the nm accepts a BSD-compat flag.
5738        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5739        #   nm: unknown option "B" ignored
5740        # Tru64's nm complains that /dev/null is an invalid object file
5741        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5742        */dev/null* | *'Invalid file or object type'*)
5743          lt_cv_path_NM="$tmp_nm -B"
5744          break
5745          ;;
5746        *)
5747          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5748          */dev/null*)
5749            lt_cv_path_NM="$tmp_nm -p"
5750            break
5751            ;;
5752          *)
5753            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5754            continue # so that we can try to find one that supports BSD flags
5755            ;;
5756          esac
5757          ;;
5758        esac
5759      fi
5760    done
5761    IFS="$lt_save_ifs"
5762  done
5763  : ${lt_cv_path_NM=no}
5764fi
5765fi
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5767$as_echo "$lt_cv_path_NM" >&6; }
5768if test "$lt_cv_path_NM" != "no"; then
5769  NM="$lt_cv_path_NM"
5770else
5771  # Didn't find any BSD compatible name lister, look for dumpbin.
5772  if test -n "$ac_tool_prefix"; then
5773  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5774  do
5775    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778$as_echo_n "checking for $ac_word... " >&6; }
5779if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  if test -n "$DUMPBIN"; then
5783  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788  IFS=$as_save_IFS
5789  test -z "$as_dir" && as_dir=.
5790    for ac_exec_ext in '' $ac_executable_extensions; do
5791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5792    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794    break 2
5795  fi
5796done
5797  done
5798IFS=$as_save_IFS
5799
5800fi
5801fi
5802DUMPBIN=$ac_cv_prog_DUMPBIN
5803if test -n "$DUMPBIN"; then
5804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5805$as_echo "$DUMPBIN" >&6; }
5806else
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809fi
5810
5811
5812    test -n "$DUMPBIN" && break
5813  done
5814fi
5815if test -z "$DUMPBIN"; then
5816  ac_ct_DUMPBIN=$DUMPBIN
5817  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5818do
5819  # Extract the first word of "$ac_prog", so it can be a program name with args.
5820set dummy $ac_prog; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
5823if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  if test -n "$ac_ct_DUMPBIN"; then
5827  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832  IFS=$as_save_IFS
5833  test -z "$as_dir" && as_dir=.
5834    for ac_exec_ext in '' $ac_executable_extensions; do
5835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841  done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5847if test -n "$ac_ct_DUMPBIN"; then
5848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5849$as_echo "$ac_ct_DUMPBIN" >&6; }
5850else
5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
5855
5856  test -n "$ac_ct_DUMPBIN" && break
5857done
5858
5859  if test "x$ac_ct_DUMPBIN" = x; then
5860    DUMPBIN=":"
5861  else
5862    case $cross_compiling:$ac_tool_warned in
5863yes:)
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866ac_tool_warned=yes ;;
5867esac
5868    DUMPBIN=$ac_ct_DUMPBIN
5869  fi
5870fi
5871
5872
5873  if test "$DUMPBIN" != ":"; then
5874    NM="$DUMPBIN"
5875  fi
5876fi
5877test -z "$NM" && NM=nm
5878
5879
5880
5881
5882
5883
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5885$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5886if test "${lt_cv_nm_interface+set}" = set; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  lt_cv_nm_interface="BSD nm"
5890  echo "int some_variable = 0;" > conftest.$ac_ext
5891  (eval echo "\"\$as_me:5891: $ac_compile\"" >&5)
5892  (eval "$ac_compile" 2>conftest.err)
5893  cat conftest.err >&5
5894  (eval echo "\"\$as_me:5894: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5895  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5896  cat conftest.err >&5
5897  (eval echo "\"\$as_me:5897: output\"" >&5)
5898  cat conftest.out >&5
5899  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5900    lt_cv_nm_interface="MS dumpbin"
5901  fi
5902  rm -f conftest*
5903fi
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5905$as_echo "$lt_cv_nm_interface" >&6; }
5906
5907# find the maximum length of command line arguments
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5909$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5910if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913    i=0
5914  teststring="ABCD"
5915
5916  case $build_os in
5917  msdosdjgpp*)
5918    # On DJGPP, this test can blow up pretty badly due to problems in libc
5919    # (any single argument exceeding 2000 bytes causes a buffer overrun
5920    # during glob expansion).  Even if it were fixed, the result of this
5921    # check would be larger than it should be.
5922    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5923    ;;
5924
5925  gnu*)
5926    # Under GNU Hurd, this test is not required because there is
5927    # no limit to the length of command line arguments.
5928    # Libtool will interpret -1 as no limit whatsoever
5929    lt_cv_sys_max_cmd_len=-1;
5930    ;;
5931
5932  cygwin* | mingw* | cegcc*)
5933    # On Win9x/ME, this test blows up -- it succeeds, but takes
5934    # about 5 minutes as the teststring grows exponentially.
5935    # Worse, since 9x/ME are not pre-emptively multitasking,
5936    # you end up with a "frozen" computer, even though with patience
5937    # the test eventually succeeds (with a max line length of 256k).
5938    # Instead, let's just punt: use the minimum linelength reported by
5939    # all of the supported platforms: 8192 (on NT/2K/XP).
5940    lt_cv_sys_max_cmd_len=8192;
5941    ;;
5942
5943  amigaos*)
5944    # On AmigaOS with pdksh, this test takes hours, literally.
5945    # So we just punt and use a minimum line length of 8192.
5946    lt_cv_sys_max_cmd_len=8192;
5947    ;;
5948
5949  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5950    # This has been around since 386BSD, at least.  Likely further.
5951    if test -x /sbin/sysctl; then
5952      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5953    elif test -x /usr/sbin/sysctl; then
5954      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5955    else
5956      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5957    fi
5958    # And add a safety zone
5959    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5960    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5961    ;;
5962
5963  interix*)
5964    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5965    lt_cv_sys_max_cmd_len=196608
5966    ;;
5967
5968  osf*)
5969    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5970    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5971    # nice to cause kernel panics so lets avoid the loop below.
5972    # First set a reasonable default.
5973    lt_cv_sys_max_cmd_len=16384
5974    #
5975    if test -x /sbin/sysconfig; then
5976      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5977        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5978      esac
5979    fi
5980    ;;
5981  sco3.2v5*)
5982    lt_cv_sys_max_cmd_len=102400
5983    ;;
5984  sysv5* | sco5v6* | sysv4.2uw2*)
5985    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5986    if test -n "$kargmax"; then
5987      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5988    else
5989      lt_cv_sys_max_cmd_len=32768
5990    fi
5991    ;;
5992  *)
5993    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5994    if test -n "$lt_cv_sys_max_cmd_len"; then
5995      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5996      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5997    else
5998      # Make teststring a little bigger before we do anything with it.
5999      # a 1K string should be a reasonable start.
6000      for i in 1 2 3 4 5 6 7 8 ; do
6001        teststring=$teststring$teststring
6002      done
6003      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6004      # If test is not a shell built-in, we'll probably end up computing a
6005      # maximum length that is only half of the actual maximum length, but
6006      # we can't tell.
6007      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6008                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6009              test $i != 17 # 1/2 MB should be enough
6010      do
6011        i=`expr $i + 1`
6012        teststring=$teststring$teststring
6013      done
6014      # Only check the string length outside the loop.
6015      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6016      teststring=
6017      # Add a significant safety factor because C++ compilers can tack on
6018      # massive amounts of additional arguments before passing them to the
6019      # linker.  It appears as though 1/2 is a usable value.
6020      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6021    fi
6022    ;;
6023  esac
6024
6025fi
6026
6027if test -n $lt_cv_sys_max_cmd_len ; then
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6029$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6030else
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6032$as_echo "none" >&6; }
6033fi
6034max_cmd_len=$lt_cv_sys_max_cmd_len
6035
6036
6037
6038
6039
6040
6041: ${CP="cp -f"}
6042: ${MV="mv -f"}
6043: ${RM="rm -f"}
6044
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6046$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6047# Try some XSI features
6048xsi_shell=no
6049( _lt_dummy="a/b/c"
6050  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6051      = c,a/b,, \
6052    && eval 'test $(( 1 + 1 )) -eq 2 \
6053    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6054  && xsi_shell=yes
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6056$as_echo "$xsi_shell" >&6; }
6057
6058
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6060$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6061lt_shell_append=no
6062( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6063    >/dev/null 2>&1 \
6064  && lt_shell_append=yes
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6066$as_echo "$lt_shell_append" >&6; }
6067
6068
6069if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6070  lt_unset=unset
6071else
6072  lt_unset=false
6073fi
6074
6075
6076
6077
6078
6079# test EBCDIC or ASCII
6080case `echo X|tr X '\101'` in
6081 A) # ASCII based system
6082    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6083  lt_SP2NL='tr \040 \012'
6084  lt_NL2SP='tr \015\012 \040\040'
6085  ;;
6086 *) # EBCDIC based system
6087  lt_SP2NL='tr \100 \n'
6088  lt_NL2SP='tr \r\n \100\100'
6089  ;;
6090esac
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6101$as_echo_n "checking for $LD option to reload object files... " >&6; }
6102if test "${lt_cv_ld_reload_flag+set}" = set; then :
6103  $as_echo_n "(cached) " >&6
6104else
6105  lt_cv_ld_reload_flag='-r'
6106fi
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6108$as_echo "$lt_cv_ld_reload_flag" >&6; }
6109reload_flag=$lt_cv_ld_reload_flag
6110case $reload_flag in
6111"" | " "*) ;;
6112*) reload_flag=" $reload_flag" ;;
6113esac
6114reload_cmds='$LD$reload_flag -o $output$reload_objs'
6115case $host_os in
6116  darwin*)
6117    if test "$GCC" = yes; then
6118      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6119    else
6120      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6121    fi
6122    ;;
6123esac
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133if test -n "$ac_tool_prefix"; then
6134  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6135set dummy ${ac_tool_prefix}objdump; ac_word=$2
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137$as_echo_n "checking for $ac_word... " >&6; }
6138if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6139  $as_echo_n "(cached) " >&6
6140else
6141  if test -n "$OBJDUMP"; then
6142  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147  IFS=$as_save_IFS
6148  test -z "$as_dir" && as_dir=.
6149    for ac_exec_ext in '' $ac_executable_extensions; do
6150  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153    break 2
6154  fi
6155done
6156  done
6157IFS=$as_save_IFS
6158
6159fi
6160fi
6161OBJDUMP=$ac_cv_prog_OBJDUMP
6162if test -n "$OBJDUMP"; then
6163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6164$as_echo "$OBJDUMP" >&6; }
6165else
6166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167$as_echo "no" >&6; }
6168fi
6169
6170
6171fi
6172if test -z "$ac_cv_prog_OBJDUMP"; then
6173  ac_ct_OBJDUMP=$OBJDUMP
6174  # Extract the first word of "objdump", so it can be a program name with args.
6175set dummy objdump; ac_word=$2
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
6178if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6179  $as_echo_n "(cached) " >&6
6180else
6181  if test -n "$ac_ct_OBJDUMP"; then
6182  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187  IFS=$as_save_IFS
6188  test -z "$as_dir" && as_dir=.
6189    for ac_exec_ext in '' $ac_executable_extensions; do
6190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193    break 2
6194  fi
6195done
6196  done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6202if test -n "$ac_ct_OBJDUMP"; then
6203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6204$as_echo "$ac_ct_OBJDUMP" >&6; }
6205else
6206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210  if test "x$ac_ct_OBJDUMP" = x; then
6211    OBJDUMP="false"
6212  else
6213    case $cross_compiling:$ac_tool_warned in
6214yes:)
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6217ac_tool_warned=yes ;;
6218esac
6219    OBJDUMP=$ac_ct_OBJDUMP
6220  fi
6221else
6222  OBJDUMP="$ac_cv_prog_OBJDUMP"
6223fi
6224
6225test -z "$OBJDUMP" && OBJDUMP=objdump
6226
6227
6228
6229
6230
6231
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6233$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6234if test "${lt_cv_deplibs_check_method+set}" = set; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237  lt_cv_file_magic_cmd='$MAGIC_CMD'
6238lt_cv_file_magic_test_file=
6239lt_cv_deplibs_check_method='unknown'
6240# Need to set the preceding variable on all platforms that support
6241# interlibrary dependencies.
6242# 'none' -- dependencies not supported.
6243# `unknown' -- same as none, but documents that we really don't know.
6244# 'pass_all' -- all dependencies passed with no checks.
6245# 'test_compile' -- check by making test program.
6246# 'file_magic [[regex]]' -- check by looking for files in library path
6247# which responds to the $file_magic_cmd with a given extended regex.
6248# If you have `file' or equivalent on your system and you're not sure
6249# whether `pass_all' will *always* work, you probably want this one.
6250
6251case $host_os in
6252aix[4-9]*)
6253  lt_cv_deplibs_check_method=pass_all
6254  ;;
6255
6256beos*)
6257  lt_cv_deplibs_check_method=pass_all
6258  ;;
6259
6260bsdi[45]*)
6261  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6262  lt_cv_file_magic_cmd='/usr/bin/file -L'
6263  lt_cv_file_magic_test_file=/shlib/libc.so
6264  ;;
6265
6266cygwin*)
6267  # func_win32_libid is a shell function defined in ltmain.sh
6268  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6269  lt_cv_file_magic_cmd='func_win32_libid'
6270  ;;
6271
6272mingw* | pw32*)
6273  # Base MSYS/MinGW do not provide the 'file' command needed by
6274  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6275  # unless we find 'file', for example because we are cross-compiling.
6276  if ( file / ) >/dev/null 2>&1; then
6277    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6278    lt_cv_file_magic_cmd='func_win32_libid'
6279  else
6280    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6281    lt_cv_file_magic_cmd='$OBJDUMP -f'
6282  fi
6283  ;;
6284
6285cegcc)
6286  # use the weaker test based on 'objdump'. See mingw*.
6287  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6288  lt_cv_file_magic_cmd='$OBJDUMP -f'
6289  ;;
6290
6291darwin* | rhapsody*)
6292  lt_cv_deplibs_check_method=pass_all
6293  ;;
6294
6295freebsd* | dragonfly*)
6296  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6297    case $host_cpu in
6298    i*86 )
6299      # Not sure whether the presence of OpenBSD here was a mistake.
6300      # Let's accept both of them until this is cleared up.
6301      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6302      lt_cv_file_magic_cmd=/usr/bin/file
6303      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6304      ;;
6305    esac
6306  else
6307    lt_cv_deplibs_check_method=pass_all
6308  fi
6309  ;;
6310
6311gnu*)
6312  lt_cv_deplibs_check_method=pass_all
6313  ;;
6314
6315hpux10.20* | hpux11*)
6316  lt_cv_file_magic_cmd=/usr/bin/file
6317  case $host_cpu in
6318  ia64*)
6319    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6320    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6321    ;;
6322  hppa*64*)
6323    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6324    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6325    ;;
6326  *)
6327    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6328    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6329    ;;
6330  esac
6331  ;;
6332
6333interix[3-9]*)
6334  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6335  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6336  ;;
6337
6338irix5* | irix6* | nonstopux*)
6339  case $LD in
6340  *-32|*"-32 ") libmagic=32-bit;;
6341  *-n32|*"-n32 ") libmagic=N32;;
6342  *-64|*"-64 ") libmagic=64-bit;;
6343  *) libmagic=never-match;;
6344  esac
6345  lt_cv_deplibs_check_method=pass_all
6346  ;;
6347
6348# This must be Linux ELF.
6349linux* | k*bsd*-gnu | kopensolaris*-gnu)
6350  lt_cv_deplibs_check_method=pass_all
6351  ;;
6352
6353netbsd* | netbsdelf*-gnu)
6354  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6355    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6356  else
6357    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6358  fi
6359  ;;
6360
6361newos6*)
6362  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6363  lt_cv_file_magic_cmd=/usr/bin/file
6364  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6365  ;;
6366
6367*nto* | *qnx*)
6368  lt_cv_deplibs_check_method=pass_all
6369  ;;
6370
6371openbsd*)
6372  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6374  else
6375    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6376  fi
6377  ;;
6378
6379osf3* | osf4* | osf5*)
6380  lt_cv_deplibs_check_method=pass_all
6381  ;;
6382
6383rdos*)
6384  lt_cv_deplibs_check_method=pass_all
6385  ;;
6386
6387solaris*)
6388  lt_cv_deplibs_check_method=pass_all
6389  ;;
6390
6391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6392  lt_cv_deplibs_check_method=pass_all
6393  ;;
6394
6395sysv4 | sysv4.3*)
6396  case $host_vendor in
6397  motorola)
6398    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]'
6399    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6400    ;;
6401  ncr)
6402    lt_cv_deplibs_check_method=pass_all
6403    ;;
6404  sequent)
6405    lt_cv_file_magic_cmd='/bin/file'
6406    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6407    ;;
6408  sni)
6409    lt_cv_file_magic_cmd='/bin/file'
6410    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6411    lt_cv_file_magic_test_file=/lib/libc.so
6412    ;;
6413  siemens)
6414    lt_cv_deplibs_check_method=pass_all
6415    ;;
6416  pc)
6417    lt_cv_deplibs_check_method=pass_all
6418    ;;
6419  esac
6420  ;;
6421
6422tpf*)
6423  lt_cv_deplibs_check_method=pass_all
6424  ;;
6425esac
6426
6427fi
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6429$as_echo "$lt_cv_deplibs_check_method" >&6; }
6430file_magic_cmd=$lt_cv_file_magic_cmd
6431deplibs_check_method=$lt_cv_deplibs_check_method
6432test -z "$deplibs_check_method" && deplibs_check_method=unknown
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445if test -n "$ac_tool_prefix"; then
6446  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6447set dummy ${ac_tool_prefix}ar; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if test "${ac_cv_prog_AR+set}" = set; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  if test -n "$AR"; then
6454  ac_cv_prog_AR="$AR" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459  IFS=$as_save_IFS
6460  test -z "$as_dir" && as_dir=.
6461    for ac_exec_ext in '' $ac_executable_extensions; do
6462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463    ac_cv_prog_AR="${ac_tool_prefix}ar"
6464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465    break 2
6466  fi
6467done
6468  done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473AR=$ac_cv_prog_AR
6474if test -n "$AR"; then
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6476$as_echo "$AR" >&6; }
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482
6483fi
6484if test -z "$ac_cv_prog_AR"; then
6485  ac_ct_AR=$AR
6486  # Extract the first word of "ar", so it can be a program name with args.
6487set dummy ar; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6491  $as_echo_n "(cached) " >&6
6492else
6493  if test -n "$ac_ct_AR"; then
6494  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499  IFS=$as_save_IFS
6500  test -z "$as_dir" && as_dir=.
6501    for ac_exec_ext in '' $ac_executable_extensions; do
6502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503    ac_cv_prog_ac_ct_AR="ar"
6504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505    break 2
6506  fi
6507done
6508  done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513ac_ct_AR=$ac_cv_prog_ac_ct_AR
6514if test -n "$ac_ct_AR"; then
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6516$as_echo "$ac_ct_AR" >&6; }
6517else
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522  if test "x$ac_ct_AR" = x; then
6523    AR="false"
6524  else
6525    case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531    AR=$ac_ct_AR
6532  fi
6533else
6534  AR="$ac_cv_prog_AR"
6535fi
6536
6537test -z "$AR" && AR=ar
6538test -z "$AR_FLAGS" && AR_FLAGS=cru
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550if test -n "$ac_tool_prefix"; then
6551  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6552set dummy ${ac_tool_prefix}strip; ac_word=$2
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554$as_echo_n "checking for $ac_word... " >&6; }
6555if test "${ac_cv_prog_STRIP+set}" = set; then :
6556  $as_echo_n "(cached) " >&6
6557else
6558  if test -n "$STRIP"; then
6559  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564  IFS=$as_save_IFS
6565  test -z "$as_dir" && as_dir=.
6566    for ac_exec_ext in '' $ac_executable_extensions; do
6567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570    break 2
6571  fi
6572done
6573  done
6574IFS=$as_save_IFS
6575
6576fi
6577fi
6578STRIP=$ac_cv_prog_STRIP
6579if test -n "$STRIP"; then
6580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6581$as_echo "$STRIP" >&6; }
6582else
6583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584$as_echo "no" >&6; }
6585fi
6586
6587
6588fi
6589if test -z "$ac_cv_prog_STRIP"; then
6590  ac_ct_STRIP=$STRIP
6591  # Extract the first word of "strip", so it can be a program name with args.
6592set dummy strip; ac_word=$2
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594$as_echo_n "checking for $ac_word... " >&6; }
6595if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6596  $as_echo_n "(cached) " >&6
6597else
6598  if test -n "$ac_ct_STRIP"; then
6599  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6600else
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604  IFS=$as_save_IFS
6605  test -z "$as_dir" && as_dir=.
6606    for ac_exec_ext in '' $ac_executable_extensions; do
6607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608    ac_cv_prog_ac_ct_STRIP="strip"
6609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610    break 2
6611  fi
6612done
6613  done
6614IFS=$as_save_IFS
6615
6616fi
6617fi
6618ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6619if test -n "$ac_ct_STRIP"; then
6620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6621$as_echo "$ac_ct_STRIP" >&6; }
6622else
6623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624$as_echo "no" >&6; }
6625fi
6626
6627  if test "x$ac_ct_STRIP" = x; then
6628    STRIP=":"
6629  else
6630    case $cross_compiling:$ac_tool_warned in
6631yes:)
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634ac_tool_warned=yes ;;
6635esac
6636    STRIP=$ac_ct_STRIP
6637  fi
6638else
6639  STRIP="$ac_cv_prog_STRIP"
6640fi
6641
6642test -z "$STRIP" && STRIP=:
6643
6644
6645
6646
6647
6648
6649if test -n "$ac_tool_prefix"; then
6650  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6651set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653$as_echo_n "checking for $ac_word... " >&6; }
6654if test "${ac_cv_prog_RANLIB+set}" = set; then :
6655  $as_echo_n "(cached) " >&6
6656else
6657  if test -n "$RANLIB"; then
6658  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6659else
6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663  IFS=$as_save_IFS
6664  test -z "$as_dir" && as_dir=.
6665    for ac_exec_ext in '' $ac_executable_extensions; do
6666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669    break 2
6670  fi
6671done
6672  done
6673IFS=$as_save_IFS
6674
6675fi
6676fi
6677RANLIB=$ac_cv_prog_RANLIB
6678if test -n "$RANLIB"; then
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6680$as_echo "$RANLIB" >&6; }
6681else
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683$as_echo "no" >&6; }
6684fi
6685
6686
6687fi
6688if test -z "$ac_cv_prog_RANLIB"; then
6689  ac_ct_RANLIB=$RANLIB
6690  # Extract the first word of "ranlib", so it can be a program name with args.
6691set dummy ranlib; ac_word=$2
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693$as_echo_n "checking for $ac_word... " >&6; }
6694if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697  if test -n "$ac_ct_RANLIB"; then
6698  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6699else
6700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703  IFS=$as_save_IFS
6704  test -z "$as_dir" && as_dir=.
6705    for ac_exec_ext in '' $ac_executable_extensions; do
6706  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707    ac_cv_prog_ac_ct_RANLIB="ranlib"
6708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709    break 2
6710  fi
6711done
6712  done
6713IFS=$as_save_IFS
6714
6715fi
6716fi
6717ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6718if test -n "$ac_ct_RANLIB"; then
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6720$as_echo "$ac_ct_RANLIB" >&6; }
6721else
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723$as_echo "no" >&6; }
6724fi
6725
6726  if test "x$ac_ct_RANLIB" = x; then
6727    RANLIB=":"
6728  else
6729    case $cross_compiling:$ac_tool_warned in
6730yes:)
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733ac_tool_warned=yes ;;
6734esac
6735    RANLIB=$ac_ct_RANLIB
6736  fi
6737else
6738  RANLIB="$ac_cv_prog_RANLIB"
6739fi
6740
6741test -z "$RANLIB" && RANLIB=:
6742
6743
6744
6745
6746
6747
6748# Determine commands to create old-style static archives.
6749old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6750old_postinstall_cmds='chmod 644 $oldlib'
6751old_postuninstall_cmds=
6752
6753if test -n "$RANLIB"; then
6754  case $host_os in
6755  openbsd*)
6756    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6757    ;;
6758  *)
6759    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6760    ;;
6761  esac
6762  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6763fi
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798# If no C compiler was specified, use CC.
6799LTCC=${LTCC-"$CC"}
6800
6801# If no C compiler flags were specified, use CFLAGS.
6802LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6803
6804# Allow CC to be a program name with arguments.
6805compiler=$CC
6806
6807
6808# Check for command to grab the raw symbol name followed by C symbol from nm.
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6810$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6811if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814
6815# These are sane defaults that work on at least a few old systems.
6816# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6817
6818# Character class describing NM global symbol codes.
6819symcode='[BCDEGRST]'
6820
6821# Regexp to match symbols that can be accessed directly from C.
6822sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6823
6824# Define system-specific variables.
6825case $host_os in
6826aix*)
6827  symcode='[BCDT]'
6828  ;;
6829cygwin* | mingw* | pw32* | cegcc*)
6830  symcode='[ABCDGISTW]'
6831  ;;
6832hpux*)
6833  if test "$host_cpu" = ia64; then
6834    symcode='[ABCDEGRST]'
6835  fi
6836  ;;
6837irix* | nonstopux*)
6838  symcode='[BCDEGRST]'
6839  ;;
6840osf*)
6841  symcode='[BCDEGQRST]'
6842  ;;
6843solaris*)
6844  symcode='[BDRT]'
6845  ;;
6846sco3.2v5*)
6847  symcode='[DT]'
6848  ;;
6849sysv4.2uw2*)
6850  symcode='[DT]'
6851  ;;
6852sysv5* | sco5v6* | unixware* | OpenUNIX*)
6853  symcode='[ABDT]'
6854  ;;
6855sysv4)
6856  symcode='[DFNSTU]'
6857  ;;
6858esac
6859
6860# If we're using GNU nm, then use its standard symbol codes.
6861case `$NM -V 2>&1` in
6862*GNU* | *'with BFD'*)
6863  symcode='[ABCDGIRSTW]' ;;
6864esac
6865
6866# Transform an extracted symbol line into a proper C declaration.
6867# Some systems (esp. on ia64) link data and code symbols differently,
6868# so use this general approach.
6869lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6870
6871# Transform an extracted symbol line into symbol name and symbol address
6872lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6873lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6874
6875# Handle CRLF in mingw tool chain
6876opt_cr=
6877case $build_os in
6878mingw*)
6879  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6880  ;;
6881esac
6882
6883# Try without a prefix underscore, then with it.
6884for ac_symprfx in "" "_"; do
6885
6886  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6887  symxfrm="\\1 $ac_symprfx\\2 \\2"
6888
6889  # Write the raw and C identifiers.
6890  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6891    # Fake it for dumpbin and say T for any non-static function
6892    # and D for any global variable.
6893    # Also find C++ and __fastcall symbols from MSVC++,
6894    # which start with @ or ?.
6895    lt_cv_sys_global_symbol_pipe="$AWK '"\
6896"     {last_section=section; section=\$ 3};"\
6897"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6898"     \$ 0!~/External *\|/{next};"\
6899"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6900"     {if(hide[section]) next};"\
6901"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6902"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6903"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6904"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6905"     ' prfx=^$ac_symprfx"
6906  else
6907    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6908  fi
6909
6910  # Check to see that the pipe works correctly.
6911  pipe_works=no
6912
6913  rm -f conftest*
6914  cat > conftest.$ac_ext <<_LT_EOF
6915#ifdef __cplusplus
6916extern "C" {
6917#endif
6918char nm_test_var;
6919void nm_test_func(void);
6920void nm_test_func(void){}
6921#ifdef __cplusplus
6922}
6923#endif
6924int main(){nm_test_var='a';nm_test_func();return(0);}
6925_LT_EOF
6926
6927  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6928  (eval $ac_compile) 2>&5
6929  ac_status=$?
6930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931  test $ac_status = 0; }; then
6932    # Now try to grab the symbols.
6933    nlist=conftest.nm
6934    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6935  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6936  ac_status=$?
6937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938  test $ac_status = 0; } && test -s "$nlist"; then
6939      # Try sorting and uniquifying the output.
6940      if sort "$nlist" | uniq > "$nlist"T; then
6941        mv -f "$nlist"T "$nlist"
6942      else
6943        rm -f "$nlist"T
6944      fi
6945
6946      # Make sure that we snagged all the symbols we need.
6947      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6948        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6949          cat <<_LT_EOF > conftest.$ac_ext
6950#ifdef __cplusplus
6951extern "C" {
6952#endif
6953
6954_LT_EOF
6955          # Now generate the symbol file.
6956          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6957
6958          cat <<_LT_EOF >> conftest.$ac_ext
6959
6960/* The mapping between symbol names and symbols.  */
6961const struct {
6962  const char *name;
6963  void       *address;
6964}
6965lt__PROGRAM__LTX_preloaded_symbols[] =
6966{
6967  { "@PROGRAM@", (void *) 0 },
6968_LT_EOF
6969          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6970          cat <<\_LT_EOF >> conftest.$ac_ext
6971  {0, (void *) 0}
6972};
6973
6974/* This works around a problem in FreeBSD linker */
6975#ifdef FREEBSD_WORKAROUND
6976static const void *lt_preloaded_setup() {
6977  return lt__PROGRAM__LTX_preloaded_symbols;
6978}
6979#endif
6980
6981#ifdef __cplusplus
6982}
6983#endif
6984_LT_EOF
6985          # Now try linking the two files.
6986          mv conftest.$ac_objext conftstm.$ac_objext
6987          lt_save_LIBS="$LIBS"
6988          lt_save_CFLAGS="$CFLAGS"
6989          LIBS="conftstm.$ac_objext"
6990          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6991          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6992  (eval $ac_link) 2>&5
6993  ac_status=$?
6994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6996            pipe_works=yes
6997          fi
6998          LIBS="$lt_save_LIBS"
6999          CFLAGS="$lt_save_CFLAGS"
7000        else
7001          echo "cannot find nm_test_func in $nlist" >&5
7002        fi
7003      else
7004        echo "cannot find nm_test_var in $nlist" >&5
7005      fi
7006    else
7007      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7008    fi
7009  else
7010    echo "$progname: failed program was:" >&5
7011    cat conftest.$ac_ext >&5
7012  fi
7013  rm -rf conftest* conftst*
7014
7015  # Do not use the global_symbol_pipe unless it works.
7016  if test "$pipe_works" = yes; then
7017    break
7018  else
7019    lt_cv_sys_global_symbol_pipe=
7020  fi
7021done
7022
7023fi
7024
7025if test -z "$lt_cv_sys_global_symbol_pipe"; then
7026  lt_cv_sys_global_symbol_to_cdecl=
7027fi
7028if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7030$as_echo "failed" >&6; }
7031else
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7033$as_echo "ok" >&6; }
7034fi
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058# Check whether --enable-libtool-lock was given.
7059if test "${enable_libtool_lock+set}" = set; then :
7060  enableval=$enable_libtool_lock;
7061fi
7062
7063test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7064
7065# Some flags need to be propagated to the compiler or linker for good
7066# libtool support.
7067case $host in
7068ia64-*-hpux*)
7069  # Find out which ABI we are using.
7070  echo 'int i;' > conftest.$ac_ext
7071  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7072  (eval $ac_compile) 2>&5
7073  ac_status=$?
7074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7075  test $ac_status = 0; }; then
7076    case `/usr/bin/file conftest.$ac_objext` in
7077      *ELF-32*)
7078        HPUX_IA64_MODE="32"
7079        ;;
7080      *ELF-64*)
7081        HPUX_IA64_MODE="64"
7082        ;;
7083    esac
7084  fi
7085  rm -rf conftest*
7086  ;;
7087*-*-irix6*)
7088  # Find out which ABI we are using.
7089  echo '#line 7089 "configure"' > conftest.$ac_ext
7090  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7091  (eval $ac_compile) 2>&5
7092  ac_status=$?
7093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7094  test $ac_status = 0; }; then
7095    if test "$lt_cv_prog_gnu_ld" = yes; then
7096      case `/usr/bin/file conftest.$ac_objext` in
7097        *32-bit*)
7098          LD="${LD-ld} -melf32bsmip"
7099          ;;
7100        *N32*)
7101          LD="${LD-ld} -melf32bmipn32"
7102          ;;
7103        *64-bit*)
7104          LD="${LD-ld} -melf64bmip"
7105        ;;
7106      esac
7107    else
7108      case `/usr/bin/file conftest.$ac_objext` in
7109        *32-bit*)
7110          LD="${LD-ld} -32"
7111          ;;
7112        *N32*)
7113          LD="${LD-ld} -n32"
7114          ;;
7115        *64-bit*)
7116          LD="${LD-ld} -64"
7117          ;;
7118      esac
7119    fi
7120  fi
7121  rm -rf conftest*
7122  ;;
7123
7124x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7125s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7126  # Find out which ABI we are using.
7127  echo 'int i;' > conftest.$ac_ext
7128  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7129  (eval $ac_compile) 2>&5
7130  ac_status=$?
7131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7132  test $ac_status = 0; }; then
7133    case `/usr/bin/file conftest.o` in
7134      *32-bit*)
7135        case $host in
7136          x86_64-*kfreebsd*-gnu)
7137            LD="${LD-ld} -m elf_i386_fbsd"
7138            ;;
7139          x86_64-*linux*)
7140            LD="${LD-ld} -m elf_i386"
7141            ;;
7142          ppc64-*linux*|powerpc64-*linux*)
7143            LD="${LD-ld} -m elf32ppclinux"
7144            ;;
7145          s390x-*linux*)
7146            LD="${LD-ld} -m elf_s390"
7147            ;;
7148          sparc64-*linux*)
7149            LD="${LD-ld} -m elf32_sparc"
7150            ;;
7151        esac
7152        ;;
7153      *64-bit*)
7154        case $host in
7155          x86_64-*kfreebsd*-gnu)
7156            LD="${LD-ld} -m elf_x86_64_fbsd"
7157            ;;
7158          x86_64-*linux*)
7159            LD="${LD-ld} -m elf_x86_64"
7160            ;;
7161          ppc*-*linux*|powerpc*-*linux*)
7162            LD="${LD-ld} -m elf64ppc"
7163            ;;
7164          s390*-*linux*|s390*-*tpf*)
7165            LD="${LD-ld} -m elf64_s390"
7166            ;;
7167          sparc*-*linux*)
7168            LD="${LD-ld} -m elf64_sparc"
7169            ;;
7170        esac
7171        ;;
7172    esac
7173  fi
7174  rm -rf conftest*
7175  ;;
7176
7177*-*-sco3.2v5*)
7178  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7179  SAVE_CFLAGS="$CFLAGS"
7180  CFLAGS="$CFLAGS -belf"
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7182$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7183if test "${lt_cv_cc_needs_belf+set}" = set; then :
7184  $as_echo_n "(cached) " >&6
7185else
7186  ac_ext=c
7187ac_cpp='$CPP $CPPFLAGS'
7188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7190ac_compiler_gnu=$ac_cv_c_compiler_gnu
7191
7192     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193/* end confdefs.h.  */
7194
7195int
7196main ()
7197{
7198
7199  ;
7200  return 0;
7201}
7202_ACEOF
7203if ac_fn_c_try_link "$LINENO"; then :
7204  lt_cv_cc_needs_belf=yes
7205else
7206  lt_cv_cc_needs_belf=no
7207fi
7208rm -f core conftest.err conftest.$ac_objext \
7209    conftest$ac_exeext conftest.$ac_ext
7210     ac_ext=c
7211ac_cpp='$CPP $CPPFLAGS'
7212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214ac_compiler_gnu=$ac_cv_c_compiler_gnu
7215
7216fi
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7218$as_echo "$lt_cv_cc_needs_belf" >&6; }
7219  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7220    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7221    CFLAGS="$SAVE_CFLAGS"
7222  fi
7223  ;;
7224sparc*-*solaris*)
7225  # Find out which ABI we are using.
7226  echo 'int i;' > conftest.$ac_ext
7227  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7228  (eval $ac_compile) 2>&5
7229  ac_status=$?
7230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231  test $ac_status = 0; }; then
7232    case `/usr/bin/file conftest.o` in
7233    *64-bit*)
7234      case $lt_cv_prog_gnu_ld in
7235      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7236      *)
7237        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7238          LD="${LD-ld} -64"
7239        fi
7240        ;;
7241      esac
7242      ;;
7243    esac
7244  fi
7245  rm -rf conftest*
7246  ;;
7247esac
7248
7249need_locks="$enable_libtool_lock"
7250
7251
7252  case $host_os in
7253    rhapsody* | darwin*)
7254    if test -n "$ac_tool_prefix"; then
7255  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7256set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258$as_echo_n "checking for $ac_word... " >&6; }
7259if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262  if test -n "$DSYMUTIL"; then
7263  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268  IFS=$as_save_IFS
7269  test -z "$as_dir" && as_dir=.
7270    for ac_exec_ext in '' $ac_executable_extensions; do
7271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274    break 2
7275  fi
7276done
7277  done
7278IFS=$as_save_IFS
7279
7280fi
7281fi
7282DSYMUTIL=$ac_cv_prog_DSYMUTIL
7283if test -n "$DSYMUTIL"; then
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7285$as_echo "$DSYMUTIL" >&6; }
7286else
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288$as_echo "no" >&6; }
7289fi
7290
7291
7292fi
7293if test -z "$ac_cv_prog_DSYMUTIL"; then
7294  ac_ct_DSYMUTIL=$DSYMUTIL
7295  # Extract the first word of "dsymutil", so it can be a program name with args.
7296set dummy dsymutil; ac_word=$2
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298$as_echo_n "checking for $ac_word... " >&6; }
7299if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7300  $as_echo_n "(cached) " >&6
7301else
7302  if test -n "$ac_ct_DSYMUTIL"; then
7303  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7304else
7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308  IFS=$as_save_IFS
7309  test -z "$as_dir" && as_dir=.
7310    for ac_exec_ext in '' $ac_executable_extensions; do
7311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314    break 2
7315  fi
7316done
7317  done
7318IFS=$as_save_IFS
7319
7320fi
7321fi
7322ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7323if test -n "$ac_ct_DSYMUTIL"; then
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7325$as_echo "$ac_ct_DSYMUTIL" >&6; }
7326else
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328$as_echo "no" >&6; }
7329fi
7330
7331  if test "x$ac_ct_DSYMUTIL" = x; then
7332    DSYMUTIL=":"
7333  else
7334    case $cross_compiling:$ac_tool_warned in
7335yes:)
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338ac_tool_warned=yes ;;
7339esac
7340    DSYMUTIL=$ac_ct_DSYMUTIL
7341  fi
7342else
7343  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7344fi
7345
7346    if test -n "$ac_tool_prefix"; then
7347  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7348set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350$as_echo_n "checking for $ac_word... " >&6; }
7351if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7352  $as_echo_n "(cached) " >&6
7353else
7354  if test -n "$NMEDIT"; then
7355  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360  IFS=$as_save_IFS
7361  test -z "$as_dir" && as_dir=.
7362    for ac_exec_ext in '' $ac_executable_extensions; do
7363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366    break 2
7367  fi
7368done
7369  done
7370IFS=$as_save_IFS
7371
7372fi
7373fi
7374NMEDIT=$ac_cv_prog_NMEDIT
7375if test -n "$NMEDIT"; then
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7377$as_echo "$NMEDIT" >&6; }
7378else
7379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383
7384fi
7385if test -z "$ac_cv_prog_NMEDIT"; then
7386  ac_ct_NMEDIT=$NMEDIT
7387  # Extract the first word of "nmedit", so it can be a program name with args.
7388set dummy nmedit; ac_word=$2
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390$as_echo_n "checking for $ac_word... " >&6; }
7391if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7392  $as_echo_n "(cached) " >&6
7393else
7394  if test -n "$ac_ct_NMEDIT"; then
7395  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402    for ac_exec_ext in '' $ac_executable_extensions; do
7403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409  done
7410IFS=$as_save_IFS
7411
7412fi
7413fi
7414ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7415if test -n "$ac_ct_NMEDIT"; then
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7417$as_echo "$ac_ct_NMEDIT" >&6; }
7418else
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420$as_echo "no" >&6; }
7421fi
7422
7423  if test "x$ac_ct_NMEDIT" = x; then
7424    NMEDIT=":"
7425  else
7426    case $cross_compiling:$ac_tool_warned in
7427yes:)
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430ac_tool_warned=yes ;;
7431esac
7432    NMEDIT=$ac_ct_NMEDIT
7433  fi
7434else
7435  NMEDIT="$ac_cv_prog_NMEDIT"
7436fi
7437
7438    if test -n "$ac_tool_prefix"; then
7439  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7440set dummy ${ac_tool_prefix}lipo; ac_word=$2
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442$as_echo_n "checking for $ac_word... " >&6; }
7443if test "${ac_cv_prog_LIPO+set}" = set; then :
7444  $as_echo_n "(cached) " >&6
7445else
7446  if test -n "$LIPO"; then
7447  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7448else
7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452  IFS=$as_save_IFS
7453  test -z "$as_dir" && as_dir=.
7454    for ac_exec_ext in '' $ac_executable_extensions; do
7455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458    break 2
7459  fi
7460done
7461  done
7462IFS=$as_save_IFS
7463
7464fi
7465fi
7466LIPO=$ac_cv_prog_LIPO
7467if test -n "$LIPO"; then
7468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7469$as_echo "$LIPO" >&6; }
7470else
7471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472$as_echo "no" >&6; }
7473fi
7474
7475
7476fi
7477if test -z "$ac_cv_prog_LIPO"; then
7478  ac_ct_LIPO=$LIPO
7479  # Extract the first word of "lipo", so it can be a program name with args.
7480set dummy lipo; ac_word=$2
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482$as_echo_n "checking for $ac_word... " >&6; }
7483if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  if test -n "$ac_ct_LIPO"; then
7487  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7488else
7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492  IFS=$as_save_IFS
7493  test -z "$as_dir" && as_dir=.
7494    for ac_exec_ext in '' $ac_executable_extensions; do
7495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496    ac_cv_prog_ac_ct_LIPO="lipo"
7497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498    break 2
7499  fi
7500done
7501  done
7502IFS=$as_save_IFS
7503
7504fi
7505fi
7506ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7507if test -n "$ac_ct_LIPO"; then
7508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7509$as_echo "$ac_ct_LIPO" >&6; }
7510else
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512$as_echo "no" >&6; }
7513fi
7514
7515  if test "x$ac_ct_LIPO" = x; then
7516    LIPO=":"
7517  else
7518    case $cross_compiling:$ac_tool_warned in
7519yes:)
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522ac_tool_warned=yes ;;
7523esac
7524    LIPO=$ac_ct_LIPO
7525  fi
7526else
7527  LIPO="$ac_cv_prog_LIPO"
7528fi
7529
7530    if test -n "$ac_tool_prefix"; then
7531  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7532set dummy ${ac_tool_prefix}otool; ac_word=$2
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534$as_echo_n "checking for $ac_word... " >&6; }
7535if test "${ac_cv_prog_OTOOL+set}" = set; then :
7536  $as_echo_n "(cached) " >&6
7537else
7538  if test -n "$OTOOL"; then
7539  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7540else
7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544  IFS=$as_save_IFS
7545  test -z "$as_dir" && as_dir=.
7546    for ac_exec_ext in '' $ac_executable_extensions; do
7547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550    break 2
7551  fi
7552done
7553  done
7554IFS=$as_save_IFS
7555
7556fi
7557fi
7558OTOOL=$ac_cv_prog_OTOOL
7559if test -n "$OTOOL"; then
7560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7561$as_echo "$OTOOL" >&6; }
7562else
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564$as_echo "no" >&6; }
7565fi
7566
7567
7568fi
7569if test -z "$ac_cv_prog_OTOOL"; then
7570  ac_ct_OTOOL=$OTOOL
7571  # Extract the first word of "otool", so it can be a program name with args.
7572set dummy otool; ac_word=$2
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574$as_echo_n "checking for $ac_word... " >&6; }
7575if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7576  $as_echo_n "(cached) " >&6
7577else
7578  if test -n "$ac_ct_OTOOL"; then
7579  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7580else
7581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584  IFS=$as_save_IFS
7585  test -z "$as_dir" && as_dir=.
7586    for ac_exec_ext in '' $ac_executable_extensions; do
7587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7588    ac_cv_prog_ac_ct_OTOOL="otool"
7589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590    break 2
7591  fi
7592done
7593  done
7594IFS=$as_save_IFS
7595
7596fi
7597fi
7598ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7599if test -n "$ac_ct_OTOOL"; then
7600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7601$as_echo "$ac_ct_OTOOL" >&6; }
7602else
7603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604$as_echo "no" >&6; }
7605fi
7606
7607  if test "x$ac_ct_OTOOL" = x; then
7608    OTOOL=":"
7609  else
7610    case $cross_compiling:$ac_tool_warned in
7611yes:)
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614ac_tool_warned=yes ;;
7615esac
7616    OTOOL=$ac_ct_OTOOL
7617  fi
7618else
7619  OTOOL="$ac_cv_prog_OTOOL"
7620fi
7621
7622    if test -n "$ac_tool_prefix"; then
7623  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7624set dummy ${ac_tool_prefix}otool64; ac_word=$2
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626$as_echo_n "checking for $ac_word... " >&6; }
7627if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  if test -n "$OTOOL64"; then
7631  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7632else
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636  IFS=$as_save_IFS
7637  test -z "$as_dir" && as_dir=.
7638    for ac_exec_ext in '' $ac_executable_extensions; do
7639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642    break 2
7643  fi
7644done
7645  done
7646IFS=$as_save_IFS
7647
7648fi
7649fi
7650OTOOL64=$ac_cv_prog_OTOOL64
7651if test -n "$OTOOL64"; then
7652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7653$as_echo "$OTOOL64" >&6; }
7654else
7655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
7657fi
7658
7659
7660fi
7661if test -z "$ac_cv_prog_OTOOL64"; then
7662  ac_ct_OTOOL64=$OTOOL64
7663  # Extract the first word of "otool64", so it can be a program name with args.
7664set dummy otool64; ac_word=$2
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666$as_echo_n "checking for $ac_word... " >&6; }
7667if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  if test -n "$ac_ct_OTOOL64"; then
7671  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7672else
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676  IFS=$as_save_IFS
7677  test -z "$as_dir" && as_dir=.
7678    for ac_exec_ext in '' $ac_executable_extensions; do
7679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7680    ac_cv_prog_ac_ct_OTOOL64="otool64"
7681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682    break 2
7683  fi
7684done
7685  done
7686IFS=$as_save_IFS
7687
7688fi
7689fi
7690ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7691if test -n "$ac_ct_OTOOL64"; then
7692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7693$as_echo "$ac_ct_OTOOL64" >&6; }
7694else
7695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696$as_echo "no" >&6; }
7697fi
7698
7699  if test "x$ac_ct_OTOOL64" = x; then
7700    OTOOL64=":"
7701  else
7702    case $cross_compiling:$ac_tool_warned in
7703yes:)
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706ac_tool_warned=yes ;;
7707esac
7708    OTOOL64=$ac_ct_OTOOL64
7709  fi
7710else
7711  OTOOL64="$ac_cv_prog_OTOOL64"
7712fi
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7741$as_echo_n "checking for -single_module linker flag... " >&6; }
7742if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7743  $as_echo_n "(cached) " >&6
7744else
7745  lt_cv_apple_cc_single_mod=no
7746      if test -z "${LT_MULTI_MODULE}"; then
7747        # By default we will add the -single_module flag. You can override
7748        # by either setting the environment variable LT_MULTI_MODULE
7749        # non-empty at configure time, or by adding -multi_module to the
7750        # link flags.
7751        rm -rf libconftest.dylib*
7752        echo "int foo(void){return 1;}" > conftest.c
7753        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7754-dynamiclib -Wl,-single_module conftest.c" >&5
7755        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7756          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7757        _lt_result=$?
7758        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7759          lt_cv_apple_cc_single_mod=yes
7760        else
7761          cat conftest.err >&5
7762        fi
7763        rm -rf libconftest.dylib*
7764        rm -f conftest.*
7765      fi
7766fi
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7768$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7770$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7771if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  lt_cv_ld_exported_symbols_list=no
7775      save_LDFLAGS=$LDFLAGS
7776      echo "_main" > conftest.sym
7777      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7778      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h.  */
7780
7781int
7782main ()
7783{
7784
7785  ;
7786  return 0;
7787}
7788_ACEOF
7789if ac_fn_c_try_link "$LINENO"; then :
7790  lt_cv_ld_exported_symbols_list=yes
7791else
7792  lt_cv_ld_exported_symbols_list=no
7793fi
7794rm -f core conftest.err conftest.$ac_objext \
7795    conftest$ac_exeext conftest.$ac_ext
7796        LDFLAGS="$save_LDFLAGS"
7797
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7800$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7801    case $host_os in
7802    rhapsody* | darwin1.[012])
7803      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7804    darwin1.*)
7805      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7806    darwin*) # darwin 5.x on
7807      # if running on 10.5 or later, the deployment target defaults
7808      # to the OS version, if on x86, and 10.4, the deployment
7809      # target defaults to 10.4. Don't you love it?
7810      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7811        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7812          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7813        10.[012]*)
7814          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7815        10.*)
7816          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7817      esac
7818    ;;
7819  esac
7820    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7821      _lt_dar_single_mod='$single_module'
7822    fi
7823    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7824      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7825    else
7826      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7827    fi
7828    if test "$DSYMUTIL" != ":"; then
7829      _lt_dsymutil='~$DSYMUTIL $lib || :'
7830    else
7831      _lt_dsymutil=
7832    fi
7833    ;;
7834  esac
7835
7836
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7838$as_echo_n "checking for ANSI C header files... " >&6; }
7839if test "${ac_cv_header_stdc+set}" = set; then :
7840  $as_echo_n "(cached) " >&6
7841else
7842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843/* end confdefs.h.  */
7844#include <stdlib.h>
7845#include <stdarg.h>
7846#include <string.h>
7847#include <float.h>
7848
7849int
7850main ()
7851{
7852
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857if ac_fn_c_try_compile "$LINENO"; then :
7858  ac_cv_header_stdc=yes
7859else
7860  ac_cv_header_stdc=no
7861fi
7862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863
7864if test $ac_cv_header_stdc = yes; then
7865  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h.  */
7868#include <string.h>
7869
7870_ACEOF
7871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7872  $EGREP "memchr" >/dev/null 2>&1; then :
7873
7874else
7875  ac_cv_header_stdc=no
7876fi
7877rm -f conftest*
7878
7879fi
7880
7881if test $ac_cv_header_stdc = yes; then
7882  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h.  */
7885#include <stdlib.h>
7886
7887_ACEOF
7888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889  $EGREP "free" >/dev/null 2>&1; then :
7890
7891else
7892  ac_cv_header_stdc=no
7893fi
7894rm -f conftest*
7895
7896fi
7897
7898if test $ac_cv_header_stdc = yes; then
7899  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7900  if test "$cross_compiling" = yes; then :
7901  :
7902else
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905#include <ctype.h>
7906#include <stdlib.h>
7907#if ((' ' & 0x0FF) == 0x020)
7908# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7909# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7910#else
7911# define ISLOWER(c) \
7912                   (('a' <= (c) && (c) <= 'i') \
7913                     || ('j' <= (c) && (c) <= 'r') \
7914                     || ('s' <= (c) && (c) <= 'z'))
7915# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7916#endif
7917
7918#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7919int
7920main ()
7921{
7922  int i;
7923  for (i = 0; i < 256; i++)
7924    if (XOR (islower (i), ISLOWER (i))
7925        || toupper (i) != TOUPPER (i))
7926      return 2;
7927  return 0;
7928}
7929_ACEOF
7930if ac_fn_c_try_run "$LINENO"; then :
7931
7932else
7933  ac_cv_header_stdc=no
7934fi
7935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7936  conftest.$ac_objext conftest.beam conftest.$ac_ext
7937fi
7938
7939fi
7940fi
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7942$as_echo "$ac_cv_header_stdc" >&6; }
7943if test $ac_cv_header_stdc = yes; then
7944
7945$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7946
7947fi
7948
7949# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7950for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7951                  inttypes.h stdint.h unistd.h
7952do :
7953  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7954ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7955"
7956if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7957  cat >>confdefs.h <<_ACEOF
7958#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7959_ACEOF
7960
7961fi
7962
7963done
7964
7965
7966for ac_header in dlfcn.h
7967do :
7968  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7969"
7970if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7971  cat >>confdefs.h <<_ACEOF
7972#define HAVE_DLFCN_H 1
7973_ACEOF
7974
7975fi
7976
7977done
7978
7979
7980
7981ac_ext=cpp
7982ac_cpp='$CXXCPP $CPPFLAGS'
7983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7986if test -z "$CXX"; then
7987  if test -n "$CCC"; then
7988    CXX=$CCC
7989  else
7990    if test -n "$ac_tool_prefix"; then
7991  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7992  do
7993    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996$as_echo_n "checking for $ac_word... " >&6; }
7997if test "${ac_cv_prog_CXX+set}" = set; then :
7998  $as_echo_n "(cached) " >&6
7999else
8000  if test -n "$CXX"; then
8001  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8002else
8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004for as_dir in $PATH
8005do
8006  IFS=$as_save_IFS
8007  test -z "$as_dir" && as_dir=.
8008    for ac_exec_ext in '' $ac_executable_extensions; do
8009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012    break 2
8013  fi
8014done
8015  done
8016IFS=$as_save_IFS
8017
8018fi
8019fi
8020CXX=$ac_cv_prog_CXX
8021if test -n "$CXX"; then
8022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8023$as_echo "$CXX" >&6; }
8024else
8025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026$as_echo "no" >&6; }
8027fi
8028
8029
8030    test -n "$CXX" && break
8031  done
8032fi
8033if test -z "$CXX"; then
8034  ac_ct_CXX=$CXX
8035  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8036do
8037  # Extract the first word of "$ac_prog", so it can be a program name with args.
8038set dummy $ac_prog; ac_word=$2
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8042  $as_echo_n "(cached) " >&6
8043else
8044  if test -n "$ac_ct_CXX"; then
8045  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050  IFS=$as_save_IFS
8051  test -z "$as_dir" && as_dir=.
8052    for ac_exec_ext in '' $ac_executable_extensions; do
8053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054    ac_cv_prog_ac_ct_CXX="$ac_prog"
8055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056    break 2
8057  fi
8058done
8059  done
8060IFS=$as_save_IFS
8061
8062fi
8063fi
8064ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8065if test -n "$ac_ct_CXX"; then
8066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8067$as_echo "$ac_ct_CXX" >&6; }
8068else
8069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
8071fi
8072
8073
8074  test -n "$ac_ct_CXX" && break
8075done
8076
8077  if test "x$ac_ct_CXX" = x; then
8078    CXX="g++"
8079  else
8080    case $cross_compiling:$ac_tool_warned in
8081yes:)
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8084ac_tool_warned=yes ;;
8085esac
8086    CXX=$ac_ct_CXX
8087  fi
8088fi
8089
8090  fi
8091fi
8092# Provide some information about the compiler.
8093$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8094set X $ac_compile
8095ac_compiler=$2
8096for ac_option in --version -v -V -qversion; do
8097  { { ac_try="$ac_compiler $ac_option >&5"
8098case "(($ac_try" in
8099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100  *) ac_try_echo=$ac_try;;
8101esac
8102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8103$as_echo "$ac_try_echo"; } >&5
8104  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8105  ac_status=$?
8106  if test -s conftest.err; then
8107    sed '10a\
8108... rest of stderr output deleted ...
8109         10q' conftest.err >conftest.er1
8110    cat conftest.er1 >&5
8111  fi
8112  rm -f conftest.er1 conftest.err
8113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114  test $ac_status = 0; }
8115done
8116
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8118$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8119if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8120  $as_echo_n "(cached) " >&6
8121else
8122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h.  */
8124
8125int
8126main ()
8127{
8128#ifndef __GNUC__
8129       choke me
8130#endif
8131
8132  ;
8133  return 0;
8134}
8135_ACEOF
8136if ac_fn_cxx_try_compile "$LINENO"; then :
8137  ac_compiler_gnu=yes
8138else
8139  ac_compiler_gnu=no
8140fi
8141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8143
8144fi
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8146$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8147if test $ac_compiler_gnu = yes; then
8148  GXX=yes
8149else
8150  GXX=
8151fi
8152ac_test_CXXFLAGS=${CXXFLAGS+set}
8153ac_save_CXXFLAGS=$CXXFLAGS
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8155$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8156if test "${ac_cv_prog_cxx_g+set}" = set; then :
8157  $as_echo_n "(cached) " >&6
8158else
8159  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8160   ac_cxx_werror_flag=yes
8161   ac_cv_prog_cxx_g=no
8162   CXXFLAGS="-g"
8163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164/* end confdefs.h.  */
8165
8166int
8167main ()
8168{
8169
8170  ;
8171  return 0;
8172}
8173_ACEOF
8174if ac_fn_cxx_try_compile "$LINENO"; then :
8175  ac_cv_prog_cxx_g=yes
8176else
8177  CXXFLAGS=""
8178      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h.  */
8180
8181int
8182main ()
8183{
8184
8185  ;
8186  return 0;
8187}
8188_ACEOF
8189if ac_fn_cxx_try_compile "$LINENO"; then :
8190
8191else
8192  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8193         CXXFLAGS="-g"
8194         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h.  */
8196
8197int
8198main ()
8199{
8200
8201  ;
8202  return 0;
8203}
8204_ACEOF
8205if ac_fn_cxx_try_compile "$LINENO"; then :
8206  ac_cv_prog_cxx_g=yes
8207fi
8208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209fi
8210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211fi
8212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8216$as_echo "$ac_cv_prog_cxx_g" >&6; }
8217if test "$ac_test_CXXFLAGS" = set; then
8218  CXXFLAGS=$ac_save_CXXFLAGS
8219elif test $ac_cv_prog_cxx_g = yes; then
8220  if test "$GXX" = yes; then
8221    CXXFLAGS="-g -O2"
8222  else
8223    CXXFLAGS="-g"
8224  fi
8225else
8226  if test "$GXX" = yes; then
8227    CXXFLAGS="-O2"
8228  else
8229    CXXFLAGS=
8230  fi
8231fi
8232ac_ext=c
8233ac_cpp='$CPP $CPPFLAGS'
8234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8236ac_compiler_gnu=$ac_cv_c_compiler_gnu
8237
8238depcc="$CXX"  am_compiler_list=
8239
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8241$as_echo_n "checking dependency style of $depcc... " >&6; }
8242if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8246  # We make a subdir and do the tests there.  Otherwise we can end up
8247  # making bogus files that we don't know about and never remove.  For
8248  # instance it was reported that on HP-UX the gcc test will end up
8249  # making a dummy file named `D' -- because `-MD' means `put the output
8250  # in D'.
8251  mkdir conftest.dir
8252  # Copy depcomp to subdir because otherwise we won't find it if we're
8253  # using a relative directory.
8254  cp "$am_depcomp" conftest.dir
8255  cd conftest.dir
8256  # We will build objects and dependencies in a subdirectory because
8257  # it helps to detect inapplicable dependency modes.  For instance
8258  # both Tru64's cc and ICC support -MD to output dependencies as a
8259  # side effect of compilation, but ICC will put the dependencies in
8260  # the current directory while Tru64 will put them in the object
8261  # directory.
8262  mkdir sub
8263
8264  am_cv_CXX_dependencies_compiler_type=none
8265  if test "$am_compiler_list" = ""; then
8266     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8267  fi
8268  am__universal=false
8269  case " $depcc " in #(
8270     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8271     esac
8272
8273  for depmode in $am_compiler_list; do
8274    # Setup a source with many dependencies, because some compilers
8275    # like to wrap large dependency lists on column 80 (with \), and
8276    # we should not choose a depcomp mode which is confused by this.
8277    #
8278    # We need to recreate these files for each test, as the compiler may
8279    # overwrite some of them when testing with obscure command lines.
8280    # This happens at least with the AIX C compiler.
8281    : > sub/conftest.c
8282    for i in 1 2 3 4 5 6; do
8283      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8284      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8285      # Solaris 8's {/usr,}/bin/sh.
8286      touch sub/conftst$i.h
8287    done
8288    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8289
8290    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8291    # mode.  It turns out that the SunPro C++ compiler does not properly
8292    # handle `-M -o', and we need to detect this.  Also, some Intel
8293    # versions had trouble with output in subdirs
8294    am__obj=sub/conftest.${OBJEXT-o}
8295    am__minus_obj="-o $am__obj"
8296    case $depmode in
8297    gcc)
8298      # This depmode causes a compiler race in universal mode.
8299      test "$am__universal" = false || continue
8300      ;;
8301    nosideeffect)
8302      # after this tag, mechanisms are not by side-effect, so they'll
8303      # only be used when explicitly requested
8304      if test "x$enable_dependency_tracking" = xyes; then
8305        continue
8306      else
8307        break
8308      fi
8309      ;;
8310    msvisualcpp | msvcmsys)
8311      # This compiler won't grok `-c -o', but also, the minuso test has
8312      # not run yet.  These depmodes are late enough in the game, and
8313      # so weak that their functioning should not be impacted.
8314      am__obj=conftest.${OBJEXT-o}
8315      am__minus_obj=
8316      ;;
8317    none) break ;;
8318    esac
8319    if depmode=$depmode \
8320       source=sub/conftest.c object=$am__obj \
8321       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8322       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8323         >/dev/null 2>conftest.err &&
8324       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8325       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8326       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8327       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8328      # icc doesn't choke on unknown options, it will just issue warnings
8329      # or remarks (even with -Werror).  So we grep stderr for any message
8330      # that says an option was ignored or not supported.
8331      # When given -MP, icc 7.0 and 7.1 complain thusly:
8332      #   icc: Command line warning: ignoring option '-M'; no argument required
8333      # The diagnosis changed in icc 8.0:
8334      #   icc: Command line remark: option '-MP' not supported
8335      if (grep 'ignoring option' conftest.err ||
8336          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8337        am_cv_CXX_dependencies_compiler_type=$depmode
8338        break
8339      fi
8340    fi
8341  done
8342
8343  cd ..
8344  rm -rf conftest.dir
8345else
8346  am_cv_CXX_dependencies_compiler_type=none
8347fi
8348
8349fi
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8351$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8352CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8353
8354 if
8355  test "x$enable_dependency_tracking" != xno \
8356  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8357  am__fastdepCXX_TRUE=
8358  am__fastdepCXX_FALSE='#'
8359else
8360  am__fastdepCXX_TRUE='#'
8361  am__fastdepCXX_FALSE=
8362fi
8363
8364
8365if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8366    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8367    (test "X$CXX" != "Xg++"))) ; then
8368  ac_ext=cpp
8369ac_cpp='$CXXCPP $CPPFLAGS'
8370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8374$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8375if test -z "$CXXCPP"; then
8376  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8377  $as_echo_n "(cached) " >&6
8378else
8379      # Double quotes because CXXCPP needs to be expanded
8380    for CXXCPP in "$CXX -E" "/lib/cpp"
8381    do
8382      ac_preproc_ok=false
8383for ac_cxx_preproc_warn_flag in '' yes
8384do
8385  # Use a header file that comes with gcc, so configuring glibc
8386  # with a fresh cross-compiler works.
8387  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8388  # <limits.h> exists even on freestanding compilers.
8389  # On the NeXT, cc -E runs the code through the compiler's parser,
8390  # not just through cpp. "Syntax error" is here to catch this case.
8391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392/* end confdefs.h.  */
8393#ifdef __STDC__
8394# include <limits.h>
8395#else
8396# include <assert.h>
8397#endif
8398                     Syntax error
8399_ACEOF
8400if ac_fn_cxx_try_cpp "$LINENO"; then :
8401
8402else
8403  # Broken: fails on valid input.
8404continue
8405fi
8406rm -f conftest.err conftest.i conftest.$ac_ext
8407
8408  # OK, works on sane cases.  Now check whether nonexistent headers
8409  # can be detected and how.
8410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411/* end confdefs.h.  */
8412#include <ac_nonexistent.h>
8413_ACEOF
8414if ac_fn_cxx_try_cpp "$LINENO"; then :
8415  # Broken: success on invalid input.
8416continue
8417else
8418  # Passes both tests.
8419ac_preproc_ok=:
8420break
8421fi
8422rm -f conftest.err conftest.i conftest.$ac_ext
8423
8424done
8425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8426rm -f conftest.i conftest.err conftest.$ac_ext
8427if $ac_preproc_ok; then :
8428  break
8429fi
8430
8431    done
8432    ac_cv_prog_CXXCPP=$CXXCPP
8433
8434fi
8435  CXXCPP=$ac_cv_prog_CXXCPP
8436else
8437  ac_cv_prog_CXXCPP=$CXXCPP
8438fi
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8440$as_echo "$CXXCPP" >&6; }
8441ac_preproc_ok=false
8442for ac_cxx_preproc_warn_flag in '' yes
8443do
8444  # Use a header file that comes with gcc, so configuring glibc
8445  # with a fresh cross-compiler works.
8446  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8447  # <limits.h> exists even on freestanding compilers.
8448  # On the NeXT, cc -E runs the code through the compiler's parser,
8449  # not just through cpp. "Syntax error" is here to catch this case.
8450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h.  */
8452#ifdef __STDC__
8453# include <limits.h>
8454#else
8455# include <assert.h>
8456#endif
8457                     Syntax error
8458_ACEOF
8459if ac_fn_cxx_try_cpp "$LINENO"; then :
8460
8461else
8462  # Broken: fails on valid input.
8463continue
8464fi
8465rm -f conftest.err conftest.i conftest.$ac_ext
8466
8467  # OK, works on sane cases.  Now check whether nonexistent headers
8468  # can be detected and how.
8469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h.  */
8471#include <ac_nonexistent.h>
8472_ACEOF
8473if ac_fn_cxx_try_cpp "$LINENO"; then :
8474  # Broken: success on invalid input.
8475continue
8476else
8477  # Passes both tests.
8478ac_preproc_ok=:
8479break
8480fi
8481rm -f conftest.err conftest.i conftest.$ac_ext
8482
8483done
8484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8485rm -f conftest.i conftest.err conftest.$ac_ext
8486if $ac_preproc_ok; then :
8487
8488else
8489  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8491_lt_caught_CXX_error=yes; }
8492fi
8493
8494ac_ext=c
8495ac_cpp='$CPP $CPPFLAGS'
8496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500else
8501  _lt_caught_CXX_error=yes
8502fi
8503
8504
8505
8506
8507
8508# Set options
8509
8510
8511
8512        enable_dlopen=no
8513
8514
8515
8516            # Check whether --enable-shared was given.
8517if test "${enable_shared+set}" = set; then :
8518  enableval=$enable_shared; p=${PACKAGE-default}
8519    case $enableval in
8520    yes) enable_shared=yes ;;
8521    no) enable_shared=no ;;
8522    *)
8523      enable_shared=no
8524      # Look at the argument we got.  We use all the common list separators.
8525      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8526      for pkg in $enableval; do
8527        IFS="$lt_save_ifs"
8528        if test "X$pkg" = "X$p"; then
8529          enable_shared=yes
8530        fi
8531      done
8532      IFS="$lt_save_ifs"
8533      ;;
8534    esac
8535else
8536  enable_shared=yes
8537fi
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547  # Check whether --enable-static was given.
8548if test "${enable_static+set}" = set; then :
8549  enableval=$enable_static; p=${PACKAGE-default}
8550    case $enableval in
8551    yes) enable_static=yes ;;
8552    no) enable_static=no ;;
8553    *)
8554     enable_static=no
8555      # Look at the argument we got.  We use all the common list separators.
8556      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8557      for pkg in $enableval; do
8558        IFS="$lt_save_ifs"
8559        if test "X$pkg" = "X$p"; then
8560          enable_static=yes
8561        fi
8562      done
8563      IFS="$lt_save_ifs"
8564      ;;
8565    esac
8566else
8567  enable_static=yes
8568fi
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579# Check whether --with-pic was given.
8580if test "${with_pic+set}" = set; then :
8581  withval=$with_pic; pic_mode="$withval"
8582else
8583  pic_mode=default
8584fi
8585
8586
8587test -z "$pic_mode" && pic_mode=default
8588
8589
8590
8591
8592
8593
8594
8595  # Check whether --enable-fast-install was given.
8596if test "${enable_fast_install+set}" = set; then :
8597  enableval=$enable_fast_install; p=${PACKAGE-default}
8598    case $enableval in
8599    yes) enable_fast_install=yes ;;
8600    no) enable_fast_install=no ;;
8601    *)
8602      enable_fast_install=no
8603      # Look at the argument we got.  We use all the common list separators.
8604      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8605      for pkg in $enableval; do
8606        IFS="$lt_save_ifs"
8607        if test "X$pkg" = "X$p"; then
8608          enable_fast_install=yes
8609        fi
8610      done
8611      IFS="$lt_save_ifs"
8612      ;;
8613    esac
8614else
8615  enable_fast_install=yes
8616fi
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628# This can be used to rebuild libtool when needed
8629LIBTOOL_DEPS="$ltmain"
8630
8631# Always use our own libtool.
8632LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658test -z "$LN_S" && LN_S="ln -s"
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673if test -n "${ZSH_VERSION+set}" ; then
8674   setopt NO_GLOB_SUBST
8675fi
8676
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8678$as_echo_n "checking for objdir... " >&6; }
8679if test "${lt_cv_objdir+set}" = set; then :
8680  $as_echo_n "(cached) " >&6
8681else
8682  rm -f .libs 2>/dev/null
8683mkdir .libs 2>/dev/null
8684if test -d .libs; then
8685  lt_cv_objdir=.libs
8686else
8687  # MS-DOS does not allow filenames that begin with a dot.
8688  lt_cv_objdir=_libs
8689fi
8690rmdir .libs 2>/dev/null
8691fi
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8693$as_echo "$lt_cv_objdir" >&6; }
8694objdir=$lt_cv_objdir
8695
8696
8697
8698
8699
8700cat >>confdefs.h <<_ACEOF
8701#define LT_OBJDIR "$lt_cv_objdir/"
8702_ACEOF
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720case $host_os in
8721aix3*)
8722  # AIX sometimes has problems with the GCC collect2 program.  For some
8723  # reason, if we set the COLLECT_NAMES environment variable, the problems
8724  # vanish in a puff of smoke.
8725  if test "X${COLLECT_NAMES+set}" != Xset; then
8726    COLLECT_NAMES=
8727    export COLLECT_NAMES
8728  fi
8729  ;;
8730esac
8731
8732# Sed substitution that helps us do robust quoting.  It backslashifies
8733# metacharacters that are still active within double-quoted strings.
8734sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8735
8736# Same as above, but do not quote variable references.
8737double_quote_subst='s/\(["`\\]\)/\\\1/g'
8738
8739# Sed substitution to delay expansion of an escaped shell variable in a
8740# double_quote_subst'ed string.
8741delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8742
8743# Sed substitution to delay expansion of an escaped single quote.
8744delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8745
8746# Sed substitution to avoid accidental globbing in evaled expressions
8747no_glob_subst='s/\*/\\\*/g'
8748
8749# Global variables:
8750ofile=libtool
8751can_build_shared=yes
8752
8753# All known linkers require a `.a' archive for static linking (except MSVC,
8754# which needs '.lib').
8755libext=a
8756
8757with_gnu_ld="$lt_cv_prog_gnu_ld"
8758
8759old_CC="$CC"
8760old_CFLAGS="$CFLAGS"
8761
8762# Set sane defaults for various variables
8763test -z "$CC" && CC=cc
8764test -z "$LTCC" && LTCC=$CC
8765test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8766test -z "$LD" && LD=ld
8767test -z "$ac_objext" && ac_objext=o
8768
8769for cc_temp in $compiler""; do
8770  case $cc_temp in
8771    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8772    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8773    \-*) ;;
8774    *) break;;
8775  esac
8776done
8777cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8778
8779
8780# Only perform the check for file, if the check method requires it
8781test -z "$MAGIC_CMD" && MAGIC_CMD=file
8782case $deplibs_check_method in
8783file_magic*)
8784  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8786$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8787if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8788  $as_echo_n "(cached) " >&6
8789else
8790  case $MAGIC_CMD in
8791[\\/*] |  ?:[\\/]*)
8792  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8793  ;;
8794*)
8795  lt_save_MAGIC_CMD="$MAGIC_CMD"
8796  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8797  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8798  for ac_dir in $ac_dummy; do
8799    IFS="$lt_save_ifs"
8800    test -z "$ac_dir" && ac_dir=.
8801    if test -f $ac_dir/${ac_tool_prefix}file; then
8802      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8803      if test -n "$file_magic_test_file"; then
8804        case $deplibs_check_method in
8805        "file_magic "*)
8806          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8807          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8808          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8809            $EGREP "$file_magic_regex" > /dev/null; then
8810            :
8811          else
8812            cat <<_LT_EOF 1>&2
8813
8814*** Warning: the command libtool uses to detect shared libraries,
8815*** $file_magic_cmd, produces output that libtool cannot recognize.
8816*** The result is that libtool may fail to recognize shared libraries
8817*** as such.  This will affect the creation of libtool libraries that
8818*** depend on shared libraries, but programs linked with such libtool
8819*** libraries will work regardless of this problem.  Nevertheless, you
8820*** may want to report the problem to your system manager and/or to
8821*** bug-libtool@gnu.org
8822
8823_LT_EOF
8824          fi ;;
8825        esac
8826      fi
8827      break
8828    fi
8829  done
8830  IFS="$lt_save_ifs"
8831  MAGIC_CMD="$lt_save_MAGIC_CMD"
8832  ;;
8833esac
8834fi
8835
8836MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8837if test -n "$MAGIC_CMD"; then
8838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8839$as_echo "$MAGIC_CMD" >&6; }
8840else
8841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842$as_echo "no" >&6; }
8843fi
8844
8845
8846
8847
8848
8849if test -z "$lt_cv_path_MAGIC_CMD"; then
8850  if test -n "$ac_tool_prefix"; then
8851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8852$as_echo_n "checking for file... " >&6; }
8853if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8854  $as_echo_n "(cached) " >&6
8855else
8856  case $MAGIC_CMD in
8857[\\/*] |  ?:[\\/]*)
8858  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8859  ;;
8860*)
8861  lt_save_MAGIC_CMD="$MAGIC_CMD"
8862  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8863  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8864  for ac_dir in $ac_dummy; do
8865    IFS="$lt_save_ifs"
8866    test -z "$ac_dir" && ac_dir=.
8867    if test -f $ac_dir/file; then
8868      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8869      if test -n "$file_magic_test_file"; then
8870        case $deplibs_check_method in
8871        "file_magic "*)
8872          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8873          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8874          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8875            $EGREP "$file_magic_regex" > /dev/null; then
8876            :
8877          else
8878            cat <<_LT_EOF 1>&2
8879
8880*** Warning: the command libtool uses to detect shared libraries,
8881*** $file_magic_cmd, produces output that libtool cannot recognize.
8882*** The result is that libtool may fail to recognize shared libraries
8883*** as such.  This will affect the creation of libtool libraries that
8884*** depend on shared libraries, but programs linked with such libtool
8885*** libraries will work regardless of this problem.  Nevertheless, you
8886*** may want to report the problem to your system manager and/or to
8887*** bug-libtool@gnu.org
8888
8889_LT_EOF
8890          fi ;;
8891        esac
8892      fi
8893      break
8894    fi
8895  done
8896  IFS="$lt_save_ifs"
8897  MAGIC_CMD="$lt_save_MAGIC_CMD"
8898  ;;
8899esac
8900fi
8901
8902MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8903if test -n "$MAGIC_CMD"; then
8904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8905$as_echo "$MAGIC_CMD" >&6; }
8906else
8907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908$as_echo "no" >&6; }
8909fi
8910
8911
8912  else
8913    MAGIC_CMD=:
8914  fi
8915fi
8916
8917  fi
8918  ;;
8919esac
8920
8921# Use C for the default configuration in the libtool script
8922
8923lt_save_CC="$CC"
8924ac_ext=c
8925ac_cpp='$CPP $CPPFLAGS'
8926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928ac_compiler_gnu=$ac_cv_c_compiler_gnu
8929
8930
8931# Source file extension for C test sources.
8932ac_ext=c
8933
8934# Object file extension for compiled C test sources.
8935objext=o
8936objext=$objext
8937
8938# Code to be used in simple compile tests
8939lt_simple_compile_test_code="int some_variable = 0;"
8940
8941# Code to be used in simple link tests
8942lt_simple_link_test_code='int main(){return(0);}'
8943
8944
8945
8946
8947
8948
8949
8950# If no C compiler was specified, use CC.
8951LTCC=${LTCC-"$CC"}
8952
8953# If no C compiler flags were specified, use CFLAGS.
8954LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8955
8956# Allow CC to be a program name with arguments.
8957compiler=$CC
8958
8959# Save the default compiler, since it gets overwritten when the other
8960# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8961compiler_DEFAULT=$CC
8962
8963# save warnings/boilerplate of simple test code
8964ac_outfile=conftest.$ac_objext
8965echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8966eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8967_lt_compiler_boilerplate=`cat conftest.err`
8968$RM conftest*
8969
8970ac_outfile=conftest.$ac_objext
8971echo "$lt_simple_link_test_code" >conftest.$ac_ext
8972eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8973_lt_linker_boilerplate=`cat conftest.err`
8974$RM -r conftest*
8975
8976
8977if test -n "$compiler"; then
8978
8979lt_prog_compiler_no_builtin_flag=
8980
8981if test "$GCC" = yes; then
8982  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8983
8984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8985$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8986if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  lt_cv_prog_compiler_rtti_exceptions=no
8990   ac_outfile=conftest.$ac_objext
8991   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8992   lt_compiler_flag="-fno-rtti -fno-exceptions"
8993   # Insert the option either (1) after the last *FLAGS variable, or
8994   # (2) before a word containing "conftest.", or (3) at the end.
8995   # Note that $ac_compile itself does not contain backslashes and begins
8996   # with a dollar sign (not a hyphen), so the echo should work correctly.
8997   # The option is referenced via a variable to avoid confusing sed.
8998   lt_compile=`echo "$ac_compile" | $SED \
8999   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9000   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9001   -e 's:$: $lt_compiler_flag:'`
9002   (eval echo "\"\$as_me:9002: $lt_compile\"" >&5)
9003   (eval "$lt_compile" 2>conftest.err)
9004   ac_status=$?
9005   cat conftest.err >&5
9006   echo "$as_me:9006: \$? = $ac_status" >&5
9007   if (exit $ac_status) && test -s "$ac_outfile"; then
9008     # The compiler can only warn and ignore the option if not recognized
9009     # So say no if there are warnings other than the usual output.
9010     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9011     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9013       lt_cv_prog_compiler_rtti_exceptions=yes
9014     fi
9015   fi
9016   $RM conftest*
9017
9018fi
9019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9020$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9021
9022if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9023    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9024else
9025    :
9026fi
9027
9028fi
9029
9030
9031
9032
9033
9034
9035  lt_prog_compiler_wl=
9036lt_prog_compiler_pic=
9037lt_prog_compiler_static=
9038
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9040$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9041
9042  if test "$GCC" = yes; then
9043    lt_prog_compiler_wl='-Wl,'
9044    lt_prog_compiler_static='-static'
9045
9046    case $host_os in
9047      aix*)
9048      # All AIX code is PIC.
9049      if test "$host_cpu" = ia64; then
9050        # AIX 5 now supports IA64 processor
9051        lt_prog_compiler_static='-Bstatic'
9052      fi
9053      ;;
9054
9055    amigaos*)
9056      case $host_cpu in
9057      powerpc)
9058            # see comment about AmigaOS4 .so support
9059            lt_prog_compiler_pic='-fPIC'
9060        ;;
9061      m68k)
9062            # FIXME: we need at least 68020 code to build shared libraries, but
9063            # adding the `-m68020' flag to GCC prevents building anything better,
9064            # like `-m68040'.
9065            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9066        ;;
9067      esac
9068      ;;
9069
9070    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9071      # PIC is the default for these OSes.
9072      ;;
9073
9074    mingw* | cygwin* | pw32* | os2* | cegcc*)
9075      # This hack is so that the source file can tell whether it is being
9076      # built for inclusion in a dll (and should export symbols for example).
9077      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9078      # (--disable-auto-import) libraries
9079      lt_prog_compiler_pic='-DDLL_EXPORT'
9080      ;;
9081
9082    darwin* | rhapsody*)
9083      # PIC is the default on this platform
9084      # Common symbols not allowed in MH_DYLIB files
9085      lt_prog_compiler_pic='-fno-common'
9086      ;;
9087
9088    hpux*)
9089      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9090      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9091      # sets the default TLS model and affects inlining.
9092      case $host_cpu in
9093      hppa*64*)
9094        # +Z the default
9095        ;;
9096      *)
9097        lt_prog_compiler_pic='-fPIC'
9098        ;;
9099      esac
9100      ;;
9101
9102    interix[3-9]*)
9103      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9104      # Instead, we relocate shared libraries at runtime.
9105      ;;
9106
9107    msdosdjgpp*)
9108      # Just because we use GCC doesn't mean we suddenly get shared libraries
9109      # on systems that don't support them.
9110      lt_prog_compiler_can_build_shared=no
9111      enable_shared=no
9112      ;;
9113
9114    *nto* | *qnx*)
9115      # QNX uses GNU C++, but need to define -shared option too, otherwise
9116      # it will coredump.
9117      lt_prog_compiler_pic='-fPIC -shared'
9118      ;;
9119
9120    sysv4*MP*)
9121      if test -d /usr/nec; then
9122        lt_prog_compiler_pic=-Kconform_pic
9123      fi
9124      ;;
9125
9126    *)
9127      lt_prog_compiler_pic='-fPIC'
9128      ;;
9129    esac
9130  else
9131    # PORTME Check for flag to pass linker flags through the system compiler.
9132    case $host_os in
9133    aix*)
9134      lt_prog_compiler_wl='-Wl,'
9135      if test "$host_cpu" = ia64; then
9136        # AIX 5 now supports IA64 processor
9137        lt_prog_compiler_static='-Bstatic'
9138      else
9139        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9140      fi
9141      ;;
9142
9143    mingw* | cygwin* | pw32* | os2* | cegcc*)
9144      # This hack is so that the source file can tell whether it is being
9145      # built for inclusion in a dll (and should export symbols for example).
9146      lt_prog_compiler_pic='-DDLL_EXPORT'
9147      ;;
9148
9149    hpux9* | hpux10* | hpux11*)
9150      lt_prog_compiler_wl='-Wl,'
9151      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9152      # not for PA HP-UX.
9153      case $host_cpu in
9154      hppa*64*|ia64*)
9155        # +Z the default
9156        ;;
9157      *)
9158        lt_prog_compiler_pic='+Z'
9159        ;;
9160      esac
9161      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9162      lt_prog_compiler_static='${wl}-a ${wl}archive'
9163      ;;
9164
9165    irix5* | irix6* | nonstopux*)
9166      lt_prog_compiler_wl='-Wl,'
9167      # PIC (with -KPIC) is the default.
9168      lt_prog_compiler_static='-non_shared'
9169      ;;
9170
9171    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9172      case $cc_basename in
9173      # old Intel for x86_64 which still supported -KPIC.
9174      ecc*)
9175        lt_prog_compiler_wl='-Wl,'
9176        lt_prog_compiler_pic='-KPIC'
9177        lt_prog_compiler_static='-static'
9178        ;;
9179      # icc used to be incompatible with GCC.
9180      # ICC 10 doesn't accept -KPIC any more.
9181      icc* | ifort*)
9182        lt_prog_compiler_wl='-Wl,'
9183        lt_prog_compiler_pic='-fPIC'
9184        lt_prog_compiler_static='-static'
9185        ;;
9186      # Lahey Fortran 8.1.
9187      lf95*)
9188        lt_prog_compiler_wl='-Wl,'
9189        lt_prog_compiler_pic='--shared'
9190        lt_prog_compiler_static='--static'
9191        ;;
9192      pgcc* | pgf77* | pgf90* | pgf95*)
9193        # Portland Group compilers (*not* the Pentium gcc compiler,
9194        # which looks to be a dead project)
9195        lt_prog_compiler_wl='-Wl,'
9196        lt_prog_compiler_pic='-fpic'
9197        lt_prog_compiler_static='-Bstatic'
9198        ;;
9199      ccc*)
9200        lt_prog_compiler_wl='-Wl,'
9201        # All Alpha code is PIC.
9202        lt_prog_compiler_static='-non_shared'
9203        ;;
9204      xl*)
9205        # IBM XL C 8.0/Fortran 10.1 on PPC
9206        lt_prog_compiler_wl='-Wl,'
9207        lt_prog_compiler_pic='-qpic'
9208        lt_prog_compiler_static='-qstaticlink'
9209        ;;
9210      *)
9211        case `$CC -V 2>&1 | sed 5q` in
9212        *Sun\ C*)
9213          # Sun C 5.9
9214          lt_prog_compiler_pic='-KPIC'
9215          lt_prog_compiler_static='-Bstatic'
9216          lt_prog_compiler_wl='-Wl,'
9217          ;;
9218        *Sun\ F*)
9219          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9220          lt_prog_compiler_pic='-KPIC'
9221          lt_prog_compiler_static='-Bstatic'
9222          lt_prog_compiler_wl=''
9223          ;;
9224        esac
9225        ;;
9226      esac
9227      ;;
9228
9229    newsos6)
9230      lt_prog_compiler_pic='-KPIC'
9231      lt_prog_compiler_static='-Bstatic'
9232      ;;
9233
9234    *nto* | *qnx*)
9235      # QNX uses GNU C++, but need to define -shared option too, otherwise
9236      # it will coredump.
9237      lt_prog_compiler_pic='-fPIC -shared'
9238      ;;
9239
9240    osf3* | osf4* | osf5*)
9241      lt_prog_compiler_wl='-Wl,'
9242      # All OSF/1 code is PIC.
9243      lt_prog_compiler_static='-non_shared'
9244      ;;
9245
9246    rdos*)
9247      lt_prog_compiler_static='-non_shared'
9248      ;;
9249
9250    solaris*)
9251      lt_prog_compiler_pic='-KPIC'
9252      lt_prog_compiler_static='-Bstatic'
9253      case $cc_basename in
9254      f77* | f90* | f95*)
9255        lt_prog_compiler_wl='-Qoption ld ';;
9256      *)
9257        lt_prog_compiler_wl='-Wl,';;
9258      esac
9259      ;;
9260
9261    sunos4*)
9262      lt_prog_compiler_wl='-Qoption ld '
9263      lt_prog_compiler_pic='-PIC'
9264      lt_prog_compiler_static='-Bstatic'
9265      ;;
9266
9267    sysv4 | sysv4.2uw2* | sysv4.3*)
9268      lt_prog_compiler_wl='-Wl,'
9269      lt_prog_compiler_pic='-KPIC'
9270      lt_prog_compiler_static='-Bstatic'
9271      ;;
9272
9273    sysv4*MP*)
9274      if test -d /usr/nec ;then
9275        lt_prog_compiler_pic='-Kconform_pic'
9276        lt_prog_compiler_static='-Bstatic'
9277      fi
9278      ;;
9279
9280    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9281      lt_prog_compiler_wl='-Wl,'
9282      lt_prog_compiler_pic='-KPIC'
9283      lt_prog_compiler_static='-Bstatic'
9284      ;;
9285
9286    unicos*)
9287      lt_prog_compiler_wl='-Wl,'
9288      lt_prog_compiler_can_build_shared=no
9289      ;;
9290
9291    uts4*)
9292      lt_prog_compiler_pic='-pic'
9293      lt_prog_compiler_static='-Bstatic'
9294      ;;
9295
9296    *)
9297      lt_prog_compiler_can_build_shared=no
9298      ;;
9299    esac
9300  fi
9301
9302case $host_os in
9303  # For platforms which do not support PIC, -DPIC is meaningless:
9304  *djgpp*)
9305    lt_prog_compiler_pic=
9306    ;;
9307  *)
9308    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9309    ;;
9310esac
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9312$as_echo "$lt_prog_compiler_pic" >&6; }
9313
9314
9315
9316
9317
9318
9319#
9320# Check to make sure the PIC flag actually works.
9321#
9322if test -n "$lt_prog_compiler_pic"; then
9323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9324$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9325if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9326  $as_echo_n "(cached) " >&6
9327else
9328  lt_cv_prog_compiler_pic_works=no
9329   ac_outfile=conftest.$ac_objext
9330   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9331   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9332   # Insert the option either (1) after the last *FLAGS variable, or
9333   # (2) before a word containing "conftest.", or (3) at the end.
9334   # Note that $ac_compile itself does not contain backslashes and begins
9335   # with a dollar sign (not a hyphen), so the echo should work correctly.
9336   # The option is referenced via a variable to avoid confusing sed.
9337   lt_compile=`echo "$ac_compile" | $SED \
9338   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9339   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9340   -e 's:$: $lt_compiler_flag:'`
9341   (eval echo "\"\$as_me:9341: $lt_compile\"" >&5)
9342   (eval "$lt_compile" 2>conftest.err)
9343   ac_status=$?
9344   cat conftest.err >&5
9345   echo "$as_me:9345: \$? = $ac_status" >&5
9346   if (exit $ac_status) && test -s "$ac_outfile"; then
9347     # The compiler can only warn and ignore the option if not recognized
9348     # So say no if there are warnings other than the usual output.
9349     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9350     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9351     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9352       lt_cv_prog_compiler_pic_works=yes
9353     fi
9354   fi
9355   $RM conftest*
9356
9357fi
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9359$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9360
9361if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9362    case $lt_prog_compiler_pic in
9363     "" | " "*) ;;
9364     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9365     esac
9366else
9367    lt_prog_compiler_pic=
9368     lt_prog_compiler_can_build_shared=no
9369fi
9370
9371fi
9372
9373
9374
9375
9376
9377
9378#
9379# Check to make sure the static flag actually works.
9380#
9381wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9383$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9384if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  lt_cv_prog_compiler_static_works=no
9388   save_LDFLAGS="$LDFLAGS"
9389   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9390   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9391   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9392     # The linker can only warn and ignore the option if not recognized
9393     # So say no if there are warnings
9394     if test -s conftest.err; then
9395       # Append any errors to the config.log.
9396       cat conftest.err 1>&5
9397       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9398       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9399       if diff conftest.exp conftest.er2 >/dev/null; then
9400         lt_cv_prog_compiler_static_works=yes
9401       fi
9402     else
9403       lt_cv_prog_compiler_static_works=yes
9404     fi
9405   fi
9406   $RM -r conftest*
9407   LDFLAGS="$save_LDFLAGS"
9408
9409fi
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9411$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9412
9413if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9414    :
9415else
9416    lt_prog_compiler_static=
9417fi
9418
9419
9420
9421
9422
9423
9424
9425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9427if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9428  $as_echo_n "(cached) " >&6
9429else
9430  lt_cv_prog_compiler_c_o=no
9431   $RM -r conftest 2>/dev/null
9432   mkdir conftest
9433   cd conftest
9434   mkdir out
9435   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9436
9437   lt_compiler_flag="-o out/conftest2.$ac_objext"
9438   # Insert the option either (1) after the last *FLAGS variable, or
9439   # (2) before a word containing "conftest.", or (3) at the end.
9440   # Note that $ac_compile itself does not contain backslashes and begins
9441   # with a dollar sign (not a hyphen), so the echo should work correctly.
9442   lt_compile=`echo "$ac_compile" | $SED \
9443   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9445   -e 's:$: $lt_compiler_flag:'`
9446   (eval echo "\"\$as_me:9446: $lt_compile\"" >&5)
9447   (eval "$lt_compile" 2>out/conftest.err)
9448   ac_status=$?
9449   cat out/conftest.err >&5
9450   echo "$as_me:9450: \$? = $ac_status" >&5
9451   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9452   then
9453     # The compiler can only warn and ignore the option if not recognized
9454     # So say no if there are warnings
9455     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9456     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9457     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9458       lt_cv_prog_compiler_c_o=yes
9459     fi
9460   fi
9461   chmod u+w . 2>&5
9462   $RM conftest*
9463   # SGI C++ compiler will create directory out/ii_files/ for
9464   # template instantiation
9465   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9466   $RM out/* && rmdir out
9467   cd ..
9468   $RM -r conftest
9469   $RM conftest*
9470
9471fi
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9473$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9474
9475
9476
9477
9478
9479
9480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9481$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9482if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9483  $as_echo_n "(cached) " >&6
9484else
9485  lt_cv_prog_compiler_c_o=no
9486   $RM -r conftest 2>/dev/null
9487   mkdir conftest
9488   cd conftest
9489   mkdir out
9490   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9491
9492   lt_compiler_flag="-o out/conftest2.$ac_objext"
9493   # Insert the option either (1) after the last *FLAGS variable, or
9494   # (2) before a word containing "conftest.", or (3) at the end.
9495   # Note that $ac_compile itself does not contain backslashes and begins
9496   # with a dollar sign (not a hyphen), so the echo should work correctly.
9497   lt_compile=`echo "$ac_compile" | $SED \
9498   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9499   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9500   -e 's:$: $lt_compiler_flag:'`
9501   (eval echo "\"\$as_me:9501: $lt_compile\"" >&5)
9502   (eval "$lt_compile" 2>out/conftest.err)
9503   ac_status=$?
9504   cat out/conftest.err >&5
9505   echo "$as_me:9505: \$? = $ac_status" >&5
9506   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9507   then
9508     # The compiler can only warn and ignore the option if not recognized
9509     # So say no if there are warnings
9510     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9511     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9512     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9513       lt_cv_prog_compiler_c_o=yes
9514     fi
9515   fi
9516   chmod u+w . 2>&5
9517   $RM conftest*
9518   # SGI C++ compiler will create directory out/ii_files/ for
9519   # template instantiation
9520   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9521   $RM out/* && rmdir out
9522   cd ..
9523   $RM -r conftest
9524   $RM conftest*
9525
9526fi
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9528$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9529
9530
9531
9532
9533hard_links="nottested"
9534if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9535  # do not overwrite the value of need_locks provided by the user
9536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9537$as_echo_n "checking if we can lock with hard links... " >&6; }
9538  hard_links=yes
9539  $RM conftest*
9540  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9541  touch conftest.a
9542  ln conftest.a conftest.b 2>&5 || hard_links=no
9543  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9545$as_echo "$hard_links" >&6; }
9546  if test "$hard_links" = no; then
9547    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9548$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9549    need_locks=warn
9550  fi
9551else
9552  need_locks=no
9553fi
9554
9555
9556
9557
9558
9559
9560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9561$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9562
9563  runpath_var=
9564  allow_undefined_flag=
9565  always_export_symbols=no
9566  archive_cmds=
9567  archive_expsym_cmds=
9568  compiler_needs_object=no
9569  enable_shared_with_static_runtimes=no
9570  export_dynamic_flag_spec=
9571  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9572  hardcode_automatic=no
9573  hardcode_direct=no
9574  hardcode_direct_absolute=no
9575  hardcode_libdir_flag_spec=
9576  hardcode_libdir_flag_spec_ld=
9577  hardcode_libdir_separator=
9578  hardcode_minus_L=no
9579  hardcode_shlibpath_var=unsupported
9580  inherit_rpath=no
9581  link_all_deplibs=unknown
9582  module_cmds=
9583  module_expsym_cmds=
9584  old_archive_from_new_cmds=
9585  old_archive_from_expsyms_cmds=
9586  thread_safe_flag_spec=
9587  whole_archive_flag_spec=
9588  # include_expsyms should be a list of space-separated symbols to be *always*
9589  # included in the symbol list
9590  include_expsyms=
9591  # exclude_expsyms can be an extended regexp of symbols to exclude
9592  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9593  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9594  # as well as any symbol that contains `d'.
9595  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9596  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9597  # platforms (ab)use it in PIC code, but their linkers get confused if
9598  # the symbol is explicitly referenced.  Since portable code cannot
9599  # rely on this symbol name, it's probably fine to never include it in
9600  # preloaded symbol tables.
9601  # Exclude shared library initialization/finalization symbols.
9602  extract_expsyms_cmds=
9603
9604  case $host_os in
9605  cygwin* | mingw* | pw32* | cegcc*)
9606    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9607    # When not using gcc, we currently assume that we are using
9608    # Microsoft Visual C++.
9609    if test "$GCC" != yes; then
9610      with_gnu_ld=no
9611    fi
9612    ;;
9613  interix*)
9614    # we just hope/assume this is gcc and not c89 (= MSVC++)
9615    with_gnu_ld=yes
9616    ;;
9617  openbsd*)
9618    with_gnu_ld=no
9619    ;;
9620  linux* | k*bsd*-gnu)
9621    link_all_deplibs=no
9622    ;;
9623  esac
9624
9625  ld_shlibs=yes
9626  if test "$with_gnu_ld" = yes; then
9627    # If archive_cmds runs LD, not CC, wlarc should be empty
9628    wlarc='${wl}'
9629
9630    # Set some defaults for GNU ld with shared library support. These
9631    # are reset later if shared libraries are not supported. Putting them
9632    # here allows them to be overridden if necessary.
9633    runpath_var=LD_RUN_PATH
9634    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9635    export_dynamic_flag_spec='${wl}--export-dynamic'
9636    # ancient GNU ld didn't support --whole-archive et. al.
9637    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9638      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9639    else
9640      whole_archive_flag_spec=
9641    fi
9642    supports_anon_versioning=no
9643    case `$LD -v 2>&1` in
9644      *GNU\ gold*) supports_anon_versioning=yes ;;
9645      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9646      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9647      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9648      *\ 2.11.*) ;; # other 2.11 versions
9649      *) supports_anon_versioning=yes ;;
9650    esac
9651
9652    # See if GNU ld supports shared libraries.
9653    case $host_os in
9654    aix[3-9]*)
9655      # On AIX/PPC, the GNU linker is very broken
9656      if test "$host_cpu" != ia64; then
9657        ld_shlibs=no
9658        cat <<_LT_EOF 1>&2
9659
9660*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9661*** to be unable to reliably create shared libraries on AIX.
9662*** Therefore, libtool is disabling shared libraries support.  If you
9663*** really care for shared libraries, you may want to modify your PATH
9664*** so that a non-GNU linker is found, and then restart.
9665
9666_LT_EOF
9667      fi
9668      ;;
9669
9670    amigaos*)
9671      case $host_cpu in
9672      powerpc)
9673            # see comment about AmigaOS4 .so support
9674            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9675            archive_expsym_cmds=''
9676        ;;
9677      m68k)
9678            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)'
9679            hardcode_libdir_flag_spec='-L$libdir'
9680            hardcode_minus_L=yes
9681        ;;
9682      esac
9683      ;;
9684
9685    beos*)
9686      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9687        allow_undefined_flag=unsupported
9688        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9689        # support --undefined.  This deserves some investigation.  FIXME
9690        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691      else
9692        ld_shlibs=no
9693      fi
9694      ;;
9695
9696    cygwin* | mingw* | pw32* | cegcc*)
9697      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9698      # as there is no search path for DLLs.
9699      hardcode_libdir_flag_spec='-L$libdir'
9700      allow_undefined_flag=unsupported
9701      always_export_symbols=no
9702      enable_shared_with_static_runtimes=yes
9703      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9704
9705      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9706        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9707        # If the export-symbols file already is a .def file (1st line
9708        # is EXPORTS), use it as is; otherwise, prepend...
9709        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9710          cp $export_symbols $output_objdir/$soname.def;
9711        else
9712          echo EXPORTS > $output_objdir/$soname.def;
9713          cat $export_symbols >> $output_objdir/$soname.def;
9714        fi~
9715        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9716      else
9717        ld_shlibs=no
9718      fi
9719      ;;
9720
9721    interix[3-9]*)
9722      hardcode_direct=no
9723      hardcode_shlibpath_var=no
9724      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9725      export_dynamic_flag_spec='${wl}-E'
9726      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9727      # Instead, shared libraries are loaded at an image base (0x10000000 by
9728      # default) and relocated if they conflict, which is a slow very memory
9729      # consuming and fragmenting process.  To avoid this, we pick a random,
9730      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9731      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9732      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9733      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'
9734      ;;
9735
9736    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9737      tmp_diet=no
9738      if test "$host_os" = linux-dietlibc; then
9739        case $cc_basename in
9740          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9741        esac
9742      fi
9743      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9744         && test "$tmp_diet" = no
9745      then
9746        tmp_addflag=
9747        tmp_sharedflag='-shared'
9748        case $cc_basename,$host_cpu in
9749        pgcc*)                          # Portland Group C compiler
9750          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9751          tmp_addflag=' $pic_flag'
9752          ;;
9753        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9754          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9755          tmp_addflag=' $pic_flag -Mnomain' ;;
9756        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9757          tmp_addflag=' -i_dynamic' ;;
9758        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9759          tmp_addflag=' -i_dynamic -nofor_main' ;;
9760        ifc* | ifort*)                  # Intel Fortran compiler
9761          tmp_addflag=' -nofor_main' ;;
9762        lf95*)                          # Lahey Fortran 8.1
9763          whole_archive_flag_spec=
9764          tmp_sharedflag='--shared' ;;
9765        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9766          tmp_sharedflag='-qmkshrobj'
9767          tmp_addflag= ;;
9768        esac
9769        case `$CC -V 2>&1 | sed 5q` in
9770        *Sun\ C*)                       # Sun C 5.9
9771          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9772          compiler_needs_object=yes
9773          tmp_sharedflag='-G' ;;
9774        *Sun\ F*)                       # Sun Fortran 8.3
9775          tmp_sharedflag='-G' ;;
9776        esac
9777        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778
9779        if test "x$supports_anon_versioning" = xyes; then
9780          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9781            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9782            echo "local: *; };" >> $output_objdir/$libname.ver~
9783            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9784        fi
9785
9786        case $cc_basename in
9787        xlf*)
9788          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9789          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9790          hardcode_libdir_flag_spec=
9791          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9792          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9793          if test "x$supports_anon_versioning" = xyes; then
9794            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9795              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9796              echo "local: *; };" >> $output_objdir/$libname.ver~
9797              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9798          fi
9799          ;;
9800        esac
9801      else
9802        ld_shlibs=no
9803      fi
9804      ;;
9805
9806    netbsd* | netbsdelf*-gnu)
9807      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9808        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9809        wlarc=
9810      else
9811        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9813      fi
9814      ;;
9815
9816    solaris*)
9817      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9818        ld_shlibs=no
9819        cat <<_LT_EOF 1>&2
9820
9821*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9822*** create shared libraries on Solaris systems.  Therefore, libtool
9823*** is disabling shared libraries support.  We urge you to upgrade GNU
9824*** binutils to release 2.9.1 or newer.  Another option is to modify
9825*** your PATH or compiler configuration so that the native linker is
9826*** used, and then restart.
9827
9828_LT_EOF
9829      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9830        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9832      else
9833        ld_shlibs=no
9834      fi
9835      ;;
9836
9837    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9838      case `$LD -v 2>&1` in
9839        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9840        ld_shlibs=no
9841        cat <<_LT_EOF 1>&2
9842
9843*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9844*** reliably create shared libraries on SCO systems.  Therefore, libtool
9845*** is disabling shared libraries support.  We urge you to upgrade GNU
9846*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9847*** your PATH or compiler configuration so that the native linker is
9848*** used, and then restart.
9849
9850_LT_EOF
9851        ;;
9852        *)
9853          # For security reasons, it is highly recommended that you always
9854          # use absolute paths for naming shared libraries, and exclude the
9855          # DT_RUNPATH tag from executables and libraries.  But doing so
9856          # requires that you compile everything twice, which is a pain.
9857          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9858            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9859            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9860            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9861          else
9862            ld_shlibs=no
9863          fi
9864        ;;
9865      esac
9866      ;;
9867
9868    sunos4*)
9869      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9870      wlarc=
9871      hardcode_direct=yes
9872      hardcode_shlibpath_var=no
9873      ;;
9874
9875    *)
9876      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9877        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9879      else
9880        ld_shlibs=no
9881      fi
9882      ;;
9883    esac
9884
9885    if test "$ld_shlibs" = no; then
9886      runpath_var=
9887      hardcode_libdir_flag_spec=
9888      export_dynamic_flag_spec=
9889      whole_archive_flag_spec=
9890    fi
9891  else
9892    # PORTME fill in a description of your system's linker (not GNU ld)
9893    case $host_os in
9894    aix3*)
9895      allow_undefined_flag=unsupported
9896      always_export_symbols=yes
9897      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'
9898      # Note: this linker hardcodes the directories in LIBPATH if there
9899      # are no directories specified by -L.
9900      hardcode_minus_L=yes
9901      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9902        # Neither direct hardcoding nor static linking is supported with a
9903        # broken collect2.
9904        hardcode_direct=unsupported
9905      fi
9906      ;;
9907
9908    aix[4-9]*)
9909      if test "$host_cpu" = ia64; then
9910        # On IA64, the linker does run time linking by default, so we don't
9911        # have to do anything special.
9912        aix_use_runtimelinking=no
9913        exp_sym_flag='-Bexport'
9914        no_entry_flag=""
9915      else
9916        # If we're using GNU nm, then we don't want the "-C" option.
9917        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9918        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9919          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9920        else
9921          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9922        fi
9923        aix_use_runtimelinking=no
9924
9925        # Test if we are trying to use run time linking or normal
9926        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9927        # need to do runtime linking.
9928        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9929          for ld_flag in $LDFLAGS; do
9930          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9931            aix_use_runtimelinking=yes
9932            break
9933          fi
9934          done
9935          ;;
9936        esac
9937
9938        exp_sym_flag='-bexport'
9939        no_entry_flag='-bnoentry'
9940      fi
9941
9942      # When large executables or shared objects are built, AIX ld can
9943      # have problems creating the table of contents.  If linking a library
9944      # or program results in "error TOC overflow" add -mminimal-toc to
9945      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9946      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9947
9948      archive_cmds=''
9949      hardcode_direct=yes
9950      hardcode_direct_absolute=yes
9951      hardcode_libdir_separator=':'
9952      link_all_deplibs=yes
9953      file_list_spec='${wl}-f,'
9954
9955      if test "$GCC" = yes; then
9956        case $host_os in aix4.[012]|aix4.[012].*)
9957        # We only want to do this on AIX 4.2 and lower, the check
9958        # below for broken collect2 doesn't work under 4.3+
9959          collect2name=`${CC} -print-prog-name=collect2`
9960          if test -f "$collect2name" &&
9961           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9962          then
9963          # We have reworked collect2
9964          :
9965          else
9966          # We have old collect2
9967          hardcode_direct=unsupported
9968          # It fails to find uninstalled libraries when the uninstalled
9969          # path is not listed in the libpath.  Setting hardcode_minus_L
9970          # to unsupported forces relinking
9971          hardcode_minus_L=yes
9972          hardcode_libdir_flag_spec='-L$libdir'
9973          hardcode_libdir_separator=
9974          fi
9975          ;;
9976        esac
9977        shared_flag='-shared'
9978        if test "$aix_use_runtimelinking" = yes; then
9979          shared_flag="$shared_flag "'${wl}-G'
9980        fi
9981        link_all_deplibs=no
9982      else
9983        # not using gcc
9984        if test "$host_cpu" = ia64; then
9985        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9986        # chokes on -Wl,-G. The following line is correct:
9987          shared_flag='-G'
9988        else
9989          if test "$aix_use_runtimelinking" = yes; then
9990            shared_flag='${wl}-G'
9991          else
9992            shared_flag='${wl}-bM:SRE'
9993          fi
9994        fi
9995      fi
9996
9997      export_dynamic_flag_spec='${wl}-bexpall'
9998      # It seems that -bexpall does not export symbols beginning with
9999      # underscore (_), so it is better to generate a list of symbols to export.
10000      always_export_symbols=yes
10001      if test "$aix_use_runtimelinking" = yes; then
10002        # Warning - without using the other runtime loading flags (-brtl),
10003        # -berok will link without error, but may produce a broken library.
10004        allow_undefined_flag='-berok'
10005        # Determine the default libpath from the value encoded in an
10006        # empty executable.
10007        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008/* end confdefs.h.  */
10009
10010int
10011main ()
10012{
10013
10014  ;
10015  return 0;
10016}
10017_ACEOF
10018if ac_fn_c_try_link "$LINENO"; then :
10019
10020lt_aix_libpath_sed='
10021    /Import File Strings/,/^$/ {
10022        /^0/ {
10023            s/^0  *\(.*\)$/\1/
10024            p
10025        }
10026    }'
10027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10028# Check for a 64-bit object if we didn't find anything.
10029if test -z "$aix_libpath"; then
10030  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10031fi
10032fi
10033rm -f core conftest.err conftest.$ac_objext \
10034    conftest$ac_exeext conftest.$ac_ext
10035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10036
10037        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10038        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10039      else
10040        if test "$host_cpu" = ia64; then
10041          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10042          allow_undefined_flag="-z nodefs"
10043          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"
10044        else
10045         # Determine the default libpath from the value encoded in an
10046         # empty executable.
10047         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048/* end confdefs.h.  */
10049
10050int
10051main ()
10052{
10053
10054  ;
10055  return 0;
10056}
10057_ACEOF
10058if ac_fn_c_try_link "$LINENO"; then :
10059
10060lt_aix_libpath_sed='
10061    /Import File Strings/,/^$/ {
10062        /^0/ {
10063            s/^0  *\(.*\)$/\1/
10064            p
10065        }
10066    }'
10067aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10068# Check for a 64-bit object if we didn't find anything.
10069if test -z "$aix_libpath"; then
10070  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10071fi
10072fi
10073rm -f core conftest.err conftest.$ac_objext \
10074    conftest$ac_exeext conftest.$ac_ext
10075if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10076
10077         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10078          # Warning - without using the other run time loading flags,
10079          # -berok will link without error, but may produce a broken library.
10080          no_undefined_flag=' ${wl}-bernotok'
10081          allow_undefined_flag=' ${wl}-berok'
10082          # Exported symbols can be pulled into shared objects from archives
10083          whole_archive_flag_spec='$convenience'
10084          archive_cmds_need_lc=yes
10085          # This is similar to how AIX traditionally builds its shared libraries.
10086          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10087        fi
10088      fi
10089      ;;
10090
10091    amigaos*)
10092      case $host_cpu in
10093      powerpc)
10094            # see comment about AmigaOS4 .so support
10095            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10096            archive_expsym_cmds=''
10097        ;;
10098      m68k)
10099            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)'
10100            hardcode_libdir_flag_spec='-L$libdir'
10101            hardcode_minus_L=yes
10102        ;;
10103      esac
10104      ;;
10105
10106    bsdi[45]*)
10107      export_dynamic_flag_spec=-rdynamic
10108      ;;
10109
10110    cygwin* | mingw* | pw32* | cegcc*)
10111      # When not using gcc, we currently assume that we are using
10112      # Microsoft Visual C++.
10113      # hardcode_libdir_flag_spec is actually meaningless, as there is
10114      # no search path for DLLs.
10115      hardcode_libdir_flag_spec=' '
10116      allow_undefined_flag=unsupported
10117      # Tell ltmain to make .lib files, not .a files.
10118      libext=lib
10119      # Tell ltmain to make .dll files, not .so files.
10120      shrext_cmds=".dll"
10121      # FIXME: Setting linknames here is a bad hack.
10122      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10123      # The linker will automatically build a .lib file if we build a DLL.
10124      old_archive_from_new_cmds='true'
10125      # FIXME: Should let the user specify the lib program.
10126      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10127      fix_srcfile_path='`cygpath -w "$srcfile"`'
10128      enable_shared_with_static_runtimes=yes
10129      ;;
10130
10131    darwin* | rhapsody*)
10132
10133
10134  archive_cmds_need_lc=no
10135  hardcode_direct=no
10136  hardcode_automatic=yes
10137  hardcode_shlibpath_var=unsupported
10138  whole_archive_flag_spec=''
10139  link_all_deplibs=yes
10140  allow_undefined_flag="$_lt_dar_allow_undefined"
10141  case $cc_basename in
10142     ifort*) _lt_dar_can_shared=yes ;;
10143     *) _lt_dar_can_shared=$GCC ;;
10144  esac
10145  if test "$_lt_dar_can_shared" = "yes"; then
10146    output_verbose_link_cmd=echo
10147    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10148    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10149    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}"
10150    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}"
10151
10152  else
10153  ld_shlibs=no
10154  fi
10155
10156      ;;
10157
10158    dgux*)
10159      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160      hardcode_libdir_flag_spec='-L$libdir'
10161      hardcode_shlibpath_var=no
10162      ;;
10163
10164    freebsd1*)
10165      ld_shlibs=no
10166      ;;
10167
10168    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10169    # support.  Future versions do this automatically, but an explicit c++rt0.o
10170    # does not break anything, and helps significantly (at the cost of a little
10171    # extra space).
10172    freebsd2.2*)
10173      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10174      hardcode_libdir_flag_spec='-R$libdir'
10175      hardcode_direct=yes
10176      hardcode_shlibpath_var=no
10177      ;;
10178
10179    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10180    freebsd2*)
10181      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10182      hardcode_direct=yes
10183      hardcode_minus_L=yes
10184      hardcode_shlibpath_var=no
10185      ;;
10186
10187    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10188    freebsd* | dragonfly*)
10189      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10190      hardcode_libdir_flag_spec='-R$libdir'
10191      hardcode_direct=yes
10192      hardcode_shlibpath_var=no
10193      ;;
10194
10195    hpux9*)
10196      if test "$GCC" = yes; then
10197        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10198      else
10199        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10200      fi
10201      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10202      hardcode_libdir_separator=:
10203      hardcode_direct=yes
10204
10205      # hardcode_minus_L: Not really in the search PATH,
10206      # but as the default location of the library.
10207      hardcode_minus_L=yes
10208      export_dynamic_flag_spec='${wl}-E'
10209      ;;
10210
10211    hpux10*)
10212      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10213        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10214      else
10215        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10216      fi
10217      if test "$with_gnu_ld" = no; then
10218        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10219        hardcode_libdir_flag_spec_ld='+b $libdir'
10220        hardcode_libdir_separator=:
10221        hardcode_direct=yes
10222        hardcode_direct_absolute=yes
10223        export_dynamic_flag_spec='${wl}-E'
10224        # hardcode_minus_L: Not really in the search PATH,
10225        # but as the default location of the library.
10226        hardcode_minus_L=yes
10227      fi
10228      ;;
10229
10230    hpux11*)
10231      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10232        case $host_cpu in
10233        hppa*64*)
10234          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10235          ;;
10236        ia64*)
10237          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10238          ;;
10239        *)
10240          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10241          ;;
10242        esac
10243      else
10244        case $host_cpu in
10245        hppa*64*)
10246          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10247          ;;
10248        ia64*)
10249          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10250          ;;
10251        *)
10252          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10253          ;;
10254        esac
10255      fi
10256      if test "$with_gnu_ld" = no; then
10257        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10258        hardcode_libdir_separator=:
10259
10260        case $host_cpu in
10261        hppa*64*|ia64*)
10262          hardcode_direct=no
10263          hardcode_shlibpath_var=no
10264          ;;
10265        *)
10266          hardcode_direct=yes
10267          hardcode_direct_absolute=yes
10268          export_dynamic_flag_spec='${wl}-E'
10269
10270          # hardcode_minus_L: Not really in the search PATH,
10271          # but as the default location of the library.
10272          hardcode_minus_L=yes
10273          ;;
10274        esac
10275      fi
10276      ;;
10277
10278    irix5* | irix6* | nonstopux*)
10279      if test "$GCC" = yes; then
10280        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10281        # Try to use the -exported_symbol ld option, if it does not
10282        # work, assume that -exports_file does not work either and
10283        # implicitly export all symbols.
10284        save_LDFLAGS="$LDFLAGS"
10285        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287/* end confdefs.h.  */
10288int foo(void) {}
10289_ACEOF
10290if ac_fn_c_try_link "$LINENO"; then :
10291  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10292
10293fi
10294rm -f core conftest.err conftest.$ac_objext \
10295    conftest$ac_exeext conftest.$ac_ext
10296        LDFLAGS="$save_LDFLAGS"
10297      else
10298        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10299        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10300      fi
10301      archive_cmds_need_lc='no'
10302      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10303      hardcode_libdir_separator=:
10304      inherit_rpath=yes
10305      link_all_deplibs=yes
10306      ;;
10307
10308    netbsd* | netbsdelf*-gnu)
10309      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10310        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10311      else
10312        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10313      fi
10314      hardcode_libdir_flag_spec='-R$libdir'
10315      hardcode_direct=yes
10316      hardcode_shlibpath_var=no
10317      ;;
10318
10319    newsos6)
10320      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10321      hardcode_direct=yes
10322      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10323      hardcode_libdir_separator=:
10324      hardcode_shlibpath_var=no
10325      ;;
10326
10327    *nto* | *qnx*)
10328      ;;
10329
10330    openbsd*)
10331      if test -f /usr/libexec/ld.so; then
10332        hardcode_direct=yes
10333        hardcode_shlibpath_var=no
10334        hardcode_direct_absolute=yes
10335        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10336          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10337          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10338          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10339          export_dynamic_flag_spec='${wl}-E'
10340        else
10341          case $host_os in
10342           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10343             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10344             hardcode_libdir_flag_spec='-R$libdir'
10345             ;;
10346           *)
10347             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10348             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10349             ;;
10350          esac
10351        fi
10352      else
10353        ld_shlibs=no
10354      fi
10355      ;;
10356
10357    os2*)
10358      hardcode_libdir_flag_spec='-L$libdir'
10359      hardcode_minus_L=yes
10360      allow_undefined_flag=unsupported
10361      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10362      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10363      ;;
10364
10365    osf3*)
10366      if test "$GCC" = yes; then
10367        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10368        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10369      else
10370        allow_undefined_flag=' -expect_unresolved \*'
10371        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10372      fi
10373      archive_cmds_need_lc='no'
10374      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10375      hardcode_libdir_separator=:
10376      ;;
10377
10378    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10379      if test "$GCC" = yes; then
10380        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10381        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10382        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10383      else
10384        allow_undefined_flag=' -expect_unresolved \*'
10385        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10386        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~
10387        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10388
10389        # Both c and cxx compiler support -rpath directly
10390        hardcode_libdir_flag_spec='-rpath $libdir'
10391      fi
10392      archive_cmds_need_lc='no'
10393      hardcode_libdir_separator=:
10394      ;;
10395
10396    solaris*)
10397      no_undefined_flag=' -z defs'
10398      if test "$GCC" = yes; then
10399        wlarc='${wl}'
10400        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10401        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10402          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10403      else
10404        case `$CC -V 2>&1` in
10405        *"Compilers 5.0"*)
10406          wlarc=''
10407          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10408          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10409          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10410          ;;
10411        *)
10412          wlarc='${wl}'
10413          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10414          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10415          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10416          ;;
10417        esac
10418      fi
10419      hardcode_libdir_flag_spec='-R$libdir'
10420      hardcode_shlibpath_var=no
10421      case $host_os in
10422      solaris2.[0-5] | solaris2.[0-5].*) ;;
10423      *)
10424        # The compiler driver will combine and reorder linker options,
10425        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10426        # but is careful enough not to reorder.
10427        # Supported since Solaris 2.6 (maybe 2.5.1?)
10428        if test "$GCC" = yes; then
10429          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10430        else
10431          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10432        fi
10433        ;;
10434      esac
10435      link_all_deplibs=yes
10436      ;;
10437
10438    sunos4*)
10439      if test "x$host_vendor" = xsequent; then
10440        # Use $CC to link under sequent, because it throws in some extra .o
10441        # files that make .init and .fini sections work.
10442        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10443      else
10444        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10445      fi
10446      hardcode_libdir_flag_spec='-L$libdir'
10447      hardcode_direct=yes
10448      hardcode_minus_L=yes
10449      hardcode_shlibpath_var=no
10450      ;;
10451
10452    sysv4)
10453      case $host_vendor in
10454        sni)
10455          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456          hardcode_direct=yes # is this really true???
10457        ;;
10458        siemens)
10459          ## LD is ld it makes a PLAMLIB
10460          ## CC just makes a GrossModule.
10461          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10462          reload_cmds='$CC -r -o $output$reload_objs'
10463          hardcode_direct=no
10464        ;;
10465        motorola)
10466          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10468        ;;
10469      esac
10470      runpath_var='LD_RUN_PATH'
10471      hardcode_shlibpath_var=no
10472      ;;
10473
10474    sysv4.3*)
10475      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476      hardcode_shlibpath_var=no
10477      export_dynamic_flag_spec='-Bexport'
10478      ;;
10479
10480    sysv4*MP*)
10481      if test -d /usr/nec; then
10482        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10483        hardcode_shlibpath_var=no
10484        runpath_var=LD_RUN_PATH
10485        hardcode_runpath_var=yes
10486        ld_shlibs=yes
10487      fi
10488      ;;
10489
10490    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10491      no_undefined_flag='${wl}-z,text'
10492      archive_cmds_need_lc=no
10493      hardcode_shlibpath_var=no
10494      runpath_var='LD_RUN_PATH'
10495
10496      if test "$GCC" = yes; then
10497        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10498        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10499      else
10500        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10501        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10502      fi
10503      ;;
10504
10505    sysv5* | sco3.2v5* | sco5v6*)
10506      # Note: We can NOT use -z defs as we might desire, because we do not
10507      # link with -lc, and that would cause any symbols used from libc to
10508      # always be unresolved, which means just about no library would
10509      # ever link correctly.  If we're not using GNU ld we use -z text
10510      # though, which does catch some bad symbols but isn't as heavy-handed
10511      # as -z defs.
10512      no_undefined_flag='${wl}-z,text'
10513      allow_undefined_flag='${wl}-z,nodefs'
10514      archive_cmds_need_lc=no
10515      hardcode_shlibpath_var=no
10516      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10517      hardcode_libdir_separator=':'
10518      link_all_deplibs=yes
10519      export_dynamic_flag_spec='${wl}-Bexport'
10520      runpath_var='LD_RUN_PATH'
10521
10522      if test "$GCC" = yes; then
10523        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10524        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525      else
10526        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10527        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10528      fi
10529      ;;
10530
10531    uts4*)
10532      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533      hardcode_libdir_flag_spec='-L$libdir'
10534      hardcode_shlibpath_var=no
10535      ;;
10536
10537    *)
10538      ld_shlibs=no
10539      ;;
10540    esac
10541
10542    if test x$host_vendor = xsni; then
10543      case $host in
10544      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10545        export_dynamic_flag_spec='${wl}-Blargedynsym'
10546        ;;
10547      esac
10548    fi
10549  fi
10550
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10552$as_echo "$ld_shlibs" >&6; }
10553test "$ld_shlibs" = no && can_build_shared=no
10554
10555with_gnu_ld=$with_gnu_ld
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571#
10572# Do we need to explicitly link libc?
10573#
10574case "x$archive_cmds_need_lc" in
10575x|xyes)
10576  # Assume -lc should be added
10577  archive_cmds_need_lc=yes
10578
10579  if test "$enable_shared" = yes && test "$GCC" = yes; then
10580    case $archive_cmds in
10581    *'~'*)
10582      # FIXME: we may have to deal with multi-command sequences.
10583      ;;
10584    '$CC '*)
10585      # Test whether the compiler implicitly links with -lc since on some
10586      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10587      # to ld, don't add -lc before -lgcc.
10588      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10589$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10590      $RM conftest*
10591      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10592
10593      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10594  (eval $ac_compile) 2>&5
10595  ac_status=$?
10596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10597  test $ac_status = 0; } 2>conftest.err; then
10598        soname=conftest
10599        lib=conftest
10600        libobjs=conftest.$ac_objext
10601        deplibs=
10602        wl=$lt_prog_compiler_wl
10603        pic_flag=$lt_prog_compiler_pic
10604        compiler_flags=-v
10605        linker_flags=-v
10606        verstring=
10607        output_objdir=.
10608        libname=conftest
10609        lt_save_allow_undefined_flag=$allow_undefined_flag
10610        allow_undefined_flag=
10611        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10612  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10613  ac_status=$?
10614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10615  test $ac_status = 0; }
10616        then
10617          archive_cmds_need_lc=no
10618        else
10619          archive_cmds_need_lc=yes
10620        fi
10621        allow_undefined_flag=$lt_save_allow_undefined_flag
10622      else
10623        cat conftest.err 1>&5
10624      fi
10625      $RM conftest*
10626      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10627$as_echo "$archive_cmds_need_lc" >&6; }
10628      ;;
10629    esac
10630  fi
10631  ;;
10632esac
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10791$as_echo_n "checking dynamic linker characteristics... " >&6; }
10792
10793if test "$GCC" = yes; then
10794  case $host_os in
10795    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10796    *) lt_awk_arg="/^libraries:/" ;;
10797  esac
10798  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10799  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10800    # if the path contains ";" then we assume it to be the separator
10801    # otherwise default to the standard path separator (i.e. ":") - it is
10802    # assumed that no part of a normal pathname contains ";" but that should
10803    # okay in the real world where ";" in dirpaths is itself problematic.
10804    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10805  else
10806    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10807  fi
10808  # Ok, now we have the path, separated by spaces, we can step through it
10809  # and add multilib dir if necessary.
10810  lt_tmp_lt_search_path_spec=
10811  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10812  for lt_sys_path in $lt_search_path_spec; do
10813    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10814      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10815    else
10816      test -d "$lt_sys_path" && \
10817        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10818    fi
10819  done
10820  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10821BEGIN {RS=" "; FS="/|\n";} {
10822  lt_foo="";
10823  lt_count=0;
10824  for (lt_i = NF; lt_i > 0; lt_i--) {
10825    if ($lt_i != "" && $lt_i != ".") {
10826      if ($lt_i == "..") {
10827        lt_count++;
10828      } else {
10829        if (lt_count == 0) {
10830          lt_foo="/" $lt_i lt_foo;
10831        } else {
10832          lt_count--;
10833        }
10834      }
10835    }
10836  }
10837  if (lt_foo != "") { lt_freq[lt_foo]++; }
10838  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10839}'`
10840  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10841else
10842  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10843fi
10844library_names_spec=
10845libname_spec='lib$name'
10846soname_spec=
10847shrext_cmds=".so"
10848postinstall_cmds=
10849postuninstall_cmds=
10850finish_cmds=
10851finish_eval=
10852shlibpath_var=
10853shlibpath_overrides_runpath=unknown
10854version_type=none
10855dynamic_linker="$host_os ld.so"
10856sys_lib_dlsearch_path_spec="/lib /usr/lib"
10857need_lib_prefix=unknown
10858hardcode_into_libs=no
10859
10860# when you set need_version to no, make sure it does not cause -set_version
10861# flags to be left without arguments
10862need_version=unknown
10863
10864case $host_os in
10865aix3*)
10866  version_type=linux
10867  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10868  shlibpath_var=LIBPATH
10869
10870  # AIX 3 has no versioning support, so we append a major version to the name.
10871  soname_spec='${libname}${release}${shared_ext}$major'
10872  ;;
10873
10874aix[4-9]*)
10875  version_type=linux
10876  need_lib_prefix=no
10877  need_version=no
10878  hardcode_into_libs=yes
10879  if test "$host_cpu" = ia64; then
10880    # AIX 5 supports IA64
10881    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10882    shlibpath_var=LD_LIBRARY_PATH
10883  else
10884    # With GCC up to 2.95.x, collect2 would create an import file
10885    # for dependence libraries.  The import file would start with
10886    # the line `#! .'.  This would cause the generated library to
10887    # depend on `.', always an invalid library.  This was fixed in
10888    # development snapshots of GCC prior to 3.0.
10889    case $host_os in
10890      aix4 | aix4.[01] | aix4.[01].*)
10891      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10892           echo ' yes '
10893           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10894        :
10895      else
10896        can_build_shared=no
10897      fi
10898      ;;
10899    esac
10900    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10901    # soname into executable. Probably we can add versioning support to
10902    # collect2, so additional links can be useful in future.
10903    if test "$aix_use_runtimelinking" = yes; then
10904      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10905      # instead of lib<name>.a to let people know that these are not
10906      # typical AIX shared libraries.
10907      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908    else
10909      # We preserve .a as extension for shared libraries through AIX4.2
10910      # and later when we are not doing run time linking.
10911      library_names_spec='${libname}${release}.a $libname.a'
10912      soname_spec='${libname}${release}${shared_ext}$major'
10913    fi
10914    shlibpath_var=LIBPATH
10915  fi
10916  ;;
10917
10918amigaos*)
10919  case $host_cpu in
10920  powerpc)
10921    # Since July 2007 AmigaOS4 officially supports .so libraries.
10922    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10923    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924    ;;
10925  m68k)
10926    library_names_spec='$libname.ixlibrary $libname.a'
10927    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10928    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10929    ;;
10930  esac
10931  ;;
10932
10933beos*)
10934  library_names_spec='${libname}${shared_ext}'
10935  dynamic_linker="$host_os ld.so"
10936  shlibpath_var=LIBRARY_PATH
10937  ;;
10938
10939bsdi[45]*)
10940  version_type=linux
10941  need_version=no
10942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943  soname_spec='${libname}${release}${shared_ext}$major'
10944  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10945  shlibpath_var=LD_LIBRARY_PATH
10946  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10947  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10948  # the default ld.so.conf also contains /usr/contrib/lib and
10949  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10950  # libtool to hard-code these into programs
10951  ;;
10952
10953cygwin* | mingw* | pw32* | cegcc*)
10954  version_type=windows
10955  shrext_cmds=".dll"
10956  need_version=no
10957  need_lib_prefix=no
10958
10959  case $GCC,$host_os in
10960  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10961    library_names_spec='$libname.dll.a'
10962    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10963    postinstall_cmds='base_file=`basename \${file}`~
10964      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10965      dldir=$destdir/`dirname \$dlpath`~
10966      test -d \$dldir || mkdir -p \$dldir~
10967      $install_prog $dir/$dlname \$dldir/$dlname~
10968      chmod a+x \$dldir/$dlname~
10969      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10970        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10971