OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [configure] - Blame information for rev 787

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 784 jeremybenn
# From configure.ac Id: configure.ac 2459 2012-03-21 19:10:53Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 787 jeremybenn
# Generated by GNU Autoconf 2.68 for or1ksim 2012-03-23.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8 625 jeremybenn
#
9 19 jeremybenn
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 625 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 538 julius
# Foundation, Inc.
12 346 jeremybenn
#
13 625 jeremybenn
#
14 19 jeremybenn
# This configure script is free software; the Free Software Foundation
15
# gives unlimited permission to copy, distribute and modify it.
16 82 jeremybenn
#
17
# Copyright (C) 1999-2008 OpenCores
18
# Copyright (C) 2008, 2010 Embecosm Limited
19
#
20
# Contributor Jeremy Bennett 
21
#
22
# This file is part of OpenRISC 1000 Architectural Simulator.
23
#
24
# This program is free software; you can redistribute it and/or modify it
25
# under the terms of the GNU General Public License as published by the Free
26
# Software Foundation; either version 3 of the License, or (at your option)
27
# any later version.
28
#
29
# This program is distributed in the hope that it will be useful, but WITHOUT
30
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
31
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
32
# more details.
33
#
34
# You should have received a copy of the GNU General Public License along
35
# with this program.  If not, see .
36 346 jeremybenn
## -------------------- ##
37
## M4sh Initialization. ##
38
## -------------------- ##
39 19 jeremybenn
 
40
# Be more Bourne compatible
41
DUALCASE=1; export DUALCASE # for MKS sh
42 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
43 19 jeremybenn
  emulate sh
44
  NULLCMD=:
45 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
47
  alias -g '${1+"$@"}'='"$@"'
48
  setopt NO_GLOB_SUBST
49
else
50 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
51
  *posix*) :
52
    set -o posix ;; #(
53
  *) :
54
     ;;
55 19 jeremybenn
esac
56
fi
57
 
58
 
59 82 jeremybenn
as_nl='
60
'
61
export as_nl
62
# Printing a long string crashes Solaris 7 /usr/bin/printf.
63
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
64
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
65
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
66 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
67
# but without wasting forks for bash or zsh.
68
if test -z "$BASH_VERSION$ZSH_VERSION" \
69
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
70
  as_echo='print -r --'
71
  as_echo_n='print -rn --'
72
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
73 82 jeremybenn
  as_echo='printf %s\n'
74
  as_echo_n='printf %s'
75
else
76
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
77
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
78
    as_echo_n='/usr/ucb/echo -n'
79 19 jeremybenn
  else
80 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
81
    as_echo_n_body='eval
82
      arg=$1;
83 346 jeremybenn
      case $arg in #(
84 82 jeremybenn
      *"$as_nl"*)
85
        expr "X$arg" : "X\\(.*\\)$as_nl";
86
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
87
      esac;
88
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
89
    '
90
    export as_echo_n_body
91
    as_echo_n='sh -c $as_echo_n_body as_echo'
92 19 jeremybenn
  fi
93 82 jeremybenn
  export as_echo_body
94
  as_echo='sh -c $as_echo_body as_echo'
95 19 jeremybenn
fi
96
 
97 82 jeremybenn
# The user is always right.
98
if test "${PATH_SEPARATOR+set}" != set; then
99
  PATH_SEPARATOR=:
100
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
101
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
102
      PATH_SEPARATOR=';'
103
  }
104
fi
105
 
106 19 jeremybenn
 
107
# IFS
108
# We need space, tab and new line, in precisely that order.  Quoting is
109
# there to prevent editors from complaining about space-tab.
110
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
111
# splitting by setting IFS to empty value.)
112
IFS=" ""        $as_nl"
113
 
114
# Find who we are.  Look in the path if we contain no directory separator.
115 625 jeremybenn
as_myself=
116 346 jeremybenn
case $0 in #((
117 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
118
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119
for as_dir in $PATH
120
do
121
  IFS=$as_save_IFS
122
  test -z "$as_dir" && as_dir=.
123 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124
  done
125 19 jeremybenn
IFS=$as_save_IFS
126
 
127
     ;;
128
esac
129
# We did not find ourselves, most probably we were run as `sh COMMAND'
130
# in which case we are not to be found in the path.
131
if test "x$as_myself" = x; then
132
  as_myself=$0
133
fi
134
if test ! -f "$as_myself"; then
135 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
136 346 jeremybenn
  exit 1
137 19 jeremybenn
fi
138
 
139 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
140
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
141
# suppresses any "Segmentation fault" message there.  '((' could
142
# trigger a bug in pdksh 5.2.14.
143
for as_var in BASH_ENV ENV MAIL MAILPATH
144
do eval test x\${$as_var+set} = xset \
145
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
146 19 jeremybenn
done
147
PS1='$ '
148
PS2='> '
149
PS4='+ '
150
 
151
# NLS nuisances.
152 82 jeremybenn
LC_ALL=C
153
export LC_ALL
154
LANGUAGE=C
155
export LANGUAGE
156 19 jeremybenn
 
157
# CDPATH.
158 346 jeremybenn
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
159 19 jeremybenn
 
160
if test "x$CONFIG_SHELL" = x; then
161 346 jeremybenn
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162
  emulate sh
163
  NULLCMD=:
164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
  # is contrary to our usage.  Disable this feature.
166
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167
  setopt NO_GLOB_SUBST
168 19 jeremybenn
else
169 346 jeremybenn
  case \`(set -o) 2>/dev/null\` in #(
170
  *posix*) :
171
    set -o posix ;; #(
172
  *) :
173
     ;;
174
esac
175 19 jeremybenn
fi
176 346 jeremybenn
"
177
  as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
182 19 jeremybenn
 
183
exitcode=0
184 346 jeremybenn
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189 19 jeremybenn
 
190
else
191 346 jeremybenn
  exitcode=1; echo positional parameters were not saved.
192 19 jeremybenn
fi
193 346 jeremybenn
test x\$exitcode = x0 || exit 1"
194
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198 784 jeremybenn
test \$(( 1 + 1 )) = 2 || exit 1
199
 
200
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204
    PATH=/empty FPATH=/empty; export PATH FPATH
205
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
207 346 jeremybenn
  if (eval "$as_required") 2>/dev/null; then :
208
  as_have_required=yes
209 19 jeremybenn
else
210 346 jeremybenn
  as_have_required=no
211 19 jeremybenn
fi
212 346 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
213 19 jeremybenn
 
214
else
215 346 jeremybenn
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
216
as_found=false
217 19 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218
do
219
  IFS=$as_save_IFS
220
  test -z "$as_dir" && as_dir=.
221 346 jeremybenn
  as_found=:
222
  case $as_dir in #(
223 19 jeremybenn
         /*)
224
           for as_base in sh bash ksh sh5; do
225 346 jeremybenn
             # Try only shells that exist, to save several forks.
226
             as_shell=$as_dir/$as_base
227
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
228
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
229
  CONFIG_SHELL=$as_shell as_have_required=yes
230
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231
  break 2
232
fi
233
fi
234 19 jeremybenn
           done;;
235
       esac
236 346 jeremybenn
  as_found=false
237 19 jeremybenn
done
238 346 jeremybenn
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
240
  CONFIG_SHELL=$SHELL as_have_required=yes
241
fi; }
242 19 jeremybenn
IFS=$as_save_IFS
243
 
244
 
245 346 jeremybenn
      if test "x$CONFIG_SHELL" != x; then :
246
  # We cannot yet assume a decent shell, so we have to provide a
247
        # neutralization value for shells without unset; and this also
248
        # works around shells that cannot unset nonexistent variables.
249 625 jeremybenn
        # Preserve -v and -x to the replacement shell.
250 346 jeremybenn
        BASH_ENV=/dev/null
251
        ENV=/dev/null
252
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
253
        export CONFIG_SHELL
254 625 jeremybenn
        case $- in # ((((
255
          *v*x* | *x*v* ) as_opts=-vx ;;
256
          *v* ) as_opts=-v ;;
257
          *x* ) as_opts=-x ;;
258
          * ) as_opts= ;;
259
        esac
260
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
261 19 jeremybenn
fi
262
 
263 346 jeremybenn
    if test x$as_have_required = xno; then :
264
  $as_echo "$0: This script requires a shell more modern than all"
265
  $as_echo "$0: the shells that I found on your system."
266
  if test x${ZSH_VERSION+set} = xset ; then
267
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269
  else
270
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
271
$0: openrisc@opencores.org about your system, including any
272
$0: error possibly output before this message. Then install
273
$0: a modern shell, or manually run the script under such a
274
$0: shell if you do have one."
275
  fi
276
  exit 1
277 19 jeremybenn
fi
278
fi
279
fi
280 346 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
281
export SHELL
282
# Unset more variables known to interfere with behavior of common tools.
283
CLICOLOR_FORCE= GREP_OPTIONS=
284
unset CLICOLOR_FORCE GREP_OPTIONS
285 19 jeremybenn
 
286 346 jeremybenn
## --------------------- ##
287
## M4sh Shell Functions. ##
288
## --------------------- ##
289
# as_fn_unset VAR
290
# ---------------
291
# Portably unset VAR.
292
as_fn_unset ()
293
{
294
  { eval $1=; unset $1;}
295
}
296
as_unset=as_fn_unset
297 19 jeremybenn
 
298 346 jeremybenn
# as_fn_set_status STATUS
299
# -----------------------
300
# Set $? to STATUS, without forking.
301
as_fn_set_status ()
302
{
303
  return $1
304
} # as_fn_set_status
305 19 jeremybenn
 
306 346 jeremybenn
# as_fn_exit STATUS
307
# -----------------
308
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309
as_fn_exit ()
310
{
311
  set +e
312
  as_fn_set_status $1
313
  exit $1
314
} # as_fn_exit
315 19 jeremybenn
 
316 346 jeremybenn
# as_fn_mkdir_p
317
# -------------
318
# Create "$as_dir" as a directory, including parents if necessary.
319
as_fn_mkdir_p ()
320
{
321 19 jeremybenn
 
322 346 jeremybenn
  case $as_dir in #(
323
  -*) as_dir=./$as_dir;;
324
  esac
325
  test -d "$as_dir" || eval $as_mkdir_p || {
326
    as_dirs=
327
    while :; do
328
      case $as_dir in #(
329
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330
      *) as_qdir=$as_dir;;
331
      esac
332
      as_dirs="'$as_qdir' $as_dirs"
333
      as_dir=`$as_dirname -- "$as_dir" ||
334
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335
         X"$as_dir" : 'X\(//\)[^/]' \| \
336
         X"$as_dir" : 'X\(//\)$' \| \
337
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338
$as_echo X"$as_dir" |
339
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340
            s//\1/
341
            q
342
          }
343
          /^X\(\/\/\)[^/].*/{
344
            s//\1/
345
            q
346
          }
347
          /^X\(\/\/\)$/{
348
            s//\1/
349
            q
350
          }
351
          /^X\(\/\).*/{
352
            s//\1/
353
            q
354
          }
355
          s/.*/./; q'`
356
      test -d "$as_dir" && break
357
    done
358
    test -z "$as_dirs" || eval "mkdir $as_dirs"
359 625 jeremybenn
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 19 jeremybenn
 
361
 
362 346 jeremybenn
} # as_fn_mkdir_p
363
# as_fn_append VAR VALUE
364
# ----------------------
365
# Append the text in VALUE to the end of the definition contained in VAR. Take
366
# advantage of any shell optimizations that allow amortized linear growth over
367
# repeated appends, instead of the typical quadratic growth present in naive
368
# implementations.
369
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
370
  eval 'as_fn_append ()
371
  {
372
    eval $1+=\$2
373
  }'
374
else
375
  as_fn_append ()
376
  {
377
    eval $1=\$$1\$2
378
  }
379
fi # as_fn_append
380 19 jeremybenn
 
381 346 jeremybenn
# as_fn_arith ARG...
382
# ------------------
383
# Perform arithmetic evaluation on the ARGs, and store the result in the
384
# global $as_val. Take advantage of shells that can avoid forks. The arguments
385
# must be portable across $(()) and expr.
386
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
387
  eval 'as_fn_arith ()
388
  {
389
    as_val=$(( $* ))
390
  }'
391
else
392
  as_fn_arith ()
393
  {
394
    as_val=`expr "$@" || test $? -eq 1`
395
  }
396
fi # as_fn_arith
397 19 jeremybenn
 
398
 
399 625 jeremybenn
# as_fn_error STATUS ERROR [LINENO LOG_FD]
400
# ----------------------------------------
401 346 jeremybenn
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
402
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
403 625 jeremybenn
# script with STATUS, using 1 if that was 0.
404 346 jeremybenn
as_fn_error ()
405
{
406 625 jeremybenn
  as_status=$1; test $as_status -eq 0 && as_status=1
407
  if test "$4"; then
408
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
409
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
410 346 jeremybenn
  fi
411 625 jeremybenn
  $as_echo "$as_me: error: $2" >&2
412 346 jeremybenn
  as_fn_exit $as_status
413
} # as_fn_error
414 19 jeremybenn
 
415 346 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
416
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
417
  as_expr=expr
418 19 jeremybenn
else
419 346 jeremybenn
  as_expr=false
420 19 jeremybenn
fi
421
 
422 346 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
423
  as_basename=basename
424 19 jeremybenn
else
425 346 jeremybenn
  as_basename=false
426 19 jeremybenn
fi
427
 
428 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
429
  as_dirname=dirname
430 19 jeremybenn
else
431 346 jeremybenn
  as_dirname=false
432 19 jeremybenn
fi
433
 
434 346 jeremybenn
as_me=`$as_basename -- "$0" ||
435
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
436
         X"$0" : 'X\(//\)$' \| \
437
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
438
$as_echo X/"$0" |
439
    sed '/^.*\/\([^/][^/]*\)\/*$/{
440
            s//\1/
441
            q
442
          }
443
          /^X\/\(\/\/\)$/{
444
            s//\1/
445
            q
446
          }
447
          /^X\/\(\/\).*/{
448
            s//\1/
449
            q
450
          }
451
          s/.*/./; q'`
452 19 jeremybenn
 
453 346 jeremybenn
# Avoid depending upon Character Ranges.
454
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
455
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
456
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
457
as_cr_digits='0123456789'
458
as_cr_alnum=$as_cr_Letters$as_cr_digits
459 19 jeremybenn
 
460
 
461 346 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
462
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
463
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
464
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
465
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
466 19 jeremybenn
  sed -n '
467
    p
468
    /[$]LINENO/=
469
  ' <$as_myself |
470
    sed '
471
      s/[$]LINENO.*/&-/
472
      t lineno
473
      b
474
      :lineno
475
      N
476
      :loop
477
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
478
      t loop
479
      s/-\n.*//
480
    ' >$as_me.lineno &&
481
  chmod +x "$as_me.lineno" ||
482 346 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
483 19 jeremybenn
 
484
  # Don't try to exec as it changes $[0], causing all sort of problems
485
  # (the dirname of $[0] is not the place where we might find the
486
  # original and so on.  Autoconf is especially sensitive to this).
487
  . "./$as_me.lineno"
488
  # Exit status is that of the last command.
489
  exit
490
}
491
 
492
ECHO_C= ECHO_N= ECHO_T=
493 346 jeremybenn
case `echo -n x` in #(((((
494 19 jeremybenn
-n*)
495 346 jeremybenn
  case `echo 'xy\c'` in
496 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497 346 jeremybenn
  xy)  ECHO_C='\c';;
498
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
499
       ECHO_T=' ';;
500 19 jeremybenn
  esac;;
501
*)
502
  ECHO_N='-n';;
503
esac
504
 
505
rm -f conf$$ conf$$.exe conf$$.file
506
if test -d conf$$.dir; then
507
  rm -f conf$$.dir/conf$$.file
508
else
509
  rm -f conf$$.dir
510 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
511 19 jeremybenn
fi
512 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
513
  if ln -s conf$$.file conf$$ 2>/dev/null; then
514
    as_ln_s='ln -s'
515
    # ... but there are two gotchas:
516
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
517
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
518
    # In both cases, we have to default to `cp -p'.
519
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
520
      as_ln_s='cp -p'
521
  elif ln conf$$.file conf$$ 2>/dev/null; then
522
    as_ln_s=ln
523
  else
524 19 jeremybenn
    as_ln_s='cp -p'
525 82 jeremybenn
  fi
526 19 jeremybenn
else
527
  as_ln_s='cp -p'
528
fi
529
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
530
rmdir conf$$.dir 2>/dev/null
531
 
532
if mkdir -p . 2>/dev/null; then
533 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
534 19 jeremybenn
else
535
  test -d ./-p && rmdir ./-p
536
  as_mkdir_p=false
537
fi
538
 
539
if test -x / >/dev/null 2>&1; then
540
  as_test_x='test -x'
541
else
542
  if ls -dL / >/dev/null 2>&1; then
543
    as_ls_L_option=L
544
  else
545
    as_ls_L_option=
546
  fi
547
  as_test_x='
548
    eval sh -c '\''
549
      if test -d "$1"; then
550 82 jeremybenn
        test -d "$1/.";
551 19 jeremybenn
      else
552 346 jeremybenn
        case $1 in #(
553 82 jeremybenn
        -*)set "./$1";;
554 19 jeremybenn
        esac;
555 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
556 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
557
    '\'' sh
558
  '
559
fi
560
as_executable_p=$as_test_x
561
 
562
# Sed expression to map a string onto a valid CPP name.
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
 
565
# Sed expression to map a string onto a valid variable name.
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
 
568
SHELL=${CONFIG_SHELL-/bin/sh}
569
 
570
 
571 625 jeremybenn
test -n "$DJDIR" || exec 7<&0 
572
exec 6>&1
573 19 jeremybenn
 
574
# Name of the host.
575 625 jeremybenn
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 19 jeremybenn
# so uname gets run too.
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
 
579
#
580
# Initializations.
581
#
582
ac_default_prefix=/usr/local
583
ac_clean_files=
584
ac_config_libobj_dir=.
585
LIBOBJS=
586
cross_compiling=no
587
subdirs=
588
MFLAGS=
589
MAKEFLAGS=
590
 
591
# Identity of this package.
592
PACKAGE_NAME='or1ksim'
593
PACKAGE_TARNAME='or1ksim'
594 787 jeremybenn
PACKAGE_VERSION='2012-03-23'
595
PACKAGE_STRING='or1ksim 2012-03-23'
596 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
597 346 jeremybenn
PACKAGE_URL=''
598 19 jeremybenn
 
599
# Factoring default headers for most tests.
600
ac_includes_default="\
601
#include 
602
#ifdef HAVE_SYS_TYPES_H
603
# include 
604
#endif
605
#ifdef HAVE_SYS_STAT_H
606
# include 
607
#endif
608
#ifdef STDC_HEADERS
609
# include 
610
# include 
611
#else
612
# ifdef HAVE_STDLIB_H
613
#  include 
614
# endif
615
#endif
616
#ifdef HAVE_STRING_H
617
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618
#  include 
619
# endif
620
# include 
621
#endif
622
#ifdef HAVE_STRINGS_H
623
# include 
624
#endif
625
#ifdef HAVE_INTTYPES_H
626
# include 
627
#endif
628
#ifdef HAVE_STDINT_H
629
# include 
630
#endif
631
#ifdef HAVE_UNISTD_H
632
# include 
633
#endif"
634
 
635 91 jeremybenn
ac_unique_file="cpu/or32/execute.c"
636
enable_option_checking=no
637 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
638
am__EXEEXT_TRUE
639
LTLIBOBJS
640
INCLUDES
641
TERMCAP_LIB
642
SUMVERSION
643
ARFLAGS
644
LOCAL_DEFS
645
LOCAL_LDFLAGS
646
LOCAL_CFLAGS
647
BUILD_DIR
648 96 jeremybenn
RUNTESTDEFAULTFLAGS
649 90 jeremybenn
DEJAGNU
650 82 jeremybenn
GENERATE_NEEDED_FALSE
651
GENERATE_NEEDED_TRUE
652
DEBUGFLAGS
653
USE_ARGDATE_FALSE
654
USE_ARGDATE_TRUE
655
USE_ARGREX_FALSE
656
USE_ARGREX_TRUE
657
USE_SYS_GETOPTLONG_FALSE
658
USE_SYS_GETOPTLONG_TRUE
659
POW_LIB
660
LIBOBJS
661
am__fastdepCCAS_FALSE
662
am__fastdepCCAS_TRUE
663
CCASDEPMODE
664
CCASFLAGS
665
CCAS
666
CPU_ARCH
667 625 jeremybenn
AM_BACKSLASH
668
AM_DEFAULT_VERBOSITY
669 82 jeremybenn
am__fastdepCC_FALSE
670
am__fastdepCC_TRUE
671
CCDEPMODE
672
AMDEPBACKSLASH
673
AMDEP_FALSE
674
AMDEP_TRUE
675
am__quote
676
am__include
677
DEPDIR
678
am__untar
679
am__tar
680
AMTAR
681
am__leading_dot
682
SET_MAKE
683
mkdir_p
684
MKDIR_P
685
INSTALL_STRIP_PROGRAM
686
install_sh
687
MAKEINFO
688
AUTOHEADER
689
AUTOMAKE
690
AUTOCONF
691
ACLOCAL
692
VERSION
693
PACKAGE
694
CYGPATH_W
695
am__isrc
696
INSTALL_DATA
697
INSTALL_SCRIPT
698
INSTALL_PROGRAM
699
OTOOL64
700
OTOOL
701
LIPO
702
NMEDIT
703
DSYMUTIL
704 784 jeremybenn
MANIFEST_TOOL
705
AWK
706 19 jeremybenn
RANLIB
707
STRIP
708 784 jeremybenn
ac_ct_AR
709 82 jeremybenn
AR
710 784 jeremybenn
DLLTOOL
711 82 jeremybenn
OBJDUMP
712
LN_S
713
NM
714
ac_ct_DUMPBIN
715
DUMPBIN
716
LD
717
FGREP
718
SED
719 19 jeremybenn
LIBTOOL
720 82 jeremybenn
target_os
721
target_vendor
722
target_cpu
723
target
724
host_os
725
host_vendor
726
host_cpu
727
host
728
build_os
729
build_vendor
730
build_cpu
731
build
732
subdirs
733 91 jeremybenn
EGREP
734
GREP
735
CPP
736
OBJEXT
737
EXEEXT
738
ac_ct_CC
739
CPPFLAGS
740
LDFLAGS
741
CFLAGS
742
CC
743 82 jeremybenn
target_alias
744
host_alias
745
build_alias
746
LIBS
747
ECHO_T
748
ECHO_N
749
ECHO_C
750
DEFS
751
mandir
752
localedir
753
libdir
754
psdir
755
pdfdir
756
dvidir
757
htmldir
758
infodir
759
docdir
760
oldincludedir
761
includedir
762
localstatedir
763
sharedstatedir
764
sysconfdir
765
datadir
766
datarootdir
767
libexecdir
768
sbindir
769
bindir
770
program_transform_name
771
prefix
772
exec_prefix
773 346 jeremybenn
PACKAGE_URL
774 82 jeremybenn
PACKAGE_BUGREPORT
775
PACKAGE_STRING
776
PACKAGE_VERSION
777
PACKAGE_TARNAME
778
PACKAGE_NAME
779
PATH_SEPARATOR
780
SHELL'
781 19 jeremybenn
ac_subst_files=''
782 82 jeremybenn
ac_user_opts='
783
enable_option_checking
784
enable_shared
785
enable_static
786
with_pic
787
enable_fast_install
788
with_gnu_ld
789 784 jeremybenn
with_sysroot
790 82 jeremybenn
enable_libtool_lock
791
enable_dependency_tracking
792 625 jeremybenn
enable_silent_rules
793 82 jeremybenn
enable_profiling
794
enable_execution
795
enable_ethphy
796 127 jeremybenn
enable_unsigned_xori
797 82 jeremybenn
enable_range_stats
798
enable_debug
799
'
800 19 jeremybenn
      ac_precious_vars='build_alias
801
host_alias
802
target_alias
803
CC
804
CFLAGS
805
LDFLAGS
806
LIBS
807
CPPFLAGS
808
CPP
809 82 jeremybenn
CCAS
810
CCASFLAGS'
811 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
812 19 jeremybenn
 
813
# Initialize some variables set by options.
814
ac_init_help=
815
ac_init_version=false
816 82 jeremybenn
ac_unrecognized_opts=
817
ac_unrecognized_sep=
818 19 jeremybenn
# The variables have the same names as the options, with
819
# dashes changed to underlines.
820
cache_file=/dev/null
821
exec_prefix=NONE
822
no_create=
823
no_recursion=
824
prefix=NONE
825
program_prefix=NONE
826
program_suffix=NONE
827
program_transform_name=s,x,x,
828
silent=
829
site=
830
srcdir=
831
verbose=
832
x_includes=NONE
833
x_libraries=NONE
834
 
835
# Installation directory options.
836
# These are left unexpanded so users can "make install exec_prefix=/foo"
837
# and all the variables that are supposed to be based on exec_prefix
838
# by default will actually change.
839
# Use braces instead of parens because sh, perl, etc. also accept them.
840
# (The list follows the same order as the GNU Coding Standards.)
841
bindir='${exec_prefix}/bin'
842
sbindir='${exec_prefix}/sbin'
843
libexecdir='${exec_prefix}/libexec'
844
datarootdir='${prefix}/share'
845
datadir='${datarootdir}'
846
sysconfdir='${prefix}/etc'
847
sharedstatedir='${prefix}/com'
848
localstatedir='${prefix}/var'
849
includedir='${prefix}/include'
850
oldincludedir='/usr/include'
851
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852
infodir='${datarootdir}/info'
853
htmldir='${docdir}'
854
dvidir='${docdir}'
855
pdfdir='${docdir}'
856
psdir='${docdir}'
857
libdir='${exec_prefix}/lib'
858
localedir='${datarootdir}/locale'
859
mandir='${datarootdir}/man'
860
 
861
ac_prev=
862
ac_dashdash=
863
for ac_option
864
do
865
  # If the previous option needs an argument, assign it.
866
  if test -n "$ac_prev"; then
867
    eval $ac_prev=\$ac_option
868
    ac_prev=
869
    continue
870
  fi
871
 
872
  case $ac_option in
873 625 jeremybenn
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874
  *=)   ac_optarg= ;;
875
  *)    ac_optarg=yes ;;
876 19 jeremybenn
  esac
877
 
878
  # Accept the important Cygnus configure options, so we can diagnose typos.
879
 
880
  case $ac_dashdash$ac_option in
881
  --)
882
    ac_dashdash=yes ;;
883
 
884
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
885
    ac_prev=bindir ;;
886
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887
    bindir=$ac_optarg ;;
888
 
889
  -build | --build | --buil | --bui | --bu)
890
    ac_prev=build_alias ;;
891
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892
    build_alias=$ac_optarg ;;
893
 
894
  -cache-file | --cache-file | --cache-fil | --cache-fi \
895
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896
    ac_prev=cache_file ;;
897
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899
    cache_file=$ac_optarg ;;
900
 
901
  --config-cache | -C)
902
    cache_file=config.cache ;;
903
 
904
  -datadir | --datadir | --datadi | --datad)
905
    ac_prev=datadir ;;
906
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
907
    datadir=$ac_optarg ;;
908
 
909
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910
  | --dataroo | --dataro | --datar)
911
    ac_prev=datarootdir ;;
912
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914
    datarootdir=$ac_optarg ;;
915
 
916
  -disable-* | --disable-*)
917 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 19 jeremybenn
    # Reject names that are not valid shell variable names.
919 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 625 jeremybenn
      as_fn_error $? "invalid feature name: $ac_useropt"
921 82 jeremybenn
    ac_useropt_orig=$ac_useropt
922
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923
    case $ac_user_opts in
924
      *"
925
"enable_$ac_useropt"
926
"*) ;;
927
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928
         ac_unrecognized_sep=', ';;
929
    esac
930
    eval enable_$ac_useropt=no ;;
931 19 jeremybenn
 
932
  -docdir | --docdir | --docdi | --doc | --do)
933
    ac_prev=docdir ;;
934
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935
    docdir=$ac_optarg ;;
936
 
937
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938
    ac_prev=dvidir ;;
939
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940
    dvidir=$ac_optarg ;;
941
 
942
  -enable-* | --enable-*)
943 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 19 jeremybenn
    # Reject names that are not valid shell variable names.
945 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 625 jeremybenn
      as_fn_error $? "invalid feature name: $ac_useropt"
947 82 jeremybenn
    ac_useropt_orig=$ac_useropt
948
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949
    case $ac_user_opts in
950
      *"
951
"enable_$ac_useropt"
952
"*) ;;
953
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954
         ac_unrecognized_sep=', ';;
955
    esac
956
    eval enable_$ac_useropt=\$ac_optarg ;;
957 19 jeremybenn
 
958
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960
  | --exec | --exe | --ex)
961
    ac_prev=exec_prefix ;;
962
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964
  | --exec=* | --exe=* | --ex=*)
965
    exec_prefix=$ac_optarg ;;
966
 
967
  -gas | --gas | --ga | --g)
968
    # Obsolete; use --with-gas.
969
    with_gas=yes ;;
970
 
971
  -help | --help | --hel | --he | -h)
972
    ac_init_help=long ;;
973
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974
    ac_init_help=recursive ;;
975
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976
    ac_init_help=short ;;
977
 
978
  -host | --host | --hos | --ho)
979
    ac_prev=host_alias ;;
980
  -host=* | --host=* | --hos=* | --ho=*)
981
    host_alias=$ac_optarg ;;
982
 
983
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984
    ac_prev=htmldir ;;
985
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986
  | --ht=*)
987
    htmldir=$ac_optarg ;;
988
 
989
  -includedir | --includedir | --includedi | --included | --include \
990
  | --includ | --inclu | --incl | --inc)
991
    ac_prev=includedir ;;
992
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993
  | --includ=* | --inclu=* | --incl=* | --inc=*)
994
    includedir=$ac_optarg ;;
995
 
996
  -infodir | --infodir | --infodi | --infod | --info | --inf)
997
    ac_prev=infodir ;;
998
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999
    infodir=$ac_optarg ;;
1000
 
1001
  -libdir | --libdir | --libdi | --libd)
1002
    ac_prev=libdir ;;
1003
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004
    libdir=$ac_optarg ;;
1005
 
1006
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007
  | --libexe | --libex | --libe)
1008
    ac_prev=libexecdir ;;
1009
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010
  | --libexe=* | --libex=* | --libe=*)
1011
    libexecdir=$ac_optarg ;;
1012
 
1013
  -localedir | --localedir | --localedi | --localed | --locale)
1014
    ac_prev=localedir ;;
1015
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016
    localedir=$ac_optarg ;;
1017
 
1018
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1019
  | --localstate | --localstat | --localsta | --localst | --locals)
1020
    ac_prev=localstatedir ;;
1021
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023
    localstatedir=$ac_optarg ;;
1024
 
1025
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026
    ac_prev=mandir ;;
1027
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028
    mandir=$ac_optarg ;;
1029
 
1030
  -nfp | --nfp | --nf)
1031
    # Obsolete; use --without-fp.
1032
    with_fp=no ;;
1033
 
1034
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035
  | --no-cr | --no-c | -n)
1036
    no_create=yes ;;
1037
 
1038
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040
    no_recursion=yes ;;
1041
 
1042
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044
  | --oldin | --oldi | --old | --ol | --o)
1045
    ac_prev=oldincludedir ;;
1046
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049
    oldincludedir=$ac_optarg ;;
1050
 
1051
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052
    ac_prev=prefix ;;
1053
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054
    prefix=$ac_optarg ;;
1055
 
1056
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057
  | --program-pre | --program-pr | --program-p)
1058
    ac_prev=program_prefix ;;
1059
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061
    program_prefix=$ac_optarg ;;
1062
 
1063
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064
  | --program-suf | --program-su | --program-s)
1065
    ac_prev=program_suffix ;;
1066
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068
    program_suffix=$ac_optarg ;;
1069
 
1070
  -program-transform-name | --program-transform-name \
1071
  | --program-transform-nam | --program-transform-na \
1072
  | --program-transform-n | --program-transform- \
1073
  | --program-transform | --program-transfor \
1074
  | --program-transfo | --program-transf \
1075
  | --program-trans | --program-tran \
1076
  | --progr-tra | --program-tr | --program-t)
1077
    ac_prev=program_transform_name ;;
1078
  -program-transform-name=* | --program-transform-name=* \
1079
  | --program-transform-nam=* | --program-transform-na=* \
1080
  | --program-transform-n=* | --program-transform-=* \
1081
  | --program-transform=* | --program-transfor=* \
1082
  | --program-transfo=* | --program-transf=* \
1083
  | --program-trans=* | --program-tran=* \
1084
  | --progr-tra=* | --program-tr=* | --program-t=*)
1085
    program_transform_name=$ac_optarg ;;
1086
 
1087
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088
    ac_prev=pdfdir ;;
1089
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090
    pdfdir=$ac_optarg ;;
1091
 
1092
  -psdir | --psdir | --psdi | --psd | --ps)
1093
    ac_prev=psdir ;;
1094
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095
    psdir=$ac_optarg ;;
1096
 
1097
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098
  | -silent | --silent | --silen | --sile | --sil)
1099
    silent=yes ;;
1100
 
1101
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102
    ac_prev=sbindir ;;
1103
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104
  | --sbi=* | --sb=*)
1105
    sbindir=$ac_optarg ;;
1106
 
1107
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109
  | --sharedst | --shareds | --shared | --share | --shar \
1110
  | --sha | --sh)
1111
    ac_prev=sharedstatedir ;;
1112
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115
  | --sha=* | --sh=*)
1116
    sharedstatedir=$ac_optarg ;;
1117
 
1118
  -site | --site | --sit)
1119
    ac_prev=site ;;
1120
  -site=* | --site=* | --sit=*)
1121
    site=$ac_optarg ;;
1122
 
1123
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124
    ac_prev=srcdir ;;
1125
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126
    srcdir=$ac_optarg ;;
1127
 
1128
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129
  | --syscon | --sysco | --sysc | --sys | --sy)
1130
    ac_prev=sysconfdir ;;
1131
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133
    sysconfdir=$ac_optarg ;;
1134
 
1135
  -target | --target | --targe | --targ | --tar | --ta | --t)
1136
    ac_prev=target_alias ;;
1137
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138
    target_alias=$ac_optarg ;;
1139
 
1140
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141
    verbose=yes ;;
1142
 
1143
  -version | --version | --versio | --versi | --vers | -V)
1144
    ac_init_version=: ;;
1145
 
1146
  -with-* | --with-*)
1147 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 19 jeremybenn
    # Reject names that are not valid shell variable names.
1149 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 625 jeremybenn
      as_fn_error $? "invalid package name: $ac_useropt"
1151 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1152
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153
    case $ac_user_opts in
1154
      *"
1155
"with_$ac_useropt"
1156
"*) ;;
1157
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158
         ac_unrecognized_sep=', ';;
1159
    esac
1160
    eval with_$ac_useropt=\$ac_optarg ;;
1161 19 jeremybenn
 
1162
  -without-* | --without-*)
1163 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 19 jeremybenn
    # Reject names that are not valid shell variable names.
1165 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 625 jeremybenn
      as_fn_error $? "invalid package name: $ac_useropt"
1167 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1168
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169
    case $ac_user_opts in
1170
      *"
1171
"with_$ac_useropt"
1172
"*) ;;
1173
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174
         ac_unrecognized_sep=', ';;
1175
    esac
1176
    eval with_$ac_useropt=no ;;
1177 19 jeremybenn
 
1178
  --x)
1179
    # Obsolete; use --with-x.
1180
    with_x=yes ;;
1181
 
1182
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183
  | --x-incl | --x-inc | --x-in | --x-i)
1184
    ac_prev=x_includes ;;
1185
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187
    x_includes=$ac_optarg ;;
1188
 
1189
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191
    ac_prev=x_libraries ;;
1192
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194
    x_libraries=$ac_optarg ;;
1195
 
1196 625 jeremybenn
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197
Try \`$0 --help' for more information"
1198 19 jeremybenn
    ;;
1199
 
1200
  *=*)
1201
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202
    # Reject names that are not valid shell variable names.
1203 346 jeremybenn
    case $ac_envvar in #(
1204
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 625 jeremybenn
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 346 jeremybenn
    esac
1207 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1208
    export $ac_envvar ;;
1209
 
1210
  *)
1211
    # FIXME: should be removed in autoconf 3.0.
1212 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 625 jeremybenn
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 19 jeremybenn
    ;;
1217
 
1218
  esac
1219
done
1220
 
1221
if test -n "$ac_prev"; then
1222
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 625 jeremybenn
  as_fn_error $? "missing argument to $ac_option"
1224 19 jeremybenn
fi
1225
 
1226 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1227
  case $enable_option_checking in
1228
    no) ;;
1229 625 jeremybenn
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231
  esac
1232
fi
1233
 
1234
# Check all directory arguments for consistency.
1235 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236
                datadir sysconfdir sharedstatedir localstatedir includedir \
1237
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238
                libdir localedir mandir
1239
do
1240
  eval ac_val=\$$ac_var
1241 82 jeremybenn
  # Remove trailing slashes.
1242 19 jeremybenn
  case $ac_val in
1243 82 jeremybenn
    */ )
1244
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245
      eval $ac_var=\$ac_val;;
1246
  esac
1247
  # Be sure to have absolute directory names.
1248
  case $ac_val in
1249 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1250
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251
  esac
1252 625 jeremybenn
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 19 jeremybenn
done
1254
 
1255
# There might be people who depend on the old broken behavior: `$host'
1256
# used to hold the argument of --host etc.
1257
# FIXME: To remove some day.
1258
build=$build_alias
1259
host=$host_alias
1260
target=$target_alias
1261
 
1262
# FIXME: To remove some day.
1263
if test "x$host_alias" != x; then
1264
  if test "x$build_alias" = x; then
1265
    cross_compiling=maybe
1266 625 jeremybenn
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1267
    If a cross compiler is detected then cross compile mode will be used" >&2
1268 19 jeremybenn
  elif test "x$build_alias" != "x$host_alias"; then
1269
    cross_compiling=yes
1270
  fi
1271
fi
1272
 
1273
ac_tool_prefix=
1274
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
 
1276
test "$silent" = yes && exec 6>/dev/null
1277
 
1278
 
1279
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280
ac_ls_di=`ls -di .` &&
1281
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 625 jeremybenn
  as_fn_error $? "working directory cannot be determined"
1283 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 625 jeremybenn
  as_fn_error $? "pwd does not report name of working directory"
1285 19 jeremybenn
 
1286
 
1287
# Find the source files, if location was not specified.
1288
if test -z "$srcdir"; then
1289
  ac_srcdir_defaulted=yes
1290
  # Try the directory containing this script, then the parent directory.
1291 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1292
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293
         X"$as_myself" : 'X\(//\)[^/]' \| \
1294
         X"$as_myself" : 'X\(//\)$' \| \
1295
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296
$as_echo X"$as_myself" |
1297 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298
            s//\1/
1299
            q
1300
          }
1301
          /^X\(\/\/\)[^/].*/{
1302
            s//\1/
1303
            q
1304
          }
1305
          /^X\(\/\/\)$/{
1306
            s//\1/
1307
            q
1308
          }
1309
          /^X\(\/\).*/{
1310
            s//\1/
1311
            q
1312
          }
1313
          s/.*/./; q'`
1314
  srcdir=$ac_confdir
1315
  if test ! -r "$srcdir/$ac_unique_file"; then
1316
    srcdir=..
1317
  fi
1318
else
1319
  ac_srcdir_defaulted=no
1320
fi
1321
if test ! -r "$srcdir/$ac_unique_file"; then
1322
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 625 jeremybenn
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 19 jeremybenn
fi
1325
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326
ac_abs_confdir=`(
1327 625 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 19 jeremybenn
        pwd)`
1329
# When building in place, set srcdir=.
1330
if test "$ac_abs_confdir" = "$ac_pwd"; then
1331
  srcdir=.
1332
fi
1333
# Remove unnecessary trailing slashes from srcdir.
1334
# Double slashes in file names in object file debugging info
1335
# mess up M-x gdb in Emacs.
1336
case $srcdir in
1337
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338
esac
1339
for ac_var in $ac_precious_vars; do
1340
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341
  eval ac_env_${ac_var}_value=\$${ac_var}
1342
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344
done
1345
 
1346
#
1347
# Report the --help message.
1348
#
1349
if test "$ac_init_help" = "long"; then
1350
  # Omit some internal or obsolete options to make the list less imposing.
1351
  # This message is too long to be a string in the A/UX 3.1 sh.
1352
  cat <<_ACEOF
1353 787 jeremybenn
\`configure' configures or1ksim 2012-03-23 to adapt to many kinds of systems.
1354 19 jeremybenn
 
1355
Usage: $0 [OPTION]... [VAR=VALUE]...
1356
 
1357
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358
VAR=VALUE.  See below for descriptions of some of the useful variables.
1359
 
1360
Defaults for the options are specified in brackets.
1361
 
1362
Configuration:
1363
  -h, --help              display this help and exit
1364
      --help=short        display options specific to this package
1365
      --help=recursive    display the short help of all the included packages
1366
  -V, --version           display version information and exit
1367 625 jeremybenn
  -q, --quiet, --silent   do not print \`checking ...' messages
1368 19 jeremybenn
      --cache-file=FILE   cache test results in FILE [disabled]
1369
  -C, --config-cache      alias for \`--cache-file=config.cache'
1370
  -n, --no-create         do not create output files
1371
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1372
 
1373
Installation directories:
1374
  --prefix=PREFIX         install architecture-independent files in PREFIX
1375 82 jeremybenn
                          [$ac_default_prefix]
1376 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1377 82 jeremybenn
                          [PREFIX]
1378 19 jeremybenn
 
1379
By default, \`make install' will install all the files in
1380
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1381
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382
for instance \`--prefix=\$HOME'.
1383
 
1384
For better control, use the options below.
1385
 
1386
Fine tuning of the installation directories:
1387 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1388
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1389
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1390
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1391
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1392
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1393
  --libdir=DIR            object code libraries [EPREFIX/lib]
1394
  --includedir=DIR        C header files [PREFIX/include]
1395
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1396
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1397
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1398
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1399
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1400
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1401
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1402
  --htmldir=DIR           html documentation [DOCDIR]
1403
  --dvidir=DIR            dvi documentation [DOCDIR]
1404
  --pdfdir=DIR            pdf documentation [DOCDIR]
1405
  --psdir=DIR             ps documentation [DOCDIR]
1406 19 jeremybenn
_ACEOF
1407
 
1408
  cat <<\_ACEOF
1409
 
1410
Program names:
1411
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1412
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1413
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
 
1415
System types:
1416
  --build=BUILD     configure for building on BUILD [guessed]
1417
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418
  --target=TARGET   configure for building compilers for TARGET [HOST]
1419
_ACEOF
1420
fi
1421
 
1422
if test -n "$ac_init_help"; then
1423
  case $ac_init_help in
1424 787 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2012-03-23:";;
1425 19 jeremybenn
   esac
1426
  cat <<\_ACEOF
1427
 
1428
Optional Features:
1429 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1430 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1431
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1432
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1433
  --enable-static[=PKGS]  build static libraries [default=yes]
1434
  --enable-fast-install[=PKGS]
1435
                          optimize for fast installation [default=yes]
1436
  --disable-libtool-lock  avoid locking (might break parallel builds)
1437
  --disable-dependency-tracking  speeds up one-time build
1438
  --enable-dependency-tracking   do not reject slow dependency extractors
1439 625 jeremybenn
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1440
  --disable-silent-rules         verbose build output (undo: `make V=0')
1441 19 jeremybenn
  --enable-profiling      generate profiling code
1442 552 julius
  --enable-execution Execution style to use (simple/complex)
1443 19 jeremybenn
  --enable-ethphy    compiles sim with ethernet phy support
1444 127 jeremybenn
  --enable-unsigned-xori    l.xori immediate operand treated as unsigned
1445 19 jeremybenn
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1446
  --enable-debug          enable library debugging symbols
1447
 
1448
Optional Packages:
1449
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451
  --with-pic              try to use only PIC/non-PIC objects [default=use
1452
                          both]
1453 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1454 784 jeremybenn
  --with-sysroot=DIR Search for dependent libraries within DIR
1455
                        (or the compiler's sysroot if not specified).
1456 19 jeremybenn
 
1457
Some influential environment variables:
1458
  CC          C compiler command
1459
  CFLAGS      C compiler flags
1460
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1461
              nonstandard directory 
1462
  LIBS        libraries to pass to the linker, e.g. -l
1463 625 jeremybenn
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
1464 19 jeremybenn
              you have headers in a nonstandard directory 
1465
  CPP         C preprocessor
1466 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1467
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1468 19 jeremybenn
 
1469
Use these variables to override the choices made by `configure' or to help
1470
it to find libraries and programs with nonstandard names/locations.
1471
 
1472
Report bugs to .
1473
_ACEOF
1474
ac_status=$?
1475
fi
1476
 
1477
if test "$ac_init_help" = "recursive"; then
1478
  # If there are subdirs, report their specific --help.
1479
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 82 jeremybenn
    test -d "$ac_dir" ||
1481
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482
      continue
1483 19 jeremybenn
    ac_builddir=.
1484
 
1485
case "$ac_dir" in
1486
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487
*)
1488 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1489 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1490 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1491 19 jeremybenn
  case $ac_top_builddir_sub in
1492
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494
  esac ;;
1495
esac
1496
ac_abs_top_builddir=$ac_pwd
1497
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498
# for backward compatibility:
1499
ac_top_builddir=$ac_top_build_prefix
1500
 
1501
case $srcdir in
1502
  .)  # We are building in place.
1503
    ac_srcdir=.
1504
    ac_top_srcdir=$ac_top_builddir_sub
1505
    ac_abs_top_srcdir=$ac_pwd ;;
1506
  [\\/]* | ?:[\\/]* )  # Absolute name.
1507
    ac_srcdir=$srcdir$ac_dir_suffix;
1508
    ac_top_srcdir=$srcdir
1509
    ac_abs_top_srcdir=$srcdir ;;
1510
  *) # Relative name.
1511
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1513
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514
esac
1515
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
 
1517
    cd "$ac_dir" || { ac_status=$?; continue; }
1518
    # Check for guested configure.
1519
    if test -f "$ac_srcdir/configure.gnu"; then
1520
      echo &&
1521
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522
    elif test -f "$ac_srcdir/configure"; then
1523
      echo &&
1524
      $SHELL "$ac_srcdir/configure" --help=recursive
1525
    else
1526 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 19 jeremybenn
    fi || ac_status=$?
1528
    cd "$ac_pwd" || { ac_status=$?; break; }
1529
  done
1530
fi
1531
 
1532
test -n "$ac_init_help" && exit $ac_status
1533
if $ac_init_version; then
1534
  cat <<\_ACEOF
1535 787 jeremybenn
or1ksim configure 2012-03-23
1536 625 jeremybenn
generated by GNU Autoconf 2.68
1537 19 jeremybenn
 
1538 625 jeremybenn
Copyright (C) 2010 Free Software Foundation, Inc.
1539 19 jeremybenn
This configure script is free software; the Free Software Foundation
1540
gives unlimited permission to copy, distribute and modify it.
1541 82 jeremybenn
 
1542
Copyright (C) 1999-2008 OpenCores
1543
Copyright (C) 2008, 2010 Embecosm Limited
1544
 
1545
Contributor Jeremy Bennett 
1546
 
1547
This file is part of OpenRISC 1000 Architectural Simulator.
1548
 
1549
This program is free software; you can redistribute it and/or modify it
1550
under the terms of the GNU General Public License as published by the Free
1551
Software Foundation; either version 3 of the License, or (at your option)
1552
any later version.
1553
 
1554
This program is distributed in the hope that it will be useful, but WITHOUT
1555
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1556
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1557
more details.
1558
 
1559
You should have received a copy of the GNU General Public License along
1560
with this program.  If not, see .
1561 19 jeremybenn
_ACEOF
1562
  exit
1563
fi
1564 346 jeremybenn
 
1565
## ------------------------ ##
1566
## Autoconf initialization. ##
1567
## ------------------------ ##
1568
 
1569
# ac_fn_c_try_compile LINENO
1570
# --------------------------
1571
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572
ac_fn_c_try_compile ()
1573
{
1574
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575
  rm -f conftest.$ac_objext
1576
  if { { ac_try="$ac_compile"
1577
case "(($ac_try" in
1578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579
  *) ac_try_echo=$ac_try;;
1580
esac
1581
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582
$as_echo "$ac_try_echo"; } >&5
1583
  (eval "$ac_compile") 2>conftest.err
1584
  ac_status=$?
1585
  if test -s conftest.err; then
1586
    grep -v '^ *+' conftest.err >conftest.er1
1587
    cat conftest.er1 >&5
1588
    mv -f conftest.er1 conftest.err
1589
  fi
1590
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591
  test $ac_status = 0; } && {
1592
         test -z "$ac_c_werror_flag" ||
1593
         test ! -s conftest.err
1594
       } && test -s conftest.$ac_objext; then :
1595
  ac_retval=0
1596
else
1597
  $as_echo "$as_me: failed program was:" >&5
1598
sed 's/^/| /' conftest.$ac_ext >&5
1599
 
1600
        ac_retval=1
1601
fi
1602 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603
  as_fn_set_status $ac_retval
1604 346 jeremybenn
 
1605
} # ac_fn_c_try_compile
1606
 
1607
# ac_fn_c_try_cpp LINENO
1608
# ----------------------
1609
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610
ac_fn_c_try_cpp ()
1611
{
1612
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1614
case "(($ac_try" in
1615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616
  *) ac_try_echo=$ac_try;;
1617
esac
1618
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619
$as_echo "$ac_try_echo"; } >&5
1620
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621
  ac_status=$?
1622
  if test -s conftest.err; then
1623
    grep -v '^ *+' conftest.err >conftest.er1
1624
    cat conftest.er1 >&5
1625
    mv -f conftest.er1 conftest.err
1626
  fi
1627
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 625 jeremybenn
  test $ac_status = 0; } > conftest.i && {
1629 346 jeremybenn
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630
         test ! -s conftest.err
1631
       }; then :
1632
  ac_retval=0
1633
else
1634
  $as_echo "$as_me: failed program was:" >&5
1635
sed 's/^/| /' conftest.$ac_ext >&5
1636
 
1637
    ac_retval=1
1638
fi
1639 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
  as_fn_set_status $ac_retval
1641 346 jeremybenn
 
1642
} # ac_fn_c_try_cpp
1643
 
1644
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645
# -------------------------------------------------------
1646
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647
# the include files in INCLUDES and setting the cache variable VAR
1648
# accordingly.
1649
ac_fn_c_check_header_mongrel ()
1650
{
1651
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 625 jeremybenn
  if eval \${$3+:} false; then :
1653 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654
$as_echo_n "checking for $2... " >&6; }
1655 625 jeremybenn
if eval \${$3+:} false; then :
1656 346 jeremybenn
  $as_echo_n "(cached) " >&6
1657
fi
1658
eval ac_res=\$$3
1659
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660
$as_echo "$ac_res" >&6; }
1661
else
1662
  # Is the header compilable?
1663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664
$as_echo_n "checking $2 usability... " >&6; }
1665
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666
/* end confdefs.h.  */
1667
$4
1668
#include <$2>
1669
_ACEOF
1670
if ac_fn_c_try_compile "$LINENO"; then :
1671
  ac_header_compiler=yes
1672
else
1673
  ac_header_compiler=no
1674
fi
1675
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677
$as_echo "$ac_header_compiler" >&6; }
1678
 
1679
# Is the header present?
1680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681
$as_echo_n "checking $2 presence... " >&6; }
1682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683
/* end confdefs.h.  */
1684
#include <$2>
1685
_ACEOF
1686
if ac_fn_c_try_cpp "$LINENO"; then :
1687
  ac_header_preproc=yes
1688
else
1689
  ac_header_preproc=no
1690
fi
1691 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
1692 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693
$as_echo "$ac_header_preproc" >&6; }
1694
 
1695
# So?  What about this header?
1696
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1697
  yes:no: )
1698
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702
    ;;
1703
  no:yes:* )
1704
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1707
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1708
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1711
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1712
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 625 jeremybenn
( $as_echo "## ------------------------------------- ##
1715 346 jeremybenn
## Report this to openrisc@opencores.org ##
1716 625 jeremybenn
## ------------------------------------- ##"
1717 346 jeremybenn
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1718
    ;;
1719
esac
1720
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721
$as_echo_n "checking for $2... " >&6; }
1722 625 jeremybenn
if eval \${$3+:} false; then :
1723 346 jeremybenn
  $as_echo_n "(cached) " >&6
1724
else
1725
  eval "$3=\$ac_header_compiler"
1726
fi
1727
eval ac_res=\$$3
1728
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729
$as_echo "$ac_res" >&6; }
1730
fi
1731 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 346 jeremybenn
 
1733
} # ac_fn_c_check_header_mongrel
1734
 
1735
# ac_fn_c_try_run LINENO
1736
# ----------------------
1737
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738
# that executables *can* be run.
1739
ac_fn_c_try_run ()
1740
{
1741
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742
  if { { ac_try="$ac_link"
1743
case "(($ac_try" in
1744
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745
  *) ac_try_echo=$ac_try;;
1746
esac
1747
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748
$as_echo "$ac_try_echo"; } >&5
1749
  (eval "$ac_link") 2>&5
1750
  ac_status=$?
1751
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753
  { { case "(($ac_try" in
1754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755
  *) ac_try_echo=$ac_try;;
1756
esac
1757
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758
$as_echo "$ac_try_echo"; } >&5
1759
  (eval "$ac_try") 2>&5
1760
  ac_status=$?
1761
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762
  test $ac_status = 0; }; }; then :
1763
  ac_retval=0
1764
else
1765
  $as_echo "$as_me: program exited with status $ac_status" >&5
1766
       $as_echo "$as_me: failed program was:" >&5
1767
sed 's/^/| /' conftest.$ac_ext >&5
1768
 
1769
       ac_retval=$ac_status
1770
fi
1771
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
  as_fn_set_status $ac_retval
1774 346 jeremybenn
 
1775
} # ac_fn_c_try_run
1776
 
1777
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778
# -------------------------------------------------------
1779
# Tests whether HEADER exists and can be compiled using the include files in
1780
# INCLUDES, setting the cache variable VAR accordingly.
1781
ac_fn_c_check_header_compile ()
1782
{
1783
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785
$as_echo_n "checking for $2... " >&6; }
1786 625 jeremybenn
if eval \${$3+:} false; then :
1787 346 jeremybenn
  $as_echo_n "(cached) " >&6
1788
else
1789
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790
/* end confdefs.h.  */
1791
$4
1792
#include <$2>
1793
_ACEOF
1794
if ac_fn_c_try_compile "$LINENO"; then :
1795
  eval "$3=yes"
1796
else
1797
  eval "$3=no"
1798
fi
1799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800
fi
1801
eval ac_res=\$$3
1802
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803
$as_echo "$ac_res" >&6; }
1804 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 346 jeremybenn
 
1806
} # ac_fn_c_check_header_compile
1807
 
1808
# ac_fn_c_try_link LINENO
1809
# -----------------------
1810
# Try to link conftest.$ac_ext, and return whether this succeeded.
1811
ac_fn_c_try_link ()
1812
{
1813
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814
  rm -f conftest.$ac_objext conftest$ac_exeext
1815
  if { { ac_try="$ac_link"
1816
case "(($ac_try" in
1817
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818
  *) ac_try_echo=$ac_try;;
1819
esac
1820
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821
$as_echo "$ac_try_echo"; } >&5
1822
  (eval "$ac_link") 2>conftest.err
1823
  ac_status=$?
1824
  if test -s conftest.err; then
1825
    grep -v '^ *+' conftest.err >conftest.er1
1826
    cat conftest.er1 >&5
1827
    mv -f conftest.er1 conftest.err
1828
  fi
1829
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830
  test $ac_status = 0; } && {
1831
         test -z "$ac_c_werror_flag" ||
1832
         test ! -s conftest.err
1833
       } && test -s conftest$ac_exeext && {
1834
         test "$cross_compiling" = yes ||
1835
         $as_test_x conftest$ac_exeext
1836
       }; then :
1837
  ac_retval=0
1838
else
1839
  $as_echo "$as_me: failed program was:" >&5
1840
sed 's/^/| /' conftest.$ac_ext >&5
1841
 
1842
        ac_retval=1
1843
fi
1844
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846
  # interfere with the next link command; also delete a directory that is
1847
  # left behind by Apple's compiler.  We do this before executing the actions.
1848
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
  as_fn_set_status $ac_retval
1851 346 jeremybenn
 
1852
} # ac_fn_c_try_link
1853
 
1854
# ac_fn_c_check_func LINENO FUNC VAR
1855
# ----------------------------------
1856
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1857
ac_fn_c_check_func ()
1858
{
1859
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861
$as_echo_n "checking for $2... " >&6; }
1862 625 jeremybenn
if eval \${$3+:} false; then :
1863 346 jeremybenn
  $as_echo_n "(cached) " >&6
1864
else
1865
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866
/* end confdefs.h.  */
1867
/* Define $2 to an innocuous variant, in case  declares $2.
1868
   For example, HP-UX 11i  declares gettimeofday.  */
1869
#define $2 innocuous_$2
1870
 
1871
/* System header to define __stub macros and hopefully few prototypes,
1872
    which can conflict with char $2 (); below.
1873
    Prefer  to  if __STDC__ is defined, since
1874
     exists even on freestanding compilers.  */
1875
 
1876
#ifdef __STDC__
1877
# include 
1878
#else
1879
# include 
1880
#endif
1881
 
1882
#undef $2
1883
 
1884
/* Override any GCC internal prototype to avoid an error.
1885
   Use char because int might match the return type of a GCC
1886
   builtin and then its argument prototype would still apply.  */
1887
#ifdef __cplusplus
1888
extern "C"
1889
#endif
1890
char $2 ();
1891
/* The GNU C library defines this for functions which it implements
1892
    to always fail with ENOSYS.  Some functions are actually named
1893
    something starting with __ and the normal name is an alias.  */
1894
#if defined __stub_$2 || defined __stub___$2
1895
choke me
1896
#endif
1897
 
1898
int
1899
main ()
1900
{
1901
return $2 ();
1902
  ;
1903
  return 0;
1904
}
1905
_ACEOF
1906
if ac_fn_c_try_link "$LINENO"; then :
1907
  eval "$3=yes"
1908
else
1909
  eval "$3=no"
1910
fi
1911
rm -f core conftest.err conftest.$ac_objext \
1912
    conftest$ac_exeext conftest.$ac_ext
1913
fi
1914
eval ac_res=\$$3
1915
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916
$as_echo "$ac_res" >&6; }
1917 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 346 jeremybenn
 
1919
} # ac_fn_c_check_func
1920
 
1921 625 jeremybenn
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1922
# ---------------------------------------------
1923
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1924
# accordingly.
1925 346 jeremybenn
ac_fn_c_check_decl ()
1926
{
1927
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 625 jeremybenn
  as_decl_name=`echo $2|sed 's/ *(.*//'`
1929
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1930
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1931
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1932
if eval \${$3+:} false; then :
1933 346 jeremybenn
  $as_echo_n "(cached) " >&6
1934
else
1935
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936
/* end confdefs.h.  */
1937
$4
1938
int
1939
main ()
1940
{
1941 625 jeremybenn
#ifndef $as_decl_name
1942
#ifdef __cplusplus
1943
  (void) $as_decl_use;
1944
#else
1945
  (void) $as_decl_name;
1946 346 jeremybenn
#endif
1947 625 jeremybenn
#endif
1948 346 jeremybenn
 
1949
  ;
1950
  return 0;
1951
}
1952
_ACEOF
1953
if ac_fn_c_try_compile "$LINENO"; then :
1954
  eval "$3=yes"
1955
else
1956
  eval "$3=no"
1957
fi
1958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959
fi
1960
eval ac_res=\$$3
1961
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962
$as_echo "$ac_res" >&6; }
1963 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 346 jeremybenn
 
1965
} # ac_fn_c_check_decl
1966
 
1967
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968
# -------------------------------------------
1969
# Tests whether TYPE exists after having included INCLUDES, setting cache
1970
# variable VAR accordingly.
1971
ac_fn_c_check_type ()
1972
{
1973
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975
$as_echo_n "checking for $2... " >&6; }
1976 625 jeremybenn
if eval \${$3+:} false; then :
1977 346 jeremybenn
  $as_echo_n "(cached) " >&6
1978
else
1979
  eval "$3=no"
1980
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981
/* end confdefs.h.  */
1982
$4
1983
int
1984
main ()
1985
{
1986
if (sizeof ($2))
1987
         return 0;
1988
  ;
1989
  return 0;
1990
}
1991
_ACEOF
1992
if ac_fn_c_try_compile "$LINENO"; then :
1993
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994
/* end confdefs.h.  */
1995
$4
1996
int
1997
main ()
1998
{
1999
if (sizeof (($2)))
2000
            return 0;
2001
  ;
2002
  return 0;
2003
}
2004
_ACEOF
2005
if ac_fn_c_try_compile "$LINENO"; then :
2006
 
2007
else
2008
  eval "$3=yes"
2009
fi
2010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011
fi
2012
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013
fi
2014
eval ac_res=\$$3
2015
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016
$as_echo "$ac_res" >&6; }
2017 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 346 jeremybenn
 
2019
} # ac_fn_c_check_type
2020
 
2021
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2022
# --------------------------------------------
2023
# Tries to find the compile-time value of EXPR in a program that includes
2024
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2025
# computed
2026
ac_fn_c_compute_int ()
2027
{
2028
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029
  if test "$cross_compiling" = yes; then
2030
    # Depending upon the size, compute the lo and hi bounds.
2031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032
/* end confdefs.h.  */
2033
$4
2034
int
2035
main ()
2036
{
2037
static int test_array [1 - 2 * !(($2) >= 0)];
2038
test_array [0] = 0
2039
 
2040
  ;
2041
  return 0;
2042
}
2043
_ACEOF
2044
if ac_fn_c_try_compile "$LINENO"; then :
2045
  ac_lo=0 ac_mid=0
2046
  while :; do
2047
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048
/* end confdefs.h.  */
2049
$4
2050
int
2051
main ()
2052
{
2053
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054
test_array [0] = 0
2055
 
2056
  ;
2057
  return 0;
2058
}
2059
_ACEOF
2060
if ac_fn_c_try_compile "$LINENO"; then :
2061
  ac_hi=$ac_mid; break
2062
else
2063
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064
                        if test $ac_lo -le $ac_mid; then
2065
                          ac_lo= ac_hi=
2066
                          break
2067
                        fi
2068
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2069
fi
2070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071
  done
2072
else
2073
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074
/* end confdefs.h.  */
2075
$4
2076
int
2077
main ()
2078
{
2079
static int test_array [1 - 2 * !(($2) < 0)];
2080
test_array [0] = 0
2081
 
2082
  ;
2083
  return 0;
2084
}
2085
_ACEOF
2086
if ac_fn_c_try_compile "$LINENO"; then :
2087
  ac_hi=-1 ac_mid=-1
2088
  while :; do
2089
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090
/* end confdefs.h.  */
2091
$4
2092
int
2093
main ()
2094
{
2095
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2096
test_array [0] = 0
2097
 
2098
  ;
2099
  return 0;
2100
}
2101
_ACEOF
2102
if ac_fn_c_try_compile "$LINENO"; then :
2103
  ac_lo=$ac_mid; break
2104
else
2105
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2106
                        if test $ac_mid -le $ac_hi; then
2107
                          ac_lo= ac_hi=
2108
                          break
2109
                        fi
2110
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2111
fi
2112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113
  done
2114
else
2115
  ac_lo= ac_hi=
2116
fi
2117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118
fi
2119
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120
# Binary search between lo and hi bounds.
2121
while test "x$ac_lo" != "x$ac_hi"; do
2122
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2123
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124
/* end confdefs.h.  */
2125
$4
2126
int
2127
main ()
2128
{
2129
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130
test_array [0] = 0
2131
 
2132
  ;
2133
  return 0;
2134
}
2135
_ACEOF
2136
if ac_fn_c_try_compile "$LINENO"; then :
2137
  ac_hi=$ac_mid
2138
else
2139
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2140
fi
2141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142
done
2143
case $ac_lo in #((
2144
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2145
'') ac_retval=1 ;;
2146
esac
2147
  else
2148
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149
/* end confdefs.h.  */
2150
$4
2151
static long int longval () { return $2; }
2152
static unsigned long int ulongval () { return $2; }
2153
#include 
2154
#include 
2155
int
2156
main ()
2157
{
2158
 
2159
  FILE *f = fopen ("conftest.val", "w");
2160
  if (! f)
2161
    return 1;
2162
  if (($2) < 0)
2163
    {
2164
      long int i = longval ();
2165
      if (i != ($2))
2166
        return 1;
2167
      fprintf (f, "%ld", i);
2168
    }
2169
  else
2170
    {
2171
      unsigned long int i = ulongval ();
2172
      if (i != ($2))
2173
        return 1;
2174
      fprintf (f, "%lu", i);
2175
    }
2176
  /* Do not output a trailing newline, as this causes \r\n confusion
2177
     on some platforms.  */
2178
  return ferror (f) || fclose (f) != 0;
2179
 
2180
  ;
2181
  return 0;
2182
}
2183
_ACEOF
2184
if ac_fn_c_try_run "$LINENO"; then :
2185
  echo >>conftest.val; read $3 
2186
else
2187
  ac_retval=1
2188
fi
2189
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2190
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2191
rm -f conftest.val
2192
 
2193
  fi
2194 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195
  as_fn_set_status $ac_retval
2196 346 jeremybenn
 
2197
} # ac_fn_c_compute_int
2198 19 jeremybenn
cat >config.log <<_ACEOF
2199
This file contains any messages produced by compilers while
2200
running configure, to aid debugging if configure makes a mistake.
2201
 
2202 787 jeremybenn
It was created by or1ksim $as_me 2012-03-23, which was
2203 625 jeremybenn
generated by GNU Autoconf 2.68.  Invocation command line was
2204 19 jeremybenn
 
2205
  $ $0 $@
2206
 
2207
_ACEOF
2208
exec 5>>config.log
2209
{
2210
cat <<_ASUNAME
2211
## --------- ##
2212
## Platform. ##
2213
## --------- ##
2214
 
2215
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2216
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2217
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2218
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2219
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2220
 
2221
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2222
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2223
 
2224
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2225
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2226
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2227
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2228
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2229
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2230
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2231
 
2232
_ASUNAME
2233
 
2234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235
for as_dir in $PATH
2236
do
2237
  IFS=$as_save_IFS
2238
  test -z "$as_dir" && as_dir=.
2239 346 jeremybenn
    $as_echo "PATH: $as_dir"
2240
  done
2241 19 jeremybenn
IFS=$as_save_IFS
2242
 
2243
} >&5
2244
 
2245
cat >&5 <<_ACEOF
2246
 
2247
 
2248
## ----------- ##
2249
## Core tests. ##
2250
## ----------- ##
2251
 
2252
_ACEOF
2253
 
2254
 
2255
# Keep a trace of the command line.
2256
# Strip out --no-create and --no-recursion so they do not pile up.
2257
# Strip out --silent because we don't want to record it for future runs.
2258
# Also quote any args containing shell meta-characters.
2259
# Make two passes to allow for proper duplicate-argument suppression.
2260
ac_configure_args=
2261
ac_configure_args0=
2262
ac_configure_args1=
2263
ac_must_keep_next=false
2264
for ac_pass in 1 2
2265
do
2266
  for ac_arg
2267
  do
2268
    case $ac_arg in
2269
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2270
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2271
    | -silent | --silent | --silen | --sile | --sil)
2272
      continue ;;
2273
    *\'*)
2274 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2275 19 jeremybenn
    esac
2276
    case $ac_pass in
2277 346 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2278 19 jeremybenn
    2)
2279 346 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
2280 19 jeremybenn
      if test $ac_must_keep_next = true; then
2281
        ac_must_keep_next=false # Got value, back to normal.
2282
      else
2283
        case $ac_arg in
2284
          *=* | --config-cache | -C | -disable-* | --disable-* \
2285
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2286
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2287
          | -with-* | --with-* | -without-* | --without-* | --x)
2288
            case "$ac_configure_args0 " in
2289
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2290
            esac
2291
            ;;
2292
          -* ) ac_must_keep_next=true ;;
2293
        esac
2294
      fi
2295 346 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2296 19 jeremybenn
      ;;
2297
    esac
2298
  done
2299
done
2300 346 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2301
{ ac_configure_args1=; unset ac_configure_args1;}
2302 19 jeremybenn
 
2303
# When interrupted or exit'd, cleanup temporary files, and complete
2304
# config.log.  We remove comments because anyway the quotes in there
2305
# would cause problems or look ugly.
2306
# WARNING: Use '\'' to represent an apostrophe within the trap.
2307
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2308
trap 'exit_status=$?
2309
  # Save into config.log some information that might help in debugging.
2310
  {
2311
    echo
2312
 
2313 625 jeremybenn
    $as_echo "## ---------------- ##
2314 19 jeremybenn
## Cache variables. ##
2315 625 jeremybenn
## ---------------- ##"
2316 19 jeremybenn
    echo
2317
    # The following way of writing the cache mishandles newlines in values,
2318
(
2319
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2320
    eval ac_val=\$$ac_var
2321
    case $ac_val in #(
2322
    *${as_nl}*)
2323
      case $ac_var in #(
2324 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2325 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2326 19 jeremybenn
      esac
2327
      case $ac_var in #(
2328
      _ | IFS | as_nl) ;; #(
2329 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2330 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2331 19 jeremybenn
      esac ;;
2332
    esac
2333
  done
2334
  (set) 2>&1 |
2335
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2336
    *${as_nl}ac_space=\ *)
2337
      sed -n \
2338
        "s/'\''/'\''\\\\'\'''\''/g;
2339
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2340
      ;; #(
2341
    *)
2342
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2343
      ;;
2344
    esac |
2345
    sort
2346
)
2347
    echo
2348
 
2349 625 jeremybenn
    $as_echo "## ----------------- ##
2350 19 jeremybenn
## Output variables. ##
2351 625 jeremybenn
## ----------------- ##"
2352 19 jeremybenn
    echo
2353
    for ac_var in $ac_subst_vars
2354
    do
2355
      eval ac_val=\$$ac_var
2356
      case $ac_val in
2357 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2358 19 jeremybenn
      esac
2359 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
2360 19 jeremybenn
    done | sort
2361
    echo
2362
 
2363
    if test -n "$ac_subst_files"; then
2364 625 jeremybenn
      $as_echo "## ------------------- ##
2365 19 jeremybenn
## File substitutions. ##
2366 625 jeremybenn
## ------------------- ##"
2367 19 jeremybenn
      echo
2368
      for ac_var in $ac_subst_files
2369
      do
2370
        eval ac_val=\$$ac_var
2371
        case $ac_val in
2372 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2373 19 jeremybenn
        esac
2374 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
2375 19 jeremybenn
      done | sort
2376
      echo
2377
    fi
2378
 
2379
    if test -s confdefs.h; then
2380 625 jeremybenn
      $as_echo "## ----------- ##
2381 19 jeremybenn
## confdefs.h. ##
2382 625 jeremybenn
## ----------- ##"
2383 19 jeremybenn
      echo
2384
      cat confdefs.h
2385
      echo
2386
    fi
2387
    test "$ac_signal" != 0 &&
2388 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
2389
    $as_echo "$as_me: exit $exit_status"
2390 19 jeremybenn
  } >&5
2391
  rm -f core *.core core.conftest.* &&
2392
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2393
    exit $exit_status
2394
' 0
2395
for ac_signal in 1 2 13 15; do
2396 346 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2397 19 jeremybenn
done
2398
ac_signal=0
2399
 
2400
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2401
rm -f -r conftest* confdefs.h
2402
 
2403 346 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2404
 
2405 19 jeremybenn
# Predefined preprocessor variables.
2406
 
2407
cat >>confdefs.h <<_ACEOF
2408
#define PACKAGE_NAME "$PACKAGE_NAME"
2409
_ACEOF
2410
 
2411
cat >>confdefs.h <<_ACEOF
2412
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2413
_ACEOF
2414
 
2415
cat >>confdefs.h <<_ACEOF
2416
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2417
_ACEOF
2418
 
2419
cat >>confdefs.h <<_ACEOF
2420
#define PACKAGE_STRING "$PACKAGE_STRING"
2421
_ACEOF
2422
 
2423
cat >>confdefs.h <<_ACEOF
2424
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2425
_ACEOF
2426
 
2427 346 jeremybenn
cat >>confdefs.h <<_ACEOF
2428
#define PACKAGE_URL "$PACKAGE_URL"
2429
_ACEOF
2430 19 jeremybenn
 
2431 346 jeremybenn
 
2432 19 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2433 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
2434
ac_site_file1=NONE
2435
ac_site_file2=NONE
2436 19 jeremybenn
if test -n "$CONFIG_SITE"; then
2437 625 jeremybenn
  # We do not want a PATH search for config.site.
2438
  case $CONFIG_SITE in #((
2439
    -*)  ac_site_file1=./$CONFIG_SITE;;
2440
    */*) ac_site_file1=$CONFIG_SITE;;
2441
    *)   ac_site_file1=./$CONFIG_SITE;;
2442
  esac
2443 19 jeremybenn
elif test "x$prefix" != xNONE; then
2444 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
2445
  ac_site_file2=$prefix/etc/config.site
2446 19 jeremybenn
else
2447 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
2448
  ac_site_file2=$ac_default_prefix/etc/config.site
2449 19 jeremybenn
fi
2450 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2451 19 jeremybenn
do
2452 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
2453 625 jeremybenn
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2454 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2455 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2456 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2457 625 jeremybenn
    . "$ac_site_file" \
2458
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2459
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2460
as_fn_error $? "failed to load site script $ac_site_file
2461
See \`config.log' for more details" "$LINENO" 5; }
2462 19 jeremybenn
  fi
2463
done
2464
 
2465
if test -r "$cache_file"; then
2466 625 jeremybenn
  # Some versions of bash will fail to source /dev/null (special files
2467
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2468
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2469 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2470 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2471 19 jeremybenn
    case $cache_file in
2472
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2473
      *)                      . "./$cache_file";;
2474
    esac
2475
  fi
2476
else
2477 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2478 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2479 19 jeremybenn
  >$cache_file
2480
fi
2481
 
2482
# Check that the precious variables saved in the cache have kept the same
2483
# value.
2484
ac_cache_corrupted=false
2485
for ac_var in $ac_precious_vars; do
2486
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2487
  eval ac_new_set=\$ac_env_${ac_var}_set
2488
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2489
  eval ac_new_val=\$ac_env_${ac_var}_value
2490
  case $ac_old_set,$ac_new_set in
2491
    set,)
2492 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2493 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2494 19 jeremybenn
      ac_cache_corrupted=: ;;
2495
    ,set)
2496 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2497 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2498 19 jeremybenn
      ac_cache_corrupted=: ;;
2499
    ,);;
2500
    *)
2501
      if test "x$ac_old_val" != "x$ac_new_val"; then
2502 82 jeremybenn
        # differences in whitespace do not lead to failure.
2503
        ac_old_val_w=`echo x $ac_old_val`
2504
        ac_new_val_w=`echo x $ac_new_val`
2505
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2506 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2507 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2508
          ac_cache_corrupted=:
2509
        else
2510 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2511 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2512
          eval $ac_var=\$ac_old_val
2513
        fi
2514 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2515 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2516 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2517 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2518 19 jeremybenn
      fi;;
2519
  esac
2520
  # Pass precious variables to config.status.
2521
  if test "$ac_new_set" = set; then
2522
    case $ac_new_val in
2523 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2524 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2525
    esac
2526
    case " $ac_configure_args " in
2527
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2528 346 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2529 19 jeremybenn
    esac
2530
  fi
2531
done
2532
if $ac_cache_corrupted; then
2533 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2534 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2535 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2536 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2537 625 jeremybenn
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2538 19 jeremybenn
fi
2539 346 jeremybenn
## -------------------- ##
2540
## Main body of script. ##
2541
## -------------------- ##
2542 19 jeremybenn
 
2543
ac_ext=c
2544
ac_cpp='$CPP $CPPFLAGS'
2545
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548
 
2549
 
2550
 
2551 82 jeremybenn
 
2552 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2553 19 jeremybenn
ac_ext=c
2554
ac_cpp='$CPP $CPPFLAGS'
2555
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
if test -n "$ac_tool_prefix"; then
2559
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2560
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2561 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2563 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2564 82 jeremybenn
  $as_echo_n "(cached) " >&6
2565 19 jeremybenn
else
2566
  if test -n "$CC"; then
2567
  ac_cv_prog_CC="$CC" # Let the user override the test.
2568
else
2569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570
for as_dir in $PATH
2571
do
2572
  IFS=$as_save_IFS
2573
  test -z "$as_dir" && as_dir=.
2574 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2575 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2577 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 19 jeremybenn
    break 2
2579
  fi
2580
done
2581 346 jeremybenn
  done
2582 19 jeremybenn
IFS=$as_save_IFS
2583
 
2584
fi
2585
fi
2586
CC=$ac_cv_prog_CC
2587
if test -n "$CC"; then
2588 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2589 82 jeremybenn
$as_echo "$CC" >&6; }
2590 19 jeremybenn
else
2591 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 82 jeremybenn
$as_echo "no" >&6; }
2593 19 jeremybenn
fi
2594
 
2595
 
2596
fi
2597
if test -z "$ac_cv_prog_CC"; then
2598
  ac_ct_CC=$CC
2599
  # Extract the first word of "gcc", so it can be a program name with args.
2600
set dummy gcc; ac_word=$2
2601 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2603 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2604 82 jeremybenn
  $as_echo_n "(cached) " >&6
2605 19 jeremybenn
else
2606
  if test -n "$ac_ct_CC"; then
2607
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608
else
2609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610
for as_dir in $PATH
2611
do
2612
  IFS=$as_save_IFS
2613
  test -z "$as_dir" && as_dir=.
2614 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2615 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616
    ac_cv_prog_ac_ct_CC="gcc"
2617 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 19 jeremybenn
    break 2
2619
  fi
2620
done
2621 346 jeremybenn
  done
2622 19 jeremybenn
IFS=$as_save_IFS
2623
 
2624
fi
2625
fi
2626
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627
if test -n "$ac_ct_CC"; then
2628 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2629 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2630 19 jeremybenn
else
2631 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632 82 jeremybenn
$as_echo "no" >&6; }
2633 19 jeremybenn
fi
2634
 
2635
  if test "x$ac_ct_CC" = x; then
2636
    CC=""
2637
  else
2638
    case $cross_compiling:$ac_tool_warned in
2639
yes:)
2640 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2641 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2642 19 jeremybenn
ac_tool_warned=yes ;;
2643
esac
2644
    CC=$ac_ct_CC
2645
  fi
2646
else
2647
  CC="$ac_cv_prog_CC"
2648
fi
2649
 
2650
if test -z "$CC"; then
2651
          if test -n "$ac_tool_prefix"; then
2652
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2653
set dummy ${ac_tool_prefix}cc; ac_word=$2
2654 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2656 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2657 82 jeremybenn
  $as_echo_n "(cached) " >&6
2658 19 jeremybenn
else
2659
  if test -n "$CC"; then
2660
  ac_cv_prog_CC="$CC" # Let the user override the test.
2661
else
2662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663
for as_dir in $PATH
2664
do
2665
  IFS=$as_save_IFS
2666
  test -z "$as_dir" && as_dir=.
2667 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2668 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2670 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 19 jeremybenn
    break 2
2672
  fi
2673
done
2674 346 jeremybenn
  done
2675 19 jeremybenn
IFS=$as_save_IFS
2676
 
2677
fi
2678
fi
2679
CC=$ac_cv_prog_CC
2680
if test -n "$CC"; then
2681 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2682 82 jeremybenn
$as_echo "$CC" >&6; }
2683 19 jeremybenn
else
2684 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 82 jeremybenn
$as_echo "no" >&6; }
2686 19 jeremybenn
fi
2687
 
2688
 
2689
  fi
2690
fi
2691
if test -z "$CC"; then
2692
  # Extract the first word of "cc", so it can be a program name with args.
2693
set dummy cc; ac_word=$2
2694 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2696 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2697 82 jeremybenn
  $as_echo_n "(cached) " >&6
2698 19 jeremybenn
else
2699
  if test -n "$CC"; then
2700
  ac_cv_prog_CC="$CC" # Let the user override the test.
2701
else
2702
  ac_prog_rejected=no
2703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704
for as_dir in $PATH
2705
do
2706
  IFS=$as_save_IFS
2707
  test -z "$as_dir" && as_dir=.
2708 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2709 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2711
       ac_prog_rejected=yes
2712
       continue
2713
     fi
2714
    ac_cv_prog_CC="cc"
2715 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 19 jeremybenn
    break 2
2717
  fi
2718
done
2719 346 jeremybenn
  done
2720 19 jeremybenn
IFS=$as_save_IFS
2721
 
2722
if test $ac_prog_rejected = yes; then
2723
  # We found a bogon in the path, so make sure we never use it.
2724
  set dummy $ac_cv_prog_CC
2725
  shift
2726
  if test $# != 0; then
2727
    # We chose a different compiler from the bogus one.
2728
    # However, it has the same basename, so the bogon will be chosen
2729
    # first if we set CC to just the basename; use the full file name.
2730
    shift
2731
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2732
  fi
2733
fi
2734
fi
2735
fi
2736
CC=$ac_cv_prog_CC
2737
if test -n "$CC"; then
2738 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2739 82 jeremybenn
$as_echo "$CC" >&6; }
2740 19 jeremybenn
else
2741 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 82 jeremybenn
$as_echo "no" >&6; }
2743 19 jeremybenn
fi
2744
 
2745
 
2746
fi
2747
if test -z "$CC"; then
2748
  if test -n "$ac_tool_prefix"; then
2749
  for ac_prog in cl.exe
2750
  do
2751
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2752
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2753 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2755 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2756 82 jeremybenn
  $as_echo_n "(cached) " >&6
2757 19 jeremybenn
else
2758
  if test -n "$CC"; then
2759
  ac_cv_prog_CC="$CC" # Let the user override the test.
2760
else
2761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762
for as_dir in $PATH
2763
do
2764
  IFS=$as_save_IFS
2765
  test -z "$as_dir" && as_dir=.
2766 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2767 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2769 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 19 jeremybenn
    break 2
2771
  fi
2772
done
2773 346 jeremybenn
  done
2774 19 jeremybenn
IFS=$as_save_IFS
2775
 
2776
fi
2777
fi
2778
CC=$ac_cv_prog_CC
2779
if test -n "$CC"; then
2780 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781 82 jeremybenn
$as_echo "$CC" >&6; }
2782 19 jeremybenn
else
2783 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 82 jeremybenn
$as_echo "no" >&6; }
2785 19 jeremybenn
fi
2786
 
2787
 
2788
    test -n "$CC" && break
2789
  done
2790
fi
2791
if test -z "$CC"; then
2792
  ac_ct_CC=$CC
2793
  for ac_prog in cl.exe
2794
do
2795
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2796
set dummy $ac_prog; ac_word=$2
2797 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2799 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2800 82 jeremybenn
  $as_echo_n "(cached) " >&6
2801 19 jeremybenn
else
2802
  if test -n "$ac_ct_CC"; then
2803
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804
else
2805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806
for as_dir in $PATH
2807
do
2808
  IFS=$as_save_IFS
2809
  test -z "$as_dir" && as_dir=.
2810 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2811 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812
    ac_cv_prog_ac_ct_CC="$ac_prog"
2813 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 19 jeremybenn
    break 2
2815
  fi
2816
done
2817 346 jeremybenn
  done
2818 19 jeremybenn
IFS=$as_save_IFS
2819
 
2820
fi
2821
fi
2822
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2823
if test -n "$ac_ct_CC"; then
2824 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2825 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2826 19 jeremybenn
else
2827 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 82 jeremybenn
$as_echo "no" >&6; }
2829 19 jeremybenn
fi
2830
 
2831
 
2832
  test -n "$ac_ct_CC" && break
2833
done
2834
 
2835
  if test "x$ac_ct_CC" = x; then
2836
    CC=""
2837
  else
2838
    case $cross_compiling:$ac_tool_warned in
2839
yes:)
2840 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 19 jeremybenn
ac_tool_warned=yes ;;
2843
esac
2844
    CC=$ac_ct_CC
2845
  fi
2846
fi
2847
 
2848
fi
2849
 
2850
 
2851 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853 625 jeremybenn
as_fn_error $? "no acceptable C compiler found in \$PATH
2854
See \`config.log' for more details" "$LINENO" 5; }
2855 19 jeremybenn
 
2856
# Provide some information about the compiler.
2857 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2858 82 jeremybenn
set X $ac_compile
2859
ac_compiler=$2
2860 346 jeremybenn
for ac_option in --version -v -V -qversion; do
2861
  { { ac_try="$ac_compiler $ac_option >&5"
2862 19 jeremybenn
case "(($ac_try" in
2863
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864
  *) ac_try_echo=$ac_try;;
2865
esac
2866 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2867
$as_echo "$ac_try_echo"; } >&5
2868
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2869 19 jeremybenn
  ac_status=$?
2870 346 jeremybenn
  if test -s conftest.err; then
2871
    sed '10a\
2872
... rest of stderr output deleted ...
2873
         10q' conftest.err >conftest.er1
2874
    cat conftest.er1 >&5
2875
  fi
2876 625 jeremybenn
  rm -f conftest.er1 conftest.err
2877 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878
  test $ac_status = 0; }
2879
done
2880 19 jeremybenn
 
2881 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 19 jeremybenn
/* end confdefs.h.  */
2883 625 jeremybenn
 
2884 19 jeremybenn
int
2885
main ()
2886
{
2887
 
2888
  ;
2889
  return 0;
2890
}
2891
_ACEOF
2892
ac_clean_files_save=$ac_clean_files
2893 625 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2894 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2895
# It will help us diagnose broken compilers, and finding out an intuition
2896
# of exeext.
2897 625 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2898
$as_echo_n "checking whether the C compiler works... " >&6; }
2899 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2900
 
2901
# The possible output files:
2902
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2903
 
2904 19 jeremybenn
ac_rmfiles=
2905
for ac_file in $ac_files
2906
do
2907
  case $ac_file in
2908 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2909 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2910
  esac
2911
done
2912
rm -f $ac_rmfiles
2913
 
2914 346 jeremybenn
if { { ac_try="$ac_link_default"
2915 19 jeremybenn
case "(($ac_try" in
2916
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917
  *) ac_try_echo=$ac_try;;
2918
esac
2919 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920
$as_echo "$ac_try_echo"; } >&5
2921 19 jeremybenn
  (eval "$ac_link_default") 2>&5
2922
  ac_status=$?
2923 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924
  test $ac_status = 0; }; then :
2925 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2926
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2927
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2928
# so that the user can short-circuit this test for compilers unknown to
2929
# Autoconf.
2930
for ac_file in $ac_files ''
2931
do
2932
  test -f "$ac_file" || continue
2933
  case $ac_file in
2934 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2935 19 jeremybenn
        ;;
2936
    [ab].out )
2937
        # We found the default executable, but exeext='' is most
2938
        # certainly right.
2939
        break;;
2940
    *.* )
2941 346 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2942 19 jeremybenn
        then :; else
2943
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944
        fi
2945
        # We set ac_cv_exeext here because the later test for it is not
2946
        # safe: cross compilers may not add the suffix if given an `-o'
2947
        # argument, so we may need to know it at that point already.
2948
        # Even if this section looks crufty: it has the advantage of
2949
        # actually working.
2950
        break;;
2951
    * )
2952
        break;;
2953
  esac
2954
done
2955
test "$ac_cv_exeext" = no && ac_cv_exeext=
2956
 
2957
else
2958
  ac_file=''
2959
fi
2960 346 jeremybenn
if test -z "$ac_file"; then :
2961 625 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962
$as_echo "no" >&6; }
2963
$as_echo "$as_me: failed program was:" >&5
2964 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2965
 
2966 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968 625 jeremybenn
as_fn_error 77 "C compiler cannot create executables
2969
See \`config.log' for more details" "$LINENO" 5; }
2970
else
2971
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972
$as_echo "yes" >&6; }
2973 19 jeremybenn
fi
2974 625 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2975
$as_echo_n "checking for C compiler default output file name... " >&6; }
2976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2977
$as_echo "$ac_file" >&6; }
2978 19 jeremybenn
ac_exeext=$ac_cv_exeext
2979
 
2980 625 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2981 19 jeremybenn
ac_clean_files=$ac_clean_files_save
2982 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2983 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
2984 346 jeremybenn
if { { ac_try="$ac_link"
2985 19 jeremybenn
case "(($ac_try" in
2986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987
  *) ac_try_echo=$ac_try;;
2988
esac
2989 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990
$as_echo "$ac_try_echo"; } >&5
2991 19 jeremybenn
  (eval "$ac_link") 2>&5
2992
  ac_status=$?
2993 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994
  test $ac_status = 0; }; then :
2995 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2996
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2997
# work properly (i.e., refer to `conftest.exe'), while it won't with
2998
# `rm'.
2999
for ac_file in conftest.exe conftest conftest.*; do
3000
  test -f "$ac_file" || continue
3001
  case $ac_file in
3002 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3003 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004
          break;;
3005
    * ) break;;
3006
  esac
3007
done
3008
else
3009 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011 625 jeremybenn
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3012
See \`config.log' for more details" "$LINENO" 5; }
3013 19 jeremybenn
fi
3014 625 jeremybenn
rm -f conftest conftest$ac_cv_exeext
3015 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3016 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
3017 19 jeremybenn
 
3018
rm -f conftest.$ac_ext
3019
EXEEXT=$ac_cv_exeext
3020
ac_exeext=$EXEEXT
3021 625 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022
/* end confdefs.h.  */
3023
#include 
3024
int
3025
main ()
3026
{
3027
FILE *f = fopen ("conftest.out", "w");
3028
 return ferror (f) || fclose (f) != 0;
3029
 
3030
  ;
3031
  return 0;
3032
}
3033
_ACEOF
3034
ac_clean_files="$ac_clean_files conftest.out"
3035
# Check that the compiler produces executables we can run.  If not, either
3036
# the compiler is broken, or we cross compile.
3037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3038
$as_echo_n "checking whether we are cross compiling... " >&6; }
3039
if test "$cross_compiling" != yes; then
3040
  { { ac_try="$ac_link"
3041
case "(($ac_try" in
3042
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043
  *) ac_try_echo=$ac_try;;
3044
esac
3045
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046
$as_echo "$ac_try_echo"; } >&5
3047
  (eval "$ac_link") 2>&5
3048
  ac_status=$?
3049
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050
  test $ac_status = 0; }
3051
  if { ac_try='./conftest$ac_cv_exeext'
3052
  { { case "(($ac_try" in
3053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054
  *) ac_try_echo=$ac_try;;
3055
esac
3056
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057
$as_echo "$ac_try_echo"; } >&5
3058
  (eval "$ac_try") 2>&5
3059
  ac_status=$?
3060
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061
  test $ac_status = 0; }; }; then
3062
    cross_compiling=no
3063
  else
3064
    if test "$cross_compiling" = maybe; then
3065
        cross_compiling=yes
3066
    else
3067
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069
as_fn_error $? "cannot run C compiled programs.
3070
If you meant to cross compile, use \`--host'.
3071
See \`config.log' for more details" "$LINENO" 5; }
3072
    fi
3073
  fi
3074
fi
3075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3076
$as_echo "$cross_compiling" >&6; }
3077
 
3078
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3079
ac_clean_files=$ac_clean_files_save
3080 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3081 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
3082 625 jeremybenn
if ${ac_cv_objext+:} false; then :
3083 82 jeremybenn
  $as_echo_n "(cached) " >&6
3084 19 jeremybenn
else
3085 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 19 jeremybenn
/* end confdefs.h.  */
3087
 
3088
int
3089
main ()
3090
{
3091
 
3092
  ;
3093
  return 0;
3094
}
3095
_ACEOF
3096
rm -f conftest.o conftest.obj
3097 346 jeremybenn
if { { ac_try="$ac_compile"
3098 19 jeremybenn
case "(($ac_try" in
3099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100
  *) ac_try_echo=$ac_try;;
3101
esac
3102 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103
$as_echo "$ac_try_echo"; } >&5
3104 19 jeremybenn
  (eval "$ac_compile") 2>&5
3105
  ac_status=$?
3106 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107
  test $ac_status = 0; }; then :
3108 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3109
  test -f "$ac_file" || continue;
3110
  case $ac_file in
3111 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3112 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3113
       break;;
3114
  esac
3115
done
3116
else
3117 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3118 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3119
 
3120 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 625 jeremybenn
as_fn_error $? "cannot compute suffix of object files: cannot compile
3123
See \`config.log' for more details" "$LINENO" 5; }
3124 19 jeremybenn
fi
3125
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3126
fi
3127 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3128 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3129 19 jeremybenn
OBJEXT=$ac_cv_objext
3130
ac_objext=$OBJEXT
3131 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3132 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3133 625 jeremybenn
if ${ac_cv_c_compiler_gnu+:} false; then :
3134 82 jeremybenn
  $as_echo_n "(cached) " >&6
3135 19 jeremybenn
else
3136 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137 19 jeremybenn
/* end confdefs.h.  */
3138
 
3139
int
3140
main ()
3141
{
3142
#ifndef __GNUC__
3143
       choke me
3144
#endif
3145
 
3146
  ;
3147
  return 0;
3148
}
3149
_ACEOF
3150 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3151 19 jeremybenn
  ac_compiler_gnu=yes
3152
else
3153 346 jeremybenn
  ac_compiler_gnu=no
3154 19 jeremybenn
fi
3155
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3157
 
3158
fi
3159 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3160 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3161
if test $ac_compiler_gnu = yes; then
3162
  GCC=yes
3163
else
3164
  GCC=
3165
fi
3166 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
3167
ac_save_CFLAGS=$CFLAGS
3168 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3169 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3170 625 jeremybenn
if ${ac_cv_prog_cc_g+:} false; then :
3171 82 jeremybenn
  $as_echo_n "(cached) " >&6
3172 19 jeremybenn
else
3173
  ac_save_c_werror_flag=$ac_c_werror_flag
3174
   ac_c_werror_flag=yes
3175
   ac_cv_prog_cc_g=no
3176
   CFLAGS="-g"
3177 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 19 jeremybenn
/* end confdefs.h.  */
3179
 
3180
int
3181
main ()
3182
{
3183
 
3184
  ;
3185
  return 0;
3186
}
3187
_ACEOF
3188 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3189 19 jeremybenn
  ac_cv_prog_cc_g=yes
3190
else
3191 346 jeremybenn
  CFLAGS=""
3192
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 19 jeremybenn
/* end confdefs.h.  */
3194
 
3195
int
3196
main ()
3197
{
3198
 
3199
  ;
3200
  return 0;
3201
}
3202
_ACEOF
3203 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3204
 
3205 236 jeremybenn
else
3206 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3207 19 jeremybenn
         CFLAGS="-g"
3208 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 19 jeremybenn
/* end confdefs.h.  */
3210
 
3211
int
3212
main ()
3213
{
3214
 
3215
  ;
3216
  return 0;
3217
}
3218
_ACEOF
3219 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3220 19 jeremybenn
  ac_cv_prog_cc_g=yes
3221
fi
3222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223
fi
3224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225
fi
3226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227
   ac_c_werror_flag=$ac_save_c_werror_flag
3228
fi
3229 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3230 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3231 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3232
  CFLAGS=$ac_save_CFLAGS
3233
elif test $ac_cv_prog_cc_g = yes; then
3234
  if test "$GCC" = yes; then
3235
    CFLAGS="-g -O2"
3236
  else
3237
    CFLAGS="-g"
3238
  fi
3239
else
3240
  if test "$GCC" = yes; then
3241
    CFLAGS="-O2"
3242
  else
3243
    CFLAGS=
3244
  fi
3245
fi
3246 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3247 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3248 625 jeremybenn
if ${ac_cv_prog_cc_c89+:} false; then :
3249 82 jeremybenn
  $as_echo_n "(cached) " >&6
3250 19 jeremybenn
else
3251
  ac_cv_prog_cc_c89=no
3252
ac_save_CC=$CC
3253 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 19 jeremybenn
/* end confdefs.h.  */
3255
#include 
3256
#include 
3257
#include 
3258
#include 
3259
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3260
struct buf { int x; };
3261
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3262
static char *e (p, i)
3263
     char **p;
3264
     int i;
3265
{
3266
  return p[i];
3267
}
3268
static char *f (char * (*g) (char **, int), char **p, ...)
3269
{
3270
  char *s;
3271
  va_list v;
3272
  va_start (v,p);
3273
  s = g (p, va_arg (v,int));
3274
  va_end (v);
3275
  return s;
3276
}
3277
 
3278
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3279
   function prototypes and stuff, but not '\xHH' hex character constants.
3280
   These don't provoke an error unfortunately, instead are silently treated
3281
   as 'x'.  The following induces an error, until -std is added to get
3282
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3283
   array size at least.  It's necessary to write '\x00'==0 to get something
3284
   that's true only with -std.  */
3285
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3286
 
3287
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3288
   inside strings and character constants.  */
3289
#define FOO(x) 'x'
3290
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3291
 
3292
int test (int i, double x);
3293
struct s1 {int (*f) (int a);};
3294
struct s2 {int (*f) (double a);};
3295
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3296
int argc;
3297
char **argv;
3298
int
3299
main ()
3300
{
3301
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3302
  ;
3303
  return 0;
3304
}
3305
_ACEOF
3306
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3307
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3308
do
3309
  CC="$ac_save_CC $ac_arg"
3310 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3311 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3312
fi
3313
rm -f core conftest.err conftest.$ac_objext
3314
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3315
done
3316
rm -f conftest.$ac_ext
3317
CC=$ac_save_CC
3318
 
3319
fi
3320
# AC_CACHE_VAL
3321
case "x$ac_cv_prog_cc_c89" in
3322
  x)
3323 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3324 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3325 19 jeremybenn
  xno)
3326 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3327 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3328 19 jeremybenn
  *)
3329
    CC="$CC $ac_cv_prog_cc_c89"
3330 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3331 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3332 19 jeremybenn
esac
3333 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3334 19 jeremybenn
 
3335 346 jeremybenn
fi
3336 19 jeremybenn
 
3337
ac_ext=c
3338
ac_cpp='$CPP $CPPFLAGS'
3339
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342
 
3343 91 jeremybenn
 
3344
ac_ext=c
3345
ac_cpp='$CPP $CPPFLAGS'
3346
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3350 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3351
# On Suns, sometimes $CPP names a directory.
3352
if test -n "$CPP" && test -d "$CPP"; then
3353
  CPP=
3354
fi
3355
if test -z "$CPP"; then
3356 625 jeremybenn
  if ${ac_cv_prog_CPP+:} false; then :
3357 82 jeremybenn
  $as_echo_n "(cached) " >&6
3358 19 jeremybenn
else
3359 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3360
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3361
    do
3362
      ac_preproc_ok=false
3363
for ac_c_preproc_warn_flag in '' yes
3364 19 jeremybenn
do
3365 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3366
  # with a fresh cross-compiler works.
3367
  # Prefer  to  if __STDC__ is defined, since
3368
  #  exists even on freestanding compilers.
3369
  # On the NeXT, cc -E runs the code through the compiler's parser,
3370
  # not just through cpp. "Syntax error" is here to catch this case.
3371 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 91 jeremybenn
/* end confdefs.h.  */
3373
#ifdef __STDC__
3374
# include 
3375
#else
3376
# include 
3377
#endif
3378
                     Syntax error
3379
_ACEOF
3380 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3381
 
3382 236 jeremybenn
else
3383 91 jeremybenn
  # Broken: fails on valid input.
3384
continue
3385
fi
3386 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
3387 91 jeremybenn
 
3388
  # OK, works on sane cases.  Now check whether nonexistent headers
3389
  # can be detected and how.
3390 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 91 jeremybenn
/* end confdefs.h.  */
3392
#include 
3393
_ACEOF
3394 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3395 91 jeremybenn
  # Broken: success on invalid input.
3396
continue
3397 82 jeremybenn
else
3398 91 jeremybenn
  # Passes both tests.
3399
ac_preproc_ok=:
3400
break
3401 82 jeremybenn
fi
3402 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
3403 91 jeremybenn
 
3404
done
3405
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3406 625 jeremybenn
rm -f conftest.i conftest.err conftest.$ac_ext
3407 346 jeremybenn
if $ac_preproc_ok; then :
3408 91 jeremybenn
  break
3409 19 jeremybenn
fi
3410
 
3411 91 jeremybenn
    done
3412
    ac_cv_prog_CPP=$CPP
3413 19 jeremybenn
 
3414 91 jeremybenn
fi
3415
  CPP=$ac_cv_prog_CPP
3416
else
3417
  ac_cv_prog_CPP=$CPP
3418
fi
3419 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3420 91 jeremybenn
$as_echo "$CPP" >&6; }
3421
ac_preproc_ok=false
3422
for ac_c_preproc_warn_flag in '' yes
3423
do
3424
  # Use a header file that comes with gcc, so configuring glibc
3425
  # with a fresh cross-compiler works.
3426
  # Prefer  to  if __STDC__ is defined, since
3427
  #  exists even on freestanding compilers.
3428
  # On the NeXT, cc -E runs the code through the compiler's parser,
3429
  # not just through cpp. "Syntax error" is here to catch this case.
3430 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 91 jeremybenn
/* end confdefs.h.  */
3432
#ifdef __STDC__
3433
# include 
3434
#else
3435
# include 
3436
#endif
3437
                     Syntax error
3438
_ACEOF
3439 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3440
 
3441 236 jeremybenn
else
3442 91 jeremybenn
  # Broken: fails on valid input.
3443
continue
3444
fi
3445 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
3446 82 jeremybenn
 
3447 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3448
  # can be detected and how.
3449 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 91 jeremybenn
/* end confdefs.h.  */
3451
#include 
3452
_ACEOF
3453 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3454 91 jeremybenn
  # Broken: success on invalid input.
3455
continue
3456
else
3457
  # Passes both tests.
3458
ac_preproc_ok=:
3459
break
3460
fi
3461 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
3462 82 jeremybenn
 
3463 91 jeremybenn
done
3464
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3465 625 jeremybenn
rm -f conftest.i conftest.err conftest.$ac_ext
3466 346 jeremybenn
if $ac_preproc_ok; then :
3467
 
3468 91 jeremybenn
else
3469 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 625 jeremybenn
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3472
See \`config.log' for more details" "$LINENO" 5; }
3473 91 jeremybenn
fi
3474 82 jeremybenn
 
3475 91 jeremybenn
ac_ext=c
3476
ac_cpp='$CPP $CPPFLAGS'
3477
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480 82 jeremybenn
 
3481
 
3482 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3483 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3484 625 jeremybenn
if ${ac_cv_path_GREP+:} false; then :
3485 82 jeremybenn
  $as_echo_n "(cached) " >&6
3486 19 jeremybenn
else
3487 82 jeremybenn
  if test -z "$GREP"; then
3488 19 jeremybenn
  ac_path_GREP_found=false
3489 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3490
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3492
do
3493
  IFS=$as_save_IFS
3494
  test -z "$as_dir" && as_dir=.
3495 346 jeremybenn
    for ac_prog in grep ggrep; do
3496 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3497
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3498
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3499
# Check for GNU ac_path_GREP and select it if it is found.
3500 19 jeremybenn
  # Check for GNU $ac_path_GREP
3501
case `"$ac_path_GREP" --version 2>&1` in
3502
*GNU*)
3503
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3504
*)
3505
  ac_count=0
3506 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3507 19 jeremybenn
  while :
3508
  do
3509
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3510
    mv "conftest.tmp" "conftest.in"
3511
    cp "conftest.in" "conftest.nl"
3512 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3513 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3514
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3515 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3516 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3517
      # Best one so far, save it but keep looking for a better one
3518
      ac_cv_path_GREP="$ac_path_GREP"
3519
      ac_path_GREP_max=$ac_count
3520
    fi
3521
    # 10*(2^10) chars as input seems more than enough
3522
    test $ac_count -gt 10 && break
3523
  done
3524
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3525
esac
3526
 
3527 82 jeremybenn
      $ac_path_GREP_found && break 3
3528
    done
3529 19 jeremybenn
  done
3530 346 jeremybenn
  done
3531 19 jeremybenn
IFS=$as_save_IFS
3532 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3533 625 jeremybenn
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3534 82 jeremybenn
  fi
3535 19 jeremybenn
else
3536
  ac_cv_path_GREP=$GREP
3537
fi
3538
 
3539
fi
3540 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3541 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3542 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3543
 
3544
 
3545 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3546 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3547 625 jeremybenn
if ${ac_cv_path_EGREP+:} false; then :
3548 82 jeremybenn
  $as_echo_n "(cached) " >&6
3549 19 jeremybenn
else
3550
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3551
   then ac_cv_path_EGREP="$GREP -E"
3552
   else
3553 82 jeremybenn
     if test -z "$EGREP"; then
3554 19 jeremybenn
  ac_path_EGREP_found=false
3555 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3556
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3558
do
3559
  IFS=$as_save_IFS
3560
  test -z "$as_dir" && as_dir=.
3561 346 jeremybenn
    for ac_prog in egrep; do
3562 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3563
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3564
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3565
# Check for GNU ac_path_EGREP and select it if it is found.
3566 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3567
case `"$ac_path_EGREP" --version 2>&1` in
3568
*GNU*)
3569
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3570
*)
3571
  ac_count=0
3572 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3573 19 jeremybenn
  while :
3574
  do
3575
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3576
    mv "conftest.tmp" "conftest.in"
3577
    cp "conftest.in" "conftest.nl"
3578 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3579 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3580
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3581 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3582 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3583
      # Best one so far, save it but keep looking for a better one
3584
      ac_cv_path_EGREP="$ac_path_EGREP"
3585
      ac_path_EGREP_max=$ac_count
3586
    fi
3587
    # 10*(2^10) chars as input seems more than enough
3588
    test $ac_count -gt 10 && break
3589
  done
3590
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3591
esac
3592
 
3593 82 jeremybenn
      $ac_path_EGREP_found && break 3
3594
    done
3595 19 jeremybenn
  done
3596 346 jeremybenn
  done
3597 19 jeremybenn
IFS=$as_save_IFS
3598 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3599 625 jeremybenn
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3600 82 jeremybenn
  fi
3601
else
3602
  ac_cv_path_EGREP=$EGREP
3603 19 jeremybenn
fi
3604
 
3605 82 jeremybenn
   fi
3606 19 jeremybenn
fi
3607 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3608 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3609
 EGREP="$ac_cv_path_EGREP"
3610 19 jeremybenn
 
3611 82 jeremybenn
 
3612 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3613 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3614 625 jeremybenn
if ${ac_cv_header_stdc+:} false; then :
3615 91 jeremybenn
  $as_echo_n "(cached) " >&6
3616
else
3617 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 91 jeremybenn
/* end confdefs.h.  */
3619
#include 
3620
#include 
3621
#include 
3622
#include 
3623
 
3624
int
3625
main ()
3626
{
3627
 
3628
  ;
3629
  return 0;
3630
}
3631
_ACEOF
3632 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3633 91 jeremybenn
  ac_cv_header_stdc=yes
3634
else
3635 346 jeremybenn
  ac_cv_header_stdc=no
3636 91 jeremybenn
fi
3637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638
 
3639
if test $ac_cv_header_stdc = yes; then
3640
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3641 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 91 jeremybenn
/* end confdefs.h.  */
3643
#include 
3644
 
3645
_ACEOF
3646
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
3648
 
3649 91 jeremybenn
else
3650
  ac_cv_header_stdc=no
3651
fi
3652
rm -f conftest*
3653
 
3654
fi
3655
 
3656
if test $ac_cv_header_stdc = yes; then
3657
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3658 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 91 jeremybenn
/* end confdefs.h.  */
3660
#include 
3661
 
3662
_ACEOF
3663
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3664 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
3665
 
3666 91 jeremybenn
else
3667
  ac_cv_header_stdc=no
3668
fi
3669
rm -f conftest*
3670
 
3671
fi
3672
 
3673
if test $ac_cv_header_stdc = yes; then
3674
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3675 346 jeremybenn
  if test "$cross_compiling" = yes; then :
3676 91 jeremybenn
  :
3677
else
3678 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 91 jeremybenn
/* end confdefs.h.  */
3680
#include 
3681
#include 
3682
#if ((' ' & 0x0FF) == 0x020)
3683
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3684
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3685
#else
3686
# define ISLOWER(c) \
3687
                   (('a' <= (c) && (c) <= 'i') \
3688
                     || ('j' <= (c) && (c) <= 'r') \
3689
                     || ('s' <= (c) && (c) <= 'z'))
3690
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3691
#endif
3692
 
3693
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3694
int
3695
main ()
3696
{
3697
  int i;
3698
  for (i = 0; i < 256; i++)
3699
    if (XOR (islower (i), ISLOWER (i))
3700
        || toupper (i) != TOUPPER (i))
3701
      return 2;
3702
  return 0;
3703
}
3704
_ACEOF
3705 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
3706
 
3707 236 jeremybenn
else
3708 346 jeremybenn
  ac_cv_header_stdc=no
3709 91 jeremybenn
fi
3710 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3711
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3712 91 jeremybenn
fi
3713
 
3714
fi
3715
fi
3716 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3717 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3718
if test $ac_cv_header_stdc = yes; then
3719
 
3720 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3721 91 jeremybenn
 
3722
fi
3723
 
3724
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3725
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3726
                  inttypes.h stdint.h unistd.h
3727 346 jeremybenn
do :
3728
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3729
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3730
"
3731 625 jeremybenn
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3732 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3733
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3734
_ACEOF
3735
 
3736
fi
3737
 
3738
done
3739
 
3740
 
3741
 
3742 346 jeremybenn
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3743 625 jeremybenn
if test "x$ac_cv_header_minix_config_h" = xyes; then :
3744 91 jeremybenn
  MINIX=yes
3745
else
3746
  MINIX=
3747
fi
3748
 
3749
 
3750
  if test "$MINIX" = yes; then
3751
 
3752 346 jeremybenn
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3753 91 jeremybenn
 
3754
 
3755 346 jeremybenn
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3756 91 jeremybenn
 
3757
 
3758 346 jeremybenn
$as_echo "#define _MINIX 1" >>confdefs.h
3759 91 jeremybenn
 
3760
  fi
3761
 
3762
 
3763 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3764 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3765 625 jeremybenn
if ${ac_cv_safe_to_define___extensions__+:} false; then :
3766 91 jeremybenn
  $as_echo_n "(cached) " >&6
3767
else
3768 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 91 jeremybenn
/* end confdefs.h.  */
3770
 
3771
#         define __EXTENSIONS__ 1
3772
          $ac_includes_default
3773
int
3774
main ()
3775
{
3776
 
3777
  ;
3778
  return 0;
3779
}
3780
_ACEOF
3781 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3782 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3783
else
3784 346 jeremybenn
  ac_cv_safe_to_define___extensions__=no
3785 91 jeremybenn
fi
3786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787
fi
3788 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3789 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3790
  test $ac_cv_safe_to_define___extensions__ = yes &&
3791 346 jeremybenn
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3792 91 jeremybenn
 
3793 346 jeremybenn
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3794 91 jeremybenn
 
3795 346 jeremybenn
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3796 91 jeremybenn
 
3797 346 jeremybenn
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3798 91 jeremybenn
 
3799 346 jeremybenn
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3800 91 jeremybenn
 
3801
 
3802
 
3803
# Check we have the execute source file present for sanity. Specify a separate
3804
# config for the testsuite OR1K specific programs, since we'll need different
3805
# tool chain there (the OpenRISC one, rather than the native one).
3806
 
3807
ac_aux_dir=
3808
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3809 625 jeremybenn
  if test -f "$ac_dir/install-sh"; then
3810
    ac_aux_dir=$ac_dir
3811
    ac_install_sh="$ac_aux_dir/install-sh -c"
3812
    break
3813
  elif test -f "$ac_dir/install.sh"; then
3814
    ac_aux_dir=$ac_dir
3815
    ac_install_sh="$ac_aux_dir/install.sh -c"
3816
    break
3817
  elif test -f "$ac_dir/shtool"; then
3818
    ac_aux_dir=$ac_dir
3819
    ac_install_sh="$ac_aux_dir/shtool install -c"
3820
    break
3821
  fi
3822 91 jeremybenn
done
3823
if test -z "$ac_aux_dir"; then
3824 625 jeremybenn
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3825 91 jeremybenn
fi
3826
 
3827
# These three variables are undocumented and unsupported,
3828
# and are intended to be withdrawn in a future Autoconf release.
3829
# They can cause serious problems if a builder's source tree is in a directory
3830
# whose full name contains unusual characters.
3831
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3832
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3833
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3834
 
3835
 
3836
 
3837
 
3838
subdirs="$subdirs testsuite/test-code-or1k"
3839
 
3840
 
3841
# Make sure we can run config.sub.
3842
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3843 625 jeremybenn
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3844 91 jeremybenn
 
3845 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3846 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3847 625 jeremybenn
if ${ac_cv_build+:} false; then :
3848 91 jeremybenn
  $as_echo_n "(cached) " >&6
3849
else
3850
  ac_build_alias=$build_alias
3851
test "x$ac_build_alias" = x &&
3852
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3853
test "x$ac_build_alias" = x &&
3854 625 jeremybenn
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3855 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3856 625 jeremybenn
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3857 91 jeremybenn
 
3858
fi
3859 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3860 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3861
case $ac_cv_build in
3862
*-*-*) ;;
3863 625 jeremybenn
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3864 91 jeremybenn
esac
3865
build=$ac_cv_build
3866
ac_save_IFS=$IFS; IFS='-'
3867
set x $ac_cv_build
3868
shift
3869
build_cpu=$1
3870
build_vendor=$2
3871
shift; shift
3872
# Remember, the first character of IFS is used to create $*,
3873
# except with old shells:
3874
build_os=$*
3875
IFS=$ac_save_IFS
3876
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3877
 
3878
 
3879 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3880 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3881 625 jeremybenn
if ${ac_cv_host+:} false; then :
3882 91 jeremybenn
  $as_echo_n "(cached) " >&6
3883
else
3884
  if test "x$host_alias" = x; then
3885
  ac_cv_host=$ac_cv_build
3886
else
3887
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3888 625 jeremybenn
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3889 91 jeremybenn
fi
3890
 
3891
fi
3892 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3893 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
3894
case $ac_cv_host in
3895
*-*-*) ;;
3896 625 jeremybenn
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3897 91 jeremybenn
esac
3898
host=$ac_cv_host
3899
ac_save_IFS=$IFS; IFS='-'
3900
set x $ac_cv_host
3901
shift
3902
host_cpu=$1
3903
host_vendor=$2
3904
shift; shift
3905
# Remember, the first character of IFS is used to create $*,
3906
# except with old shells:
3907
host_os=$*
3908
IFS=$ac_save_IFS
3909
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3910
 
3911
 
3912 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3913 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
3914 625 jeremybenn
if ${ac_cv_target+:} false; then :
3915 91 jeremybenn
  $as_echo_n "(cached) " >&6
3916
else
3917
  if test "x$target_alias" = x; then
3918
  ac_cv_target=$ac_cv_host
3919
else
3920
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3921 625 jeremybenn
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3922 91 jeremybenn
fi
3923
 
3924
fi
3925 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3926 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
3927
case $ac_cv_target in
3928
*-*-*) ;;
3929 625 jeremybenn
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3930 91 jeremybenn
esac
3931
target=$ac_cv_target
3932
ac_save_IFS=$IFS; IFS='-'
3933
set x $ac_cv_target
3934
shift
3935
target_cpu=$1
3936
target_vendor=$2
3937
shift; shift
3938
# Remember, the first character of IFS is used to create $*,
3939
# except with old shells:
3940
target_os=$*
3941
IFS=$ac_save_IFS
3942
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3943
 
3944
 
3945
# The aliases save the names the user supplied, while $host etc.
3946
# will get canonicalized.
3947
test -n "$target_alias" &&
3948
  test "$program_prefix$program_suffix$program_transform_name" = \
3949
    NONENONEs,x,x, &&
3950
  program_prefix=${target_alias}-
3951
case `pwd` in
3952
  *\ * | *\     *)
3953 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3954 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3955
esac
3956
 
3957
 
3958
 
3959 784 jeremybenn
macro_version='2.4'
3960
macro_revision='1.3293'
3961 91 jeremybenn
 
3962
 
3963
 
3964
 
3965
 
3966
 
3967
 
3968
 
3969
 
3970
 
3971
 
3972
 
3973
 
3974
ltmain="$ac_aux_dir/ltmain.sh"
3975
 
3976 784 jeremybenn
# Backslashify metacharacters that are still active within
3977
# double-quoted strings.
3978
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3979
 
3980
# Same as above, but do not quote variable references.
3981
double_quote_subst='s/\(["`\\]\)/\\\1/g'
3982
 
3983
# Sed substitution to delay expansion of an escaped shell variable in a
3984
# double_quote_subst'ed string.
3985
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3986
 
3987
# Sed substitution to delay expansion of an escaped single quote.
3988
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3989
 
3990
# Sed substitution to avoid accidental globbing in evaled expressions
3991
no_glob_subst='s/\*/\\\*/g'
3992
 
3993
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3994
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3995
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3996
 
3997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3998
$as_echo_n "checking how to print strings... " >&6; }
3999
# Test print first, because it will be a builtin if present.
4000
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4001
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4002
  ECHO='print -r --'
4003
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4004
  ECHO='printf %s\n'
4005
else
4006
  # Use this function as a fallback that always works.
4007
  func_fallback_echo ()
4008
  {
4009
    eval 'cat <<_LTECHO_EOF
4010
$1
4011
_LTECHO_EOF'
4012
  }
4013
  ECHO='func_fallback_echo'
4014
fi
4015
 
4016
# func_echo_all arg...
4017
# Invoke $ECHO with all args, space-separated.
4018
func_echo_all ()
4019
{
4020
    $ECHO ""
4021
}
4022
 
4023
case "$ECHO" in
4024
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4025
$as_echo "printf" >&6; } ;;
4026
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4027
$as_echo "print -r" >&6; } ;;
4028
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4029
$as_echo "cat" >&6; } ;;
4030
esac
4031
 
4032
 
4033
 
4034
 
4035
 
4036
 
4037
 
4038
 
4039
 
4040
 
4041
 
4042
 
4043
 
4044
 
4045 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4046 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4047 625 jeremybenn
if ${ac_cv_path_SED+:} false; then :
4048 91 jeremybenn
  $as_echo_n "(cached) " >&6
4049
else
4050
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4051
     for ac_i in 1 2 3 4 5 6 7; do
4052
       ac_script="$ac_script$as_nl$ac_script"
4053
     done
4054
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4055 346 jeremybenn
     { ac_script=; unset ac_script;}
4056 91 jeremybenn
     if test -z "$SED"; then
4057
  ac_path_SED_found=false
4058
  # Loop through the user's path and test for each of PROGNAME-LIST
4059
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060
for as_dir in $PATH
4061
do
4062
  IFS=$as_save_IFS
4063
  test -z "$as_dir" && as_dir=.
4064 346 jeremybenn
    for ac_prog in sed gsed; do
4065 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4066
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4067
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4068
# Check for GNU ac_path_SED and select it if it is found.
4069
  # Check for GNU $ac_path_SED
4070
case `"$ac_path_SED" --version 2>&1` in
4071
*GNU*)
4072
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4073
*)
4074
  ac_count=0
4075
  $as_echo_n 0123456789 >"conftest.in"
4076
  while :
4077
  do
4078
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4079
    mv "conftest.tmp" "conftest.in"
4080
    cp "conftest.in" "conftest.nl"
4081
    $as_echo '' >> "conftest.nl"
4082
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4083
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4084 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4085 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4086
      # Best one so far, save it but keep looking for a better one
4087
      ac_cv_path_SED="$ac_path_SED"
4088
      ac_path_SED_max=$ac_count
4089
    fi
4090
    # 10*(2^10) chars as input seems more than enough
4091
    test $ac_count -gt 10 && break
4092
  done
4093
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4094
esac
4095
 
4096
      $ac_path_SED_found && break 3
4097
    done
4098
  done
4099 346 jeremybenn
  done
4100 91 jeremybenn
IFS=$as_save_IFS
4101
  if test -z "$ac_cv_path_SED"; then
4102 625 jeremybenn
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4103 91 jeremybenn
  fi
4104
else
4105
  ac_cv_path_SED=$SED
4106
fi
4107
 
4108
fi
4109 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4110 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4111
 SED="$ac_cv_path_SED"
4112
  rm -f conftest.sed
4113
 
4114
test -z "$SED" && SED=sed
4115
Xsed="$SED -e 1s/^X//"
4116
 
4117
 
4118
 
4119
 
4120
 
4121
 
4122
 
4123
 
4124
 
4125
 
4126
 
4127 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4128 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4129 625 jeremybenn
if ${ac_cv_path_FGREP+:} false; then :
4130 82 jeremybenn
  $as_echo_n "(cached) " >&6
4131 19 jeremybenn
else
4132 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4133
   then ac_cv_path_FGREP="$GREP -F"
4134
   else
4135
     if test -z "$FGREP"; then
4136
  ac_path_FGREP_found=false
4137
  # Loop through the user's path and test for each of PROGNAME-LIST
4138
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4140
do
4141
  IFS=$as_save_IFS
4142
  test -z "$as_dir" && as_dir=.
4143 346 jeremybenn
    for ac_prog in fgrep; do
4144 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4145
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4146
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4147
# Check for GNU ac_path_FGREP and select it if it is found.
4148
  # Check for GNU $ac_path_FGREP
4149
case `"$ac_path_FGREP" --version 2>&1` in
4150
*GNU*)
4151
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4152
*)
4153
  ac_count=0
4154
  $as_echo_n 0123456789 >"conftest.in"
4155
  while :
4156
  do
4157
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4158
    mv "conftest.tmp" "conftest.in"
4159
    cp "conftest.in" "conftest.nl"
4160
    $as_echo 'FGREP' >> "conftest.nl"
4161
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4164 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4165
      # Best one so far, save it but keep looking for a better one
4166
      ac_cv_path_FGREP="$ac_path_FGREP"
4167
      ac_path_FGREP_max=$ac_count
4168
    fi
4169
    # 10*(2^10) chars as input seems more than enough
4170
    test $ac_count -gt 10 && break
4171
  done
4172
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173
esac
4174
 
4175
      $ac_path_FGREP_found && break 3
4176
    done
4177
  done
4178 346 jeremybenn
  done
4179 82 jeremybenn
IFS=$as_save_IFS
4180
  if test -z "$ac_cv_path_FGREP"; then
4181 625 jeremybenn
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4182 82 jeremybenn
  fi
4183
else
4184
  ac_cv_path_FGREP=$FGREP
4185 19 jeremybenn
fi
4186
 
4187
   fi
4188
fi
4189 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4190 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4191
 FGREP="$ac_cv_path_FGREP"
4192 19 jeremybenn
 
4193
 
4194 82 jeremybenn
test -z "$GREP" && GREP=grep
4195 19 jeremybenn
 
4196 82 jeremybenn
 
4197
 
4198
 
4199
 
4200
 
4201
 
4202
 
4203
 
4204
 
4205
 
4206
 
4207
 
4208
 
4209
 
4210
 
4211
 
4212
 
4213
 
4214 19 jeremybenn
# Check whether --with-gnu-ld was given.
4215 346 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
4216 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4217
else
4218
  with_gnu_ld=no
4219
fi
4220
 
4221
ac_prog=ld
4222
if test "$GCC" = yes; then
4223
  # Check if gcc -print-prog-name=ld gives a path.
4224 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4225 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4226 19 jeremybenn
  case $host in
4227
  *-*-mingw*)
4228
    # gcc leaves a trailing carriage return which upsets mingw
4229
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4230
  *)
4231
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4232
  esac
4233
  case $ac_prog in
4234
    # Accept absolute paths.
4235
    [\\/]* | ?:[\\/]*)
4236
      re_direlt='/[^/][^/]*/\.\./'
4237
      # Canonicalize the pathname of ld
4238 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4239
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4240
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4241 19 jeremybenn
      done
4242
      test -z "$LD" && LD="$ac_prog"
4243
      ;;
4244
  "")
4245
    # If it fails, then pretend we aren't using GCC.
4246
    ac_prog=ld
4247
    ;;
4248
  *)
4249
    # If it is relative, then search for the first ld in PATH.
4250
    with_gnu_ld=unknown
4251
    ;;
4252
  esac
4253
elif test "$with_gnu_ld" = yes; then
4254 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4255 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4256 19 jeremybenn
else
4257 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4258 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4259 19 jeremybenn
fi
4260 625 jeremybenn
if ${lt_cv_path_LD+:} false; then :
4261 82 jeremybenn
  $as_echo_n "(cached) " >&6
4262 19 jeremybenn
else
4263
  if test -z "$LD"; then
4264
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4265
  for ac_dir in $PATH; do
4266
    IFS="$lt_save_ifs"
4267
    test -z "$ac_dir" && ac_dir=.
4268
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4269
      lt_cv_path_LD="$ac_dir/$ac_prog"
4270
      # Check to see if the program is GNU ld.  I'd rather use --version,
4271
      # but apparently some variants of GNU ld only accept -v.
4272
      # Break only if it was the GNU/non-GNU ld that we prefer.
4273
      case `"$lt_cv_path_LD" -v 2>&1 
4274
      *GNU* | *'with BFD'*)
4275
        test "$with_gnu_ld" != no && break
4276
        ;;
4277
      *)
4278
        test "$with_gnu_ld" != yes && break
4279
        ;;
4280
      esac
4281
    fi
4282
  done
4283
  IFS="$lt_save_ifs"
4284
else
4285
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4286
fi
4287
fi
4288
 
4289
LD="$lt_cv_path_LD"
4290
if test -n "$LD"; then
4291 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4292 82 jeremybenn
$as_echo "$LD" >&6; }
4293 19 jeremybenn
else
4294 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 82 jeremybenn
$as_echo "no" >&6; }
4296 19 jeremybenn
fi
4297 625 jeremybenn
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4298 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4299 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4300 625 jeremybenn
if ${lt_cv_prog_gnu_ld+:} false; then :
4301 82 jeremybenn
  $as_echo_n "(cached) " >&6
4302 19 jeremybenn
else
4303
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4304
case `$LD -v 2>&1 
4305
*GNU* | *'with BFD'*)
4306
  lt_cv_prog_gnu_ld=yes
4307
  ;;
4308
*)
4309
  lt_cv_prog_gnu_ld=no
4310
  ;;
4311
esac
4312
fi
4313 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4314 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4315 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4316
 
4317
 
4318
 
4319 82 jeremybenn
 
4320
 
4321
 
4322
 
4323
 
4324
 
4325 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4326 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4327 625 jeremybenn
if ${lt_cv_path_NM+:} false; then :
4328 82 jeremybenn
  $as_echo_n "(cached) " >&6
4329 19 jeremybenn
else
4330
  if test -n "$NM"; then
4331
  # Let the user override the test.
4332
  lt_cv_path_NM="$NM"
4333
else
4334
  lt_nm_to_check="${ac_tool_prefix}nm"
4335
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4336
    lt_nm_to_check="$lt_nm_to_check nm"
4337
  fi
4338
  for lt_tmp_nm in $lt_nm_to_check; do
4339
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4340
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4341
      IFS="$lt_save_ifs"
4342
      test -z "$ac_dir" && ac_dir=.
4343
      tmp_nm="$ac_dir/$lt_tmp_nm"
4344
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4345
        # Check to see if the nm accepts a BSD-compat flag.
4346
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4347
        #   nm: unknown option "B" ignored
4348
        # Tru64's nm complains that /dev/null is an invalid object file
4349
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4350
        */dev/null* | *'Invalid file or object type'*)
4351
          lt_cv_path_NM="$tmp_nm -B"
4352
          break
4353
          ;;
4354
        *)
4355
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4356
          */dev/null*)
4357
            lt_cv_path_NM="$tmp_nm -p"
4358
            break
4359
            ;;
4360
          *)
4361
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4362
            continue # so that we can try to find one that supports BSD flags
4363
            ;;
4364
          esac
4365
          ;;
4366
        esac
4367
      fi
4368
    done
4369
    IFS="$lt_save_ifs"
4370
  done
4371 82 jeremybenn
  : ${lt_cv_path_NM=no}
4372 19 jeremybenn
fi
4373
fi
4374 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4375 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4376
if test "$lt_cv_path_NM" != "no"; then
4377
  NM="$lt_cv_path_NM"
4378
else
4379
  # Didn't find any BSD compatible name lister, look for dumpbin.
4380 784 jeremybenn
  if test -n "$DUMPBIN"; then :
4381
    # Let the user override the test.
4382
  else
4383
    if test -n "$ac_tool_prefix"; then
4384
  for ac_prog in dumpbin "link -dump"
4385 82 jeremybenn
  do
4386
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4387
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4388 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4390 625 jeremybenn
if ${ac_cv_prog_DUMPBIN+:} false; then :
4391 82 jeremybenn
  $as_echo_n "(cached) " >&6
4392
else
4393
  if test -n "$DUMPBIN"; then
4394
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4395
else
4396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397
for as_dir in $PATH
4398
do
4399
  IFS=$as_save_IFS
4400
  test -z "$as_dir" && as_dir=.
4401 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4402 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4404 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 82 jeremybenn
    break 2
4406
  fi
4407
done
4408 346 jeremybenn
  done
4409 82 jeremybenn
IFS=$as_save_IFS
4410 19 jeremybenn
 
4411 82 jeremybenn
fi
4412
fi
4413
DUMPBIN=$ac_cv_prog_DUMPBIN
4414
if test -n "$DUMPBIN"; then
4415 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4416 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4417
else
4418 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 82 jeremybenn
$as_echo "no" >&6; }
4420
fi
4421
 
4422
 
4423
    test -n "$DUMPBIN" && break
4424
  done
4425
fi
4426
if test -z "$DUMPBIN"; then
4427
  ac_ct_DUMPBIN=$DUMPBIN
4428 784 jeremybenn
  for ac_prog in dumpbin "link -dump"
4429 82 jeremybenn
do
4430
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4431
set dummy $ac_prog; ac_word=$2
4432 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4434 625 jeremybenn
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4435 82 jeremybenn
  $as_echo_n "(cached) " >&6
4436
else
4437
  if test -n "$ac_ct_DUMPBIN"; then
4438
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4439
else
4440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441
for as_dir in $PATH
4442
do
4443
  IFS=$as_save_IFS
4444
  test -z "$as_dir" && as_dir=.
4445 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4446 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4448 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 82 jeremybenn
    break 2
4450
  fi
4451
done
4452 346 jeremybenn
  done
4453 82 jeremybenn
IFS=$as_save_IFS
4454
 
4455
fi
4456
fi
4457
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4458
if test -n "$ac_ct_DUMPBIN"; then
4459 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4460 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4461
else
4462 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 82 jeremybenn
$as_echo "no" >&6; }
4464
fi
4465
 
4466
 
4467
  test -n "$ac_ct_DUMPBIN" && break
4468
done
4469
 
4470
  if test "x$ac_ct_DUMPBIN" = x; then
4471
    DUMPBIN=":"
4472
  else
4473
    case $cross_compiling:$ac_tool_warned in
4474
yes:)
4475 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477
ac_tool_warned=yes ;;
4478
esac
4479
    DUMPBIN=$ac_ct_DUMPBIN
4480
  fi
4481
fi
4482
 
4483 784 jeremybenn
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4484
    *COFF*)
4485
      DUMPBIN="$DUMPBIN -symbols"
4486
      ;;
4487
    *)
4488
      DUMPBIN=:
4489
      ;;
4490
    esac
4491
  fi
4492 82 jeremybenn
 
4493
  if test "$DUMPBIN" != ":"; then
4494
    NM="$DUMPBIN"
4495
  fi
4496
fi
4497
test -z "$NM" && NM=nm
4498
 
4499
 
4500
 
4501
 
4502
 
4503
 
4504 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4505 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4506 625 jeremybenn
if ${lt_cv_nm_interface+:} false; then :
4507 82 jeremybenn
  $as_echo_n "(cached) " >&6
4508
else
4509
  lt_cv_nm_interface="BSD nm"
4510
  echo "int some_variable = 0;" > conftest.$ac_ext
4511 784 jeremybenn
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4512 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4513
  cat conftest.err >&5
4514 784 jeremybenn
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4515 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4516
  cat conftest.err >&5
4517 784 jeremybenn
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4518 82 jeremybenn
  cat conftest.out >&5
4519
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4520
    lt_cv_nm_interface="MS dumpbin"
4521
  fi
4522
  rm -f conftest*
4523
fi
4524 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4525 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4526
 
4527 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4528 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4529 19 jeremybenn
LN_S=$as_ln_s
4530
if test "$LN_S" = "ln -s"; then
4531 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4532 82 jeremybenn
$as_echo "yes" >&6; }
4533 19 jeremybenn
else
4534 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4535 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4536 19 jeremybenn
fi
4537
 
4538 82 jeremybenn
# find the maximum length of command line arguments
4539 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4540 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4541 625 jeremybenn
if ${lt_cv_sys_max_cmd_len+:} false; then :
4542 82 jeremybenn
  $as_echo_n "(cached) " >&6
4543
else
4544
    i=0
4545
  teststring="ABCD"
4546
 
4547
  case $build_os in
4548
  msdosdjgpp*)
4549
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4550
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4551
    # during glob expansion).  Even if it were fixed, the result of this
4552
    # check would be larger than it should be.
4553
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4554
    ;;
4555
 
4556
  gnu*)
4557
    # Under GNU Hurd, this test is not required because there is
4558
    # no limit to the length of command line arguments.
4559
    # Libtool will interpret -1 as no limit whatsoever
4560
    lt_cv_sys_max_cmd_len=-1;
4561
    ;;
4562
 
4563
  cygwin* | mingw* | cegcc*)
4564
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4565
    # about 5 minutes as the teststring grows exponentially.
4566
    # Worse, since 9x/ME are not pre-emptively multitasking,
4567
    # you end up with a "frozen" computer, even though with patience
4568
    # the test eventually succeeds (with a max line length of 256k).
4569
    # Instead, let's just punt: use the minimum linelength reported by
4570
    # all of the supported platforms: 8192 (on NT/2K/XP).
4571
    lt_cv_sys_max_cmd_len=8192;
4572
    ;;
4573
 
4574 784 jeremybenn
  mint*)
4575
    # On MiNT this can take a long time and run out of memory.
4576
    lt_cv_sys_max_cmd_len=8192;
4577
    ;;
4578
 
4579 82 jeremybenn
  amigaos*)
4580
    # On AmigaOS with pdksh, this test takes hours, literally.
4581
    # So we just punt and use a minimum line length of 8192.
4582
    lt_cv_sys_max_cmd_len=8192;
4583
    ;;
4584
 
4585
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4586
    # This has been around since 386BSD, at least.  Likely further.
4587
    if test -x /sbin/sysctl; then
4588
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4589
    elif test -x /usr/sbin/sysctl; then
4590
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4591
    else
4592
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4593
    fi
4594
    # And add a safety zone
4595
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4596
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4597
    ;;
4598
 
4599
  interix*)
4600
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4601
    lt_cv_sys_max_cmd_len=196608
4602
    ;;
4603
 
4604
  osf*)
4605
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4606
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4607
    # nice to cause kernel panics so lets avoid the loop below.
4608
    # First set a reasonable default.
4609
    lt_cv_sys_max_cmd_len=16384
4610
    #
4611
    if test -x /sbin/sysconfig; then
4612
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4613
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4614
      esac
4615
    fi
4616
    ;;
4617
  sco3.2v5*)
4618
    lt_cv_sys_max_cmd_len=102400
4619
    ;;
4620
  sysv5* | sco5v6* | sysv4.2uw2*)
4621
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4622
    if test -n "$kargmax"; then
4623
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4624
    else
4625
      lt_cv_sys_max_cmd_len=32768
4626
    fi
4627
    ;;
4628
  *)
4629
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4630
    if test -n "$lt_cv_sys_max_cmd_len"; then
4631
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4632
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4633
    else
4634
      # Make teststring a little bigger before we do anything with it.
4635
      # a 1K string should be a reasonable start.
4636
      for i in 1 2 3 4 5 6 7 8 ; do
4637
        teststring=$teststring$teststring
4638
      done
4639
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4640
      # If test is not a shell built-in, we'll probably end up computing a
4641
      # maximum length that is only half of the actual maximum length, but
4642
      # we can't tell.
4643 784 jeremybenn
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4644
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4645 82 jeremybenn
              test $i != 17 # 1/2 MB should be enough
4646
      do
4647
        i=`expr $i + 1`
4648
        teststring=$teststring$teststring
4649
      done
4650
      # Only check the string length outside the loop.
4651
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4652
      teststring=
4653
      # Add a significant safety factor because C++ compilers can tack on
4654
      # massive amounts of additional arguments before passing them to the
4655
      # linker.  It appears as though 1/2 is a usable value.
4656
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4657
    fi
4658
    ;;
4659
  esac
4660
 
4661
fi
4662
 
4663
if test -n $lt_cv_sys_max_cmd_len ; then
4664 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4665 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4666
else
4667 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4668 82 jeremybenn
$as_echo "none" >&6; }
4669
fi
4670
max_cmd_len=$lt_cv_sys_max_cmd_len
4671
 
4672
 
4673
 
4674
 
4675
 
4676
 
4677
: ${CP="cp -f"}
4678
: ${MV="mv -f"}
4679
: ${RM="rm -f"}
4680
 
4681 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4682 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4683
# Try some XSI features
4684
xsi_shell=no
4685
( _lt_dummy="a/b/c"
4686 784 jeremybenn
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4687
      = c,a/b,b/c, \
4688 82 jeremybenn
    && eval 'test $(( 1 + 1 )) -eq 2 \
4689
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4690
  && xsi_shell=yes
4691 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4692 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4693
 
4694
 
4695 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4696 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4697
lt_shell_append=no
4698
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4699
    >/dev/null 2>&1 \
4700
  && lt_shell_append=yes
4701 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4702 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4703
 
4704
 
4705
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4706
  lt_unset=unset
4707
else
4708
  lt_unset=false
4709
fi
4710
 
4711
 
4712
 
4713
 
4714
 
4715
# test EBCDIC or ASCII
4716
case `echo X|tr X '\101'` in
4717
 A) # ASCII based system
4718
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4719
  lt_SP2NL='tr \040 \012'
4720
  lt_NL2SP='tr \015\012 \040\040'
4721
  ;;
4722
 *) # EBCDIC based system
4723
  lt_SP2NL='tr \100 \n'
4724
  lt_NL2SP='tr \r\n \100\100'
4725
  ;;
4726
esac
4727
 
4728
 
4729
 
4730
 
4731
 
4732
 
4733
 
4734
 
4735
 
4736 784 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4737
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4738
if ${lt_cv_to_host_file_cmd+:} false; then :
4739
  $as_echo_n "(cached) " >&6
4740
else
4741
  case $host in
4742
  *-*-mingw* )
4743
    case $build in
4744
      *-*-mingw* ) # actually msys
4745
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4746
        ;;
4747
      *-*-cygwin* )
4748
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4749
        ;;
4750
      * ) # otherwise, assume *nix
4751
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4752
        ;;
4753
    esac
4754
    ;;
4755
  *-*-cygwin* )
4756
    case $build in
4757
      *-*-mingw* ) # actually msys
4758
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4759
        ;;
4760
      *-*-cygwin* )
4761
        lt_cv_to_host_file_cmd=func_convert_file_noop
4762
        ;;
4763
      * ) # otherwise, assume *nix
4764
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4765
        ;;
4766
    esac
4767
    ;;
4768
  * ) # unhandled hosts (and "normal" native builds)
4769
    lt_cv_to_host_file_cmd=func_convert_file_noop
4770
    ;;
4771
esac
4772
 
4773
fi
4774
 
4775
to_host_file_cmd=$lt_cv_to_host_file_cmd
4776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4777
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4778
 
4779
 
4780
 
4781
 
4782
 
4783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4784
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4785
if ${lt_cv_to_tool_file_cmd+:} false; then :
4786
  $as_echo_n "(cached) " >&6
4787
else
4788
  #assume ordinary cross tools, or native build.
4789
lt_cv_to_tool_file_cmd=func_convert_file_noop
4790
case $host in
4791
  *-*-mingw* )
4792
    case $build in
4793
      *-*-mingw* ) # actually msys
4794
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4795
        ;;
4796
    esac
4797
    ;;
4798
esac
4799
 
4800
fi
4801
 
4802
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4804
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4805
 
4806
 
4807
 
4808
 
4809
 
4810 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4811 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4812 625 jeremybenn
if ${lt_cv_ld_reload_flag+:} false; then :
4813 82 jeremybenn
  $as_echo_n "(cached) " >&6
4814
else
4815
  lt_cv_ld_reload_flag='-r'
4816
fi
4817 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4818 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4819
reload_flag=$lt_cv_ld_reload_flag
4820
case $reload_flag in
4821
"" | " "*) ;;
4822
*) reload_flag=" $reload_flag" ;;
4823
esac
4824
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4825
case $host_os in
4826 784 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
4827
    if test "$GCC" != yes; then
4828
      reload_cmds=false
4829
    fi
4830
    ;;
4831 82 jeremybenn
  darwin*)
4832
    if test "$GCC" = yes; then
4833
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4834
    else
4835
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4836
    fi
4837
    ;;
4838
esac
4839
 
4840
 
4841
 
4842
 
4843
 
4844
 
4845
 
4846
 
4847
 
4848
if test -n "$ac_tool_prefix"; then
4849
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4850
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4851 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4853 625 jeremybenn
if ${ac_cv_prog_OBJDUMP+:} false; then :
4854 82 jeremybenn
  $as_echo_n "(cached) " >&6
4855
else
4856
  if test -n "$OBJDUMP"; then
4857
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4858
else
4859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860
for as_dir in $PATH
4861
do
4862
  IFS=$as_save_IFS
4863
  test -z "$as_dir" && as_dir=.
4864 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4865 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4867 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 82 jeremybenn
    break 2
4869
  fi
4870
done
4871 346 jeremybenn
  done
4872 82 jeremybenn
IFS=$as_save_IFS
4873
 
4874
fi
4875
fi
4876
OBJDUMP=$ac_cv_prog_OBJDUMP
4877
if test -n "$OBJDUMP"; then
4878 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4879 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4880
else
4881 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 82 jeremybenn
$as_echo "no" >&6; }
4883
fi
4884
 
4885
 
4886
fi
4887
if test -z "$ac_cv_prog_OBJDUMP"; then
4888
  ac_ct_OBJDUMP=$OBJDUMP
4889
  # Extract the first word of "objdump", so it can be a program name with args.
4890
set dummy objdump; ac_word=$2
4891 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4893 625 jeremybenn
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4894 82 jeremybenn
  $as_echo_n "(cached) " >&6
4895
else
4896
  if test -n "$ac_ct_OBJDUMP"; then
4897
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4898
else
4899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900
for as_dir in $PATH
4901
do
4902
  IFS=$as_save_IFS
4903
  test -z "$as_dir" && as_dir=.
4904 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4905 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4907 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 82 jeremybenn
    break 2
4909
  fi
4910
done
4911 346 jeremybenn
  done
4912 82 jeremybenn
IFS=$as_save_IFS
4913
 
4914
fi
4915
fi
4916
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4917
if test -n "$ac_ct_OBJDUMP"; then
4918 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4919 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4920
else
4921 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 82 jeremybenn
$as_echo "no" >&6; }
4923
fi
4924
 
4925
  if test "x$ac_ct_OBJDUMP" = x; then
4926
    OBJDUMP="false"
4927
  else
4928
    case $cross_compiling:$ac_tool_warned in
4929
yes:)
4930 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932
ac_tool_warned=yes ;;
4933
esac
4934
    OBJDUMP=$ac_ct_OBJDUMP
4935
  fi
4936
else
4937
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4938
fi
4939
 
4940
test -z "$OBJDUMP" && OBJDUMP=objdump
4941
 
4942
 
4943
 
4944
 
4945
 
4946
 
4947
 
4948
 
4949
 
4950 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4951 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4952 625 jeremybenn
if ${lt_cv_deplibs_check_method+:} false; then :
4953 82 jeremybenn
  $as_echo_n "(cached) " >&6
4954 19 jeremybenn
else
4955
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4956
lt_cv_file_magic_test_file=
4957
lt_cv_deplibs_check_method='unknown'
4958
# Need to set the preceding variable on all platforms that support
4959
# interlibrary dependencies.
4960
# 'none' -- dependencies not supported.
4961
# `unknown' -- same as none, but documents that we really don't know.
4962
# 'pass_all' -- all dependencies passed with no checks.
4963
# 'test_compile' -- check by making test program.
4964
# 'file_magic [[regex]]' -- check by looking for files in library path
4965
# which responds to the $file_magic_cmd with a given extended regex.
4966
# If you have `file' or equivalent on your system and you're not sure
4967
# whether `pass_all' will *always* work, you probably want this one.
4968
 
4969
case $host_os in
4970 82 jeremybenn
aix[4-9]*)
4971 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4972
  ;;
4973
 
4974
beos*)
4975
  lt_cv_deplibs_check_method=pass_all
4976
  ;;
4977
 
4978
bsdi[45]*)
4979
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4980
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4981
  lt_cv_file_magic_test_file=/shlib/libc.so
4982
  ;;
4983
 
4984
cygwin*)
4985
  # func_win32_libid is a shell function defined in ltmain.sh
4986
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4987
  lt_cv_file_magic_cmd='func_win32_libid'
4988
  ;;
4989
 
4990
mingw* | pw32*)
4991
  # Base MSYS/MinGW do not provide the 'file' command needed by
4992
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4993
  # unless we find 'file', for example because we are cross-compiling.
4994 784 jeremybenn
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4995
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4996 19 jeremybenn
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4997
    lt_cv_file_magic_cmd='func_win32_libid'
4998
  else
4999 784 jeremybenn
    # Keep this pattern in sync with the one in func_win32_libid.
5000
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5001 19 jeremybenn
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5002
  fi
5003
  ;;
5004
 
5005 784 jeremybenn
cegcc*)
5006 82 jeremybenn
  # use the weaker test based on 'objdump'. See mingw*.
5007
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5008
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5009
  ;;
5010
 
5011 19 jeremybenn
darwin* | rhapsody*)
5012
  lt_cv_deplibs_check_method=pass_all
5013
  ;;
5014
 
5015
freebsd* | dragonfly*)
5016 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5017 19 jeremybenn
    case $host_cpu in
5018
    i*86 )
5019
      # Not sure whether the presence of OpenBSD here was a mistake.
5020
      # Let's accept both of them until this is cleared up.
5021
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5022
      lt_cv_file_magic_cmd=/usr/bin/file
5023
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5024
      ;;
5025
    esac
5026
  else
5027
    lt_cv_deplibs_check_method=pass_all
5028
  fi
5029
  ;;
5030
 
5031
gnu*)
5032
  lt_cv_deplibs_check_method=pass_all
5033
  ;;
5034
 
5035 784 jeremybenn
haiku*)
5036
  lt_cv_deplibs_check_method=pass_all
5037
  ;;
5038
 
5039 19 jeremybenn
hpux10.20* | hpux11*)
5040
  lt_cv_file_magic_cmd=/usr/bin/file
5041
  case $host_cpu in
5042
  ia64*)
5043
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5044
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5045
    ;;
5046
  hppa*64*)
5047 784 jeremybenn
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5048 19 jeremybenn
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5049
    ;;
5050
  *)
5051 784 jeremybenn
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5052 19 jeremybenn
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5053
    ;;
5054
  esac
5055
  ;;
5056
 
5057
interix[3-9]*)
5058
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5059
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5060
  ;;
5061
 
5062
irix5* | irix6* | nonstopux*)
5063
  case $LD in
5064
  *-32|*"-32 ") libmagic=32-bit;;
5065
  *-n32|*"-n32 ") libmagic=N32;;
5066
  *-64|*"-64 ") libmagic=64-bit;;
5067
  *) libmagic=never-match;;
5068
  esac
5069
  lt_cv_deplibs_check_method=pass_all
5070
  ;;
5071
 
5072
# This must be Linux ELF.
5073 784 jeremybenn
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5074 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5075
  ;;
5076
 
5077 784 jeremybenn
netbsd*)
5078 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5079 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5080
  else
5081
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5082
  fi
5083
  ;;
5084
 
5085
newos6*)
5086
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5087
  lt_cv_file_magic_cmd=/usr/bin/file
5088
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5089
  ;;
5090
 
5091 82 jeremybenn
*nto* | *qnx*)
5092
  lt_cv_deplibs_check_method=pass_all
5093 19 jeremybenn
  ;;
5094
 
5095
openbsd*)
5096 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5097 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5098
  else
5099
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5100
  fi
5101
  ;;
5102
 
5103
osf3* | osf4* | osf5*)
5104
  lt_cv_deplibs_check_method=pass_all
5105
  ;;
5106
 
5107
rdos*)
5108
  lt_cv_deplibs_check_method=pass_all
5109
  ;;
5110
 
5111
solaris*)
5112
  lt_cv_deplibs_check_method=pass_all
5113
  ;;
5114
 
5115 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5116
  lt_cv_deplibs_check_method=pass_all
5117
  ;;
5118
 
5119 19 jeremybenn
sysv4 | sysv4.3*)
5120
  case $host_vendor in
5121
  motorola)
5122
    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]'
5123
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5124
    ;;
5125
  ncr)
5126
    lt_cv_deplibs_check_method=pass_all
5127
    ;;
5128
  sequent)
5129
    lt_cv_file_magic_cmd='/bin/file'
5130
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5131
    ;;
5132
  sni)
5133
    lt_cv_file_magic_cmd='/bin/file'
5134
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5135
    lt_cv_file_magic_test_file=/lib/libc.so
5136
    ;;
5137
  siemens)
5138
    lt_cv_deplibs_check_method=pass_all
5139
    ;;
5140
  pc)
5141
    lt_cv_deplibs_check_method=pass_all
5142
    ;;
5143
  esac
5144
  ;;
5145
 
5146 82 jeremybenn
tpf*)
5147 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5148
  ;;
5149
esac
5150
 
5151
fi
5152 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5153 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5154 784 jeremybenn
 
5155
file_magic_glob=
5156
want_nocaseglob=no
5157
if test "$build" = "$host"; then
5158
  case $host_os in
5159
  mingw* | pw32*)
5160
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5161
      want_nocaseglob=yes
5162
    else
5163
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5164
    fi
5165
    ;;
5166
  esac
5167
fi
5168
 
5169 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5170
deplibs_check_method=$lt_cv_deplibs_check_method
5171
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5172
 
5173
 
5174
 
5175
 
5176 82 jeremybenn
 
5177
 
5178
 
5179
 
5180
 
5181
 
5182
 
5183
 
5184 784 jeremybenn
 
5185
 
5186
 
5187
 
5188
 
5189
 
5190
 
5191
 
5192
 
5193
 
5194 82 jeremybenn
if test -n "$ac_tool_prefix"; then
5195 784 jeremybenn
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5196
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5197 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5199 784 jeremybenn
if ${ac_cv_prog_DLLTOOL+:} false; then :
5200
  $as_echo_n "(cached) " >&6
5201
else
5202
  if test -n "$DLLTOOL"; then
5203
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5204
else
5205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206
for as_dir in $PATH
5207
do
5208
  IFS=$as_save_IFS
5209
  test -z "$as_dir" && as_dir=.
5210
    for ac_exec_ext in '' $ac_executable_extensions; do
5211
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5213
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214
    break 2
5215
  fi
5216
done
5217
  done
5218
IFS=$as_save_IFS
5219
 
5220
fi
5221
fi
5222
DLLTOOL=$ac_cv_prog_DLLTOOL
5223
if test -n "$DLLTOOL"; then
5224
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5225
$as_echo "$DLLTOOL" >&6; }
5226
else
5227
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228
$as_echo "no" >&6; }
5229
fi
5230
 
5231
 
5232
fi
5233
if test -z "$ac_cv_prog_DLLTOOL"; then
5234
  ac_ct_DLLTOOL=$DLLTOOL
5235
  # Extract the first word of "dlltool", so it can be a program name with args.
5236
set dummy dlltool; ac_word=$2
5237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238
$as_echo_n "checking for $ac_word... " >&6; }
5239
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5240
  $as_echo_n "(cached) " >&6
5241
else
5242
  if test -n "$ac_ct_DLLTOOL"; then
5243
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5244
else
5245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246
for as_dir in $PATH
5247
do
5248
  IFS=$as_save_IFS
5249
  test -z "$as_dir" && as_dir=.
5250
    for ac_exec_ext in '' $ac_executable_extensions; do
5251
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5253
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254
    break 2
5255
  fi
5256
done
5257
  done
5258
IFS=$as_save_IFS
5259
 
5260
fi
5261
fi
5262
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5263
if test -n "$ac_ct_DLLTOOL"; then
5264
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5265
$as_echo "$ac_ct_DLLTOOL" >&6; }
5266
else
5267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268
$as_echo "no" >&6; }
5269
fi
5270
 
5271
  if test "x$ac_ct_DLLTOOL" = x; then
5272
    DLLTOOL="false"
5273
  else
5274
    case $cross_compiling:$ac_tool_warned in
5275
yes:)
5276
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278
ac_tool_warned=yes ;;
5279
esac
5280
    DLLTOOL=$ac_ct_DLLTOOL
5281
  fi
5282
else
5283
  DLLTOOL="$ac_cv_prog_DLLTOOL"
5284
fi
5285
 
5286
test -z "$DLLTOOL" && DLLTOOL=dlltool
5287
 
5288
 
5289
 
5290
 
5291
 
5292
 
5293
 
5294
 
5295
 
5296
 
5297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5298
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5299
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5300
  $as_echo_n "(cached) " >&6
5301
else
5302
  lt_cv_sharedlib_from_linklib_cmd='unknown'
5303
 
5304
case $host_os in
5305
cygwin* | mingw* | pw32* | cegcc*)
5306
  # two different shell functions defined in ltmain.sh
5307
  # decide which to use based on capabilities of $DLLTOOL
5308
  case `$DLLTOOL --help 2>&1` in
5309
  *--identify-strict*)
5310
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5311
    ;;
5312
  *)
5313
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5314
    ;;
5315
  esac
5316
  ;;
5317
*)
5318
  # fallback: assume linklib IS sharedlib
5319
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5320
  ;;
5321
esac
5322
 
5323
fi
5324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5325
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5326
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5327
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5328
 
5329
 
5330
 
5331
 
5332
 
5333
 
5334
 
5335
if test -n "$ac_tool_prefix"; then
5336
  for ac_prog in ar
5337
  do
5338
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5339
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341
$as_echo_n "checking for $ac_word... " >&6; }
5342 625 jeremybenn
if ${ac_cv_prog_AR+:} false; then :
5343 82 jeremybenn
  $as_echo_n "(cached) " >&6
5344
else
5345
  if test -n "$AR"; then
5346
  ac_cv_prog_AR="$AR" # Let the user override the test.
5347
else
5348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349
for as_dir in $PATH
5350
do
5351
  IFS=$as_save_IFS
5352
  test -z "$as_dir" && as_dir=.
5353 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5354 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 784 jeremybenn
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5356 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 82 jeremybenn
    break 2
5358
  fi
5359
done
5360 346 jeremybenn
  done
5361 82 jeremybenn
IFS=$as_save_IFS
5362
 
5363
fi
5364
fi
5365
AR=$ac_cv_prog_AR
5366
if test -n "$AR"; then
5367 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5368 82 jeremybenn
$as_echo "$AR" >&6; }
5369
else
5370 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 82 jeremybenn
$as_echo "no" >&6; }
5372
fi
5373
 
5374
 
5375 784 jeremybenn
    test -n "$AR" && break
5376
  done
5377 82 jeremybenn
fi
5378 784 jeremybenn
if test -z "$AR"; then
5379 82 jeremybenn
  ac_ct_AR=$AR
5380 784 jeremybenn
  for ac_prog in ar
5381
do
5382
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5383
set dummy $ac_prog; ac_word=$2
5384 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5386 625 jeremybenn
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5387 82 jeremybenn
  $as_echo_n "(cached) " >&6
5388
else
5389
  if test -n "$ac_ct_AR"; then
5390
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5391
else
5392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393
for as_dir in $PATH
5394
do
5395
  IFS=$as_save_IFS
5396
  test -z "$as_dir" && as_dir=.
5397 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5398 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 784 jeremybenn
    ac_cv_prog_ac_ct_AR="$ac_prog"
5400 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 82 jeremybenn
    break 2
5402
  fi
5403
done
5404 346 jeremybenn
  done
5405 82 jeremybenn
IFS=$as_save_IFS
5406
 
5407
fi
5408
fi
5409
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5410
if test -n "$ac_ct_AR"; then
5411 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5412 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5413
else
5414 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 82 jeremybenn
$as_echo "no" >&6; }
5416
fi
5417
 
5418 784 jeremybenn
 
5419
  test -n "$ac_ct_AR" && break
5420
done
5421
 
5422 82 jeremybenn
  if test "x$ac_ct_AR" = x; then
5423
    AR="false"
5424
  else
5425
    case $cross_compiling:$ac_tool_warned in
5426
yes:)
5427 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429
ac_tool_warned=yes ;;
5430
esac
5431
    AR=$ac_ct_AR
5432
  fi
5433
fi
5434
 
5435 784 jeremybenn
: ${AR=ar}
5436
: ${AR_FLAGS=cru}
5437 82 jeremybenn
 
5438
 
5439
 
5440
 
5441
 
5442
 
5443
 
5444
 
5445
 
5446
 
5447
 
5448 784 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5449
$as_echo_n "checking for archiver @FILE support... " >&6; }
5450
if ${lt_cv_ar_at_file+:} false; then :
5451
  $as_echo_n "(cached) " >&6
5452
else
5453
  lt_cv_ar_at_file=no
5454
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455
/* end confdefs.h.  */
5456
 
5457
int
5458
main ()
5459
{
5460
 
5461
  ;
5462
  return 0;
5463
}
5464
_ACEOF
5465
if ac_fn_c_try_compile "$LINENO"; then :
5466
  echo conftest.$ac_objext > conftest.lst
5467
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5468
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5469
  (eval $lt_ar_try) 2>&5
5470
  ac_status=$?
5471
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472
  test $ac_status = 0; }
5473
      if test "$ac_status" -eq 0; then
5474
        # Ensure the archiver fails upon bogus file names.
5475
        rm -f conftest.$ac_objext libconftest.a
5476
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5477
  (eval $lt_ar_try) 2>&5
5478
  ac_status=$?
5479
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5480
  test $ac_status = 0; }
5481
        if test "$ac_status" -ne 0; then
5482
          lt_cv_ar_at_file=@
5483
        fi
5484
      fi
5485
      rm -f conftest.* libconftest.a
5486
 
5487
fi
5488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489
 
5490
fi
5491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5492
$as_echo "$lt_cv_ar_at_file" >&6; }
5493
 
5494
if test "x$lt_cv_ar_at_file" = xno; then
5495
  archiver_list_spec=
5496
else
5497
  archiver_list_spec=$lt_cv_ar_at_file
5498
fi
5499
 
5500
 
5501
 
5502
 
5503
 
5504
 
5505
 
5506 82 jeremybenn
if test -n "$ac_tool_prefix"; then
5507
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5508
set dummy ${ac_tool_prefix}strip; ac_word=$2
5509 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5511 625 jeremybenn
if ${ac_cv_prog_STRIP+:} false; then :
5512 82 jeremybenn
  $as_echo_n "(cached) " >&6
5513
else
5514
  if test -n "$STRIP"; then
5515
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5516
else
5517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518
for as_dir in $PATH
5519
do
5520
  IFS=$as_save_IFS
5521
  test -z "$as_dir" && as_dir=.
5522 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5523 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5524
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5525 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 82 jeremybenn
    break 2
5527
  fi
5528
done
5529 346 jeremybenn
  done
5530 82 jeremybenn
IFS=$as_save_IFS
5531
 
5532
fi
5533
fi
5534
STRIP=$ac_cv_prog_STRIP
5535
if test -n "$STRIP"; then
5536 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5537 82 jeremybenn
$as_echo "$STRIP" >&6; }
5538
else
5539 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 82 jeremybenn
$as_echo "no" >&6; }
5541
fi
5542
 
5543
 
5544
fi
5545
if test -z "$ac_cv_prog_STRIP"; then
5546
  ac_ct_STRIP=$STRIP
5547
  # Extract the first word of "strip", so it can be a program name with args.
5548
set dummy strip; ac_word=$2
5549 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5551 625 jeremybenn
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5552 82 jeremybenn
  $as_echo_n "(cached) " >&6
5553
else
5554
  if test -n "$ac_ct_STRIP"; then
5555
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5556
else
5557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558
for as_dir in $PATH
5559
do
5560
  IFS=$as_save_IFS
5561
  test -z "$as_dir" && as_dir=.
5562 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5563 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564
    ac_cv_prog_ac_ct_STRIP="strip"
5565 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 82 jeremybenn
    break 2
5567
  fi
5568
done
5569 346 jeremybenn
  done
5570 82 jeremybenn
IFS=$as_save_IFS
5571
 
5572
fi
5573
fi
5574
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5575
if test -n "$ac_ct_STRIP"; then
5576 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5577 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5578
else
5579 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 82 jeremybenn
$as_echo "no" >&6; }
5581
fi
5582
 
5583
  if test "x$ac_ct_STRIP" = x; then
5584
    STRIP=":"
5585
  else
5586
    case $cross_compiling:$ac_tool_warned in
5587
yes:)
5588 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590
ac_tool_warned=yes ;;
5591
esac
5592
    STRIP=$ac_ct_STRIP
5593
  fi
5594
else
5595
  STRIP="$ac_cv_prog_STRIP"
5596
fi
5597
 
5598
test -z "$STRIP" && STRIP=:
5599
 
5600
 
5601
 
5602
 
5603
 
5604
 
5605
if test -n "$ac_tool_prefix"; then
5606
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5607
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5608 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5610 625 jeremybenn
if ${ac_cv_prog_RANLIB+:} false; then :
5611 82 jeremybenn
  $as_echo_n "(cached) " >&6
5612
else
5613
  if test -n "$RANLIB"; then
5614
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5615
else
5616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617
for as_dir in $PATH
5618
do
5619
  IFS=$as_save_IFS
5620
  test -z "$as_dir" && as_dir=.
5621 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5622 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5624 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 82 jeremybenn
    break 2
5626
  fi
5627
done
5628 346 jeremybenn
  done
5629 82 jeremybenn
IFS=$as_save_IFS
5630
 
5631
fi
5632
fi
5633
RANLIB=$ac_cv_prog_RANLIB
5634
if test -n "$RANLIB"; then
5635 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5636 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5637
else
5638 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 82 jeremybenn
$as_echo "no" >&6; }
5640
fi
5641
 
5642
 
5643
fi
5644
if test -z "$ac_cv_prog_RANLIB"; then
5645
  ac_ct_RANLIB=$RANLIB
5646
  # Extract the first word of "ranlib", so it can be a program name with args.
5647
set dummy ranlib; ac_word=$2
5648 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5650 625 jeremybenn
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5651 82 jeremybenn
  $as_echo_n "(cached) " >&6
5652
else
5653
  if test -n "$ac_ct_RANLIB"; then
5654
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5655
else
5656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657
for as_dir in $PATH
5658
do
5659
  IFS=$as_save_IFS
5660
  test -z "$as_dir" && as_dir=.
5661 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5662 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5664 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 82 jeremybenn
    break 2
5666
  fi
5667
done
5668 346 jeremybenn
  done
5669 82 jeremybenn
IFS=$as_save_IFS
5670
 
5671
fi
5672
fi
5673
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5674
if test -n "$ac_ct_RANLIB"; then
5675 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5676 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5677
else
5678 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 82 jeremybenn
$as_echo "no" >&6; }
5680
fi
5681
 
5682
  if test "x$ac_ct_RANLIB" = x; then
5683
    RANLIB=":"
5684
  else
5685
    case $cross_compiling:$ac_tool_warned in
5686
yes:)
5687 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5688 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5689
ac_tool_warned=yes ;;
5690
esac
5691
    RANLIB=$ac_ct_RANLIB
5692
  fi
5693
else
5694
  RANLIB="$ac_cv_prog_RANLIB"
5695
fi
5696
 
5697
test -z "$RANLIB" && RANLIB=:
5698
 
5699
 
5700
 
5701
 
5702
 
5703
 
5704
# Determine commands to create old-style static archives.
5705
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5706
old_postinstall_cmds='chmod 644 $oldlib'
5707
old_postuninstall_cmds=
5708
 
5709
if test -n "$RANLIB"; then
5710
  case $host_os in
5711
  openbsd*)
5712
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5713
    ;;
5714
  *)
5715
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5716
    ;;
5717
  esac
5718
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5719
fi
5720
 
5721 784 jeremybenn
case $host_os in
5722
  darwin*)
5723
    lock_old_archive_extraction=yes ;;
5724
  *)
5725
    lock_old_archive_extraction=no ;;
5726
esac
5727 82 jeremybenn
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734
 
5735
 
5736
 
5737
 
5738
 
5739
 
5740
 
5741
 
5742
 
5743
 
5744
 
5745
 
5746
 
5747
 
5748 784 jeremybenn
for ac_prog in gawk mawk nawk awk
5749
do
5750
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5751
set dummy $ac_prog; ac_word=$2
5752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753
$as_echo_n "checking for $ac_word... " >&6; }
5754
if ${ac_cv_prog_AWK+:} false; then :
5755
  $as_echo_n "(cached) " >&6
5756
else
5757
  if test -n "$AWK"; then
5758
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5759
else
5760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761
for as_dir in $PATH
5762
do
5763
  IFS=$as_save_IFS
5764
  test -z "$as_dir" && as_dir=.
5765
    for ac_exec_ext in '' $ac_executable_extensions; do
5766
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767
    ac_cv_prog_AWK="$ac_prog"
5768
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769
    break 2
5770
  fi
5771
done
5772
  done
5773
IFS=$as_save_IFS
5774 82 jeremybenn
 
5775 784 jeremybenn
fi
5776
fi
5777
AWK=$ac_cv_prog_AWK
5778
if test -n "$AWK"; then
5779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5780
$as_echo "$AWK" >&6; }
5781
else
5782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783
$as_echo "no" >&6; }
5784
fi
5785 82 jeremybenn
 
5786
 
5787 784 jeremybenn
  test -n "$AWK" && break
5788
done
5789 82 jeremybenn
 
5790
 
5791
 
5792
 
5793
 
5794
 
5795
 
5796
 
5797
 
5798 784 jeremybenn
 
5799
 
5800
 
5801
 
5802
 
5803
 
5804
 
5805
 
5806
 
5807
 
5808 19 jeremybenn
# If no C compiler was specified, use CC.
5809
LTCC=${LTCC-"$CC"}
5810
 
5811
# If no C compiler flags were specified, use CFLAGS.
5812
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5813
 
5814
# Allow CC to be a program name with arguments.
5815
compiler=$CC
5816
 
5817
 
5818 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5819 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5820 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5821 625 jeremybenn
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5822 82 jeremybenn
  $as_echo_n "(cached) " >&6
5823
else
5824
 
5825
# These are sane defaults that work on at least a few old systems.
5826
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5827
 
5828
# Character class describing NM global symbol codes.
5829
symcode='[BCDEGRST]'
5830
 
5831
# Regexp to match symbols that can be accessed directly from C.
5832
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5833
 
5834
# Define system-specific variables.
5835
case $host_os in
5836
aix*)
5837
  symcode='[BCDT]'
5838
  ;;
5839
cygwin* | mingw* | pw32* | cegcc*)
5840
  symcode='[ABCDGISTW]'
5841
  ;;
5842
hpux*)
5843
  if test "$host_cpu" = ia64; then
5844
    symcode='[ABCDEGRST]'
5845
  fi
5846
  ;;
5847
irix* | nonstopux*)
5848
  symcode='[BCDEGRST]'
5849
  ;;
5850
osf*)
5851
  symcode='[BCDEGQRST]'
5852
  ;;
5853
solaris*)
5854
  symcode='[BDRT]'
5855
  ;;
5856
sco3.2v5*)
5857
  symcode='[DT]'
5858
  ;;
5859
sysv4.2uw2*)
5860
  symcode='[DT]'
5861
  ;;
5862
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5863
  symcode='[ABDT]'
5864
  ;;
5865
sysv4)
5866
  symcode='[DFNSTU]'
5867
  ;;
5868
esac
5869
 
5870
# If we're using GNU nm, then use its standard symbol codes.
5871
case `$NM -V 2>&1` in
5872
*GNU* | *'with BFD'*)
5873
  symcode='[ABCDGIRSTW]' ;;
5874
esac
5875
 
5876
# Transform an extracted symbol line into a proper C declaration.
5877
# Some systems (esp. on ia64) link data and code symbols differently,
5878
# so use this general approach.
5879
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5880
 
5881
# Transform an extracted symbol line into symbol name and symbol address
5882 784 jeremybenn
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5883
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5884 82 jeremybenn
 
5885
# Handle CRLF in mingw tool chain
5886
opt_cr=
5887
case $build_os in
5888
mingw*)
5889
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5890
  ;;
5891
esac
5892
 
5893
# Try without a prefix underscore, then with it.
5894
for ac_symprfx in "" "_"; do
5895
 
5896
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5897
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5898
 
5899
  # Write the raw and C identifiers.
5900
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5901
    # Fake it for dumpbin and say T for any non-static function
5902
    # and D for any global variable.
5903
    # Also find C++ and __fastcall symbols from MSVC++,
5904
    # which start with @ or ?.
5905
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5906
"     {last_section=section; section=\$ 3};"\
5907
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5908
"     \$ 0!~/External *\|/{next};"\
5909
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5910
"     {if(hide[section]) next};"\
5911
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5912
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5913
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5914
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5915
"     ' prfx=^$ac_symprfx"
5916
  else
5917
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5918
  fi
5919 784 jeremybenn
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5920 82 jeremybenn
 
5921
  # Check to see that the pipe works correctly.
5922
  pipe_works=no
5923
 
5924
  rm -f conftest*
5925
  cat > conftest.$ac_ext <<_LT_EOF
5926
#ifdef __cplusplus
5927
extern "C" {
5928
#endif
5929
char nm_test_var;
5930
void nm_test_func(void);
5931
void nm_test_func(void){}
5932
#ifdef __cplusplus
5933
}
5934
#endif
5935
int main(){nm_test_var='a';nm_test_func();return(0);}
5936
_LT_EOF
5937
 
5938 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5939 82 jeremybenn
  (eval $ac_compile) 2>&5
5940
  ac_status=$?
5941 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942
  test $ac_status = 0; }; then
5943 82 jeremybenn
    # Now try to grab the symbols.
5944
    nlist=conftest.nm
5945 784 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5946
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5947 82 jeremybenn
  ac_status=$?
5948 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949
  test $ac_status = 0; } && test -s "$nlist"; then
5950 82 jeremybenn
      # Try sorting and uniquifying the output.
5951
      if sort "$nlist" | uniq > "$nlist"T; then
5952
        mv -f "$nlist"T "$nlist"
5953
      else
5954
        rm -f "$nlist"T
5955
      fi
5956
 
5957
      # Make sure that we snagged all the symbols we need.
5958
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5959
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5960
          cat <<_LT_EOF > conftest.$ac_ext
5961 784 jeremybenn
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5962
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5963
/* DATA imports from DLLs on WIN32 con't be const, because runtime
5964
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5965
# define LT_DLSYM_CONST
5966
#elif defined(__osf__)
5967
/* This system does not cope well with relocations in const data.  */
5968
# define LT_DLSYM_CONST
5969
#else
5970
# define LT_DLSYM_CONST const
5971
#endif
5972
 
5973 82 jeremybenn
#ifdef __cplusplus
5974
extern "C" {
5975
#endif
5976
 
5977
_LT_EOF
5978
          # Now generate the symbol file.
5979
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5980
 
5981
          cat <<_LT_EOF >> conftest.$ac_ext
5982
 
5983
/* The mapping between symbol names and symbols.  */
5984 784 jeremybenn
LT_DLSYM_CONST struct {
5985 82 jeremybenn
  const char *name;
5986
  void       *address;
5987
}
5988
lt__PROGRAM__LTX_preloaded_symbols[] =
5989
{
5990
  { "@PROGRAM@", (void *) 0 },
5991
_LT_EOF
5992
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5993
          cat <<\_LT_EOF >> conftest.$ac_ext
5994
  {0, (void *) 0}
5995
};
5996
 
5997
/* This works around a problem in FreeBSD linker */
5998
#ifdef FREEBSD_WORKAROUND
5999
static const void *lt_preloaded_setup() {
6000
  return lt__PROGRAM__LTX_preloaded_symbols;
6001
}
6002
#endif
6003
 
6004
#ifdef __cplusplus
6005
}
6006
#endif
6007
_LT_EOF
6008
          # Now try linking the two files.
6009
          mv conftest.$ac_objext conftstm.$ac_objext
6010 784 jeremybenn
          lt_globsym_save_LIBS=$LIBS
6011
          lt_globsym_save_CFLAGS=$CFLAGS
6012 82 jeremybenn
          LIBS="conftstm.$ac_objext"
6013
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6014 346 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6015 82 jeremybenn
  (eval $ac_link) 2>&5
6016
  ac_status=$?
6017 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6018
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6019 82 jeremybenn
            pipe_works=yes
6020
          fi
6021 784 jeremybenn
          LIBS=$lt_globsym_save_LIBS
6022
          CFLAGS=$lt_globsym_save_CFLAGS
6023 82 jeremybenn
        else
6024
          echo "cannot find nm_test_func in $nlist" >&5
6025
        fi
6026
      else
6027
        echo "cannot find nm_test_var in $nlist" >&5
6028
      fi
6029
    else
6030
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6031
    fi
6032
  else
6033
    echo "$progname: failed program was:" >&5
6034
    cat conftest.$ac_ext >&5
6035
  fi
6036
  rm -rf conftest* conftst*
6037
 
6038
  # Do not use the global_symbol_pipe unless it works.
6039
  if test "$pipe_works" = yes; then
6040
    break
6041
  else
6042
    lt_cv_sys_global_symbol_pipe=
6043
  fi
6044
done
6045
 
6046
fi
6047
 
6048
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6049
  lt_cv_sys_global_symbol_to_cdecl=
6050
fi
6051
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6052 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6053 82 jeremybenn
$as_echo "failed" >&6; }
6054
else
6055 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6056 82 jeremybenn
$as_echo "ok" >&6; }
6057
fi
6058
 
6059 784 jeremybenn
# Response file support.
6060
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6061
  nm_file_list_spec='@'
6062
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6063
  nm_file_list_spec='@'
6064
fi
6065 82 jeremybenn
 
6066
 
6067
 
6068
 
6069
 
6070
 
6071
 
6072
 
6073
 
6074
 
6075
 
6076
 
6077
 
6078
 
6079
 
6080
 
6081
 
6082
 
6083
 
6084
 
6085
 
6086 784 jeremybenn
 
6087
 
6088
 
6089
 
6090
 
6091
 
6092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6093
$as_echo_n "checking for sysroot... " >&6; }
6094
 
6095
# Check whether --with-sysroot was given.
6096
if test "${with_sysroot+set}" = set; then :
6097
  withval=$with_sysroot;
6098
else
6099
  with_sysroot=no
6100
fi
6101
 
6102
 
6103
lt_sysroot=
6104
case ${with_sysroot} in #(
6105
 yes)
6106
   if test "$GCC" = yes; then
6107
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6108
   fi
6109
   ;; #(
6110
 /*)
6111
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6112
   ;; #(
6113
 no|'')
6114
   ;; #(
6115
 *)
6116
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6117
$as_echo "${with_sysroot}" >&6; }
6118
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6119
   ;;
6120
esac
6121
 
6122
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6123
$as_echo "${lt_sysroot:-no}" >&6; }
6124
 
6125
 
6126
 
6127
 
6128
 
6129 19 jeremybenn
# Check whether --enable-libtool-lock was given.
6130 346 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
6131 19 jeremybenn
  enableval=$enable_libtool_lock;
6132
fi
6133
 
6134
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6135
 
6136
# Some flags need to be propagated to the compiler or linker for good
6137
# libtool support.
6138
case $host in
6139
ia64-*-hpux*)
6140
  # Find out which ABI we are using.
6141
  echo 'int i;' > conftest.$ac_ext
6142 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6143 19 jeremybenn
  (eval $ac_compile) 2>&5
6144
  ac_status=$?
6145 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6146
  test $ac_status = 0; }; then
6147 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
6148 82 jeremybenn
      *ELF-32*)
6149
        HPUX_IA64_MODE="32"
6150
        ;;
6151
      *ELF-64*)
6152
        HPUX_IA64_MODE="64"
6153
        ;;
6154 19 jeremybenn
    esac
6155
  fi
6156
  rm -rf conftest*
6157
  ;;
6158
*-*-irix6*)
6159
  # Find out which ABI we are using.
6160 784 jeremybenn
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6161 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6162 19 jeremybenn
  (eval $ac_compile) 2>&5
6163
  ac_status=$?
6164 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165
  test $ac_status = 0; }; then
6166 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
6167
      case `/usr/bin/file conftest.$ac_objext` in
6168
        *32-bit*)
6169
          LD="${LD-ld} -melf32bsmip"
6170
          ;;
6171
        *N32*)
6172
          LD="${LD-ld} -melf32bmipn32"
6173
          ;;
6174
        *64-bit*)
6175
          LD="${LD-ld} -melf64bmip"
6176
        ;;
6177
      esac
6178
    else
6179
      case `/usr/bin/file conftest.$ac_objext` in
6180
        *32-bit*)
6181
          LD="${LD-ld} -32"
6182
          ;;
6183
        *N32*)
6184
          LD="${LD-ld} -n32"
6185
          ;;
6186
        *64-bit*)
6187
          LD="${LD-ld} -64"
6188
          ;;
6189
      esac
6190
    fi
6191 19 jeremybenn
  fi
6192
  rm -rf conftest*
6193
  ;;
6194
 
6195
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6196 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6197 19 jeremybenn
  # Find out which ABI we are using.
6198
  echo 'int i;' > conftest.$ac_ext
6199 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6200 19 jeremybenn
  (eval $ac_compile) 2>&5
6201
  ac_status=$?
6202 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6203
  test $ac_status = 0; }; then
6204 19 jeremybenn
    case `/usr/bin/file conftest.o` in
6205 82 jeremybenn
      *32-bit*)
6206
        case $host in
6207
          x86_64-*kfreebsd*-gnu)
6208
            LD="${LD-ld} -m elf_i386_fbsd"
6209
            ;;
6210
          x86_64-*linux*)
6211
            LD="${LD-ld} -m elf_i386"
6212
            ;;
6213
          ppc64-*linux*|powerpc64-*linux*)
6214
            LD="${LD-ld} -m elf32ppclinux"
6215
            ;;
6216
          s390x-*linux*)
6217
            LD="${LD-ld} -m elf_s390"
6218
            ;;
6219
          sparc64-*linux*)
6220
            LD="${LD-ld} -m elf32_sparc"
6221
            ;;
6222
        esac
6223
        ;;
6224
      *64-bit*)
6225
        case $host in
6226
          x86_64-*kfreebsd*-gnu)
6227
            LD="${LD-ld} -m elf_x86_64_fbsd"
6228
            ;;
6229
          x86_64-*linux*)
6230
            LD="${LD-ld} -m elf_x86_64"
6231
            ;;
6232
          ppc*-*linux*|powerpc*-*linux*)
6233
            LD="${LD-ld} -m elf64ppc"
6234
            ;;
6235
          s390*-*linux*|s390*-*tpf*)
6236
            LD="${LD-ld} -m elf64_s390"
6237
            ;;
6238
          sparc*-*linux*)
6239
            LD="${LD-ld} -m elf64_sparc"
6240
            ;;
6241
        esac
6242
        ;;
6243 19 jeremybenn
    esac
6244
  fi
6245
  rm -rf conftest*
6246
  ;;
6247
 
6248
*-*-sco3.2v5*)
6249
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6250
  SAVE_CFLAGS="$CFLAGS"
6251
  CFLAGS="$CFLAGS -belf"
6252 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6253 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6254 625 jeremybenn
if ${lt_cv_cc_needs_belf+:} false; then :
6255 82 jeremybenn
  $as_echo_n "(cached) " >&6
6256 19 jeremybenn
else
6257
  ac_ext=c
6258
ac_cpp='$CPP $CPPFLAGS'
6259
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6262
 
6263 346 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 19 jeremybenn
/* end confdefs.h.  */
6265
 
6266
int
6267
main ()
6268
{
6269
 
6270
  ;
6271
  return 0;
6272
}
6273
_ACEOF
6274 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
6275 19 jeremybenn
  lt_cv_cc_needs_belf=yes
6276
else
6277 346 jeremybenn
  lt_cv_cc_needs_belf=no
6278 19 jeremybenn
fi
6279 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
6280
    conftest$ac_exeext conftest.$ac_ext
6281 19 jeremybenn
     ac_ext=c
6282
ac_cpp='$CPP $CPPFLAGS'
6283
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6284
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6285
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6286
 
6287
fi
6288 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6289 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6290 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6291
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6292
    CFLAGS="$SAVE_CFLAGS"
6293
  fi
6294
  ;;
6295
sparc*-*solaris*)
6296
  # Find out which ABI we are using.
6297
  echo 'int i;' > conftest.$ac_ext
6298 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6299 19 jeremybenn
  (eval $ac_compile) 2>&5
6300
  ac_status=$?
6301 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302
  test $ac_status = 0; }; then
6303 19 jeremybenn
    case `/usr/bin/file conftest.o` in
6304
    *64-bit*)
6305
      case $lt_cv_prog_gnu_ld in
6306
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6307 82 jeremybenn
      *)
6308
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6309
          LD="${LD-ld} -64"
6310
        fi
6311
        ;;
6312 19 jeremybenn
      esac
6313
      ;;
6314
    esac
6315
  fi
6316
  rm -rf conftest*
6317
  ;;
6318 82 jeremybenn
esac
6319 19 jeremybenn
 
6320 82 jeremybenn
need_locks="$enable_libtool_lock"
6321 19 jeremybenn
 
6322 784 jeremybenn
if test -n "$ac_tool_prefix"; then
6323
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6324
set dummy ${ac_tool_prefix}mt; ac_word=$2
6325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326
$as_echo_n "checking for $ac_word... " >&6; }
6327
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6328
  $as_echo_n "(cached) " >&6
6329
else
6330
  if test -n "$MANIFEST_TOOL"; then
6331
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6332
else
6333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334
for as_dir in $PATH
6335
do
6336
  IFS=$as_save_IFS
6337
  test -z "$as_dir" && as_dir=.
6338
    for ac_exec_ext in '' $ac_executable_extensions; do
6339
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6341
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342
    break 2
6343
  fi
6344
done
6345
  done
6346
IFS=$as_save_IFS
6347 82 jeremybenn
 
6348 784 jeremybenn
fi
6349
fi
6350
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6351
if test -n "$MANIFEST_TOOL"; then
6352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6353
$as_echo "$MANIFEST_TOOL" >&6; }
6354
else
6355
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356
$as_echo "no" >&6; }
6357
fi
6358
 
6359
 
6360
fi
6361
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6362
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6363
  # Extract the first word of "mt", so it can be a program name with args.
6364
set dummy mt; ac_word=$2
6365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366
$as_echo_n "checking for $ac_word... " >&6; }
6367
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6368
  $as_echo_n "(cached) " >&6
6369
else
6370
  if test -n "$ac_ct_MANIFEST_TOOL"; then
6371
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6372
else
6373
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374
for as_dir in $PATH
6375
do
6376
  IFS=$as_save_IFS
6377
  test -z "$as_dir" && as_dir=.
6378
    for ac_exec_ext in '' $ac_executable_extensions; do
6379
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6381
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382
    break 2
6383
  fi
6384
done
6385
  done
6386
IFS=$as_save_IFS
6387
 
6388
fi
6389
fi
6390
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6391
if test -n "$ac_ct_MANIFEST_TOOL"; then
6392
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6393
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6394
else
6395
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396
$as_echo "no" >&6; }
6397
fi
6398
 
6399
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6400
    MANIFEST_TOOL=":"
6401
  else
6402
    case $cross_compiling:$ac_tool_warned in
6403
yes:)
6404
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406
ac_tool_warned=yes ;;
6407
esac
6408
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6409
  fi
6410
else
6411
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6412
fi
6413
 
6414
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6416
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6417
if ${lt_cv_path_mainfest_tool+:} false; then :
6418
  $as_echo_n "(cached) " >&6
6419
else
6420
  lt_cv_path_mainfest_tool=no
6421
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6422
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6423
  cat conftest.err >&5
6424
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6425
    lt_cv_path_mainfest_tool=yes
6426
  fi
6427
  rm -f conftest*
6428
fi
6429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6430
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6431
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6432
  MANIFEST_TOOL=:
6433
fi
6434
 
6435
 
6436
 
6437
 
6438
 
6439
 
6440 82 jeremybenn
  case $host_os in
6441
    rhapsody* | darwin*)
6442
    if test -n "$ac_tool_prefix"; then
6443
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6444
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6445 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6447 625 jeremybenn
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6448 82 jeremybenn
  $as_echo_n "(cached) " >&6
6449
else
6450
  if test -n "$DSYMUTIL"; then
6451
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6452
else
6453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454
for as_dir in $PATH
6455
do
6456
  IFS=$as_save_IFS
6457
  test -z "$as_dir" && as_dir=.
6458 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6459 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6461 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 82 jeremybenn
    break 2
6463
  fi
6464
done
6465 346 jeremybenn
  done
6466 82 jeremybenn
IFS=$as_save_IFS
6467
 
6468
fi
6469
fi
6470
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6471
if test -n "$DSYMUTIL"; then
6472 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6473 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
6474
else
6475 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 82 jeremybenn
$as_echo "no" >&6; }
6477
fi
6478
 
6479
 
6480
fi
6481
if test -z "$ac_cv_prog_DSYMUTIL"; then
6482
  ac_ct_DSYMUTIL=$DSYMUTIL
6483
  # Extract the first word of "dsymutil", so it can be a program name with args.
6484
set dummy dsymutil; ac_word=$2
6485 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6487 625 jeremybenn
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6488 82 jeremybenn
  $as_echo_n "(cached) " >&6
6489
else
6490
  if test -n "$ac_ct_DSYMUTIL"; then
6491
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6492
else
6493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494
for as_dir in $PATH
6495
do
6496
  IFS=$as_save_IFS
6497
  test -z "$as_dir" && as_dir=.
6498 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6499 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6501 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 82 jeremybenn
    break 2
6503
  fi
6504
done
6505 346 jeremybenn
  done
6506 82 jeremybenn
IFS=$as_save_IFS
6507
 
6508
fi
6509
fi
6510
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6511
if test -n "$ac_ct_DSYMUTIL"; then
6512 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6513 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6514
else
6515 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 82 jeremybenn
$as_echo "no" >&6; }
6517
fi
6518
 
6519
  if test "x$ac_ct_DSYMUTIL" = x; then
6520
    DSYMUTIL=":"
6521
  else
6522
    case $cross_compiling:$ac_tool_warned in
6523
yes:)
6524 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526
ac_tool_warned=yes ;;
6527 19 jeremybenn
esac
6528 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
6529
  fi
6530
else
6531
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6532
fi
6533 19 jeremybenn
 
6534 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
6535
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6536
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6537 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6539 625 jeremybenn
if ${ac_cv_prog_NMEDIT+:} false; then :
6540 82 jeremybenn
  $as_echo_n "(cached) " >&6
6541
else
6542
  if test -n "$NMEDIT"; then
6543
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6544
else
6545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546
for as_dir in $PATH
6547
do
6548
  IFS=$as_save_IFS
6549
  test -z "$as_dir" && as_dir=.
6550 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6551 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6553 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 82 jeremybenn
    break 2
6555
  fi
6556
done
6557 346 jeremybenn
  done
6558 82 jeremybenn
IFS=$as_save_IFS
6559 19 jeremybenn
 
6560 82 jeremybenn
fi
6561
fi
6562
NMEDIT=$ac_cv_prog_NMEDIT
6563
if test -n "$NMEDIT"; then
6564 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6565 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6566
else
6567 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 82 jeremybenn
$as_echo "no" >&6; }
6569
fi
6570 19 jeremybenn
 
6571 82 jeremybenn
 
6572
fi
6573
if test -z "$ac_cv_prog_NMEDIT"; then
6574
  ac_ct_NMEDIT=$NMEDIT
6575
  # Extract the first word of "nmedit", so it can be a program name with args.
6576
set dummy nmedit; ac_word=$2
6577 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6579 625 jeremybenn
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6580 82 jeremybenn
  $as_echo_n "(cached) " >&6
6581
else
6582
  if test -n "$ac_ct_NMEDIT"; then
6583
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6584
else
6585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586
for as_dir in $PATH
6587
do
6588
  IFS=$as_save_IFS
6589
  test -z "$as_dir" && as_dir=.
6590 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6591 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6593 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 82 jeremybenn
    break 2
6595
  fi
6596
done
6597 346 jeremybenn
  done
6598 82 jeremybenn
IFS=$as_save_IFS
6599
 
6600
fi
6601
fi
6602
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6603
if test -n "$ac_ct_NMEDIT"; then
6604 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6605 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6606
else
6607 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 82 jeremybenn
$as_echo "no" >&6; }
6609
fi
6610
 
6611
  if test "x$ac_ct_NMEDIT" = x; then
6612
    NMEDIT=":"
6613
  else
6614
    case $cross_compiling:$ac_tool_warned in
6615
yes:)
6616 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618
ac_tool_warned=yes ;;
6619
esac
6620
    NMEDIT=$ac_ct_NMEDIT
6621
  fi
6622
else
6623
  NMEDIT="$ac_cv_prog_NMEDIT"
6624
fi
6625
 
6626
    if test -n "$ac_tool_prefix"; then
6627
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6628
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6629 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6631 625 jeremybenn
if ${ac_cv_prog_LIPO+:} false; then :
6632 82 jeremybenn
  $as_echo_n "(cached) " >&6
6633
else
6634
  if test -n "$LIPO"; then
6635
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6636
else
6637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638
for as_dir in $PATH
6639
do
6640
  IFS=$as_save_IFS
6641
  test -z "$as_dir" && as_dir=.
6642 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6643 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6645 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 82 jeremybenn
    break 2
6647
  fi
6648
done
6649 346 jeremybenn
  done
6650 82 jeremybenn
IFS=$as_save_IFS
6651
 
6652
fi
6653
fi
6654
LIPO=$ac_cv_prog_LIPO
6655
if test -n "$LIPO"; then
6656 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6657 82 jeremybenn
$as_echo "$LIPO" >&6; }
6658
else
6659 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 82 jeremybenn
$as_echo "no" >&6; }
6661
fi
6662
 
6663
 
6664
fi
6665
if test -z "$ac_cv_prog_LIPO"; then
6666
  ac_ct_LIPO=$LIPO
6667
  # Extract the first word of "lipo", so it can be a program name with args.
6668
set dummy lipo; ac_word=$2
6669 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6671 625 jeremybenn
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6672 82 jeremybenn
  $as_echo_n "(cached) " >&6
6673
else
6674
  if test -n "$ac_ct_LIPO"; then
6675
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6676
else
6677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678
for as_dir in $PATH
6679
do
6680
  IFS=$as_save_IFS
6681
  test -z "$as_dir" && as_dir=.
6682 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6683 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684
    ac_cv_prog_ac_ct_LIPO="lipo"
6685 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 82 jeremybenn
    break 2
6687
  fi
6688
done
6689 346 jeremybenn
  done
6690 82 jeremybenn
IFS=$as_save_IFS
6691
 
6692
fi
6693
fi
6694
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6695
if test -n "$ac_ct_LIPO"; then
6696 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6697 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6698
else
6699 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 82 jeremybenn
$as_echo "no" >&6; }
6701
fi
6702
 
6703
  if test "x$ac_ct_LIPO" = x; then
6704
    LIPO=":"
6705
  else
6706
    case $cross_compiling:$ac_tool_warned in
6707
yes:)
6708 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710
ac_tool_warned=yes ;;
6711
esac
6712
    LIPO=$ac_ct_LIPO
6713
  fi
6714
else
6715
  LIPO="$ac_cv_prog_LIPO"
6716
fi
6717
 
6718
    if test -n "$ac_tool_prefix"; then
6719
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6720
set dummy ${ac_tool_prefix}otool; ac_word=$2
6721 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6723 625 jeremybenn
if ${ac_cv_prog_OTOOL+:} false; then :
6724 82 jeremybenn
  $as_echo_n "(cached) " >&6
6725
else
6726
  if test -n "$OTOOL"; then
6727
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6728
else
6729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730
for as_dir in $PATH
6731
do
6732
  IFS=$as_save_IFS
6733
  test -z "$as_dir" && as_dir=.
6734 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6735 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6737 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 82 jeremybenn
    break 2
6739
  fi
6740
done
6741 346 jeremybenn
  done
6742 82 jeremybenn
IFS=$as_save_IFS
6743
 
6744
fi
6745
fi
6746
OTOOL=$ac_cv_prog_OTOOL
6747
if test -n "$OTOOL"; then
6748 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6749 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6750
else
6751 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 82 jeremybenn
$as_echo "no" >&6; }
6753
fi
6754
 
6755
 
6756
fi
6757
if test -z "$ac_cv_prog_OTOOL"; then
6758
  ac_ct_OTOOL=$OTOOL
6759
  # Extract the first word of "otool", so it can be a program name with args.
6760
set dummy otool; ac_word=$2
6761 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6763 625 jeremybenn
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6764 82 jeremybenn
  $as_echo_n "(cached) " >&6
6765
else
6766
  if test -n "$ac_ct_OTOOL"; then
6767
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6768
else
6769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770
for as_dir in $PATH
6771
do
6772
  IFS=$as_save_IFS
6773
  test -z "$as_dir" && as_dir=.
6774 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6775 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776
    ac_cv_prog_ac_ct_OTOOL="otool"
6777 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 82 jeremybenn
    break 2
6779
  fi
6780
done
6781 346 jeremybenn
  done
6782 82 jeremybenn
IFS=$as_save_IFS
6783
 
6784
fi
6785
fi
6786
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6787
if test -n "$ac_ct_OTOOL"; then
6788 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6789 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6790
else
6791 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 82 jeremybenn
$as_echo "no" >&6; }
6793
fi
6794
 
6795
  if test "x$ac_ct_OTOOL" = x; then
6796
    OTOOL=":"
6797
  else
6798
    case $cross_compiling:$ac_tool_warned in
6799
yes:)
6800 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802
ac_tool_warned=yes ;;
6803
esac
6804
    OTOOL=$ac_ct_OTOOL
6805
  fi
6806
else
6807
  OTOOL="$ac_cv_prog_OTOOL"
6808
fi
6809
 
6810
    if test -n "$ac_tool_prefix"; then
6811
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6812
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6813 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6815 625 jeremybenn
if ${ac_cv_prog_OTOOL64+:} false; then :
6816 82 jeremybenn
  $as_echo_n "(cached) " >&6
6817
else
6818
  if test -n "$OTOOL64"; then
6819
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6820
else
6821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822
for as_dir in $PATH
6823
do
6824
  IFS=$as_save_IFS
6825
  test -z "$as_dir" && as_dir=.
6826 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6827 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6829 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 82 jeremybenn
    break 2
6831
  fi
6832
done
6833 346 jeremybenn
  done
6834 82 jeremybenn
IFS=$as_save_IFS
6835
 
6836
fi
6837
fi
6838
OTOOL64=$ac_cv_prog_OTOOL64
6839
if test -n "$OTOOL64"; then
6840 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6841 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6842
else
6843 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 82 jeremybenn
$as_echo "no" >&6; }
6845
fi
6846
 
6847
 
6848
fi
6849
if test -z "$ac_cv_prog_OTOOL64"; then
6850
  ac_ct_OTOOL64=$OTOOL64
6851
  # Extract the first word of "otool64", so it can be a program name with args.
6852
set dummy otool64; ac_word=$2
6853 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6855 625 jeremybenn
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6856 82 jeremybenn
  $as_echo_n "(cached) " >&6
6857
else
6858
  if test -n "$ac_ct_OTOOL64"; then
6859
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6860
else
6861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862
for as_dir in $PATH
6863
do
6864
  IFS=$as_save_IFS
6865
  test -z "$as_dir" && as_dir=.
6866 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6867 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6869 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 82 jeremybenn
    break 2
6871
  fi
6872
done
6873 346 jeremybenn
  done
6874 82 jeremybenn
IFS=$as_save_IFS
6875
 
6876
fi
6877
fi
6878
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6879
if test -n "$ac_ct_OTOOL64"; then
6880 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6881 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6882
else
6883 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 82 jeremybenn
$as_echo "no" >&6; }
6885
fi
6886
 
6887
  if test "x$ac_ct_OTOOL64" = x; then
6888
    OTOOL64=":"
6889
  else
6890
    case $cross_compiling:$ac_tool_warned in
6891
yes:)
6892 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894
ac_tool_warned=yes ;;
6895
esac
6896
    OTOOL64=$ac_ct_OTOOL64
6897
  fi
6898
else
6899
  OTOOL64="$ac_cv_prog_OTOOL64"
6900
fi
6901
 
6902
 
6903
 
6904
 
6905
 
6906
 
6907
 
6908
 
6909
 
6910
 
6911
 
6912
 
6913
 
6914
 
6915
 
6916
 
6917
 
6918
 
6919
 
6920
 
6921
 
6922
 
6923
 
6924
 
6925
 
6926
 
6927
 
6928 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6929 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6930 625 jeremybenn
if ${lt_cv_apple_cc_single_mod+:} false; then :
6931 82 jeremybenn
  $as_echo_n "(cached) " >&6
6932
else
6933
  lt_cv_apple_cc_single_mod=no
6934
      if test -z "${LT_MULTI_MODULE}"; then
6935
        # By default we will add the -single_module flag. You can override
6936
        # by either setting the environment variable LT_MULTI_MODULE
6937
        # non-empty at configure time, or by adding -multi_module to the
6938
        # link flags.
6939
        rm -rf libconftest.dylib*
6940
        echo "int foo(void){return 1;}" > conftest.c
6941
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942
-dynamiclib -Wl,-single_module conftest.c" >&5
6943
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6944
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6945
        _lt_result=$?
6946
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6947
          lt_cv_apple_cc_single_mod=yes
6948
        else
6949
          cat conftest.err >&5
6950
        fi
6951
        rm -rf libconftest.dylib*
6952
        rm -f conftest.*
6953
      fi
6954
fi
6955 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6956 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6957 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6958 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6959 625 jeremybenn
if ${lt_cv_ld_exported_symbols_list+:} false; then :
6960 82 jeremybenn
  $as_echo_n "(cached) " >&6
6961
else
6962
  lt_cv_ld_exported_symbols_list=no
6963
      save_LDFLAGS=$LDFLAGS
6964
      echo "_main" > conftest.sym
6965
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6966 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 82 jeremybenn
/* end confdefs.h.  */
6968
 
6969
int
6970
main ()
6971
{
6972
 
6973
  ;
6974
  return 0;
6975
}
6976
_ACEOF
6977 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
6978 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6979
else
6980 346 jeremybenn
  lt_cv_ld_exported_symbols_list=no
6981 82 jeremybenn
fi
6982 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
6983
    conftest$ac_exeext conftest.$ac_ext
6984 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6985
 
6986
fi
6987 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6988 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6989 784 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6990
$as_echo_n "checking for -force_load linker flag... " >&6; }
6991
if ${lt_cv_ld_force_load+:} false; then :
6992
  $as_echo_n "(cached) " >&6
6993
else
6994
  lt_cv_ld_force_load=no
6995
      cat > conftest.c << _LT_EOF
6996
int forced_loaded() { return 2;}
6997
_LT_EOF
6998
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6999
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7000
      echo "$AR cru libconftest.a conftest.o" >&5
7001
      $AR cru libconftest.a conftest.o 2>&5
7002
      echo "$RANLIB libconftest.a" >&5
7003
      $RANLIB libconftest.a 2>&5
7004
      cat > conftest.c << _LT_EOF
7005
int main() { return 0;}
7006
_LT_EOF
7007
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7008
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7009
      _lt_result=$?
7010
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7011
        lt_cv_ld_force_load=yes
7012
      else
7013
        cat conftest.err >&5
7014
      fi
7015
        rm -f conftest.err libconftest.a conftest conftest.c
7016
        rm -rf conftest.dSYM
7017
 
7018
fi
7019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7020
$as_echo "$lt_cv_ld_force_load" >&6; }
7021 82 jeremybenn
    case $host_os in
7022
    rhapsody* | darwin1.[012])
7023
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7024
    darwin1.*)
7025
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7026
    darwin*) # darwin 5.x on
7027
      # if running on 10.5 or later, the deployment target defaults
7028
      # to the OS version, if on x86, and 10.4, the deployment
7029
      # target defaults to 10.4. Don't you love it?
7030
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7031
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7032
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033
        10.[012]*)
7034
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7035
        10.*)
7036
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7037
      esac
7038
    ;;
7039
  esac
7040
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7041
      _lt_dar_single_mod='$single_module'
7042
    fi
7043
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7044
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7045
    else
7046
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7047
    fi
7048 784 jeremybenn
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7049 82 jeremybenn
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7050
    else
7051
      _lt_dsymutil=
7052
    fi
7053
    ;;
7054
  esac
7055
 
7056 19 jeremybenn
for ac_header in dlfcn.h
7057 346 jeremybenn
do :
7058
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7059
"
7060 625 jeremybenn
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7061 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
7062 346 jeremybenn
#define HAVE_DLFCN_H 1
7063 19 jeremybenn
_ACEOF
7064
 
7065
fi
7066
 
7067
done
7068
 
7069
 
7070
 
7071 784 jeremybenn
 
7072
 
7073 82 jeremybenn
# Set options
7074 19 jeremybenn
 
7075
 
7076
 
7077 82 jeremybenn
        enable_dlopen=no
7078 19 jeremybenn
 
7079
 
7080 82 jeremybenn
  enable_win32_dll=no
7081 19 jeremybenn
 
7082
 
7083 82 jeremybenn
            # Check whether --enable-shared was given.
7084 346 jeremybenn
if test "${enable_shared+set}" = set; then :
7085 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
7086
    case $enableval in
7087
    yes) enable_shared=yes ;;
7088
    no) enable_shared=no ;;
7089
    *)
7090
      enable_shared=no
7091
      # Look at the argument we got.  We use all the common list separators.
7092
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7093
      for pkg in $enableval; do
7094
        IFS="$lt_save_ifs"
7095
        if test "X$pkg" = "X$p"; then
7096
          enable_shared=yes
7097
        fi
7098
      done
7099
      IFS="$lt_save_ifs"
7100
      ;;
7101
    esac
7102 19 jeremybenn
else
7103 82 jeremybenn
  enable_shared=yes
7104 19 jeremybenn
fi
7105
 
7106
 
7107
 
7108
 
7109
 
7110
 
7111
 
7112
 
7113
 
7114 82 jeremybenn
  # Check whether --enable-static was given.
7115 346 jeremybenn
if test "${enable_static+set}" = set; then :
7116 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
7117
    case $enableval in
7118
    yes) enable_static=yes ;;
7119
    no) enable_static=no ;;
7120
    *)
7121
     enable_static=no
7122
      # Look at the argument we got.  We use all the common list separators.
7123
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7124
      for pkg in $enableval; do
7125
        IFS="$lt_save_ifs"
7126
        if test "X$pkg" = "X$p"; then
7127
          enable_static=yes
7128
        fi
7129
      done
7130
      IFS="$lt_save_ifs"
7131
      ;;
7132
    esac
7133 19 jeremybenn
else
7134 82 jeremybenn
  enable_static=yes
7135 19 jeremybenn
fi
7136
 
7137
 
7138
 
7139
 
7140
 
7141
 
7142
 
7143
 
7144
 
7145
 
7146 82 jeremybenn
# Check whether --with-pic was given.
7147 346 jeremybenn
if test "${with_pic+set}" = set; then :
7148 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
7149 19 jeremybenn
else
7150 82 jeremybenn
  pic_mode=default
7151 19 jeremybenn
fi
7152
 
7153
 
7154 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
7155 19 jeremybenn
 
7156
 
7157
 
7158
 
7159
 
7160
 
7161
 
7162 82 jeremybenn
  # Check whether --enable-fast-install was given.
7163 346 jeremybenn
if test "${enable_fast_install+set}" = set; then :
7164 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
7165
    case $enableval in
7166
    yes) enable_fast_install=yes ;;
7167
    no) enable_fast_install=no ;;
7168
    *)
7169
      enable_fast_install=no
7170
      # Look at the argument we got.  We use all the common list separators.
7171
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7172
      for pkg in $enableval; do
7173
        IFS="$lt_save_ifs"
7174
        if test "X$pkg" = "X$p"; then
7175
          enable_fast_install=yes
7176
        fi
7177
      done
7178
      IFS="$lt_save_ifs"
7179
      ;;
7180
    esac
7181 19 jeremybenn
else
7182 82 jeremybenn
  enable_fast_install=yes
7183 19 jeremybenn
fi
7184
 
7185
 
7186
 
7187
 
7188
 
7189
 
7190
 
7191
 
7192
 
7193
 
7194
 
7195 82 jeremybenn
# This can be used to rebuild libtool when needed
7196
LIBTOOL_DEPS="$ltmain"
7197 19 jeremybenn
 
7198 82 jeremybenn
# Always use our own libtool.
7199
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7200 19 jeremybenn
 
7201
 
7202
 
7203
 
7204
 
7205
 
7206
 
7207
 
7208
 
7209
 
7210
 
7211
 
7212
 
7213
 
7214
 
7215
 
7216
 
7217
 
7218
 
7219
 
7220
 
7221
 
7222
 
7223
 
7224
 
7225 784 jeremybenn
 
7226 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
7227 19 jeremybenn
 
7228
 
7229
 
7230
 
7231
 
7232
 
7233
 
7234
 
7235
 
7236
 
7237
 
7238
 
7239
 
7240
 
7241 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
7242
   setopt NO_GLOB_SUBST
7243 19 jeremybenn
fi
7244
 
7245 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7246 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
7247 625 jeremybenn
if ${lt_cv_objdir+:} false; then :
7248 82 jeremybenn
  $as_echo_n "(cached) " >&6
7249 19 jeremybenn
else
7250
  rm -f .libs 2>/dev/null
7251
mkdir .libs 2>/dev/null
7252
if test -d .libs; then
7253
  lt_cv_objdir=.libs
7254
else
7255
  # MS-DOS does not allow filenames that begin with a dot.
7256
  lt_cv_objdir=_libs
7257
fi
7258
rmdir .libs 2>/dev/null
7259
fi
7260 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7261 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
7262 19 jeremybenn
objdir=$lt_cv_objdir
7263
 
7264
 
7265
 
7266
 
7267
 
7268 82 jeremybenn
cat >>confdefs.h <<_ACEOF
7269
#define LT_OBJDIR "$lt_cv_objdir/"
7270
_ACEOF
7271
 
7272
 
7273
 
7274
 
7275 19 jeremybenn
case $host_os in
7276
aix3*)
7277
  # AIX sometimes has problems with the GCC collect2 program.  For some
7278
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7279
  # vanish in a puff of smoke.
7280
  if test "X${COLLECT_NAMES+set}" != Xset; then
7281
    COLLECT_NAMES=
7282
    export COLLECT_NAMES
7283
  fi
7284
  ;;
7285
esac
7286
 
7287
# Global variables:
7288 82 jeremybenn
ofile=libtool
7289 19 jeremybenn
can_build_shared=yes
7290
 
7291
# All known linkers require a `.a' archive for static linking (except MSVC,
7292
# which needs '.lib').
7293
libext=a
7294 82 jeremybenn
 
7295 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
7296
 
7297
old_CC="$CC"
7298
old_CFLAGS="$CFLAGS"
7299
 
7300
# Set sane defaults for various variables
7301
test -z "$CC" && CC=cc
7302
test -z "$LTCC" && LTCC=$CC
7303
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7304
test -z "$LD" && LD=ld
7305
test -z "$ac_objext" && ac_objext=o
7306
 
7307
for cc_temp in $compiler""; do
7308
  case $cc_temp in
7309
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7310
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7311
    \-*) ;;
7312
    *) break;;
7313
  esac
7314
done
7315 784 jeremybenn
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7316 19 jeremybenn
 
7317
 
7318
# Only perform the check for file, if the check method requires it
7319 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7320 19 jeremybenn
case $deplibs_check_method in
7321
file_magic*)
7322
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7323 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7324 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7325 625 jeremybenn
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7326 82 jeremybenn
  $as_echo_n "(cached) " >&6
7327 19 jeremybenn
else
7328
  case $MAGIC_CMD in
7329
[\\/*] |  ?:[\\/]*)
7330
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7331
  ;;
7332
*)
7333
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7334
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336
  for ac_dir in $ac_dummy; do
7337
    IFS="$lt_save_ifs"
7338
    test -z "$ac_dir" && ac_dir=.
7339
    if test -f $ac_dir/${ac_tool_prefix}file; then
7340
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7341
      if test -n "$file_magic_test_file"; then
7342
        case $deplibs_check_method in
7343
        "file_magic "*)
7344
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347
            $EGREP "$file_magic_regex" > /dev/null; then
7348
            :
7349
          else
7350 82 jeremybenn
            cat <<_LT_EOF 1>&2
7351 19 jeremybenn
 
7352
*** Warning: the command libtool uses to detect shared libraries,
7353
*** $file_magic_cmd, produces output that libtool cannot recognize.
7354
*** The result is that libtool may fail to recognize shared libraries
7355
*** as such.  This will affect the creation of libtool libraries that
7356
*** depend on shared libraries, but programs linked with such libtool
7357
*** libraries will work regardless of this problem.  Nevertheless, you
7358
*** may want to report the problem to your system manager and/or to
7359
*** bug-libtool@gnu.org
7360
 
7361 82 jeremybenn
_LT_EOF
7362 19 jeremybenn
          fi ;;
7363
        esac
7364
      fi
7365
      break
7366
    fi
7367
  done
7368
  IFS="$lt_save_ifs"
7369
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7370
  ;;
7371
esac
7372
fi
7373
 
7374
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375
if test -n "$MAGIC_CMD"; then
7376 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7377 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
7378 19 jeremybenn
else
7379 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 82 jeremybenn
$as_echo "no" >&6; }
7381 19 jeremybenn
fi
7382
 
7383 82 jeremybenn
 
7384
 
7385
 
7386
 
7387 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
7388
  if test -n "$ac_tool_prefix"; then
7389 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7390 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
7391 625 jeremybenn
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7392 82 jeremybenn
  $as_echo_n "(cached) " >&6
7393 19 jeremybenn
else
7394
  case $MAGIC_CMD in
7395
[\\/*] |  ?:[\\/]*)
7396
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7397
  ;;
7398
*)
7399
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7400
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7401
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7402
  for ac_dir in $ac_dummy; do
7403
    IFS="$lt_save_ifs"
7404
    test -z "$ac_dir" && ac_dir=.
7405
    if test -f $ac_dir/file; then
7406
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7407
      if test -n "$file_magic_test_file"; then
7408
        case $deplibs_check_method in
7409
        "file_magic "*)
7410
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7411
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7412
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7413
            $EGREP "$file_magic_regex" > /dev/null; then
7414
            :
7415
          else
7416 82 jeremybenn
            cat <<_LT_EOF 1>&2
7417 19 jeremybenn
 
7418
*** Warning: the command libtool uses to detect shared libraries,
7419
*** $file_magic_cmd, produces output that libtool cannot recognize.
7420
*** The result is that libtool may fail to recognize shared libraries
7421
*** as such.  This will affect the creation of libtool libraries that
7422
*** depend on shared libraries, but programs linked with such libtool
7423
*** libraries will work regardless of this problem.  Nevertheless, you
7424
*** may want to report the problem to your system manager and/or to
7425
*** bug-libtool@gnu.org
7426
 
7427 82 jeremybenn
_LT_EOF
7428 19 jeremybenn
          fi ;;
7429
        esac
7430
      fi
7431
      break
7432
    fi
7433
  done
7434
  IFS="$lt_save_ifs"
7435
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7436
  ;;
7437
esac
7438
fi
7439
 
7440
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7441
if test -n "$MAGIC_CMD"; then
7442 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7443 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
7444 19 jeremybenn
else
7445 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 82 jeremybenn
$as_echo "no" >&6; }
7447 19 jeremybenn
fi
7448
 
7449 82 jeremybenn
 
7450 19 jeremybenn
  else
7451
    MAGIC_CMD=:
7452
  fi
7453
fi
7454
 
7455
  fi
7456
  ;;
7457
esac
7458
 
7459 82 jeremybenn
# Use C for the default configuration in the libtool script
7460 19 jeremybenn
 
7461
lt_save_CC="$CC"
7462
ac_ext=c
7463
ac_cpp='$CPP $CPPFLAGS'
7464
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7467
 
7468
 
7469
# Source file extension for C test sources.
7470
ac_ext=c
7471
 
7472
# Object file extension for compiled C test sources.
7473
objext=o
7474
objext=$objext
7475
 
7476
# Code to be used in simple compile tests
7477
lt_simple_compile_test_code="int some_variable = 0;"
7478
 
7479
# Code to be used in simple link tests
7480
lt_simple_link_test_code='int main(){return(0);}'
7481
 
7482
 
7483 82 jeremybenn
 
7484
 
7485
 
7486
 
7487
 
7488 19 jeremybenn
# If no C compiler was specified, use CC.
7489
LTCC=${LTCC-"$CC"}
7490
 
7491
# If no C compiler flags were specified, use CFLAGS.
7492
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7493
 
7494
# Allow CC to be a program name with arguments.
7495
compiler=$CC
7496
 
7497 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
7498
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7499
compiler_DEFAULT=$CC
7500 19 jeremybenn
 
7501
# save warnings/boilerplate of simple test code
7502
ac_outfile=conftest.$ac_objext
7503
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7504
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7505
_lt_compiler_boilerplate=`cat conftest.err`
7506 82 jeremybenn
$RM conftest*
7507 19 jeremybenn
 
7508
ac_outfile=conftest.$ac_objext
7509
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7510
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7511
_lt_linker_boilerplate=`cat conftest.err`
7512 82 jeremybenn
$RM -r conftest*
7513 19 jeremybenn
 
7514
 
7515 82 jeremybenn
## CAVEAT EMPTOR:
7516
## There is no encapsulation within the following macros, do not change
7517
## the running order or otherwise move them around unless you know exactly
7518
## what you are doing...
7519
if test -n "$compiler"; then
7520 19 jeremybenn
 
7521
lt_prog_compiler_no_builtin_flag=
7522
 
7523
if test "$GCC" = yes; then
7524 784 jeremybenn
  case $cc_basename in
7525
  nvcc*)
7526
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7527
  *)
7528
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7529
  esac
7530 19 jeremybenn
 
7531 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7532 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7533 625 jeremybenn
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7534 82 jeremybenn
  $as_echo_n "(cached) " >&6
7535 19 jeremybenn
else
7536
  lt_cv_prog_compiler_rtti_exceptions=no
7537 82 jeremybenn
   ac_outfile=conftest.$ac_objext
7538 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7539
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7540
   # Insert the option either (1) after the last *FLAGS variable, or
7541
   # (2) before a word containing "conftest.", or (3) at the end.
7542
   # Note that $ac_compile itself does not contain backslashes and begins
7543
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7544
   # The option is referenced via a variable to avoid confusing sed.
7545
   lt_compile=`echo "$ac_compile" | $SED \
7546
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7547
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7548
   -e 's:$: $lt_compiler_flag:'`
7549 784 jeremybenn
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7550 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7551
   ac_status=$?
7552
   cat conftest.err >&5
7553 784 jeremybenn
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7555
     # The compiler can only warn and ignore the option if not recognized
7556
     # So say no if there are warnings other than the usual output.
7557 784 jeremybenn
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7558 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7559
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7560
       lt_cv_prog_compiler_rtti_exceptions=yes
7561
     fi
7562
   fi
7563 82 jeremybenn
   $RM conftest*
7564 19 jeremybenn
 
7565
fi
7566 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7567 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7568 19 jeremybenn
 
7569
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7570
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7571
else
7572
    :
7573
fi
7574
 
7575
fi
7576
 
7577 82 jeremybenn
 
7578
 
7579
 
7580
 
7581
 
7582
  lt_prog_compiler_wl=
7583 19 jeremybenn
lt_prog_compiler_pic=
7584
lt_prog_compiler_static=
7585
 
7586
 
7587
  if test "$GCC" = yes; then
7588
    lt_prog_compiler_wl='-Wl,'
7589
    lt_prog_compiler_static='-static'
7590
 
7591
    case $host_os in
7592
      aix*)
7593
      # All AIX code is PIC.
7594
      if test "$host_cpu" = ia64; then
7595
        # AIX 5 now supports IA64 processor
7596
        lt_prog_compiler_static='-Bstatic'
7597
      fi
7598
      ;;
7599
 
7600
    amigaos*)
7601 82 jeremybenn
      case $host_cpu in
7602
      powerpc)
7603
            # see comment about AmigaOS4 .so support
7604
            lt_prog_compiler_pic='-fPIC'
7605
        ;;
7606
      m68k)
7607
            # FIXME: we need at least 68020 code to build shared libraries, but
7608
            # adding the `-m68020' flag to GCC prevents building anything better,
7609
            # like `-m68040'.
7610
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7611
        ;;
7612
      esac
7613 19 jeremybenn
      ;;
7614
 
7615
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7616
      # PIC is the default for these OSes.
7617
      ;;
7618
 
7619 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7620 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7621
      # built for inclusion in a dll (and should export symbols for example).
7622
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7623
      # (--disable-auto-import) libraries
7624
      lt_prog_compiler_pic='-DDLL_EXPORT'
7625
      ;;
7626
 
7627
    darwin* | rhapsody*)
7628
      # PIC is the default on this platform
7629
      # Common symbols not allowed in MH_DYLIB files
7630
      lt_prog_compiler_pic='-fno-common'
7631
      ;;
7632
 
7633 784 jeremybenn
    haiku*)
7634
      # PIC is the default for Haiku.
7635
      # The "-static" flag exists, but is broken.
7636
      lt_prog_compiler_static=
7637
      ;;
7638
 
7639 82 jeremybenn
    hpux*)
7640
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7641
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7642
      # sets the default TLS model and affects inlining.
7643
      case $host_cpu in
7644
      hppa*64*)
7645
        # +Z the default
7646
        ;;
7647
      *)
7648
        lt_prog_compiler_pic='-fPIC'
7649
        ;;
7650
      esac
7651
      ;;
7652
 
7653 19 jeremybenn
    interix[3-9]*)
7654
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7655
      # Instead, we relocate shared libraries at runtime.
7656
      ;;
7657
 
7658
    msdosdjgpp*)
7659
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7660
      # on systems that don't support them.
7661
      lt_prog_compiler_can_build_shared=no
7662
      enable_shared=no
7663
      ;;
7664
 
7665 82 jeremybenn
    *nto* | *qnx*)
7666
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7667
      # it will coredump.
7668
      lt_prog_compiler_pic='-fPIC -shared'
7669
      ;;
7670
 
7671 19 jeremybenn
    sysv4*MP*)
7672
      if test -d /usr/nec; then
7673
        lt_prog_compiler_pic=-Kconform_pic
7674
      fi
7675
      ;;
7676
 
7677
    *)
7678
      lt_prog_compiler_pic='-fPIC'
7679
      ;;
7680
    esac
7681 784 jeremybenn
 
7682
    case $cc_basename in
7683
    nvcc*) # Cuda Compiler Driver 2.2
7684
      lt_prog_compiler_wl='-Xlinker '
7685
      lt_prog_compiler_pic='-Xcompiler -fPIC'
7686
      ;;
7687
    esac
7688 19 jeremybenn
  else
7689
    # PORTME Check for flag to pass linker flags through the system compiler.
7690
    case $host_os in
7691
    aix*)
7692
      lt_prog_compiler_wl='-Wl,'
7693
      if test "$host_cpu" = ia64; then
7694
        # AIX 5 now supports IA64 processor
7695
        lt_prog_compiler_static='-Bstatic'
7696
      else
7697
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7698
      fi
7699
      ;;
7700
 
7701 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7702 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7703
      # built for inclusion in a dll (and should export symbols for example).
7704
      lt_prog_compiler_pic='-DDLL_EXPORT'
7705
      ;;
7706
 
7707
    hpux9* | hpux10* | hpux11*)
7708
      lt_prog_compiler_wl='-Wl,'
7709
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7710
      # not for PA HP-UX.
7711
      case $host_cpu in
7712
      hppa*64*|ia64*)
7713
        # +Z the default
7714
        ;;
7715
      *)
7716
        lt_prog_compiler_pic='+Z'
7717
        ;;
7718
      esac
7719
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7720
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7721
      ;;
7722
 
7723
    irix5* | irix6* | nonstopux*)
7724
      lt_prog_compiler_wl='-Wl,'
7725
      # PIC (with -KPIC) is the default.
7726
      lt_prog_compiler_static='-non_shared'
7727
      ;;
7728
 
7729 784 jeremybenn
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7730 19 jeremybenn
      case $cc_basename in
7731 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7732
      ecc*)
7733 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7734
        lt_prog_compiler_pic='-KPIC'
7735
        lt_prog_compiler_static='-static'
7736
        ;;
7737 82 jeremybenn
      # icc used to be incompatible with GCC.
7738
      # ICC 10 doesn't accept -KPIC any more.
7739
      icc* | ifort*)
7740
        lt_prog_compiler_wl='-Wl,'
7741
        lt_prog_compiler_pic='-fPIC'
7742
        lt_prog_compiler_static='-static'
7743
        ;;
7744
      # Lahey Fortran 8.1.
7745
      lf95*)
7746
        lt_prog_compiler_wl='-Wl,'
7747
        lt_prog_compiler_pic='--shared'
7748
        lt_prog_compiler_static='--static'
7749
        ;;
7750 784 jeremybenn
      nagfor*)
7751
        # NAG Fortran compiler
7752
        lt_prog_compiler_wl='-Wl,-Wl,,'
7753
        lt_prog_compiler_pic='-PIC'
7754
        lt_prog_compiler_static='-Bstatic'
7755
        ;;
7756
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7757 19 jeremybenn
        # Portland Group compilers (*not* the Pentium gcc compiler,
7758
        # which looks to be a dead project)
7759
        lt_prog_compiler_wl='-Wl,'
7760
        lt_prog_compiler_pic='-fpic'
7761
        lt_prog_compiler_static='-Bstatic'
7762
        ;;
7763
      ccc*)
7764
        lt_prog_compiler_wl='-Wl,'
7765
        # All Alpha code is PIC.
7766
        lt_prog_compiler_static='-non_shared'
7767
        ;;
7768 784 jeremybenn
      xl* | bgxl* | bgf* | mpixl*)
7769
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7770 82 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7771
        lt_prog_compiler_pic='-qpic'
7772
        lt_prog_compiler_static='-qstaticlink'
7773
        ;;
7774 19 jeremybenn
      *)
7775 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7776 784 jeremybenn
        *Sun\ F* | *Sun*Fortran*)
7777
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7778
          lt_prog_compiler_pic='-KPIC'
7779
          lt_prog_compiler_static='-Bstatic'
7780
          lt_prog_compiler_wl=''
7781
          ;;
7782 19 jeremybenn
        *Sun\ C*)
7783
          # Sun C 5.9
7784
          lt_prog_compiler_pic='-KPIC'
7785
          lt_prog_compiler_static='-Bstatic'
7786
          lt_prog_compiler_wl='-Wl,'
7787
          ;;
7788
        esac
7789
        ;;
7790
      esac
7791
      ;;
7792
 
7793 82 jeremybenn
    newsos6)
7794
      lt_prog_compiler_pic='-KPIC'
7795
      lt_prog_compiler_static='-Bstatic'
7796
      ;;
7797
 
7798
    *nto* | *qnx*)
7799
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7800
      # it will coredump.
7801
      lt_prog_compiler_pic='-fPIC -shared'
7802
      ;;
7803
 
7804 19 jeremybenn
    osf3* | osf4* | osf5*)
7805
      lt_prog_compiler_wl='-Wl,'
7806
      # All OSF/1 code is PIC.
7807
      lt_prog_compiler_static='-non_shared'
7808
      ;;
7809
 
7810
    rdos*)
7811
      lt_prog_compiler_static='-non_shared'
7812
      ;;
7813
 
7814
    solaris*)
7815
      lt_prog_compiler_pic='-KPIC'
7816
      lt_prog_compiler_static='-Bstatic'
7817
      case $cc_basename in
7818 784 jeremybenn
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7819 19 jeremybenn
        lt_prog_compiler_wl='-Qoption ld ';;
7820
      *)
7821
        lt_prog_compiler_wl='-Wl,';;
7822
      esac
7823
      ;;
7824
 
7825
    sunos4*)
7826
      lt_prog_compiler_wl='-Qoption ld '
7827
      lt_prog_compiler_pic='-PIC'
7828
      lt_prog_compiler_static='-Bstatic'
7829
      ;;
7830
 
7831
    sysv4 | sysv4.2uw2* | sysv4.3*)
7832
      lt_prog_compiler_wl='-Wl,'
7833
      lt_prog_compiler_pic='-KPIC'
7834
      lt_prog_compiler_static='-Bstatic'
7835
      ;;
7836
 
7837
    sysv4*MP*)
7838
      if test -d /usr/nec ;then
7839
        lt_prog_compiler_pic='-Kconform_pic'
7840
        lt_prog_compiler_static='-Bstatic'
7841
      fi
7842
      ;;
7843
 
7844
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7845
      lt_prog_compiler_wl='-Wl,'
7846
      lt_prog_compiler_pic='-KPIC'
7847
      lt_prog_compiler_static='-Bstatic'
7848
      ;;
7849
 
7850
    unicos*)
7851
      lt_prog_compiler_wl='-Wl,'
7852
      lt_prog_compiler_can_build_shared=no
7853
      ;;
7854
 
7855
    uts4*)
7856
      lt_prog_compiler_pic='-pic'
7857
      lt_prog_compiler_static='-Bstatic'
7858
      ;;
7859
 
7860
    *)
7861
      lt_prog_compiler_can_build_shared=no
7862
      ;;
7863
    esac
7864
  fi
7865
 
7866 82 jeremybenn
case $host_os in
7867
  # For platforms which do not support PIC, -DPIC is meaningless:
7868
  *djgpp*)
7869
    lt_prog_compiler_pic=
7870
    ;;
7871
  *)
7872
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7873
    ;;
7874
esac
7875 19 jeremybenn
 
7876 784 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7877
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7878
if ${lt_cv_prog_compiler_pic+:} false; then :
7879
  $as_echo_n "(cached) " >&6
7880
else
7881
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7882
fi
7883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7884
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7885
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7886 82 jeremybenn
 
7887 19 jeremybenn
#
7888
# Check to make sure the PIC flag actually works.
7889
#
7890
if test -n "$lt_prog_compiler_pic"; then
7891 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7892 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7893 625 jeremybenn
if ${lt_cv_prog_compiler_pic_works+:} false; then :
7894 82 jeremybenn
  $as_echo_n "(cached) " >&6
7895 19 jeremybenn
else
7896 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7897
   ac_outfile=conftest.$ac_objext
7898 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7899
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7900
   # Insert the option either (1) after the last *FLAGS variable, or
7901
   # (2) before a word containing "conftest.", or (3) at the end.
7902
   # Note that $ac_compile itself does not contain backslashes and begins
7903
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7904
   # The option is referenced via a variable to avoid confusing sed.
7905
   lt_compile=`echo "$ac_compile" | $SED \
7906
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7907
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7908
   -e 's:$: $lt_compiler_flag:'`
7909 784 jeremybenn
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7910 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7911
   ac_status=$?
7912
   cat conftest.err >&5
7913 784 jeremybenn
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7915
     # The compiler can only warn and ignore the option if not recognized
7916
     # So say no if there are warnings other than the usual output.
7917 784 jeremybenn
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7918 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7919
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7920 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7921 19 jeremybenn
     fi
7922
   fi
7923 82 jeremybenn
   $RM conftest*
7924 19 jeremybenn
 
7925
fi
7926 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7927 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7928 19 jeremybenn
 
7929 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7930 19 jeremybenn
    case $lt_prog_compiler_pic in
7931
     "" | " "*) ;;
7932
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7933
     esac
7934
else
7935
    lt_prog_compiler_pic=
7936
     lt_prog_compiler_can_build_shared=no
7937
fi
7938
 
7939
fi
7940
 
7941 82 jeremybenn
 
7942
 
7943
 
7944
 
7945
 
7946 784 jeremybenn
 
7947
 
7948
 
7949
 
7950
 
7951 19 jeremybenn
#
7952
# Check to make sure the static flag actually works.
7953
#
7954
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7955 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7956 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7957 625 jeremybenn
if ${lt_cv_prog_compiler_static_works+:} false; then :
7958 82 jeremybenn
  $as_echo_n "(cached) " >&6
7959 19 jeremybenn
else
7960 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7961 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7962
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7963
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7964
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7965
     # The linker can only warn and ignore the option if not recognized
7966
     # So say no if there are warnings
7967
     if test -s conftest.err; then
7968
       # Append any errors to the config.log.
7969
       cat conftest.err 1>&5
7970 784 jeremybenn
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7971 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7972
       if diff conftest.exp conftest.er2 >/dev/null; then
7973 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7974 19 jeremybenn
       fi
7975
     else
7976 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7977 19 jeremybenn
     fi
7978
   fi
7979 82 jeremybenn
   $RM -r conftest*
7980 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7981
 
7982
fi
7983 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7984 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7985 19 jeremybenn
 
7986 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7987 19 jeremybenn
    :
7988
else
7989
    lt_prog_compiler_static=
7990
fi
7991
 
7992
 
7993 82 jeremybenn
 
7994
 
7995
 
7996
 
7997
 
7998 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7999 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8000 625 jeremybenn
if ${lt_cv_prog_compiler_c_o+:} false; then :
8001 82 jeremybenn
  $as_echo_n "(cached) " >&6
8002 19 jeremybenn
else
8003
  lt_cv_prog_compiler_c_o=no
8004 82 jeremybenn
   $RM -r conftest 2>/dev/null
8005 19 jeremybenn
   mkdir conftest
8006
   cd conftest
8007
   mkdir out
8008
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8009
 
8010
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8011
   # Insert the option either (1) after the last *FLAGS variable, or
8012
   # (2) before a word containing "conftest.", or (3) at the end.
8013
   # Note that $ac_compile itself does not contain backslashes and begins
8014
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8015
   lt_compile=`echo "$ac_compile" | $SED \
8016
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8017
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8018
   -e 's:$: $lt_compiler_flag:'`
8019 784 jeremybenn
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8020 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
8021
   ac_status=$?
8022
   cat out/conftest.err >&5
8023 784 jeremybenn
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8025
   then
8026
     # The compiler can only warn and ignore the option if not recognized
8027
     # So say no if there are warnings
8028 784 jeremybenn
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8029 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8030
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8031
       lt_cv_prog_compiler_c_o=yes
8032
     fi
8033
   fi
8034
   chmod u+w . 2>&5
8035 82 jeremybenn
   $RM conftest*
8036 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
8037
   # template instantiation
8038 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8039
   $RM out/* && rmdir out
8040 19 jeremybenn
   cd ..
8041 82 jeremybenn
   $RM -r conftest
8042
   $RM conftest*
8043 19 jeremybenn
 
8044
fi
8045 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8046 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8047 19 jeremybenn
 
8048
 
8049 82 jeremybenn
 
8050
 
8051
 
8052
 
8053 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8054 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8055 625 jeremybenn
if ${lt_cv_prog_compiler_c_o+:} false; then :
8056 82 jeremybenn
  $as_echo_n "(cached) " >&6
8057
else
8058
  lt_cv_prog_compiler_c_o=no
8059
   $RM -r conftest 2>/dev/null
8060
   mkdir conftest
8061
   cd conftest
8062
   mkdir out
8063
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8064
 
8065
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8066
   # Insert the option either (1) after the last *FLAGS variable, or
8067
   # (2) before a word containing "conftest.", or (3) at the end.
8068
   # Note that $ac_compile itself does not contain backslashes and begins
8069
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8070
   lt_compile=`echo "$ac_compile" | $SED \
8071
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8072
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8073
   -e 's:$: $lt_compiler_flag:'`
8074 784 jeremybenn
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8075 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
8076
   ac_status=$?
8077
   cat out/conftest.err >&5
8078 784 jeremybenn
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8080
   then
8081
     # The compiler can only warn and ignore the option if not recognized
8082
     # So say no if there are warnings
8083 784 jeremybenn
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8084 82 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8085
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8086
       lt_cv_prog_compiler_c_o=yes
8087
     fi
8088
   fi
8089
   chmod u+w . 2>&5
8090
   $RM conftest*
8091
   # SGI C++ compiler will create directory out/ii_files/ for
8092
   # template instantiation
8093
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8094
   $RM out/* && rmdir out
8095
   cd ..
8096
   $RM -r conftest
8097
   $RM conftest*
8098
 
8099
fi
8100 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8101 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8102
 
8103
 
8104
 
8105
 
8106 19 jeremybenn
hard_links="nottested"
8107
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8108
  # do not overwrite the value of need_locks provided by the user
8109 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8110 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
8111 19 jeremybenn
  hard_links=yes
8112 82 jeremybenn
  $RM conftest*
8113 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8114
  touch conftest.a
8115
  ln conftest.a conftest.b 2>&5 || hard_links=no
8116
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8117 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8118 82 jeremybenn
$as_echo "$hard_links" >&6; }
8119 19 jeremybenn
  if test "$hard_links" = no; then
8120 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8121 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8122 19 jeremybenn
    need_locks=warn
8123
  fi
8124
else
8125
  need_locks=no
8126
fi
8127
 
8128
 
8129 82 jeremybenn
 
8130
 
8131
 
8132
 
8133 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8134 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8135
 
8136 19 jeremybenn
  runpath_var=
8137
  allow_undefined_flag=
8138 82 jeremybenn
  always_export_symbols=no
8139 19 jeremybenn
  archive_cmds=
8140
  archive_expsym_cmds=
8141 82 jeremybenn
  compiler_needs_object=no
8142
  enable_shared_with_static_runtimes=no
8143 19 jeremybenn
  export_dynamic_flag_spec=
8144 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8145
  hardcode_automatic=no
8146
  hardcode_direct=no
8147
  hardcode_direct_absolute=no
8148 19 jeremybenn
  hardcode_libdir_flag_spec=
8149
  hardcode_libdir_flag_spec_ld=
8150
  hardcode_libdir_separator=
8151
  hardcode_minus_L=no
8152
  hardcode_shlibpath_var=unsupported
8153 82 jeremybenn
  inherit_rpath=no
8154 19 jeremybenn
  link_all_deplibs=unknown
8155
  module_cmds=
8156
  module_expsym_cmds=
8157 82 jeremybenn
  old_archive_from_new_cmds=
8158
  old_archive_from_expsyms_cmds=
8159
  thread_safe_flag_spec=
8160
  whole_archive_flag_spec=
8161 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
8162
  # included in the symbol list
8163
  include_expsyms=
8164
  # exclude_expsyms can be an extended regexp of symbols to exclude
8165
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8166
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8167
  # as well as any symbol that contains `d'.
8168 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8169 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8170
  # platforms (ab)use it in PIC code, but their linkers get confused if
8171
  # the symbol is explicitly referenced.  Since portable code cannot
8172
  # rely on this symbol name, it's probably fine to never include it in
8173
  # preloaded symbol tables.
8174 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
8175 19 jeremybenn
  extract_expsyms_cmds=
8176
 
8177
  case $host_os in
8178 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
8179 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8180
    # When not using gcc, we currently assume that we are using
8181
    # Microsoft Visual C++.
8182
    if test "$GCC" != yes; then
8183
      with_gnu_ld=no
8184
    fi
8185
    ;;
8186
  interix*)
8187
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8188
    with_gnu_ld=yes
8189
    ;;
8190
  openbsd*)
8191
    with_gnu_ld=no
8192
    ;;
8193
  esac
8194
 
8195
  ld_shlibs=yes
8196 784 jeremybenn
 
8197
  # On some targets, GNU ld is compatible enough with the native linker
8198
  # that we're better off using the native interface for both.
8199
  lt_use_gnu_ld_interface=no
8200 19 jeremybenn
  if test "$with_gnu_ld" = yes; then
8201 784 jeremybenn
    case $host_os in
8202
      aix*)
8203
        # The AIX port of GNU ld has always aspired to compatibility
8204
        # with the native linker.  However, as the warning in the GNU ld
8205
        # block says, versions before 2.19.5* couldn't really create working
8206
        # shared libraries, regardless of the interface used.
8207
        case `$LD -v 2>&1` in
8208
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8209
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8210
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8211
          *)
8212
            lt_use_gnu_ld_interface=yes
8213
            ;;
8214
        esac
8215
        ;;
8216
      *)
8217
        lt_use_gnu_ld_interface=yes
8218
        ;;
8219
    esac
8220
  fi
8221
 
8222
  if test "$lt_use_gnu_ld_interface" = yes; then
8223 19 jeremybenn
    # If archive_cmds runs LD, not CC, wlarc should be empty
8224
    wlarc='${wl}'
8225
 
8226
    # Set some defaults for GNU ld with shared library support. These
8227
    # are reset later if shared libraries are not supported. Putting them
8228
    # here allows them to be overridden if necessary.
8229
    runpath_var=LD_RUN_PATH
8230 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8231 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
8232
    # ancient GNU ld didn't support --whole-archive et. al.
8233 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8234
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8235
    else
8236
      whole_archive_flag_spec=
8237 19 jeremybenn
    fi
8238
    supports_anon_versioning=no
8239 82 jeremybenn
    case `$LD -v 2>&1` in
8240 784 jeremybenn
      *GNU\ gold*) supports_anon_versioning=yes ;;
8241 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8242
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8243
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8244
      *\ 2.11.*) ;; # other 2.11 versions
8245
      *) supports_anon_versioning=yes ;;
8246
    esac
8247
 
8248
    # See if GNU ld supports shared libraries.
8249
    case $host_os in
8250 82 jeremybenn
    aix[3-9]*)
8251 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
8252
      if test "$host_cpu" != ia64; then
8253
        ld_shlibs=no
8254 82 jeremybenn
        cat <<_LT_EOF 1>&2
8255 19 jeremybenn
 
8256 784 jeremybenn
*** Warning: the GNU linker, at least up to release 2.19, is reported
8257 19 jeremybenn
*** to be unable to reliably create shared libraries on AIX.
8258
*** Therefore, libtool is disabling shared libraries support.  If you
8259 784 jeremybenn
*** really care for shared libraries, you may want to install binutils
8260
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8261
*** You will then need to restart the configuration process.
8262 19 jeremybenn
 
8263 82 jeremybenn
_LT_EOF
8264 19 jeremybenn
      fi
8265
      ;;
8266
 
8267
    amigaos*)
8268 82 jeremybenn
      case $host_cpu in
8269
      powerpc)
8270
            # see comment about AmigaOS4 .so support
8271
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272
            archive_expsym_cmds=''
8273
        ;;
8274
      m68k)
8275
            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)'
8276
            hardcode_libdir_flag_spec='-L$libdir'
8277
            hardcode_minus_L=yes
8278
        ;;
8279
      esac
8280 19 jeremybenn
      ;;
8281
 
8282
    beos*)
8283 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8284 19 jeremybenn
        allow_undefined_flag=unsupported
8285
        # Joseph Beckenbach  says some releases of gcc
8286
        # support --undefined.  This deserves some investigation.  FIXME
8287
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288
      else
8289
        ld_shlibs=no
8290
      fi
8291
      ;;
8292
 
8293 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8294
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8295 19 jeremybenn
      # as there is no search path for DLLs.
8296
      hardcode_libdir_flag_spec='-L$libdir'
8297 784 jeremybenn
      export_dynamic_flag_spec='${wl}--export-all-symbols'
8298 19 jeremybenn
      allow_undefined_flag=unsupported
8299
      always_export_symbols=no
8300
      enable_shared_with_static_runtimes=yes
8301 784 jeremybenn
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8302
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8303 19 jeremybenn
 
8304 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8305 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8306
        # If the export-symbols file already is a .def file (1st line
8307
        # is EXPORTS), use it as is; otherwise, prepend...
8308
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8309
          cp $export_symbols $output_objdir/$soname.def;
8310
        else
8311
          echo EXPORTS > $output_objdir/$soname.def;
8312
          cat $export_symbols >> $output_objdir/$soname.def;
8313
        fi~
8314
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8315
      else
8316
        ld_shlibs=no
8317
      fi
8318
      ;;
8319
 
8320 784 jeremybenn
    haiku*)
8321
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8322
      link_all_deplibs=yes
8323
      ;;
8324
 
8325 19 jeremybenn
    interix[3-9]*)
8326
      hardcode_direct=no
8327
      hardcode_shlibpath_var=no
8328
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8329
      export_dynamic_flag_spec='${wl}-E'
8330
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8331
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8332
      # default) and relocated if they conflict, which is a slow very memory
8333
      # consuming and fragmenting process.  To avoid this, we pick a random,
8334
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8335
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8336
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8337
      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'
8338
      ;;
8339
 
8340 784 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8341 82 jeremybenn
      tmp_diet=no
8342
      if test "$host_os" = linux-dietlibc; then
8343
        case $cc_basename in
8344
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8345
        esac
8346
      fi
8347
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8348
         && test "$tmp_diet" = no
8349
      then
8350 784 jeremybenn
        tmp_addflag=' $pic_flag'
8351 82 jeremybenn
        tmp_sharedflag='-shared'
8352 19 jeremybenn
        case $cc_basename,$host_cpu in
8353 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
8354 784 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8355 19 jeremybenn
          tmp_addflag=' $pic_flag'
8356
          ;;
8357 784 jeremybenn
        pgf77* | pgf90* | pgf95* | pgfortran*)
8358
                                        # Portland Group f77 and f90 compilers
8359
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8360 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
8361 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8362 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
8363
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8364
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8365
        ifc* | ifort*)                  # Intel Fortran compiler
8366
          tmp_addflag=' -nofor_main' ;;
8367 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
8368
          whole_archive_flag_spec=
8369
          tmp_sharedflag='--shared' ;;
8370 784 jeremybenn
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8371 82 jeremybenn
          tmp_sharedflag='-qmkshrobj'
8372
          tmp_addflag= ;;
8373 784 jeremybenn
        nvcc*)  # Cuda Compiler Driver 2.2
8374
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8375
          compiler_needs_object=yes
8376
          ;;
8377 19 jeremybenn
        esac
8378
        case `$CC -V 2>&1 | sed 5q` in
8379
        *Sun\ C*)                       # Sun C 5.9
8380 784 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8381 82 jeremybenn
          compiler_needs_object=yes
8382 19 jeremybenn
          tmp_sharedflag='-G' ;;
8383
        *Sun\ F*)                       # Sun Fortran 8.3
8384
          tmp_sharedflag='-G' ;;
8385
        esac
8386
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387
 
8388 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
8389
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8390
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8391
            echo "local: *; };" >> $output_objdir/$libname.ver~
8392
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8393
        fi
8394
 
8395
        case $cc_basename in
8396 784 jeremybenn
        xlf* | bgf* | bgxlf* | mpixlf*)
8397 82 jeremybenn
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8398
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8399
          hardcode_libdir_flag_spec=
8400
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8401 784 jeremybenn
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8402 82 jeremybenn
          if test "x$supports_anon_versioning" = xyes; then
8403
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8404
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8405
              echo "local: *; };" >> $output_objdir/$libname.ver~
8406 784 jeremybenn
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8407 82 jeremybenn
          fi
8408
          ;;
8409
        esac
8410 19 jeremybenn
      else
8411 82 jeremybenn
        ld_shlibs=no
8412 19 jeremybenn
      fi
8413
      ;;
8414
 
8415 784 jeremybenn
    netbsd*)
8416 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8417 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8418
        wlarc=
8419
      else
8420 784 jeremybenn
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8422 19 jeremybenn
      fi
8423
      ;;
8424
 
8425
    solaris*)
8426 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8427 19 jeremybenn
        ld_shlibs=no
8428 82 jeremybenn
        cat <<_LT_EOF 1>&2
8429 19 jeremybenn
 
8430
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8431
*** create shared libraries on Solaris systems.  Therefore, libtool
8432
*** is disabling shared libraries support.  We urge you to upgrade GNU
8433
*** binutils to release 2.9.1 or newer.  Another option is to modify
8434
*** your PATH or compiler configuration so that the native linker is
8435
*** used, and then restart.
8436
 
8437 82 jeremybenn
_LT_EOF
8438
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8439 784 jeremybenn
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8440
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8441 19 jeremybenn
      else
8442
        ld_shlibs=no
8443
      fi
8444
      ;;
8445
 
8446
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8447
      case `$LD -v 2>&1` in
8448
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8449
        ld_shlibs=no
8450
        cat <<_LT_EOF 1>&2
8451
 
8452
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8453
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8454
*** is disabling shared libraries support.  We urge you to upgrade GNU
8455
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8456
*** your PATH or compiler configuration so that the native linker is
8457
*** used, and then restart.
8458
 
8459
_LT_EOF
8460
        ;;
8461
        *)
8462 82 jeremybenn
          # For security reasons, it is highly recommended that you always
8463
          # use absolute paths for naming shared libraries, and exclude the
8464
          # DT_RUNPATH tag from executables and libraries.  But doing so
8465
          # requires that you compile everything twice, which is a pain.
8466
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8467
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8468
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8469
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8470 19 jeremybenn
          else
8471
            ld_shlibs=no
8472
          fi
8473
        ;;
8474
      esac
8475
      ;;
8476
 
8477
    sunos4*)
8478
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8479
      wlarc=
8480
      hardcode_direct=yes
8481
      hardcode_shlibpath_var=no
8482
      ;;
8483
 
8484
    *)
8485 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8486 784 jeremybenn
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8487
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8488 19 jeremybenn
      else
8489
        ld_shlibs=no
8490
      fi
8491
      ;;
8492
    esac
8493
 
8494
    if test "$ld_shlibs" = no; then
8495
      runpath_var=
8496
      hardcode_libdir_flag_spec=
8497
      export_dynamic_flag_spec=
8498
      whole_archive_flag_spec=
8499
    fi
8500
  else
8501
    # PORTME fill in a description of your system's linker (not GNU ld)
8502
    case $host_os in
8503
    aix3*)
8504
      allow_undefined_flag=unsupported
8505
      always_export_symbols=yes
8506
      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'
8507
      # Note: this linker hardcodes the directories in LIBPATH if there
8508
      # are no directories specified by -L.
8509
      hardcode_minus_L=yes
8510
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8511
        # Neither direct hardcoding nor static linking is supported with a
8512
        # broken collect2.
8513
        hardcode_direct=unsupported
8514
      fi
8515
      ;;
8516
 
8517 82 jeremybenn
    aix[4-9]*)
8518 19 jeremybenn
      if test "$host_cpu" = ia64; then
8519
        # On IA64, the linker does run time linking by default, so we don't
8520
        # have to do anything special.
8521
        aix_use_runtimelinking=no
8522
        exp_sym_flag='-Bexport'
8523
        no_entry_flag=""
8524
      else
8525
        # If we're using GNU nm, then we don't want the "-C" option.
8526
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8527 784 jeremybenn
        # Also, AIX nm treats weak defined symbols like other global
8528
        # defined symbols, whereas GNU nm marks them as "W".
8529 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8530 784 jeremybenn
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8531 19 jeremybenn
        else
8532 82 jeremybenn
          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'
8533 19 jeremybenn
        fi
8534
        aix_use_runtimelinking=no
8535
 
8536
        # Test if we are trying to use run time linking or normal
8537
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8538
        # need to do runtime linking.
8539 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8540 19 jeremybenn
          for ld_flag in $LDFLAGS; do
8541 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8542
            aix_use_runtimelinking=yes
8543
            break
8544
          fi
8545 19 jeremybenn
          done
8546
          ;;
8547
        esac
8548
 
8549
        exp_sym_flag='-bexport'
8550
        no_entry_flag='-bnoentry'
8551
      fi
8552
 
8553
      # When large executables or shared objects are built, AIX ld can
8554
      # have problems creating the table of contents.  If linking a library
8555
      # or program results in "error TOC overflow" add -mminimal-toc to
8556
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8557
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8558
 
8559
      archive_cmds=''
8560
      hardcode_direct=yes
8561 82 jeremybenn
      hardcode_direct_absolute=yes
8562 19 jeremybenn
      hardcode_libdir_separator=':'
8563
      link_all_deplibs=yes
8564 82 jeremybenn
      file_list_spec='${wl}-f,'
8565 19 jeremybenn
 
8566
      if test "$GCC" = yes; then
8567
        case $host_os in aix4.[012]|aix4.[012].*)
8568
        # We only want to do this on AIX 4.2 and lower, the check
8569
        # below for broken collect2 doesn't work under 4.3+
8570
          collect2name=`${CC} -print-prog-name=collect2`
8571 82 jeremybenn
          if test -f "$collect2name" &&
8572
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8573 19 jeremybenn
          then
8574 82 jeremybenn
          # We have reworked collect2
8575
          :
8576 19 jeremybenn
          else
8577 82 jeremybenn
          # We have old collect2
8578
          hardcode_direct=unsupported
8579
          # It fails to find uninstalled libraries when the uninstalled
8580
          # path is not listed in the libpath.  Setting hardcode_minus_L
8581
          # to unsupported forces relinking
8582
          hardcode_minus_L=yes
8583
          hardcode_libdir_flag_spec='-L$libdir'
8584
          hardcode_libdir_separator=
8585 19 jeremybenn
          fi
8586
          ;;
8587
        esac
8588
        shared_flag='-shared'
8589
        if test "$aix_use_runtimelinking" = yes; then
8590
          shared_flag="$shared_flag "'${wl}-G'
8591
        fi
8592
      else
8593
        # not using gcc
8594
        if test "$host_cpu" = ia64; then
8595 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8596
        # chokes on -Wl,-G. The following line is correct:
8597 19 jeremybenn
          shared_flag='-G'
8598
        else
8599
          if test "$aix_use_runtimelinking" = yes; then
8600
            shared_flag='${wl}-G'
8601
          else
8602
            shared_flag='${wl}-bM:SRE'
8603
          fi
8604
        fi
8605
      fi
8606
 
8607 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8608 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8609
      # underscore (_), so it is better to generate a list of symbols to export.
8610
      always_export_symbols=yes
8611
      if test "$aix_use_runtimelinking" = yes; then
8612
        # Warning - without using the other runtime loading flags (-brtl),
8613
        # -berok will link without error, but may produce a broken library.
8614
        allow_undefined_flag='-berok'
8615 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8616
        # empty executable.
8617 784 jeremybenn
        if test "${lt_cv_aix_libpath+set}" = set; then
8618
  aix_libpath=$lt_cv_aix_libpath
8619
else
8620
  if ${lt_cv_aix_libpath_+:} false; then :
8621
  $as_echo_n "(cached) " >&6
8622
else
8623
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 19 jeremybenn
/* end confdefs.h.  */
8625
 
8626
int
8627
main ()
8628
{
8629
 
8630
  ;
8631
  return 0;
8632
}
8633
_ACEOF
8634 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8635 19 jeremybenn
 
8636 784 jeremybenn
  lt_aix_libpath_sed='
8637
      /Import File Strings/,/^$/ {
8638
          /^0/ {
8639
              s/^0  *\([^ ]*\) *$/\1/
8640
              p
8641
          }
8642
      }'
8643
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8644
  # Check for a 64-bit object if we didn't find anything.
8645
  if test -z "$lt_cv_aix_libpath_"; then
8646
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8647
  fi
8648 19 jeremybenn
fi
8649 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8650
    conftest$ac_exeext conftest.$ac_ext
8651 784 jeremybenn
  if test -z "$lt_cv_aix_libpath_"; then
8652
    lt_cv_aix_libpath_="/usr/lib:/lib"
8653
  fi
8654 19 jeremybenn
 
8655 784 jeremybenn
fi
8656
 
8657
  aix_libpath=$lt_cv_aix_libpath_
8658
fi
8659
 
8660 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8661 784 jeremybenn
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8662 82 jeremybenn
      else
8663 19 jeremybenn
        if test "$host_cpu" = ia64; then
8664
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8665
          allow_undefined_flag="-z nodefs"
8666
          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"
8667
        else
8668 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8669
         # empty executable.
8670 784 jeremybenn
         if test "${lt_cv_aix_libpath+set}" = set; then
8671
  aix_libpath=$lt_cv_aix_libpath
8672
else
8673
  if ${lt_cv_aix_libpath_+:} false; then :
8674
  $as_echo_n "(cached) " >&6
8675
else
8676
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 19 jeremybenn
/* end confdefs.h.  */
8678
 
8679
int
8680
main ()
8681
{
8682
 
8683
  ;
8684
  return 0;
8685
}
8686
_ACEOF
8687 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8688 19 jeremybenn
 
8689 784 jeremybenn
  lt_aix_libpath_sed='
8690
      /Import File Strings/,/^$/ {
8691
          /^0/ {
8692
              s/^0  *\([^ ]*\) *$/\1/
8693
              p
8694
          }
8695
      }'
8696
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8697
  # Check for a 64-bit object if we didn't find anything.
8698
  if test -z "$lt_cv_aix_libpath_"; then
8699
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8700
  fi
8701 19 jeremybenn
fi
8702 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8703
    conftest$ac_exeext conftest.$ac_ext
8704 784 jeremybenn
  if test -z "$lt_cv_aix_libpath_"; then
8705
    lt_cv_aix_libpath_="/usr/lib:/lib"
8706
  fi
8707 19 jeremybenn
 
8708 784 jeremybenn
fi
8709
 
8710
  aix_libpath=$lt_cv_aix_libpath_
8711
fi
8712
 
8713 19 jeremybenn
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8714
          # Warning - without using the other run time loading flags,
8715
          # -berok will link without error, but may produce a broken library.
8716
          no_undefined_flag=' ${wl}-bernotok'
8717
          allow_undefined_flag=' ${wl}-berok'
8718 784 jeremybenn
          if test "$with_gnu_ld" = yes; then
8719
            # We only use this code for GNU lds that support --whole-archive.
8720
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8721
          else
8722
            # Exported symbols can be pulled into shared objects from archives
8723
            whole_archive_flag_spec='$convenience'
8724
          fi
8725 19 jeremybenn
          archive_cmds_need_lc=yes
8726
          # This is similar to how AIX traditionally builds its shared libraries.
8727
          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'
8728
        fi
8729
      fi
8730
      ;;
8731
 
8732
    amigaos*)
8733 82 jeremybenn
      case $host_cpu in
8734
      powerpc)
8735
            # see comment about AmigaOS4 .so support
8736
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737
            archive_expsym_cmds=''
8738
        ;;
8739
      m68k)
8740
            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)'
8741
            hardcode_libdir_flag_spec='-L$libdir'
8742
            hardcode_minus_L=yes
8743
        ;;
8744
      esac
8745 19 jeremybenn
      ;;
8746
 
8747
    bsdi[45]*)
8748
      export_dynamic_flag_spec=-rdynamic
8749
      ;;
8750
 
8751 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8752 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8753
      # Microsoft Visual C++.
8754
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8755
      # no search path for DLLs.
8756 784 jeremybenn
      case $cc_basename in
8757
      cl*)
8758
        # Native MSVC
8759
        hardcode_libdir_flag_spec=' '
8760
        allow_undefined_flag=unsupported
8761
        always_export_symbols=yes
8762
        file_list_spec='@'
8763
        # Tell ltmain to make .lib files, not .a files.
8764
        libext=lib
8765
        # Tell ltmain to make .dll files, not .so files.
8766
        shrext_cmds=".dll"
8767
        # FIXME: Setting linknames here is a bad hack.
8768
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8769
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8770
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8771
          else
8772
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8773
          fi~
8774
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8775
          linknames='
8776
        # The linker will not automatically build a static lib if we build a DLL.
8777
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8778
        enable_shared_with_static_runtimes=yes
8779
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8780
        # Don't use ranlib
8781
        old_postinstall_cmds='chmod 644 $oldlib'
8782
        postlink_cmds='lt_outputfile="@OUTPUT@"~
8783
          lt_tool_outputfile="@TOOL_OUTPUT@"~
8784
          case $lt_outputfile in
8785
            *.exe|*.EXE) ;;
8786
            *)
8787
              lt_outputfile="$lt_outputfile.exe"
8788
              lt_tool_outputfile="$lt_tool_outputfile.exe"
8789
              ;;
8790
          esac~
8791
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8792
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8793
            $RM "$lt_outputfile.manifest";
8794
          fi'
8795
        ;;
8796
      *)
8797
        # Assume MSVC wrapper
8798
        hardcode_libdir_flag_spec=' '
8799
        allow_undefined_flag=unsupported
8800
        # Tell ltmain to make .lib files, not .a files.
8801
        libext=lib
8802
        # Tell ltmain to make .dll files, not .so files.
8803
        shrext_cmds=".dll"
8804
        # FIXME: Setting linknames here is a bad hack.
8805
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8806
        # The linker will automatically build a .lib file if we build a DLL.
8807
        old_archive_from_new_cmds='true'
8808
        # FIXME: Should let the user specify the lib program.
8809
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8810
        enable_shared_with_static_runtimes=yes
8811
        ;;
8812
      esac
8813 19 jeremybenn
      ;;
8814
 
8815
    darwin* | rhapsody*)
8816 82 jeremybenn
 
8817
 
8818
  archive_cmds_need_lc=no
8819
  hardcode_direct=no
8820
  hardcode_automatic=yes
8821
  hardcode_shlibpath_var=unsupported
8822 784 jeremybenn
  if test "$lt_cv_ld_force_load" = "yes"; then
8823
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8824
  else
8825
    whole_archive_flag_spec=''
8826
  fi
8827 82 jeremybenn
  link_all_deplibs=yes
8828
  allow_undefined_flag="$_lt_dar_allow_undefined"
8829
  case $cc_basename in
8830
     ifort*) _lt_dar_can_shared=yes ;;
8831
     *) _lt_dar_can_shared=$GCC ;;
8832
  esac
8833
  if test "$_lt_dar_can_shared" = "yes"; then
8834 784 jeremybenn
    output_verbose_link_cmd=func_echo_all
8835 82 jeremybenn
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8836
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8837
    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}"
8838
    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}"
8839
 
8840
  else
8841
  ld_shlibs=no
8842
  fi
8843
 
8844 19 jeremybenn
      ;;
8845
 
8846
    dgux*)
8847
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848
      hardcode_libdir_flag_spec='-L$libdir'
8849
      hardcode_shlibpath_var=no
8850
      ;;
8851
 
8852
    freebsd1*)
8853
      ld_shlibs=no
8854
      ;;
8855
 
8856
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8857
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8858
    # does not break anything, and helps significantly (at the cost of a little
8859
    # extra space).
8860
    freebsd2.2*)
8861
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8862
      hardcode_libdir_flag_spec='-R$libdir'
8863
      hardcode_direct=yes
8864
      hardcode_shlibpath_var=no
8865
      ;;
8866
 
8867
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8868
    freebsd2*)
8869
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8870
      hardcode_direct=yes
8871
      hardcode_minus_L=yes
8872
      hardcode_shlibpath_var=no
8873
      ;;
8874
 
8875
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8876
    freebsd* | dragonfly*)
8877 784 jeremybenn
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8878 19 jeremybenn
      hardcode_libdir_flag_spec='-R$libdir'
8879
      hardcode_direct=yes
8880
      hardcode_shlibpath_var=no
8881
      ;;
8882
 
8883
    hpux9*)
8884
      if test "$GCC" = yes; then
8885 784 jeremybenn
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8886 19 jeremybenn
      else
8887 82 jeremybenn
        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'
8888 19 jeremybenn
      fi
8889
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8890
      hardcode_libdir_separator=:
8891
      hardcode_direct=yes
8892
 
8893
      # hardcode_minus_L: Not really in the search PATH,
8894
      # but as the default location of the library.
8895
      hardcode_minus_L=yes
8896
      export_dynamic_flag_spec='${wl}-E'
8897
      ;;
8898
 
8899
    hpux10*)
8900 784 jeremybenn
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8901
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8902 19 jeremybenn
      else
8903
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8904
      fi
8905
      if test "$with_gnu_ld" = no; then
8906
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8907 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8908 19 jeremybenn
        hardcode_libdir_separator=:
8909
        hardcode_direct=yes
8910 82 jeremybenn
        hardcode_direct_absolute=yes
8911 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8912
        # hardcode_minus_L: Not really in the search PATH,
8913
        # but as the default location of the library.
8914
        hardcode_minus_L=yes
8915
      fi
8916
      ;;
8917
 
8918
    hpux11*)
8919 784 jeremybenn
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8920 19 jeremybenn
        case $host_cpu in
8921
        hppa*64*)
8922
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8923
          ;;
8924
        ia64*)
8925 784 jeremybenn
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8926 19 jeremybenn
          ;;
8927
        *)
8928 784 jeremybenn
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8929 19 jeremybenn
          ;;
8930
        esac
8931
      else
8932
        case $host_cpu in
8933
        hppa*64*)
8934
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8935
          ;;
8936
        ia64*)
8937
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8938
          ;;
8939
        *)
8940 784 jeremybenn
 
8941
          # Older versions of the 11.00 compiler do not understand -b yet
8942
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8943
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8944
$as_echo_n "checking if $CC understands -b... " >&6; }
8945
if ${lt_cv_prog_compiler__b+:} false; then :
8946
  $as_echo_n "(cached) " >&6
8947
else
8948
  lt_cv_prog_compiler__b=no
8949
   save_LDFLAGS="$LDFLAGS"
8950
   LDFLAGS="$LDFLAGS -b"
8951
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8952
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8953
     # The linker can only warn and ignore the option if not recognized
8954
     # So say no if there are warnings
8955
     if test -s conftest.err; then
8956
       # Append any errors to the config.log.
8957
       cat conftest.err 1>&5
8958
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8959
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8960
       if diff conftest.exp conftest.er2 >/dev/null; then
8961
         lt_cv_prog_compiler__b=yes
8962
       fi
8963
     else
8964
       lt_cv_prog_compiler__b=yes
8965
     fi
8966
   fi
8967
   $RM -r conftest*
8968
   LDFLAGS="$save_LDFLAGS"
8969
 
8970
fi
8971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8972
$as_echo "$lt_cv_prog_compiler__b" >&6; }
8973
 
8974
if test x"$lt_cv_prog_compiler__b" = xyes; then
8975
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8976
else
8977
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8978
fi
8979
 
8980 19 jeremybenn
          ;;
8981
        esac
8982
      fi
8983
      if test "$with_gnu_ld" = no; then
8984
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8985
        hardcode_libdir_separator=:
8986
 
8987
        case $host_cpu in
8988
        hppa*64*|ia64*)
8989
          hardcode_direct=no
8990
          hardcode_shlibpath_var=no
8991
          ;;
8992
        *)
8993
          hardcode_direct=yes
8994 82 jeremybenn
          hardcode_direct_absolute=yes
8995 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8996
 
8997
          # hardcode_minus_L: Not really in the search PATH,
8998
          # but as the default location of the library.
8999
          hardcode_minus_L=yes
9000
          ;;
9001
        esac
9002
      fi
9003
      ;;
9004
 
9005
    irix5* | irix6* | nonstopux*)
9006
      if test "$GCC" = yes; then
9007 784 jeremybenn
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9008 82 jeremybenn
        # Try to use the -exported_symbol ld option, if it does not
9009
        # work, assume that -exports_file does not work either and
9010
        # implicitly export all symbols.
9011 784 jeremybenn
        # This should be the same for all languages, so no per-tag cache variable.
9012
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9013
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9014
if ${lt_cv_irix_exported_symbol+:} false; then :
9015
  $as_echo_n "(cached) " >&6
9016
else
9017
  save_LDFLAGS="$LDFLAGS"
9018
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9019
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 346 jeremybenn
/* end confdefs.h.  */
9021 784 jeremybenn
int foo (void) { return 0; }
9022 82 jeremybenn
_ACEOF
9023 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9024 784 jeremybenn
  lt_cv_irix_exported_symbol=yes
9025
else
9026
  lt_cv_irix_exported_symbol=no
9027 82 jeremybenn
fi
9028 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9029
    conftest$ac_exeext conftest.$ac_ext
9030 784 jeremybenn
           LDFLAGS="$save_LDFLAGS"
9031
fi
9032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9033
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9034
        if test "$lt_cv_irix_exported_symbol" = yes; then
9035
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9036
        fi
9037 19 jeremybenn
      else
9038 784 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9039
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9040 19 jeremybenn
      fi
9041 82 jeremybenn
      archive_cmds_need_lc='no'
9042 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9043
      hardcode_libdir_separator=:
9044 82 jeremybenn
      inherit_rpath=yes
9045 19 jeremybenn
      link_all_deplibs=yes
9046
      ;;
9047
 
9048 784 jeremybenn
    netbsd*)
9049 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9050 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9051
      else
9052
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9053
      fi
9054
      hardcode_libdir_flag_spec='-R$libdir'
9055
      hardcode_direct=yes
9056
      hardcode_shlibpath_var=no
9057
      ;;
9058
 
9059
    newsos6)
9060
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061
      hardcode_direct=yes
9062
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9063
      hardcode_libdir_separator=:
9064
      hardcode_shlibpath_var=no
9065
      ;;
9066
 
9067 82 jeremybenn
    *nto* | *qnx*)
9068
      ;;
9069
 
9070 19 jeremybenn
    openbsd*)
9071
      if test -f /usr/libexec/ld.so; then
9072
        hardcode_direct=yes
9073
        hardcode_shlibpath_var=no
9074 82 jeremybenn
        hardcode_direct_absolute=yes
9075
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9076 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9077
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9078
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9079
          export_dynamic_flag_spec='${wl}-E'
9080
        else
9081
          case $host_os in
9082
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9083
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9084
             hardcode_libdir_flag_spec='-R$libdir'
9085
             ;;
9086
           *)
9087
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9088
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9089
             ;;
9090
          esac
9091 82 jeremybenn
        fi
9092 19 jeremybenn
      else
9093
        ld_shlibs=no
9094
      fi
9095
      ;;
9096
 
9097
    os2*)
9098
      hardcode_libdir_flag_spec='-L$libdir'
9099
      hardcode_minus_L=yes
9100
      allow_undefined_flag=unsupported
9101 784 jeremybenn
      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'
9102 82 jeremybenn
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9103 19 jeremybenn
      ;;
9104
 
9105
    osf3*)
9106
      if test "$GCC" = yes; then
9107
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9108 784 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9109 19 jeremybenn
      else
9110
        allow_undefined_flag=' -expect_unresolved \*'
9111 784 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9112 19 jeremybenn
      fi
9113 82 jeremybenn
      archive_cmds_need_lc='no'
9114 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9115
      hardcode_libdir_separator=:
9116
      ;;
9117
 
9118
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9119
      if test "$GCC" = yes; then
9120
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9121 784 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9122 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9123
      else
9124
        allow_undefined_flag=' -expect_unresolved \*'
9125 784 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9126 82 jeremybenn
        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~
9127 784 jeremybenn
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9128 19 jeremybenn
 
9129
        # Both c and cxx compiler support -rpath directly
9130
        hardcode_libdir_flag_spec='-rpath $libdir'
9131
      fi
9132 82 jeremybenn
      archive_cmds_need_lc='no'
9133 19 jeremybenn
      hardcode_libdir_separator=:
9134
      ;;
9135
 
9136
    solaris*)
9137 82 jeremybenn
      no_undefined_flag=' -z defs'
9138 19 jeremybenn
      if test "$GCC" = yes; then
9139
        wlarc='${wl}'
9140 784 jeremybenn
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9141 82 jeremybenn
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9142 784 jeremybenn
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9143 19 jeremybenn
      else
9144 82 jeremybenn
        case `$CC -V 2>&1` in
9145
        *"Compilers 5.0"*)
9146
          wlarc=''
9147
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9148
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9149
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9150
          ;;
9151
        *)
9152
          wlarc='${wl}'
9153
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9154
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9155
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9156
          ;;
9157
        esac
9158 19 jeremybenn
      fi
9159
      hardcode_libdir_flag_spec='-R$libdir'
9160
      hardcode_shlibpath_var=no
9161
      case $host_os in
9162
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9163
      *)
9164
        # The compiler driver will combine and reorder linker options,
9165
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9166
        # but is careful enough not to reorder.
9167 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9168 19 jeremybenn
        if test "$GCC" = yes; then
9169
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9170
        else
9171
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9172
        fi
9173
        ;;
9174
      esac
9175
      link_all_deplibs=yes
9176
      ;;
9177
 
9178
    sunos4*)
9179
      if test "x$host_vendor" = xsequent; then
9180
        # Use $CC to link under sequent, because it throws in some extra .o
9181
        # files that make .init and .fini sections work.
9182
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9183
      else
9184
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9185
      fi
9186
      hardcode_libdir_flag_spec='-L$libdir'
9187
      hardcode_direct=yes
9188
      hardcode_minus_L=yes
9189
      hardcode_shlibpath_var=no
9190
      ;;
9191
 
9192
    sysv4)
9193
      case $host_vendor in
9194
        sni)
9195
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196
          hardcode_direct=yes # is this really true???
9197
        ;;
9198
        siemens)
9199
          ## LD is ld it makes a PLAMLIB
9200
          ## CC just makes a GrossModule.
9201
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9202
          reload_cmds='$CC -r -o $output$reload_objs'
9203
          hardcode_direct=no
9204
        ;;
9205
        motorola)
9206
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9207
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9208
        ;;
9209
      esac
9210
      runpath_var='LD_RUN_PATH'
9211
      hardcode_shlibpath_var=no
9212
      ;;
9213
 
9214
    sysv4.3*)
9215
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216
      hardcode_shlibpath_var=no
9217
      export_dynamic_flag_spec='-Bexport'
9218
      ;;
9219
 
9220
    sysv4*MP*)
9221
      if test -d /usr/nec; then
9222
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9223
        hardcode_shlibpath_var=no
9224
        runpath_var=LD_RUN_PATH
9225
        hardcode_runpath_var=yes
9226
        ld_shlibs=yes
9227
      fi
9228
      ;;
9229
 
9230
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9231
      no_undefined_flag='${wl}-z,text'
9232
      archive_cmds_need_lc=no
9233
      hardcode_shlibpath_var=no
9234
      runpath_var='LD_RUN_PATH'
9235
 
9236
      if test "$GCC" = yes; then
9237
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9238
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9239
      else
9240
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9242
      fi
9243
      ;;
9244
 
9245
    sysv5* | sco3.2v5* | sco5v6*)
9246
      # Note: We can NOT use -z defs as we might desire, because we do not
9247
      # link with -lc, and that would cause any symbols used from libc to
9248
      # always be unresolved, which means just about no library would
9249
      # ever link correctly.  If we're not using GNU ld we use -z text
9250
      # though, which does catch some bad symbols but isn't as heavy-handed
9251
      # as -z defs.
9252
      no_undefined_flag='${wl}-z,text'
9253
      allow_undefined_flag='${wl}-z,nodefs'
9254
      archive_cmds_need_lc=no
9255
      hardcode_shlibpath_var=no
9256 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9257 19 jeremybenn
      hardcode_libdir_separator=':'
9258
      link_all_deplibs=yes
9259
      export_dynamic_flag_spec='${wl}-Bexport'
9260
      runpath_var='LD_RUN_PATH'
9261
 
9262
      if test "$GCC" = yes; then
9263 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9264
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9265 19 jeremybenn
      else
9266 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9267
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9268 19 jeremybenn
      fi
9269
      ;;
9270
 
9271
    uts4*)
9272
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273
      hardcode_libdir_flag_spec='-L$libdir'
9274
      hardcode_shlibpath_var=no
9275
      ;;
9276
 
9277
    *)
9278
      ld_shlibs=no
9279
      ;;
9280
    esac
9281 82 jeremybenn
 
9282
    if test x$host_vendor = xsni; then
9283
      case $host in
9284
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9285
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9286
        ;;
9287
      esac
9288
    fi
9289 19 jeremybenn
  fi
9290
 
9291 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9292 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
9293 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
9294
 
9295 82 jeremybenn
with_gnu_ld=$with_gnu_ld
9296
 
9297
 
9298
 
9299
 
9300
 
9301
 
9302
 
9303
 
9304
 
9305
 
9306
 
9307
 
9308
 
9309
 
9310
 
9311 19 jeremybenn
#
9312
# Do we need to explicitly link libc?
9313
#
9314
case "x$archive_cmds_need_lc" in
9315
x|xyes)
9316
  # Assume -lc should be added
9317
  archive_cmds_need_lc=yes
9318
 
9319
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9320
    case $archive_cmds in
9321
    *'~'*)
9322
      # FIXME: we may have to deal with multi-command sequences.
9323
      ;;
9324
    '$CC '*)
9325
      # Test whether the compiler implicitly links with -lc since on some
9326
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9327
      # to ld, don't add -lc before -lgcc.
9328 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9329 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9330 784 jeremybenn
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9331
  $as_echo_n "(cached) " >&6
9332
else
9333
  $RM conftest*
9334
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9335 19 jeremybenn
 
9336 784 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9337 19 jeremybenn
  (eval $ac_compile) 2>&5
9338
  ac_status=$?
9339 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9340
  test $ac_status = 0; } 2>conftest.err; then
9341 784 jeremybenn
          soname=conftest
9342
          lib=conftest
9343
          libobjs=conftest.$ac_objext
9344
          deplibs=
9345
          wl=$lt_prog_compiler_wl
9346
          pic_flag=$lt_prog_compiler_pic
9347
          compiler_flags=-v
9348
          linker_flags=-v
9349
          verstring=
9350
          output_objdir=.
9351
          libname=conftest
9352
          lt_save_allow_undefined_flag=$allow_undefined_flag
9353
          allow_undefined_flag=
9354
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9355 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9356 19 jeremybenn
  ac_status=$?
9357 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9358
  test $ac_status = 0; }
9359 784 jeremybenn
          then
9360
            lt_cv_archive_cmds_need_lc=no
9361
          else
9362
            lt_cv_archive_cmds_need_lc=yes
9363
          fi
9364
          allow_undefined_flag=$lt_save_allow_undefined_flag
9365
        else
9366
          cat conftest.err 1>&5
9367
        fi
9368
        $RM conftest*
9369
 
9370
fi
9371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9372
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9373
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9374 19 jeremybenn
      ;;
9375
    esac
9376
  fi
9377
  ;;
9378
esac
9379
 
9380
 
9381 82 jeremybenn
 
9382
 
9383
 
9384
 
9385
 
9386
 
9387
 
9388
 
9389
 
9390
 
9391
 
9392
 
9393
 
9394
 
9395
 
9396
 
9397
 
9398
 
9399
 
9400
 
9401
 
9402
 
9403
 
9404
 
9405
 
9406
 
9407
 
9408
 
9409
 
9410
 
9411
 
9412
 
9413
 
9414
 
9415
 
9416
 
9417
 
9418
 
9419
 
9420
 
9421
 
9422
 
9423
 
9424
 
9425
 
9426
 
9427
 
9428
 
9429
 
9430
 
9431
 
9432
 
9433
 
9434
 
9435
 
9436
 
9437
 
9438
 
9439
 
9440
 
9441
 
9442
 
9443
 
9444
 
9445
 
9446
 
9447
 
9448
 
9449
 
9450
 
9451
 
9452
 
9453
 
9454
 
9455
 
9456
 
9457
 
9458
 
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9537 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9538
 
9539 19 jeremybenn
if test "$GCC" = yes; then
9540
  case $host_os in
9541
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9542
    *) lt_awk_arg="/^libraries:/" ;;
9543
  esac
9544 784 jeremybenn
  case $host_os in
9545
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9546
    *) lt_sed_strip_eq="s,=/,/,g" ;;
9547
  esac
9548
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9549
  case $lt_search_path_spec in
9550
  *\;*)
9551 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
9552
    # otherwise default to the standard path separator (i.e. ":") - it is
9553
    # assumed that no part of a normal pathname contains ";" but that should
9554
    # okay in the real world where ";" in dirpaths is itself problematic.
9555 784 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9556
    ;;
9557
  *)
9558
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9559
    ;;
9560
  esac
9561 19 jeremybenn
  # Ok, now we have the path, separated by spaces, we can step through it
9562
  # and add multilib dir if necessary.
9563
  lt_tmp_lt_search_path_spec=
9564
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9565
  for lt_sys_path in $lt_search_path_spec; do
9566
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9567
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9568
    else
9569
      test -d "$lt_sys_path" && \
9570
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9571
    fi
9572
  done
9573 784 jeremybenn
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9574 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
9575
  lt_foo="";
9576
  lt_count=0;
9577
  for (lt_i = NF; lt_i > 0; lt_i--) {
9578
    if ($lt_i != "" && $lt_i != ".") {
9579
      if ($lt_i == "..") {
9580
        lt_count++;
9581
      } else {
9582
        if (lt_count == 0) {
9583
          lt_foo="/" $lt_i lt_foo;
9584
        } else {
9585
          lt_count--;
9586
        }
9587
      }
9588
    }
9589
  }
9590
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9591
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9592
}'`
9593 784 jeremybenn
  # AWK program above erroneously prepends '/' to C:/dos/paths
9594
  # for these hosts.
9595
  case $host_os in
9596
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9597
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9598
  esac
9599
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9600 19 jeremybenn
else
9601
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9602
fi
9603 82 jeremybenn
library_names_spec=
9604
libname_spec='lib$name'
9605
soname_spec=
9606
shrext_cmds=".so"
9607
postinstall_cmds=
9608
postuninstall_cmds=
9609
finish_cmds=
9610
finish_eval=
9611
shlibpath_var=
9612
shlibpath_overrides_runpath=unknown
9613
version_type=none
9614
dynamic_linker="$host_os ld.so"
9615
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9616 19 jeremybenn
need_lib_prefix=unknown
9617
hardcode_into_libs=no
9618
 
9619
# when you set need_version to no, make sure it does not cause -set_version
9620
# flags to be left without arguments
9621
need_version=unknown
9622
 
9623
case $host_os in
9624
aix3*)
9625
  version_type=linux
9626
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9627
  shlibpath_var=LIBPATH
9628
 
9629
  # AIX 3 has no versioning support, so we append a major version to the name.
9630
  soname_spec='${libname}${release}${shared_ext}$major'
9631
  ;;
9632
 
9633 82 jeremybenn
aix[4-9]*)
9634 19 jeremybenn
  version_type=linux
9635
  need_lib_prefix=no
9636
  need_version=no
9637
  hardcode_into_libs=yes
9638
  if test "$host_cpu" = ia64; then
9639
    # AIX 5 supports IA64
9640
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9641
    shlibpath_var=LD_LIBRARY_PATH
9642
  else
9643
    # With GCC up to 2.95.x, collect2 would create an import file
9644
    # for dependence libraries.  The import file would start with
9645
    # the line `#! .'.  This would cause the generated library to
9646
    # depend on `.', always an invalid library.  This was fixed in
9647
    # development snapshots of GCC prior to 3.0.
9648
    case $host_os in
9649
      aix4 | aix4.[01] | aix4.[01].*)
9650
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9651
           echo ' yes '
9652 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9653 19 jeremybenn
        :
9654
      else
9655
        can_build_shared=no
9656
      fi
9657
      ;;
9658
    esac
9659
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9660
    # soname into executable. Probably we can add versioning support to
9661
    # collect2, so additional links can be useful in future.
9662
    if test "$aix_use_runtimelinking" = yes; then
9663
      # If using run time linking (on AIX 4.2 or later) use lib.so
9664
      # instead of lib.a to let people know that these are not
9665
      # typical AIX shared libraries.
9666
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667
    else
9668
      # We preserve .a as extension for shared libraries through AIX4.2
9669
      # and later when we are not doing run time linking.
9670
      library_names_spec='${libname}${release}.a $libname.a'
9671
      soname_spec='${libname}${release}${shared_ext}$major'
9672
    fi
9673
    shlibpath_var=LIBPATH
9674
  fi
9675
  ;;
9676
 
9677
amigaos*)
9678 82 jeremybenn
  case $host_cpu in
9679
  powerpc)
9680
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9681
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9682
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683
    ;;
9684
  m68k)
9685
    library_names_spec='$libname.ixlibrary $libname.a'
9686
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9687 784 jeremybenn
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9688 82 jeremybenn
    ;;
9689
  esac
9690 19 jeremybenn
  ;;
9691
 
9692
beos*)
9693
  library_names_spec='${libname}${shared_ext}'
9694
  dynamic_linker="$host_os ld.so"
9695
  shlibpath_var=LIBRARY_PATH
9696
  ;;
9697
 
9698
bsdi[45]*)
9699
  version_type=linux
9700
  need_version=no
9701
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702
  soname_spec='${libname}${release}${shared_ext}$major'
9703
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9704
  shlibpath_var=LD_LIBRARY_PATH
9705
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9706
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9707
  # the default ld.so.conf also contains /usr/contrib/lib and
9708
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9709
  # libtool to hard-code these into programs
9710
  ;;
9711
 
9712 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
9713 19 jeremybenn
  version_type=windows
9714
  shrext_cmds=".dll"
9715
  need_version=no
9716
  need_lib_prefix=no
9717
 
9718 784 jeremybenn
  case $GCC,$cc_basename in
9719
  yes,*)
9720
    # gcc
9721 19 jeremybenn
    library_names_spec='$libname.dll.a'
9722
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9723
    postinstall_cmds='base_file=`basename \${file}`~
9724 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9725 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
9726
      test -d \$dldir || mkdir -p \$dldir~
9727
      $install_prog $dir/$dlname \$dldir/$dlname~
9728 82 jeremybenn
      chmod a+x \$dldir/$dlname~
9729
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9730
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9731
      fi'
9732 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9733
      dlpath=$dir/\$dldll~
9734 82 jeremybenn
       $RM \$dlpath'
9735 19 jeremybenn
    shlibpath_overrides_runpath=yes
9736
 
9737
    case $host_os in
9738
    cygwin*)
9739
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9740
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9741 784 jeremybenn
 
9742
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9743 19 jeremybenn
      ;;
9744 82 jeremybenn
    mingw* | cegcc*)
9745 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
9746
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9747
      ;;
9748
    pw32*)
9749
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9750
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9751
      ;;
9752
    esac
9753 784 jeremybenn
    dynamic_linker='Win32 ld.exe'
9754 19 jeremybenn
    ;;
9755
 
9756 784 jeremybenn
  *,cl*)
9757
    # Native MSVC
9758
    libname_spec='$name'
9759
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9760
    library_names_spec='${libname}.dll.lib'
9761
 
9762
    case $build_os in
9763
    mingw*)
9764
      sys_lib_search_path_spec=
9765
      lt_save_ifs=$IFS
9766
      IFS=';'
9767
      for lt_path in $LIB
9768
      do
9769
        IFS=$lt_save_ifs
9770
        # Let DOS variable expansion print the short 8.3 style file name.
9771
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9772
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9773
      done
9774
      IFS=$lt_save_ifs
9775
      # Convert to MSYS style.
9776
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9777
      ;;
9778
    cygwin*)
9779
      # Convert to unix form, then to dos form, then back to unix form
9780
      # but this time dos style (no spaces!) so that the unix form looks
9781
      # like /cygdrive/c/PROGRA~1:/cygdr...
9782
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9783
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9784
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9785
      ;;
9786
    *)
9787
      sys_lib_search_path_spec="$LIB"
9788
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9789
        # It is most probably a Windows format PATH.
9790
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9791
      else
9792
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9793
      fi
9794
      # FIXME: find the short name or the path components, as spaces are
9795
      # common. (e.g. "Program Files" -> "PROGRA~1")
9796
      ;;
9797
    esac
9798
 
9799
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9800
    postinstall_cmds='base_file=`basename \${file}`~
9801
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9802
      dldir=$destdir/`dirname \$dlpath`~
9803
      test -d \$dldir || mkdir -p \$dldir~
9804
      $install_prog $dir/$dlname \$dldir/$dlname'
9805
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9806
      dlpath=$dir/\$dldll~
9807
       $RM \$dlpath'
9808
    shlibpath_overrides_runpath=yes
9809
    dynamic_linker='Win32 link.exe'
9810
    ;;
9811
 
9812 19 jeremybenn
  *)
9813 784 jeremybenn
    # Assume MSVC wrapper
9814 19 jeremybenn
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9815 784 jeremybenn
    dynamic_linker='Win32 ld.exe'
9816 19 jeremybenn
    ;;
9817
  esac
9818
  # FIXME: first we should search . and the directory the executable is in
9819
  shlibpath_var=PATH
9820
  ;;
9821
 
9822
darwin* | rhapsody*)
9823
  dynamic_linker="$host_os dyld"
9824
  version_type=darwin
9825
  need_lib_prefix=no
9826
  need_version=no
9827 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9828 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9829
  shlibpath_overrides_runpath=yes
9830
  shlibpath_var=DYLD_LIBRARY_PATH
9831
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9832
 
9833
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9834
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9835
  ;;
9836
 
9837
dgux*)
9838
  version_type=linux
9839
  need_lib_prefix=no
9840
  need_version=no
9841
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9842
  soname_spec='${libname}${release}${shared_ext}$major'
9843
  shlibpath_var=LD_LIBRARY_PATH
9844
  ;;
9845
 
9846
freebsd1*)
9847
  dynamic_linker=no
9848
  ;;
9849
 
9850
freebsd* | dragonfly*)
9851
  # DragonFly does not have aout.  When/if they implement a new
9852
  # versioning mechanism, adjust this.
9853
  if test -x /usr/bin/objformat; then
9854
    objformat=`/usr/bin/objformat`
9855
  else
9856
    case $host_os in
9857
    freebsd[123]*) objformat=aout ;;
9858
    *) objformat=elf ;;
9859
    esac
9860
  fi
9861
  version_type=freebsd-$objformat
9862
  case $version_type in
9863
    freebsd-elf*)
9864
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9865
      need_version=no
9866
      need_lib_prefix=no
9867
      ;;
9868
    freebsd-*)
9869
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9870
      need_version=yes
9871
      ;;
9872
  esac
9873
  shlibpath_var=LD_LIBRARY_PATH
9874
  case $host_os in
9875
  freebsd2*)
9876
    shlibpath_overrides_runpath=yes
9877
    ;;
9878
  freebsd3.[01]* | freebsdelf3.[01]*)
9879
    shlibpath_overrides_runpath=yes
9880
    hardcode_into_libs=yes
9881
    ;;
9882
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9883
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9884
    shlibpath_overrides_runpath=no
9885
    hardcode_into_libs=yes
9886
    ;;
9887
  *) # from 4.6 on, and DragonFly
9888
    shlibpath_overrides_runpath=yes
9889
    hardcode_into_libs=yes
9890
    ;;
9891
  esac
9892
  ;;
9893
 
9894
gnu*)
9895
  version_type=linux
9896
  need_lib_prefix=no
9897
  need_version=no
9898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9899
  soname_spec='${libname}${release}${shared_ext}$major'
9900
  shlibpath_var=LD_LIBRARY_PATH
9901
  hardcode_into_libs=yes
9902
  ;;
9903
 
9904 784 jeremybenn
haiku*)
9905
  version_type=linux
9906
  need_lib_prefix=no
9907
  need_version=no
9908
  dynamic_linker="$host_os runtime_loader"
9909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9910
  soname_spec='${libname}${release}${shared_ext}$major'
9911
  shlibpath_var=LIBRARY_PATH
9912
  shlibpath_overrides_runpath=yes
9913
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9914
  hardcode_into_libs=yes
9915
  ;;
9916
 
9917 19 jeremybenn
hpux9* | hpux10* | hpux11*)
9918
  # Give a soname corresponding to the major version so that dld.sl refuses to
9919
  # link against other versions.
9920
  version_type=sunos
9921
  need_lib_prefix=no
9922
  need_version=no
9923
  case $host_cpu in
9924
  ia64*)
9925
    shrext_cmds='.so'
9926
    hardcode_into_libs=yes
9927
    dynamic_linker="$host_os dld.so"
9928
    shlibpath_var=LD_LIBRARY_PATH
9929
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9930
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931
    soname_spec='${libname}${release}${shared_ext}$major'
9932
    if test "X$HPUX_IA64_MODE" = X32; then
9933
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9934
    else
9935
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9936
    fi
9937
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9938
    ;;
9939 82 jeremybenn
  hppa*64*)
9940 19 jeremybenn
    shrext_cmds='.sl'
9941 82 jeremybenn
    hardcode_into_libs=yes
9942 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9943 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9944
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9945
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946
    soname_spec='${libname}${release}${shared_ext}$major'
9947
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9948
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9949
    ;;
9950
  *)
9951
    shrext_cmds='.sl'
9952
    dynamic_linker="$host_os dld.sl"
9953 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9954
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9955
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956
    soname_spec='${libname}${release}${shared_ext}$major'
9957
    ;;
9958
  esac
9959 784 jeremybenn
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9960 19 jeremybenn
  postinstall_cmds='chmod 555 $lib'
9961 784 jeremybenn
  # or fails outright, so override atomically:
9962
  install_override_mode=555
9963 19 jeremybenn
  ;;
9964
 
9965
interix[3-9]*)
9966
  version_type=linux
9967
  need_lib_prefix=no
9968
  need_version=no
9969
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9970
  soname_spec='${libname}${release}${shared_ext}$major'
9971
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9972
  shlibpath_var=LD_LIBRARY_PATH
9973
  shlibpath_overrides_runpath=no
9974
  hardcode_into_libs=yes
9975
  ;;
9976
 
9977
irix5* | irix6* | nonstopux*)
9978
  case $host_os in
9979
    nonstopux*) version_type=nonstopux ;;
9980
    *)
9981
        if test "$lt_cv_prog_gnu_ld" = yes; then
9982
                version_type=linux
9983
        else
9984
                version_type=irix
9985
        fi ;;
9986
  esac
9987
  need_lib_prefix=no
9988
  need_version=no
9989
  soname_spec='${libname}${release}${shared_ext}$major'
9990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9991
  case $host_os in
9992
  irix5* | nonstopux*)
9993
    libsuff= shlibsuff=
9994
    ;;
9995
  *)
9996
    case $LD in # libtool.m4 will add one of these switches to LD
9997
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9998
      libsuff= shlibsuff= libmagic=32-bit;;
9999
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10000
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10001
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10002
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10003
    *) libsuff= shlibsuff= libmagic=never-match;;
10004
    esac
10005
    ;;
10006
  esac
10007
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10008
  shlibpath_overrides_runpath=no
10009
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10010
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10011
  hardcode_into_libs=yes
10012
  ;;
10013
 
10014
# No shared lib support for Linux oldld, aout, or coff.
10015
linux*oldld* | linux*aout* | linux*coff*)
10016
  dynamic_linker=no
10017
  ;;
10018
 
10019
# This must be Linux ELF.
10020 784 jeremybenn
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10021 19 jeremybenn
  version_type=linux
10022
  need_lib_prefix=no
10023
  need_version=no
10024
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025
  soname_spec='${libname}${release}${shared_ext}$major'
10026
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10027
  shlibpath_var=LD_LIBRARY_PATH
10028
  shlibpath_overrides_runpath=no
10029 784 jeremybenn
 
10030 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
10031 784 jeremybenn
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10032
  $as_echo_n "(cached) " >&6
10033
else
10034
  lt_cv_shlibpath_overrides_runpath=no
10035
    save_LDFLAGS=$LDFLAGS
10036
    save_libdir=$libdir
10037
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10038
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10039
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 82 jeremybenn
/* end confdefs.h.  */
10041
 
10042
int
10043
main ()
10044
{
10045
 
10046
  ;
10047
  return 0;
10048
}
10049
_ACEOF
10050 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10051
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10052 784 jeremybenn
  lt_cv_shlibpath_overrides_runpath=yes
10053 82 jeremybenn
fi
10054
fi
10055 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10056
    conftest$ac_exeext conftest.$ac_ext
10057 784 jeremybenn
    LDFLAGS=$save_LDFLAGS
10058
    libdir=$save_libdir
10059 82 jeremybenn
 
10060 784 jeremybenn
fi
10061
 
10062
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10063
 
10064 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
10065
  # Some rework will be needed to allow for fast_install
10066
  # before this can be enabled.
10067
  hardcode_into_libs=yes
10068
 
10069 784 jeremybenn
  # Add ABI-specific directories to the system library path.
10070
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10071
 
10072 19 jeremybenn
  # Append ld.so.conf contents to the search path
10073
  if test -f /etc/ld.so.conf; then
10074 784 jeremybenn
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10075
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10076
 
10077 19 jeremybenn
  fi
10078
 
10079
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10080
  # powerpc, because MkLinux only supported shared libraries with the
10081
  # GNU dynamic linker.  Since this was broken with cross compilers,
10082
  # most powerpc-linux boxes support dynamic linking these days and
10083
  # people can always --disable-shared, the test was removed, and we
10084
  # assume the GNU/Linux dynamic linker is in use.
10085
  dynamic_linker='GNU/Linux ld.so'
10086
  ;;
10087
 
10088
netbsd*)
10089
  version_type=sunos
10090
  need_lib_prefix=no
10091
  need_version=no
10092 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10093 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10094
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10095
    dynamic_linker='NetBSD (a.out) ld.so'
10096
  else
10097
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10098
    soname_spec='${libname}${release}${shared_ext}$major'
10099
    dynamic_linker='NetBSD ld.elf_so'
10100
  fi
10101
  shlibpath_var=LD_LIBRARY_PATH
10102
  shlibpath_overrides_runpath=yes
10103
  hardcode_into_libs=yes
10104
  ;;
10105
 
10106
newsos6)
10107
  version_type=linux
10108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109
  shlibpath_var=LD_LIBRARY_PATH
10110
  shlibpath_overrides_runpath=yes
10111
  ;;
10112
 
10113 82 jeremybenn
*nto* | *qnx*)
10114
  version_type=qnx
10115 19 jeremybenn
  need_lib_prefix=no
10116
  need_version=no
10117
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118
  soname_spec='${libname}${release}${shared_ext}$major'
10119
  shlibpath_var=LD_LIBRARY_PATH
10120 82 jeremybenn
  shlibpath_overrides_runpath=no
10121
  hardcode_into_libs=yes
10122
  dynamic_linker='ldqnx.so'
10123 19 jeremybenn
  ;;
10124
 
10125
openbsd*)
10126
  version_type=sunos
10127
  sys_lib_dlsearch_path_spec="/usr/lib"
10128
  need_lib_prefix=no
10129
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10130
  case $host_os in
10131 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10132
    *)                          need_version=no  ;;
10133 19 jeremybenn
  esac
10134
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10135
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10136
  shlibpath_var=LD_LIBRARY_PATH
10137 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10138 19 jeremybenn
    case $host_os in
10139
      openbsd2.[89] | openbsd2.[89].*)
10140
        shlibpath_overrides_runpath=no
10141
        ;;
10142
      *)
10143
        shlibpath_overrides_runpath=yes
10144
        ;;
10145
      esac
10146
  else
10147
    shlibpath_overrides_runpath=yes
10148
  fi
10149
  ;;
10150
 
10151
os2*)
10152
  libname_spec='$name'
10153
  shrext_cmds=".dll"
10154
  need_lib_prefix=no
10155
  library_names_spec='$libname${shared_ext} $libname.a'
10156
  dynamic_linker='OS/2 ld.exe'
10157
  shlibpath_var=LIBPATH
10158
  ;;
10159
 
10160
osf3* | osf4* | osf5*)
10161
  version_type=osf
10162
  need_lib_prefix=no
10163
  need_version=no
10164
  soname_spec='${libname}${release}${shared_ext}$major'
10165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166
  shlibpath_var=LD_LIBRARY_PATH
10167
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10168
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10169
  ;;
10170
 
10171
rdos*)
10172
  dynamic_linker=no
10173
  ;;
10174
 
10175
solaris*)
10176
  version_type=linux
10177
  need_lib_prefix=no
10178
  need_version=no
10179
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180
  soname_spec='${libname}${release}${shared_ext}$major'
10181
  shlibpath_var=LD_LIBRARY_PATH
10182
  shlibpath_overrides_runpath=yes
10183
  hardcode_into_libs=yes
10184
  # ldd complains unless libraries are executable
10185
  postinstall_cmds='chmod +x $lib'
10186
  ;;
10187
 
10188
sunos4*)
10189
  version_type=sunos
10190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10191
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10192
  shlibpath_var=LD_LIBRARY_PATH
10193
  shlibpath_overrides_runpath=yes
10194
  if test "$with_gnu_ld" = yes; then
10195
    need_lib_prefix=no
10196
  fi
10197
  need_version=yes
10198
  ;;
10199
 
10200
sysv4 | sysv4.3*)
10201
  version_type=linux
10202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203
  soname_spec='${libname}${release}${shared_ext}$major'
10204
  shlibpath_var=LD_LIBRARY_PATH
10205
  case $host_vendor in
10206
    sni)
10207
      shlibpath_overrides_runpath=no
10208
      need_lib_prefix=no
10209
      runpath_var=LD_RUN_PATH
10210
      ;;
10211
    siemens)
10212
      need_lib_prefix=no
10213
      ;;
10214
    motorola)
10215
      need_lib_prefix=no
10216
      need_version=no
10217
      shlibpath_overrides_runpath=no
10218
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10219
      ;;
10220
  esac
10221
  ;;
10222
 
10223
sysv4*MP*)
10224
  if test -d /usr/nec ;then
10225
    version_type=linux
10226
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10227
    soname_spec='$libname${shared_ext}.$major'
10228
    shlibpath_var=LD_LIBRARY_PATH
10229
  fi
10230
  ;;
10231
 
10232
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10233
  version_type=freebsd-elf
10234
  need_lib_prefix=no
10235
  need_version=no
10236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10237
  soname_spec='${libname}${release}${shared_ext}$major'
10238
  shlibpath_var=LD_LIBRARY_PATH
10239 82 jeremybenn
  shlibpath_overrides_runpath=yes
10240 19 jeremybenn
  hardcode_into_libs=yes
10241
  if test "$with_gnu_ld" = yes; then
10242
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10243
  else
10244
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10245
    case $host_os in
10246
      sco3.2v5*)
10247
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10248
        ;;
10249
    esac
10250
  fi
10251
  sys_lib_dlsearch_path_spec='/usr/lib'
10252
  ;;
10253
 
10254 82 jeremybenn
tpf*)
10255
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10256
  version_type=linux
10257
  need_lib_prefix=no
10258
  need_version=no
10259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260
  shlibpath_var=LD_LIBRARY_PATH
10261
  shlibpath_overrides_runpath=no
10262
  hardcode_into_libs=yes
10263
  ;;
10264
 
10265 19 jeremybenn
uts4*)
10266
  version_type=linux
10267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268
  soname_spec='${libname}${release}${shared_ext}$major'
10269
  shlibpath_var=LD_LIBRARY_PATH
10270
  ;;
10271
 
10272
*)
10273
  dynamic_linker=no
10274
  ;;
10275
esac
10276 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10277 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
10278 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
10279
 
10280
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10281
if test "$GCC" = yes; then
10282
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10283
fi
10284
 
10285 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10286
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10287
fi
10288
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10289
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10290
fi
10291
 
10292
 
10293
 
10294
 
10295
 
10296
 
10297
 
10298
 
10299
 
10300
 
10301
 
10302
 
10303
 
10304
 
10305
 
10306
 
10307
 
10308
 
10309
 
10310
 
10311
 
10312
 
10313
 
10314
 
10315
 
10316
 
10317
 
10318
 
10319
 
10320
 
10321
 
10322
 
10323
 
10324
 
10325
 
10326
 
10327
 
10328
 
10329
 
10330
 
10331
 
10332
 
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
 
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
 
10368
 
10369
 
10370
 
10371
 
10372
 
10373
 
10374
 
10375
 
10376
 
10377
 
10378 784 jeremybenn
 
10379
 
10380
 
10381
 
10382
 
10383 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10384 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10385 19 jeremybenn
hardcode_action=
10386 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
10387
   test -n "$runpath_var" ||
10388 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
10389
 
10390 82 jeremybenn
  # We can hardcode non-existent directories.
10391 19 jeremybenn
  if test "$hardcode_direct" != no &&
10392
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10393
     # have to relink, otherwise we might link with an installed library
10394
     # when we should be linking with a yet-to-be-installed one
10395 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10396 19 jeremybenn
     test "$hardcode_minus_L" != no; then
10397
    # Linking always hardcodes the temporary library directory.
10398
    hardcode_action=relink
10399
  else
10400
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10401
    hardcode_action=immediate
10402
  fi
10403
else
10404
  # We cannot hardcode anything, or else we can only hardcode existing
10405
  # directories.
10406
  hardcode_action=unsupported
10407
fi
10408 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10409 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
10410 19 jeremybenn
 
10411 82 jeremybenn
if test "$hardcode_action" = relink ||
10412
   test "$inherit_rpath" = yes; then
10413 19 jeremybenn
  # Fast installation is not supported
10414
  enable_fast_install=no
10415
elif test "$shlibpath_overrides_runpath" = yes ||
10416
     test "$enable_shared" = no; then
10417
  # Fast installation is not necessary
10418
  enable_fast_install=needless
10419
fi
10420
 
10421
 
10422 82 jeremybenn
 
10423
 
10424
 
10425
 
10426
  if test "x$enable_dlopen" != xyes; then
10427 19 jeremybenn
  enable_dlopen=unknown
10428
  enable_dlopen_self=unknown
10429
  enable_dlopen_self_static=unknown
10430
else
10431
  lt_cv_dlopen=no
10432
  lt_cv_dlopen_libs=
10433
 
10434
  case $host_os in
10435
  beos*)
10436
    lt_cv_dlopen="load_add_on"
10437
    lt_cv_dlopen_libs=
10438
    lt_cv_dlopen_self=yes
10439
    ;;
10440
 
10441 82 jeremybenn
  mingw* | pw32* | cegcc*)
10442 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
10443
    lt_cv_dlopen_libs=
10444 82 jeremybenn
    ;;
10445 19 jeremybenn
 
10446
  cygwin*)
10447
    lt_cv_dlopen="dlopen"
10448
    lt_cv_dlopen_libs=
10449 82 jeremybenn
    ;;
10450 19 jeremybenn
 
10451
  darwin*)
10452
  # if libdl is installed we need to link against it
10453 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10454 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10455 625 jeremybenn
if ${ac_cv_lib_dl_dlopen+:} false; then :
10456 82 jeremybenn
  $as_echo_n "(cached) " >&6
10457 19 jeremybenn
else
10458
  ac_check_lib_save_LIBS=$LIBS
10459
LIBS="-ldl  $LIBS"
10460 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 19 jeremybenn
/* end confdefs.h.  */
10462
 
10463
/* Override any GCC internal prototype to avoid an error.
10464
   Use char because int might match the return type of a GCC
10465
   builtin and then its argument prototype would still apply.  */
10466
#ifdef __cplusplus
10467
extern "C"
10468
#endif
10469
char dlopen ();
10470
int
10471
main ()
10472
{
10473
return dlopen ();
10474
  ;
10475
  return 0;
10476
}
10477
_ACEOF
10478 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10479 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10480
else
10481 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
10482 19 jeremybenn
fi
10483 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10484
    conftest$ac_exeext conftest.$ac_ext
10485 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10486
fi
10487 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10488 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10489 625 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10490 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10491
else
10492
 
10493
    lt_cv_dlopen="dyld"
10494
    lt_cv_dlopen_libs=
10495
    lt_cv_dlopen_self=yes
10496
 
10497
fi
10498
 
10499 82 jeremybenn
    ;;
10500 19 jeremybenn
 
10501
  *)
10502 346 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10503 625 jeremybenn
if test "x$ac_cv_func_shl_load" = xyes; then :
10504 19 jeremybenn
  lt_cv_dlopen="shl_load"
10505
else
10506 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10507 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10508 625 jeremybenn
if ${ac_cv_lib_dld_shl_load+:} false; then :
10509 82 jeremybenn
  $as_echo_n "(cached) " >&6
10510 19 jeremybenn
else
10511
  ac_check_lib_save_LIBS=$LIBS
10512
LIBS="-ldld  $LIBS"
10513 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 19 jeremybenn
/* end confdefs.h.  */
10515
 
10516
/* Override any GCC internal prototype to avoid an error.
10517
   Use char because int might match the return type of a GCC
10518
   builtin and then its argument prototype would still apply.  */
10519
#ifdef __cplusplus
10520
extern "C"
10521
#endif
10522
char shl_load ();
10523
int
10524
main ()
10525
{
10526
return shl_load ();
10527
  ;
10528
  return 0;
10529
}
10530
_ACEOF
10531 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10532 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
10533
else
10534 346 jeremybenn
  ac_cv_lib_dld_shl_load=no
10535 19 jeremybenn
fi
10536 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10537
    conftest$ac_exeext conftest.$ac_ext
10538 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10539
fi
10540 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10541 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10542 625 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10543 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10544 19 jeremybenn
else
10545 346 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10546 625 jeremybenn
if test "x$ac_cv_func_dlopen" = xyes; then :
10547 19 jeremybenn
  lt_cv_dlopen="dlopen"
10548
else
10549 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10550 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10551 625 jeremybenn
if ${ac_cv_lib_dl_dlopen+:} false; then :
10552 82 jeremybenn
  $as_echo_n "(cached) " >&6
10553 19 jeremybenn
else
10554
  ac_check_lib_save_LIBS=$LIBS
10555
LIBS="-ldl  $LIBS"
10556 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 19 jeremybenn
/* end confdefs.h.  */
10558
 
10559
/* Override any GCC internal prototype to avoid an error.
10560
   Use char because int might match the return type of a GCC
10561
   builtin and then its argument prototype would still apply.  */
10562
#ifdef __cplusplus
10563
extern "C"
10564
#endif
10565
char dlopen ();
10566
int
10567
main ()
10568
{
10569
return dlopen ();
10570
  ;
10571
  return 0;
10572
}
10573
_ACEOF
10574 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10575 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10576
else
10577 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
10578 19 jeremybenn
fi
10579 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10580
    conftest$ac_exeext conftest.$ac_ext
10581 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10582
fi
10583 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10584 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10585 625 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10586 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10587
else
10588 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10589 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10590 625 jeremybenn
if ${ac_cv_lib_svld_dlopen+:} false; then :
10591 82 jeremybenn
  $as_echo_n "(cached) " >&6
10592 19 jeremybenn
else
10593
  ac_check_lib_save_LIBS=$LIBS
10594
LIBS="-lsvld  $LIBS"
10595 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 19 jeremybenn
/* end confdefs.h.  */
10597
 
10598
/* Override any GCC internal prototype to avoid an error.
10599
   Use char because int might match the return type of a GCC
10600
   builtin and then its argument prototype would still apply.  */
10601
#ifdef __cplusplus
10602
extern "C"
10603
#endif
10604
char dlopen ();
10605
int
10606
main ()
10607
{
10608
return dlopen ();
10609
  ;
10610
  return 0;
10611
}
10612
_ACEOF
10613 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10614 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
10615
else
10616 346 jeremybenn
  ac_cv_lib_svld_dlopen=no
10617 19 jeremybenn
fi
10618 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10619
    conftest$ac_exeext conftest.$ac_ext
10620 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10621
fi
10622 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10623 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10624 625 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10625 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10626
else
10627 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10628 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10629 625 jeremybenn
if ${ac_cv_lib_dld_dld_link+:} false; then :
10630 82 jeremybenn
  $as_echo_n "(cached) " >&6
10631 19 jeremybenn
else
10632
  ac_check_lib_save_LIBS=$LIBS
10633
LIBS="-ldld  $LIBS"
10634 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 19 jeremybenn
/* end confdefs.h.  */
10636
 
10637
/* Override any GCC internal prototype to avoid an error.
10638
   Use char because int might match the return type of a GCC
10639
   builtin and then its argument prototype would still apply.  */
10640
#ifdef __cplusplus
10641
extern "C"
10642
#endif
10643
char dld_link ();
10644
int
10645
main ()
10646
{
10647
return dld_link ();
10648
  ;
10649
  return 0;
10650
}
10651
_ACEOF
10652 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10653 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
10654
else
10655 346 jeremybenn
  ac_cv_lib_dld_dld_link=no
10656 19 jeremybenn
fi
10657 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10658
    conftest$ac_exeext conftest.$ac_ext
10659 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10660
fi
10661 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10662 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10663 625 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10664 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10665 19 jeremybenn
fi
10666
 
10667
 
10668
fi
10669
 
10670
 
10671
fi
10672
 
10673
 
10674
fi
10675
 
10676
 
10677
fi
10678
 
10679
 
10680
fi
10681
 
10682
    ;;
10683
  esac
10684
 
10685
  if test "x$lt_cv_dlopen" != xno; then
10686
    enable_dlopen=yes
10687
  else
10688
    enable_dlopen=no
10689
  fi
10690
 
10691
  case $lt_cv_dlopen in
10692
  dlopen)
10693
    save_CPPFLAGS="$CPPFLAGS"
10694
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10695
 
10696
    save_LDFLAGS="$LDFLAGS"
10697
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10698
 
10699
    save_LIBS="$LIBS"
10700
    LIBS="$lt_cv_dlopen_libs $LIBS"
10701
 
10702 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10703 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10704 625 jeremybenn
if ${lt_cv_dlopen_self+:} false; then :
10705 82 jeremybenn
  $as_echo_n "(cached) " >&6
10706 19 jeremybenn
else
10707
          if test "$cross_compiling" = yes; then :
10708
  lt_cv_dlopen_self=cross
10709
else
10710
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10711
  lt_status=$lt_dlunknown
10712 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10713 784 jeremybenn
#line $LINENO "configure"
10714 19 jeremybenn
#include "confdefs.h"
10715
 
10716
#if HAVE_DLFCN_H
10717
#include 
10718
#endif
10719
 
10720
#include 
10721
 
10722
#ifdef RTLD_GLOBAL
10723
#  define LT_DLGLOBAL           RTLD_GLOBAL
10724
#else
10725
#  ifdef DL_GLOBAL
10726
#    define LT_DLGLOBAL         DL_GLOBAL
10727
#  else
10728
#    define LT_DLGLOBAL         0
10729
#  endif
10730
#endif
10731
 
10732
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10733
   find out it does not work in some platform. */
10734
#ifndef LT_DLLAZY_OR_NOW
10735
#  ifdef RTLD_LAZY
10736
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10737
#  else
10738
#    ifdef DL_LAZY
10739
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10740
#    else
10741
#      ifdef RTLD_NOW
10742
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10743
#      else
10744
#        ifdef DL_NOW
10745
#          define LT_DLLAZY_OR_NOW      DL_NOW
10746
#        else
10747
#          define LT_DLLAZY_OR_NOW      0
10748
#        endif
10749
#      endif
10750
#    endif
10751
#  endif
10752
#endif
10753
 
10754 784 jeremybenn
/* When -fvisbility=hidden is used, assume the code has been annotated
10755
   correspondingly for the symbols needed.  */
10756
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10757
int fnord () __attribute__((visibility("default")));
10758
#endif
10759
 
10760
int fnord () { return 42; }
10761 19 jeremybenn
int main ()
10762
{
10763
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10764
  int status = $lt_dlunknown;
10765
 
10766
  if (self)
10767
    {
10768
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10769 784 jeremybenn
      else
10770
        {
10771
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10772
          else puts (dlerror ());
10773
        }
10774 19 jeremybenn
      /* dlclose (self); */
10775
    }
10776
  else
10777
    puts (dlerror ());
10778
 
10779 82 jeremybenn
  return status;
10780 19 jeremybenn
}
10781 82 jeremybenn
_LT_EOF
10782 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10783 19 jeremybenn
  (eval $ac_link) 2>&5
10784
  ac_status=$?
10785 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10786
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10787 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10788
    lt_status=$?
10789
    case x$lt_status in
10790
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10791
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10792
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10793
    esac
10794
  else :
10795
    # compilation failed
10796
    lt_cv_dlopen_self=no
10797
  fi
10798
fi
10799
rm -fr conftest*
10800
 
10801
 
10802
fi
10803 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10804 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
10805 19 jeremybenn
 
10806
    if test "x$lt_cv_dlopen_self" = xyes; then
10807
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10808 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10809 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10810 625 jeremybenn
if ${lt_cv_dlopen_self_static+:} false; then :
10811 82 jeremybenn
  $as_echo_n "(cached) " >&6
10812 19 jeremybenn
else
10813
          if test "$cross_compiling" = yes; then :
10814
  lt_cv_dlopen_self_static=cross
10815
else
10816
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10817
  lt_status=$lt_dlunknown
10818 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10819 784 jeremybenn
#line $LINENO "configure"
10820 19 jeremybenn
#include "confdefs.h"
10821
 
10822
#if HAVE_DLFCN_H
10823
#include 
10824
#endif
10825
 
10826
#include 
10827
 
10828
#ifdef RTLD_GLOBAL
10829
#  define LT_DLGLOBAL           RTLD_GLOBAL
10830
#else
10831
#  ifdef DL_GLOBAL
10832
#    define LT_DLGLOBAL         DL_GLOBAL
10833
#  else
10834
#    define LT_DLGLOBAL         0
10835
#  endif
10836
#endif
10837
 
10838
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10839
   find out it does not work in some platform. */
10840
#ifndef LT_DLLAZY_OR_NOW
10841
#  ifdef RTLD_LAZY
10842
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10843
#  else
10844
#    ifdef DL_LAZY
10845
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10846
#    else
10847
#      ifdef RTLD_NOW
10848
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10849
#      else
10850
#        ifdef DL_NOW
10851
#          define LT_DLLAZY_OR_NOW      DL_NOW
10852
#        else
10853
#          define LT_DLLAZY_OR_NOW      0
10854
#        endif
10855
#      endif
10856
#    endif
10857
#  endif
10858
#endif
10859
 
10860 784 jeremybenn
/* When -fvisbility=hidden is used, assume the code has been annotated
10861
   correspondingly for the symbols needed.  */
10862
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10863
int fnord () __attribute__((visibility("default")));
10864
#endif
10865
 
10866
int fnord () { return 42; }
10867 19 jeremybenn
int main ()
10868
{
10869
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10870
  int status = $lt_dlunknown;
10871
 
10872
  if (self)
10873
    {
10874
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10875 784 jeremybenn
      else
10876
        {
10877
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10878
          else puts (dlerror ());
10879
        }
10880 19 jeremybenn
      /* dlclose (self); */
10881
    }
10882
  else
10883
    puts (dlerror ());
10884
 
10885 82 jeremybenn
  return status;
10886 19 jeremybenn
}
10887 82 jeremybenn
_LT_EOF
10888 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10889 19 jeremybenn
  (eval $ac_link) 2>&5
10890
  ac_status=$?
10891 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10892
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10893 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10894
    lt_status=$?
10895
    case x$lt_status in
10896
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10897
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10898
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10899
    esac
10900
  else :
10901
    # compilation failed
10902
    lt_cv_dlopen_self_static=no
10903
  fi
10904
fi
10905
rm -fr conftest*
10906
 
10907
 
10908
fi
10909 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10910 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10911 19 jeremybenn
    fi
10912
 
10913
    CPPFLAGS="$save_CPPFLAGS"
10914
    LDFLAGS="$save_LDFLAGS"
10915
    LIBS="$save_LIBS"
10916
    ;;
10917
  esac
10918
 
10919
  case $lt_cv_dlopen_self in
10920
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10921
  *) enable_dlopen_self=unknown ;;
10922
  esac
10923
 
10924
  case $lt_cv_dlopen_self_static in
10925
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10926
  *) enable_dlopen_self_static=unknown ;;
10927
  esac
10928
fi
10929
 
10930
 
10931
 
10932
 
10933
 
10934
 
10935
 
10936
 
10937
 
10938
 
10939
 
10940
 
10941
 
10942
 
10943
 
10944
 
10945
 
10946 82 jeremybenn
striplib=
10947
old_striplib=
10948 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10949 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10950
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10951
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10952
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10953 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10954 82 jeremybenn
$as_echo "yes" >&6; }
10955
else
10956
# FIXME - insert some real tests, host_os isn't really good enough
10957 19 jeremybenn
  case $host_os in
10958 82 jeremybenn
  darwin*)
10959
    if test -n "$STRIP" ; then
10960
      striplib="$STRIP -x"
10961
      old_striplib="$STRIP -S"
10962 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10963 82 jeremybenn
$as_echo "yes" >&6; }
10964 19 jeremybenn
    else
10965 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 82 jeremybenn
$as_echo "no" >&6; }
10967 19 jeremybenn
    fi
10968
    ;;
10969
  *)
10970 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 82 jeremybenn
$as_echo "no" >&6; }
10972 19 jeremybenn
    ;;
10973
  esac
10974
fi
10975
 
10976
 
10977
 
10978
 
10979
 
10980
 
10981
 
10982
 
10983
 
10984
 
10985
 
10986
 
10987 82 jeremybenn
  # Report which library types will actually be built
10988 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10989 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10990 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10991 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10992 19 jeremybenn
 
10993 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10994 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10995
  test "$can_build_shared" = "no" && enable_shared=no
10996 19 jeremybenn
 
10997 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10998
  # are all built from PIC.
10999 19 jeremybenn
  case $host_os in
11000 82 jeremybenn
  aix3*)
11001 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
11002 82 jeremybenn
    if test -n "$RANLIB"; then
11003
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11004
      postinstall_cmds='$RANLIB $lib'
11005 19 jeremybenn
    fi
11006
    ;;
11007
 
11008 82 jeremybenn
  aix[4-9]*)
11009
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11010
      test "$enable_shared" = yes && enable_static=no
11011 19 jeremybenn
    fi
11012
    ;;
11013
  esac
11014 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11015 82 jeremybenn
$as_echo "$enable_shared" >&6; }
11016 19 jeremybenn
 
11017 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11018 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
11019
  # Make sure either enable_shared or enable_static is yes.
11020
  test "$enable_shared" = yes || enable_static=yes
11021 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11022 82 jeremybenn
$as_echo "$enable_static" >&6; }
11023 19 jeremybenn
 
11024
 
11025
 
11026
 
11027
fi
11028
ac_ext=c
11029
ac_cpp='$CPP $CPPFLAGS'
11030
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11031
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11032
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11033
 
11034
CC="$lt_save_CC"
11035
 
11036
 
11037
 
11038
 
11039
 
11040
 
11041
 
11042
 
11043
 
11044
 
11045
 
11046
 
11047
 
11048 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
11049 19 jeremybenn
 
11050
 
11051
 
11052
 
11053 82 jeremybenn
# Only expand once:
11054 19 jeremybenn
 
11055
 
11056 82 jeremybenn
am__api_version='1.11'
11057 19 jeremybenn
 
11058
# Find a good install program.  We prefer a C program (faster),
11059
# so one script is as good as another.  But avoid the broken or
11060
# incompatible versions:
11061
# SysV /etc/install, /usr/sbin/install
11062
# SunOS /usr/etc/install
11063
# IRIX /sbin/install
11064
# AIX /bin/install
11065
# AmigaOS /C/install, which installs bootblocks on floppy discs
11066
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11067
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11068
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11069
# OS/2's system install, which has a completely different semantic
11070
# ./install, which can be erroneously created by make from ./install.sh.
11071 82 jeremybenn
# Reject install programs that cannot install multiple files.
11072 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11073 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
11074 19 jeremybenn
if test -z "$INSTALL"; then
11075 625 jeremybenn
if ${ac_cv_path_install+:} false; then :
11076 82 jeremybenn
  $as_echo_n "(cached) " >&6
11077 19 jeremybenn
else
11078
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079
for as_dir in $PATH
11080
do
11081
  IFS=$as_save_IFS
11082
  test -z "$as_dir" && as_dir=.
11083 346 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
11084
case $as_dir/ in #((
11085
  ./ | .// | /[cC]/* | \
11086 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11087 346 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11088 19 jeremybenn
  /usr/ucb/* ) ;;
11089
  *)
11090
    # OSF1 and SCO ODT 3.0 have their own names for install.
11091
    # Don't use installbsd from OSF since it installs stuff as root
11092
    # by default.
11093
    for ac_prog in ginstall scoinst install; do
11094
      for ac_exec_ext in '' $ac_executable_extensions; do
11095
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11096
          if test $ac_prog = install &&
11097
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11098
            # AIX install.  It has an incompatible calling convention.
11099
            :
11100
          elif test $ac_prog = install &&
11101
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11102
            # program-specific install script used by HP pwplus--don't use.
11103
            :
11104
          else
11105 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
11106
            echo one > conftest.one
11107
            echo two > conftest.two
11108
            mkdir conftest.dir
11109
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11110
              test -s conftest.one && test -s conftest.two &&
11111
              test -s conftest.dir/conftest.one &&
11112
              test -s conftest.dir/conftest.two
11113
            then
11114
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11115
              break 3
11116
            fi
11117 19 jeremybenn
          fi
11118
        fi
11119
      done
11120
    done
11121
    ;;
11122
esac
11123 82 jeremybenn
 
11124 346 jeremybenn
  done
11125 19 jeremybenn
IFS=$as_save_IFS
11126
 
11127 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
11128 19 jeremybenn
 
11129
fi
11130
  if test "${ac_cv_path_install+set}" = set; then
11131
    INSTALL=$ac_cv_path_install
11132
  else
11133
    # As a last resort, use the slow shell script.  Don't cache a
11134
    # value for INSTALL within a source directory, because that will
11135
    # break other packages using the cache if that directory is
11136
    # removed, or if the value is a relative name.
11137
    INSTALL=$ac_install_sh
11138
  fi
11139
fi
11140 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11141 82 jeremybenn
$as_echo "$INSTALL" >&6; }
11142 19 jeremybenn
 
11143
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11144
# It thinks the first close brace ends the variable substitution.
11145
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11146
 
11147
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11148
 
11149
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11150
 
11151 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11152 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
11153 19 jeremybenn
# Just in case
11154
sleep 1
11155
echo timestamp > conftest.file
11156 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
11157
# name.  Accept space and tab only in the latter.
11158
am_lf='
11159
'
11160
case `pwd` in
11161
  *[\\\"\#\$\&\'\`$am_lf]*)
11162 625 jeremybenn
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11163 82 jeremybenn
esac
11164
case $srcdir in
11165
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
11166 625 jeremybenn
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
11167 82 jeremybenn
esac
11168
 
11169 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
11170
# arguments.  Must try -L first in case configure is actually a
11171
# symlink; some systems play weird games with the mod time of symlinks
11172
# (eg FreeBSD returns the mod time of the symlink's containing
11173
# directory).
11174
if (
11175 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11176 19 jeremybenn
   if test "$*" = "X"; then
11177
      # -L didn't work.
11178 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
11179 19 jeremybenn
   fi
11180
   rm -f conftest.file
11181
   if test "$*" != "X $srcdir/configure conftest.file" \
11182
      && test "$*" != "X conftest.file $srcdir/configure"; then
11183
 
11184
      # If neither matched, then we have a broken ls.  This can happen
11185
      # if, for instance, CONFIG_SHELL is bash and it inherits a
11186
      # broken ls alias from the environment.  This has actually
11187
      # happened.  Such a system could not be considered "sane".
11188 625 jeremybenn
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11189 346 jeremybenn
alias in your environment" "$LINENO" 5
11190 19 jeremybenn
   fi
11191
 
11192
   test "$2" = conftest.file
11193
   )
11194
then
11195
   # Ok.
11196
   :
11197
else
11198 625 jeremybenn
   as_fn_error $? "newly created file is older than distributed files!
11199 346 jeremybenn
Check your system clock" "$LINENO" 5
11200 19 jeremybenn
fi
11201 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11202 82 jeremybenn
$as_echo "yes" >&6; }
11203 19 jeremybenn
test "$program_prefix" != NONE &&
11204
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11205
# Use a double $ so make ignores it.
11206
test "$program_suffix" != NONE &&
11207
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11208 82 jeremybenn
# Double any \ or $.
11209 19 jeremybenn
# By default was `s,x,x', remove it if useless.
11210 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11211
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11212 19 jeremybenn
 
11213
# expand $ac_aux_dir to an absolute path
11214
am_aux_dir=`cd $ac_aux_dir && pwd`
11215
 
11216 82 jeremybenn
if test x"${MISSING+set}" != xset; then
11217
  case $am_aux_dir in
11218
  *\ * | *\     *)
11219
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11220
  *)
11221
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
11222
  esac
11223
fi
11224 19 jeremybenn
# Use eval to expand $SHELL
11225
if eval "$MISSING --run true"; then
11226
  am_missing_run="$MISSING --run "
11227
else
11228
  am_missing_run=
11229 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
11230 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11231 19 jeremybenn
fi
11232
 
11233 82 jeremybenn
if test x"${install_sh}" != xset; then
11234
  case $am_aux_dir in
11235
  *\ * | *\     *)
11236
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11237
  *)
11238
    install_sh="\${SHELL} $am_aux_dir/install-sh"
11239
  esac
11240
fi
11241
 
11242
# Installed binaries are usually stripped using `strip' when the user
11243
# run `make install-strip'.  However `strip' might not be the right
11244
# tool to use in cross-compilation environments, therefore Automake
11245
# will honor the `STRIP' environment variable to overrule this program.
11246
if test "$cross_compiling" != no; then
11247
  if test -n "$ac_tool_prefix"; then
11248
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11249
set dummy ${ac_tool_prefix}strip; ac_word=$2
11250 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11251 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11252 625 jeremybenn
if ${ac_cv_prog_STRIP+:} false; then :
11253 82 jeremybenn
  $as_echo_n "(cached) " >&6
11254
else
11255
  if test -n "$STRIP"; then
11256
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11257
else
11258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259
for as_dir in $PATH
11260
do
11261
  IFS=$as_save_IFS
11262
  test -z "$as_dir" && as_dir=.
11263 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11264 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11265
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11266 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 82 jeremybenn
    break 2
11268
  fi
11269
done
11270 346 jeremybenn
  done
11271 82 jeremybenn
IFS=$as_save_IFS
11272
 
11273
fi
11274
fi
11275
STRIP=$ac_cv_prog_STRIP
11276
if test -n "$STRIP"; then
11277 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11278 82 jeremybenn
$as_echo "$STRIP" >&6; }
11279
else
11280 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 82 jeremybenn
$as_echo "no" >&6; }
11282
fi
11283
 
11284
 
11285
fi
11286
if test -z "$ac_cv_prog_STRIP"; then
11287
  ac_ct_STRIP=$STRIP
11288
  # Extract the first word of "strip", so it can be a program name with args.
11289
set dummy strip; ac_word=$2
11290 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11291 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11292 625 jeremybenn
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11293 82 jeremybenn
  $as_echo_n "(cached) " >&6
11294
else
11295
  if test -n "$ac_ct_STRIP"; then
11296
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11297
else
11298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299
for as_dir in $PATH
11300
do
11301
  IFS=$as_save_IFS
11302
  test -z "$as_dir" && as_dir=.
11303 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11304 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11305
    ac_cv_prog_ac_ct_STRIP="strip"
11306 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 82 jeremybenn
    break 2
11308
  fi
11309
done
11310 346 jeremybenn
  done
11311 82 jeremybenn
IFS=$as_save_IFS
11312
 
11313
fi
11314
fi
11315
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11316
if test -n "$ac_ct_STRIP"; then
11317 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11318 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
11319
else
11320 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 82 jeremybenn
$as_echo "no" >&6; }
11322
fi
11323
 
11324
  if test "x$ac_ct_STRIP" = x; then
11325
    STRIP=":"
11326
  else
11327
    case $cross_compiling:$ac_tool_warned in
11328
yes:)
11329 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11330 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11331
ac_tool_warned=yes ;;
11332
esac
11333
    STRIP=$ac_ct_STRIP
11334
  fi
11335
else
11336
  STRIP="$ac_cv_prog_STRIP"
11337
fi
11338
 
11339
fi
11340
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11341
 
11342 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11343 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11344 19 jeremybenn
if test -z "$MKDIR_P"; then
11345 625 jeremybenn
  if ${ac_cv_path_mkdir+:} false; then :
11346 82 jeremybenn
  $as_echo_n "(cached) " >&6
11347 19 jeremybenn
else
11348
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11350
do
11351
  IFS=$as_save_IFS
11352
  test -z "$as_dir" && as_dir=.
11353 346 jeremybenn
    for ac_prog in mkdir gmkdir; do
11354 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
11355
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11356
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11357
             'mkdir (GNU coreutils) '* | \
11358
             'mkdir (coreutils) '* | \
11359
             'mkdir (fileutils) '4.1*)
11360
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11361
               break 3;;
11362
           esac
11363
         done
11364
       done
11365 346 jeremybenn
  done
11366 19 jeremybenn
IFS=$as_save_IFS
11367
 
11368
fi
11369
 
11370 625 jeremybenn
  test -d ./--version && rmdir ./--version
11371 19 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
11372
    MKDIR_P="$ac_cv_path_mkdir -p"
11373
  else
11374
    # As a last resort, use the slow shell script.  Don't cache a
11375
    # value for MKDIR_P within a source directory, because that will
11376
    # break other packages using the cache if that directory is
11377
    # removed, or if the value is a relative name.
11378
    MKDIR_P="$ac_install_sh -d"
11379
  fi
11380
fi
11381 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11382 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
11383 19 jeremybenn
 
11384
mkdir_p="$MKDIR_P"
11385
case $mkdir_p in
11386
  [\\/$]* | ?:[\\/]*) ;;
11387
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11388
esac
11389
 
11390 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11391 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11392
set x ${MAKE-make}
11393
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11394 625 jeremybenn
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11395 82 jeremybenn
  $as_echo_n "(cached) " >&6
11396 19 jeremybenn
else
11397
  cat >conftest.make <<\_ACEOF
11398
SHELL = /bin/sh
11399
all:
11400
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11401
_ACEOF
11402 625 jeremybenn
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11403 19 jeremybenn
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11404
  *@@@%%%=?*=@@@%%%*)
11405
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11406
  *)
11407
    eval ac_cv_prog_make_${ac_make}_set=no;;
11408
esac
11409
rm -f conftest.make
11410
fi
11411
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11412 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11413 82 jeremybenn
$as_echo "yes" >&6; }
11414 19 jeremybenn
  SET_MAKE=
11415
else
11416 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 82 jeremybenn
$as_echo "no" >&6; }
11418 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11419
fi
11420
 
11421
rm -rf .tst 2>/dev/null
11422
mkdir .tst 2>/dev/null
11423
if test -d .tst; then
11424
  am__leading_dot=.
11425
else
11426
  am__leading_dot=_
11427
fi
11428
rmdir .tst 2>/dev/null
11429
 
11430
DEPDIR="${am__leading_dot}deps"
11431
 
11432
ac_config_commands="$ac_config_commands depfiles"
11433
 
11434
 
11435
am_make=${MAKE-make}
11436
cat > confinc << 'END'
11437
am__doit:
11438 82 jeremybenn
        @echo this is the am__doit target
11439 19 jeremybenn
.PHONY: am__doit
11440
END
11441
# If we don't find an include directive, just comment out the code.
11442 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11443 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
11444 19 jeremybenn
am__include="#"
11445
am__quote=
11446
_am_result=none
11447
# First try GNU make style include.
11448
echo "include confinc" > confmf
11449 82 jeremybenn
# Ignore all kinds of additional output from `make'.
11450
case `$am_make -s -f confmf 2> /dev/null` in #(
11451
*the\ am__doit\ target*)
11452
  am__include=include
11453
  am__quote=
11454
  _am_result=GNU
11455
  ;;
11456
esac
11457 19 jeremybenn
# Now try BSD make style include.
11458
if test "$am__include" = "#"; then
11459
   echo '.include "confinc"' > confmf
11460 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
11461
   *the\ am__doit\ target*)
11462
     am__include=.include
11463
     am__quote="\""
11464
     _am_result=BSD
11465
     ;;
11466
   esac
11467 19 jeremybenn
fi
11468
 
11469
 
11470 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11471 82 jeremybenn
$as_echo "$_am_result" >&6; }
11472 19 jeremybenn
rm -f confinc confmf
11473
 
11474
# Check whether --enable-dependency-tracking was given.
11475 346 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
11476 19 jeremybenn
  enableval=$enable_dependency_tracking;
11477
fi
11478
 
11479
if test "x$enable_dependency_tracking" != xno; then
11480
  am_depcomp="$ac_aux_dir/depcomp"
11481
  AMDEPBACKSLASH='\'
11482
fi
11483
 if test "x$enable_dependency_tracking" != xno; then
11484
  AMDEP_TRUE=
11485
  AMDEP_FALSE='#'
11486
else
11487
  AMDEP_TRUE='#'
11488
  AMDEP_FALSE=
11489
fi
11490
 
11491
 
11492
if test "`cd $srcdir && pwd`" != "`pwd`"; then
11493
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11494
  # is not polluted with repeated "-I."
11495
  am__isrc=' -I$(srcdir)'
11496
  # test to see if srcdir already configured
11497
  if test -f $srcdir/config.status; then
11498 625 jeremybenn
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11499 19 jeremybenn
  fi
11500
fi
11501
 
11502
# test whether we have cygpath
11503
if test -z "$CYGPATH_W"; then
11504
  if (cygpath --version) >/dev/null 2>/dev/null; then
11505
    CYGPATH_W='cygpath -w'
11506
  else
11507
    CYGPATH_W=echo
11508
  fi
11509
fi
11510
 
11511
 
11512
# Define the identity of the package.
11513
 PACKAGE='or1ksim'
11514 787 jeremybenn
 VERSION='2012-03-23'
11515 19 jeremybenn
 
11516
 
11517
cat >>confdefs.h <<_ACEOF
11518
#define PACKAGE "$PACKAGE"
11519
_ACEOF
11520
 
11521
 
11522
cat >>confdefs.h <<_ACEOF
11523
#define VERSION "$VERSION"
11524
_ACEOF
11525
 
11526
# Some tools Automake needs.
11527
 
11528
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11529
 
11530
 
11531
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11532
 
11533
 
11534
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11535
 
11536
 
11537
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11538
 
11539
 
11540
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11541
 
11542
# We need awk for the "check" target.  The system "awk" is bad on
11543
# some platforms.
11544
# Always define AMTAR for backward compatibility.
11545
 
11546
AMTAR=${AMTAR-"${am_missing_run}tar"}
11547
 
11548
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11549
 
11550
 
11551
 
11552
 
11553
depcc="$CC"   am_compiler_list=
11554
 
11555 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11556 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11557 625 jeremybenn
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11558 82 jeremybenn
  $as_echo_n "(cached) " >&6
11559 19 jeremybenn
else
11560
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11561
  # We make a subdir and do the tests there.  Otherwise we can end up
11562
  # making bogus files that we don't know about and never remove.  For
11563
  # instance it was reported that on HP-UX the gcc test will end up
11564
  # making a dummy file named `D' -- because `-MD' means `put the output
11565
  # in D'.
11566
  mkdir conftest.dir
11567
  # Copy depcomp to subdir because otherwise we won't find it if we're
11568
  # using a relative directory.
11569
  cp "$am_depcomp" conftest.dir
11570
  cd conftest.dir
11571
  # We will build objects and dependencies in a subdirectory because
11572
  # it helps to detect inapplicable dependency modes.  For instance
11573
  # both Tru64's cc and ICC support -MD to output dependencies as a
11574
  # side effect of compilation, but ICC will put the dependencies in
11575
  # the current directory while Tru64 will put them in the object
11576
  # directory.
11577
  mkdir sub
11578
 
11579
  am_cv_CC_dependencies_compiler_type=none
11580
  if test "$am_compiler_list" = ""; then
11581
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11582
  fi
11583 82 jeremybenn
  am__universal=false
11584
  case " $depcc " in #(
11585
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11586
     esac
11587
 
11588 19 jeremybenn
  for depmode in $am_compiler_list; do
11589
    # Setup a source with many dependencies, because some compilers
11590
    # like to wrap large dependency lists on column 80 (with \), and
11591
    # we should not choose a depcomp mode which is confused by this.
11592
    #
11593
    # We need to recreate these files for each test, as the compiler may
11594
    # overwrite some of them when testing with obscure command lines.
11595
    # This happens at least with the AIX C compiler.
11596
    : > sub/conftest.c
11597
    for i in 1 2 3 4 5 6; do
11598
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11599
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11600
      # Solaris 8's {/usr,}/bin/sh.
11601
      touch sub/conftst$i.h
11602
    done
11603
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11604
 
11605 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11606
    # mode.  It turns out that the SunPro C++ compiler does not properly
11607
    # handle `-M -o', and we need to detect this.  Also, some Intel
11608
    # versions had trouble with output in subdirs
11609
    am__obj=sub/conftest.${OBJEXT-o}
11610
    am__minus_obj="-o $am__obj"
11611 19 jeremybenn
    case $depmode in
11612 82 jeremybenn
    gcc)
11613
      # This depmode causes a compiler race in universal mode.
11614
      test "$am__universal" = false || continue
11615
      ;;
11616 19 jeremybenn
    nosideeffect)
11617
      # after this tag, mechanisms are not by side-effect, so they'll
11618
      # only be used when explicitly requested
11619
      if test "x$enable_dependency_tracking" = xyes; then
11620
        continue
11621
      else
11622
        break
11623
      fi
11624
      ;;
11625 82 jeremybenn
    msvisualcpp | msvcmsys)
11626
      # This compiler won't grok `-c -o', but also, the minuso test has
11627
      # not run yet.  These depmodes are late enough in the game, and
11628
      # so weak that their functioning should not be impacted.
11629
      am__obj=conftest.${OBJEXT-o}
11630
      am__minus_obj=
11631
      ;;
11632 19 jeremybenn
    none) break ;;
11633
    esac
11634
    if depmode=$depmode \
11635 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11636 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11637 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11638 19 jeremybenn
         >/dev/null 2>conftest.err &&
11639
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11640
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11641 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11642 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11643
      # icc doesn't choke on unknown options, it will just issue warnings
11644
      # or remarks (even with -Werror).  So we grep stderr for any message
11645
      # that says an option was ignored or not supported.
11646
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11647
      #   icc: Command line warning: ignoring option '-M'; no argument required
11648
      # The diagnosis changed in icc 8.0:
11649
      #   icc: Command line remark: option '-MP' not supported
11650
      if (grep 'ignoring option' conftest.err ||
11651
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11652
        am_cv_CC_dependencies_compiler_type=$depmode
11653
        break
11654
      fi
11655
    fi
11656
  done
11657
 
11658
  cd ..
11659
  rm -rf conftest.dir
11660
else
11661
  am_cv_CC_dependencies_compiler_type=none
11662
fi
11663
 
11664
fi
11665 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11666 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11667 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11668
 
11669
 if
11670
  test "x$enable_dependency_tracking" != xno \
11671
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11672
  am__fastdepCC_TRUE=
11673
  am__fastdepCC_FALSE='#'
11674
else
11675
  am__fastdepCC_TRUE='#'
11676
  am__fastdepCC_FALSE=
11677
fi
11678
 
11679
 
11680
 
11681 625 jeremybenn
# Check whether --enable-silent-rules was given.
11682
if test "${enable_silent_rules+set}" = set; then :
11683
  enableval=$enable_silent_rules;
11684
fi
11685 91 jeremybenn
 
11686 625 jeremybenn
case $enable_silent_rules in
11687
yes) AM_DEFAULT_VERBOSITY=0;;
11688
no)  AM_DEFAULT_VERBOSITY=1;;
11689
*)   AM_DEFAULT_VERBOSITY=0;;
11690
esac
11691
AM_BACKSLASH='\'
11692
 
11693
 
11694 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
11695
 
11696
 
11697
 
11698
 
11699
# make sure we are using a recent autoconf version
11700
 
11701
 
11702
# yuck.
11703
case "$target_cpu" in
11704
or32*)  CPU_ARCH=or32;
11705
        ARCH_ISA=OR32;
11706
 
11707 346 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
11708 82 jeremybenn
;;
11709 385 jeremybenn
 
11710
*)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&5
11711
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&2;};
11712 82 jeremybenn
        CPU_ARCH=or32;
11713
        ARCH_ISA=OR32;
11714
 
11715 346 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
11716 82 jeremybenn
;;
11717
esac
11718
 
11719
# determine endianism from target CPU name. If it has "little" in the name,
11720
# then its litte endian, otherwise its big endian (default for OR1K)
11721
case "$target_cpu" in
11722
*little*)
11723 346 jeremybenn
$as_echo "#define OR32_LITTLE_ENDIAN 1" >>confdefs.h
11724 82 jeremybenn
;;
11725
       *)
11726 346 jeremybenn
$as_echo "#define OR32_BIG_ENDIAN 1" >>confdefs.h
11727 82 jeremybenn
;;
11728
esac
11729
 
11730
 
11731
 
11732 236 jeremybenn
# Set the CFLAGS we want. We put the user flags last, so that if the user
11733
# changes the optimization level, that will take precedence.
11734 625 jeremybenn
# CFLAGS="-g -Wall -Werror -O2 -D$ARCH_ISA $CFLAGS"
11735
# 15-Aug-11: Jeremy Bennett. TODO temporarily remove -Werror to get round
11736
#            GCC 4.6 issues.
11737
CFLAGS="-g -Wall -O2 -D$ARCH_ISA $CFLAGS"
11738 82 jeremybenn
 
11739
# By default we simply use the C compiler to build assembly code.
11740
 
11741
test "${CCAS+set}" = set || CCAS=$CC
11742
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11743
 
11744
 
11745
 
11746
depcc="$CCAS"   am_compiler_list=
11747
 
11748 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11749 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11750 625 jeremybenn
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
11751 82 jeremybenn
  $as_echo_n "(cached) " >&6
11752 19 jeremybenn
else
11753
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11754
  # We make a subdir and do the tests there.  Otherwise we can end up
11755
  # making bogus files that we don't know about and never remove.  For
11756
  # instance it was reported that on HP-UX the gcc test will end up
11757
  # making a dummy file named `D' -- because `-MD' means `put the output
11758
  # in D'.
11759
  mkdir conftest.dir
11760
  # Copy depcomp to subdir because otherwise we won't find it if we're
11761
  # using a relative directory.
11762
  cp "$am_depcomp" conftest.dir
11763
  cd conftest.dir
11764
  # We will build objects and dependencies in a subdirectory because
11765
  # it helps to detect inapplicable dependency modes.  For instance
11766
  # both Tru64's cc and ICC support -MD to output dependencies as a
11767
  # side effect of compilation, but ICC will put the dependencies in
11768
  # the current directory while Tru64 will put them in the object
11769
  # directory.
11770
  mkdir sub
11771
 
11772 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11773 19 jeremybenn
  if test "$am_compiler_list" = ""; then
11774
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11775
  fi
11776 82 jeremybenn
  am__universal=false
11777
 
11778
 
11779 19 jeremybenn
  for depmode in $am_compiler_list; do
11780
    # Setup a source with many dependencies, because some compilers
11781
    # like to wrap large dependency lists on column 80 (with \), and
11782
    # we should not choose a depcomp mode which is confused by this.
11783
    #
11784
    # We need to recreate these files for each test, as the compiler may
11785
    # overwrite some of them when testing with obscure command lines.
11786
    # This happens at least with the AIX C compiler.
11787
    : > sub/conftest.c
11788
    for i in 1 2 3 4 5 6; do
11789
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11790
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11791
      # Solaris 8's {/usr,}/bin/sh.
11792
      touch sub/conftst$i.h
11793
    done
11794
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11795
 
11796 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11797
    # mode.  It turns out that the SunPro C++ compiler does not properly
11798
    # handle `-M -o', and we need to detect this.  Also, some Intel
11799
    # versions had trouble with output in subdirs
11800
    am__obj=sub/conftest.${OBJEXT-o}
11801
    am__minus_obj="-o $am__obj"
11802 19 jeremybenn
    case $depmode in
11803 82 jeremybenn
    gcc)
11804
      # This depmode causes a compiler race in universal mode.
11805
      test "$am__universal" = false || continue
11806
      ;;
11807 19 jeremybenn
    nosideeffect)
11808
      # after this tag, mechanisms are not by side-effect, so they'll
11809
      # only be used when explicitly requested
11810
      if test "x$enable_dependency_tracking" = xyes; then
11811
        continue
11812
      else
11813
        break
11814
      fi
11815
      ;;
11816 82 jeremybenn
    msvisualcpp | msvcmsys)
11817
      # This compiler won't grok `-c -o', but also, the minuso test has
11818
      # not run yet.  These depmodes are late enough in the game, and
11819
      # so weak that their functioning should not be impacted.
11820
      am__obj=conftest.${OBJEXT-o}
11821
      am__minus_obj=
11822
      ;;
11823 19 jeremybenn
    none) break ;;
11824
    esac
11825
    if depmode=$depmode \
11826 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11827 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11828 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11829 19 jeremybenn
         >/dev/null 2>conftest.err &&
11830
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11831
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11832 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11833 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11834
      # icc doesn't choke on unknown options, it will just issue warnings
11835
      # or remarks (even with -Werror).  So we grep stderr for any message
11836
      # that says an option was ignored or not supported.
11837
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11838
      #   icc: Command line warning: ignoring option '-M'; no argument required
11839
      # The diagnosis changed in icc 8.0:
11840
      #   icc: Command line remark: option '-MP' not supported
11841
      if (grep 'ignoring option' conftest.err ||
11842
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11843 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11844 19 jeremybenn
        break
11845
      fi
11846
    fi
11847
  done
11848
 
11849
  cd ..
11850
  rm -rf conftest.dir
11851
else
11852 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11853 19 jeremybenn
fi
11854
 
11855
fi
11856 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11857 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11858
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11859 19 jeremybenn
 
11860
 if
11861
  test "x$enable_dependency_tracking" != xno \
11862 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11863
  am__fastdepCCAS_TRUE=
11864
  am__fastdepCCAS_FALSE='#'
11865 19 jeremybenn
else
11866 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11867
  am__fastdepCCAS_FALSE=
11868 19 jeremybenn
fi
11869
 
11870
 
11871
 
11872
ac_ext=c
11873
ac_cpp='$CPP $CPPFLAGS'
11874
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11875
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11876
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11877
if test -n "$ac_tool_prefix"; then
11878
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11879
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11880 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11881 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11882 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
11883 82 jeremybenn
  $as_echo_n "(cached) " >&6
11884 19 jeremybenn
else
11885
  if test -n "$CC"; then
11886
  ac_cv_prog_CC="$CC" # Let the user override the test.
11887
else
11888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889
for as_dir in $PATH
11890
do
11891
  IFS=$as_save_IFS
11892
  test -z "$as_dir" && as_dir=.
11893 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11894 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11895
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11896 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897 19 jeremybenn
    break 2
11898
  fi
11899
done
11900 346 jeremybenn
  done
11901 19 jeremybenn
IFS=$as_save_IFS
11902
 
11903
fi
11904
fi
11905
CC=$ac_cv_prog_CC
11906
if test -n "$CC"; then
11907 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11908 82 jeremybenn
$as_echo "$CC" >&6; }
11909 19 jeremybenn
else
11910 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 82 jeremybenn
$as_echo "no" >&6; }
11912 19 jeremybenn
fi
11913
 
11914
 
11915
fi
11916
if test -z "$ac_cv_prog_CC"; then
11917
  ac_ct_CC=$CC
11918
  # Extract the first word of "gcc", so it can be a program name with args.
11919
set dummy gcc; ac_word=$2
11920 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11921 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11922 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
11923 82 jeremybenn
  $as_echo_n "(cached) " >&6
11924 19 jeremybenn
else
11925
  if test -n "$ac_ct_CC"; then
11926
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11927
else
11928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929
for as_dir in $PATH
11930
do
11931
  IFS=$as_save_IFS
11932
  test -z "$as_dir" && as_dir=.
11933 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11934 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11935
    ac_cv_prog_ac_ct_CC="gcc"
11936 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11937 19 jeremybenn
    break 2
11938
  fi
11939
done
11940 346 jeremybenn
  done
11941 19 jeremybenn
IFS=$as_save_IFS
11942
 
11943
fi
11944
fi
11945
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11946
if test -n "$ac_ct_CC"; then
11947 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11948 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11949 19 jeremybenn
else
11950 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 82 jeremybenn
$as_echo "no" >&6; }
11952 19 jeremybenn
fi
11953
 
11954
  if test "x$ac_ct_CC" = x; then
11955
    CC=""
11956
  else
11957
    case $cross_compiling:$ac_tool_warned in
11958
yes:)
11959 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11960 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11961 19 jeremybenn
ac_tool_warned=yes ;;
11962
esac
11963
    CC=$ac_ct_CC
11964
  fi
11965
else
11966
  CC="$ac_cv_prog_CC"
11967
fi
11968
 
11969
if test -z "$CC"; then
11970
          if test -n "$ac_tool_prefix"; then
11971
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11972
set dummy ${ac_tool_prefix}cc; ac_word=$2
11973 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11975 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
11976 82 jeremybenn
  $as_echo_n "(cached) " >&6
11977 19 jeremybenn
else
11978
  if test -n "$CC"; then
11979
  ac_cv_prog_CC="$CC" # Let the user override the test.
11980
else
11981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982
for as_dir in $PATH
11983
do
11984
  IFS=$as_save_IFS
11985
  test -z "$as_dir" && as_dir=.
11986 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11987 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11988
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11989 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11990 19 jeremybenn
    break 2
11991
  fi
11992
done
11993 346 jeremybenn
  done
11994 19 jeremybenn
IFS=$as_save_IFS
11995
 
11996
fi
11997
fi
11998
CC=$ac_cv_prog_CC
11999
if test -n "$CC"; then
12000 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12001 82 jeremybenn
$as_echo "$CC" >&6; }
12002 19 jeremybenn
else
12003 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 82 jeremybenn
$as_echo "no" >&6; }
12005 19 jeremybenn
fi
12006
 
12007
 
12008
  fi
12009
fi
12010
if test -z "$CC"; then
12011
  # Extract the first word of "cc", so it can be a program name with args.
12012
set dummy cc; ac_word=$2
12013 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
12015 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
12016 82 jeremybenn
  $as_echo_n "(cached) " >&6
12017 19 jeremybenn
else
12018
  if test -n "$CC"; then
12019
  ac_cv_prog_CC="$CC" # Let the user override the test.
12020
else
12021
  ac_prog_rejected=no
12022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023
for as_dir in $PATH
12024
do
12025
  IFS=$as_save_IFS
12026
  test -z "$as_dir" && as_dir=.
12027 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12028 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12030
       ac_prog_rejected=yes
12031
       continue
12032
     fi
12033
    ac_cv_prog_CC="cc"
12034 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 19 jeremybenn
    break 2
12036
  fi
12037
done
12038 346 jeremybenn
  done
12039 19 jeremybenn
IFS=$as_save_IFS
12040
 
12041
if test $ac_prog_rejected = yes; then
12042
  # We found a bogon in the path, so make sure we never use it.
12043
  set dummy $ac_cv_prog_CC
12044
  shift
12045
  if test $# != 0; then
12046
    # We chose a different compiler from the bogus one.
12047
    # However, it has the same basename, so the bogon will be chosen
12048
    # first if we set CC to just the basename; use the full file name.
12049
    shift
12050
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12051
  fi
12052
fi
12053
fi
12054
fi
12055
CC=$ac_cv_prog_CC
12056
if test -n "$CC"; then
12057 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12058 82 jeremybenn
$as_echo "$CC" >&6; }
12059 19 jeremybenn
else
12060 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 82 jeremybenn
$as_echo "no" >&6; }
12062 19 jeremybenn
fi
12063
 
12064
 
12065
fi
12066
if test -z "$CC"; then
12067
  if test -n "$ac_tool_prefix"; then
12068
  for ac_prog in cl.exe
12069
  do
12070
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12071
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12072 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
12074 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
12075 82 jeremybenn
  $as_echo_n "(cached) " >&6
12076 19 jeremybenn
else
12077
  if test -n "$CC"; then
12078
  ac_cv_prog_CC="$CC" # Let the user override the test.
12079
else
12080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081
for as_dir in $PATH
12082
do
12083
  IFS=$as_save_IFS
12084
  test -z "$as_dir" && as_dir=.
12085 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12086 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12087
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12088 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 19 jeremybenn
    break 2
12090
  fi
12091
done
12092 346 jeremybenn
  done
12093 19 jeremybenn
IFS=$as_save_IFS
12094
 
12095
fi
12096
fi
12097
CC=$ac_cv_prog_CC
12098
if test -n "$CC"; then
12099 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12100 82 jeremybenn
$as_echo "$CC" >&6; }
12101 19 jeremybenn
else
12102 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 82 jeremybenn
$as_echo "no" >&6; }
12104 19 jeremybenn
fi
12105
 
12106
 
12107
    test -n "$CC" && break
12108
  done
12109
fi
12110
if test -z "$CC"; then
12111
  ac_ct_CC=$CC
12112
  for ac_prog in cl.exe
12113
do
12114
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12115
set dummy $ac_prog; ac_word=$2
12116 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
12118 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12119 82 jeremybenn
  $as_echo_n "(cached) " >&6
12120 19 jeremybenn
else
12121
  if test -n "$ac_ct_CC"; then
12122
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12123
else
12124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125
for as_dir in $PATH
12126
do
12127
  IFS=$as_save_IFS
12128
  test -z "$as_dir" && as_dir=.
12129 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12130 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131
    ac_cv_prog_ac_ct_CC="$ac_prog"
12132 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 19 jeremybenn
    break 2
12134
  fi
12135
done
12136 346 jeremybenn
  done
12137 19 jeremybenn
IFS=$as_save_IFS
12138
 
12139
fi
12140
fi
12141
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12142
if test -n "$ac_ct_CC"; then
12143 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12144 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
12145 19 jeremybenn
else
12146 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 82 jeremybenn
$as_echo "no" >&6; }
12148 19 jeremybenn
fi
12149
 
12150
 
12151
  test -n "$ac_ct_CC" && break
12152
done
12153
 
12154
  if test "x$ac_ct_CC" = x; then
12155
    CC=""
12156
  else
12157
    case $cross_compiling:$ac_tool_warned in
12158
yes:)
12159 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12160 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12161 19 jeremybenn
ac_tool_warned=yes ;;
12162
esac
12163
    CC=$ac_ct_CC
12164
  fi
12165
fi
12166
 
12167
fi
12168
 
12169
 
12170 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12171 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12172 625 jeremybenn
as_fn_error $? "no acceptable C compiler found in \$PATH
12173
See \`config.log' for more details" "$LINENO" 5; }
12174 19 jeremybenn
 
12175
# Provide some information about the compiler.
12176 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12177 82 jeremybenn
set X $ac_compile
12178
ac_compiler=$2
12179 346 jeremybenn
for ac_option in --version -v -V -qversion; do
12180
  { { ac_try="$ac_compiler $ac_option >&5"
12181 19 jeremybenn
case "(($ac_try" in
12182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183
  *) ac_try_echo=$ac_try;;
12184
esac
12185 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12186
$as_echo "$ac_try_echo"; } >&5
12187
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12188 19 jeremybenn
  ac_status=$?
12189 346 jeremybenn
  if test -s conftest.err; then
12190
    sed '10a\
12191
... rest of stderr output deleted ...
12192
         10q' conftest.err >conftest.er1
12193
    cat conftest.er1 >&5
12194
  fi
12195 625 jeremybenn
  rm -f conftest.er1 conftest.err
12196 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12197
  test $ac_status = 0; }
12198
done
12199 19 jeremybenn
 
12200 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12201 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12202 625 jeremybenn
if ${ac_cv_c_compiler_gnu+:} false; then :
12203 82 jeremybenn
  $as_echo_n "(cached) " >&6
12204 19 jeremybenn
else
12205 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 19 jeremybenn
/* end confdefs.h.  */
12207
 
12208
int
12209
main ()
12210
{
12211
#ifndef __GNUC__
12212
       choke me
12213
#endif
12214
 
12215
  ;
12216
  return 0;
12217
}
12218
_ACEOF
12219 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12220 19 jeremybenn
  ac_compiler_gnu=yes
12221
else
12222 346 jeremybenn
  ac_compiler_gnu=no
12223 19 jeremybenn
fi
12224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12226
 
12227
fi
12228 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12229 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12230
if test $ac_compiler_gnu = yes; then
12231
  GCC=yes
12232
else
12233
  GCC=
12234
fi
12235 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
12236
ac_save_CFLAGS=$CFLAGS
12237 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12238 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12239 625 jeremybenn
if ${ac_cv_prog_cc_g+:} false; then :
12240 82 jeremybenn
  $as_echo_n "(cached) " >&6
12241 19 jeremybenn
else
12242
  ac_save_c_werror_flag=$ac_c_werror_flag
12243
   ac_c_werror_flag=yes
12244
   ac_cv_prog_cc_g=no
12245
   CFLAGS="-g"
12246 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 19 jeremybenn
/* end confdefs.h.  */
12248
 
12249
int
12250
main ()
12251
{
12252
 
12253
  ;
12254
  return 0;
12255
}
12256
_ACEOF
12257 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12258 19 jeremybenn
  ac_cv_prog_cc_g=yes
12259
else
12260 346 jeremybenn
  CFLAGS=""
12261
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 19 jeremybenn
/* end confdefs.h.  */
12263
 
12264
int
12265
main ()
12266
{
12267
 
12268
  ;
12269
  return 0;
12270
}
12271
_ACEOF
12272 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12273
 
12274 236 jeremybenn
else
12275 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
12276 19 jeremybenn
         CFLAGS="-g"
12277 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 19 jeremybenn
/* end confdefs.h.  */
12279
 
12280
int
12281
main ()
12282
{
12283
 
12284
  ;
12285
  return 0;
12286
}
12287
_ACEOF
12288 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12289 19 jeremybenn
  ac_cv_prog_cc_g=yes
12290
fi
12291
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292
fi
12293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12294
fi
12295
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296
   ac_c_werror_flag=$ac_save_c_werror_flag
12297
fi
12298 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12299 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
12300 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
12301
  CFLAGS=$ac_save_CFLAGS
12302
elif test $ac_cv_prog_cc_g = yes; then
12303
  if test "$GCC" = yes; then
12304
    CFLAGS="-g -O2"
12305
  else
12306
    CFLAGS="-g"
12307
  fi
12308
else
12309
  if test "$GCC" = yes; then
12310
    CFLAGS="-O2"
12311
  else
12312
    CFLAGS=
12313
  fi
12314
fi
12315 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12316 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12317 625 jeremybenn
if ${ac_cv_prog_cc_c89+:} false; then :
12318 82 jeremybenn
  $as_echo_n "(cached) " >&6
12319 19 jeremybenn
else
12320
  ac_cv_prog_cc_c89=no
12321
ac_save_CC=$CC
12322 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 19 jeremybenn
/* end confdefs.h.  */
12324
#include 
12325
#include 
12326
#include 
12327
#include 
12328
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12329
struct buf { int x; };
12330
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12331
static char *e (p, i)
12332
     char **p;
12333
     int i;
12334
{
12335
  return p[i];
12336
}
12337
static char *f (char * (*g) (char **, int), char **p, ...)
12338
{
12339
  char *s;
12340
  va_list v;
12341
  va_start (v,p);
12342
  s = g (p, va_arg (v,int));
12343
  va_end (v);
12344
  return s;
12345
}
12346
 
12347
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12348
   function prototypes and stuff, but not '\xHH' hex character constants.
12349
   These don't provoke an error unfortunately, instead are silently treated
12350
   as 'x'.  The following induces an error, until -std is added to get
12351
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12352
   array size at least.  It's necessary to write '\x00'==0 to get something
12353
   that's true only with -std.  */
12354
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12355
 
12356
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12357
   inside strings and character constants.  */
12358
#define FOO(x) 'x'
12359
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12360
 
12361
int test (int i, double x);
12362
struct s1 {int (*f) (int a);};
12363
struct s2 {int (*f) (double a);};
12364
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12365
int argc;
12366
char **argv;
12367
int
12368
main ()
12369
{
12370
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12371
  ;
12372
  return 0;
12373
}
12374
_ACEOF
12375
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12376
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12377
do
12378
  CC="$ac_save_CC $ac_arg"
12379 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
12380 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
12381
fi
12382
rm -f core conftest.err conftest.$ac_objext
12383
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12384
done
12385
rm -f conftest.$ac_ext
12386
CC=$ac_save_CC
12387
 
12388
fi
12389
# AC_CACHE_VAL
12390
case "x$ac_cv_prog_cc_c89" in
12391
  x)
12392 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12393 82 jeremybenn
$as_echo "none needed" >&6; } ;;
12394 19 jeremybenn
  xno)
12395 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12396 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
12397 19 jeremybenn
  *)
12398
    CC="$CC $ac_cv_prog_cc_c89"
12399 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12400 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12401 19 jeremybenn
esac
12402 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
12403 19 jeremybenn
 
12404 346 jeremybenn
fi
12405 19 jeremybenn
 
12406
ac_ext=c
12407
ac_cpp='$CPP $CPPFLAGS'
12408
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12409
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12410
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12411
 
12412
if test "x$CC" != xcc; then
12413 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12414 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12415 19 jeremybenn
else
12416 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12417 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12418 19 jeremybenn
fi
12419 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
12420 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12421 625 jeremybenn
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12422 82 jeremybenn
  $as_echo_n "(cached) " >&6
12423 19 jeremybenn
else
12424 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 19 jeremybenn
/* end confdefs.h.  */
12426
 
12427
int
12428
main ()
12429
{
12430
 
12431
  ;
12432
  return 0;
12433
}
12434
_ACEOF
12435
# Make sure it works both with $CC and with simple cc.
12436
# We do the test twice because some compilers refuse to overwrite an
12437
# existing .o file with -o, though they will create one.
12438
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12439
rm -f conftest2.*
12440 346 jeremybenn
if { { case "(($ac_try" in
12441 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442
  *) ac_try_echo=$ac_try;;
12443
esac
12444 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12445
$as_echo "$ac_try_echo"; } >&5
12446 19 jeremybenn
  (eval "$ac_try") 2>&5
12447
  ac_status=$?
12448 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12449
  test $ac_status = 0; } &&
12450
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
12451 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452
  *) ac_try_echo=$ac_try;;
12453
esac
12454 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12455
$as_echo "$ac_try_echo"; } >&5
12456 19 jeremybenn
  (eval "$ac_try") 2>&5
12457
  ac_status=$?
12458 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459
  test $ac_status = 0; };
12460 19 jeremybenn
then
12461
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12462
  if test "x$CC" != xcc; then
12463
    # Test first that cc exists at all.
12464
    if { ac_try='cc -c conftest.$ac_ext >&5'
12465 346 jeremybenn
  { { case "(($ac_try" in
12466 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467
  *) ac_try_echo=$ac_try;;
12468
esac
12469 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12470
$as_echo "$ac_try_echo"; } >&5
12471 19 jeremybenn
  (eval "$ac_try") 2>&5
12472
  ac_status=$?
12473 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12474
  test $ac_status = 0; }; }; then
12475 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12476
      rm -f conftest2.*
12477 346 jeremybenn
      if { { case "(($ac_try" in
12478 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479
  *) ac_try_echo=$ac_try;;
12480
esac
12481 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12482
$as_echo "$ac_try_echo"; } >&5
12483 19 jeremybenn
  (eval "$ac_try") 2>&5
12484
  ac_status=$?
12485 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12486
  test $ac_status = 0; } &&
12487
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
12488 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489
  *) ac_try_echo=$ac_try;;
12490
esac
12491 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12492
$as_echo "$ac_try_echo"; } >&5
12493 19 jeremybenn
  (eval "$ac_try") 2>&5
12494
  ac_status=$?
12495 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12496
  test $ac_status = 0; };
12497 19 jeremybenn
      then
12498
        # cc works too.
12499
        :
12500
      else
12501
        # cc exists but doesn't like -o.
12502
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
12503
      fi
12504
    fi
12505
  fi
12506
else
12507
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12508
fi
12509
rm -f core conftest*
12510
 
12511
fi
12512
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12513 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12514 82 jeremybenn
$as_echo "yes" >&6; }
12515 19 jeremybenn
else
12516 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 82 jeremybenn
$as_echo "no" >&6; }
12518 19 jeremybenn
 
12519 346 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12520 19 jeremybenn
 
12521
fi
12522
 
12523
# FIXME: we rely on the cache variable name because
12524
# there is no other way.
12525
set dummy $CC
12526 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12527
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12528
if test "$am_t" != yes; then
12529 19 jeremybenn
   # Losing compiler, so override with the script.
12530
   # FIXME: It is wrong to rewrite CC.
12531
   # But if we don't then we get into trouble of one sort or another.
12532
   # A longer-term fix would be to have automake use am__CC in this case,
12533
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12534
   CC="$am_aux_dir/compile $CC"
12535
fi
12536
 
12537
 
12538
 
12539 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12540 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12541
set x ${MAKE-make}
12542
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12543 625 jeremybenn
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12544 82 jeremybenn
  $as_echo_n "(cached) " >&6
12545 19 jeremybenn
else
12546
  cat >conftest.make <<\_ACEOF
12547
SHELL = /bin/sh
12548
all:
12549
        @echo '@@@%%%=$(MAKE)=@@@%%%'
12550
_ACEOF
12551 625 jeremybenn
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12552 19 jeremybenn
case `${MAKE-make} -f conftest.make 2>/dev/null` in
12553
  *@@@%%%=?*=@@@%%%*)
12554
    eval ac_cv_prog_make_${ac_make}_set=yes;;
12555
  *)
12556
    eval ac_cv_prog_make_${ac_make}_set=no;;
12557
esac
12558
rm -f conftest.make
12559
fi
12560
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12561 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12562 82 jeremybenn
$as_echo "yes" >&6; }
12563 19 jeremybenn
  SET_MAKE=
12564
else
12565 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 82 jeremybenn
$as_echo "no" >&6; }
12567 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
12568
fi
12569
 
12570
 
12571 82 jeremybenn
 
12572 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
12573
set dummy ar; ac_word=$2
12574 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
12576 625 jeremybenn
if ${ac_cv_prog_AR+:} false; then :
12577 82 jeremybenn
  $as_echo_n "(cached) " >&6
12578 19 jeremybenn
else
12579
  if test -n "$AR"; then
12580
  ac_cv_prog_AR="$AR" # Let the user override the test.
12581
else
12582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583
for as_dir in $PATH
12584
do
12585
  IFS=$as_save_IFS
12586
  test -z "$as_dir" && as_dir=.
12587 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12588 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589
    ac_cv_prog_AR="ar"
12590 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 19 jeremybenn
    break 2
12592
  fi
12593
done
12594 346 jeremybenn
  done
12595 19 jeremybenn
IFS=$as_save_IFS
12596
 
12597
fi
12598
fi
12599
AR=$ac_cv_prog_AR
12600
if test -n "$AR"; then
12601 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12602 82 jeremybenn
$as_echo "$AR" >&6; }
12603 19 jeremybenn
else
12604 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 82 jeremybenn
$as_echo "no" >&6; }
12606 19 jeremybenn
fi
12607
 
12608
 
12609
 
12610
# Set default for ARFLAGS, since autoconf does not have a macro for it.
12611
# This allows people to set it when running configure or make
12612
test -n "$ARFLAGS" || ARFLAGS="cr"
12613
 
12614 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12615 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
12616 625 jeremybenn
if ${ac_cv_type_signal+:} false; then :
12617 82 jeremybenn
  $as_echo_n "(cached) " >&6
12618 19 jeremybenn
else
12619 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 19 jeremybenn
/* end confdefs.h.  */
12621
#include 
12622
#include 
12623
 
12624
int
12625
main ()
12626
{
12627
return *(signal (0, 0)) (0) == 1;
12628
  ;
12629
  return 0;
12630
}
12631
_ACEOF
12632 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12633 19 jeremybenn
  ac_cv_type_signal=int
12634
else
12635 346 jeremybenn
  ac_cv_type_signal=void
12636 19 jeremybenn
fi
12637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638
fi
12639 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12640 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
12641 19 jeremybenn
 
12642
cat >>confdefs.h <<_ACEOF
12643
#define RETSIGTYPE $ac_cv_type_signal
12644
_ACEOF
12645
 
12646
 
12647 236 jeremybenn
for ac_header in unistd.h stdlib.h stdarg.h string.h strings.h      \
12648 82 jeremybenn
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
12649
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
12650 118 jeremybenn
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
12651 538 julius
                 limits.h linux/if_tun.h
12652 346 jeremybenn
do :
12653
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12654
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12655 625 jeremybenn
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12656 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
12657
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12658 19 jeremybenn
_ACEOF
12659
 
12660
fi
12661
 
12662
done
12663
 
12664
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
12665 346 jeremybenn
do :
12666
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12667
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12668 625 jeremybenn
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12669 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12670 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12671 19 jeremybenn
_ACEOF
12672
 
12673
fi
12674
done
12675
 
12676 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
12677 346 jeremybenn
do :
12678
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12679
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12680 625 jeremybenn
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12681 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12682 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12683 19 jeremybenn
_ACEOF
12684
 
12685
fi
12686
done
12687
 
12688
for ac_func in basename
12689 346 jeremybenn
do :
12690
  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12691 625 jeremybenn
if test "x$ac_cv_func_basename" = xyes; then :
12692 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12693 346 jeremybenn
#define HAVE_BASENAME 1
12694 19 jeremybenn
_ACEOF
12695
 
12696
fi
12697
done
12698
 
12699 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
12700 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
12701 625 jeremybenn
if ${ac_cv_func_strcoll_works+:} false; then :
12702 82 jeremybenn
  $as_echo_n "(cached) " >&6
12703 19 jeremybenn
else
12704 346 jeremybenn
  if test "$cross_compiling" = yes; then :
12705 19 jeremybenn
  ac_cv_func_strcoll_works=no
12706
else
12707 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708 19 jeremybenn
/* end confdefs.h.  */
12709
$ac_includes_default
12710
int
12711
main ()
12712
{
12713
return (strcoll ("abc", "def") >= 0 ||
12714
         strcoll ("ABC", "DEF") >= 0 ||
12715
         strcoll ("123", "456") >= 0)
12716
  ;
12717
  return 0;
12718
}
12719
_ACEOF
12720 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12721 19 jeremybenn
  ac_cv_func_strcoll_works=yes
12722
else
12723 346 jeremybenn
  ac_cv_func_strcoll_works=no
12724 19 jeremybenn
fi
12725 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12726
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12727 19 jeremybenn
fi
12728
 
12729
fi
12730 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
12731 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
12732 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
12733
 
12734 346 jeremybenn
$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
12735 19 jeremybenn
 
12736
fi
12737
 
12738 346 jeremybenn
ac_fn_c_check_decl "$LINENO" "I_PUSH" "ac_cv_have_decl_I_PUSH" "\
12739 82 jeremybenn
               #include 
12740 346 jeremybenn
"
12741 625 jeremybenn
if test "x$ac_cv_have_decl_I_PUSH" = xyes; then :
12742 346 jeremybenn
  ac_have_decl=1
12743 19 jeremybenn
else
12744 346 jeremybenn
  ac_have_decl=0
12745 19 jeremybenn
fi
12746
 
12747 82 jeremybenn
cat >>confdefs.h <<_ACEOF
12748 346 jeremybenn
#define HAVE_DECL_I_PUSH $ac_have_decl
12749 19 jeremybenn
_ACEOF
12750 346 jeremybenn
ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "\
12751 82 jeremybenn
               #include 
12752 346 jeremybenn
"
12753 625 jeremybenn
if test "x$ac_cv_have_decl_rl_event_hook" = xyes; then :
12754 346 jeremybenn
  ac_have_decl=1
12755 19 jeremybenn
else
12756 346 jeremybenn
  ac_have_decl=0
12757 19 jeremybenn
fi
12758
 
12759 82 jeremybenn
cat >>confdefs.h <<_ACEOF
12760 346 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
12761 19 jeremybenn
_ACEOF
12762
 
12763 346 jeremybenn
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12764 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12765 625 jeremybenn
if ${ac_cv_c_bigendian+:} false; then :
12766 82 jeremybenn
  $as_echo_n "(cached) " >&6
12767 19 jeremybenn
else
12768 82 jeremybenn
  ac_cv_c_bigendian=unknown
12769
    # See if we're dealing with a universal compiler.
12770 346 jeremybenn
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 19 jeremybenn
/* end confdefs.h.  */
12772 82 jeremybenn
#ifndef __APPLE_CC__
12773
               not a universal capable compiler
12774
             #endif
12775
             typedef int dummy;
12776
 
12777 19 jeremybenn
_ACEOF
12778 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12779 82 jeremybenn
 
12780
        # Check for potential -arch flags.  It is not universal unless
12781 346 jeremybenn
        # there are at least two -arch flags with different values.
12782
        ac_arch=
12783
        ac_prev=
12784
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12785
         if test -n "$ac_prev"; then
12786
           case $ac_word in
12787
             i?86 | x86_64 | ppc | ppc64)
12788
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12789
                 ac_arch=$ac_word
12790
               else
12791
                 ac_cv_c_bigendian=universal
12792
                 break
12793
               fi
12794
               ;;
12795
           esac
12796
           ac_prev=
12797
         elif test "x$ac_word" = "x-arch"; then
12798
           ac_prev=arch
12799
         fi
12800
       done
12801 19 jeremybenn
fi
12802
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
12804
      # See if sys/param.h defines the BYTE_ORDER macro.
12805 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 19 jeremybenn
/* end confdefs.h.  */
12807 82 jeremybenn
#include 
12808
             #include 
12809
 
12810
int
12811
main ()
12812
{
12813
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12814
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12815
                     && LITTLE_ENDIAN)
12816
              bogus endian macros
12817
             #endif
12818
 
12819
  ;
12820
  return 0;
12821
}
12822 19 jeremybenn
_ACEOF
12823 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12824 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
12825 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 19 jeremybenn
/* end confdefs.h.  */
12827 82 jeremybenn
#include 
12828
                #include 
12829
 
12830 19 jeremybenn
int
12831
main ()
12832
{
12833 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
12834
                 not big endian
12835
                #endif
12836 19 jeremybenn
 
12837
  ;
12838
  return 0;
12839
}
12840
_ACEOF
12841 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12842 82 jeremybenn
  ac_cv_c_bigendian=yes
12843 19 jeremybenn
else
12844 346 jeremybenn
  ac_cv_c_bigendian=no
12845 19 jeremybenn
fi
12846
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12847
fi
12848 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849
    fi
12850
    if test $ac_cv_c_bigendian = unknown; then
12851
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12852 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 19 jeremybenn
/* end confdefs.h.  */
12854 82 jeremybenn
#include 
12855 19 jeremybenn
 
12856
int
12857
main ()
12858
{
12859 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12860
              bogus endian macros
12861
             #endif
12862 19 jeremybenn
 
12863
  ;
12864
  return 0;
12865
}
12866
_ACEOF
12867 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12868 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
12869 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 19 jeremybenn
/* end confdefs.h.  */
12871 82 jeremybenn
#include 
12872 19 jeremybenn
 
12873
int
12874
main ()
12875
{
12876 82 jeremybenn
#ifndef _BIG_ENDIAN
12877
                 not big endian
12878
                #endif
12879 19 jeremybenn
 
12880
  ;
12881
  return 0;
12882
}
12883
_ACEOF
12884 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12885 19 jeremybenn
  ac_cv_c_bigendian=yes
12886
else
12887 346 jeremybenn
  ac_cv_c_bigendian=no
12888 19 jeremybenn
fi
12889
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 82 jeremybenn
fi
12891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892
    fi
12893
    if test $ac_cv_c_bigendian = unknown; then
12894
      # Compile a test program.
12895 346 jeremybenn
      if test "$cross_compiling" = yes; then :
12896 82 jeremybenn
  # Try to guess by grepping values from an object file.
12897 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 19 jeremybenn
/* end confdefs.h.  */
12899 82 jeremybenn
short int ascii_mm[] =
12900
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12901
                short int ascii_ii[] =
12902
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12903
                int use_ascii (int i) {
12904
                  return ascii_mm[i] + ascii_ii[i];
12905
                }
12906
                short int ebcdic_ii[] =
12907
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12908
                short int ebcdic_mm[] =
12909
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12910
                int use_ebcdic (int i) {
12911
                  return ebcdic_mm[i] + ebcdic_ii[i];
12912
                }
12913
                extern int foo;
12914
 
12915 19 jeremybenn
int
12916
main ()
12917
{
12918 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
12919 19 jeremybenn
  ;
12920
  return 0;
12921
}
12922
_ACEOF
12923 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12924 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12925
              ac_cv_c_bigendian=yes
12926
            fi
12927
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12928
              if test "$ac_cv_c_bigendian" = unknown; then
12929
                ac_cv_c_bigendian=no
12930
              else
12931
                # finding both strings is unlikely to happen, but who knows?
12932
                ac_cv_c_bigendian=unknown
12933
              fi
12934
            fi
12935 19 jeremybenn
fi
12936
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12937
else
12938 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 19 jeremybenn
/* end confdefs.h.  */
12940
$ac_includes_default
12941
int
12942
main ()
12943
{
12944
 
12945 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
12946
             union
12947
             {
12948
               long int l;
12949
               char c[sizeof (long int)];
12950
             } u;
12951
             u.l = 1;
12952
             return u.c[sizeof (long int) - 1] == 1;
12953 19 jeremybenn
 
12954
  ;
12955
  return 0;
12956
}
12957
_ACEOF
12958 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12959 19 jeremybenn
  ac_cv_c_bigendian=no
12960
else
12961 346 jeremybenn
  ac_cv_c_bigendian=yes
12962 19 jeremybenn
fi
12963 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12964
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12965 19 jeremybenn
fi
12966
 
12967 82 jeremybenn
    fi
12968 19 jeremybenn
fi
12969 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12970 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
12971
 case $ac_cv_c_bigendian in #(
12972
   yes)
12973 346 jeremybenn
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12974 82 jeremybenn
;; #(
12975
   no)
12976
      ;; #(
12977
   universal)
12978 19 jeremybenn
 
12979 346 jeremybenn
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12980 82 jeremybenn
 
12981
     ;; #(
12982
   *)
12983 625 jeremybenn
     as_fn_error $? "unknown endianness
12984 346 jeremybenn
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12985 82 jeremybenn
 esac
12986
 
12987
 
12988
# The test for strndup, strcasecmp and isblank fails on modern machines. I
12989
# think it's because GCC 4 does not like the way autoconf overrides the built
12990
# in type declaration. So we must check for them by steam.
12991 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strndup" >&5
12992 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
12993 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 82 jeremybenn
/* end confdefs.h.  */
12995
#ifdef HAVE_STRING_H
12996
                                  #include 
12997
                                  #else
12998
                                  char *strndup (const char *s,
12999
                                                 size_t      n);
13000
                                  #endif
13001
int
13002
main ()
13003
{
13004
\
13005
                                const char *s = "test";
13006 625 jeremybenn
                                  (void) strndup (s, 3);
13007 82 jeremybenn
  ;
13008
  return 0;
13009
}
13010
_ACEOF
13011 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
13012 82 jeremybenn
  \
13013
 
13014 346 jeremybenn
$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
13015 82 jeremybenn
 \
13016 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13017 82 jeremybenn
$as_echo "yes" >&6; }
13018
else
13019 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 82 jeremybenn
$as_echo "no" >&6; }
13021 19 jeremybenn
fi
13022 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
13023
    conftest$ac_exeext conftest.$ac_ext
13024 19 jeremybenn
 
13025 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
13026 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
13027 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 82 jeremybenn
/* end confdefs.h.  */
13029
#ifdef HAVE_STRINGS_H
13030
                                  #include 
13031
                                  #else
13032
                                  int strcasecmp (const char *s1,
13033
                                                  const char *s2);
13034
                                  #endif
13035
int
13036
main ()
13037
{
13038
\
13039
                                const char *s = "test";
13040
                                  const char *t = "TEST";
13041 625 jeremybenn
                                  (void) strcasecmp (s, t);
13042 82 jeremybenn
  ;
13043
  return 0;
13044
}
13045
_ACEOF
13046 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
13047 82 jeremybenn
  \
13048
 
13049 346 jeremybenn
$as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
13050 82 jeremybenn
 \
13051 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052 82 jeremybenn
$as_echo "yes" >&6; }
13053
else
13054 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 82 jeremybenn
$as_echo "no" >&6; }
13056
fi
13057 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
13058
    conftest$ac_exeext conftest.$ac_ext
13059 82 jeremybenn
 
13060 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
13061 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
13062 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 82 jeremybenn
/* end confdefs.h.  */
13064
#ifdef HAVE_CTYPE_H
13065
                                  #include 
13066
                                  #else
13067
                                  int isblank (int  c);
13068
                                  #endif
13069
int
13070
main ()
13071
{
13072
\
13073
                                return isblank ('x');
13074
  ;
13075
  return 0;
13076
}
13077
_ACEOF
13078 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
13079 82 jeremybenn
  \
13080 19 jeremybenn
 
13081 346 jeremybenn
$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
13082 82 jeremybenn
 \
13083 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084 82 jeremybenn
$as_echo "yes" >&6; }
13085
else
13086 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 82 jeremybenn
$as_echo "no" >&6; }
13088
fi
13089 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
13090
    conftest$ac_exeext conftest.$ac_ext
13091 82 jeremybenn
 
13092 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
13093 346 jeremybenn
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13094 625 jeremybenn
if test "x$ac_cv_type_size_t" = xyes; then :
13095 19 jeremybenn
 
13096
else
13097
 
13098
cat >>confdefs.h <<_ACEOF
13099
#define size_t unsigned int
13100
_ACEOF
13101
 
13102
fi
13103
 
13104 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13105 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13106 625 jeremybenn
if ${ac_cv_struct_tm+:} false; then :
13107 82 jeremybenn
  $as_echo_n "(cached) " >&6
13108 19 jeremybenn
else
13109 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 19 jeremybenn
/* end confdefs.h.  */
13111
#include 
13112
#include 
13113
 
13114
int
13115
main ()
13116
{
13117
struct tm tm;
13118
                                     int *p = &tm.tm_sec;
13119 82 jeremybenn
                                     return !p;
13120 19 jeremybenn
  ;
13121
  return 0;
13122
}
13123
_ACEOF
13124 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
13125 19 jeremybenn
  ac_cv_struct_tm=time.h
13126
else
13127 346 jeremybenn
  ac_cv_struct_tm=sys/time.h
13128 19 jeremybenn
fi
13129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130
fi
13131 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13132 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
13133 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
13134
 
13135 346 jeremybenn
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13136 19 jeremybenn
 
13137
fi
13138
 
13139
 
13140
# Checks for library functions (for argtable2).
13141
for ac_header in stdlib.h
13142 346 jeremybenn
do :
13143
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13144 625 jeremybenn
if test "x$ac_cv_header_stdlib_h" = xyes; then :
13145 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13146 346 jeremybenn
#define HAVE_STDLIB_H 1
13147 19 jeremybenn
_ACEOF
13148
 
13149
fi
13150
 
13151
done
13152
 
13153 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13154 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13155 625 jeremybenn
if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13156 82 jeremybenn
  $as_echo_n "(cached) " >&6
13157 19 jeremybenn
else
13158 346 jeremybenn
  if test "$cross_compiling" = yes; then :
13159 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
13160
else
13161 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 19 jeremybenn
/* end confdefs.h.  */
13163
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13164
# include 
13165
#else
13166
char *malloc ();
13167
#endif
13168
 
13169
int
13170
main ()
13171
{
13172
return ! malloc (0);
13173
  ;
13174
  return 0;
13175
}
13176
_ACEOF
13177 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
13178 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
13179
else
13180 346 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
13181 19 jeremybenn
fi
13182 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13183
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13184 19 jeremybenn
fi
13185
 
13186
fi
13187 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13188 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13189 346 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then :
13190 19 jeremybenn
 
13191 346 jeremybenn
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13192 19 jeremybenn
 
13193
else
13194 346 jeremybenn
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13195 19 jeremybenn
 
13196
   case " $LIBOBJS " in
13197
  *" malloc.$ac_objext "* ) ;;
13198
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13199
 ;;
13200
esac
13201
 
13202
 
13203 346 jeremybenn
$as_echo "#define malloc rpl_malloc" >>confdefs.h
13204 19 jeremybenn
 
13205
fi
13206
 
13207
 
13208
for ac_func in strftime
13209 346 jeremybenn
do :
13210
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13211 625 jeremybenn
if test "x$ac_cv_func_strftime" = xyes; then :
13212 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13213 346 jeremybenn
#define HAVE_STRFTIME 1
13214 19 jeremybenn
_ACEOF
13215
 
13216
else
13217
  # strftime is in -lintl on SCO UNIX.
13218 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13219 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
13220 625 jeremybenn
if ${ac_cv_lib_intl_strftime+:} false; then :
13221 82 jeremybenn
  $as_echo_n "(cached) " >&6
13222 19 jeremybenn
else
13223
  ac_check_lib_save_LIBS=$LIBS
13224
LIBS="-lintl  $LIBS"
13225 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 19 jeremybenn
/* end confdefs.h.  */
13227
 
13228
/* Override any GCC internal prototype to avoid an error.
13229
   Use char because int might match the return type of a GCC
13230
   builtin and then its argument prototype would still apply.  */
13231
#ifdef __cplusplus
13232
extern "C"
13233
#endif
13234
char strftime ();
13235
int
13236
main ()
13237
{
13238
return strftime ();
13239
  ;
13240
  return 0;
13241
}
13242
_ACEOF
13243 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
13244 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
13245
else
13246 346 jeremybenn
  ac_cv_lib_intl_strftime=no
13247 19 jeremybenn
fi
13248 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
13249
    conftest$ac_exeext conftest.$ac_ext
13250 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
13251
fi
13252 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13253 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
13254 625 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13255 346 jeremybenn
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13256 19 jeremybenn
 
13257
LIBS="-lintl $LIBS"
13258
fi
13259
 
13260
fi
13261
done
13262
 
13263 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
13264 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
13265 625 jeremybenn
if ${ac_cv_func_strtod+:} false; then :
13266 82 jeremybenn
  $as_echo_n "(cached) " >&6
13267 19 jeremybenn
else
13268 346 jeremybenn
  if test "$cross_compiling" = yes; then :
13269 19 jeremybenn
  ac_cv_func_strtod=no
13270
else
13271 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 19 jeremybenn
/* end confdefs.h.  */
13273
 
13274
$ac_includes_default
13275
#ifndef strtod
13276
double strtod ();
13277
#endif
13278
int
13279
main()
13280
{
13281
  {
13282
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
13283
    char *string = " +69";
13284
    char *term;
13285
    double value;
13286
    value = strtod (string, &term);
13287
    if (value != 69 || term != (string + 4))
13288
      return 1;
13289
  }
13290
 
13291
  {
13292
    /* Under Solaris 2.4, strtod returns the wrong value for the
13293
       terminating character under some conditions.  */
13294
    char *string = "NaN";
13295
    char *term;
13296
    strtod (string, &term);
13297
    if (term != string && *(term - 1) == 0)
13298
      return 1;
13299
  }
13300
  return 0;
13301
}
13302
 
13303
_ACEOF
13304 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
13305 19 jeremybenn
  ac_cv_func_strtod=yes
13306
else
13307 346 jeremybenn
  ac_cv_func_strtod=no
13308 19 jeremybenn
fi
13309 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13310
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13311 19 jeremybenn
fi
13312
 
13313
fi
13314 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
13315 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
13316 19 jeremybenn
if test $ac_cv_func_strtod = no; then
13317
  case " $LIBOBJS " in
13318
  *" strtod.$ac_objext "* ) ;;
13319
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13320
 ;;
13321
esac
13322
 
13323 346 jeremybenn
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
13324 625 jeremybenn
if test "x$ac_cv_func_pow" = xyes; then :
13325 19 jeremybenn
 
13326
fi
13327
 
13328
if test $ac_cv_func_pow = no; then
13329 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
13330 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
13331 625 jeremybenn
if ${ac_cv_lib_m_pow+:} false; then :
13332 82 jeremybenn
  $as_echo_n "(cached) " >&6
13333 19 jeremybenn
else
13334
  ac_check_lib_save_LIBS=$LIBS
13335
LIBS="-lm  $LIBS"
13336 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 19 jeremybenn
/* end confdefs.h.  */
13338
 
13339
/* Override any GCC internal prototype to avoid an error.
13340
   Use char because int might match the return type of a GCC
13341
   builtin and then its argument prototype would still apply.  */
13342
#ifdef __cplusplus
13343
extern "C"
13344
#endif
13345
char pow ();
13346
int
13347
main ()
13348
{
13349
return pow ();
13350
  ;
13351
  return 0;
13352
}
13353
_ACEOF
13354 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
13355 19 jeremybenn
  ac_cv_lib_m_pow=yes
13356
else
13357 346 jeremybenn
  ac_cv_lib_m_pow=no
13358 19 jeremybenn
fi
13359 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
13360
    conftest$ac_exeext conftest.$ac_ext
13361 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
13362
fi
13363 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
13364 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
13365 625 jeremybenn
if test "x$ac_cv_lib_m_pow" = xyes; then :
13366 19 jeremybenn
  POW_LIB=-lm
13367
else
13368 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
13369 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13370 19 jeremybenn
fi
13371
 
13372
fi
13373
 
13374
fi
13375
 
13376
for ac_func in bzero strchr strcspn strrchr strtol
13377 346 jeremybenn
do :
13378
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13379
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13380 625 jeremybenn
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13381 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13382 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13383 19 jeremybenn
_ACEOF
13384
 
13385
fi
13386
done
13387
 
13388 346 jeremybenn
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
13389 625 jeremybenn
if test "x$ac_cv_func_getopt_long" = xyes; then :
13390 19 jeremybenn
  SYS_GETOPTLONG=1
13391
else
13392
  SYS_GETOPTLONG=0
13393
fi
13394
 
13395 346 jeremybenn
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
13396 625 jeremybenn
if test "x$ac_cv_func_regcomp" = xyes; then :
13397 19 jeremybenn
  SYS_REGEX=1
13398
else
13399
  SYS_REGEX=0
13400
fi
13401
 
13402 346 jeremybenn
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13403 625 jeremybenn
if test "x$ac_cv_func_strptime" = xyes; then :
13404 19 jeremybenn
  SYS_STRPTIME=1
13405
else
13406
  SYS_STRPTIME=0
13407
fi
13408
 
13409
 
13410
# Define automake conditionals (for argtable2)
13411
 if test "$SYS_GETOPTLONG" = "1"; then
13412
  USE_SYS_GETOPTLONG_TRUE=
13413
  USE_SYS_GETOPTLONG_FALSE='#'
13414
else
13415
  USE_SYS_GETOPTLONG_TRUE='#'
13416
  USE_SYS_GETOPTLONG_FALSE=
13417
fi
13418
 
13419
 if test "$SYS_REGEX" = "1"; then
13420
  USE_ARGREX_TRUE=
13421
  USE_ARGREX_FALSE='#'
13422
else
13423
  USE_ARGREX_TRUE='#'
13424
  USE_ARGREX_FALSE=
13425
fi
13426
 
13427
 if test "$SYS_STRPTIME" = "1"; then
13428
  USE_ARGDATE_TRUE=
13429
  USE_ARGDATE_FALSE='#'
13430
else
13431
  USE_ARGDATE_TRUE='#'
13432
  USE_ARGDATE_FALSE=
13433
fi
13434
 
13435
 
13436
# check for "long long" (added by Erez)
13437 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 19 jeremybenn
/* end confdefs.h.  */
13439
 
13440
int
13441
main ()
13442
{
13443
long long ll; unsigned long long ull;
13444
  ;
13445
  return 0;
13446
}
13447
_ACEOF
13448 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
13449 19 jeremybenn
 
13450 346 jeremybenn
$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13451 19 jeremybenn
 
13452
fi
13453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454
 
13455
# check for {u,}int{8,16,32}_t in inttypes.h.
13456 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
13457
"
13458 625 jeremybenn
if test "x$ac_cv_type_uint8_t" = xyes; then :
13459 82 jeremybenn
 
13460 19 jeremybenn
cat >>confdefs.h <<_ACEOF
13461
#define HAVE_UINT8_T 1
13462
_ACEOF
13463
 
13464
 
13465
fi
13466 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
13467
"
13468 625 jeremybenn
if test "x$ac_cv_type_uint16_t" = xyes; then :
13469 82 jeremybenn
 
13470 19 jeremybenn
cat >>confdefs.h <<_ACEOF
13471
#define HAVE_UINT16_T 1
13472
_ACEOF
13473
 
13474
 
13475
fi
13476 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
13477
"
13478 625 jeremybenn
if test "x$ac_cv_type_uint32_t" = xyes; then :
13479 82 jeremybenn
 
13480 19 jeremybenn
cat >>confdefs.h <<_ACEOF
13481
#define HAVE_UINT32_T 1
13482
_ACEOF
13483
 
13484
 
13485
fi
13486
 
13487 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
13488
"
13489 625 jeremybenn
if test "x$ac_cv_type_int8_t" = xyes; then :
13490 82 jeremybenn
 
13491 19 jeremybenn
cat >>confdefs.h <<_ACEOF
13492
#define HAVE_INT8_T 1
13493
_ACEOF
13494
 
13495
 
13496
fi
13497 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
13498
"
13499 625 jeremybenn
if test "x$ac_cv_type_int16_t" = xyes; then :
13500 82 jeremybenn
 
13501 19 jeremybenn
cat >>confdefs.h <<_ACEOF
13502
#define HAVE_INT16_T 1
13503
_ACEOF
13504
 
13505
 
13506
fi
13507 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
13508
"
13509 625 jeremybenn
if test "x$ac_cv_type_int32_t" = xyes; then :
13510 19 jeremybenn
 
13511 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13512
#define HAVE_INT32_T 1
13513
_ACEOF
13514
 
13515
 
13516
fi
13517
 
13518
 
13519 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
13520
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13521
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13522
# This bug is HP SR number 8606223364.
13523 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13524 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
13525 625 jeremybenn
if ${ac_cv_sizeof_char+:} false; then :
13526 82 jeremybenn
  $as_echo_n "(cached) " >&6
13527 19 jeremybenn
else
13528 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13529 19 jeremybenn
 
13530
else
13531 346 jeremybenn
  if test "$ac_cv_type_char" = yes; then
13532
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13533 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13534 625 jeremybenn
as_fn_error 77 "cannot compute sizeof (char)
13535
See \`config.log' for more details" "$LINENO" 5; }
13536 19 jeremybenn
   else
13537
     ac_cv_sizeof_char=0
13538
   fi
13539
fi
13540 346 jeremybenn
 
13541 19 jeremybenn
fi
13542 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13543 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
13544 19 jeremybenn
 
13545
 
13546
 
13547
cat >>confdefs.h <<_ACEOF
13548
#define SIZEOF_CHAR $ac_cv_sizeof_char
13549
_ACEOF
13550
 
13551
 
13552
# The cast to long int works around a bug in the HP C Compiler
13553
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13554
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13555
# This bug is HP SR number 8606223364.
13556 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13557 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
13558 625 jeremybenn
if ${ac_cv_sizeof_short+:} false; then :
13559 82 jeremybenn
  $as_echo_n "(cached) " >&6
13560 19 jeremybenn
else
13561 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13562 19 jeremybenn
 
13563
else
13564 346 jeremybenn
  if test "$ac_cv_type_short" = yes; then
13565
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13566 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13567 625 jeremybenn
as_fn_error 77 "cannot compute sizeof (short)
13568
See \`config.log' for more details" "$LINENO" 5; }
13569 19 jeremybenn
   else
13570
     ac_cv_sizeof_short=0
13571
   fi
13572
fi
13573 346 jeremybenn
 
13574 19 jeremybenn
fi
13575 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13576 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
13577 19 jeremybenn
 
13578
 
13579
 
13580
cat >>confdefs.h <<_ACEOF
13581
#define SIZEOF_SHORT $ac_cv_sizeof_short
13582
_ACEOF
13583
 
13584
 
13585
# The cast to long int works around a bug in the HP C Compiler
13586
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13587
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13588
# This bug is HP SR number 8606223364.
13589 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13590 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
13591 625 jeremybenn
if ${ac_cv_sizeof_int+:} false; then :
13592 82 jeremybenn
  $as_echo_n "(cached) " >&6
13593 19 jeremybenn
else
13594 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13595 19 jeremybenn
 
13596
else
13597 346 jeremybenn
  if test "$ac_cv_type_int" = yes; then
13598
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13599 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13600 625 jeremybenn
as_fn_error 77 "cannot compute sizeof (int)
13601
See \`config.log' for more details" "$LINENO" 5; }
13602 19 jeremybenn
   else
13603
     ac_cv_sizeof_int=0
13604
   fi
13605
fi
13606 346 jeremybenn
 
13607 19 jeremybenn
fi
13608 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13609 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
13610 19 jeremybenn
 
13611
 
13612
 
13613
cat >>confdefs.h <<_ACEOF
13614
#define SIZEOF_INT $ac_cv_sizeof_int
13615
_ACEOF
13616
 
13617
 
13618
# The cast to long int works around a bug in the HP C Compiler
13619
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13620
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13621
# This bug is HP SR number 8606223364.
13622 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13623 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
13624 625 jeremybenn
if ${ac_cv_sizeof_long+:} false; then :
13625 82 jeremybenn
  $as_echo_n "(cached) " >&6
13626 19 jeremybenn
else
13627 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13628 19 jeremybenn
 
13629
else
13630 346 jeremybenn
  if test "$ac_cv_type_long" = yes; then
13631
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13632 233 julius
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13633 625 jeremybenn
as_fn_error 77 "cannot compute sizeof (long)
13634
See \`config.log' for more details" "$LINENO" 5; }
13635 233 julius
   else
13636
     ac_cv_sizeof_long=0
13637
   fi
13638 230 jeremybenn
fi
13639 346 jeremybenn
 
13640 230 jeremybenn
fi
13641 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13642 233 julius
$as_echo "$ac_cv_sizeof_long" >&6; }
13643 230 jeremybenn
 
13644
 
13645
 
13646 233 julius
cat >>confdefs.h <<_ACEOF
13647
#define SIZEOF_LONG $ac_cv_sizeof_long
13648 230 jeremybenn
_ACEOF
13649
 
13650
 
13651 233 julius
# The cast to long int works around a bug in the HP C Compiler
13652
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13653
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13654
# This bug is HP SR number 8606223364.
13655 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13656 233 julius
$as_echo_n "checking size of long long... " >&6; }
13657 625 jeremybenn
if ${ac_cv_sizeof_long_long+:} false; then :
13658 233 julius
  $as_echo_n "(cached) " >&6
13659 230 jeremybenn
else
13660 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13661 230 jeremybenn
 
13662
else
13663 346 jeremybenn
  if test "$ac_cv_type_long_long" = yes; then
13664
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13665 230 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13666 625 jeremybenn
as_fn_error 77 "cannot compute sizeof (long long)
13667
See \`config.log' for more details" "$LINENO" 5; }
13668 230 jeremybenn
   else
13669 233 julius
     ac_cv_sizeof_long_long=0
13670 19 jeremybenn
   fi
13671
fi
13672 346 jeremybenn
 
13673 19 jeremybenn
fi
13674 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13675 233 julius
$as_echo "$ac_cv_sizeof_long_long" >&6; }
13676 19 jeremybenn
 
13677
 
13678
 
13679
cat >>confdefs.h <<_ACEOF
13680 233 julius
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13681 19 jeremybenn
_ACEOF
13682
 
13683
 
13684
 
13685
#Check for compare function type for qsort (needed by some Linuxes)
13686 346 jeremybenn
ac_fn_c_check_type "$LINENO" "__compar_fn_t" "ac_cv_type___compar_fn_t" "$ac_includes_default"
13687 625 jeremybenn
if test "x$ac_cv_type___compar_fn_t" = xyes; then :
13688 19 jeremybenn
 
13689
cat >>confdefs.h <<_ACEOF
13690
#define HAVE___COMPAR_FN_T 1
13691
_ACEOF
13692
 
13693
 
13694
fi
13695
 
13696
 
13697
# check for GNU readline
13698 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
13699 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
13700 625 jeremybenn
if ${ac_cv_lib_readline_add_history+:} false; then :
13701 82 jeremybenn
  $as_echo_n "(cached) " >&6
13702 19 jeremybenn
else
13703
  ac_check_lib_save_LIBS=$LIBS
13704
LIBS="-lreadline  $LIBS"
13705 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 19 jeremybenn
/* end confdefs.h.  */
13707
 
13708
/* Override any GCC internal prototype to avoid an error.
13709
   Use char because int might match the return type of a GCC
13710
   builtin and then its argument prototype would still apply.  */
13711
#ifdef __cplusplus
13712
extern "C"
13713
#endif
13714
char add_history ();
13715
int
13716
main ()
13717
{
13718
return add_history ();
13719
  ;
13720
  return 0;
13721
}
13722
_ACEOF
13723 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
13724 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
13725
else
13726 346 jeremybenn
  ac_cv_lib_readline_add_history=no
13727 19 jeremybenn
fi
13728 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
13729
    conftest$ac_exeext conftest.$ac_ext
13730 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
13731
fi
13732 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
13733 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
13734 625 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = xyes; then :
13735 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13736
#define HAVE_LIBREADLINE 1
13737
_ACEOF
13738
 
13739
  LIBS="-lreadline $LIBS"
13740
 
13741
fi
13742
 
13743
 
13744
# yuck
13745
case "$host_os" in
13746
aix*)   prefer_curses=yes ;;
13747
esac
13748
 
13749
case "$host_cpu" in
13750
*cray*) LOCAL_CFLAGS=-DCRAY ;;
13751
esac
13752
 
13753
case "$host_os" in
13754
isc*)   LOCAL_CFLAGS=-Disc386 ;;
13755
esac
13756
 
13757
case "$host_os" in
13758
solaris*) LIBS="-lsocket -lnsl" ;;
13759
esac
13760
 
13761
# define options
13762 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
13763 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
13764 19 jeremybenn
# Check whether --enable-profiling was given.
13765 346 jeremybenn
if test "${enable_profiling+set}" = set; then :
13766 19 jeremybenn
  enableval=$enable_profiling;
13767
    case "$enableval" in
13768
        yes) profile="-pg" ;;
13769
    esac
13770
 
13771
fi
13772
 
13773 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
13774 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
13775 19 jeremybenn
 
13776
execution="1"
13777
 
13778
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
13779 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which execution style to use" >&5
13780 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
13781 19 jeremybenn
# Check whether --enable-execution was given.
13782 346 jeremybenn
if test "${enable_execution+set}" = set; then :
13783 19 jeremybenn
  enableval=$enable_execution;
13784
    case "$enableval" in
13785
    simple)
13786
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
13787
      execution="0"
13788 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple" >&5
13789 82 jeremybenn
$as_echo "simple" >&6; }
13790 19 jeremybenn
      ;;
13791
    complex)
13792
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
13793
      execution="1"
13794 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
13795 82 jeremybenn
$as_echo "complex" >&6; }
13796 19 jeremybenn
      ;;
13797
    *)
13798 625 jeremybenn
      as_fn_error $? "\"execution must one of simple/complex\"" "$LINENO" 5
13799 19 jeremybenn
      ;;
13800
    esac
13801
 
13802
else
13803
 
13804 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
13805 82 jeremybenn
$as_echo "complex" >&6; }
13806 19 jeremybenn
 
13807
fi
13808
 
13809
 
13810
eth_phy="0"
13811 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ethernet phy emulation" >&5
13812 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
13813 19 jeremybenn
# Check whether --enable-ethphy was given.
13814 346 jeremybenn
if test "${enable_ethphy+set}" = set; then :
13815 19 jeremybenn
  enableval=$enable_ethphy;
13816
    case "$enableval" in
13817
  no)  eth_phy="0" ;;
13818
        yes) eth_phy="1" ;;
13819
    esac
13820
 
13821
fi
13822
 
13823 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_eth_phy-no}" >&5
13824 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
13825 19 jeremybenn
 
13826 127 jeremybenn
unsigned_xori="0"
13827 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether l.xori takes an unsigned immediate operand" >&5
13828 127 jeremybenn
$as_echo_n "checking whether l.xori takes an unsigned immediate operand... " >&6; }
13829
# Check whether --enable-unsigned-xori was given.
13830 346 jeremybenn
if test "${enable_unsigned_xori+set}" = set; then :
13831 127 jeremybenn
  enableval=$enable_unsigned_xori;
13832
    case "$enableval" in
13833
  no)  unsigned_xori="0" ;;
13834
        yes) unsigned_xori="1" ;;
13835
    esac
13836 19 jeremybenn
 
13837 127 jeremybenn
fi
13838
 
13839 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_unsigned_xori-no}" >&5
13840 127 jeremybenn
$as_echo "${enable_unsigned_xori-no}" >&6; }
13841
 
13842 19 jeremybenn
raw_range_stats="0"
13843 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use raw range stats" >&5
13844 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
13845 19 jeremybenn
# Check whether --enable-range_stats was given.
13846 346 jeremybenn
if test "${enable_range_stats+set}" = set; then :
13847 19 jeremybenn
  enableval=$enable_range_stats;
13848
    case "$enableval" in
13849
  no)  raw_range_stats="0" ;;
13850
        yes) raw_range_stats="1" simple_execution="1" ;;
13851
    esac
13852
 
13853
fi
13854
 
13855 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_range_stats-no}" >&5
13856 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
13857 19 jeremybenn
 
13858
# check for --enable-debug argument (for argtable2)
13859
# Check whether --enable-debug was given.
13860 346 jeremybenn
if test "${enable_debug+set}" = set; then :
13861 19 jeremybenn
  enableval=$enable_debug;
13862
       case $enableval in
13863
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
13864
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
13865
          *)   echo "illegal argument to --enable-debug" & exit 1;;
13866
       esac
13867
 
13868
else
13869
  DEBUGFLAGS="-DNDEBUG"
13870
 
13871
fi
13872
 
13873
 
13874
 
13875
 
13876
cat >>confdefs.h <<_ACEOF
13877
#define RAW_RANGE_STATS $raw_range_stats
13878
_ACEOF
13879
 
13880
 
13881
cat >>confdefs.h <<_ACEOF
13882
#define HAVE_ETH_PHY $eth_phy
13883
_ACEOF
13884
 
13885
 
13886
cat >>confdefs.h <<_ACEOF
13887 127 jeremybenn
#define HAVE_UNSIGNED_XORI $unsigned_xori
13888
_ACEOF
13889
 
13890
 
13891
cat >>confdefs.h <<_ACEOF
13892 19 jeremybenn
#define SIMPLE_EXECUTION $execution == 0
13893
_ACEOF
13894
 
13895
 
13896
cat >>confdefs.h <<_ACEOF
13897
#define COMPLEX_EXECUTION $execution == 1
13898
_ACEOF
13899
 
13900
 if test x$execution = x1; then
13901
  GENERATE_NEEDED_TRUE=
13902
  GENERATE_NEEDED_FALSE='#'
13903
else
13904
  GENERATE_NEEDED_TRUE='#'
13905
  GENERATE_NEEDED_FALSE=
13906
fi
13907
 
13908
 
13909
 
13910
 
13911
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13912
 
13913 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
13914
# ourselves. This stops runtest complaining
13915 387 jeremybenn
DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
13916 90 jeremybenn
 
13917 96 jeremybenn
 
13918
 
13919
# The following line will override the default definition of the srcdir, and
13920
# ensure that short names are used for the test names.
13921
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
13922
 
13923
 
13924 19 jeremybenn
BUILD_DIR=`pwd`
13925
 
13926
 
13927
 
13928
 
13929
 
13930
 
13931
 
13932
 
13933
 
13934
 
13935
 
13936
 
13937
 
13938
 
13939
 
13940
 
13941
 
13942
 
13943 346 jeremybenn
$as_echo "#define HAVE_EXECUTION 1" >>confdefs.h
13944 19 jeremybenn
 
13945
 
13946
# yuck
13947
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
13948
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
13949
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
13950
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
13951
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
13952 233 julius
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2 \
13953 556 julius
-I\${top_srcdir}/softfloat -I\${top_srcdir}/pcu"
13954 19 jeremybenn
 
13955
 
13956 556 julius
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile softfloat/Makefile debug/Makefile doc/Makefile mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile pcu/Makefile port/Makefile support/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/lib/Makefile testsuite/libsim.tests/Makefile testsuite/or1ksim.tests/Makefile testsuite/test-code/Makefile testsuite/test-code/lib-iftest/Makefile testsuite/test-code/lib-inttest/Makefile testsuite/test-code/lib-jtag/Makefile testsuite/test-code/lib-upcalls/Makefile tick/Makefile vapi/Makefile"
13957 19 jeremybenn
 
13958
 
13959
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
13960
case "$CPU_ARCH" in
13961
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
13962
;;
13963
esac
13964
 
13965 82 jeremybenn
# Generate the output
13966
 
13967
 
13968 19 jeremybenn
cat >confcache <<\_ACEOF
13969
# This file is a shell script that caches the results of configure
13970
# tests run on this system so they can be shared between configure
13971
# scripts and configure runs, see configure's option --config-cache.
13972
# It is not useful on other systems.  If it contains results you don't
13973
# want to keep, you may remove or edit it.
13974
#
13975
# config.status only pays attention to the cache file if you give it
13976
# the --recheck option to rerun configure.
13977
#
13978
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13979
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13980
# following values.
13981
 
13982
_ACEOF
13983
 
13984
# The following way of writing the cache mishandles newlines in values,
13985
# but we know of no workaround that is simple, portable, and efficient.
13986
# So, we kill variables containing newlines.
13987
# Ultrix sh set writes to stderr and can't be redirected directly,
13988
# and sets the high bit in the cache file unless we assign to the vars.
13989
(
13990
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13991
    eval ac_val=\$$ac_var
13992
    case $ac_val in #(
13993
    *${as_nl}*)
13994
      case $ac_var in #(
13995 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13996 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13997 19 jeremybenn
      esac
13998
      case $ac_var in #(
13999
      _ | IFS | as_nl) ;; #(
14000 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14001 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
14002 19 jeremybenn
      esac ;;
14003
    esac
14004
  done
14005
 
14006
  (set) 2>&1 |
14007
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14008
    *${as_nl}ac_space=\ *)
14009 346 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
14010
      # substitution turns \\\\ into \\, and sed turns \\ into \.
14011 19 jeremybenn
      sed -n \
14012
        "s/'/'\\\\''/g;
14013
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14014
      ;; #(
14015
    *)
14016
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14017
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14018
      ;;
14019
    esac |
14020
    sort
14021
) |
14022
  sed '
14023
     /^ac_cv_env_/b end
14024
     t clear
14025
     :clear
14026
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14027
     t end
14028
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14029
     :end' >>confcache
14030
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14031
  if test -w "$cache_file"; then
14032 625 jeremybenn
    if test "x$cache_file" != "x/dev/null"; then
14033 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14034 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
14035 625 jeremybenn
      if test ! -f "$cache_file" || test -h "$cache_file"; then
14036
        cat confcache >"$cache_file"
14037
      else
14038
        case $cache_file in #(
14039
        */* | ?:*)
14040
          mv -f confcache "$cache_file"$$ &&
14041
          mv -f "$cache_file"$$ "$cache_file" ;; #(
14042
        *)
14043
          mv -f confcache "$cache_file" ;;
14044
        esac
14045
      fi
14046
    fi
14047 19 jeremybenn
  else
14048 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14049 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14050 19 jeremybenn
  fi
14051
fi
14052
rm -f confcache
14053
 
14054
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14055
# Let make expand exec_prefix.
14056
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14057
 
14058
DEFS=-DHAVE_CONFIG_H
14059
 
14060
ac_libobjs=
14061
ac_ltlibobjs=
14062 625 jeremybenn
U=
14063 19 jeremybenn
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14064
  # 1. Remove the extension, and $U if already installed.
14065
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14066 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14067 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14068
  #    will be set to the directory where LIBOBJS objects are built.
14069 346 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14070
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14071 19 jeremybenn
done
14072
LIBOBJS=$ac_libobjs
14073
 
14074
LTLIBOBJS=$ac_ltlibobjs
14075
 
14076
 
14077
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14078 625 jeremybenn
  as_fn_error $? "conditional \"AMDEP\" was never defined.
14079 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14080 19 jeremybenn
fi
14081
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14082 625 jeremybenn
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14083 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14084 19 jeremybenn
fi
14085 82 jeremybenn
 if test -n "$EXEEXT"; then
14086
  am__EXEEXT_TRUE=
14087
  am__EXEEXT_FALSE='#'
14088
else
14089
  am__EXEEXT_TRUE='#'
14090
  am__EXEEXT_FALSE=
14091
fi
14092
 
14093
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14094 625 jeremybenn
  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14095 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14096 19 jeremybenn
fi
14097 82 jeremybenn
 
14098 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
14099 625 jeremybenn
  as_fn_error $? "conditional \"USE_SYS_GETOPTLONG\" was never defined.
14100 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14101 19 jeremybenn
fi
14102
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
14103 625 jeremybenn
  as_fn_error $? "conditional \"USE_ARGREX\" was never defined.
14104 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14105 19 jeremybenn
fi
14106
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
14107 625 jeremybenn
  as_fn_error $? "conditional \"USE_ARGDATE\" was never defined.
14108 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14109 19 jeremybenn
fi
14110
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
14111 625 jeremybenn
  as_fn_error $? "conditional \"GENERATE_NEEDED\" was never defined.
14112 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14113 19 jeremybenn
fi
14114
 
14115 625 jeremybenn
: "${CONFIG_STATUS=./config.status}"
14116 82 jeremybenn
ac_write_fail=0
14117 19 jeremybenn
ac_clean_files_save=$ac_clean_files
14118
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14119 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14120 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14121 346 jeremybenn
as_write_fail=0
14122
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14123 19 jeremybenn
#! $SHELL
14124
# Generated by $as_me.
14125
# Run this file to recreate the current configuration.
14126
# Compiler output produced by configure, useful for debugging
14127
# configure, is in config.log if it exists.
14128
 
14129
debug=false
14130
ac_cs_recheck=false
14131
ac_cs_silent=false
14132 346 jeremybenn
 
14133 19 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
14134 346 jeremybenn
export SHELL
14135
_ASEOF
14136
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14137
## -------------------- ##
14138
## M4sh Initialization. ##
14139
## -------------------- ##
14140 19 jeremybenn
 
14141
# Be more Bourne compatible
14142
DUALCASE=1; export DUALCASE # for MKS sh
14143 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14144 19 jeremybenn
  emulate sh
14145
  NULLCMD=:
14146 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14147 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
14148
  alias -g '${1+"$@"}'='"$@"'
14149
  setopt NO_GLOB_SUBST
14150
else
14151 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
14152
  *posix*) :
14153
    set -o posix ;; #(
14154
  *) :
14155
     ;;
14156 19 jeremybenn
esac
14157
fi
14158
 
14159
 
14160 82 jeremybenn
as_nl='
14161
'
14162
export as_nl
14163
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14164
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14165
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14166
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14167 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
14168
# but without wasting forks for bash or zsh.
14169
if test -z "$BASH_VERSION$ZSH_VERSION" \
14170
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14171
  as_echo='print -r --'
14172
  as_echo_n='print -rn --'
14173
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14174 82 jeremybenn
  as_echo='printf %s\n'
14175
  as_echo_n='printf %s'
14176
else
14177
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14178
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14179
    as_echo_n='/usr/ucb/echo -n'
14180 19 jeremybenn
  else
14181 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14182
    as_echo_n_body='eval
14183
      arg=$1;
14184 346 jeremybenn
      case $arg in #(
14185 82 jeremybenn
      *"$as_nl"*)
14186
        expr "X$arg" : "X\\(.*\\)$as_nl";
14187
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14188
      esac;
14189
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14190
    '
14191
    export as_echo_n_body
14192
    as_echo_n='sh -c $as_echo_n_body as_echo'
14193 19 jeremybenn
  fi
14194 82 jeremybenn
  export as_echo_body
14195
  as_echo='sh -c $as_echo_body as_echo'
14196 19 jeremybenn
fi
14197
 
14198 82 jeremybenn
# The user is always right.
14199
if test "${PATH_SEPARATOR+set}" != set; then
14200
  PATH_SEPARATOR=:
14201
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14202
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14203
      PATH_SEPARATOR=';'
14204
  }
14205
fi
14206
 
14207 19 jeremybenn
 
14208
# IFS
14209
# We need space, tab and new line, in precisely that order.  Quoting is
14210
# there to prevent editors from complaining about space-tab.
14211
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14212
# splitting by setting IFS to empty value.)
14213
IFS=" ""        $as_nl"
14214
 
14215
# Find who we are.  Look in the path if we contain no directory separator.
14216 625 jeremybenn
as_myself=
14217 346 jeremybenn
case $0 in #((
14218 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
14219
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220
for as_dir in $PATH
14221
do
14222
  IFS=$as_save_IFS
14223
  test -z "$as_dir" && as_dir=.
14224 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14225
  done
14226 19 jeremybenn
IFS=$as_save_IFS
14227
 
14228
     ;;
14229
esac
14230
# We did not find ourselves, most probably we were run as `sh COMMAND'
14231
# in which case we are not to be found in the path.
14232
if test "x$as_myself" = x; then
14233
  as_myself=$0
14234
fi
14235
if test ! -f "$as_myself"; then
14236 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14237 346 jeremybenn
  exit 1
14238 19 jeremybenn
fi
14239
 
14240 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
14241
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14242
# suppresses any "Segmentation fault" message there.  '((' could
14243
# trigger a bug in pdksh 5.2.14.
14244
for as_var in BASH_ENV ENV MAIL MAILPATH
14245
do eval test x\${$as_var+set} = xset \
14246
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14247 19 jeremybenn
done
14248
PS1='$ '
14249
PS2='> '
14250
PS4='+ '
14251
 
14252
# NLS nuisances.
14253 82 jeremybenn
LC_ALL=C
14254
export LC_ALL
14255
LANGUAGE=C
14256
export LANGUAGE
14257 19 jeremybenn
 
14258 346 jeremybenn
# CDPATH.
14259
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14260
 
14261
 
14262 625 jeremybenn
# as_fn_error STATUS ERROR [LINENO LOG_FD]
14263
# ----------------------------------------
14264 346 jeremybenn
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14265
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14266 625 jeremybenn
# script with STATUS, using 1 if that was 0.
14267 346 jeremybenn
as_fn_error ()
14268
{
14269 625 jeremybenn
  as_status=$1; test $as_status -eq 0 && as_status=1
14270
  if test "$4"; then
14271
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14272
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14273 346 jeremybenn
  fi
14274 625 jeremybenn
  $as_echo "$as_me: error: $2" >&2
14275 346 jeremybenn
  as_fn_exit $as_status
14276
} # as_fn_error
14277
 
14278
 
14279
# as_fn_set_status STATUS
14280
# -----------------------
14281
# Set $? to STATUS, without forking.
14282
as_fn_set_status ()
14283
{
14284
  return $1
14285
} # as_fn_set_status
14286
 
14287
# as_fn_exit STATUS
14288
# -----------------
14289
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14290
as_fn_exit ()
14291
{
14292
  set +e
14293
  as_fn_set_status $1
14294
  exit $1
14295
} # as_fn_exit
14296
 
14297
# as_fn_unset VAR
14298
# ---------------
14299
# Portably unset VAR.
14300
as_fn_unset ()
14301
{
14302
  { eval $1=; unset $1;}
14303
}
14304
as_unset=as_fn_unset
14305
# as_fn_append VAR VALUE
14306
# ----------------------
14307
# Append the text in VALUE to the end of the definition contained in VAR. Take
14308
# advantage of any shell optimizations that allow amortized linear growth over
14309
# repeated appends, instead of the typical quadratic growth present in naive
14310
# implementations.
14311
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14312
  eval 'as_fn_append ()
14313
  {
14314
    eval $1+=\$2
14315
  }'
14316
else
14317
  as_fn_append ()
14318
  {
14319
    eval $1=\$$1\$2
14320
  }
14321
fi # as_fn_append
14322
 
14323
# as_fn_arith ARG...
14324
# ------------------
14325
# Perform arithmetic evaluation on the ARGs, and store the result in the
14326
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14327
# must be portable across $(()) and expr.
14328
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14329
  eval 'as_fn_arith ()
14330
  {
14331
    as_val=$(( $* ))
14332
  }'
14333
else
14334
  as_fn_arith ()
14335
  {
14336
    as_val=`expr "$@" || test $? -eq 1`
14337
  }
14338
fi # as_fn_arith
14339
 
14340
 
14341 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
14342
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14343
  as_expr=expr
14344
else
14345
  as_expr=false
14346
fi
14347
 
14348
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14349
  as_basename=basename
14350
else
14351
  as_basename=false
14352
fi
14353
 
14354 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14355
  as_dirname=dirname
14356
else
14357
  as_dirname=false
14358
fi
14359 19 jeremybenn
 
14360
as_me=`$as_basename -- "$0" ||
14361
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14362
         X"$0" : 'X\(//\)$' \| \
14363
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14364 82 jeremybenn
$as_echo X/"$0" |
14365 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
14366
            s//\1/
14367
            q
14368
          }
14369
          /^X\/\(\/\/\)$/{
14370
            s//\1/
14371
            q
14372
          }
14373
          /^X\/\(\/\).*/{
14374
            s//\1/
14375
            q
14376
          }
14377
          s/.*/./; q'`
14378
 
14379 346 jeremybenn
# Avoid depending upon Character Ranges.
14380
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14381
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14382
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14383
as_cr_digits='0123456789'
14384
as_cr_alnum=$as_cr_Letters$as_cr_digits
14385 19 jeremybenn
 
14386
ECHO_C= ECHO_N= ECHO_T=
14387 346 jeremybenn
case `echo -n x` in #(((((
14388 19 jeremybenn
-n*)
14389 346 jeremybenn
  case `echo 'xy\c'` in
14390 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14391 346 jeremybenn
  xy)  ECHO_C='\c';;
14392
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14393
       ECHO_T=' ';;
14394 19 jeremybenn
  esac;;
14395
*)
14396
  ECHO_N='-n';;
14397
esac
14398
 
14399
rm -f conf$$ conf$$.exe conf$$.file
14400
if test -d conf$$.dir; then
14401
  rm -f conf$$.dir/conf$$.file
14402
else
14403
  rm -f conf$$.dir
14404 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
14405 19 jeremybenn
fi
14406 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
14407
  if ln -s conf$$.file conf$$ 2>/dev/null; then
14408
    as_ln_s='ln -s'
14409
    # ... but there are two gotchas:
14410
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14411
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14412
    # In both cases, we have to default to `cp -p'.
14413
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14414
      as_ln_s='cp -p'
14415
  elif ln conf$$.file conf$$ 2>/dev/null; then
14416
    as_ln_s=ln
14417
  else
14418 19 jeremybenn
    as_ln_s='cp -p'
14419 82 jeremybenn
  fi
14420 19 jeremybenn
else
14421
  as_ln_s='cp -p'
14422
fi
14423
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14424
rmdir conf$$.dir 2>/dev/null
14425
 
14426 346 jeremybenn
 
14427
# as_fn_mkdir_p
14428
# -------------
14429
# Create "$as_dir" as a directory, including parents if necessary.
14430
as_fn_mkdir_p ()
14431
{
14432
 
14433
  case $as_dir in #(
14434
  -*) as_dir=./$as_dir;;
14435
  esac
14436
  test -d "$as_dir" || eval $as_mkdir_p || {
14437
    as_dirs=
14438
    while :; do
14439
      case $as_dir in #(
14440
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14441
      *) as_qdir=$as_dir;;
14442
      esac
14443
      as_dirs="'$as_qdir' $as_dirs"
14444
      as_dir=`$as_dirname -- "$as_dir" ||
14445
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14446
         X"$as_dir" : 'X\(//\)[^/]' \| \
14447
         X"$as_dir" : 'X\(//\)$' \| \
14448
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14449
$as_echo X"$as_dir" |
14450
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14451
            s//\1/
14452
            q
14453
          }
14454
          /^X\(\/\/\)[^/].*/{
14455
            s//\1/
14456
            q
14457
          }
14458
          /^X\(\/\/\)$/{
14459
            s//\1/
14460
            q
14461
          }
14462
          /^X\(\/\).*/{
14463
            s//\1/
14464
            q
14465
          }
14466
          s/.*/./; q'`
14467
      test -d "$as_dir" && break
14468
    done
14469
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14470 625 jeremybenn
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14471 346 jeremybenn
 
14472
 
14473
} # as_fn_mkdir_p
14474 19 jeremybenn
if mkdir -p . 2>/dev/null; then
14475 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
14476 19 jeremybenn
else
14477
  test -d ./-p && rmdir ./-p
14478
  as_mkdir_p=false
14479
fi
14480
 
14481
if test -x / >/dev/null 2>&1; then
14482
  as_test_x='test -x'
14483
else
14484
  if ls -dL / >/dev/null 2>&1; then
14485
    as_ls_L_option=L
14486
  else
14487
    as_ls_L_option=
14488
  fi
14489
  as_test_x='
14490
    eval sh -c '\''
14491
      if test -d "$1"; then
14492 82 jeremybenn
        test -d "$1/.";
14493 19 jeremybenn
      else
14494 346 jeremybenn
        case $1 in #(
14495 82 jeremybenn
        -*)set "./$1";;
14496 19 jeremybenn
        esac;
14497 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14498 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
14499
    '\'' sh
14500
  '
14501
fi
14502
as_executable_p=$as_test_x
14503
 
14504
# Sed expression to map a string onto a valid CPP name.
14505
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14506
 
14507
# Sed expression to map a string onto a valid variable name.
14508
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14509
 
14510
 
14511
exec 6>&1
14512 346 jeremybenn
## ----------------------------------- ##
14513
## Main body of $CONFIG_STATUS script. ##
14514
## ----------------------------------- ##
14515
_ASEOF
14516
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14517 19 jeremybenn
 
14518 346 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14519
# Save the log message, to keep $0 and so on meaningful, and to
14520 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
14521
# values after options handling.
14522
ac_log="
14523 787 jeremybenn
This file was extended by or1ksim $as_me 2012-03-23, which was
14524 625 jeremybenn
generated by GNU Autoconf 2.68.  Invocation command line was
14525 19 jeremybenn
 
14526
  CONFIG_FILES    = $CONFIG_FILES
14527
  CONFIG_HEADERS  = $CONFIG_HEADERS
14528
  CONFIG_LINKS    = $CONFIG_LINKS
14529
  CONFIG_COMMANDS = $CONFIG_COMMANDS
14530
  $ $0 $@
14531
 
14532
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14533
"
14534
 
14535
_ACEOF
14536
 
14537 82 jeremybenn
case $ac_config_files in *"
14538
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14539
esac
14540
 
14541
case $ac_config_headers in *"
14542
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14543
esac
14544
 
14545
 
14546
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14547 19 jeremybenn
# Files that config.status was made for.
14548
config_files="$ac_config_files"
14549
config_headers="$ac_config_headers"
14550
config_commands="$ac_config_commands"
14551
 
14552
_ACEOF
14553
 
14554 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14555 19 jeremybenn
ac_cs_usage="\
14556 346 jeremybenn
\`$as_me' instantiates files and other configuration actions
14557
from templates according to the current configuration.  Unless the files
14558
and actions are specified as TAGs, all are instantiated by default.
14559 19 jeremybenn
 
14560 346 jeremybenn
Usage: $0 [OPTION]... [TAG]...
14561 19 jeremybenn
 
14562
  -h, --help       print this help, then exit
14563
  -V, --version    print version number and configuration settings, then exit
14564 625 jeremybenn
      --config     print configuration, then exit
14565 82 jeremybenn
  -q, --quiet, --silent
14566
                   do not print progress messages
14567 19 jeremybenn
  -d, --debug      don't remove temporary files
14568
      --recheck    update $as_me by reconfiguring in the same conditions
14569 82 jeremybenn
      --file=FILE[:TEMPLATE]
14570
                   instantiate the configuration file FILE
14571
      --header=FILE[:TEMPLATE]
14572
                   instantiate the configuration header FILE
14573 19 jeremybenn
 
14574
Configuration files:
14575
$config_files
14576
 
14577
Configuration headers:
14578
$config_headers
14579
 
14580
Configuration commands:
14581
$config_commands
14582
 
14583 346 jeremybenn
Report bugs to ."
14584 19 jeremybenn
 
14585
_ACEOF
14586 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14587 625 jeremybenn
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14588 19 jeremybenn
ac_cs_version="\\
14589 787 jeremybenn
or1ksim config.status 2012-03-23
14590 625 jeremybenn
configured by $0, generated by GNU Autoconf 2.68,
14591
  with options \\"\$ac_cs_config\\"
14592 19 jeremybenn
 
14593 625 jeremybenn
Copyright (C) 2010 Free Software Foundation, Inc.
14594 19 jeremybenn
This config.status script is free software; the Free Software Foundation
14595
gives unlimited permission to copy, distribute and modify it."
14596
 
14597
ac_pwd='$ac_pwd'
14598
srcdir='$srcdir'
14599
INSTALL='$INSTALL'
14600
MKDIR_P='$MKDIR_P'
14601 82 jeremybenn
AWK='$AWK'
14602
test -n "\$AWK" || AWK=awk
14603 19 jeremybenn
_ACEOF
14604
 
14605 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14606
# The default lists apply if the user does not specify any file.
14607 19 jeremybenn
ac_need_defaults=:
14608
while test $# != 0
14609
do
14610
  case $1 in
14611 625 jeremybenn
  --*=?*)
14612 19 jeremybenn
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14613
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14614
    ac_shift=:
14615
    ;;
14616 625 jeremybenn
  --*=)
14617
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14618
    ac_optarg=
14619
    ac_shift=:
14620
    ;;
14621 19 jeremybenn
  *)
14622
    ac_option=$1
14623
    ac_optarg=$2
14624
    ac_shift=shift
14625
    ;;
14626
  esac
14627
 
14628
  case $ac_option in
14629
  # Handling of the options.
14630
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14631
    ac_cs_recheck=: ;;
14632
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14633 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
14634 625 jeremybenn
  --config | --confi | --conf | --con | --co | --c )
14635
    $as_echo "$ac_cs_config"; exit ;;
14636 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
14637
    debug=: ;;
14638
  --file | --fil | --fi | --f )
14639
    $ac_shift
14640 82 jeremybenn
    case $ac_optarg in
14641
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14642 625 jeremybenn
    '') as_fn_error $? "missing file argument" ;;
14643 82 jeremybenn
    esac
14644 346 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
14645 19 jeremybenn
    ac_need_defaults=false;;
14646
  --header | --heade | --head | --hea )
14647
    $ac_shift
14648 82 jeremybenn
    case $ac_optarg in
14649
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14650
    esac
14651 346 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14652 19 jeremybenn
    ac_need_defaults=false;;
14653
  --he | --h)
14654
    # Conflict between --help and --header
14655 625 jeremybenn
    as_fn_error $? "ambiguous option: \`$1'
14656 346 jeremybenn
Try \`$0 --help' for more information.";;
14657 19 jeremybenn
  --help | --hel | -h )
14658 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
14659 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14660
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14661
    ac_cs_silent=: ;;
14662
 
14663
  # This is an error.
14664 625 jeremybenn
  -*) as_fn_error $? "unrecognized option: \`$1'
14665 346 jeremybenn
Try \`$0 --help' for more information." ;;
14666 19 jeremybenn
 
14667 346 jeremybenn
  *) as_fn_append ac_config_targets " $1"
14668 19 jeremybenn
     ac_need_defaults=false ;;
14669
 
14670
  esac
14671
  shift
14672
done
14673
 
14674
ac_configure_extra_args=
14675
 
14676
if $ac_cs_silent; then
14677
  exec 6>/dev/null
14678
  ac_configure_extra_args="$ac_configure_extra_args --silent"
14679
fi
14680
 
14681
_ACEOF
14682 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14683 19 jeremybenn
if \$ac_cs_recheck; then
14684 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14685
  shift
14686
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14687
  CONFIG_SHELL='$SHELL'
14688 19 jeremybenn
  export CONFIG_SHELL
14689 82 jeremybenn
  exec "\$@"
14690 19 jeremybenn
fi
14691
 
14692
_ACEOF
14693 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14694 19 jeremybenn
exec 5>>config.log
14695
{
14696
  echo
14697
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14698
## Running $as_me. ##
14699
_ASBOX
14700 82 jeremybenn
  $as_echo "$ac_log"
14701 19 jeremybenn
} >&5
14702
 
14703
_ACEOF
14704 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14705 19 jeremybenn
#
14706
# INIT-COMMANDS
14707
#
14708 82 jeremybenn
 
14709
 
14710
# The HP-UX ksh and POSIX shell print the target directory to stdout
14711
# if CDPATH is set.
14712
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14713
 
14714
sed_quote_subst='$sed_quote_subst'
14715
double_quote_subst='$double_quote_subst'
14716
delay_variable_subst='$delay_variable_subst'
14717 784 jeremybenn
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14718
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14719
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14720
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14721
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14722
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14723
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14724
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14725
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14726
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14727
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14728
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14729
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14730
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14731
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14732
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14733
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14734
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14735
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14736
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14737
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14738
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14739
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14740
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14741
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14742
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14743
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14744
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14745
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14746
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14747
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14748
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14749
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14750
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14751
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14752
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14753
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14754
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14755
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14756
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14757
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14758
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14759
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14760
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14761
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14762
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14763
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14764
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14765
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14766
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14767
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14768
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14769
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14770
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14771
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14772
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14773
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14774
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14775
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14776
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14777
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14778
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14779
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14780
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14781
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14782
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14783
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14784
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14785
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14786
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14787
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14788
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14789
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14790
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14791
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14792
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14793
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14794
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14795
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14796
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14797
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14798
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14799
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14800
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14801
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14802
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14803
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14804
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14805
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14806
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14807
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14808
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14809
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14810
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14811
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14812
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14813
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14814
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14815
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14816
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14817
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14818
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14819
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14820
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14821
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14822
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14823
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14824
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14825
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14826
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14827
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14828
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14829
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14830
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14831
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14832
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14833
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14834
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14835
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14836
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14837
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14838
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14839
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14840
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14841
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14842
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14843
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14844
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14845
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14846
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14847 82 jeremybenn
 
14848
LTCC='$LTCC'
14849
LTCFLAGS='$LTCFLAGS'
14850
compiler='$compiler_DEFAULT'
14851
 
14852 784 jeremybenn
# A function that is used when there is no print builtin or printf.
14853
func_fallback_echo ()
14854
{
14855
  eval 'cat <<_LTECHO_EOF
14856
\$1
14857
_LTECHO_EOF'
14858
}
14859
 
14860 82 jeremybenn
# Quote evaled strings.
14861 784 jeremybenn
for var in SHELL \
14862
ECHO \
14863
SED \
14864 82 jeremybenn
GREP \
14865
EGREP \
14866
FGREP \
14867
LD \
14868
NM \
14869
LN_S \
14870
lt_SP2NL \
14871
lt_NL2SP \
14872
reload_flag \
14873
OBJDUMP \
14874
deplibs_check_method \
14875
file_magic_cmd \
14876 784 jeremybenn
file_magic_glob \
14877
want_nocaseglob \
14878
DLLTOOL \
14879
sharedlib_from_linklib_cmd \
14880 82 jeremybenn
AR \
14881
AR_FLAGS \
14882 784 jeremybenn
archiver_list_spec \
14883 82 jeremybenn
STRIP \
14884
RANLIB \
14885
CC \
14886
CFLAGS \
14887
compiler \
14888
lt_cv_sys_global_symbol_pipe \
14889
lt_cv_sys_global_symbol_to_cdecl \
14890
lt_cv_sys_global_symbol_to_c_name_address \
14891
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14892 784 jeremybenn
nm_file_list_spec \
14893 82 jeremybenn
lt_prog_compiler_no_builtin_flag \
14894 784 jeremybenn
lt_prog_compiler_pic \
14895 82 jeremybenn
lt_prog_compiler_wl \
14896
lt_prog_compiler_static \
14897
lt_cv_prog_compiler_c_o \
14898
need_locks \
14899 784 jeremybenn
MANIFEST_TOOL \
14900 82 jeremybenn
DSYMUTIL \
14901
NMEDIT \
14902
LIPO \
14903
OTOOL \
14904
OTOOL64 \
14905
shrext_cmds \
14906
export_dynamic_flag_spec \
14907
whole_archive_flag_spec \
14908
compiler_needs_object \
14909
with_gnu_ld \
14910
allow_undefined_flag \
14911
no_undefined_flag \
14912
hardcode_libdir_flag_spec \
14913
hardcode_libdir_flag_spec_ld \
14914
hardcode_libdir_separator \
14915
exclude_expsyms \
14916
include_expsyms \
14917
file_list_spec \
14918
variables_saved_for_relink \
14919
libname_spec \
14920
library_names_spec \
14921
soname_spec \
14922 784 jeremybenn
install_override_mode \
14923 82 jeremybenn
finish_eval \
14924
old_striplib \
14925
striplib; do
14926 784 jeremybenn
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14927 82 jeremybenn
    *[\\\\\\\`\\"\\\$]*)
14928 784 jeremybenn
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14929 82 jeremybenn
      ;;
14930
    *)
14931
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14932
      ;;
14933
    esac
14934
done
14935
 
14936
# Double-quote double-evaled strings.
14937
for var in reload_cmds \
14938
old_postinstall_cmds \
14939
old_postuninstall_cmds \
14940
old_archive_cmds \
14941
extract_expsyms_cmds \
14942
old_archive_from_new_cmds \
14943
old_archive_from_expsyms_cmds \
14944
archive_cmds \
14945
archive_expsym_cmds \
14946
module_cmds \
14947
module_expsym_cmds \
14948
export_symbols_cmds \
14949
prelink_cmds \
14950 784 jeremybenn
postlink_cmds \
14951 82 jeremybenn
postinstall_cmds \
14952
postuninstall_cmds \
14953
finish_cmds \
14954
sys_lib_search_path_spec \
14955
sys_lib_dlsearch_path_spec; do
14956 784 jeremybenn
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14957 82 jeremybenn
    *[\\\\\\\`\\"\\\$]*)
14958 784 jeremybenn
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14959 82 jeremybenn
      ;;
14960
    *)
14961
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14962
      ;;
14963
    esac
14964
done
14965
 
14966
ac_aux_dir='$ac_aux_dir'
14967
xsi_shell='$xsi_shell'
14968
lt_shell_append='$lt_shell_append'
14969
 
14970
# See if we are running on zsh, and set the options which allow our
14971
# commands through without removal of \ escapes INIT.
14972
if test -n "\${ZSH_VERSION+set}" ; then
14973
   setopt NO_GLOB_SUBST
14974
fi
14975
 
14976
 
14977
    PACKAGE='$PACKAGE'
14978
    VERSION='$VERSION'
14979
    TIMESTAMP='$TIMESTAMP'
14980
    RM='$RM'
14981
    ofile='$ofile'
14982
 
14983
 
14984
 
14985 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14986
 
14987
_ACEOF
14988
 
14989 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14990 19 jeremybenn
 
14991
# Handling of arguments.
14992
for ac_config_target in $ac_config_targets
14993
do
14994
  case $ac_config_target in
14995 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14996 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14997
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14998
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14999
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
15000
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
15001
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
15002
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
15003
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
15004
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
15005
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
15006 233 julius
    "softfloat/Makefile") CONFIG_FILES="$CONFIG_FILES softfloat/Makefile" ;;
15007 19 jeremybenn
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
15008
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15009
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
15010
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
15011
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
15012
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
15013
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
15014 556 julius
    "pcu/Makefile") CONFIG_FILES="$CONFIG_FILES pcu/Makefile" ;;
15015 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
15016
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
15017
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15018
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
15019
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
15020
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
15021
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
15022
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
15023
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
15024 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
15025 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
15026 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
15027 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
15028 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
15029
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
15030
 
15031 625 jeremybenn
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15032 19 jeremybenn
  esac
15033
done
15034
 
15035
 
15036
# If the user did not use the arguments to specify the items to instantiate,
15037
# then the envvar interface is used.  Set only those that are not.
15038
# We use the long form for the default assignment because of an extremely
15039
# bizarre bug on SunOS 4.1.3.
15040
if $ac_need_defaults; then
15041
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15042
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15043
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15044
fi
15045
 
15046
# Have a temporary directory for convenience.  Make it in the build tree
15047
# simply because there is no reason against having it here, and in addition,
15048
# creating and moving files from /tmp can sometimes cause problems.
15049
# Hook for its removal unless debugging.
15050
# Note that there is a small window in which the directory will not be cleaned:
15051
# after its creation but before its name has been assigned to `$tmp'.
15052
$debug ||
15053
{
15054 625 jeremybenn
  tmp= ac_tmp=
15055 19 jeremybenn
  trap 'exit_status=$?
15056 625 jeremybenn
  : "${ac_tmp:=$tmp}"
15057
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15058 19 jeremybenn
' 0
15059 346 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
15060 19 jeremybenn
}
15061
# Create a (secure) tmp directory for tmp files.
15062
 
15063
{
15064
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15065 625 jeremybenn
  test -d "$tmp"
15066 19 jeremybenn
}  ||
15067
{
15068
  tmp=./conf$$-$RANDOM
15069
  (umask 077 && mkdir "$tmp")
15070 625 jeremybenn
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15071
ac_tmp=$tmp
15072 19 jeremybenn
 
15073 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
15074
# No need to generate them if there are no CONFIG_FILES.
15075
# This happens for instance with `./config.status config.h'.
15076 19 jeremybenn
if test -n "$CONFIG_FILES"; then
15077
 
15078 82 jeremybenn
 
15079 346 jeremybenn
ac_cr=`echo X | tr X '\015'`
15080
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15081
# But we know of no other shell where ac_cr would be empty at this
15082
# point, so we can use a bashism as a fallback.
15083
if test "x$ac_cr" = x; then
15084
  eval ac_cr=\$\'\\r\'
15085
fi
15086 82 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
15087
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15088 625 jeremybenn
  ac_cs_awk_cr='\\r'
15089 82 jeremybenn
else
15090
  ac_cs_awk_cr=$ac_cr
15091
fi
15092
 
15093 625 jeremybenn
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15094 19 jeremybenn
_ACEOF
15095
 
15096
 
15097 82 jeremybenn
{
15098
  echo "cat >conf$$subs.awk <<_ACEOF" &&
15099
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15100
  echo "_ACEOF"
15101
} >conf$$subs.sh ||
15102 625 jeremybenn
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15103
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15104 19 jeremybenn
ac_delim='%!_!# '
15105
for ac_last_try in false false false false false :; do
15106 82 jeremybenn
  . ./conf$$subs.sh ||
15107 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15108 19 jeremybenn
 
15109 82 jeremybenn
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15110
  if test $ac_delim_n = $ac_delim_num; then
15111 19 jeremybenn
    break
15112
  elif $ac_last_try; then
15113 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15114 19 jeremybenn
  else
15115
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15116
  fi
15117
done
15118 82 jeremybenn
rm -f conf$$subs.sh
15119 19 jeremybenn
 
15120 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121 625 jeremybenn
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15122 19 jeremybenn
_ACEOF
15123 82 jeremybenn
sed -n '
15124
h
15125
s/^/S["/; s/!.*/"]=/
15126
p
15127
g
15128
s/^[^!]*!//
15129
:repl
15130
t repl
15131
s/'"$ac_delim"'$//
15132
t delim
15133
:nl
15134
h
15135 625 jeremybenn
s/\(.\{148\}\)..*/\1/
15136 82 jeremybenn
t more1
15137
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15138
p
15139
n
15140
b repl
15141
:more1
15142
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15143
p
15144
g
15145
s/.\{148\}//
15146
t nl
15147
:delim
15148
h
15149 625 jeremybenn
s/\(.\{148\}\)..*/\1/
15150 82 jeremybenn
t more2
15151
s/["\\]/\\&/g; s/^/"/; s/$/"/
15152
p
15153
b
15154
:more2
15155
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15156
p
15157
g
15158
s/.\{148\}//
15159
t delim
15160
' 
15161
/^[^""]/{
15162
  N
15163
  s/\n//
15164
}
15165
' >>$CONFIG_STATUS || ac_write_fail=1
15166
rm -f conf$$subs.awk
15167
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168
_ACAWK
15169 625 jeremybenn
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15170 82 jeremybenn
  for (key in S) S_is_set[key] = 1
15171
  FS = ""
15172 19 jeremybenn
 
15173 82 jeremybenn
}
15174
{
15175
  line = $ 0
15176
  nfields = split(line, field, "@")
15177
  substed = 0
15178
  len = length(field[1])
15179
  for (i = 2; i < nfields; i++) {
15180
    key = field[i]
15181
    keylen = length(key)
15182
    if (S_is_set[key]) {
15183
      value = S[key]
15184
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15185
      len += length(value) + length(field[++i])
15186
      substed = 1
15187
    } else
15188
      len += 1 + keylen
15189
  }
15190 19 jeremybenn
 
15191 82 jeremybenn
  print line
15192
}
15193
 
15194
_ACAWK
15195 19 jeremybenn
_ACEOF
15196 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15198
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15199
else
15200
  cat
15201 625 jeremybenn
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15202
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15203 19 jeremybenn
_ACEOF
15204
 
15205 625 jeremybenn
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15206
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15207 19 jeremybenn
# trailing colons and then remove the whole line if VPATH becomes empty
15208
# (actually we leave an empty line to preserve line numbers).
15209
if test "x$srcdir" = x.; then
15210 625 jeremybenn
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15211
h
15212
s///
15213
s/^/:/
15214
s/[      ]*$/:/
15215
s/:\$(srcdir):/:/g
15216
s/:\${srcdir}:/:/g
15217
s/:@srcdir@:/:/g
15218
s/^:*//
15219 19 jeremybenn
s/:*$//
15220 625 jeremybenn
x
15221
s/\(=[   ]*\).*/\1/
15222
G
15223
s/\n//
15224 19 jeremybenn
s/^[^=]*=[       ]*$//
15225
}'
15226
fi
15227
 
15228 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15229 19 jeremybenn
fi # test -n "$CONFIG_FILES"
15230
 
15231 82 jeremybenn
# Set up the scripts for CONFIG_HEADERS section.
15232
# No need to generate them if there are no CONFIG_HEADERS.
15233
# This happens for instance with `./config.status Makefile'.
15234
if test -n "$CONFIG_HEADERS"; then
15235 625 jeremybenn
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15236 82 jeremybenn
BEGIN {
15237
_ACEOF
15238 19 jeremybenn
 
15239 82 jeremybenn
# Transform confdefs.h into an awk script `defines.awk', embedded as
15240
# here-document in config.status, that substitutes the proper values into
15241
# config.h.in to produce config.h.
15242
 
15243
# Create a delimiter string that does not exist in confdefs.h, to ease
15244
# handling of long lines.
15245
ac_delim='%!_!# '
15246
for ac_last_try in false false :; do
15247 625 jeremybenn
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15248
  if test -z "$ac_tt"; then
15249 82 jeremybenn
    break
15250
  elif $ac_last_try; then
15251 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15252 82 jeremybenn
  else
15253
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15254
  fi
15255
done
15256
 
15257
# For the awk script, D is an array of macro values keyed by name,
15258
# likewise P contains macro parameters if any.  Preserve backslash
15259
# newline sequences.
15260
 
15261
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15262
sed -n '
15263
s/.\{148\}/&'"$ac_delim"'/g
15264
t rset
15265
:rset
15266
s/^[     ]*#[    ]*define[       ][      ]*/ /
15267
t def
15268
d
15269
:def
15270
s/\\$//
15271
t bsnl
15272
s/["\\]/\\&/g
15273
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15274
D["\1"]=" \3"/p
15275
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15276
d
15277
:bsnl
15278
s/["\\]/\\&/g
15279
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15280
D["\1"]=" \3\\\\\\n"\\/p
15281
t cont
15282
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15283
t cont
15284
d
15285
:cont
15286
n
15287
s/.\{148\}/&'"$ac_delim"'/g
15288
t clear
15289
:clear
15290
s/\\$//
15291
t bsnlc
15292
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15293
d
15294
:bsnlc
15295
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15296
b cont
15297
' 
15298
s/'"$ac_delim"'/"\\\
15299
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15300
 
15301
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15302
  for (key in D) D_is_set[key] = 1
15303
  FS = ""
15304
}
15305
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15306
  line = \$ 0
15307
  split(line, arg, " ")
15308
  if (arg[1] == "#") {
15309
    defundef = arg[2]
15310
    mac1 = arg[3]
15311
  } else {
15312
    defundef = substr(arg[1], 2)
15313
    mac1 = arg[2]
15314
  }
15315
  split(mac1, mac2, "(") #)
15316
  macro = mac2[1]
15317
  prefix = substr(line, 1, index(line, defundef) - 1)
15318
  if (D_is_set[macro]) {
15319
    # Preserve the white space surrounding the "#".
15320
    print prefix "define", macro P[macro] D[macro]
15321
    next
15322
  } else {
15323
    # Replace #undef with comments.  This is necessary, for example,
15324
    # in the case of _POSIX_SOURCE, which is predefined and required
15325
    # on some systems where configure will not decide to define it.
15326
    if (defundef == "undef") {
15327
      print "/*", prefix defundef, macro, "*/"
15328
      next
15329
    }
15330
  }
15331
}
15332
{ print }
15333
_ACAWK
15334
_ACEOF
15335
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15336 625 jeremybenn
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15337 82 jeremybenn
fi # test -n "$CONFIG_HEADERS"
15338
 
15339
 
15340
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15341
shift
15342
for ac_tag
15343 19 jeremybenn
do
15344
  case $ac_tag in
15345
  :[FHLC]) ac_mode=$ac_tag; continue;;
15346
  esac
15347
  case $ac_mode$ac_tag in
15348
  :[FHL]*:*);;
15349 625 jeremybenn
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15350 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
15351
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15352
  esac
15353
  ac_save_IFS=$IFS
15354
  IFS=:
15355
  set x $ac_tag
15356
  IFS=$ac_save_IFS
15357
  shift
15358
  ac_file=$1
15359
  shift
15360
 
15361
  case $ac_mode in
15362
  :L) ac_source=$1;;
15363
  :[FH])
15364
    ac_file_inputs=
15365
    for ac_f
15366
    do
15367
      case $ac_f in
15368 625 jeremybenn
      -) ac_f="$ac_tmp/stdin";;
15369 19 jeremybenn
      *) # Look for the file first in the build tree, then in the source tree
15370
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
15371
         # because $ac_f cannot contain `:'.
15372
         test -f "$ac_f" ||
15373
           case $ac_f in
15374
           [\\/$]*) false;;
15375
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15376
           esac ||
15377 625 jeremybenn
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15378 19 jeremybenn
      esac
15379 82 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15380 346 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
15381 19 jeremybenn
    done
15382
 
15383
    # Let's still pretend it is `configure' which instantiates (i.e., don't
15384
    # use $as_me), people would be surprised to read:
15385
    #    /* config.h.  Generated by config.status.  */
15386 82 jeremybenn
    configure_input='Generated from '`
15387
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15388
        `' by configure.'
15389 19 jeremybenn
    if test x"$ac_file" != x-; then
15390
      configure_input="$ac_file.  $configure_input"
15391 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15392 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
15393 19 jeremybenn
    fi
15394 82 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
15395
    case $configure_input in #(
15396
    *\&* | *\|* | *\\* )
15397
       ac_sed_conf_input=`$as_echo "$configure_input" |
15398
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15399
    *) ac_sed_conf_input=$configure_input;;
15400
    esac
15401 19 jeremybenn
 
15402
    case $ac_tag in
15403 625 jeremybenn
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15404
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15405 19 jeremybenn
    esac
15406
    ;;
15407
  esac
15408
 
15409
  ac_dir=`$as_dirname -- "$ac_file" ||
15410
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15411
         X"$ac_file" : 'X\(//\)[^/]' \| \
15412
         X"$ac_file" : 'X\(//\)$' \| \
15413
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15414 82 jeremybenn
$as_echo X"$ac_file" |
15415 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15416
            s//\1/
15417
            q
15418
          }
15419
          /^X\(\/\/\)[^/].*/{
15420
            s//\1/
15421
            q
15422
          }
15423
          /^X\(\/\/\)$/{
15424
            s//\1/
15425
            q
15426
          }
15427
          /^X\(\/\).*/{
15428
            s//\1/
15429
            q
15430
          }
15431
          s/.*/./; q'`
15432 346 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
15433 19 jeremybenn
  ac_builddir=.
15434
 
15435
case "$ac_dir" in
15436
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15437
*)
15438 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15439 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
15440 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15441 19 jeremybenn
  case $ac_top_builddir_sub in
15442
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15443
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15444
  esac ;;
15445
esac
15446
ac_abs_top_builddir=$ac_pwd
15447
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15448
# for backward compatibility:
15449
ac_top_builddir=$ac_top_build_prefix
15450
 
15451
case $srcdir in
15452
  .)  # We are building in place.
15453
    ac_srcdir=.
15454
    ac_top_srcdir=$ac_top_builddir_sub
15455
    ac_abs_top_srcdir=$ac_pwd ;;
15456
  [\\/]* | ?:[\\/]* )  # Absolute name.
15457
    ac_srcdir=$srcdir$ac_dir_suffix;
15458
    ac_top_srcdir=$srcdir
15459
    ac_abs_top_srcdir=$srcdir ;;
15460
  *) # Relative name.
15461
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15462
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15463
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15464
esac
15465
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15466
 
15467
 
15468
  case $ac_mode in
15469
  :F)
15470
  #
15471
  # CONFIG_FILE
15472
  #
15473
 
15474
  case $INSTALL in
15475
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15476
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15477
  esac
15478
  ac_MKDIR_P=$MKDIR_P
15479
  case $MKDIR_P in
15480
  [\\/$]* | ?:[\\/]* ) ;;
15481
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15482
  esac
15483
_ACEOF
15484
 
15485 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15486 19 jeremybenn
# If the template does not know about datarootdir, expand it.
15487
# FIXME: This hack should be removed a few years after 2.60.
15488
ac_datarootdir_hack=; ac_datarootdir_seen=
15489 82 jeremybenn
ac_sed_dataroot='
15490
/datarootdir/ {
15491 19 jeremybenn
  p
15492
  q
15493
}
15494
/@datadir@/p
15495
/@docdir@/p
15496
/@infodir@/p
15497
/@localedir@/p
15498 346 jeremybenn
/@mandir@/p'
15499 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15500 19 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
15501
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15502 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15503 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15504 19 jeremybenn
_ACEOF
15505 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15506 19 jeremybenn
  ac_datarootdir_hack='
15507
  s&@datadir@&$datadir&g
15508
  s&@docdir@&$docdir&g
15509
  s&@infodir@&$infodir&g
15510
  s&@localedir@&$localedir&g
15511
  s&@mandir@&$mandir&g
15512 346 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
15513 19 jeremybenn
esac
15514
_ACEOF
15515
 
15516
# Neutralize VPATH when `$srcdir' = `.'.
15517
# Shell code in configure.ac might set extrasub.
15518
# FIXME: do we really want to maintain this feature?
15519 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15520
ac_sed_extra="$ac_vpsub
15521 19 jeremybenn
$extrasub
15522
_ACEOF
15523 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15524 19 jeremybenn
:t
15525
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15526 82 jeremybenn
s|@configure_input@|$ac_sed_conf_input|;t t
15527 19 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
15528 82 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15529 19 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
15530
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15531
s&@top_srcdir@&$ac_top_srcdir&;t t
15532
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15533
s&@builddir@&$ac_builddir&;t t
15534
s&@abs_builddir@&$ac_abs_builddir&;t t
15535
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15536
s&@INSTALL@&$ac_INSTALL&;t t
15537
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15538
$ac_datarootdir_hack
15539 82 jeremybenn
"
15540 625 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15541
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15542 19 jeremybenn
 
15543
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15544 625 jeremybenn
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15545
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15546
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15547 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15548 625 jeremybenn
which seems to be undefined.  Please make sure it is defined" >&5
15549 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15550 625 jeremybenn
which seems to be undefined.  Please make sure it is defined" >&2;}
15551 19 jeremybenn
 
15552 625 jeremybenn
  rm -f "$ac_tmp/stdin"
15553 19 jeremybenn
  case $ac_file in
15554 625 jeremybenn
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15555
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15556 82 jeremybenn
  esac \
15557 625 jeremybenn
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15558 19 jeremybenn
 ;;
15559
  :H)
15560
  #
15561
  # CONFIG_HEADER
15562
  #
15563
  if test x"$ac_file" != x-; then
15564 82 jeremybenn
    {
15565
      $as_echo "/* $configure_input  */" \
15566 625 jeremybenn
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15567
    } >"$ac_tmp/config.h" \
15568
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15569
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15570 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15571 82 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15572 19 jeremybenn
    else
15573 82 jeremybenn
      rm -f "$ac_file"
15574 625 jeremybenn
      mv "$ac_tmp/config.h" "$ac_file" \
15575
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15576 19 jeremybenn
    fi
15577
  else
15578 82 jeremybenn
    $as_echo "/* $configure_input  */" \
15579 625 jeremybenn
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15580
      || as_fn_error $? "could not create -" "$LINENO" 5
15581 19 jeremybenn
  fi
15582 82 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
15583
_am_arg="$ac_file"
15584 19 jeremybenn
_am_stamp_count=1
15585
for _am_header in $config_headers :; do
15586
  case $_am_header in
15587
    $_am_arg | $_am_arg:* )
15588
      break ;;
15589
    * )
15590
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15591
  esac
15592
done
15593
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15594
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15595
         X"$_am_arg" : 'X\(//\)[^/]' \| \
15596
         X"$_am_arg" : 'X\(//\)$' \| \
15597
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15598 82 jeremybenn
$as_echo X"$_am_arg" |
15599 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15600
            s//\1/
15601
            q
15602
          }
15603
          /^X\(\/\/\)[^/].*/{
15604
            s//\1/
15605
            q
15606
          }
15607
          /^X\(\/\/\)$/{
15608
            s//\1/
15609
            q
15610
          }
15611
          /^X\(\/\).*/{
15612
            s//\1/
15613
            q
15614
          }
15615
          s/.*/./; q'`/stamp-h$_am_stamp_count
15616
 ;;
15617
 
15618 346 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15619 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
15620 19 jeremybenn
 ;;
15621
  esac
15622
 
15623
 
15624
  case $ac_file$ac_mode in
15625 82 jeremybenn
    "libtool":C)
15626
 
15627
    # See if we are running on zsh, and set the options which allow our
15628
    # commands through without removal of \ escapes.
15629
    if test -n "${ZSH_VERSION+set}" ; then
15630
      setopt NO_GLOB_SUBST
15631
    fi
15632
 
15633
    cfgfile="${ofile}T"
15634
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15635
    $RM "$cfgfile"
15636
 
15637
    cat <<_LT_EOF >> "$cfgfile"
15638
#! $SHELL
15639
 
15640
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15641
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15642
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15643
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15644
#
15645
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15646 784 jeremybenn
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15647
#                 Inc.
15648 82 jeremybenn
#   Written by Gordon Matzigkeit, 1996
15649
#
15650
#   This file is part of GNU Libtool.
15651
#
15652
# GNU Libtool is free software; you can redistribute it and/or
15653
# modify it under the terms of the GNU General Public License as
15654
# published by the Free Software Foundation; either version 2 of
15655
# the License, or (at your option) any later version.
15656
#
15657
# As a special exception to the GNU General Public License,
15658
# if you distribute this file as part of a program or library that
15659
# is built using GNU Libtool, you may include this file under the
15660
# same distribution terms that you use for the rest of that program.
15661
#
15662
# GNU Libtool is distributed in the hope that it will be useful,
15663
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15664
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15665
# GNU General Public License for more details.
15666
#
15667
# You should have received a copy of the GNU General Public License
15668
# along with GNU Libtool; see the file COPYING.  If not, a copy
15669
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15670
# obtained by writing to the Free Software Foundation, Inc.,
15671
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15672
 
15673
 
15674
# The names of the tagged configurations supported by this script.
15675
available_tags=""
15676
 
15677
# ### BEGIN LIBTOOL CONFIG
15678
 
15679
# Which release of libtool.m4 was used?
15680
macro_version=$macro_version
15681
macro_revision=$macro_revision
15682
 
15683
# Whether or not to build shared libraries.
15684
build_libtool_libs=$enable_shared
15685
 
15686
# Whether or not to build static libraries.
15687
build_old_libs=$enable_static
15688
 
15689
# What type of objects to build.
15690
pic_mode=$pic_mode
15691
 
15692
# Whether or not to optimize for fast installation.
15693
fast_install=$enable_fast_install
15694
 
15695 784 jeremybenn
# Shell to use when invoking shell scripts.
15696
SHELL=$lt_SHELL
15697
 
15698
# An echo program that protects backslashes.
15699
ECHO=$lt_ECHO
15700
 
15701 82 jeremybenn
# The host system.
15702
host_alias=$host_alias
15703
host=$host
15704
host_os=$host_os
15705
 
15706
# The build system.
15707
build_alias=$build_alias
15708
build=$build
15709
build_os=$build_os
15710
 
15711
# A sed program that does not truncate output.
15712
SED=$lt_SED
15713
 
15714
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15715
Xsed="\$SED -e 1s/^X//"
15716
 
15717
# A grep program that handles long lines.
15718
GREP=$lt_GREP
15719
 
15720
# An ERE matcher.
15721
EGREP=$lt_EGREP
15722
 
15723
# A literal string matcher.
15724
FGREP=$lt_FGREP
15725
 
15726
# A BSD- or MS-compatible name lister.
15727
NM=$lt_NM
15728
 
15729
# Whether we need soft or hard links.
15730
LN_S=$lt_LN_S
15731
 
15732
# What is the maximum length of a command?
15733
max_cmd_len=$max_cmd_len
15734
 
15735
# Object file suffix (normally "o").
15736
objext=$ac_objext
15737
 
15738
# Executable file suffix (normally "").
15739
exeext=$exeext
15740
 
15741
# whether the shell understands "unset".
15742
lt_unset=$lt_unset
15743
 
15744
# turn spaces into newlines.
15745
SP2NL=$lt_lt_SP2NL
15746
 
15747
# turn newlines into spaces.
15748
NL2SP=$lt_lt_NL2SP
15749
 
15750 784 jeremybenn
# convert \$build file names to \$host format.
15751
to_host_file_cmd=$lt_cv_to_host_file_cmd
15752 82 jeremybenn
 
15753 784 jeremybenn
# convert \$build files to toolchain format.
15754
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15755
 
15756 82 jeremybenn
# An object symbol dumper.
15757
OBJDUMP=$lt_OBJDUMP
15758
 
15759
# Method to check whether dependent libraries are shared objects.
15760
deplibs_check_method=$lt_deplibs_check_method
15761
 
15762 784 jeremybenn
# Command to use when deplibs_check_method = "file_magic".
15763 82 jeremybenn
file_magic_cmd=$lt_file_magic_cmd
15764
 
15765 784 jeremybenn
# How to find potential files when deplibs_check_method = "file_magic".
15766
file_magic_glob=$lt_file_magic_glob
15767
 
15768
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15769
want_nocaseglob=$lt_want_nocaseglob
15770
 
15771
# DLL creation program.
15772
DLLTOOL=$lt_DLLTOOL
15773
 
15774
# Command to associate shared and link libraries.
15775
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15776
 
15777 82 jeremybenn
# The archiver.
15778
AR=$lt_AR
15779 784 jeremybenn
 
15780
# Flags to create an archive.
15781 82 jeremybenn
AR_FLAGS=$lt_AR_FLAGS
15782
 
15783 784 jeremybenn
# How to feed a file listing to the archiver.
15784
archiver_list_spec=$lt_archiver_list_spec
15785
 
15786 82 jeremybenn
# A symbol stripping program.
15787
STRIP=$lt_STRIP
15788
 
15789
# Commands used to install an old-style archive.
15790
RANLIB=$lt_RANLIB
15791
old_postinstall_cmds=$lt_old_postinstall_cmds
15792
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15793
 
15794 784 jeremybenn
# Whether to use a lock for old archive extraction.
15795
lock_old_archive_extraction=$lock_old_archive_extraction
15796
 
15797 82 jeremybenn
# A C compiler.
15798
LTCC=$lt_CC
15799
 
15800
# LTCC compiler flags.
15801
LTCFLAGS=$lt_CFLAGS
15802
 
15803
# Take the output of nm and produce a listing of raw symbols and C names.
15804
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15805
 
15806
# Transform the output of nm in a proper C declaration.
15807
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15808
 
15809
# Transform the output of nm in a C name address pair.
15810
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15811
 
15812
# Transform the output of nm in a C name address pair when lib prefix is needed.
15813
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15814
 
15815 784 jeremybenn
# Specify filename containing input files for \$NM.
15816
nm_file_list_spec=$lt_nm_file_list_spec
15817
 
15818
# The root where to search for dependent libraries,and in which our libraries should be installed.
15819
lt_sysroot=$lt_sysroot
15820
 
15821 82 jeremybenn
# The name of the directory that contains temporary libtool files.
15822
objdir=$objdir
15823
 
15824
# Used to examine libraries when file_magic_cmd begins with "file".
15825
MAGIC_CMD=$MAGIC_CMD
15826
 
15827
# Must we lock files when doing compilation?
15828
need_locks=$lt_need_locks
15829
 
15830 784 jeremybenn
# Manifest tool.
15831
MANIFEST_TOOL=$lt_MANIFEST_TOOL
15832
 
15833 82 jeremybenn
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15834
DSYMUTIL=$lt_DSYMUTIL
15835
 
15836
# Tool to change global to local symbols on Mac OS X.
15837
NMEDIT=$lt_NMEDIT
15838
 
15839
# Tool to manipulate fat objects and archives on Mac OS X.
15840
LIPO=$lt_LIPO
15841
 
15842
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15843
OTOOL=$lt_OTOOL
15844
 
15845
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15846
OTOOL64=$lt_OTOOL64
15847
 
15848
# Old archive suffix (normally "a").
15849
libext=$libext
15850
 
15851
# Shared library suffix (normally ".so").
15852
shrext_cmds=$lt_shrext_cmds
15853
 
15854
# The commands to extract the exported symbol list from a shared archive.
15855
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15856
 
15857
# Variables whose values should be saved in libtool wrapper scripts and
15858
# restored at link time.
15859
variables_saved_for_relink=$lt_variables_saved_for_relink
15860
 
15861
# Do we need the "lib" prefix for modules?
15862
need_lib_prefix=$need_lib_prefix
15863
 
15864
# Do we need a version for libraries?
15865
need_version=$need_version
15866
 
15867
# Library versioning type.
15868
version_type=$version_type
15869
 
15870
# Shared library runtime path variable.
15871
runpath_var=$runpath_var
15872
 
15873
# Shared library path variable.
15874
shlibpath_var=$shlibpath_var
15875
 
15876
# Is shlibpath searched before the hard-coded library search path?
15877
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15878
 
15879
# Format of library name prefix.
15880
libname_spec=$lt_libname_spec
15881
 
15882
# List of archive names.  First name is the real one, the rest are links.
15883
# The last name is the one that the linker finds with -lNAME
15884
library_names_spec=$lt_library_names_spec
15885
 
15886
# The coded name of the library, if different from the real name.
15887
soname_spec=$lt_soname_spec
15888
 
15889 784 jeremybenn
# Permission mode override for installation of shared libraries.
15890
install_override_mode=$lt_install_override_mode
15891
 
15892 82 jeremybenn
# Command to use after installation of a shared archive.
15893
postinstall_cmds=$lt_postinstall_cmds
15894
 
15895
# Command to use after uninstallation of a shared archive.
15896
postuninstall_cmds=$lt_postuninstall_cmds
15897
 
15898
# Commands used to finish a libtool library installation in a directory.
15899
finish_cmds=$lt_finish_cmds
15900
 
15901
# As "finish_cmds", except a single script fragment to be evaled but
15902
# not shown.
15903
finish_eval=$lt_finish_eval
15904
 
15905
# Whether we should hardcode library paths into libraries.
15906
hardcode_into_libs=$hardcode_into_libs
15907
 
15908
# Compile-time system search path for libraries.
15909
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15910
 
15911
# Run-time system search path for libraries.
15912
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15913
 
15914
# Whether dlopen is supported.
15915
dlopen_support=$enable_dlopen
15916
 
15917
# Whether dlopen of programs is supported.
15918
dlopen_self=$enable_dlopen_self
15919
 
15920
# Whether dlopen of statically linked programs is supported.
15921
dlopen_self_static=$enable_dlopen_self_static
15922
 
15923
# Commands to strip libraries.
15924
old_striplib=$lt_old_striplib
15925
striplib=$lt_striplib
15926
 
15927
 
15928
# The linker used to build libraries.
15929
LD=$lt_LD
15930
 
15931 784 jeremybenn
# How to create reloadable object files.
15932
reload_flag=$lt_reload_flag
15933
reload_cmds=$lt_reload_cmds
15934
 
15935 82 jeremybenn
# Commands used to build an old-style archive.
15936
old_archive_cmds=$lt_old_archive_cmds
15937
 
15938
# A language specific compiler.
15939
CC=$lt_compiler
15940
 
15941
# Is the compiler the GNU compiler?
15942
with_gcc=$GCC
15943
 
15944
# Compiler flag to turn off builtin functions.
15945
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15946
 
15947 784 jeremybenn
# Additional compiler flags for building library objects.
15948
pic_flag=$lt_lt_prog_compiler_pic
15949
 
15950 82 jeremybenn
# How to pass a linker flag through the compiler.
15951
wl=$lt_lt_prog_compiler_wl
15952
 
15953
# Compiler flag to prevent dynamic linking.
15954
link_static_flag=$lt_lt_prog_compiler_static
15955
 
15956
# Does compiler simultaneously support -c and -o options?
15957
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15958
 
15959
# Whether or not to add -lc for building shared libraries.
15960
build_libtool_need_lc=$archive_cmds_need_lc
15961
 
15962
# Whether or not to disallow shared libs when runtime libs are static.
15963
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15964
 
15965
# Compiler flag to allow reflexive dlopens.
15966
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15967
 
15968
# Compiler flag to generate shared objects directly from archives.
15969
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15970
 
15971
# Whether the compiler copes with passing no objects directly.
15972
compiler_needs_object=$lt_compiler_needs_object
15973
 
15974
# Create an old-style archive from a shared archive.
15975
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15976
 
15977
# Create a temporary old-style archive to link instead of a shared archive.
15978
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15979
 
15980
# Commands used to build a shared archive.
15981
archive_cmds=$lt_archive_cmds
15982
archive_expsym_cmds=$lt_archive_expsym_cmds
15983
 
15984
# Commands used to build a loadable module if different from building
15985
# a shared archive.
15986
module_cmds=$lt_module_cmds
15987
module_expsym_cmds=$lt_module_expsym_cmds
15988
 
15989
# Whether we are building with GNU ld or not.
15990
with_gnu_ld=$lt_with_gnu_ld
15991
 
15992
# Flag that allows shared libraries with undefined symbols to be built.
15993
allow_undefined_flag=$lt_allow_undefined_flag
15994
 
15995
# Flag that enforces no undefined symbols.
15996
no_undefined_flag=$lt_no_undefined_flag
15997
 
15998
# Flag to hardcode \$libdir into a binary during linking.
15999
# This must work even if \$libdir does not exist
16000
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16001
 
16002
# If ld is used when linking, flag to hardcode \$libdir into a binary
16003
# during linking.  This must work even if \$libdir does not exist.
16004
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16005
 
16006
# Whether we need a single "-rpath" flag with a separated argument.
16007
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16008
 
16009
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16010
# DIR into the resulting binary.
16011
hardcode_direct=$hardcode_direct
16012
 
16013
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16014
# DIR into the resulting binary and the resulting library dependency is
16015
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16016
# library is relocated.
16017
hardcode_direct_absolute=$hardcode_direct_absolute
16018
 
16019
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16020
# into the resulting binary.
16021
hardcode_minus_L=$hardcode_minus_L
16022
 
16023
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16024
# into the resulting binary.
16025
hardcode_shlibpath_var=$hardcode_shlibpath_var
16026
 
16027
# Set to "yes" if building a shared library automatically hardcodes DIR
16028
# into the library and all subsequent libraries and executables linked
16029
# against it.
16030
hardcode_automatic=$hardcode_automatic
16031
 
16032
# Set to yes if linker adds runtime paths of dependent libraries
16033
# to runtime path list.
16034
inherit_rpath=$inherit_rpath
16035
 
16036
# Whether libtool must link a program against all its dependency libraries.
16037
link_all_deplibs=$link_all_deplibs
16038
 
16039
# Set to "yes" if exported symbols are required.
16040
always_export_symbols=$always_export_symbols
16041
 
16042
# The commands to list exported symbols.
16043
export_symbols_cmds=$lt_export_symbols_cmds
16044
 
16045
# Symbols that should not be listed in the preloaded symbols.
16046
exclude_expsyms=$lt_exclude_expsyms
16047
 
16048
# Symbols that must always be exported.
16049
include_expsyms=$lt_include_expsyms
16050
 
16051
# Commands necessary for linking programs (against libraries) with templates.
16052
prelink_cmds=$lt_prelink_cmds
16053
 
16054 784 jeremybenn
# Commands necessary for finishing linking programs.
16055
postlink_cmds=$lt_postlink_cmds
16056
 
16057 82 jeremybenn
# Specify filename containing input files.
16058
file_list_spec=$lt_file_list_spec
16059
 
16060
# How to hardcode a shared library path into an executable.
16061
hardcode_action=$hardcode_action
16062
 
16063
# ### END LIBTOOL CONFIG
16064
 
16065
_LT_EOF
16066
 
16067
  case $host_os in
16068
  aix3*)
16069
    cat <<\_LT_EOF >> "$cfgfile"
16070
# AIX sometimes has problems with the GCC collect2 program.  For some
16071
# reason, if we set the COLLECT_NAMES environment variable, the problems
16072
# vanish in a puff of smoke.
16073
if test "X${COLLECT_NAMES+set}" != Xset; then
16074
  COLLECT_NAMES=
16075
  export COLLECT_NAMES
16076
fi
16077
_LT_EOF
16078
    ;;
16079
  esac
16080
 
16081
 
16082
ltmain="$ac_aux_dir/ltmain.sh"
16083
 
16084
 
16085
  # We use sed instead of cat because bash on DJGPP gets confused if
16086
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16087
  # text mode, it properly converts lines to CR/LF.  This bash problem
16088
  # is reportedly fixed, but why not run on old versions too?
16089 784 jeremybenn
  sed '$q' "$ltmain" >> "$cfgfile" \
16090
     || (rm -f "$cfgfile"; exit 1)
16091 82 jeremybenn
 
16092 784 jeremybenn
  if test x"$xsi_shell" = xyes; then
16093
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16094
func_dirname ()\
16095
{\
16096
\    case ${1} in\
16097
\      */*) func_dirname_result="${1%/*}${2}" ;;\
16098
\      *  ) func_dirname_result="${3}" ;;\
16099
\    esac\
16100
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16101
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16102
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16103
test 0 -eq $? || _lt_function_replace_fail=:
16104 82 jeremybenn
 
16105
 
16106 784 jeremybenn
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
16107
func_basename ()\
16108
{\
16109
\    func_basename_result="${1##*/}"\
16110
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16111
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16112
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16113
test 0 -eq $? || _lt_function_replace_fail=:
16114 82 jeremybenn
 
16115
 
16116 784 jeremybenn
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16117
func_dirname_and_basename ()\
16118
{\
16119
\    case ${1} in\
16120
\      */*) func_dirname_result="${1%/*}${2}" ;;\
16121
\      *  ) func_dirname_result="${3}" ;;\
16122
\    esac\
16123
\    func_basename_result="${1##*/}"\
16124
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16125
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16126
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16127
test 0 -eq $? || _lt_function_replace_fail=:
16128 82 jeremybenn
 
16129
 
16130 784 jeremybenn
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16131
func_stripname ()\
16132
{\
16133
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16134
\    # positional parameters, so assign one to ordinary parameter first.\
16135
\    func_stripname_result=${3}\
16136
\    func_stripname_result=${func_stripname_result#"${1}"}\
16137
\    func_stripname_result=${func_stripname_result%"${2}"}\
16138
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16139
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16140
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16141
test 0 -eq $? || _lt_function_replace_fail=:
16142 82 jeremybenn
 
16143
 
16144 784 jeremybenn
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16145
func_split_long_opt ()\
16146
{\
16147
\    func_split_long_opt_name=${1%%=*}\
16148
\    func_split_long_opt_arg=${1#*=}\
16149
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16150
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16151
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16152
test 0 -eq $? || _lt_function_replace_fail=:
16153 82 jeremybenn
 
16154
 
16155 784 jeremybenn
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16156
func_split_short_opt ()\
16157
{\
16158
\    func_split_short_opt_arg=${1#??}\
16159
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16160
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16161
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16162
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16163
test 0 -eq $? || _lt_function_replace_fail=:
16164 82 jeremybenn
 
16165
 
16166 784 jeremybenn
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16167
func_lo2o ()\
16168
{\
16169
\    case ${1} in\
16170
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16171
\      *)    func_lo2o_result=${1} ;;\
16172
\    esac\
16173
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16174
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16175
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16176
test 0 -eq $? || _lt_function_replace_fail=:
16177 82 jeremybenn
 
16178
 
16179 784 jeremybenn
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
16180
func_xform ()\
16181
{\
16182
    func_xform_result=${1%.*}.lo\
16183
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16184
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16185
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16186
test 0 -eq $? || _lt_function_replace_fail=:
16187 82 jeremybenn
 
16188
 
16189 784 jeremybenn
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
16190
func_arith ()\
16191
{\
16192
    func_arith_result=$(( $* ))\
16193
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16194
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16195
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16196
test 0 -eq $? || _lt_function_replace_fail=:
16197 82 jeremybenn
 
16198
 
16199 784 jeremybenn
  sed -e '/^func_len ()$/,/^} # func_len /c\
16200
func_len ()\
16201
{\
16202
    func_len_result=${#1}\
16203
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16204
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16205
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16206
test 0 -eq $? || _lt_function_replace_fail=:
16207 82 jeremybenn
 
16208 784 jeremybenn
fi
16209 82 jeremybenn
 
16210 784 jeremybenn
if test x"$lt_shell_append" = xyes; then
16211
  sed -e '/^func_append ()$/,/^} # func_append /c\
16212
func_append ()\
16213
{\
16214
    eval "${1}+=\\${2}"\
16215
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16216
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16217
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16218
test 0 -eq $? || _lt_function_replace_fail=:
16219 82 jeremybenn
 
16220
 
16221 784 jeremybenn
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16222
func_append_quoted ()\
16223
{\
16224
\    func_quote_for_eval "${2}"\
16225
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16226
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16227
  && mv -f "$cfgfile.tmp" "$cfgfile" \
16228
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16229
test 0 -eq $? || _lt_function_replace_fail=:
16230 82 jeremybenn
 
16231
 
16232 784 jeremybenn
  # Save a `func_append' function call where possible by direct use of '+='
16233
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16234
    && mv -f "$cfgfile.tmp" "$cfgfile" \
16235
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16236
  test 0 -eq $? || _lt_function_replace_fail=:
16237
else
16238
  # Save a `func_append' function call even when '+=' is not available
16239
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16240
    && mv -f "$cfgfile.tmp" "$cfgfile" \
16241
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16242
  test 0 -eq $? || _lt_function_replace_fail=:
16243
fi
16244 82 jeremybenn
 
16245 784 jeremybenn
if test x"$_lt_function_replace_fail" = x":"; then
16246
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16247
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16248
fi
16249 82 jeremybenn
 
16250
 
16251 784 jeremybenn
   mv -f "$cfgfile" "$ofile" ||
16252 82 jeremybenn
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16253
  chmod +x "$ofile"
16254
 
16255
 ;;
16256
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16257
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16258
  # are listed without --file.  Let's play safe and only enable the eval
16259
  # if we detect the quoting.
16260
  case $CONFIG_FILES in
16261
  *\'*) eval set x "$CONFIG_FILES" ;;
16262
  *)   set x $CONFIG_FILES ;;
16263
  esac
16264
  shift
16265
  for mf
16266
  do
16267
    # Strip MF so we end up with the name of the file.
16268
    mf=`echo "$mf" | sed -e 's/:.*$//'`
16269
    # Check whether this is an Automake generated Makefile or not.
16270
    # We used to match only the files named `Makefile.in', but
16271
    # some people rename them; so instead we look at the file content.
16272
    # Grep'ing the first line is not enough: some people post-process
16273
    # each Makefile.in and add a new line on top of each file to say so.
16274
    # Grep'ing the whole file is not good either: AIX grep has a line
16275
    # limit of 2048, but all sed's we know have understand at least 4000.
16276
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16277
      dirpart=`$as_dirname -- "$mf" ||
16278 19 jeremybenn
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16279
         X"$mf" : 'X\(//\)[^/]' \| \
16280
         X"$mf" : 'X\(//\)$' \| \
16281
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16282 82 jeremybenn
$as_echo X"$mf" |
16283 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16284
            s//\1/
16285
            q
16286
          }
16287
          /^X\(\/\/\)[^/].*/{
16288
            s//\1/
16289
            q
16290
          }
16291
          /^X\(\/\/\)$/{
16292
            s//\1/
16293
            q
16294
          }
16295
          /^X\(\/\).*/{
16296
            s//\1/
16297
            q
16298
          }
16299
          s/.*/./; q'`
16300 82 jeremybenn
    else
16301
      continue
16302
    fi
16303
    # Extract the definition of DEPDIR, am__include, and am__quote
16304
    # from the Makefile without running `make'.
16305
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16306
    test -z "$DEPDIR" && continue
16307
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16308
    test -z "am__include" && continue
16309
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16310
    # When using ansi2knr, U may be empty or an underscore; expand it
16311
    U=`sed -n 's/^U = //p' < "$mf"`
16312
    # Find all dependency output files, they are included files with
16313
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16314
    # simplest approach to changing $(DEPDIR) to its actual value in the
16315
    # expansion.
16316
    for file in `sed -n "
16317
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16318
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16319
      # Make sure the directory exists.
16320
      test -f "$dirpart/$file" && continue
16321
      fdir=`$as_dirname -- "$file" ||
16322 19 jeremybenn
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16323
         X"$file" : 'X\(//\)[^/]' \| \
16324
         X"$file" : 'X\(//\)$' \| \
16325
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16326 82 jeremybenn
$as_echo X"$file" |
16327 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16328
            s//\1/
16329
            q
16330
          }
16331
          /^X\(\/\/\)[^/].*/{
16332
            s//\1/
16333
            q
16334
          }
16335
          /^X\(\/\/\)$/{
16336
            s//\1/
16337
            q
16338
          }
16339
          /^X\(\/\).*/{
16340
            s//\1/
16341
            q
16342
          }
16343
          s/.*/./; q'`
16344 346 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16345 82 jeremybenn
      # echo "creating $dirpart/$file"
16346
      echo '# dummy' > "$dirpart/$file"
16347
    done
16348 19 jeremybenn
  done
16349 82 jeremybenn
}
16350 19 jeremybenn
 ;;
16351
 
16352
  esac
16353
done # for ac_tag
16354
 
16355
 
16356 346 jeremybenn
as_fn_exit 0
16357 19 jeremybenn
_ACEOF
16358
ac_clean_files=$ac_clean_files_save
16359
 
16360 82 jeremybenn
test $ac_write_fail = 0 ||
16361 625 jeremybenn
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16362 19 jeremybenn
 
16363 82 jeremybenn
 
16364 19 jeremybenn
# configure is writing to config.log, and then calls config.status.
16365
# config.status does its own redirection, appending to config.log.
16366
# Unfortunately, on DOS this fails, as config.log is still kept open
16367
# by configure, so config.status won't be able to write to it; its
16368
# output is simply discarded.  So we exec the FD to /dev/null,
16369
# effectively closing config.log, so it can be properly (re)opened and
16370
# appended to by config.status.  When coming back to configure, we
16371
# need to make the FD available again.
16372
if test "$no_create" != yes; then
16373
  ac_cs_success=:
16374
  ac_config_status_args=
16375
  test "$silent" = yes &&
16376
    ac_config_status_args="$ac_config_status_args --quiet"
16377
  exec 5>/dev/null
16378
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16379
  exec 5>>config.log
16380
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16381
  # would make configure fail if this is the last instruction.
16382 625 jeremybenn
  $ac_cs_success || as_fn_exit 1
16383 19 jeremybenn
fi
16384
 
16385 82 jeremybenn
#
16386
# CONFIG_SUBDIRS section.
16387
#
16388
if test "$no_recursion" != yes; then
16389
 
16390
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16391
  # so they do not pile up.
16392
  ac_sub_configure_args=
16393
  ac_prev=
16394
  eval "set x $ac_configure_args"
16395
  shift
16396
  for ac_arg
16397
  do
16398
    if test -n "$ac_prev"; then
16399
      ac_prev=
16400
      continue
16401
    fi
16402
    case $ac_arg in
16403
    -cache-file | --cache-file | --cache-fil | --cache-fi \
16404
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16405
      ac_prev=cache_file ;;
16406
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16407
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16408
    | --c=*)
16409
      ;;
16410
    --config-cache | -C)
16411
      ;;
16412
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16413
      ac_prev=srcdir ;;
16414
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16415
      ;;
16416
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16417
      ac_prev=prefix ;;
16418
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16419
      ;;
16420
    --disable-option-checking)
16421
      ;;
16422
    *)
16423
      case $ac_arg in
16424
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16425
      esac
16426 346 jeremybenn
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16427 82 jeremybenn
    esac
16428
  done
16429
 
16430
  # Always prepend --prefix to ensure using the same prefix
16431
  # in subdir configurations.
16432
  ac_arg="--prefix=$prefix"
16433
  case $ac_arg in
16434
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16435
  esac
16436
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16437
 
16438
  # Pass --silent
16439
  if test "$silent" = yes; then
16440
    ac_sub_configure_args="--silent $ac_sub_configure_args"
16441
  fi
16442
 
16443
  # Always prepend --disable-option-checking to silence warnings, since
16444
  # different subdirs can have different --enable and --with options.
16445
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16446
 
16447
  ac_popdir=`pwd`
16448
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16449
 
16450
    # Do not complain, so a configure script can configure whichever
16451
    # parts of a large source tree are present.
16452
    test -d "$srcdir/$ac_dir" || continue
16453
 
16454
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16455 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16456 82 jeremybenn
    $as_echo "$ac_msg" >&6
16457 346 jeremybenn
    as_dir="$ac_dir"; as_fn_mkdir_p
16458 82 jeremybenn
    ac_builddir=.
16459
 
16460
case "$ac_dir" in
16461
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16462
*)
16463
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16464
  # A ".." for each directory in $ac_dir_suffix.
16465
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16466
  case $ac_top_builddir_sub in
16467
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16468
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16469
  esac ;;
16470
esac
16471
ac_abs_top_builddir=$ac_pwd
16472
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16473
# for backward compatibility:
16474
ac_top_builddir=$ac_top_build_prefix
16475
 
16476
case $srcdir in
16477
  .)  # We are building in place.
16478
    ac_srcdir=.
16479
    ac_top_srcdir=$ac_top_builddir_sub
16480
    ac_abs_top_srcdir=$ac_pwd ;;
16481
  [\\/]* | ?:[\\/]* )  # Absolute name.
16482
    ac_srcdir=$srcdir$ac_dir_suffix;
16483
    ac_top_srcdir=$srcdir
16484
    ac_abs_top_srcdir=$srcdir ;;
16485
  *) # Relative name.
16486
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16487
    ac_top_srcdir=$ac_top_build_prefix$srcdir
16488
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16489
esac
16490
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16491
 
16492
 
16493
    cd "$ac_dir"
16494
 
16495
    # Check for guested configure; otherwise get Cygnus style configure.
16496
    if test -f "$ac_srcdir/configure.gnu"; then
16497
      ac_sub_configure=$ac_srcdir/configure.gnu
16498
    elif test -f "$ac_srcdir/configure"; then
16499
      ac_sub_configure=$ac_srcdir/configure
16500
    elif test -f "$ac_srcdir/configure.in"; then
16501
      # This should be Cygnus configure.
16502
      ac_sub_configure=$ac_aux_dir/configure
16503
    else
16504 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16505 82 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16506
      ac_sub_configure=
16507
    fi
16508
 
16509
    # The recursion is here.
16510
    if test -n "$ac_sub_configure"; then
16511
      # Make the cache file name correct relative to the subdirectory.
16512
      case $cache_file in
16513
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16514
      *) # Relative name.
16515
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16516
      esac
16517
 
16518 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16519 82 jeremybenn
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16520
      # The eval makes quoting arguments work.
16521
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16522
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16523 625 jeremybenn
        as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16524 82 jeremybenn
    fi
16525
 
16526
    cd "$ac_popdir"
16527
  done
16528
fi
16529
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16530 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16531 82 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16532
fi
16533
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.